comparison configure @ 272:d5392bb5da3c 2.5

Added generated files
author lost
date Sun, 16 Aug 2009 17:16:49 +0000
parents
children 88bbffa404ea
comparison
equal deleted inserted replaced
271:3b793ba7a6c6 272:d5392bb5da3c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for LWTOOLS 2.5-pre.
4 #
5 # Report bugs to <lost@l-w.ca>.
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='LWTOOLS'
598 PACKAGE_TARNAME='lwtools'
599 PACKAGE_VERSION='2.5-pre'
600 PACKAGE_STRING='LWTOOLS 2.5-pre'
601 PACKAGE_BUGREPORT='lost@l-w.ca'
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 gl_func_list=
640 gl_header_list=
641 ac_subst_vars='gltests_LTLIBOBJS
642 gltests_LIBOBJS
643 gl_LTLIBOBJS
644 gl_LIBOBJS
645 LTLIBOBJS
646 LIBOBJS
647 LIBGNU_LTLIBDEPS
648 LIBGNU_LIBDEPS
649 NEXT_WCHAR_H
650 HAVE_WCHAR_H
651 HAVE_WINT_T
652 WCHAR_H
653 REPLACE_WCWIDTH
654 REPLACE_WCSRTOMBS
655 REPLACE_WCRTOMB
656 REPLACE_MBSNRTOWCS
657 REPLACE_MBSRTOWCS
658 REPLACE_MBRLEN
659 REPLACE_MBRTOWC
660 REPLACE_MBSINIT
661 REPLACE_WCTOB
662 REPLACE_BTOWC
663 REPLACE_MBSTATE_T
664 HAVE_DECL_WCWIDTH
665 HAVE_DECL_WCTOB
666 HAVE_WCSNRTOMBS
667 HAVE_WCSRTOMBS
668 HAVE_WCRTOMB
669 HAVE_MBSNRTOWCS
670 HAVE_MBSRTOWCS
671 HAVE_MBRLEN
672 HAVE_MBRTOWC
673 HAVE_MBSINIT
674 HAVE_BTOWC
675 GNULIB_WCWIDTH
676 GNULIB_WCSNRTOMBS
677 GNULIB_WCSRTOMBS
678 GNULIB_WCRTOMB
679 GNULIB_MBSNRTOWCS
680 GNULIB_MBSRTOWCS
681 GNULIB_MBRLEN
682 GNULIB_MBRTOWC
683 GNULIB_MBSINIT
684 GNULIB_WCTOB
685 GNULIB_BTOWC
686 HAVE_UNISTD_H
687 NEXT_UNISTD_H
688 SYSEXITS_H
689 HAVE_SYSEXITS_H
690 NEXT_SYSEXITS_H
691 NEXT_STRINGS_H
692 NEXT_STRING_H
693 HAVE_DECL_STRNCASECMP
694 HAVE_STRCASECMP
695 NEXT_STDLIB_H
696 NEXT_STDIO_H
697 REPLACE_PERROR
698 REPLACE_GETLINE
699 HAVE_DECL_GETLINE
700 HAVE_DECL_GETDELIM
701 REPLACE_FCLOSE
702 REPLACE_FFLUSH
703 REPLACE_FTELL
704 REPLACE_FTELLO
705 HAVE_FTELLO
706 REPLACE_FSEEK
707 REPLACE_FSEEKO
708 HAVE_FSEEKO
709 REPLACE_FREOPEN
710 REPLACE_FOPEN
711 REPLACE_OBSTACK_PRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 REPLACE_VASPRINTF
714 HAVE_VASPRINTF
715 REPLACE_VSPRINTF
716 REPLACE_SPRINTF
717 HAVE_DECL_VSNPRINTF
718 REPLACE_VSNPRINTF
719 HAVE_DECL_SNPRINTF
720 REPLACE_SNPRINTF
721 REPLACE_VPRINTF
722 REPLACE_PRINTF
723 REPLACE_VFPRINTF
724 REPLACE_FPRINTF
725 REPLACE_STDIO_WRITE_FUNCS
726 GNULIB_STDIO_H_SIGPIPE
727 GNULIB_PERROR
728 GNULIB_GETLINE
729 GNULIB_GETDELIM
730 GNULIB_FWRITE
731 GNULIB_PUTS
732 GNULIB_FPUTS
733 GNULIB_PUTCHAR
734 GNULIB_PUTC
735 GNULIB_FPUTC
736 GNULIB_FCLOSE
737 GNULIB_FFLUSH
738 GNULIB_FTELLO
739 GNULIB_FTELL
740 GNULIB_FSEEKO
741 GNULIB_FSEEK
742 GNULIB_FREOPEN
743 GNULIB_FOPEN
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_VASPRINTF
747 GNULIB_VSPRINTF_POSIX
748 GNULIB_VSNPRINTF
749 GNULIB_VPRINTF_POSIX
750 GNULIB_VPRINTF
751 GNULIB_VFPRINTF_POSIX
752 GNULIB_VFPRINTF
753 GNULIB_SPRINTF_POSIX
754 GNULIB_SNPRINTF
755 GNULIB_PRINTF_POSIX
756 GNULIB_PRINTF
757 GNULIB_FPRINTF_POSIX
758 GNULIB_FPRINTF
759 STDINT_H
760 WINT_T_SUFFIX
761 WCHAR_T_SUFFIX
762 SIG_ATOMIC_T_SUFFIX
763 SIZE_T_SUFFIX
764 PTRDIFF_T_SUFFIX
765 HAVE_SIGNED_WINT_T
766 HAVE_SIGNED_WCHAR_T
767 HAVE_SIGNED_SIG_ATOMIC_T
768 BITSIZEOF_WINT_T
769 BITSIZEOF_WCHAR_T
770 BITSIZEOF_SIG_ATOMIC_T
771 BITSIZEOF_SIZE_T
772 BITSIZEOF_PTRDIFF_T
773 HAVE_SYS_BITYPES_H
774 HAVE_SYS_INTTYPES_H
775 HAVE_STDINT_H
776 NEXT_STDINT_H
777 HAVE_SYS_TYPES_H
778 HAVE_INTTYPES_H
779 HAVE_UNSIGNED_LONG_LONG_INT
780 HAVE_LONG_LONG_INT
781 HAVE__BOOL
782 STDBOOL_H
783 UNISTD_H_HAVE_WINSOCK2_H
784 REPLACE_WRITE
785 REPLACE_LSEEK
786 REPLACE_LCHOWN
787 REPLACE_GETPAGESIZE
788 REPLACE_GETCWD
789 REPLACE_FCHDIR
790 REPLACE_CLOSE
791 REPLACE_CHOWN
792 HAVE_SYS_PARAM_H
793 HAVE_OS_H
794 HAVE_DECL_GETLOGIN_R
795 HAVE_DECL_ENVIRON
796 HAVE_SLEEP
797 HAVE_READLINK
798 HAVE_GETUSERSHELL
799 HAVE_GETPAGESIZE
800 HAVE_GETHOSTNAME
801 HAVE_GETDTABLESIZE
802 HAVE_GETDOMAINNAME
803 HAVE_FTRUNCATE
804 HAVE_FSYNC
805 HAVE_EUIDACCESS
806 HAVE_DUP2
807 GNULIB_WRITE
808 GNULIB_UNISTD_H_SIGPIPE
809 GNULIB_SLEEP
810 GNULIB_READLINK
811 GNULIB_LSEEK
812 GNULIB_LCHOWN
813 GNULIB_GETUSERSHELL
814 GNULIB_GETPAGESIZE
815 GNULIB_GETLOGIN_R
816 GNULIB_GETHOSTNAME
817 GNULIB_GETDTABLESIZE
818 GNULIB_GETDOMAINNAME
819 GNULIB_GETCWD
820 GNULIB_FTRUNCATE
821 GNULIB_FSYNC
822 GNULIB_FCHDIR
823 GNULIB_EUIDACCESS
824 GNULIB_ENVIRON
825 GNULIB_DUP2
826 GNULIB_CLOSE
827 GNULIB_CHOWN
828 APPLE_UNIVERSAL_BUILD
829 REPLACE_STRSIGNAL
830 REPLACE_STRERROR
831 REPLACE_STRCASESTR
832 REPLACE_STRSTR
833 REPLACE_STRDUP
834 REPLACE_MEMMEM
835 HAVE_STRVERSCMP
836 HAVE_DECL_STRSIGNAL
837 HAVE_DECL_STRERROR
838 HAVE_DECL_STRTOK_R
839 HAVE_STRCASESTR
840 HAVE_STRSEP
841 HAVE_STRPBRK
842 HAVE_DECL_STRNLEN
843 HAVE_DECL_STRNDUP
844 HAVE_STRNDUP
845 HAVE_DECL_STRDUP
846 HAVE_STRCHRNUL
847 HAVE_STPNCPY
848 HAVE_STPCPY
849 HAVE_RAWMEMCHR
850 HAVE_DECL_MEMRCHR
851 HAVE_MEMPCPY
852 HAVE_DECL_MEMMEM
853 GNULIB_STRVERSCMP
854 GNULIB_STRSIGNAL
855 GNULIB_STRERROR
856 GNULIB_MBSTOK_R
857 GNULIB_MBSSEP
858 GNULIB_MBSSPN
859 GNULIB_MBSPBRK
860 GNULIB_MBSCSPN
861 GNULIB_MBSCASESTR
862 GNULIB_MBSPCASECMP
863 GNULIB_MBSNCASECMP
864 GNULIB_MBSCASECMP
865 GNULIB_MBSSTR
866 GNULIB_MBSRCHR
867 GNULIB_MBSCHR
868 GNULIB_MBSNLEN
869 GNULIB_MBSLEN
870 GNULIB_STRTOK_R
871 GNULIB_STRCASESTR
872 GNULIB_STRSTR
873 GNULIB_STRSEP
874 GNULIB_STRPBRK
875 GNULIB_STRNLEN
876 GNULIB_STRNDUP
877 GNULIB_STRDUP
878 GNULIB_STRCHRNUL
879 GNULIB_STPNCPY
880 GNULIB_STPCPY
881 GNULIB_RAWMEMCHR
882 GNULIB_MEMRCHR
883 GNULIB_MEMPCPY
884 GNULIB_MEMMEM
885 VOID_UNSETENV
886 REPLACE_STRTOD
887 REPLACE_PUTENV
888 REPLACE_MKSTEMP
889 HAVE_DECL_GETLOADAVG
890 HAVE_UNSETENV
891 HAVE_SYS_LOADAVG_H
892 HAVE_STRUCT_RANDOM_DATA
893 HAVE_STRTOULL
894 HAVE_STRTOLL
895 HAVE_STRTOD
896 HAVE_SETENV
897 HAVE_RPMATCH
898 HAVE_RANDOM_R
899 HAVE_REALLOC_POSIX
900 HAVE_MKDTEMP
901 HAVE_GETSUBOPT
902 HAVE_CALLOC_POSIX
903 HAVE_ATOLL
904 GNULIB_UNSETENV
905 GNULIB_STRTOULL
906 GNULIB_STRTOLL
907 GNULIB_STRTOD
908 GNULIB_SETENV
909 GNULIB_RPMATCH
910 GNULIB_RANDOM_R
911 GNULIB_PUTENV
912 GNULIB_MKSTEMP
913 GNULIB_MKDTEMP
914 GNULIB_GETSUBOPT
915 GNULIB_GETLOADAVG
916 GNULIB_ATOLL
917 GNULIB_CALLOC_POSIX
918 GNULIB_REALLOC_POSIX
919 GNULIB_MALLOC_POSIX
920 HAVE_MALLOC_POSIX
921 LTLIBINTL
922 LIBINTL
923 FLOAT_H
924 NEXT_FLOAT_H
925 EOVERFLOW_VALUE
926 EOVERFLOW_HIDDEN
927 ENOLINK_VALUE
928 ENOLINK_HIDDEN
929 EMULTIHOP_VALUE
930 EMULTIHOP_HIDDEN
931 ERRNO_H
932 NEXT_ERRNO_H
933 PRAGMA_SYSTEM_HEADER
934 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
935 INCLUDE_NEXT
936 GETOPT_H
937 ALLOCA_H
938 ALLOCA
939 GL_COND_LIBTOOL_FALSE
940 GL_COND_LIBTOOL_TRUE
941 EGREP
942 GREP
943 CPP
944 host_os
945 host_vendor
946 host_cpu
947 host
948 build_os
949 build_vendor
950 build_cpu
951 build
952 RANLIB
953 am__fastdepCC_FALSE
954 am__fastdepCC_TRUE
955 CCDEPMODE
956 AMDEPBACKSLASH
957 AMDEP_FALSE
958 AMDEP_TRUE
959 am__quote
960 am__include
961 DEPDIR
962 OBJEXT
963 EXEEXT
964 ac_ct_CC
965 CPPFLAGS
966 LDFLAGS
967 CFLAGS
968 CC
969 am__untar
970 am__tar
971 AMTAR
972 am__leading_dot
973 SET_MAKE
974 AWK
975 mkdir_p
976 MKDIR_P
977 INSTALL_STRIP_PROGRAM
978 STRIP
979 install_sh
980 MAKEINFO
981 AUTOHEADER
982 AUTOMAKE
983 AUTOCONF
984 ACLOCAL
985 VERSION
986 PACKAGE
987 CYGPATH_W
988 am__isrc
989 INSTALL_DATA
990 INSTALL_SCRIPT
991 INSTALL_PROGRAM
992 target_alias
993 host_alias
994 build_alias
995 LIBS
996 ECHO_T
997 ECHO_N
998 ECHO_C
999 DEFS
1000 mandir
1001 localedir
1002 libdir
1003 psdir
1004 pdfdir
1005 dvidir
1006 htmldir
1007 infodir
1008 docdir
1009 oldincludedir
1010 includedir
1011 localstatedir
1012 sharedstatedir
1013 sysconfdir
1014 datadir
1015 datarootdir
1016 libexecdir
1017 sbindir
1018 bindir
1019 program_transform_name
1020 prefix
1021 exec_prefix
1022 PACKAGE_BUGREPORT
1023 PACKAGE_STRING
1024 PACKAGE_VERSION
1025 PACKAGE_TARNAME
1026 PACKAGE_NAME
1027 PATH_SEPARATOR
1028 SHELL'
1029 ac_subst_files=''
1030 ac_user_opts='
1031 enable_option_checking
1032 enable_dependency_tracking
1033 '
1034 ac_precious_vars='build_alias
1035 host_alias
1036 target_alias
1037 CC
1038 CFLAGS
1039 LDFLAGS
1040 LIBS
1041 CPPFLAGS
1042 CPP'
1043
1044
1045 # Initialize some variables set by options.
1046 ac_init_help=
1047 ac_init_version=false
1048 ac_unrecognized_opts=
1049 ac_unrecognized_sep=
1050 # The variables have the same names as the options, with
1051 # dashes changed to underlines.
1052 cache_file=/dev/null
1053 exec_prefix=NONE
1054 no_create=
1055 no_recursion=
1056 prefix=NONE
1057 program_prefix=NONE
1058 program_suffix=NONE
1059 program_transform_name=s,x,x,
1060 silent=
1061 site=
1062 srcdir=
1063 verbose=
1064 x_includes=NONE
1065 x_libraries=NONE
1066
1067 # Installation directory options.
1068 # These are left unexpanded so users can "make install exec_prefix=/foo"
1069 # and all the variables that are supposed to be based on exec_prefix
1070 # by default will actually change.
1071 # Use braces instead of parens because sh, perl, etc. also accept them.
1072 # (The list follows the same order as the GNU Coding Standards.)
1073 bindir='${exec_prefix}/bin'
1074 sbindir='${exec_prefix}/sbin'
1075 libexecdir='${exec_prefix}/libexec'
1076 datarootdir='${prefix}/share'
1077 datadir='${datarootdir}'
1078 sysconfdir='${prefix}/etc'
1079 sharedstatedir='${prefix}/com'
1080 localstatedir='${prefix}/var'
1081 includedir='${prefix}/include'
1082 oldincludedir='/usr/include'
1083 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1084 infodir='${datarootdir}/info'
1085 htmldir='${docdir}'
1086 dvidir='${docdir}'
1087 pdfdir='${docdir}'
1088 psdir='${docdir}'
1089 libdir='${exec_prefix}/lib'
1090 localedir='${datarootdir}/locale'
1091 mandir='${datarootdir}/man'
1092
1093 ac_prev=
1094 ac_dashdash=
1095 for ac_option
1096 do
1097 # If the previous option needs an argument, assign it.
1098 if test -n "$ac_prev"; then
1099 eval $ac_prev=\$ac_option
1100 ac_prev=
1101 continue
1102 fi
1103
1104 case $ac_option in
1105 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 *) ac_optarg=yes ;;
1107 esac
1108
1109 # Accept the important Cygnus configure options, so we can diagnose typos.
1110
1111 case $ac_dashdash$ac_option in
1112 --)
1113 ac_dashdash=yes ;;
1114
1115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1116 ac_prev=bindir ;;
1117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1118 bindir=$ac_optarg ;;
1119
1120 -build | --build | --buil | --bui | --bu)
1121 ac_prev=build_alias ;;
1122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1123 build_alias=$ac_optarg ;;
1124
1125 -cache-file | --cache-file | --cache-fil | --cache-fi \
1126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1127 ac_prev=cache_file ;;
1128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1130 cache_file=$ac_optarg ;;
1131
1132 --config-cache | -C)
1133 cache_file=config.cache ;;
1134
1135 -datadir | --datadir | --datadi | --datad)
1136 ac_prev=datadir ;;
1137 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1138 datadir=$ac_optarg ;;
1139
1140 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1141 | --dataroo | --dataro | --datar)
1142 ac_prev=datarootdir ;;
1143 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1144 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1145 datarootdir=$ac_optarg ;;
1146
1147 -disable-* | --disable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "enable_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval enable_$ac_useropt=no ;;
1163
1164 -docdir | --docdir | --docdi | --doc | --do)
1165 ac_prev=docdir ;;
1166 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1167 docdir=$ac_optarg ;;
1168
1169 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1170 ac_prev=dvidir ;;
1171 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1172 dvidir=$ac_optarg ;;
1173
1174 -enable-* | --enable-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "enable_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval enable_$ac_useropt=\$ac_optarg ;;
1190
1191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1193 | --exec | --exe | --ex)
1194 ac_prev=exec_prefix ;;
1195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1197 | --exec=* | --exe=* | --ex=*)
1198 exec_prefix=$ac_optarg ;;
1199
1200 -gas | --gas | --ga | --g)
1201 # Obsolete; use --with-gas.
1202 with_gas=yes ;;
1203
1204 -help | --help | --hel | --he | -h)
1205 ac_init_help=long ;;
1206 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1207 ac_init_help=recursive ;;
1208 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1209 ac_init_help=short ;;
1210
1211 -host | --host | --hos | --ho)
1212 ac_prev=host_alias ;;
1213 -host=* | --host=* | --hos=* | --ho=*)
1214 host_alias=$ac_optarg ;;
1215
1216 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1217 ac_prev=htmldir ;;
1218 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1219 | --ht=*)
1220 htmldir=$ac_optarg ;;
1221
1222 -includedir | --includedir | --includedi | --included | --include \
1223 | --includ | --inclu | --incl | --inc)
1224 ac_prev=includedir ;;
1225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1226 | --includ=* | --inclu=* | --incl=* | --inc=*)
1227 includedir=$ac_optarg ;;
1228
1229 -infodir | --infodir | --infodi | --infod | --info | --inf)
1230 ac_prev=infodir ;;
1231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1232 infodir=$ac_optarg ;;
1233
1234 -libdir | --libdir | --libdi | --libd)
1235 ac_prev=libdir ;;
1236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1237 libdir=$ac_optarg ;;
1238
1239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1240 | --libexe | --libex | --libe)
1241 ac_prev=libexecdir ;;
1242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1243 | --libexe=* | --libex=* | --libe=*)
1244 libexecdir=$ac_optarg ;;
1245
1246 -localedir | --localedir | --localedi | --localed | --locale)
1247 ac_prev=localedir ;;
1248 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1249 localedir=$ac_optarg ;;
1250
1251 -localstatedir | --localstatedir | --localstatedi | --localstated \
1252 | --localstate | --localstat | --localsta | --localst | --locals)
1253 ac_prev=localstatedir ;;
1254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1255 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1256 localstatedir=$ac_optarg ;;
1257
1258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1259 ac_prev=mandir ;;
1260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1261 mandir=$ac_optarg ;;
1262
1263 -nfp | --nfp | --nf)
1264 # Obsolete; use --without-fp.
1265 with_fp=no ;;
1266
1267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1268 | --no-cr | --no-c | -n)
1269 no_create=yes ;;
1270
1271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1273 no_recursion=yes ;;
1274
1275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1277 | --oldin | --oldi | --old | --ol | --o)
1278 ac_prev=oldincludedir ;;
1279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1282 oldincludedir=$ac_optarg ;;
1283
1284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1285 ac_prev=prefix ;;
1286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1287 prefix=$ac_optarg ;;
1288
1289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1290 | --program-pre | --program-pr | --program-p)
1291 ac_prev=program_prefix ;;
1292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1294 program_prefix=$ac_optarg ;;
1295
1296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1297 | --program-suf | --program-su | --program-s)
1298 ac_prev=program_suffix ;;
1299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1301 program_suffix=$ac_optarg ;;
1302
1303 -program-transform-name | --program-transform-name \
1304 | --program-transform-nam | --program-transform-na \
1305 | --program-transform-n | --program-transform- \
1306 | --program-transform | --program-transfor \
1307 | --program-transfo | --program-transf \
1308 | --program-trans | --program-tran \
1309 | --progr-tra | --program-tr | --program-t)
1310 ac_prev=program_transform_name ;;
1311 -program-transform-name=* | --program-transform-name=* \
1312 | --program-transform-nam=* | --program-transform-na=* \
1313 | --program-transform-n=* | --program-transform-=* \
1314 | --program-transform=* | --program-transfor=* \
1315 | --program-transfo=* | --program-transf=* \
1316 | --program-trans=* | --program-tran=* \
1317 | --progr-tra=* | --program-tr=* | --program-t=*)
1318 program_transform_name=$ac_optarg ;;
1319
1320 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1321 ac_prev=pdfdir ;;
1322 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1323 pdfdir=$ac_optarg ;;
1324
1325 -psdir | --psdir | --psdi | --psd | --ps)
1326 ac_prev=psdir ;;
1327 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1328 psdir=$ac_optarg ;;
1329
1330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1331 | -silent | --silent | --silen | --sile | --sil)
1332 silent=yes ;;
1333
1334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1335 ac_prev=sbindir ;;
1336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1337 | --sbi=* | --sb=*)
1338 sbindir=$ac_optarg ;;
1339
1340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1342 | --sharedst | --shareds | --shared | --share | --shar \
1343 | --sha | --sh)
1344 ac_prev=sharedstatedir ;;
1345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1348 | --sha=* | --sh=*)
1349 sharedstatedir=$ac_optarg ;;
1350
1351 -site | --site | --sit)
1352 ac_prev=site ;;
1353 -site=* | --site=* | --sit=*)
1354 site=$ac_optarg ;;
1355
1356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1357 ac_prev=srcdir ;;
1358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1359 srcdir=$ac_optarg ;;
1360
1361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1362 | --syscon | --sysco | --sysc | --sys | --sy)
1363 ac_prev=sysconfdir ;;
1364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1366 sysconfdir=$ac_optarg ;;
1367
1368 -target | --target | --targe | --targ | --tar | --ta | --t)
1369 ac_prev=target_alias ;;
1370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1371 target_alias=$ac_optarg ;;
1372
1373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1374 verbose=yes ;;
1375
1376 -version | --version | --versio | --versi | --vers | -V)
1377 ac_init_version=: ;;
1378
1379 -with-* | --with-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1384 { (exit 1); exit 1; }; }
1385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1388 *"
1389 "with_$ac_useropt"
1390 "*) ;;
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1393 esac
1394 eval with_$ac_useropt=\$ac_optarg ;;
1395
1396 -without-* | --without-*)
1397 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1400 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1401 { (exit 1); exit 1; }; }
1402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1405 *"
1406 "with_$ac_useropt"
1407 "*) ;;
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1410 esac
1411 eval with_$ac_useropt=no ;;
1412
1413 --x)
1414 # Obsolete; use --with-x.
1415 with_x=yes ;;
1416
1417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1418 | --x-incl | --x-inc | --x-in | --x-i)
1419 ac_prev=x_includes ;;
1420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1422 x_includes=$ac_optarg ;;
1423
1424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1426 ac_prev=x_libraries ;;
1427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1429 x_libraries=$ac_optarg ;;
1430
1431 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1432 Try \`$0 --help' for more information." >&2
1433 { (exit 1); exit 1; }; }
1434 ;;
1435
1436 *=*)
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1440 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1441 { (exit 1); exit 1; }; }
1442 eval $ac_envvar=\$ac_optarg
1443 export $ac_envvar ;;
1444
1445 *)
1446 # FIXME: should be removed in autoconf 3.0.
1447 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1448 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1450 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1451 ;;
1452
1453 esac
1454 done
1455
1456 if test -n "$ac_prev"; then
1457 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1458 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1459 { (exit 1); exit 1; }; }
1460 fi
1461
1462 if test -n "$ac_unrecognized_opts"; then
1463 case $enable_option_checking in
1464 no) ;;
1465 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1466 { (exit 1); exit 1; }; } ;;
1467 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1468 esac
1469 fi
1470
1471 # Check all directory arguments for consistency.
1472 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1473 datadir sysconfdir sharedstatedir localstatedir includedir \
1474 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1475 libdir localedir mandir
1476 do
1477 eval ac_val=\$$ac_var
1478 # Remove trailing slashes.
1479 case $ac_val in
1480 */ )
1481 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1482 eval $ac_var=\$ac_val;;
1483 esac
1484 # Be sure to have absolute directory names.
1485 case $ac_val in
1486 [\\/$]* | ?:[\\/]* ) continue;;
1487 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1488 esac
1489 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1490 { (exit 1); exit 1; }; }
1491 done
1492
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1496 build=$build_alias
1497 host=$host_alias
1498 target=$target_alias
1499
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x; then
1502 if test "x$build_alias" = x; then
1503 cross_compiling=maybe
1504 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1505 If a cross compiler is detected then cross compile mode will be used." >&2
1506 elif test "x$build_alias" != "x$host_alias"; then
1507 cross_compiling=yes
1508 fi
1509 fi
1510
1511 ac_tool_prefix=
1512 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1513
1514 test "$silent" = yes && exec 6>/dev/null
1515
1516
1517 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1518 ac_ls_di=`ls -di .` &&
1519 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1520 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1521 { (exit 1); exit 1; }; }
1522 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1523 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1524 { (exit 1); exit 1; }; }
1525
1526
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1539 q
1540 }
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1543 q
1544 }
1545 /^X\(\/\/\)$/{
1546 s//\1/
1547 q
1548 }
1549 /^X\(\/\).*/{
1550 s//\1/
1551 q
1552 }
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1557 fi
1558 else
1559 ac_srcdir_defaulted=no
1560 fi
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1564 { (exit 1); exit 1; }; }
1565 fi
1566 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 ac_abs_confdir=`(
1568 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1569 { (exit 1); exit 1; }; }
1570 pwd)`
1571 # When building in place, set srcdir=.
1572 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 srcdir=.
1574 fi
1575 # Remove unnecessary trailing slashes from srcdir.
1576 # Double slashes in file names in object file debugging info
1577 # mess up M-x gdb in Emacs.
1578 case $srcdir in
1579 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1580 esac
1581 for ac_var in $ac_precious_vars; do
1582 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_env_${ac_var}_value=\$${ac_var}
1584 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1585 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1586 done
1587
1588 #
1589 # Report the --help message.
1590 #
1591 if test "$ac_init_help" = "long"; then
1592 # Omit some internal or obsolete options to make the list less imposing.
1593 # This message is too long to be a string in the A/UX 3.1 sh.
1594 cat <<_ACEOF
1595 \`configure' configures LWTOOLS 2.5-pre to adapt to many kinds of systems.
1596
1597 Usage: $0 [OPTION]... [VAR=VALUE]...
1598
1599 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1600 VAR=VALUE. See below for descriptions of some of the useful variables.
1601
1602 Defaults for the options are specified in brackets.
1603
1604 Configuration:
1605 -h, --help display this help and exit
1606 --help=short display options specific to this package
1607 --help=recursive display the short help of all the included packages
1608 -V, --version display version information and exit
1609 -q, --quiet, --silent do not print \`checking...' messages
1610 --cache-file=FILE cache test results in FILE [disabled]
1611 -C, --config-cache alias for \`--cache-file=config.cache'
1612 -n, --no-create do not create output files
1613 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1614
1615 Installation directories:
1616 --prefix=PREFIX install architecture-independent files in PREFIX
1617 [$ac_default_prefix]
1618 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 [PREFIX]
1620
1621 By default, \`make install' will install all the files in
1622 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1623 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1624 for instance \`--prefix=\$HOME'.
1625
1626 For better control, use the options below.
1627
1628 Fine tuning of the installation directories:
1629 --bindir=DIR user executables [EPREFIX/bin]
1630 --sbindir=DIR system admin executables [EPREFIX/sbin]
1631 --libexecdir=DIR program executables [EPREFIX/libexec]
1632 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1633 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1634 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1635 --libdir=DIR object code libraries [EPREFIX/lib]
1636 --includedir=DIR C header files [PREFIX/include]
1637 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1638 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1639 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1640 --infodir=DIR info documentation [DATAROOTDIR/info]
1641 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1642 --mandir=DIR man documentation [DATAROOTDIR/man]
1643 --docdir=DIR documentation root [DATAROOTDIR/doc/lwtools]
1644 --htmldir=DIR html documentation [DOCDIR]
1645 --dvidir=DIR dvi documentation [DOCDIR]
1646 --pdfdir=DIR pdf documentation [DOCDIR]
1647 --psdir=DIR ps documentation [DOCDIR]
1648 _ACEOF
1649
1650 cat <<\_ACEOF
1651
1652 Program names:
1653 --program-prefix=PREFIX prepend PREFIX to installed program names
1654 --program-suffix=SUFFIX append SUFFIX to installed program names
1655 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1656
1657 System types:
1658 --build=BUILD configure for building on BUILD [guessed]
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1660 _ACEOF
1661 fi
1662
1663 if test -n "$ac_init_help"; then
1664 case $ac_init_help in
1665 short | recursive ) echo "Configuration of LWTOOLS 2.5-pre:";;
1666 esac
1667 cat <<\_ACEOF
1668
1669 Optional Features:
1670 --disable-option-checking ignore unrecognized --enable/--with options
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1673 --disable-dependency-tracking speeds up one-time build
1674 --enable-dependency-tracking do not reject slow dependency extractors
1675
1676 Some influential environment variables:
1677 CC C compiler command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1680 nonstandard directory <lib dir>
1681 LIBS libraries to pass to the linker, e.g. -l<library>
1682 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1683 you have headers in a nonstandard directory <include dir>
1684 CPP C preprocessor
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to <lost@l-w.ca>.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695 # If there are subdirs, report their specific --help.
1696 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697 test -d "$ac_dir" ||
1698 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699 continue
1700 ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706 # A ".." for each directory in $ac_dir_suffix.
1707 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708 case $ac_top_builddir_sub in
1709 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711 esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719 .) # We are building in place.
1720 ac_srcdir=.
1721 ac_top_srcdir=$ac_top_builddir_sub
1722 ac_abs_top_srcdir=$ac_pwd ;;
1723 [\\/]* | ?:[\\/]* ) # Absolute name.
1724 ac_srcdir=$srcdir$ac_dir_suffix;
1725 ac_top_srcdir=$srcdir
1726 ac_abs_top_srcdir=$srcdir ;;
1727 *) # Relative name.
1728 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729 ac_top_srcdir=$ac_top_build_prefix$srcdir
1730 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734 cd "$ac_dir" || { ac_status=$?; continue; }
1735 # Check for guested configure.
1736 if test -f "$ac_srcdir/configure.gnu"; then
1737 echo &&
1738 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739 elif test -f "$ac_srcdir/configure"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure" --help=recursive
1742 else
1743 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 fi || ac_status=$?
1745 cd "$ac_pwd" || { ac_status=$?; break; }
1746 done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751 cat <<\_ACEOF
1752 LWTOOLS configure 2.5-pre
1753 generated by GNU Autoconf 2.63
1754
1755 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1756 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1757 This configure script is free software; the Free Software Foundation
1758 gives unlimited permission to copy, distribute and modify it.
1759 _ACEOF
1760 exit
1761 fi
1762 cat >config.log <<_ACEOF
1763 This file contains any messages produced by compilers while
1764 running configure, to aid debugging if configure makes a mistake.
1765
1766 It was created by LWTOOLS $as_me 2.5-pre, which was
1767 generated by GNU Autoconf 2.63. Invocation command line was
1768
1769 $ $0 $@
1770
1771 _ACEOF
1772 exec 5>>config.log
1773 {
1774 cat <<_ASUNAME
1775 ## --------- ##
1776 ## Platform. ##
1777 ## --------- ##
1778
1779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1784
1785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1787
1788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1795
1796 _ASUNAME
1797
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 $as_echo "PATH: $as_dir"
1804 done
1805 IFS=$as_save_IFS
1806
1807 } >&5
1808
1809 cat >&5 <<_ACEOF
1810
1811
1812 ## ----------- ##
1813 ## Core tests. ##
1814 ## ----------- ##
1815
1816 _ACEOF
1817
1818
1819 # Keep a trace of the command line.
1820 # Strip out --no-create and --no-recursion so they do not pile up.
1821 # Strip out --silent because we don't want to record it for future runs.
1822 # Also quote any args containing shell meta-characters.
1823 # Make two passes to allow for proper duplicate-argument suppression.
1824 ac_configure_args=
1825 ac_configure_args0=
1826 ac_configure_args1=
1827 ac_must_keep_next=false
1828 for ac_pass in 1 2
1829 do
1830 for ac_arg
1831 do
1832 case $ac_arg in
1833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1835 | -silent | --silent | --silen | --sile | --sil)
1836 continue ;;
1837 *\'*)
1838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 esac
1840 case $ac_pass in
1841 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1842 2)
1843 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1844 if test $ac_must_keep_next = true; then
1845 ac_must_keep_next=false # Got value, back to normal.
1846 else
1847 case $ac_arg in
1848 *=* | --config-cache | -C | -disable-* | --disable-* \
1849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1851 | -with-* | --with-* | -without-* | --without-* | --x)
1852 case "$ac_configure_args0 " in
1853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1854 esac
1855 ;;
1856 -* ) ac_must_keep_next=true ;;
1857 esac
1858 fi
1859 ac_configure_args="$ac_configure_args '$ac_arg'"
1860 ;;
1861 esac
1862 done
1863 done
1864 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1865 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1866
1867 # When interrupted or exit'd, cleanup temporary files, and complete
1868 # config.log. We remove comments because anyway the quotes in there
1869 # would cause problems or look ugly.
1870 # WARNING: Use '\'' to represent an apostrophe within the trap.
1871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1872 trap 'exit_status=$?
1873 # Save into config.log some information that might help in debugging.
1874 {
1875 echo
1876
1877 cat <<\_ASBOX
1878 ## ---------------- ##
1879 ## Cache variables. ##
1880 ## ---------------- ##
1881 _ASBOX
1882 echo
1883 # The following way of writing the cache mishandles newlines in values,
1884 (
1885 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1886 eval ac_val=\$$ac_var
1887 case $ac_val in #(
1888 *${as_nl}*)
1889 case $ac_var in #(
1890 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1891 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1892 esac
1893 case $ac_var in #(
1894 _ | IFS | as_nl) ;; #(
1895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1896 *) $as_unset $ac_var ;;
1897 esac ;;
1898 esac
1899 done
1900 (set) 2>&1 |
1901 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1902 *${as_nl}ac_space=\ *)
1903 sed -n \
1904 "s/'\''/'\''\\\\'\'''\''/g;
1905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1906 ;; #(
1907 *)
1908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909 ;;
1910 esac |
1911 sort
1912 )
1913 echo
1914
1915 cat <<\_ASBOX
1916 ## ----------------- ##
1917 ## Output variables. ##
1918 ## ----------------- ##
1919 _ASBOX
1920 echo
1921 for ac_var in $ac_subst_vars
1922 do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926 esac
1927 $as_echo "$ac_var='\''$ac_val'\''"
1928 done | sort
1929 echo
1930
1931 if test -n "$ac_subst_files"; then
1932 cat <<\_ASBOX
1933 ## ------------------- ##
1934 ## File substitutions. ##
1935 ## ------------------- ##
1936 _ASBOX
1937 echo
1938 for ac_var in $ac_subst_files
1939 do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in
1942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1943 esac
1944 $as_echo "$ac_var='\''$ac_val'\''"
1945 done | sort
1946 echo
1947 fi
1948
1949 if test -s confdefs.h; then
1950 cat <<\_ASBOX
1951 ## ----------- ##
1952 ## confdefs.h. ##
1953 ## ----------- ##
1954 _ASBOX
1955 echo
1956 cat confdefs.h
1957 echo
1958 fi
1959 test "$ac_signal" != 0 &&
1960 $as_echo "$as_me: caught signal $ac_signal"
1961 $as_echo "$as_me: exit $exit_status"
1962 } >&5
1963 rm -f core *.core core.conftest.* &&
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965 exit $exit_status
1966 ' 0
1967 for ac_signal in 1 2 13 15; do
1968 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1969 done
1970 ac_signal=0
1971
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1974
1975 # Predefined preprocessor variables.
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_NAME "$PACKAGE_NAME"
1979 _ACEOF
1980
1981
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1984 _ACEOF
1985
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1989 _ACEOF
1990
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_STRING "$PACKAGE_STRING"
1994 _ACEOF
1995
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999 _ACEOF
2000
2001
2002 # Let the site file select an alternate cache file if it wants to.
2003 # Prefer an explicitly selected file to automatically selected ones.
2004 ac_site_file1=NONE
2005 ac_site_file2=NONE
2006 if test -n "$CONFIG_SITE"; then
2007 ac_site_file1=$CONFIG_SITE
2008 elif test "x$prefix" != xNONE; then
2009 ac_site_file1=$prefix/share/config.site
2010 ac_site_file2=$prefix/etc/config.site
2011 else
2012 ac_site_file1=$ac_default_prefix/share/config.site
2013 ac_site_file2=$ac_default_prefix/etc/config.site
2014 fi
2015 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2016 do
2017 test "x$ac_site_file" = xNONE && continue
2018 if test -r "$ac_site_file"; then
2019 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2020 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2021 sed 's/^/| /' "$ac_site_file" >&5
2022 . "$ac_site_file"
2023 fi
2024 done
2025
2026 if test -r "$cache_file"; then
2027 # Some versions of bash will fail to source /dev/null (special
2028 # files actually), so we avoid doing that.
2029 if test -f "$cache_file"; then
2030 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2031 $as_echo "$as_me: loading cache $cache_file" >&6;}
2032 case $cache_file in
2033 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2034 *) . "./$cache_file";;
2035 esac
2036 fi
2037 else
2038 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2039 $as_echo "$as_me: creating cache $cache_file" >&6;}
2040 >$cache_file
2041 fi
2042
2043 gl_func_list="$gl_func_list flockfile"
2044 gl_func_list="$gl_func_list funlockfile"
2045 gl_header_list="$gl_header_list features.h"
2046 gl_header_list="$gl_header_list linewrap.h"
2047 gl_header_list="$gl_header_list errno.h"
2048 gl_header_list="$gl_header_list float.h"
2049 gl_header_list="$gl_header_list stdint.h"
2050 gl_header_list="$gl_header_list wchar.h"
2051 gl_header_list="$gl_header_list stdio.h"
2052 gl_header_list="$gl_header_list stdlib.h"
2053 gl_header_list="$gl_header_list sys/socket.h"
2054 gl_header_list="$gl_header_list string.h"
2055 gl_header_list="$gl_header_list strings.h"
2056 gl_header_list="$gl_header_list sysexits.h"
2057 gl_header_list="$gl_header_list unistd.h"
2058 gl_func_list="$gl_func_list vasnprintf"
2059 # Check that the precious variables saved in the cache have kept the same
2060 # value.
2061 ac_cache_corrupted=false
2062 for ac_var in $ac_precious_vars; do
2063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2064 eval ac_new_set=\$ac_env_${ac_var}_set
2065 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2066 eval ac_new_val=\$ac_env_${ac_var}_value
2067 case $ac_old_set,$ac_new_set in
2068 set,)
2069 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2070 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2071 ac_cache_corrupted=: ;;
2072 ,set)
2073 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2074 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2076 ,);;
2077 *)
2078 if test "x$ac_old_val" != "x$ac_new_val"; then
2079 # differences in whitespace do not lead to failure.
2080 ac_old_val_w=`echo x $ac_old_val`
2081 ac_new_val_w=`echo x $ac_new_val`
2082 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2083 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2084 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2085 ac_cache_corrupted=:
2086 else
2087 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2088 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2089 eval $ac_var=\$ac_old_val
2090 fi
2091 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2092 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2093 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2094 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2095 fi;;
2096 esac
2097 # Pass precious variables to config.status.
2098 if test "$ac_new_set" = set; then
2099 case $ac_new_val in
2100 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2101 *) ac_arg=$ac_var=$ac_new_val ;;
2102 esac
2103 case " $ac_configure_args " in
2104 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2105 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2106 esac
2107 fi
2108 done
2109 if $ac_cache_corrupted; then
2110 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2113 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2114 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2115 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2116 { (exit 1); exit 1; }; }
2117 fi
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143 ac_ext=c
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148
2149
2150 am__api_version='1.10'
2151
2152 ac_aux_dir=
2153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2154 if test -f "$ac_dir/install-sh"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/install-sh -c"
2157 break
2158 elif test -f "$ac_dir/install.sh"; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/install.sh -c"
2161 break
2162 elif test -f "$ac_dir/shtool"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/shtool install -c"
2165 break
2166 fi
2167 done
2168 if test -z "$ac_aux_dir"; then
2169 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2170 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2171 { (exit 1); exit 1; }; }
2172 fi
2173
2174 # These three variables are undocumented and unsupported,
2175 # and are intended to be withdrawn in a future Autoconf release.
2176 # They can cause serious problems if a builder's source tree is in a directory
2177 # whose full name contains unusual characters.
2178 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2179 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2180 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2181
2182
2183 # Find a good install program. We prefer a C program (faster),
2184 # so one script is as good as another. But avoid the broken or
2185 # incompatible versions:
2186 # SysV /etc/install, /usr/sbin/install
2187 # SunOS /usr/etc/install
2188 # IRIX /sbin/install
2189 # AIX /bin/install
2190 # AmigaOS /C/install, which installs bootblocks on floppy discs
2191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2194 # OS/2's system install, which has a completely different semantic
2195 # ./install, which can be erroneously created by make from ./install.sh.
2196 # Reject install programs that cannot install multiple files.
2197 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2198 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2199 if test -z "$INSTALL"; then
2200 if test "${ac_cv_path_install+set}" = set; then
2201 $as_echo_n "(cached) " >&6
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 # Account for people who put trailing slashes in PATH elements.
2209 case $as_dir/ in
2210 ./ | .// | /cC/* | \
2211 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2212 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2213 /usr/ucb/* ) ;;
2214 *)
2215 # OSF1 and SCO ODT 3.0 have their own names for install.
2216 # Don't use installbsd from OSF since it installs stuff as root
2217 # by default.
2218 for ac_prog in ginstall scoinst install; do
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2221 if test $ac_prog = install &&
2222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223 # AIX install. It has an incompatible calling convention.
2224 :
2225 elif test $ac_prog = install &&
2226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2227 # program-specific install script used by HP pwplus--don't use.
2228 :
2229 else
2230 rm -rf conftest.one conftest.two conftest.dir
2231 echo one > conftest.one
2232 echo two > conftest.two
2233 mkdir conftest.dir
2234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2235 test -s conftest.one && test -s conftest.two &&
2236 test -s conftest.dir/conftest.one &&
2237 test -s conftest.dir/conftest.two
2238 then
2239 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2240 break 3
2241 fi
2242 fi
2243 fi
2244 done
2245 done
2246 ;;
2247 esac
2248
2249 done
2250 IFS=$as_save_IFS
2251
2252 rm -rf conftest.one conftest.two conftest.dir
2253
2254 fi
2255 if test "${ac_cv_path_install+set}" = set; then
2256 INSTALL=$ac_cv_path_install
2257 else
2258 # As a last resort, use the slow shell script. Don't cache a
2259 # value for INSTALL within a source directory, because that will
2260 # break other packages using the cache if that directory is
2261 # removed, or if the value is a relative name.
2262 INSTALL=$ac_install_sh
2263 fi
2264 fi
2265 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2266 $as_echo "$INSTALL" >&6; }
2267
2268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2269 # It thinks the first close brace ends the variable substitution.
2270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2271
2272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2273
2274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2275
2276 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2277 $as_echo_n "checking whether build environment is sane... " >&6; }
2278 # Just in case
2279 sleep 1
2280 echo timestamp > conftest.file
2281 # Do `set' in a subshell so we don't clobber the current shell's
2282 # arguments. Must try -L first in case configure is actually a
2283 # symlink; some systems play weird games with the mod time of symlinks
2284 # (eg FreeBSD returns the mod time of the symlink's containing
2285 # directory).
2286 if (
2287 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2288 if test "$*" = "X"; then
2289 # -L didn't work.
2290 set X `ls -t $srcdir/configure conftest.file`
2291 fi
2292 rm -f conftest.file
2293 if test "$*" != "X $srcdir/configure conftest.file" \
2294 && test "$*" != "X conftest.file $srcdir/configure"; then
2295
2296 # If neither matched, then we have a broken ls. This can happen
2297 # if, for instance, CONFIG_SHELL is bash and it inherits a
2298 # broken ls alias from the environment. This has actually
2299 # happened. Such a system could not be considered "sane".
2300 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2301 alias in your environment" >&5
2302 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2303 alias in your environment" >&2;}
2304 { (exit 1); exit 1; }; }
2305 fi
2306
2307 test "$2" = conftest.file
2308 )
2309 then
2310 # Ok.
2311 :
2312 else
2313 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2314 Check your system clock" >&5
2315 $as_echo "$as_me: error: newly created file is older than distributed files!
2316 Check your system clock" >&2;}
2317 { (exit 1); exit 1; }; }
2318 fi
2319 { $as_echo "$as_me:$LINENO: result: yes" >&5
2320 $as_echo "yes" >&6; }
2321 test "$program_prefix" != NONE &&
2322 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2323 # Use a double $ so make ignores it.
2324 test "$program_suffix" != NONE &&
2325 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2326 # Double any \ or $.
2327 # By default was `s,x,x', remove it if useless.
2328 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2329 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2330
2331 # expand $ac_aux_dir to an absolute path
2332 am_aux_dir=`cd $ac_aux_dir && pwd`
2333
2334 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2335 # Use eval to expand $SHELL
2336 if eval "$MISSING --run true"; then
2337 am_missing_run="$MISSING --run "
2338 else
2339 am_missing_run=
2340 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2341 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2342 fi
2343
2344 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2345 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2346 if test -z "$MKDIR_P"; then
2347 if test "${ac_cv_path_mkdir+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2349 else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2352 do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
2355 for ac_prog in mkdir gmkdir; do
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2358 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2359 'mkdir (GNU coreutils) '* | \
2360 'mkdir (coreutils) '* | \
2361 'mkdir (fileutils) '4.1*)
2362 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2363 break 3;;
2364 esac
2365 done
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371
2372 if test "${ac_cv_path_mkdir+set}" = set; then
2373 MKDIR_P="$ac_cv_path_mkdir -p"
2374 else
2375 # As a last resort, use the slow shell script. Don't cache a
2376 # value for MKDIR_P within a source directory, because that will
2377 # break other packages using the cache if that directory is
2378 # removed, or if the value is a relative name.
2379 test -d ./--version && rmdir ./--version
2380 MKDIR_P="$ac_install_sh -d"
2381 fi
2382 fi
2383 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2384 $as_echo "$MKDIR_P" >&6; }
2385
2386 mkdir_p="$MKDIR_P"
2387 case $mkdir_p in
2388 [\\/$]* | ?:[\\/]*) ;;
2389 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2390 esac
2391
2392 for ac_prog in gawk mawk nawk awk
2393 do
2394 # Extract the first word of "$ac_prog", so it can be a program name with args.
2395 set dummy $ac_prog; ac_word=$2
2396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if test "${ac_cv_prog_AWK+set}" = set; then
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$AWK"; then
2402 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_AWK="$ac_prog"
2412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 AWK=$ac_cv_prog_AWK
2422 if test -n "$AWK"; then
2423 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2424 $as_echo "$AWK" >&6; }
2425 else
2426 { $as_echo "$as_me:$LINENO: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430
2431 test -n "$AWK" && break
2432 done
2433
2434 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2435 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2436 set x ${MAKE-make}
2437 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2438 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2439 $as_echo_n "(cached) " >&6
2440 else
2441 cat >conftest.make <<\_ACEOF
2442 SHELL = /bin/sh
2443 all:
2444 @echo '@@@%%%=$(MAKE)=@@@%%%'
2445 _ACEOF
2446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2447 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2448 *@@@%%%=?*=@@@%%%*)
2449 eval ac_cv_prog_make_${ac_make}_set=yes;;
2450 *)
2451 eval ac_cv_prog_make_${ac_make}_set=no;;
2452 esac
2453 rm -f conftest.make
2454 fi
2455 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2456 { $as_echo "$as_me:$LINENO: result: yes" >&5
2457 $as_echo "yes" >&6; }
2458 SET_MAKE=
2459 else
2460 { $as_echo "$as_me:$LINENO: result: no" >&5
2461 $as_echo "no" >&6; }
2462 SET_MAKE="MAKE=${MAKE-make}"
2463 fi
2464
2465 rm -rf .tst 2>/dev/null
2466 mkdir .tst 2>/dev/null
2467 if test -d .tst; then
2468 am__leading_dot=.
2469 else
2470 am__leading_dot=_
2471 fi
2472 rmdir .tst 2>/dev/null
2473
2474 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2475 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2476 # is not polluted with repeated "-I."
2477 am__isrc=' -I$(srcdir)'
2478 # test to see if srcdir already configured
2479 if test -f $srcdir/config.status; then
2480 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2481 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2482 { (exit 1); exit 1; }; }
2483 fi
2484 fi
2485
2486 # test whether we have cygpath
2487 if test -z "$CYGPATH_W"; then
2488 if (cygpath --version) >/dev/null 2>/dev/null; then
2489 CYGPATH_W='cygpath -w'
2490 else
2491 CYGPATH_W=echo
2492 fi
2493 fi
2494
2495
2496 # Define the identity of the package.
2497 PACKAGE='lwtools'
2498 VERSION='2.5-pre'
2499
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE "$PACKAGE"
2503 _ACEOF
2504
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define VERSION "$VERSION"
2508 _ACEOF
2509
2510 # Some tools Automake needs.
2511
2512 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2513
2514
2515 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2516
2517
2518 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2519
2520
2521 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2522
2523
2524 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2525
2526 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2527
2528 # Installed binaries are usually stripped using `strip' when the user
2529 # run `make install-strip'. However `strip' might not be the right
2530 # tool to use in cross-compilation environments, therefore Automake
2531 # will honor the `STRIP' environment variable to overrule this program.
2532 if test "$cross_compiling" != no; then
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}strip; ac_word=$2
2536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if test "${ac_cv_prog_STRIP+set}" = set; then
2539 $as_echo_n "(cached) " >&6
2540 else
2541 if test -n "$STRIP"; then
2542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 STRIP=$ac_cv_prog_STRIP
2562 if test -n "$STRIP"; then
2563 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2564 $as_echo "$STRIP" >&6; }
2565 else
2566 { $as_echo "$as_me:$LINENO: result: no" >&5
2567 $as_echo "no" >&6; }
2568 fi
2569
2570
2571 fi
2572 if test -z "$ac_cv_prog_STRIP"; then
2573 ac_ct_STRIP=$STRIP
2574 # Extract the first word of "strip", so it can be a program name with args.
2575 set dummy strip; ac_word=$2
2576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 $as_echo_n "checking for $ac_word... " >&6; }
2578 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2579 $as_echo_n "(cached) " >&6
2580 else
2581 if test -n "$ac_ct_STRIP"; then
2582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_ac_ct_STRIP="strip"
2592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2602 if test -n "$ac_ct_STRIP"; then
2603 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2604 $as_echo "$ac_ct_STRIP" >&6; }
2605 else
2606 { $as_echo "$as_me:$LINENO: result: no" >&5
2607 $as_echo "no" >&6; }
2608 fi
2609
2610 if test "x$ac_ct_STRIP" = x; then
2611 STRIP=":"
2612 else
2613 case $cross_compiling:$ac_tool_warned in
2614 yes:)
2615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617 ac_tool_warned=yes ;;
2618 esac
2619 STRIP=$ac_ct_STRIP
2620 fi
2621 else
2622 STRIP="$ac_cv_prog_STRIP"
2623 fi
2624
2625 fi
2626 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627
2628 # We need awk for the "check" target. The system "awk" is bad on
2629 # some platforms.
2630 # Always define AMTAR for backward compatibility.
2631
2632 AMTAR=${AMTAR-"${am_missing_run}tar"}
2633
2634 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2635
2636
2637
2638
2639
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_CC+set}" = set; then
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 CC=$ac_cv_prog_CC
2674 if test -n "$CC"; then
2675 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2677 else
2678 { $as_echo "$as_me:$LINENO: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 fi
2684 if test -z "$ac_cv_prog_CC"; then
2685 ac_ct_CC=$CC
2686 # Extract the first word of "gcc", so it can be a program name with args.
2687 set dummy gcc; ac_word=$2
2688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$ac_ct_CC"; then
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_CC="gcc"
2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714 if test -n "$ac_ct_CC"; then
2715 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2716 $as_echo "$ac_ct_CC" >&6; }
2717 else
2718 { $as_echo "$as_me:$LINENO: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 CC=$ac_ct_CC
2732 fi
2733 else
2734 CC="$ac_cv_prog_CC"
2735 fi
2736
2737 if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}cc; ac_word=$2
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}cc"
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771 { $as_echo "$as_me:$LINENO: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776 fi
2777 fi
2778 if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 ac_prog_rejected=no
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $# != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2819 fi
2820 fi
2821 fi
2822 fi
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2827 else
2828 { $as_echo "$as_me:$LINENO: result: no" >&5
2829 $as_echo "no" >&6; }
2830 fi
2831
2832
2833 fi
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 for ac_prog in cl.exe
2837 do
2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870 { $as_echo "$as_me:$LINENO: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 test -n "$CC" && break
2876 done
2877 fi
2878 if test -z "$CC"; then
2879 ac_ct_CC=$CC
2880 for ac_prog in cl.exe
2881 do
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_ac_ct_CC="$ac_prog"
2900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910 if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2912 $as_echo "$ac_ct_CC" >&6; }
2913 else
2914 { $as_echo "$as_me:$LINENO: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 test -n "$ac_ct_CC" && break
2920 done
2921
2922 if test "x$ac_ct_CC" = x; then
2923 CC=""
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931 CC=$ac_ct_CC
2932 fi
2933 fi
2934
2935 fi
2936
2937
2938 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }; }
2945
2946 # Provide some information about the compiler.
2947 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2948 set X $ac_compile
2949 ac_compiler=$2
2950 { (ac_try="$ac_compiler --version >&5"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2956 $as_echo "$ac_try_echo") >&5
2957 (eval "$ac_compiler --version >&5") 2>&5
2958 ac_status=$?
2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961 { (ac_try="$ac_compiler -v >&5"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_compiler -v >&5") 2>&5
2969 ac_status=$?
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }
2972 { (ac_try="$ac_compiler -V >&5"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978 $as_echo "$ac_try_echo") >&5
2979 (eval "$ac_compiler -V >&5") 2>&5
2980 ac_status=$?
2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }
2983
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990
2991 int
2992 main ()
2993 {
2994
2995 ;
2996 return 0;
2997 }
2998 _ACEOF
2999 ac_clean_files_save=$ac_clean_files
3000 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3001 # Try to create an executable without -o first, disregard a.out.
3002 # It will help us diagnose broken compilers, and finding out an intuition
3003 # of exeext.
3004 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3005 $as_echo_n "checking for C compiler default output file name... " >&6; }
3006 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3007
3008 # The possible output files:
3009 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3010
3011 ac_rmfiles=
3012 for ac_file in $ac_files
3013 do
3014 case $ac_file in
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3016 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3017 esac
3018 done
3019 rm -f $ac_rmfiles
3020
3021 if { (ac_try="$ac_link_default"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027 $as_echo "$ac_try_echo") >&5
3028 (eval "$ac_link_default") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; then
3032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3034 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3035 # so that the user can short-circuit this test for compilers unknown to
3036 # Autoconf.
3037 for ac_file in $ac_files ''
3038 do
3039 test -f "$ac_file" || continue
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3042 ;;
3043 [ab].out )
3044 # We found the default executable, but exeext='' is most
3045 # certainly right.
3046 break;;
3047 *.* )
3048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3049 then :; else
3050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3051 fi
3052 # We set ac_cv_exeext here because the later test for it is not
3053 # safe: cross compilers may not add the suffix if given an `-o'
3054 # argument, so we may need to know it at that point already.
3055 # Even if this section looks crufty: it has the advantage of
3056 # actually working.
3057 break;;
3058 * )
3059 break;;
3060 esac
3061 done
3062 test "$ac_cv_exeext" = no && ac_cv_exeext=
3063
3064 else
3065 ac_file=''
3066 fi
3067
3068 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3069 $as_echo "$ac_file" >&6; }
3070 if test -z "$ac_file"; then
3071 $as_echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3077 See \`config.log' for more details." >&5
3078 $as_echo "$as_me: error: C compiler cannot create executables
3079 See \`config.log' for more details." >&2;}
3080 { (exit 77); exit 77; }; }; }
3081 fi
3082
3083 ac_exeext=$ac_cv_exeext
3084
3085 # Check that the compiler produces executables we can run. If not, either
3086 # the compiler is broken, or we cross compile.
3087 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3088 $as_echo_n "checking whether the C compiler works... " >&6; }
3089 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3090 # If not cross compiling, check that we can run a simple program.
3091 if test "$cross_compiling" != yes; then
3092 if { ac_try='./$ac_file'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3098 $as_echo "$ac_try_echo") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 cross_compiling=no
3104 else
3105 if test "$cross_compiling" = maybe; then
3106 cross_compiling=yes
3107 else
3108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3111 If you meant to cross compile, use \`--host'.
3112 See \`config.log' for more details." >&5
3113 $as_echo "$as_me: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }; }
3117 fi
3118 fi
3119 fi
3120 { $as_echo "$as_me:$LINENO: result: yes" >&5
3121 $as_echo "yes" >&6; }
3122
3123 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3124 ac_clean_files=$ac_clean_files_save
3125 # Check that the compiler produces executables we can run. If not, either
3126 # the compiler is broken, or we cross compile.
3127 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3128 $as_echo_n "checking whether we are cross compiling... " >&6; }
3129 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3130 $as_echo "$cross_compiling" >&6; }
3131
3132 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3133 $as_echo_n "checking for suffix of executables... " >&6; }
3134 if { (ac_try="$ac_link"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3140 $as_echo "$ac_try_echo") >&5
3141 (eval "$ac_link") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3148 # `rm'.
3149 for ac_file in conftest.exe conftest conftest.*; do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 break;;
3155 * ) break;;
3156 esac
3157 done
3158 else
3159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3162 See \`config.log' for more details." >&5
3163 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }; }
3166 fi
3167
3168 rm -f conftest$ac_cv_exeext
3169 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3170 $as_echo "$ac_cv_exeext" >&6; }
3171
3172 rm -f conftest.$ac_ext
3173 EXEEXT=$ac_cv_exeext
3174 ac_exeext=$EXEEXT
3175 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3176 $as_echo_n "checking for suffix of object files... " >&6; }
3177 if test "${ac_cv_objext+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.o conftest.obj
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compile") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; then
3207 for ac_file in conftest.o conftest.obj conftest.*; do
3208 test -f "$ac_file" || continue;
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3212 break;;
3213 esac
3214 done
3215 else
3216 $as_echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3222 See \`config.log' for more details." >&5
3223 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3224 See \`config.log' for more details." >&2;}
3225 { (exit 1); exit 1; }; }; }
3226 fi
3227
3228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3229 fi
3230 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3231 $as_echo "$ac_cv_objext" >&6; }
3232 OBJEXT=$ac_cv_objext
3233 ac_objext=$OBJEXT
3234 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3236 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3237 $as_echo_n "(cached) " >&6
3238 else
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245
3246 int
3247 main ()
3248 {
3249 #ifndef __GNUC__
3250 choke me
3251 #endif
3252
3253 ;
3254 return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_compiler_gnu=yes
3276 else
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_compiler_gnu=no
3281 fi
3282
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3285
3286 fi
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3288 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3289 if test $ac_compiler_gnu = yes; then
3290 GCC=yes
3291 else
3292 GCC=
3293 fi
3294 ac_test_CFLAGS=${CFLAGS+set}
3295 ac_save_CFLAGS=$CFLAGS
3296 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3297 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3298 if test "${ac_cv_prog_cc_g+set}" = set; then
3299 $as_echo_n "(cached) " >&6
3300 else
3301 ac_save_c_werror_flag=$ac_c_werror_flag
3302 ac_c_werror_flag=yes
3303 ac_cv_prog_cc_g=no
3304 CFLAGS="-g"
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311
3312 int
3313 main ()
3314 {
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3327 $as_echo "$ac_try_echo") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 ac_cv_prog_cc_g=yes
3339 else
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 CFLAGS=""
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 :
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3383 CFLAGS="-g"
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3417 ac_cv_prog_cc_g=yes
3418 else
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422
3423 fi
3424
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 fi
3427
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3433 fi
3434 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3435 $as_echo "$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437 CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439 if test "$GCC" = yes; then
3440 CFLAGS="-g -O2"
3441 else
3442 CFLAGS="-g"
3443 fi
3444 else
3445 if test "$GCC" = yes; then
3446 CFLAGS="-O2"
3447 else
3448 CFLAGS=
3449 fi
3450 fi
3451 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3453 if test "${ac_cv_prog_cc_c89+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_cv_prog_cc_c89=no
3457 ac_save_CC=$CC
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include <stdarg.h>
3465 #include <stdio.h>
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3472 char **p;
3473 int i;
3474 {
3475 return p[i];
3476 }
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3478 {
3479 char *s;
3480 va_list v;
3481 va_start (v,p);
3482 s = g (p, va_arg (v,int));
3483 va_end (v);
3484 return s;
3485 }
3486
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3495
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3498 #define FOO(x) 'x'
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3500
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 int argc;
3506 char **argv;
3507 int
3508 main ()
3509 {
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3517 do
3518 CC="$ac_save_CC $ac_arg"
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3521 case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
3537 ac_cv_prog_cc_c89=$ac_arg
3538 else
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542
3543 fi
3544
3545 rm -f core conftest.err conftest.$ac_objext
3546 test "x$ac_cv_prog_cc_c89" != "xno" && break
3547 done
3548 rm -f conftest.$ac_ext
3549 CC=$ac_save_CC
3550
3551 fi
3552 # AC_CACHE_VAL
3553 case "x$ac_cv_prog_cc_c89" in
3554 x)
3555 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3556 $as_echo "none needed" >&6; } ;;
3557 xno)
3558 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3559 $as_echo "unsupported" >&6; } ;;
3560 *)
3561 CC="$CC $ac_cv_prog_cc_c89"
3562 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3564 esac
3565
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 DEPDIR="${am__leading_dot}deps"
3573
3574 ac_config_commands="$ac_config_commands depfiles"
3575
3576
3577 am_make=${MAKE-make}
3578 cat > confinc << 'END'
3579 am__doit:
3580 @echo done
3581 .PHONY: am__doit
3582 END
3583 # If we don't find an include directive, just comment out the code.
3584 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3585 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3586 am__include="#"
3587 am__quote=
3588 _am_result=none
3589 # First try GNU make style include.
3590 echo "include confinc" > confmf
3591 # We grep out `Entering directory' and `Leaving directory'
3592 # messages which can occur if `w' ends up in MAKEFLAGS.
3593 # In particular we don't look at `^make:' because GNU make might
3594 # be invoked under some other name (usually "gmake"), in which
3595 # case it prints its new name instead of `make'.
3596 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3597 am__include=include
3598 am__quote=
3599 _am_result=GNU
3600 fi
3601 # Now try BSD make style include.
3602 if test "$am__include" = "#"; then
3603 echo '.include "confinc"' > confmf
3604 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3605 am__include=.include
3606 am__quote="\""
3607 _am_result=BSD
3608 fi
3609 fi
3610
3611
3612 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3613 $as_echo "$_am_result" >&6; }
3614 rm -f confinc confmf
3615
3616 # Check whether --enable-dependency-tracking was given.
3617 if test "${enable_dependency_tracking+set}" = set; then
3618 enableval=$enable_dependency_tracking;
3619 fi
3620
3621 if test "x$enable_dependency_tracking" != xno; then
3622 am_depcomp="$ac_aux_dir/depcomp"
3623 AMDEPBACKSLASH='\'
3624 fi
3625 if test "x$enable_dependency_tracking" != xno; then
3626 AMDEP_TRUE=
3627 AMDEP_FALSE='#'
3628 else
3629 AMDEP_TRUE='#'
3630 AMDEP_FALSE=
3631 fi
3632
3633
3634
3635 depcc="$CC" am_compiler_list=
3636
3637 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3638 $as_echo_n "checking dependency style of $depcc... " >&6; }
3639 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3643 # We make a subdir and do the tests there. Otherwise we can end up
3644 # making bogus files that we don't know about and never remove. For
3645 # instance it was reported that on HP-UX the gcc test will end up
3646 # making a dummy file named `D' -- because `-MD' means `put the output
3647 # in D'.
3648 mkdir conftest.dir
3649 # Copy depcomp to subdir because otherwise we won't find it if we're
3650 # using a relative directory.
3651 cp "$am_depcomp" conftest.dir
3652 cd conftest.dir
3653 # We will build objects and dependencies in a subdirectory because
3654 # it helps to detect inapplicable dependency modes. For instance
3655 # both Tru64's cc and ICC support -MD to output dependencies as a
3656 # side effect of compilation, but ICC will put the dependencies in
3657 # the current directory while Tru64 will put them in the object
3658 # directory.
3659 mkdir sub
3660
3661 am_cv_CC_dependencies_compiler_type=none
3662 if test "$am_compiler_list" = ""; then
3663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3664 fi
3665 for depmode in $am_compiler_list; do
3666 # Setup a source with many dependencies, because some compilers
3667 # like to wrap large dependency lists on column 80 (with \), and
3668 # we should not choose a depcomp mode which is confused by this.
3669 #
3670 # We need to recreate these files for each test, as the compiler may
3671 # overwrite some of them when testing with obscure command lines.
3672 # This happens at least with the AIX C compiler.
3673 : > sub/conftest.c
3674 for i in 1 2 3 4 5 6; do
3675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3676 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3677 # Solaris 8's {/usr,}/bin/sh.
3678 touch sub/conftst$i.h
3679 done
3680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3681
3682 case $depmode in
3683 nosideeffect)
3684 # after this tag, mechanisms are not by side-effect, so they'll
3685 # only be used when explicitly requested
3686 if test "x$enable_dependency_tracking" = xyes; then
3687 continue
3688 else
3689 break
3690 fi
3691 ;;
3692 none) break ;;
3693 esac
3694 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3695 # mode. It turns out that the SunPro C++ compiler does not properly
3696 # handle `-M -o', and we need to detect this.
3697 if depmode=$depmode \
3698 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3700 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3701 >/dev/null 2>conftest.err &&
3702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3704 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3706 # icc doesn't choke on unknown options, it will just issue warnings
3707 # or remarks (even with -Werror). So we grep stderr for any message
3708 # that says an option was ignored or not supported.
3709 # When given -MP, icc 7.0 and 7.1 complain thusly:
3710 # icc: Command line warning: ignoring option '-M'; no argument required
3711 # The diagnosis changed in icc 8.0:
3712 # icc: Command line remark: option '-MP' not supported
3713 if (grep 'ignoring option' conftest.err ||
3714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3715 am_cv_CC_dependencies_compiler_type=$depmode
3716 break
3717 fi
3718 fi
3719 done
3720
3721 cd ..
3722 rm -rf conftest.dir
3723 else
3724 am_cv_CC_dependencies_compiler_type=none
3725 fi
3726
3727 fi
3728 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3729 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3731
3732 if
3733 test "x$enable_dependency_tracking" != xno \
3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3735 am__fastdepCC_TRUE=
3736 am__fastdepCC_FALSE='#'
3737 else
3738 am__fastdepCC_TRUE='#'
3739 am__fastdepCC_FALSE=
3740 fi
3741
3742
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_RANLIB+set}" = set; then
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$RANLIB"; then
3752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765 done
3766 done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 RANLIB=$ac_cv_prog_RANLIB
3772 if test -n "$RANLIB"; then
3773 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3774 $as_echo "$RANLIB" >&6; }
3775 else
3776 { $as_echo "$as_me:$LINENO: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781 fi
3782 if test -z "$ac_cv_prog_RANLIB"; then
3783 ac_ct_RANLIB=$RANLIB
3784 # Extract the first word of "ranlib", so it can be a program name with args.
3785 set dummy ranlib; ac_word=$2
3786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -n "$ac_ct_RANLIB"; then
3792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_ac_ct_RANLIB="ranlib"
3802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3812 if test -n "$ac_ct_RANLIB"; then
3813 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3814 $as_echo "$ac_ct_RANLIB" >&6; }
3815 else
3816 { $as_echo "$as_me:$LINENO: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820 if test "x$ac_ct_RANLIB" = x; then
3821 RANLIB=":"
3822 else
3823 case $cross_compiling:$ac_tool_warned in
3824 yes:)
3825 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3827 ac_tool_warned=yes ;;
3828 esac
3829 RANLIB=$ac_ct_RANLIB
3830 fi
3831 else
3832 RANLIB="$ac_cv_prog_RANLIB"
3833 fi
3834
3835 # Make sure we can run config.sub.
3836 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3837 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3838 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3839 { (exit 1); exit 1; }; }
3840
3841 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3842 $as_echo_n "checking build system type... " >&6; }
3843 if test "${ac_cv_build+set}" = set; then
3844 $as_echo_n "(cached) " >&6
3845 else
3846 ac_build_alias=$build_alias
3847 test "x$ac_build_alias" = x &&
3848 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3849 test "x$ac_build_alias" = x &&
3850 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3851 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3852 { (exit 1); exit 1; }; }
3853 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3854 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3855 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3856 { (exit 1); exit 1; }; }
3857
3858 fi
3859 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3860 $as_echo "$ac_cv_build" >&6; }
3861 case $ac_cv_build in
3862 *-*-*) ;;
3863 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3864 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3865 { (exit 1); exit 1; }; };;
3866 esac
3867 build=$ac_cv_build
3868 ac_save_IFS=$IFS; IFS='-'
3869 set x $ac_cv_build
3870 shift
3871 build_cpu=$1
3872 build_vendor=$2
3873 shift; shift
3874 # Remember, the first character of IFS is used to create $*,
3875 # except with old shells:
3876 build_os=$*
3877 IFS=$ac_save_IFS
3878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3879
3880
3881 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3882 $as_echo_n "checking host system type... " >&6; }
3883 if test "${ac_cv_host+set}" = set; then
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test "x$host_alias" = x; then
3887 ac_cv_host=$ac_cv_build
3888 else
3889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3890 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3891 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3892 { (exit 1); exit 1; }; }
3893 fi
3894
3895 fi
3896 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3897 $as_echo "$ac_cv_host" >&6; }
3898 case $ac_cv_host in
3899 *-*-*) ;;
3900 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3901 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3902 { (exit 1); exit 1; }; };;
3903 esac
3904 host=$ac_cv_host
3905 ac_save_IFS=$IFS; IFS='-'
3906 set x $ac_cv_host
3907 shift
3908 host_cpu=$1
3909 host_vendor=$2
3910 shift; shift
3911 # Remember, the first character of IFS is used to create $*,
3912 # except with old shells:
3913 host_os=$*
3914 IFS=$ac_save_IFS
3915 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3916
3917
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3925 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3926 # On Suns, sometimes $CPP names a directory.
3927 if test -n "$CPP" && test -d "$CPP"; then
3928 CPP=
3929 fi
3930 if test -z "$CPP"; then
3931 if test "${ac_cv_prog_CPP+set}" = set; then
3932 $as_echo_n "(cached) " >&6
3933 else
3934 # Double quotes because CPP needs to be expanded
3935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3936 do
3937 ac_preproc_ok=false
3938 for ac_c_preproc_warn_flag in '' yes
3939 do
3940 # Use a header file that comes with gcc, so configuring glibc
3941 # with a fresh cross-compiler works.
3942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3943 # <limits.h> exists even on freestanding compilers.
3944 # On the NeXT, cc -E runs the code through the compiler's parser,
3945 # not just through cpp. "Syntax error" is here to catch this case.
3946 cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 #ifdef __STDC__
3953 # include <limits.h>
3954 #else
3955 # include <assert.h>
3956 #endif
3957 Syntax error
3958 _ACEOF
3959 if { (ac_try="$ac_cpp conftest.$ac_ext"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } >/dev/null && {
3973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 }; then
3976 :
3977 else
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 # Broken: fails on valid input.
3982 continue
3983 fi
3984
3985 rm -f conftest.err conftest.$ac_ext
3986
3987 # OK, works on sane cases. Now check whether nonexistent headers
3988 # can be detected and how.
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3996 _ACEOF
3997 if { (ac_try="$ac_cpp conftest.$ac_ext"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4003 $as_echo "$ac_try_echo") >&5
4004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } >/dev/null && {
4011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4013 }; then
4014 # Broken: success on invalid input.
4015 continue
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 # Passes both tests.
4021 ac_preproc_ok=:
4022 break
4023 fi
4024
4025 rm -f conftest.err conftest.$ac_ext
4026
4027 done
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029 rm -f conftest.err conftest.$ac_ext
4030 if $ac_preproc_ok; then
4031 break
4032 fi
4033
4034 done
4035 ac_cv_prog_CPP=$CPP
4036
4037 fi
4038 CPP=$ac_cv_prog_CPP
4039 else
4040 ac_cv_prog_CPP=$CPP
4041 fi
4042 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4043 $as_echo "$CPP" >&6; }
4044 ac_preproc_ok=false
4045 for ac_c_preproc_warn_flag in '' yes
4046 do
4047 # Use a header file that comes with gcc, so configuring glibc
4048 # with a fresh cross-compiler works.
4049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4050 # <limits.h> exists even on freestanding compilers.
4051 # On the NeXT, cc -E runs the code through the compiler's parser,
4052 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064 Syntax error
4065 _ACEOF
4066 if { (ac_try="$ac_cpp conftest.$ac_ext"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4072 $as_echo "$ac_try_echo") >&5
4073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } >/dev/null && {
4080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 }; then
4083 :
4084 else
4085 $as_echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 # Broken: fails on valid input.
4089 continue
4090 fi
4091
4092 rm -f conftest.err conftest.$ac_ext
4093
4094 # OK, works on sane cases. Now check whether nonexistent headers
4095 # can be detected and how.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <ac_nonexistent.h>
4103 _ACEOF
4104 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null && {
4118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 }; then
4121 # Broken: success on invalid input.
4122 continue
4123 else
4124 $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 # Passes both tests.
4128 ac_preproc_ok=:
4129 break
4130 fi
4131
4132 rm -f conftest.err conftest.$ac_ext
4133
4134 done
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then
4138 :
4139 else
4140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4143 See \`config.log' for more details." >&5
4144 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4145 See \`config.log' for more details." >&2;}
4146 { (exit 1); exit 1; }; }; }
4147 fi
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158 if test "${ac_cv_path_GREP+set}" = set; then
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -z "$GREP"; then
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4173 # Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175 case `"$ac_path_GREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178 *)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 ac_count=`expr $ac_count + 1`
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4200
4201 $ac_path_GREP_found && break 3
4202 done
4203 done
4204 done
4205 IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_GREP"; then
4207 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4208 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4209 { (exit 1); exit 1; }; }
4210 fi
4211 else
4212 ac_cv_path_GREP=$GREP
4213 fi
4214
4215 fi
4216 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4217 $as_echo "$ac_cv_path_GREP" >&6; }
4218 GREP="$ac_cv_path_GREP"
4219
4220
4221 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4222 $as_echo_n "checking for egrep... " >&6; }
4223 if test "${ac_cv_path_EGREP+set}" = set; then
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4227 then ac_cv_path_EGREP="$GREP -E"
4228 else
4229 if test -z "$EGREP"; then
4230 ac_path_EGREP_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in egrep; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4240 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4241 # Check for GNU ac_path_EGREP and select it if it is found.
4242 # Check for GNU $ac_path_EGREP
4243 case `"$ac_path_EGREP" --version 2>&1` in
4244 *GNU*)
4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4246 *)
4247 ac_count=0
4248 $as_echo_n 0123456789 >"conftest.in"
4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo 'EGREP' >> "conftest.nl"
4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 ac_count=`expr $ac_count + 1`
4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_EGREP="$ac_path_EGREP"
4261 ac_path_EGREP_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267 esac
4268
4269 $ac_path_EGREP_found && break 3
4270 done
4271 done
4272 done
4273 IFS=$as_save_IFS
4274 if test -z "$ac_cv_path_EGREP"; then
4275 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4276 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4277 { (exit 1); exit 1; }; }
4278 fi
4279 else
4280 ac_cv_path_EGREP=$EGREP
4281 fi
4282
4283 fi
4284 fi
4285 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4286 $as_echo "$ac_cv_path_EGREP" >&6; }
4287 EGREP="$ac_cv_path_EGREP"
4288
4289
4290 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4291 $as_echo_n "checking for ANSI C header files... " >&6; }
4292 if test "${ac_cv_header_stdc+set}" = set; then
4293 $as_echo_n "(cached) " >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 #include <stdlib.h>
4302 #include <stdarg.h>
4303 #include <string.h>
4304 #include <float.h>
4305
4306 int
4307 main ()
4308 {
4309
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 rm -f conftest.$ac_objext
4315 if { (ac_try="$ac_compile"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4321 $as_echo "$ac_try_echo") >&5
4322 (eval "$ac_compile") 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && {
4329 test -z "$ac_c_werror_flag" ||
4330 test ! -s conftest.err
4331 } && test -s conftest.$ac_objext; then
4332 ac_cv_header_stdc=yes
4333 else
4334 $as_echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_cv_header_stdc=no
4338 fi
4339
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341
4342 if test $ac_cv_header_stdc = yes; then
4343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4344 cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h. */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 #include <string.h>
4351
4352 _ACEOF
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "memchr" >/dev/null 2>&1; then
4355 :
4356 else
4357 ac_cv_header_stdc=no
4358 fi
4359 rm -f conftest*
4360
4361 fi
4362
4363 if test $ac_cv_header_stdc = yes; then
4364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <stdlib.h>
4372
4373 _ACEOF
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375 $EGREP "free" >/dev/null 2>&1; then
4376 :
4377 else
4378 ac_cv_header_stdc=no
4379 fi
4380 rm -f conftest*
4381
4382 fi
4383
4384 if test $ac_cv_header_stdc = yes; then
4385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4386 if test "$cross_compiling" = yes; then
4387 :
4388 else
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 #include <ctype.h>
4396 #include <stdlib.h>
4397 #if ((' ' & 0x0FF) == 0x020)
4398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4400 #else
4401 # define ISLOWER(c) \
4402 (('a' <= (c) && (c) <= 'i') \
4403 || ('j' <= (c) && (c) <= 'r') \
4404 || ('s' <= (c) && (c) <= 'z'))
4405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4406 #endif
4407
4408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4409 int
4410 main ()
4411 {
4412 int i;
4413 for (i = 0; i < 256; i++)
4414 if (XOR (islower (i), ISLOWER (i))
4415 || toupper (i) != TOUPPER (i))
4416 return 2;
4417 return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest$ac_exeext
4421 if { (ac_try="$ac_link"
4422 case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4427 $as_echo "$ac_try_echo") >&5
4428 (eval "$ac_link") 2>&5
4429 ac_status=$?
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4432 { (case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4437 $as_echo "$ac_try_echo") >&5
4438 (eval "$ac_try") 2>&5
4439 ac_status=$?
4440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 :
4443 else
4444 $as_echo "$as_me: program exited with status $ac_status" >&5
4445 $as_echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 ( exit $ac_status )
4449 ac_cv_header_stdc=no
4450 fi
4451 rm -rf conftest.dSYM
4452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4453 fi
4454
4455
4456 fi
4457 fi
4458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4459 $as_echo "$ac_cv_header_stdc" >&6; }
4460 if test $ac_cv_header_stdc = yes; then
4461
4462 cat >>confdefs.h <<\_ACEOF
4463 #define STDC_HEADERS 1
4464 _ACEOF
4465
4466 fi
4467
4468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4479 inttypes.h stdint.h unistd.h
4480 do
4481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4483 $as_echo_n "checking for $ac_header... " >&6; }
4484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4485 $as_echo_n "(cached) " >&6
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494
4495 #include <$ac_header>
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4504 $as_echo "$ac_try_echo") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && {
4512 test -z "$ac_c_werror_flag" ||
4513 test ! -s conftest.err
4514 } && test -s conftest.$ac_objext; then
4515 eval "$as_ac_Header=yes"
4516 else
4517 $as_echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520 eval "$as_ac_Header=no"
4521 fi
4522
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 fi
4525 ac_res=`eval 'as_val=${'$as_ac_Header'}
4526 $as_echo "$as_val"'`
4527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4528 $as_echo "$ac_res" >&6; }
4529 as_val=`eval 'as_val=${'$as_ac_Header'}
4530 $as_echo "$as_val"'`
4531 if test "x$as_val" = x""yes; then
4532 cat >>confdefs.h <<_ACEOF
4533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4534 _ACEOF
4535
4536 fi
4537
4538 done
4539
4540
4541
4542
4543
4544 if test "${ac_cv_header_minix_config_h+set}" = set; then
4545 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4546 $as_echo_n "checking for minix/config.h... " >&6; }
4547 if test "${ac_cv_header_minix_config_h+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4549 fi
4550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4551 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4552 else
4553 # Is the header compilable?
4554 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4555 $as_echo_n "checking minix/config.h usability... " >&6; }
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 $ac_includes_default
4563 #include <minix/config.h>
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (ac_try="$ac_compile"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4572 $as_echo "$ac_try_echo") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4583 ac_header_compiler=yes
4584 else
4585 $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 ac_header_compiler=no
4589 fi
4590
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4593 $as_echo "$ac_header_compiler" >&6; }
4594
4595 # Is the header present?
4596 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4597 $as_echo_n "checking minix/config.h presence... " >&6; }
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #include <minix/config.h>
4605 _ACEOF
4606 if { (ac_try="$ac_cpp conftest.$ac_ext"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } >/dev/null && {
4620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4621 test ! -s conftest.err
4622 }; then
4623 ac_header_preproc=yes
4624 else
4625 $as_echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 ac_header_preproc=no
4629 fi
4630
4631 rm -f conftest.err conftest.$ac_ext
4632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4633 $as_echo "$ac_header_preproc" >&6; }
4634
4635 # So? What about this header?
4636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4637 yes:no: )
4638 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4639 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4640 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4641 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4642 ac_header_preproc=yes
4643 ;;
4644 no:yes:* )
4645 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4646 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4647 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4648 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4649 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4650 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4651 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4652 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4653 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4654 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4655 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4656 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4657 ( cat <<\_ASBOX
4658 ## -------------------------- ##
4659 ## Report this to lost@l-w.ca ##
4660 ## -------------------------- ##
4661 _ASBOX
4662 ) | sed "s/^/$as_me: WARNING: /" >&2
4663 ;;
4664 esac
4665 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4666 $as_echo_n "checking for minix/config.h... " >&6; }
4667 if test "${ac_cv_header_minix_config_h+set}" = set; then
4668 $as_echo_n "(cached) " >&6
4669 else
4670 ac_cv_header_minix_config_h=$ac_header_preproc
4671 fi
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4674
4675 fi
4676 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4677 MINIX=yes
4678 else
4679 MINIX=
4680 fi
4681
4682
4683 if test "$MINIX" = yes; then
4684
4685 cat >>confdefs.h <<\_ACEOF
4686 #define _POSIX_SOURCE 1
4687 _ACEOF
4688
4689
4690 cat >>confdefs.h <<\_ACEOF
4691 #define _POSIX_1_SOURCE 2
4692 _ACEOF
4693
4694
4695 cat >>confdefs.h <<\_ACEOF
4696 #define _MINIX 1
4697 _ACEOF
4698
4699 fi
4700
4701 case "$host_os" in
4702 hpux*)
4703
4704 cat >>confdefs.h <<\_ACEOF
4705 #define _XOPEN_SOURCE 500
4706 _ACEOF
4707
4708 ;;
4709 esac
4710
4711
4712
4713 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4714 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4715 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724
4725 # define __EXTENSIONS__ 1
4726 $ac_includes_default
4727 int
4728 main ()
4729 {
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4753 ac_cv_safe_to_define___extensions__=yes
4754 else
4755 $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ac_cv_safe_to_define___extensions__=no
4759 fi
4760
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4764 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4765 test $ac_cv_safe_to_define___extensions__ = yes &&
4766 cat >>confdefs.h <<\_ACEOF
4767 #define __EXTENSIONS__ 1
4768 _ACEOF
4769
4770 cat >>confdefs.h <<\_ACEOF
4771 #define _ALL_SOURCE 1
4772 _ACEOF
4773
4774 cat >>confdefs.h <<\_ACEOF
4775 #define _GNU_SOURCE 1
4776 _ACEOF
4777
4778 cat >>confdefs.h <<\_ACEOF
4779 #define _POSIX_PTHREAD_SEMANTICS 1
4780 _ACEOF
4781
4782 cat >>confdefs.h <<\_ACEOF
4783 #define _TANDEM_SOURCE 1
4784 _ACEOF
4785
4786
4787
4788
4789
4790
4791
4792 # for gnulib
4793
4794
4795
4796
4797
4798
4799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4800 # for constant arguments. Useless!
4801 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
4802 $as_echo_n "checking for working alloca.h... " >&6; }
4803 if test "${ac_cv_working_alloca_h+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4805 else
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #include <alloca.h>
4813 int
4814 main ()
4815 {
4816 char *p = (char *) alloca (2 * sizeof (int));
4817 if (p) return 0;
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext conftest$ac_exeext
4823 if { (ac_try="$ac_link"
4824 case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827 esac
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829 $as_echo "$ac_try_echo") >&5
4830 (eval "$ac_link") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest$ac_exeext && {
4840 test "$cross_compiling" = yes ||
4841 $as_test_x conftest$ac_exeext
4842 }; then
4843 ac_cv_working_alloca_h=yes
4844 else
4845 $as_echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 ac_cv_working_alloca_h=no
4849 fi
4850
4851 rm -rf conftest.dSYM
4852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4853 conftest$ac_exeext conftest.$ac_ext
4854 fi
4855 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4856 $as_echo "$ac_cv_working_alloca_h" >&6; }
4857 if test $ac_cv_working_alloca_h = yes; then
4858
4859 cat >>confdefs.h <<\_ACEOF
4860 #define HAVE_ALLOCA_H 1
4861 _ACEOF
4862
4863 fi
4864
4865 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
4866 $as_echo_n "checking for alloca... " >&6; }
4867 if test "${ac_cv_func_alloca_works+set}" = set; then
4868 $as_echo_n "(cached) " >&6
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #ifdef __GNUC__
4877 # define alloca __builtin_alloca
4878 #else
4879 # ifdef _MSC_VER
4880 # include <malloc.h>
4881 # define alloca _alloca
4882 # else
4883 # ifdef HAVE_ALLOCA_H
4884 # include <alloca.h>
4885 # else
4886 # ifdef _AIX
4887 #pragma alloca
4888 # else
4889 # ifndef alloca /* predefined by HP cc +Olibcalls */
4890 char *alloca ();
4891 # endif
4892 # endif
4893 # endif
4894 # endif
4895 #endif
4896
4897 int
4898 main ()
4899 {
4900 char *p = (char *) alloca (1);
4901 if (p) return 0;
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (ac_try="$ac_link"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4913 $as_echo "$ac_try_echo") >&5
4914 (eval "$ac_link") 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } && {
4921 test -z "$ac_c_werror_flag" ||
4922 test ! -s conftest.err
4923 } && test -s conftest$ac_exeext && {
4924 test "$cross_compiling" = yes ||
4925 $as_test_x conftest$ac_exeext
4926 }; then
4927 ac_cv_func_alloca_works=yes
4928 else
4929 $as_echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_cv_func_alloca_works=no
4933 fi
4934
4935 rm -rf conftest.dSYM
4936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4937 conftest$ac_exeext conftest.$ac_ext
4938 fi
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4940 $as_echo "$ac_cv_func_alloca_works" >&6; }
4941
4942 if test $ac_cv_func_alloca_works = yes; then
4943
4944 cat >>confdefs.h <<\_ACEOF
4945 #define HAVE_ALLOCA 1
4946 _ACEOF
4947
4948 else
4949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4950 # that cause trouble. Some versions do not even contain alloca or
4951 # contain a buggy version. If you still want to use their alloca,
4952 # use ar to extract alloca.o from them instead of compiling alloca.c.
4953
4954
4955
4956
4957
4958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4959
4960 cat >>confdefs.h <<\_ACEOF
4961 #define C_ALLOCA 1
4962 _ACEOF
4963
4964
4965 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4966 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4967 if test "${ac_cv_os_cray+set}" = set; then
4968 $as_echo_n "(cached) " >&6
4969 else
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #if defined CRAY && ! defined CRAY2
4977 webecray
4978 #else
4979 wenotbecray
4980 #endif
4981
4982 _ACEOF
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984 $EGREP "webecray" >/dev/null 2>&1; then
4985 ac_cv_os_cray=yes
4986 else
4987 ac_cv_os_cray=no
4988 fi
4989 rm -f conftest*
4990
4991 fi
4992 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4993 $as_echo "$ac_cv_os_cray" >&6; }
4994 if test $ac_cv_os_cray = yes; then
4995 for ac_func in _getb67 GETB67 getb67; do
4996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4998 $as_echo_n "checking for $ac_func... " >&6; }
4999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5010 #define $ac_func innocuous_$ac_func
5011
5012 /* System header to define __stub macros and hopefully few prototypes,
5013 which can conflict with char $ac_func (); below.
5014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5015 <limits.h> exists even on freestanding compilers. */
5016
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022
5023 #undef $ac_func
5024
5025 /* Override any GCC internal prototype to avoid an error.
5026 Use char because int might match the return type of a GCC
5027 builtin and then its argument prototype would still apply. */
5028 #ifdef __cplusplus
5029 extern "C"
5030 #endif
5031 char $ac_func ();
5032 /* The GNU C library defines this for functions which it implements
5033 to always fail with ENOSYS. Some functions are actually named
5034 something starting with __ and the normal name is an alias. */
5035 #if defined __stub_$ac_func || defined __stub___$ac_func
5036 choke me
5037 #endif
5038
5039 int
5040 main ()
5041 {
5042 return $ac_func ();
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (ac_try="$ac_link"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5054 $as_echo "$ac_try_echo") >&5
5055 (eval "$ac_link") 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest$ac_exeext && {
5065 test "$cross_compiling" = yes ||
5066 $as_test_x conftest$ac_exeext
5067 }; then
5068 eval "$as_ac_var=yes"
5069 else
5070 $as_echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 eval "$as_ac_var=no"
5074 fi
5075
5076 rm -rf conftest.dSYM
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078 conftest$ac_exeext conftest.$ac_ext
5079 fi
5080 ac_res=`eval 'as_val=${'$as_ac_var'}
5081 $as_echo "$as_val"'`
5082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5083 $as_echo "$ac_res" >&6; }
5084 as_val=`eval 'as_val=${'$as_ac_var'}
5085 $as_echo "$as_val"'`
5086 if test "x$as_val" = x""yes; then
5087
5088 cat >>confdefs.h <<_ACEOF
5089 #define CRAY_STACKSEG_END $ac_func
5090 _ACEOF
5091
5092 break
5093 fi
5094
5095 done
5096 fi
5097
5098 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5099 $as_echo_n "checking stack direction for C alloca... " >&6; }
5100 if test "${ac_cv_c_stack_direction+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test "$cross_compiling" = yes; then
5104 ac_cv_c_stack_direction=0
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5113 int
5114 find_stack_direction ()
5115 {
5116 static char *addr = 0;
5117 auto char dummy;
5118 if (addr == 0)
5119 {
5120 addr = &dummy;
5121 return find_stack_direction ();
5122 }
5123 else
5124 return (&dummy > addr) ? 1 : -1;
5125 }
5126
5127 int
5128 main ()
5129 {
5130 return find_stack_direction () < 0;
5131 }
5132 _ACEOF
5133 rm -f conftest$ac_exeext
5134 if { (ac_try="$ac_link"
5135 case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141 (eval "$ac_link") 2>&5
5142 ac_status=$?
5143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5145 { (case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148 esac
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_try") 2>&5
5152 ac_status=$?
5153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_cv_c_stack_direction=1
5156 else
5157 $as_echo "$as_me: program exited with status $ac_status" >&5
5158 $as_echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161 ( exit $ac_status )
5162 ac_cv_c_stack_direction=-1
5163 fi
5164 rm -rf conftest.dSYM
5165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5166 fi
5167
5168
5169 fi
5170 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5171 $as_echo "$ac_cv_c_stack_direction" >&6; }
5172
5173 cat >>confdefs.h <<_ACEOF
5174 #define STACK_DIRECTION $ac_cv_c_stack_direction
5175 _ACEOF
5176
5177
5178 fi
5179
5180 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5181 $as_echo_n "checking for inline... " >&6; }
5182 if test "${ac_cv_c_inline+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_cv_c_inline=no
5186 for ac_kw in inline __inline__ __inline; do
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #ifndef __cplusplus
5194 typedef int foo_t;
5195 static $ac_kw foo_t static_foo () {return 0; }
5196 $ac_kw foo_t foo () {return 0; }
5197 #endif
5198
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5207 $as_echo "$ac_try_echo") >&5
5208 (eval "$ac_compile") 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } && {
5215 test -z "$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5217 } && test -s conftest.$ac_objext; then
5218 ac_cv_c_inline=$ac_kw
5219 else
5220 $as_echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223
5224 fi
5225
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 test "$ac_cv_c_inline" != no && break
5228 done
5229
5230 fi
5231 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5232 $as_echo "$ac_cv_c_inline" >&6; }
5233
5234
5235 case $ac_cv_c_inline in
5236 inline | yes) ;;
5237 *)
5238 case $ac_cv_c_inline in
5239 no) ac_val=;;
5240 *) ac_val=$ac_cv_c_inline;;
5241 esac
5242 cat >>confdefs.h <<_ACEOF
5243 #ifndef __cplusplus
5244 #define inline $ac_val
5245 #endif
5246 _ACEOF
5247 ;;
5248 esac
5249
5250 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
5251 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5252 if test "${ac_cv_c_restrict+set}" = set; then
5253 $as_echo_n "(cached) " >&6
5254 else
5255 ac_cv_c_restrict=no
5256 # The order here caters to the fact that C++ does not require restrict.
5257 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 typedef int * int_ptr;
5265 int foo (int_ptr $ac_kw ip) {
5266 return ip[0];
5267 }
5268 int
5269 main ()
5270 {
5271 int s[1];
5272 int * $ac_kw t = s;
5273 t[0] = 0;
5274 return foo(t)
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 if { (ac_try="$ac_compile"
5281 case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5286 $as_echo "$ac_try_echo") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_cv_c_restrict=$ac_kw
5298 else
5299 $as_echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302
5303 fi
5304
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 test "$ac_cv_c_restrict" != no && break
5307 done
5308
5309 fi
5310 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
5311 $as_echo "$ac_cv_c_restrict" >&6; }
5312
5313
5314 case $ac_cv_c_restrict in
5315 restrict) ;;
5316 no) cat >>confdefs.h <<\_ACEOF
5317 #define restrict /**/
5318 _ACEOF
5319 ;;
5320 *) cat >>confdefs.h <<_ACEOF
5321 #define restrict $ac_cv_c_restrict
5322 _ACEOF
5323 ;;
5324 esac
5325
5326
5327 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
5328 $as_echo_n "checking whether getenv is declared... " >&6; }
5329 if test "${ac_cv_have_decl_getenv+set}" = set; then
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5339 int
5340 main ()
5341 {
5342 #ifndef getenv
5343 (void) getenv;
5344 #endif
5345
5346 ;
5347 return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (ac_try="$ac_compile"
5352 case "(($ac_try" in
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5355 esac
5356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5357 $as_echo "$ac_try_echo") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_have_decl_getenv=yes
5369 else
5370 $as_echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 ac_cv_have_decl_getenv=no
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
5379 $as_echo "$ac_cv_have_decl_getenv" >&6; }
5380 if test "x$ac_cv_have_decl_getenv" = x""yes; then
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define HAVE_DECL_GETENV 1
5384 _ACEOF
5385
5386
5387 else
5388 cat >>confdefs.h <<_ACEOF
5389 #define HAVE_DECL_GETENV 0
5390 _ACEOF
5391
5392
5393 fi
5394
5395
5396
5397
5398 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
5399 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
5400 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
5401 $as_echo_n "(cached) " >&6
5402 else
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5410 int
5411 main ()
5412 {
5413 #ifndef clearerr_unlocked
5414 (void) clearerr_unlocked;
5415 #endif
5416
5417 ;
5418 return 0;
5419 }
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (ac_try="$ac_compile"
5423 case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426 esac
5427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5428 $as_echo "$ac_try_echo") >&5
5429 (eval "$ac_compile") 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } && {
5436 test -z "$ac_c_werror_flag" ||
5437 test ! -s conftest.err
5438 } && test -s conftest.$ac_objext; then
5439 ac_cv_have_decl_clearerr_unlocked=yes
5440 else
5441 $as_echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 ac_cv_have_decl_clearerr_unlocked=no
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
5450 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
5451 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
5452
5453 cat >>confdefs.h <<_ACEOF
5454 #define HAVE_DECL_CLEARERR_UNLOCKED 1
5455 _ACEOF
5456
5457
5458 else
5459 cat >>confdefs.h <<_ACEOF
5460 #define HAVE_DECL_CLEARERR_UNLOCKED 0
5461 _ACEOF
5462
5463
5464 fi
5465
5466
5467
5468
5469 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
5470 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
5471 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5481 int
5482 main ()
5483 {
5484 #ifndef feof_unlocked
5485 (void) feof_unlocked;
5486 #endif
5487
5488 ;
5489 return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_have_decl_feof_unlocked=yes
5511 else
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ac_cv_have_decl_feof_unlocked=no
5516 fi
5517
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
5521 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
5522 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
5523
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_DECL_FEOF_UNLOCKED 1
5526 _ACEOF
5527
5528
5529 else
5530 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_DECL_FEOF_UNLOCKED 0
5532 _ACEOF
5533
5534
5535 fi
5536
5537
5538
5539
5540 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
5541 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
5542 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 $ac_includes_default
5552 int
5553 main ()
5554 {
5555 #ifndef ferror_unlocked
5556 (void) ferror_unlocked;
5557 #endif
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570 $as_echo "$ac_try_echo") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && {
5578 test -z "$ac_c_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest.$ac_objext; then
5581 ac_cv_have_decl_ferror_unlocked=yes
5582 else
5583 $as_echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_cv_have_decl_ferror_unlocked=no
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
5592 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
5593 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
5594
5595 cat >>confdefs.h <<_ACEOF
5596 #define HAVE_DECL_FERROR_UNLOCKED 1
5597 _ACEOF
5598
5599
5600 else
5601 cat >>confdefs.h <<_ACEOF
5602 #define HAVE_DECL_FERROR_UNLOCKED 0
5603 _ACEOF
5604
5605
5606 fi
5607
5608
5609
5610
5611 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
5612 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
5613 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 $ac_includes_default
5623 int
5624 main ()
5625 {
5626 #ifndef fflush_unlocked
5627 (void) fflush_unlocked;
5628 #endif
5629
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5636 case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641 $as_echo "$ac_try_echo") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.$ac_objext; then
5652 ac_cv_have_decl_fflush_unlocked=yes
5653 else
5654 $as_echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657 ac_cv_have_decl_fflush_unlocked=no
5658 fi
5659
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
5663 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
5664 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
5665
5666 cat >>confdefs.h <<_ACEOF
5667 #define HAVE_DECL_FFLUSH_UNLOCKED 1
5668 _ACEOF
5669
5670
5671 else
5672 cat >>confdefs.h <<_ACEOF
5673 #define HAVE_DECL_FFLUSH_UNLOCKED 0
5674 _ACEOF
5675
5676
5677 fi
5678
5679
5680
5681
5682 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
5683 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
5684 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5694 int
5695 main ()
5696 {
5697 #ifndef fgets_unlocked
5698 (void) fgets_unlocked;
5699 #endif
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (ac_try="$ac_compile"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5712 $as_echo "$ac_try_echo") >&5
5713 (eval "$ac_compile") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && {
5720 test -z "$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 } && test -s conftest.$ac_objext; then
5723 ac_cv_have_decl_fgets_unlocked=yes
5724 else
5725 $as_echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_cv_have_decl_fgets_unlocked=no
5729 fi
5730
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 fi
5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
5734 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
5735 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define HAVE_DECL_FGETS_UNLOCKED 1
5739 _ACEOF
5740
5741
5742 else
5743 cat >>confdefs.h <<_ACEOF
5744 #define HAVE_DECL_FGETS_UNLOCKED 0
5745 _ACEOF
5746
5747
5748 fi
5749
5750
5751
5752
5753 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
5754 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
5755 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
5756 $as_echo_n "(cached) " >&6
5757 else
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 $ac_includes_default
5765 int
5766 main ()
5767 {
5768 #ifndef fputc_unlocked
5769 (void) fputc_unlocked;
5770 #endif
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781 esac
5782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5783 $as_echo "$ac_try_echo") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_have_decl_fputc_unlocked=yes
5795 else
5796 $as_echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 ac_cv_have_decl_fputc_unlocked=no
5800 fi
5801
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 fi
5804 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
5805 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
5806 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
5807
5808 cat >>confdefs.h <<_ACEOF
5809 #define HAVE_DECL_FPUTC_UNLOCKED 1
5810 _ACEOF
5811
5812
5813 else
5814 cat >>confdefs.h <<_ACEOF
5815 #define HAVE_DECL_FPUTC_UNLOCKED 0
5816 _ACEOF
5817
5818
5819 fi
5820
5821
5822
5823
5824 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
5825 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
5826 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5828 else
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 $ac_includes_default
5836 int
5837 main ()
5838 {
5839 #ifndef fputs_unlocked
5840 (void) fputs_unlocked;
5841 #endif
5842
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 ac_cv_have_decl_fputs_unlocked=yes
5866 else
5867 $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_cv_have_decl_fputs_unlocked=no
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 fi
5875 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
5876 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
5877 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
5878
5879 cat >>confdefs.h <<_ACEOF
5880 #define HAVE_DECL_FPUTS_UNLOCKED 1
5881 _ACEOF
5882
5883
5884 else
5885 cat >>confdefs.h <<_ACEOF
5886 #define HAVE_DECL_FPUTS_UNLOCKED 0
5887 _ACEOF
5888
5889
5890 fi
5891
5892
5893
5894
5895 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
5896 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
5897 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
5898 $as_echo_n "(cached) " >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5907 int
5908 main ()
5909 {
5910 #ifndef fread_unlocked
5911 (void) fread_unlocked;
5912 #endif
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5925 $as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_have_decl_fread_unlocked=yes
5937 else
5938 $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 ac_cv_have_decl_fread_unlocked=no
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 fi
5946 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
5947 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
5948 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define HAVE_DECL_FREAD_UNLOCKED 1
5952 _ACEOF
5953
5954
5955 else
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DECL_FREAD_UNLOCKED 0
5958 _ACEOF
5959
5960
5961 fi
5962
5963
5964
5965
5966 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
5967 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
5968 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 $ac_includes_default
5978 int
5979 main ()
5980 {
5981 #ifndef fwrite_unlocked
5982 (void) fwrite_unlocked;
5983 #endif
5984
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (ac_try="$ac_compile"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5996 $as_echo "$ac_try_echo") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_objext; then
6007 ac_cv_have_decl_fwrite_unlocked=yes
6008 else
6009 $as_echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 ac_cv_have_decl_fwrite_unlocked=no
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
6018 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
6019 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
6020
6021 cat >>confdefs.h <<_ACEOF
6022 #define HAVE_DECL_FWRITE_UNLOCKED 1
6023 _ACEOF
6024
6025
6026 else
6027 cat >>confdefs.h <<_ACEOF
6028 #define HAVE_DECL_FWRITE_UNLOCKED 0
6029 _ACEOF
6030
6031
6032 fi
6033
6034
6035
6036
6037 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
6038 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
6039 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
6040 $as_echo_n "(cached) " >&6
6041 else
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 int
6050 main ()
6051 {
6052 #ifndef getc_unlocked
6053 (void) getc_unlocked;
6054 #endif
6055
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6067 $as_echo "$ac_try_echo") >&5
6068 (eval "$ac_compile") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && {
6075 test -z "$ac_c_werror_flag" ||
6076 test ! -s conftest.err
6077 } && test -s conftest.$ac_objext; then
6078 ac_cv_have_decl_getc_unlocked=yes
6079 else
6080 $as_echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_cv_have_decl_getc_unlocked=no
6084 fi
6085
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 fi
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
6089 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
6090 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
6091
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_DECL_GETC_UNLOCKED 1
6094 _ACEOF
6095
6096
6097 else
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_DECL_GETC_UNLOCKED 0
6100 _ACEOF
6101
6102
6103 fi
6104
6105
6106
6107
6108 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
6109 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
6110 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
6111 $as_echo_n "(cached) " >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 $ac_includes_default
6120 int
6121 main ()
6122 {
6123 #ifndef getchar_unlocked
6124 (void) getchar_unlocked;
6125 #endif
6126
6127 ;
6128 return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6133 case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136 esac
6137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6138 $as_echo "$ac_try_echo") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 ac_cv_have_decl_getchar_unlocked=yes
6150 else
6151 $as_echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_have_decl_getchar_unlocked=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
6160 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
6161 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
6162
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_DECL_GETCHAR_UNLOCKED 1
6165 _ACEOF
6166
6167
6168 else
6169 cat >>confdefs.h <<_ACEOF
6170 #define HAVE_DECL_GETCHAR_UNLOCKED 0
6171 _ACEOF
6172
6173
6174 fi
6175
6176
6177
6178
6179 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
6180 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
6181 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
6182 $as_echo_n "(cached) " >&6
6183 else
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 int
6192 main ()
6193 {
6194 #ifndef putc_unlocked
6195 (void) putc_unlocked;
6196 #endif
6197
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_have_decl_putc_unlocked=yes
6221 else
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_have_decl_putc_unlocked=no
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 fi
6230 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
6231 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
6232 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_DECL_PUTC_UNLOCKED 1
6236 _ACEOF
6237
6238
6239 else
6240 cat >>confdefs.h <<_ACEOF
6241 #define HAVE_DECL_PUTC_UNLOCKED 0
6242 _ACEOF
6243
6244
6245 fi
6246
6247
6248
6249
6250 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
6251 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
6252 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6262 int
6263 main ()
6264 {
6265 #ifndef putchar_unlocked
6266 (void) putchar_unlocked;
6267 #endif
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6275 case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278 esac
6279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280 $as_echo "$ac_try_echo") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6291 ac_cv_have_decl_putchar_unlocked=yes
6292 else
6293 $as_echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 ac_cv_have_decl_putchar_unlocked=no
6297 fi
6298
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 fi
6301 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
6302 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
6303 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
6304
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
6307 _ACEOF
6308
6309
6310 else
6311 cat >>confdefs.h <<_ACEOF
6312 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
6313 _ACEOF
6314
6315
6316 fi
6317
6318
6319
6320
6321
6322
6323
6324
6325 for ac_func in $gl_func_list
6326 do
6327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6329 $as_echo_n "checking for $ac_func... " >&6; }
6330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6341 #define $ac_func innocuous_$ac_func
6342
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func (); below.
6345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 <limits.h> exists even on freestanding compilers. */
6347
6348 #ifdef __STDC__
6349 # include <limits.h>
6350 #else
6351 # include <assert.h>
6352 #endif
6353
6354 #undef $ac_func
6355
6356 /* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6359 #ifdef __cplusplus
6360 extern "C"
6361 #endif
6362 char $ac_func ();
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined __stub_$ac_func || defined __stub___$ac_func
6367 choke me
6368 #endif
6369
6370 int
6371 main ()
6372 {
6373 return $ac_func ();
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext conftest$ac_exeext
6379 if { (ac_try="$ac_link"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_link") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest$ac_exeext && {
6396 test "$cross_compiling" = yes ||
6397 $as_test_x conftest$ac_exeext
6398 }; then
6399 eval "$as_ac_var=yes"
6400 else
6401 $as_echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 eval "$as_ac_var=no"
6405 fi
6406
6407 rm -rf conftest.dSYM
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409 conftest$ac_exeext conftest.$ac_ext
6410 fi
6411 ac_res=`eval 'as_val=${'$as_ac_var'}
6412 $as_echo "$as_val"'`
6413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6414 $as_echo "$ac_res" >&6; }
6415 as_val=`eval 'as_val=${'$as_ac_var'}
6416 $as_echo "$as_val"'`
6417 if test "x$as_val" = x""yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6420 _ACEOF
6421
6422 fi
6423 done
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 for ac_header in $gl_header_list
6442 do
6443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 $as_echo_n "checking for $ac_header... " >&6; }
6447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6448 $as_echo_n "(cached) " >&6
6449 fi
6450 ac_res=`eval 'as_val=${'$as_ac_Header'}
6451 $as_echo "$as_val"'`
6452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6453 $as_echo "$ac_res" >&6; }
6454 else
6455 # Is the header compilable?
6456 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6457 $as_echo_n "checking $ac_header usability... " >&6; }
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 $ac_includes_default
6465 #include <$ac_header>
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6469 case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6474 $as_echo "$ac_try_echo") >&5
6475 (eval "$ac_compile") 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && {
6482 test -z "$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 } && test -s conftest.$ac_objext; then
6485 ac_header_compiler=yes
6486 else
6487 $as_echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 ac_header_compiler=no
6491 fi
6492
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6495 $as_echo "$ac_header_compiler" >&6; }
6496
6497 # Is the header present?
6498 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6499 $as_echo_n "checking $ac_header presence... " >&6; }
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 #include <$ac_header>
6507 _ACEOF
6508 if { (ac_try="$ac_cpp conftest.$ac_ext"
6509 case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6514 $as_echo "$ac_try_echo") >&5
6515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } >/dev/null && {
6522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 }; then
6525 ac_header_preproc=yes
6526 else
6527 $as_echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_header_preproc=no
6531 fi
6532
6533 rm -f conftest.err conftest.$ac_ext
6534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6535 $as_echo "$ac_header_preproc" >&6; }
6536
6537 # So? What about this header?
6538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6539 yes:no: )
6540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6541 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6544 ac_header_preproc=yes
6545 ;;
6546 no:yes:* )
6547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6548 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6550 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6552 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6554 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6556 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6558 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6559 ( cat <<\_ASBOX
6560 ## -------------------------- ##
6561 ## Report this to lost@l-w.ca ##
6562 ## -------------------------- ##
6563 _ASBOX
6564 ) | sed "s/^/$as_me: WARNING: /" >&2
6565 ;;
6566 esac
6567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6568 $as_echo_n "checking for $ac_header... " >&6; }
6569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6570 $as_echo_n "(cached) " >&6
6571 else
6572 eval "$as_ac_Header=\$ac_header_preproc"
6573 fi
6574 ac_res=`eval 'as_val=${'$as_ac_Header'}
6575 $as_echo "$as_val"'`
6576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6577 $as_echo "$ac_res" >&6; }
6578
6579 fi
6580 as_val=`eval 'as_val=${'$as_ac_Header'}
6581 $as_echo "$as_val"'`
6582 if test "x$as_val" = x""yes; then
6583 cat >>confdefs.h <<_ACEOF
6584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6585 _ACEOF
6586
6587 fi
6588
6589 done
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 XGETTEXT_EXTRA_OPTIONS=
6604
6605
6606 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
6607 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
6608 if test "${ac_cv_win_or_dos+set}" = set; then
6609 $as_echo_n "(cached) " >&6
6610 else
6611
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618
6619 int
6620 main ()
6621 {
6622 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
6623 neither MSDOS nor Windows
6624 #endif
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (ac_try="$ac_compile"
6631 case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634 esac
6635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6636 $as_echo "$ac_try_echo") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.$ac_objext; then
6647 ac_cv_win_or_dos=yes
6648 else
6649 $as_echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 ac_cv_win_or_dos=no
6653 fi
6654
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656
6657 fi
6658 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
6659 $as_echo "$ac_cv_win_or_dos" >&6; }
6660
6661 if test x"$ac_cv_win_or_dos" = xyes; then
6662 ac_fs_accepts_drive_letter_prefix=1
6663 ac_fs_backslash_is_file_name_separator=1
6664 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
6665 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
6666 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
6667 $as_echo_n "(cached) " >&6
6668 else
6669
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676
6677 int
6678 main ()
6679 {
6680 #if defined __CYGWIN__
6681 drive letters are always absolute
6682 #endif
6683 ;
6684 return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (ac_try="$ac_compile"
6689 case "(($ac_try" in
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6692 esac
6693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 ac_cv_drive_letter_can_be_relative=yes
6706 else
6707 $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 ac_cv_drive_letter_can_be_relative=no
6711 fi
6712
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
6715 fi
6716 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
6717 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
6718 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
6719 ac_fs_drive_letter_can_be_relative=1
6720 else
6721 ac_fs_drive_letter_can_be_relative=0
6722 fi
6723 else
6724 ac_fs_accepts_drive_letter_prefix=0
6725 ac_fs_backslash_is_file_name_separator=0
6726 ac_fs_drive_letter_can_be_relative=0
6727 fi
6728
6729
6730 cat >>confdefs.h <<_ACEOF
6731 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
6732 _ACEOF
6733
6734
6735
6736
6737
6738
6739 cat >>confdefs.h <<_ACEOF
6740 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
6741 _ACEOF
6742
6743
6744
6745 cat >>confdefs.h <<_ACEOF
6746 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
6747 _ACEOF
6748
6749
6750
6751
6752 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
6753 $as_echo_n "checking whether // is distinct from /... " >&6; }
6754 if test "${gl_cv_double_slash_root+set}" = set; then
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if test x"$cross_compiling" = xyes ; then
6758 # When cross-compiling, there is no way to tell whether // is special
6759 # short of a list of hosts. However, the only known hosts to date
6760 # that have a distinct // are Apollo DomainOS (too old to port to),
6761 # Cygwin, and z/OS. If anyone knows of another system for which // has
6762 # special semantics and is distinct from /, please report it to
6763 # <bug-gnulib@gnu.org>.
6764 case $host in
6765 *-cygwin | i370-ibm-openedition)
6766 gl_cv_double_slash_root=yes ;;
6767 *)
6768 # Be optimistic and assume that / and // are the same when we
6769 # don't know.
6770 gl_cv_double_slash_root='unknown, assuming no' ;;
6771 esac
6772 else
6773 set x `ls -di / // 2>/dev/null`
6774 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6775 gl_cv_double_slash_root=no
6776 else
6777 gl_cv_double_slash_root=yes
6778 fi
6779 fi
6780 fi
6781 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
6782 $as_echo "$gl_cv_double_slash_root" >&6; }
6783 if test "$gl_cv_double_slash_root" = yes; then
6784
6785 cat >>confdefs.h <<\_ACEOF
6786 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
6787 _ACEOF
6788
6789 fi
6790
6791
6792
6793 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6794 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6795 if test "${gl_cv_have_include_next+set}" = set; then
6796 $as_echo_n "(cached) " >&6
6797 else
6798 rm -rf conftestd1a conftestd1b conftestd2
6799 mkdir conftestd1a conftestd1b conftestd2
6800 cat <<EOF > conftestd1a/conftest.h
6801 #define DEFINED_IN_CONFTESTD1
6802 #include_next <conftest.h>
6803 #ifdef DEFINED_IN_CONFTESTD2
6804 int foo;
6805 #else
6806 #error "include_next doesn't work"
6807 #endif
6808 EOF
6809 cat <<EOF > conftestd1b/conftest.h
6810 #define DEFINED_IN_CONFTESTD1
6811 #include <stdio.h>
6812 #include_next <conftest.h>
6813 #ifdef DEFINED_IN_CONFTESTD2
6814 int foo;
6815 #else
6816 #error "include_next doesn't work"
6817 #endif
6818 EOF
6819 cat <<EOF > conftestd2/conftest.h
6820 #ifndef DEFINED_IN_CONFTESTD1
6821 #error "include_next test doesn't work"
6822 #endif
6823 #define DEFINED_IN_CONFTESTD2
6824 EOF
6825 gl_save_CPPFLAGS="$CPPFLAGS"
6826 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6827 cat >conftest.$ac_ext <<_ACEOF
6828 #include <conftest.h>
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (ac_try="$ac_compile"
6832 case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835 esac
6836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6837 $as_echo "$ac_try_echo") >&5
6838 (eval "$ac_compile") 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && {
6845 test -z "$ac_c_werror_flag" ||
6846 test ! -s conftest.err
6847 } && test -s conftest.$ac_objext; then
6848 gl_cv_have_include_next=yes
6849 else
6850 $as_echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #include <conftest.h>
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (ac_try="$ac_compile"
6859 case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864 $as_echo "$ac_try_echo") >&5
6865 (eval "$ac_compile") 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && {
6872 test -z "$ac_c_werror_flag" ||
6873 test ! -s conftest.err
6874 } && test -s conftest.$ac_objext; then
6875 gl_cv_have_include_next=buggy
6876 else
6877 $as_echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 gl_cv_have_include_next=no
6881 fi
6882
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884
6885 fi
6886
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 CPPFLAGS="$gl_save_CPPFLAGS"
6889 rm -rf conftestd1a conftestd1b conftestd2
6890
6891 fi
6892 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6893 $as_echo "$gl_cv_have_include_next" >&6; }
6894 PRAGMA_SYSTEM_HEADER=
6895 if test $gl_cv_have_include_next = yes; then
6896 INCLUDE_NEXT=include_next
6897 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6898 if test -n "$GCC"; then
6899 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6900 fi
6901 else
6902 if test $gl_cv_have_include_next = buggy; then
6903 INCLUDE_NEXT=include
6904 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6905 else
6906 INCLUDE_NEXT=include
6907 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6908 fi
6909 fi
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
6923 $as_echo_n "checking for complete errno.h... " >&6; }
6924 if test "${gl_cv_header_errno_h_complete+set}" = set; then
6925 $as_echo_n "(cached) " >&6
6926 else
6927
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934
6935 #include <errno.h>
6936 #if !defined ENOMSG
6937 booboo
6938 #endif
6939 #if !defined EIDRM
6940 booboo
6941 #endif
6942 #if !defined ENOLINK
6943 booboo
6944 #endif
6945 #if !defined EPROTO
6946 booboo
6947 #endif
6948 #if !defined EMULTIHOP
6949 booboo
6950 #endif
6951 #if !defined EBADMSG
6952 booboo
6953 #endif
6954 #if !defined EOVERFLOW
6955 booboo
6956 #endif
6957 #if !defined ENOTSUP
6958 booboo
6959 #endif
6960 #if !defined ECANCELED
6961 booboo
6962 #endif
6963
6964 _ACEOF
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966 $EGREP "booboo" >/dev/null 2>&1; then
6967 gl_cv_header_errno_h_complete=no
6968 else
6969 gl_cv_header_errno_h_complete=yes
6970 fi
6971 rm -f conftest*
6972
6973
6974 fi
6975 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
6976 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6977 if test $gl_cv_header_errno_h_complete = yes; then
6978 ERRNO_H=''
6979 else
6980
6981
6982
6983
6984 :
6985
6986
6987
6988
6989
6990
6991
6992 if test $gl_cv_have_include_next = yes; then
6993 gl_cv_next_errno_h='<'errno.h'>'
6994 else
6995 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
6996 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6997 if test "${gl_cv_next_errno_h+set}" = set; then
6998 $as_echo_n "(cached) " >&6
6999 else
7000
7001 if test $ac_cv_header_errno_h = yes; then
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #include <errno.h>
7009
7010 _ACEOF
7011 case "$host_os" in
7012 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7013 *) gl_absname_cpp="$ac_cpp" ;;
7014 esac
7015 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7016 sed -n '\#/errno.h#{
7017 s#.*"\(.*/errno.h\)".*#\1#
7018 s#^/[^/]#//&#
7019 p
7020 q
7021 }'`'"'
7022 else
7023 gl_cv_next_errno_h='<'errno.h'>'
7024 fi
7025
7026 fi
7027 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7028 $as_echo "$gl_cv_next_errno_h" >&6; }
7029 fi
7030 NEXT_ERRNO_H=$gl_cv_next_errno_h
7031
7032
7033
7034 ERRNO_H='errno.h'
7035 fi
7036
7037
7038 if test -n "$ERRNO_H"; then
7039 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7040 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7041 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7042 $as_echo_n "(cached) " >&6
7043 else
7044
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051
7052 #include <errno.h>
7053 #ifdef EMULTIHOP
7054 yes
7055 #endif
7056
7057 _ACEOF
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "yes" >/dev/null 2>&1; then
7060 gl_cv_header_errno_h_EMULTIHOP=yes
7061 else
7062 gl_cv_header_errno_h_EMULTIHOP=no
7063 fi
7064 rm -f conftest*
7065
7066 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073
7074 #define _XOPEN_SOURCE_EXTENDED 1
7075 #include <errno.h>
7076 #ifdef EMULTIHOP
7077 yes
7078 #endif
7079
7080 _ACEOF
7081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "yes" >/dev/null 2>&1; then
7083 gl_cv_header_errno_h_EMULTIHOP=hidden
7084 fi
7085 rm -f conftest*
7086
7087 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7088 if test "$cross_compiling" = yes; then
7089 # Depending upon the size, compute the lo and hi bounds.
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096
7097 #define _XOPEN_SOURCE_EXTENDED 1
7098 #include <errno.h>
7099 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7100 #include <stdio.h>
7101 #include <stdlib.h>
7102
7103 int
7104 main ()
7105 {
7106 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
7107 test_array [0] = 0
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_lo=0 ac_mid=0
7132 while :; do
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139
7140 #define _XOPEN_SOURCE_EXTENDED 1
7141 #include <errno.h>
7142 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7143 #include <stdio.h>
7144 #include <stdlib.h>
7145
7146 int
7147 main ()
7148 {
7149 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
7150 test_array [0] = 0
7151
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (ac_try="$ac_compile"
7158 case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161 esac
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 ac_hi=$ac_mid; break
7175 else
7176 $as_echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_lo=`expr $ac_mid + 1`
7180 if test $ac_lo -le $ac_mid; then
7181 ac_lo= ac_hi=
7182 break
7183 fi
7184 ac_mid=`expr 2 '*' $ac_mid + 1`
7185 fi
7186
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 done
7189 else
7190 $as_echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199
7200 #define _XOPEN_SOURCE_EXTENDED 1
7201 #include <errno.h>
7202 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7203 #include <stdio.h>
7204 #include <stdlib.h>
7205
7206 int
7207 main ()
7208 {
7209 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
7210 test_array [0] = 0
7211
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (ac_try="$ac_compile"
7218 case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221 esac
7222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7223 $as_echo "$ac_try_echo") >&5
7224 (eval "$ac_compile") 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest.$ac_objext; then
7234 ac_hi=-1 ac_mid=-1
7235 while :; do
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242
7243 #define _XOPEN_SOURCE_EXTENDED 1
7244 #include <errno.h>
7245 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7246 #include <stdio.h>
7247 #include <stdlib.h>
7248
7249 int
7250 main ()
7251 {
7252 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
7253 test_array [0] = 0
7254
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7266 $as_echo "$ac_try_echo") >&5
7267 (eval "$ac_compile") 2>conftest.er1
7268 ac_status=$?
7269 grep -v '^ *+' conftest.er1 >conftest.err
7270 rm -f conftest.er1
7271 cat conftest.err >&5
7272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest.$ac_objext; then
7277 ac_lo=$ac_mid; break
7278 else
7279 $as_echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_hi=`expr '(' $ac_mid ')' - 1`
7283 if test $ac_mid -le $ac_hi; then
7284 ac_lo= ac_hi=
7285 break
7286 fi
7287 ac_mid=`expr 2 '*' $ac_mid`
7288 fi
7289
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 done
7292 else
7293 $as_echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 ac_lo= ac_hi=
7297 fi
7298
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 # Binary search between lo and hi bounds.
7304 while test "x$ac_lo" != "x$ac_hi"; do
7305 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312
7313 #define _XOPEN_SOURCE_EXTENDED 1
7314 #include <errno.h>
7315 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7316 #include <stdio.h>
7317 #include <stdlib.h>
7318
7319 int
7320 main ()
7321 {
7322 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
7323 test_array [0] = 0
7324
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (ac_try="$ac_compile"
7331 case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334 esac
7335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7336 $as_echo "$ac_try_echo") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 ac_hi=$ac_mid
7348 else
7349 $as_echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352 ac_lo=`expr '(' $ac_mid ')' + 1`
7353 fi
7354
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 done
7357 case $ac_lo in
7358 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
7359 '') ;;
7360 esac
7361 else
7362 cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h. */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368
7369 #define _XOPEN_SOURCE_EXTENDED 1
7370 #include <errno.h>
7371 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7372 #include <stdio.h>
7373 #include <stdlib.h>
7374
7375 static long int longval () { return EMULTIHOP; }
7376 static unsigned long int ulongval () { return EMULTIHOP; }
7377 #include <stdio.h>
7378 #include <stdlib.h>
7379 int
7380 main ()
7381 {
7382
7383 FILE *f = fopen ("conftest.val", "w");
7384 if (! f)
7385 return 1;
7386 if ((EMULTIHOP) < 0)
7387 {
7388 long int i = longval ();
7389 if (i != (EMULTIHOP))
7390 return 1;
7391 fprintf (f, "%ld", i);
7392 }
7393 else
7394 {
7395 unsigned long int i = ulongval ();
7396 if (i != (EMULTIHOP))
7397 return 1;
7398 fprintf (f, "%lu", i);
7399 }
7400 /* Do not output a trailing newline, as this causes \r\n confusion
7401 on some platforms. */
7402 return ferror (f) || fclose (f) != 0;
7403
7404 ;
7405 return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7410 case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413 esac
7414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415 $as_echo "$ac_try_echo") >&5
7416 (eval "$ac_link") 2>&5
7417 ac_status=$?
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7420 { (case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423 esac
7424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7425 $as_echo "$ac_try_echo") >&5
7426 (eval "$ac_try") 2>&5
7427 ac_status=$?
7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
7431 else
7432 $as_echo "$as_me: program exited with status $ac_status" >&5
7433 $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436 fi
7437 rm -rf conftest.dSYM
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7439 fi
7440 rm -f conftest.val
7441 fi
7442 fi
7443
7444 fi
7445 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7446 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7447 case $gl_cv_header_errno_h_EMULTIHOP in
7448 yes | no)
7449 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7450 ;;
7451 *)
7452 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7453 ;;
7454 esac
7455
7456
7457 fi
7458
7459
7460 if test -n "$ERRNO_H"; then
7461 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
7462 $as_echo_n "checking for ENOLINK value... " >&6; }
7463 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
7464 $as_echo_n "(cached) " >&6
7465 else
7466
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473
7474 #include <errno.h>
7475 #ifdef ENOLINK
7476 yes
7477 #endif
7478
7479 _ACEOF
7480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7481 $EGREP "yes" >/dev/null 2>&1; then
7482 gl_cv_header_errno_h_ENOLINK=yes
7483 else
7484 gl_cv_header_errno_h_ENOLINK=no
7485 fi
7486 rm -f conftest*
7487
7488 if test $gl_cv_header_errno_h_ENOLINK = no; then
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495
7496 #define _XOPEN_SOURCE_EXTENDED 1
7497 #include <errno.h>
7498 #ifdef ENOLINK
7499 yes
7500 #endif
7501
7502 _ACEOF
7503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7504 $EGREP "yes" >/dev/null 2>&1; then
7505 gl_cv_header_errno_h_ENOLINK=hidden
7506 fi
7507 rm -f conftest*
7508
7509 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7510 if test "$cross_compiling" = yes; then
7511 # Depending upon the size, compute the lo and hi bounds.
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518
7519 #define _XOPEN_SOURCE_EXTENDED 1
7520 #include <errno.h>
7521 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7522 #include <stdio.h>
7523 #include <stdlib.h>
7524
7525 int
7526 main ()
7527 {
7528 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
7529 test_array [0] = 0
7530
7531 ;
7532 return 0;
7533 }
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (ac_try="$ac_compile"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7542 $as_echo "$ac_try_echo") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_lo=0 ac_mid=0
7554 while :; do
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561
7562 #define _XOPEN_SOURCE_EXTENDED 1
7563 #include <errno.h>
7564 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7565 #include <stdio.h>
7566 #include <stdlib.h>
7567
7568 int
7569 main ()
7570 {
7571 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7572 test_array [0] = 0
7573
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 rm -f conftest.$ac_objext
7579 if { (ac_try="$ac_compile"
7580 case "(($ac_try" in
7581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582 *) ac_try_echo=$ac_try;;
7583 esac
7584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7585 $as_echo "$ac_try_echo") >&5
7586 (eval "$ac_compile") 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } && {
7593 test -z "$ac_c_werror_flag" ||
7594 test ! -s conftest.err
7595 } && test -s conftest.$ac_objext; then
7596 ac_hi=$ac_mid; break
7597 else
7598 $as_echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7600
7601 ac_lo=`expr $ac_mid + 1`
7602 if test $ac_lo -le $ac_mid; then
7603 ac_lo= ac_hi=
7604 break
7605 fi
7606 ac_mid=`expr 2 '*' $ac_mid + 1`
7607 fi
7608
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 done
7611 else
7612 $as_echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621
7622 #define _XOPEN_SOURCE_EXTENDED 1
7623 #include <errno.h>
7624 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7625 #include <stdio.h>
7626 #include <stdlib.h>
7627
7628 int
7629 main ()
7630 {
7631 static int test_array [1 - 2 * !((ENOLINK) < 0)];
7632 test_array [0] = 0
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645 $as_echo "$ac_try_echo") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_hi=-1 ac_mid=-1
7657 while :; do
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664
7665 #define _XOPEN_SOURCE_EXTENDED 1
7666 #include <errno.h>
7667 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7668 #include <stdio.h>
7669 #include <stdlib.h>
7670
7671 int
7672 main ()
7673 {
7674 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
7675 test_array [0] = 0
7676
7677 ;
7678 return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (ac_try="$ac_compile"
7683 case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686 esac
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 ac_lo=$ac_mid; break
7700 else
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 ac_hi=`expr '(' $ac_mid ')' - 1`
7705 if test $ac_mid -le $ac_hi; then
7706 ac_lo= ac_hi=
7707 break
7708 fi
7709 ac_mid=`expr 2 '*' $ac_mid`
7710 fi
7711
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 done
7714 else
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_lo= ac_hi=
7719 fi
7720
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 fi
7723
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 # Binary search between lo and hi bounds.
7726 while test "x$ac_lo" != "x$ac_hi"; do
7727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7728 cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734
7735 #define _XOPEN_SOURCE_EXTENDED 1
7736 #include <errno.h>
7737 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7738 #include <stdio.h>
7739 #include <stdlib.h>
7740
7741 int
7742 main ()
7743 {
7744 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7745 test_array [0] = 0
7746
7747 ;
7748 return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7753 case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756 esac
7757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7758 $as_echo "$ac_try_echo") >&5
7759 (eval "$ac_compile") 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && {
7766 test -z "$ac_c_werror_flag" ||
7767 test ! -s conftest.err
7768 } && test -s conftest.$ac_objext; then
7769 ac_hi=$ac_mid
7770 else
7771 $as_echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ac_lo=`expr '(' $ac_mid ')' + 1`
7775 fi
7776
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 done
7779 case $ac_lo in
7780 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
7781 '') ;;
7782 esac
7783 else
7784 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790
7791 #define _XOPEN_SOURCE_EXTENDED 1
7792 #include <errno.h>
7793 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7794 #include <stdio.h>
7795 #include <stdlib.h>
7796
7797 static long int longval () { return ENOLINK; }
7798 static unsigned long int ulongval () { return ENOLINK; }
7799 #include <stdio.h>
7800 #include <stdlib.h>
7801 int
7802 main ()
7803 {
7804
7805 FILE *f = fopen ("conftest.val", "w");
7806 if (! f)
7807 return 1;
7808 if ((ENOLINK) < 0)
7809 {
7810 long int i = longval ();
7811 if (i != (ENOLINK))
7812 return 1;
7813 fprintf (f, "%ld", i);
7814 }
7815 else
7816 {
7817 unsigned long int i = ulongval ();
7818 if (i != (ENOLINK))
7819 return 1;
7820 fprintf (f, "%lu", i);
7821 }
7822 /* Do not output a trailing newline, as this causes \r\n confusion
7823 on some platforms. */
7824 return ferror (f) || fclose (f) != 0;
7825
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest$ac_exeext
7831 if { (ac_try="$ac_link"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837 $as_echo "$ac_try_echo") >&5
7838 (eval "$ac_link") 2>&5
7839 ac_status=$?
7840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847 $as_echo "$ac_try_echo") >&5
7848 (eval "$ac_try") 2>&5
7849 ac_status=$?
7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
7853 else
7854 $as_echo "$as_me: program exited with status $ac_status" >&5
7855 $as_echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 fi
7859 rm -rf conftest.dSYM
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7861 fi
7862 rm -f conftest.val
7863 fi
7864 fi
7865
7866 fi
7867 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
7868 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7869 case $gl_cv_header_errno_h_ENOLINK in
7870 yes | no)
7871 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7872 ;;
7873 *)
7874 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7875 ;;
7876 esac
7877
7878
7879 fi
7880
7881
7882 if test -n "$ERRNO_H"; then
7883 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
7884 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7885 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
7886 $as_echo_n "(cached) " >&6
7887 else
7888
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895
7896 #include <errno.h>
7897 #ifdef EOVERFLOW
7898 yes
7899 #endif
7900
7901 _ACEOF
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903 $EGREP "yes" >/dev/null 2>&1; then
7904 gl_cv_header_errno_h_EOVERFLOW=yes
7905 else
7906 gl_cv_header_errno_h_EOVERFLOW=no
7907 fi
7908 rm -f conftest*
7909
7910 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917
7918 #define _XOPEN_SOURCE_EXTENDED 1
7919 #include <errno.h>
7920 #ifdef EOVERFLOW
7921 yes
7922 #endif
7923
7924 _ACEOF
7925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7926 $EGREP "yes" >/dev/null 2>&1; then
7927 gl_cv_header_errno_h_EOVERFLOW=hidden
7928 fi
7929 rm -f conftest*
7930
7931 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7932 if test "$cross_compiling" = yes; then
7933 # Depending upon the size, compute the lo and hi bounds.
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940
7941 #define _XOPEN_SOURCE_EXTENDED 1
7942 #include <errno.h>
7943 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7944 #include <stdio.h>
7945 #include <stdlib.h>
7946
7947 int
7948 main ()
7949 {
7950 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
7951 test_array [0] = 0
7952
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (ac_try="$ac_compile"
7959 case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962 esac
7963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7964 $as_echo "$ac_try_echo") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
7975 ac_lo=0 ac_mid=0
7976 while :; do
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983
7984 #define _XOPEN_SOURCE_EXTENDED 1
7985 #include <errno.h>
7986 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7987 #include <stdio.h>
7988 #include <stdlib.h>
7989
7990 int
7991 main ()
7992 {
7993 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7994 test_array [0] = 0
7995
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8007 $as_echo "$ac_try_echo") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_hi=$ac_mid; break
8019 else
8020 $as_echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_lo=`expr $ac_mid + 1`
8024 if test $ac_lo -le $ac_mid; then
8025 ac_lo= ac_hi=
8026 break
8027 fi
8028 ac_mid=`expr 2 '*' $ac_mid + 1`
8029 fi
8030
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 done
8033 else
8034 $as_echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043
8044 #define _XOPEN_SOURCE_EXTENDED 1
8045 #include <errno.h>
8046 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8047 #include <stdio.h>
8048 #include <stdlib.h>
8049
8050 int
8051 main ()
8052 {
8053 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8054 test_array [0] = 0
8055
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 ac_hi=-1 ac_mid=-1
8079 while :; do
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086
8087 #define _XOPEN_SOURCE_EXTENDED 1
8088 #include <errno.h>
8089 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8090 #include <stdio.h>
8091 #include <stdlib.h>
8092
8093 int
8094 main ()
8095 {
8096 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
8097 test_array [0] = 0
8098
8099 ;
8100 return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest.$ac_objext; then
8121 ac_lo=$ac_mid; break
8122 else
8123 $as_echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ac_hi=`expr '(' $ac_mid ')' - 1`
8127 if test $ac_mid -le $ac_hi; then
8128 ac_lo= ac_hi=
8129 break
8130 fi
8131 ac_mid=`expr 2 '*' $ac_mid`
8132 fi
8133
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 done
8136 else
8137 $as_echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ac_lo= ac_hi=
8141 fi
8142
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 # Binary search between lo and hi bounds.
8148 while test "x$ac_lo" != "x$ac_hi"; do
8149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156
8157 #define _XOPEN_SOURCE_EXTENDED 1
8158 #include <errno.h>
8159 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8160 #include <stdio.h>
8161 #include <stdlib.h>
8162
8163 int
8164 main ()
8165 {
8166 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8167 test_array [0] = 0
8168
8169 ;
8170 return 0;
8171 }
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8175 case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178 esac
8179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8180 $as_echo "$ac_try_echo") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest.$ac_objext; then
8191 ac_hi=$ac_mid
8192 else
8193 $as_echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ac_lo=`expr '(' $ac_mid ')' + 1`
8197 fi
8198
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 done
8201 case $ac_lo in
8202 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
8203 '') ;;
8204 esac
8205 else
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212
8213 #define _XOPEN_SOURCE_EXTENDED 1
8214 #include <errno.h>
8215 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8216 #include <stdio.h>
8217 #include <stdlib.h>
8218
8219 static long int longval () { return EOVERFLOW; }
8220 static unsigned long int ulongval () { return EOVERFLOW; }
8221 #include <stdio.h>
8222 #include <stdlib.h>
8223 int
8224 main ()
8225 {
8226
8227 FILE *f = fopen ("conftest.val", "w");
8228 if (! f)
8229 return 1;
8230 if ((EOVERFLOW) < 0)
8231 {
8232 long int i = longval ();
8233 if (i != (EOVERFLOW))
8234 return 1;
8235 fprintf (f, "%ld", i);
8236 }
8237 else
8238 {
8239 unsigned long int i = ulongval ();
8240 if (i != (EOVERFLOW))
8241 return 1;
8242 fprintf (f, "%lu", i);
8243 }
8244 /* Do not output a trailing newline, as this causes \r\n confusion
8245 on some platforms. */
8246 return ferror (f) || fclose (f) != 0;
8247
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8254 case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8259 $as_echo "$ac_try_echo") >&5
8260 (eval "$ac_link") 2>&5
8261 ac_status=$?
8262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8269 $as_echo "$ac_try_echo") >&5
8270 (eval "$ac_try") 2>&5
8271 ac_status=$?
8272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
8275 else
8276 $as_echo "$as_me: program exited with status $ac_status" >&5
8277 $as_echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 fi
8281 rm -rf conftest.dSYM
8282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 rm -f conftest.val
8285 fi
8286 fi
8287
8288 fi
8289 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8290 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8291 case $gl_cv_header_errno_h_EOVERFLOW in
8292 yes | no)
8293 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8294 ;;
8295 *)
8296 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8297 ;;
8298 esac
8299
8300
8301 fi
8302
8303
8304 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
8305 $as_echo_n "checking whether strerror_r is declared... " >&6; }
8306 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
8307 $as_echo_n "(cached) " >&6
8308 else
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 $ac_includes_default
8316 int
8317 main ()
8318 {
8319 #ifndef strerror_r
8320 (void) strerror_r;
8321 #endif
8322
8323 ;
8324 return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8329 case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332 esac
8333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8334 $as_echo "$ac_try_echo") >&5
8335 (eval "$ac_compile") 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && {
8342 test -z "$ac_c_werror_flag" ||
8343 test ! -s conftest.err
8344 } && test -s conftest.$ac_objext; then
8345 ac_cv_have_decl_strerror_r=yes
8346 else
8347 $as_echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 ac_cv_have_decl_strerror_r=no
8351 fi
8352
8353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 fi
8355 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
8356 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
8357 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
8358
8359 cat >>confdefs.h <<_ACEOF
8360 #define HAVE_DECL_STRERROR_R 1
8361 _ACEOF
8362
8363
8364 else
8365 cat >>confdefs.h <<_ACEOF
8366 #define HAVE_DECL_STRERROR_R 0
8367 _ACEOF
8368
8369
8370 fi
8371
8372
8373
8374 for ac_func in strerror_r
8375 do
8376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8377 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8378 $as_echo_n "checking for $ac_func... " >&6; }
8379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8390 #define $ac_func innocuous_$ac_func
8391
8392 /* System header to define __stub macros and hopefully few prototypes,
8393 which can conflict with char $ac_func (); below.
8394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8395 <limits.h> exists even on freestanding compilers. */
8396
8397 #ifdef __STDC__
8398 # include <limits.h>
8399 #else
8400 # include <assert.h>
8401 #endif
8402
8403 #undef $ac_func
8404
8405 /* Override any GCC internal prototype to avoid an error.
8406 Use char because int might match the return type of a GCC
8407 builtin and then its argument prototype would still apply. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 char $ac_func ();
8412 /* The GNU C library defines this for functions which it implements
8413 to always fail with ENOSYS. Some functions are actually named
8414 something starting with __ and the normal name is an alias. */
8415 #if defined __stub_$ac_func || defined __stub___$ac_func
8416 choke me
8417 #endif
8418
8419 int
8420 main ()
8421 {
8422 return $ac_func ();
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8429 case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432 esac
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_link") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest$ac_exeext && {
8445 test "$cross_compiling" = yes ||
8446 $as_test_x conftest$ac_exeext
8447 }; then
8448 eval "$as_ac_var=yes"
8449 else
8450 $as_echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 eval "$as_ac_var=no"
8454 fi
8455
8456 rm -rf conftest.dSYM
8457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8458 conftest$ac_exeext conftest.$ac_ext
8459 fi
8460 ac_res=`eval 'as_val=${'$as_ac_var'}
8461 $as_echo "$as_val"'`
8462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8463 $as_echo "$ac_res" >&6; }
8464 as_val=`eval 'as_val=${'$as_ac_var'}
8465 $as_echo "$as_val"'`
8466 if test "x$as_val" = x""yes; then
8467 cat >>confdefs.h <<_ACEOF
8468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8469 _ACEOF
8470
8471 fi
8472 done
8473
8474 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
8475 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8476 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
8477 $as_echo_n "(cached) " >&6
8478 else
8479
8480 ac_cv_func_strerror_r_char_p=no
8481 if test $ac_cv_have_decl_strerror_r = yes; then
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 int
8490 main ()
8491 {
8492
8493 char buf[100];
8494 char x = *strerror_r (0, buf, sizeof buf);
8495 char *p = strerror_r (0, buf, sizeof buf);
8496 return !p || x;
8497
8498 ;
8499 return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8504 case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507 esac
8508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8509 $as_echo "$ac_try_echo") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest.$ac_objext; then
8520 ac_cv_func_strerror_r_char_p=yes
8521 else
8522 $as_echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525
8526 fi
8527
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 else
8530 # strerror_r is not declared. Choose between
8531 # systems that have relatively inaccessible declarations for the
8532 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8533 # former has a strerror_r that returns char*, while the latter
8534 # has a strerror_r that returns `int'.
8535 # This test should segfault on the DEC system.
8536 if test "$cross_compiling" = yes; then
8537 :
8538 else
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 extern char *strerror_r ();
8547 int
8548 main ()
8549 {
8550 char buf[100];
8551 char x = *strerror_r (0, buf, sizeof buf);
8552 return ! isalpha (x);
8553 ;
8554 return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8559 case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562 esac
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565 (eval "$ac_link") 2>&5
8566 ac_status=$?
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8569 { (case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_try") 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_func_strerror_r_char_p=yes
8580 else
8581 $as_echo "$as_me: program exited with status $ac_status" >&5
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 fi
8586 rm -rf conftest.dSYM
8587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8588 fi
8589
8590
8591 fi
8592
8593 fi
8594 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
8595 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8596 if test $ac_cv_func_strerror_r_char_p = yes; then
8597
8598 cat >>confdefs.h <<\_ACEOF
8599 #define STRERROR_R_CHAR_P 1
8600 _ACEOF
8601
8602 fi
8603
8604
8605
8606
8607
8608
8609
8610
8611 if test -z "$GETOPT_H"; then
8612
8613 for ac_header in getopt.h
8614 do
8615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 $as_echo_n "checking for $ac_header... " >&6; }
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 $as_echo_n "(cached) " >&6
8621 fi
8622 ac_res=`eval 'as_val=${'$as_ac_Header'}
8623 $as_echo "$as_val"'`
8624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8625 $as_echo "$ac_res" >&6; }
8626 else
8627 # Is the header compilable?
8628 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8629 $as_echo_n "checking $ac_header usability... " >&6; }
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #include <$ac_header>
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8641 case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644 esac
8645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8646 $as_echo "$ac_try_echo") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8657 ac_header_compiler=yes
8658 else
8659 $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662 ac_header_compiler=no
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667 $as_echo "$ac_header_compiler" >&6; }
8668
8669 # Is the header present?
8670 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8671 $as_echo_n "checking $ac_header presence... " >&6; }
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <$ac_header>
8679 _ACEOF
8680 if { (ac_try="$ac_cpp conftest.$ac_ext"
8681 case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8686 $as_echo "$ac_try_echo") >&5
8687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } >/dev/null && {
8694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 }; then
8697 ac_header_preproc=yes
8698 else
8699 $as_echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_header_preproc=no
8703 fi
8704
8705 rm -f conftest.err conftest.$ac_ext
8706 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 $as_echo "$ac_header_preproc" >&6; }
8708
8709 # So? What about this header?
8710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8711 yes:no: )
8712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8713 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8716 ac_header_preproc=yes
8717 ;;
8718 no:yes:* )
8719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8720 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8722 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8724 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8726 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8730 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8731 ( cat <<\_ASBOX
8732 ## -------------------------- ##
8733 ## Report this to lost@l-w.ca ##
8734 ## -------------------------- ##
8735 _ASBOX
8736 ) | sed "s/^/$as_me: WARNING: /" >&2
8737 ;;
8738 esac
8739 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 $as_echo_n "checking for $ac_header... " >&6; }
8741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8742 $as_echo_n "(cached) " >&6
8743 else
8744 eval "$as_ac_Header=\$ac_header_preproc"
8745 fi
8746 ac_res=`eval 'as_val=${'$as_ac_Header'}
8747 $as_echo "$as_val"'`
8748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8749 $as_echo "$ac_res" >&6; }
8750
8751 fi
8752 as_val=`eval 'as_val=${'$as_ac_Header'}
8753 $as_echo "$as_val"'`
8754 if test "x$as_val" = x""yes; then
8755 cat >>confdefs.h <<_ACEOF
8756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757 _ACEOF
8758
8759 else
8760 GETOPT_H=getopt.h
8761 fi
8762
8763 done
8764
8765 fi
8766
8767 if test -z "$GETOPT_H"; then
8768
8769 for ac_func in getopt_long_only
8770 do
8771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8772 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8773 $as_echo_n "checking for $ac_func... " >&6; }
8774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8775 $as_echo_n "(cached) " >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8785 #define $ac_func innocuous_$ac_func
8786
8787 /* System header to define __stub macros and hopefully few prototypes,
8788 which can conflict with char $ac_func (); below.
8789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8790 <limits.h> exists even on freestanding compilers. */
8791
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797
8798 #undef $ac_func
8799
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char $ac_func ();
8807 /* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810 #if defined __stub_$ac_func || defined __stub___$ac_func
8811 choke me
8812 #endif
8813
8814 int
8815 main ()
8816 {
8817 return $ac_func ();
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8824 case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830 (eval "$ac_link") 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest$ac_exeext && {
8840 test "$cross_compiling" = yes ||
8841 $as_test_x conftest$ac_exeext
8842 }; then
8843 eval "$as_ac_var=yes"
8844 else
8845 $as_echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 eval "$as_ac_var=no"
8849 fi
8850
8851 rm -rf conftest.dSYM
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853 conftest$ac_exeext conftest.$ac_ext
8854 fi
8855 ac_res=`eval 'as_val=${'$as_ac_var'}
8856 $as_echo "$as_val"'`
8857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8858 $as_echo "$ac_res" >&6; }
8859 as_val=`eval 'as_val=${'$as_ac_var'}
8860 $as_echo "$as_val"'`
8861 if test "x$as_val" = x""yes; then
8862 cat >>confdefs.h <<_ACEOF
8863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8864 _ACEOF
8865
8866 else
8867 GETOPT_H=getopt.h
8868 fi
8869 done
8870
8871 fi
8872
8873 if test -z "$GETOPT_H"; then
8874 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
8875 $as_echo_n "checking whether optreset is declared... " >&6; }
8876 if test "${ac_cv_have_decl_optreset+set}" = set; then
8877 $as_echo_n "(cached) " >&6
8878 else
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include <getopt.h>
8886
8887 int
8888 main ()
8889 {
8890 #ifndef optreset
8891 (void) optreset;
8892 #endif
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8900 case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903 esac
8904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8905 $as_echo "$ac_try_echo") >&5
8906 (eval "$ac_compile") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest.$ac_objext; then
8916 ac_cv_have_decl_optreset=yes
8917 else
8918 $as_echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_have_decl_optreset=no
8922 fi
8923
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
8927 $as_echo "$ac_cv_have_decl_optreset" >&6; }
8928 if test "x$ac_cv_have_decl_optreset" = x""yes; then
8929 GETOPT_H=getopt.h
8930 fi
8931
8932 fi
8933
8934 if test -z "$GETOPT_H"; then
8935 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
8936 $as_echo_n "checking for working GNU getopt function... " >&6; }
8937 if test "${gl_cv_func_gnu_getopt+set}" = set; then
8938 $as_echo_n "(cached) " >&6
8939 else
8940 if test "$cross_compiling" = yes; then
8941 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
8942 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
8943 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #include <getopt.h>
8953
8954 int
8955 main ()
8956 {
8957 #ifndef getopt_clip
8958 (void) getopt_clip;
8959 #endif
8960
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (ac_try="$ac_compile"
8967 case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970 esac
8971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8972 $as_echo "$ac_try_echo") >&5
8973 (eval "$ac_compile") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && {
8980 test -z "$ac_c_werror_flag" ||
8981 test ! -s conftest.err
8982 } && test -s conftest.$ac_objext; then
8983 ac_cv_have_decl_getopt_clip=yes
8984 else
8985 $as_echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_cv_have_decl_getopt_clip=no
8989 fi
8990
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
8994 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
8995 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
8996 gl_cv_func_gnu_getopt=no
8997 else
8998 gl_cv_func_gnu_getopt=yes
8999 fi
9000
9001 else
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 #include <getopt.h>
9009 int
9010 main ()
9011 {
9012
9013 char *myargv[3];
9014 myargv[0] = "conftest";
9015 myargv[1] = "-+";
9016 myargv[2] = 0;
9017 return getopt (2, myargv, "+a") != '?';
9018
9019 ;
9020 return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest$ac_exeext
9024 if { (ac_try="$ac_link"
9025 case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9028 esac
9029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9030 $as_echo "$ac_try_echo") >&5
9031 (eval "$ac_link") 2>&5
9032 ac_status=$?
9033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035 { (case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_try") 2>&5
9042 ac_status=$?
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 gl_cv_func_gnu_getopt=yes
9046 else
9047 $as_echo "$as_me: program exited with status $ac_status" >&5
9048 $as_echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ( exit $ac_status )
9052 gl_cv_func_gnu_getopt=no
9053 fi
9054 rm -rf conftest.dSYM
9055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056 fi
9057
9058
9059 fi
9060 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
9061 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
9062 if test "$gl_cv_func_gnu_getopt" = "no"; then
9063 GETOPT_H=getopt.h
9064 fi
9065 fi
9066
9067
9068 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9069 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9070 if test "${gl_cv_func_malloc_posix+set}" = set; then
9071 $as_echo_n "(cached) " >&6
9072 else
9073
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080
9081 int
9082 main ()
9083 {
9084 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9085 choke me
9086 #endif
9087
9088 ;
9089 return 0;
9090 }
9091 _ACEOF
9092 rm -f conftest.$ac_objext
9093 if { (ac_try="$ac_compile"
9094 case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097 esac
9098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9099 $as_echo "$ac_try_echo") >&5
9100 (eval "$ac_compile") 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest.$ac_objext; then
9110 gl_cv_func_malloc_posix=yes
9111 else
9112 $as_echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 gl_cv_func_malloc_posix=no
9116 fi
9117
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119
9120 fi
9121 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
9122 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9123
9124
9125 GNULIB_MALLOC_POSIX=0;
9126 GNULIB_REALLOC_POSIX=0;
9127 GNULIB_CALLOC_POSIX=0;
9128 GNULIB_ATOLL=0;
9129 GNULIB_GETLOADAVG=0;
9130 GNULIB_GETSUBOPT=0;
9131 GNULIB_MKDTEMP=0;
9132 GNULIB_MKSTEMP=0;
9133 GNULIB_PUTENV=0;
9134 GNULIB_RANDOM_R=0;
9135 GNULIB_RPMATCH=0;
9136 GNULIB_SETENV=0;
9137 GNULIB_STRTOD=0;
9138 GNULIB_STRTOLL=0;
9139 GNULIB_STRTOULL=0;
9140 GNULIB_UNSETENV=0;
9141 HAVE_ATOLL=1;
9142 HAVE_CALLOC_POSIX=1;
9143 HAVE_GETSUBOPT=1;
9144 HAVE_MALLOC_POSIX=1;
9145 HAVE_MKDTEMP=1;
9146 HAVE_REALLOC_POSIX=1;
9147 HAVE_RANDOM_R=1;
9148 HAVE_RPMATCH=1;
9149 HAVE_SETENV=1;
9150 HAVE_STRTOD=1;
9151 HAVE_STRTOLL=1;
9152 HAVE_STRTOULL=1;
9153 HAVE_STRUCT_RANDOM_DATA=1;
9154 HAVE_SYS_LOADAVG_H=0;
9155 HAVE_UNSETENV=1;
9156 HAVE_DECL_GETLOADAVG=1;
9157 REPLACE_MKSTEMP=0;
9158 REPLACE_PUTENV=0;
9159 REPLACE_STRTOD=0;
9160 VOID_UNSETENV=0;
9161
9162
9163 GNULIB_MEMMEM=0;
9164 GNULIB_MEMPCPY=0;
9165 GNULIB_MEMRCHR=0;
9166 GNULIB_RAWMEMCHR=0;
9167 GNULIB_STPCPY=0;
9168 GNULIB_STPNCPY=0;
9169 GNULIB_STRCHRNUL=0;
9170 GNULIB_STRDUP=0;
9171 GNULIB_STRNDUP=0;
9172 GNULIB_STRNLEN=0;
9173 GNULIB_STRPBRK=0;
9174 GNULIB_STRSEP=0;
9175 GNULIB_STRSTR=0;
9176 GNULIB_STRCASESTR=0;
9177 GNULIB_STRTOK_R=0;
9178 GNULIB_MBSLEN=0;
9179 GNULIB_MBSNLEN=0;
9180 GNULIB_MBSCHR=0;
9181 GNULIB_MBSRCHR=0;
9182 GNULIB_MBSSTR=0;
9183 GNULIB_MBSCASECMP=0;
9184 GNULIB_MBSNCASECMP=0;
9185 GNULIB_MBSPCASECMP=0;
9186 GNULIB_MBSCASESTR=0;
9187 GNULIB_MBSCSPN=0;
9188 GNULIB_MBSPBRK=0;
9189 GNULIB_MBSSPN=0;
9190 GNULIB_MBSSEP=0;
9191 GNULIB_MBSTOK_R=0;
9192 GNULIB_STRERROR=0;
9193 GNULIB_STRSIGNAL=0;
9194 GNULIB_STRVERSCMP=0;
9195 HAVE_DECL_MEMMEM=1;
9196 HAVE_MEMPCPY=1;
9197 HAVE_DECL_MEMRCHR=1;
9198 HAVE_RAWMEMCHR=1;
9199 HAVE_STPCPY=1;
9200 HAVE_STPNCPY=1;
9201 HAVE_STRCHRNUL=1;
9202 HAVE_DECL_STRDUP=1;
9203 HAVE_STRNDUP=1;
9204 HAVE_DECL_STRNDUP=1;
9205 HAVE_DECL_STRNLEN=1;
9206 HAVE_STRPBRK=1;
9207 HAVE_STRSEP=1;
9208 HAVE_STRCASESTR=1;
9209 HAVE_DECL_STRTOK_R=1;
9210 HAVE_DECL_STRERROR=1;
9211 HAVE_DECL_STRSIGNAL=1;
9212 HAVE_STRVERSCMP=1;
9213 REPLACE_MEMMEM=0;
9214 REPLACE_STRDUP=0;
9215 REPLACE_STRSTR=0;
9216 REPLACE_STRCASESTR=0;
9217 REPLACE_STRERROR=0;
9218 REPLACE_STRSIGNAL=0;
9219
9220
9221 gl_cv_c_multiarch=no
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #ifndef __APPLE_CC__
9229 not a universal capable compiler
9230 #endif
9231 typedef int dummy;
9232
9233 _ACEOF
9234 rm -f conftest.$ac_objext
9235 if { (ac_try="$ac_compile"
9236 case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9239 esac
9240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9241 $as_echo "$ac_try_echo") >&5
9242 (eval "$ac_compile") 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest.$ac_objext; then
9252
9253 arch=
9254 prev=
9255 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9256 if test -n "$prev"; then
9257 case $word in
9258 i?86 | x86_64 | ppc | ppc64)
9259 if test -z "$arch" || test "$arch" = "$word"; then
9260 arch="$word"
9261 else
9262 gl_cv_c_multiarch=yes
9263 fi
9264 ;;
9265 esac
9266 prev=
9267 else
9268 if test "x$word" = "x-arch"; then
9269 prev=arch
9270 fi
9271 fi
9272 done
9273
9274 else
9275 $as_echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278
9279 fi
9280
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 if test $gl_cv_c_multiarch = yes; then
9283
9284 cat >>confdefs.h <<\_ACEOF
9285 #define AA_APPLE_UNIVERSAL_BUILD 1
9286 _ACEOF
9287
9288 APPLE_UNIVERSAL_BUILD=1
9289 else
9290 APPLE_UNIVERSAL_BUILD=0
9291 fi
9292
9293
9294
9295 GNULIB_CHOWN=0;
9296 GNULIB_CLOSE=0;
9297 GNULIB_DUP2=0;
9298 GNULIB_ENVIRON=0;
9299 GNULIB_EUIDACCESS=0;
9300 GNULIB_FCHDIR=0;
9301 GNULIB_FSYNC=0;
9302 GNULIB_FTRUNCATE=0;
9303 GNULIB_GETCWD=0;
9304 GNULIB_GETDOMAINNAME=0;
9305 GNULIB_GETDTABLESIZE=0;
9306 GNULIB_GETHOSTNAME=0;
9307 GNULIB_GETLOGIN_R=0;
9308 GNULIB_GETPAGESIZE=0;
9309 GNULIB_GETUSERSHELL=0;
9310 GNULIB_LCHOWN=0;
9311 GNULIB_LSEEK=0;
9312 GNULIB_READLINK=0;
9313 GNULIB_SLEEP=0;
9314 GNULIB_UNISTD_H_SIGPIPE=0;
9315 GNULIB_WRITE=0;
9316 HAVE_DUP2=1;
9317 HAVE_EUIDACCESS=1;
9318 HAVE_FSYNC=1;
9319 HAVE_FTRUNCATE=1;
9320 HAVE_GETDOMAINNAME=1;
9321 HAVE_GETDTABLESIZE=1;
9322 HAVE_GETHOSTNAME=1;
9323 HAVE_GETPAGESIZE=1;
9324 HAVE_GETUSERSHELL=1;
9325 HAVE_READLINK=1;
9326 HAVE_SLEEP=1;
9327 HAVE_DECL_ENVIRON=1;
9328 HAVE_DECL_GETLOGIN_R=1;
9329 HAVE_OS_H=0;
9330 HAVE_SYS_PARAM_H=0;
9331 REPLACE_CHOWN=0;
9332 REPLACE_CLOSE=0;
9333 REPLACE_FCHDIR=0;
9334 REPLACE_GETCWD=0;
9335 REPLACE_GETPAGESIZE=0;
9336 REPLACE_LCHOWN=0;
9337 REPLACE_LSEEK=0;
9338 REPLACE_WRITE=0;
9339 UNISTD_H_HAVE_WINSOCK2_H=0;
9340
9341 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9342 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9343 if test "${ac_cv_header_stdbool_h+set}" = set; then
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352
9353 #include <stdbool.h>
9354 #ifndef bool
9355 "error: bool is not defined"
9356 #endif
9357 #ifndef false
9358 "error: false is not defined"
9359 #endif
9360 #if false
9361 "error: false is not 0"
9362 #endif
9363 #ifndef true
9364 "error: true is not defined"
9365 #endif
9366 #if true != 1
9367 "error: true is not 1"
9368 #endif
9369 #ifndef __bool_true_false_are_defined
9370 "error: __bool_true_false_are_defined is not defined"
9371 #endif
9372
9373 struct s { _Bool s: 1; _Bool t; } s;
9374
9375 char a[true == 1 ? 1 : -1];
9376 char b[false == 0 ? 1 : -1];
9377 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9378 char d[(bool) 0.5 == true ? 1 : -1];
9379 bool e = &s;
9380 char f[(_Bool) 0.0 == false ? 1 : -1];
9381 char g[true];
9382 char h[sizeof (_Bool)];
9383 char i[sizeof s.t];
9384 enum { j = false, k = true, l = false * true, m = true * 256 };
9385 _Bool n[m];
9386 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9387 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9388 #if defined __xlc__ || defined __GNUC__
9389 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9390 reported by James Lemley on 2005-10-05; see
9391 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9392 This test is not quite right, since xlc is allowed to
9393 reject this program, as the initializer for xlcbug is
9394 not one of the forms that C requires support for.
9395 However, doing the test right would require a run-time
9396 test, and that would make cross-compilation harder.
9397 Let us hope that IBM fixes the xlc bug, and also adds
9398 support for this kind of constant expression. In the
9399 meantime, this test will reject xlc, which is OK, since
9400 our stdbool.h substitute should suffice. We also test
9401 this with GCC, where it should work, to detect more
9402 quickly whether someone messes up the test in the
9403 future. */
9404 char digs[] = "0123456789";
9405 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9406 #endif
9407 /* Catch a bug in an HP-UX C compiler. See
9408 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9409 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9410 */
9411 _Bool q = true;
9412 _Bool *pq = &q;
9413
9414 int
9415 main ()
9416 {
9417
9418 *pq |= q;
9419 *pq |= ! q;
9420 /* Refer to every declared value, to avoid compiler optimizations. */
9421 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9422 + !m + !n + !o + !p + !q + !pq);
9423
9424 ;
9425 return 0;
9426 }
9427 _ACEOF
9428 rm -f conftest.$ac_objext
9429 if { (ac_try="$ac_compile"
9430 case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433 esac
9434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9435 $as_echo "$ac_try_echo") >&5
9436 (eval "$ac_compile") 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && {
9443 test -z "$ac_c_werror_flag" ||
9444 test ! -s conftest.err
9445 } && test -s conftest.$ac_objext; then
9446 ac_cv_header_stdbool_h=yes
9447 else
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 ac_cv_header_stdbool_h=no
9452 fi
9453
9454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455 fi
9456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9457 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9458 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9459 $as_echo_n "checking for _Bool... " >&6; }
9460 if test "${ac_cv_type__Bool+set}" = set; then
9461 $as_echo_n "(cached) " >&6
9462 else
9463 ac_cv_type__Bool=no
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 int
9472 main ()
9473 {
9474 if (sizeof (_Bool))
9475 return 0;
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 rm -f conftest.$ac_objext
9481 if { (ac_try="$ac_compile"
9482 case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9487 $as_echo "$ac_try_echo") >&5
9488 (eval "$ac_compile") 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest.$ac_objext; then
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9505 int
9506 main ()
9507 {
9508 if (sizeof ((_Bool)))
9509 return 0;
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (ac_try="$ac_compile"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522 (eval "$ac_compile") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest.$ac_objext; then
9532 :
9533 else
9534 $as_echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_cv_type__Bool=yes
9538 fi
9539
9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 else
9542 $as_echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545
9546 fi
9547
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 fi
9550 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9551 $as_echo "$ac_cv_type__Bool" >&6; }
9552 if test "x$ac_cv_type__Bool" = x""yes; then
9553
9554 cat >>confdefs.h <<_ACEOF
9555 #define HAVE__BOOL 1
9556 _ACEOF
9557
9558
9559 fi
9560
9561 if test $ac_cv_header_stdbool_h = yes; then
9562
9563 cat >>confdefs.h <<\_ACEOF
9564 #define HAVE_STDBOOL_H 1
9565 _ACEOF
9566
9567 fi
9568
9569 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
9570 $as_echo_n "checking for long long int... " >&6; }
9571 if test "${ac_cv_type_long_long_int+set}" = set; then
9572 $as_echo_n "(cached) " >&6
9573 else
9574 cat >conftest.$ac_ext <<_ACEOF
9575
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 /* For now, do not test the preprocessor; as of 2007 there are too many
9582 implementations with broken preprocessors. Perhaps this can
9583 be revisited in 2012. In the meantime, code should not expect
9584 #if to work with literals wider than 32 bits. */
9585 /* Test literals. */
9586 long long int ll = 9223372036854775807ll;
9587 long long int nll = -9223372036854775807LL;
9588 unsigned long long int ull = 18446744073709551615ULL;
9589 /* Test constant expressions. */
9590 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9591 ? 1 : -1)];
9592 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9593 ? 1 : -1)];
9594 int i = 63;
9595 int
9596 main ()
9597 {
9598 /* Test availability of runtime routines for shift and division. */
9599 long long int llmax = 9223372036854775807ll;
9600 unsigned long long int ullmax = 18446744073709551615ull;
9601 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9602 | (llmax / ll) | (llmax % ll)
9603 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9604 | (ullmax / ull) | (ullmax % ull));
9605 ;
9606 return 0;
9607 }
9608
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9617 $as_echo "$ac_try_echo") >&5
9618 (eval "$ac_link") 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && {
9625 test -z "$ac_c_werror_flag" ||
9626 test ! -s conftest.err
9627 } && test -s conftest$ac_exeext && {
9628 test "$cross_compiling" = yes ||
9629 $as_test_x conftest$ac_exeext
9630 }; then
9631 if test "$cross_compiling" = yes; then
9632 ac_cv_type_long_long_int=yes
9633 else
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <limits.h>
9641 #ifndef LLONG_MAX
9642 # define HALF \
9643 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9644 # define LLONG_MAX (HALF - 1 + HALF)
9645 #endif
9646 int
9647 main ()
9648 {
9649 long long int n = 1;
9650 int i;
9651 for (i = 0; ; i++)
9652 {
9653 long long int m = n << i;
9654 if (m >> i != n)
9655 return 1;
9656 if (LLONG_MAX / 2 < m)
9657 break;
9658 }
9659 return 0;
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669 esac
9670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9671 $as_echo "$ac_try_echo") >&5
9672 (eval "$ac_link") 2>&5
9673 ac_status=$?
9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9681 $as_echo "$ac_try_echo") >&5
9682 (eval "$ac_try") 2>&5
9683 ac_status=$?
9684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_type_long_long_int=yes
9687 else
9688 $as_echo "$as_me: program exited with status $ac_status" >&5
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ( exit $ac_status )
9693 ac_cv_type_long_long_int=no
9694 fi
9695 rm -rf conftest.dSYM
9696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9697 fi
9698
9699
9700 else
9701 $as_echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_cv_type_long_long_int=no
9705 fi
9706
9707 rm -rf conftest.dSYM
9708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9709 conftest$ac_exeext conftest.$ac_ext
9710 fi
9711 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9712 $as_echo "$ac_cv_type_long_long_int" >&6; }
9713 if test $ac_cv_type_long_long_int = yes; then
9714
9715 cat >>confdefs.h <<\_ACEOF
9716 #define HAVE_LONG_LONG_INT 1
9717 _ACEOF
9718
9719 fi
9720
9721
9722 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
9723 $as_echo_n "checking for unsigned long long int... " >&6; }
9724 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
9725 $as_echo_n "(cached) " >&6
9726 else
9727 cat >conftest.$ac_ext <<_ACEOF
9728
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 /* For now, do not test the preprocessor; as of 2007 there are too many
9735 implementations with broken preprocessors. Perhaps this can
9736 be revisited in 2012. In the meantime, code should not expect
9737 #if to work with literals wider than 32 bits. */
9738 /* Test literals. */
9739 long long int ll = 9223372036854775807ll;
9740 long long int nll = -9223372036854775807LL;
9741 unsigned long long int ull = 18446744073709551615ULL;
9742 /* Test constant expressions. */
9743 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9744 ? 1 : -1)];
9745 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9746 ? 1 : -1)];
9747 int i = 63;
9748 int
9749 main ()
9750 {
9751 /* Test availability of runtime routines for shift and division. */
9752 long long int llmax = 9223372036854775807ll;
9753 unsigned long long int ullmax = 18446744073709551615ull;
9754 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9755 | (llmax / ll) | (llmax % ll)
9756 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9757 | (ullmax / ull) | (ullmax % ull));
9758 ;
9759 return 0;
9760 }
9761
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (ac_try="$ac_link"
9765 case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768 esac
9769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9770 $as_echo "$ac_try_echo") >&5
9771 (eval "$ac_link") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext && {
9781 test "$cross_compiling" = yes ||
9782 $as_test_x conftest$ac_exeext
9783 }; then
9784 ac_cv_type_unsigned_long_long_int=yes
9785 else
9786 $as_echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 ac_cv_type_unsigned_long_long_int=no
9790 fi
9791
9792 rm -rf conftest.dSYM
9793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9794 conftest$ac_exeext conftest.$ac_ext
9795 fi
9796 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
9797 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9798 if test $ac_cv_type_unsigned_long_long_int = yes; then
9799
9800 cat >>confdefs.h <<\_ACEOF
9801 #define HAVE_UNSIGNED_LONG_LONG_INT 1
9802 _ACEOF
9803
9804 fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819 GNULIB_FPRINTF=0;
9820 GNULIB_FPRINTF_POSIX=0;
9821 GNULIB_PRINTF=0;
9822 GNULIB_PRINTF_POSIX=0;
9823 GNULIB_SNPRINTF=0;
9824 GNULIB_SPRINTF_POSIX=0;
9825 GNULIB_VFPRINTF=0;
9826 GNULIB_VFPRINTF_POSIX=0;
9827 GNULIB_VPRINTF=0;
9828 GNULIB_VPRINTF_POSIX=0;
9829 GNULIB_VSNPRINTF=0;
9830 GNULIB_VSPRINTF_POSIX=0;
9831 GNULIB_VASPRINTF=0;
9832 GNULIB_OBSTACK_PRINTF=0;
9833 GNULIB_OBSTACK_PRINTF_POSIX=0;
9834 GNULIB_FOPEN=0;
9835 GNULIB_FREOPEN=0;
9836 GNULIB_FSEEK=0;
9837 GNULIB_FSEEKO=0;
9838 GNULIB_FTELL=0;
9839 GNULIB_FTELLO=0;
9840 GNULIB_FFLUSH=0;
9841 GNULIB_FCLOSE=0;
9842 GNULIB_FPUTC=0;
9843 GNULIB_PUTC=0;
9844 GNULIB_PUTCHAR=0;
9845 GNULIB_FPUTS=0;
9846 GNULIB_PUTS=0;
9847 GNULIB_FWRITE=0;
9848 GNULIB_GETDELIM=0;
9849 GNULIB_GETLINE=0;
9850 GNULIB_PERROR=0;
9851 GNULIB_STDIO_H_SIGPIPE=0;
9852 REPLACE_STDIO_WRITE_FUNCS=0;
9853 REPLACE_FPRINTF=0;
9854 REPLACE_VFPRINTF=0;
9855 REPLACE_PRINTF=0;
9856 REPLACE_VPRINTF=0;
9857 REPLACE_SNPRINTF=0;
9858 HAVE_DECL_SNPRINTF=1;
9859 REPLACE_VSNPRINTF=0;
9860 HAVE_DECL_VSNPRINTF=1;
9861 REPLACE_SPRINTF=0;
9862 REPLACE_VSPRINTF=0;
9863 HAVE_VASPRINTF=1;
9864 REPLACE_VASPRINTF=0;
9865 HAVE_DECL_OBSTACK_PRINTF=1;
9866 REPLACE_OBSTACK_PRINTF=0;
9867 REPLACE_FOPEN=0;
9868 REPLACE_FREOPEN=0;
9869 HAVE_FSEEKO=1;
9870 REPLACE_FSEEKO=0;
9871 REPLACE_FSEEK=0;
9872 HAVE_FTELLO=1;
9873 REPLACE_FTELLO=0;
9874 REPLACE_FTELL=0;
9875 REPLACE_FFLUSH=0;
9876 REPLACE_FCLOSE=0;
9877 HAVE_DECL_GETDELIM=1;
9878 HAVE_DECL_GETLINE=1;
9879 REPLACE_GETLINE=0;
9880 REPLACE_PERROR=0;
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895 HAVE_STRCASECMP=1;
9896 HAVE_DECL_STRNCASECMP=1;
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 if test -z "$ERRNO_H"; then
9908 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
9909 $as_echo_n "checking for working strerror function... " >&6; }
9910 if test "${gl_cv_func_working_strerror+set}" = set; then
9911 $as_echo_n "(cached) " >&6
9912 else
9913 if test "$cross_compiling" = yes; then
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <string.h>
9921
9922 int
9923 main ()
9924 {
9925 return !*strerror (-2);
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext
9931 if { (ac_try="$ac_compile"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9937 $as_echo "$ac_try_echo") >&5
9938 (eval "$ac_compile") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest.$ac_objext; then
9948 gl_cv_func_working_strerror=yes
9949 else
9950 $as_echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 gl_cv_func_working_strerror=no
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957
9958 else
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h. */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 #include <string.h>
9966
9967 int
9968 main ()
9969 {
9970 return !*strerror (-2);
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9977 case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9982 $as_echo "$ac_try_echo") >&5
9983 (eval "$ac_link") 2>&5
9984 ac_status=$?
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992 $as_echo "$ac_try_echo") >&5
9993 (eval "$ac_try") 2>&5
9994 ac_status=$?
9995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 gl_cv_func_working_strerror=yes
9998 else
9999 $as_echo "$as_me: program exited with status $ac_status" >&5
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 ( exit $ac_status )
10004 gl_cv_func_working_strerror=no
10005 fi
10006 rm -rf conftest.dSYM
10007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10008 fi
10009
10010
10011
10012 fi
10013 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
10014 $as_echo "$gl_cv_func_working_strerror" >&6; }
10015 if test $gl_cv_func_working_strerror = no; then
10016 REPLACE_STRERROR=1
10017 fi
10018 else
10019 REPLACE_STRERROR=1
10020 fi
10021 if test $REPLACE_STRERROR = 1; then
10022
10023 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
10024 $as_echo_n "checking whether strerror is declared... " >&6; }
10025 if test "${ac_cv_have_decl_strerror+set}" = set; then
10026 $as_echo_n "(cached) " >&6
10027 else
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 $ac_includes_default
10035 int
10036 main ()
10037 {
10038 #ifndef strerror
10039 (void) strerror;
10040 #endif
10041
10042 ;
10043 return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (ac_try="$ac_compile"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051 esac
10052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10053 $as_echo "$ac_try_echo") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 ac_cv_have_decl_strerror=yes
10065 else
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_have_decl_strerror=no
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 fi
10074 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
10075 $as_echo "$ac_cv_have_decl_strerror" >&6; }
10076 if test "x$ac_cv_have_decl_strerror" = x""yes; then
10077
10078 cat >>confdefs.h <<_ACEOF
10079 #define HAVE_DECL_STRERROR 1
10080 _ACEOF
10081
10082
10083 else
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_DECL_STRERROR 0
10086 _ACEOF
10087
10088
10089 fi
10090
10091
10092
10093 :
10094
10095
10096
10097
10098
10099 if test $ac_cv_header_sys_socket_h != yes; then
10100
10101 for ac_header in winsock2.h
10102 do
10103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10106 $as_echo_n "checking for $ac_header... " >&6; }
10107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 $as_echo_n "(cached) " >&6
10109 fi
10110 ac_res=`eval 'as_val=${'$as_ac_Header'}
10111 $as_echo "$as_val"'`
10112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10113 $as_echo "$ac_res" >&6; }
10114 else
10115 # Is the header compilable?
10116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10117 $as_echo_n "checking $ac_header usability... " >&6; }
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 $ac_includes_default
10125 #include <$ac_header>
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10134 $as_echo "$ac_try_echo") >&5
10135 (eval "$ac_compile") 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && {
10142 test -z "$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 } && test -s conftest.$ac_objext; then
10145 ac_header_compiler=yes
10146 else
10147 $as_echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 ac_header_compiler=no
10151 fi
10152
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10155 $as_echo "$ac_header_compiler" >&6; }
10156
10157 # Is the header present?
10158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10159 $as_echo_n "checking $ac_header presence... " >&6; }
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 #include <$ac_header>
10167 _ACEOF
10168 if { (ac_try="$ac_cpp conftest.$ac_ext"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174 $as_echo "$ac_try_echo") >&5
10175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev/null && {
10182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 }; then
10185 ac_header_preproc=yes
10186 else
10187 $as_echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_header_preproc=no
10191 fi
10192
10193 rm -f conftest.err conftest.$ac_ext
10194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10195 $as_echo "$ac_header_preproc" >&6; }
10196
10197 # So? What about this header?
10198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10199 yes:no: )
10200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10204 ac_header_preproc=yes
10205 ;;
10206 no:yes:* )
10207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10219 ( cat <<\_ASBOX
10220 ## -------------------------- ##
10221 ## Report this to lost@l-w.ca ##
10222 ## -------------------------- ##
10223 _ASBOX
10224 ) | sed "s/^/$as_me: WARNING: /" >&2
10225 ;;
10226 esac
10227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 $as_echo_n "checking for $ac_header... " >&6; }
10229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 $as_echo_n "(cached) " >&6
10231 else
10232 eval "$as_ac_Header=\$ac_header_preproc"
10233 fi
10234 ac_res=`eval 'as_val=${'$as_ac_Header'}
10235 $as_echo "$as_val"'`
10236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10237 $as_echo "$ac_res" >&6; }
10238
10239 fi
10240 as_val=`eval 'as_val=${'$as_ac_Header'}
10241 $as_echo "$as_val"'`
10242 if test "x$as_val" = x""yes; then
10243 cat >>confdefs.h <<_ACEOF
10244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10245 _ACEOF
10246
10247 fi
10248
10249 done
10250
10251 fi
10252
10253 fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268 :
10269
10270
10271
10272
10273
10274
10275
10276 if test $gl_cv_have_include_next = yes; then
10277 gl_cv_next_string_h='<'string.h'>'
10278 else
10279 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
10280 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10281 if test "${gl_cv_next_string_h+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10283 else
10284
10285 if test $ac_cv_header_string_h = yes; then
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 #include <string.h>
10293
10294 _ACEOF
10295 case "$host_os" in
10296 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10297 *) gl_absname_cpp="$ac_cpp" ;;
10298 esac
10299 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10300 sed -n '\#/string.h#{
10301 s#.*"\(.*/string.h\)".*#\1#
10302 s#^/[^/]#//&#
10303 p
10304 q
10305 }'`'"'
10306 else
10307 gl_cv_next_string_h='<'string.h'>'
10308 fi
10309
10310 fi
10311 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
10312 $as_echo "$gl_cv_next_string_h" >&6; }
10313 fi
10314 NEXT_STRING_H=$gl_cv_next_string_h
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331 :
10332
10333
10334
10335
10336
10337
10338
10339 if test $gl_cv_have_include_next = yes; then
10340 gl_cv_next_strings_h='<'strings.h'>'
10341 else
10342 { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
10343 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
10344 if test "${gl_cv_next_strings_h+set}" = set; then
10345 $as_echo_n "(cached) " >&6
10346 else
10347
10348 if test $ac_cv_header_strings_h = yes; then
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <strings.h>
10356
10357 _ACEOF
10358 case "$host_os" in
10359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10360 *) gl_absname_cpp="$ac_cpp" ;;
10361 esac
10362 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10363 sed -n '\#/strings.h#{
10364 s#.*"\(.*/strings.h\)".*#\1#
10365 s#^/[^/]#//&#
10366 p
10367 q
10368 }'`'"'
10369 else
10370 gl_cv_next_strings_h='<'strings.h'>'
10371 fi
10372
10373 fi
10374 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
10375 $as_echo "$gl_cv_next_strings_h" >&6; }
10376 fi
10377 NEXT_STRINGS_H=$gl_cv_next_strings_h
10378
10379
10380
10381
10382
10383 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
10384 $as_echo_n "checking whether strndup is declared... " >&6; }
10385 if test "${ac_cv_have_decl_strndup+set}" = set; then
10386 $as_echo_n "(cached) " >&6
10387 else
10388 cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 int
10396 main ()
10397 {
10398 #ifndef strndup
10399 (void) strndup;
10400 #endif
10401
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411 esac
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_cv_have_decl_strndup=yes
10425 else
10426 $as_echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 ac_cv_have_decl_strndup=no
10430 fi
10431
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10435 $as_echo "$ac_cv_have_decl_strndup" >&6; }
10436 if test "x$ac_cv_have_decl_strndup" = x""yes; then
10437
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE_DECL_STRNDUP 1
10440 _ACEOF
10441
10442
10443 else
10444 cat >>confdefs.h <<_ACEOF
10445 #define HAVE_DECL_STRNDUP 0
10446 _ACEOF
10447
10448
10449 fi
10450
10451
10452
10453
10454 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10455 $as_echo_n "checking whether strnlen is declared... " >&6; }
10456 if test "${ac_cv_have_decl_strnlen+set}" = set; then
10457 $as_echo_n "(cached) " >&6
10458 else
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 $ac_includes_default
10466 int
10467 main ()
10468 {
10469 #ifndef strnlen
10470 (void) strnlen;
10471 #endif
10472
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (ac_try="$ac_compile"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10484 $as_echo "$ac_try_echo") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.$ac_objext; then
10495 ac_cv_have_decl_strnlen=yes
10496 else
10497 $as_echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 ac_cv_have_decl_strnlen=no
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 fi
10505 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10506 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
10507 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
10508
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_DECL_STRNLEN 1
10511 _ACEOF
10512
10513
10514 else
10515 cat >>confdefs.h <<_ACEOF
10516 #define HAVE_DECL_STRNLEN 0
10517 _ACEOF
10518
10519
10520 fi
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
10544 $as_echo_n "checking for wchar_t... " >&6; }
10545 if test "${gt_cv_c_wchar_t+set}" = set; then
10546 $as_echo_n "(cached) " >&6
10547 else
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 #include <stddef.h>
10555 wchar_t foo = (wchar_t)'\0';
10556 int
10557 main ()
10558 {
10559
10560 ;
10561 return 0;
10562 }
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (ac_try="$ac_compile"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10571 $as_echo "$ac_try_echo") >&5
10572 (eval "$ac_compile") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest.$ac_objext; then
10582 gt_cv_c_wchar_t=yes
10583 else
10584 $as_echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 gt_cv_c_wchar_t=no
10588 fi
10589
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 fi
10592 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
10593 $as_echo "$gt_cv_c_wchar_t" >&6; }
10594 if test $gt_cv_c_wchar_t = yes; then
10595
10596 cat >>confdefs.h <<\_ACEOF
10597 #define HAVE_WCHAR_T 1
10598 _ACEOF
10599
10600 fi
10601
10602
10603 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
10604 $as_echo_n "checking for wint_t... " >&6; }
10605 if test "${gt_cv_c_wint_t+set}" = set; then
10606 $as_echo_n "(cached) " >&6
10607 else
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614
10615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10616 <wchar.h>.
10617 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10618 before <wchar.h>. */
10619 #include <stddef.h>
10620 #include <stdio.h>
10621 #include <time.h>
10622 #include <wchar.h>
10623 wint_t foo = (wchar_t)'\0';
10624 int
10625 main ()
10626 {
10627
10628 ;
10629 return 0;
10630 }
10631 _ACEOF
10632 rm -f conftest.$ac_objext
10633 if { (ac_try="$ac_compile"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637 esac
10638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10639 $as_echo "$ac_try_echo") >&5
10640 (eval "$ac_compile") 2>conftest.er1
10641 ac_status=$?
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
10645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } && {
10647 test -z "$ac_c_werror_flag" ||
10648 test ! -s conftest.err
10649 } && test -s conftest.$ac_objext; then
10650 gt_cv_c_wint_t=yes
10651 else
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 gt_cv_c_wint_t=no
10656 fi
10657
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659 fi
10660 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
10661 $as_echo "$gt_cv_c_wint_t" >&6; }
10662 if test $gt_cv_c_wint_t = yes; then
10663
10664 cat >>confdefs.h <<\_ACEOF
10665 #define HAVE_WINT_T 1
10666 _ACEOF
10667
10668 fi
10669
10670 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10671 $as_echo_n "checking for size_t... " >&6; }
10672 if test "${ac_cv_type_size_t+set}" = set; then
10673 $as_echo_n "(cached) " >&6
10674 else
10675 ac_cv_type_size_t=no
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 $ac_includes_default
10683 int
10684 main ()
10685 {
10686 if (sizeof (size_t))
10687 return 0;
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (ac_try="$ac_compile"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10699 $as_echo "$ac_try_echo") >&5
10700 (eval "$ac_compile") 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && {
10707 test -z "$ac_c_werror_flag" ||
10708 test ! -s conftest.err
10709 } && test -s conftest.$ac_objext; then
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 $ac_includes_default
10717 int
10718 main ()
10719 {
10720 if (sizeof ((size_t)))
10721 return 0;
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (ac_try="$ac_compile"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10733 $as_echo "$ac_try_echo") >&5
10734 (eval "$ac_compile") 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest.$ac_objext; then
10744 :
10745 else
10746 $as_echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 ac_cv_type_size_t=yes
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 else
10754 $as_echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757
10758 fi
10759
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 fi
10762 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10763 $as_echo "$ac_cv_type_size_t" >&6; }
10764 if test "x$ac_cv_type_size_t" = x""yes; then
10765 :
10766 else
10767
10768 cat >>confdefs.h <<_ACEOF
10769 #define size_t unsigned int
10770 _ACEOF
10771
10772 fi
10773
10774
10775 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
10776 $as_echo_n "checking for inttypes.h... " >&6; }
10777 if test "${gl_cv_header_inttypes_h+set}" = set; then
10778 $as_echo_n "(cached) " >&6
10779 else
10780 cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h. */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 #include <sys/types.h>
10787 #include <inttypes.h>
10788 int
10789 main ()
10790 {
10791 uintmax_t i = (uintmax_t) -1; return !i;
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10803 $as_echo "$ac_try_echo") >&5
10804 (eval "$ac_compile") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
10814 gl_cv_header_inttypes_h=yes
10815 else
10816 $as_echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 gl_cv_header_inttypes_h=no
10820 fi
10821
10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 fi
10824 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
10825 $as_echo "$gl_cv_header_inttypes_h" >&6; }
10826 if test $gl_cv_header_inttypes_h = yes; then
10827
10828 cat >>confdefs.h <<_ACEOF
10829 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10830 _ACEOF
10831
10832 fi
10833
10834
10835 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
10836 $as_echo_n "checking for stdint.h... " >&6; }
10837 if test "${gl_cv_header_stdint_h+set}" = set; then
10838 $as_echo_n "(cached) " >&6
10839 else
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 #include <sys/types.h>
10847 #include <stdint.h>
10848 int
10849 main ()
10850 {
10851 uintmax_t i = (uintmax_t) -1; return !i;
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 gl_cv_header_stdint_h=yes
10875 else
10876 $as_echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 gl_cv_header_stdint_h=no
10880 fi
10881
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 fi
10884 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
10885 $as_echo "$gl_cv_header_stdint_h" >&6; }
10886 if test $gl_cv_header_stdint_h = yes; then
10887
10888 cat >>confdefs.h <<_ACEOF
10889 #define HAVE_STDINT_H_WITH_UINTMAX 1
10890 _ACEOF
10891
10892 fi
10893
10894
10895
10896
10897 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
10898 $as_echo_n "checking for intmax_t... " >&6; }
10899 if test "${gt_cv_c_intmax_t+set}" = set; then
10900 $as_echo_n "(cached) " >&6
10901 else
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908
10909 #include <stddef.h>
10910 #include <stdlib.h>
10911 #if HAVE_STDINT_H_WITH_UINTMAX
10912 #include <stdint.h>
10913 #endif
10914 #if HAVE_INTTYPES_H_WITH_UINTMAX
10915 #include <inttypes.h>
10916 #endif
10917
10918 int
10919 main ()
10920 {
10921 intmax_t x = -1; return !x;
10922 ;
10923 return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931 esac
10932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10933 $as_echo "$ac_try_echo") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest.$ac_objext; then
10944 gt_cv_c_intmax_t=yes
10945 else
10946 $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 gt_cv_c_intmax_t=no
10950 fi
10951
10952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953 fi
10954 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
10955 $as_echo "$gt_cv_c_intmax_t" >&6; }
10956 if test $gt_cv_c_intmax_t = yes; then
10957
10958 cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_INTMAX_T 1
10960 _ACEOF
10961
10962 else
10963
10964 test $ac_cv_type_long_long_int = yes \
10965 && ac_type='long long' \
10966 || ac_type='long'
10967
10968 cat >>confdefs.h <<_ACEOF
10969 #define intmax_t $ac_type
10970 _ACEOF
10971
10972 fi
10973
10974
10975 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10976 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
10977 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10978 $as_echo_n "(cached) " >&6
10979 else
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h. */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 $ac_includes_default
10987 int
10988 main ()
10989 {
10990 #ifndef vsnprintf
10991 (void) vsnprintf;
10992 #endif
10993
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11005 $as_echo "$ac_try_echo") >&5
11006 (eval "$ac_compile") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } && {
11013 test -z "$ac_c_werror_flag" ||
11014 test ! -s conftest.err
11015 } && test -s conftest.$ac_objext; then
11016 ac_cv_have_decl_vsnprintf=yes
11017 else
11018 $as_echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 ac_cv_have_decl_vsnprintf=no
11022 fi
11023
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 fi
11026 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11027 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
11028 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
11029
11030 cat >>confdefs.h <<_ACEOF
11031 #define HAVE_DECL_VSNPRINTF 1
11032 _ACEOF
11033
11034
11035 else
11036 cat >>confdefs.h <<_ACEOF
11037 #define HAVE_DECL_VSNPRINTF 0
11038 _ACEOF
11039
11040
11041 fi
11042
11043
11044
11045
11046 GNULIB_BTOWC=0;
11047 GNULIB_WCTOB=0;
11048 GNULIB_MBSINIT=0;
11049 GNULIB_MBRTOWC=0;
11050 GNULIB_MBRLEN=0;
11051 GNULIB_MBSRTOWCS=0;
11052 GNULIB_MBSNRTOWCS=0;
11053 GNULIB_WCRTOMB=0;
11054 GNULIB_WCSRTOMBS=0;
11055 GNULIB_WCSNRTOMBS=0;
11056 GNULIB_WCWIDTH=0;
11057 HAVE_BTOWC=1;
11058 HAVE_MBSINIT=1;
11059 HAVE_MBRTOWC=1;
11060 HAVE_MBRLEN=1;
11061 HAVE_MBSRTOWCS=1;
11062 HAVE_MBSNRTOWCS=1;
11063 HAVE_WCRTOMB=1;
11064 HAVE_WCSRTOMBS=1;
11065 HAVE_WCSNRTOMBS=1;
11066 HAVE_DECL_WCTOB=1;
11067 HAVE_DECL_WCWIDTH=1;
11068 REPLACE_MBSTATE_T=0;
11069 REPLACE_BTOWC=0;
11070 REPLACE_WCTOB=0;
11071 REPLACE_MBSINIT=0;
11072 REPLACE_MBRTOWC=0;
11073 REPLACE_MBRLEN=0;
11074 REPLACE_MBSRTOWCS=0;
11075 REPLACE_MBSNRTOWCS=0;
11076 REPLACE_WCRTOMB=0;
11077 REPLACE_WCSRTOMBS=0;
11078 REPLACE_WCWIDTH=0;
11079 WCHAR_H='';
11080
11081
11082 if false; then
11083 GL_COND_LIBTOOL_TRUE=
11084 GL_COND_LIBTOOL_FALSE='#'
11085 else
11086 GL_COND_LIBTOOL_TRUE='#'
11087 GL_COND_LIBTOOL_FALSE=
11088 fi
11089
11090 gl_cond_libtool=false
11091 gl_libdeps=
11092 gl_ltlibdeps=
11093
11094
11095
11096
11097
11098
11099
11100
11101 gl_source_base='lib'
11102
11103
11104
11105
11106
11107 if test $ac_cv_func_alloca_works = no; then
11108 :
11109 fi
11110
11111 # Define an additional variable used in the Makefile substitution.
11112 if test $ac_cv_working_alloca_h = yes; then
11113 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
11114 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11115 if test "${gl_cv_rpl_alloca+set}" = set; then
11116 $as_echo_n "(cached) " >&6
11117 else
11118
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125
11126 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11127 Need own alloca
11128 #endif
11129
11130 _ACEOF
11131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11132 $EGREP "Need own alloca" >/dev/null 2>&1; then
11133 gl_cv_rpl_alloca=yes
11134 else
11135 gl_cv_rpl_alloca=no
11136 fi
11137 rm -f conftest*
11138
11139
11140 fi
11141 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
11142 $as_echo "$gl_cv_rpl_alloca" >&6; }
11143 if test $gl_cv_rpl_alloca = yes; then
11144
11145 cat >>confdefs.h <<\_ACEOF
11146 #define HAVE_ALLOCA 1
11147 _ACEOF
11148
11149 ALLOCA_H=alloca.h
11150 else
11151 ALLOCA_H=
11152 fi
11153 else
11154 ALLOCA_H=alloca.h
11155 fi
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
11182
11183
11184 GETOPT_H=getopt.h
11185
11186 cat >>confdefs.h <<\_ACEOF
11187 #define __GETOPT_PREFIX rpl_
11188 _ACEOF
11189
11190
11191
11192
11193
11194 :
11195
11196
11197
11198
11199
11200
11201
11202
11203 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
11204 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
11205 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
11206 $as_echo_n "(cached) " >&6
11207 else
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <errno.h>
11215
11216 int
11217 main ()
11218 {
11219 #ifndef program_invocation_name
11220 (void) program_invocation_name;
11221 #endif
11222
11223 ;
11224 return 0;
11225 }
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (ac_try="$ac_compile"
11229 case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232 esac
11233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11234 $as_echo "$ac_try_echo") >&5
11235 (eval "$ac_compile") 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest.$ac_objext; then
11245 ac_cv_have_decl_program_invocation_name=yes
11246 else
11247 $as_echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 ac_cv_have_decl_program_invocation_name=no
11251 fi
11252
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 fi
11255 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
11256 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
11257 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
11258
11259 cat >>confdefs.h <<\_ACEOF
11260 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
11261 _ACEOF
11262
11263 else
11264
11265 cat >>confdefs.h <<\_ACEOF
11266 #define GNULIB_PROGRAM_INVOCATION_NAME 1
11267 _ACEOF
11268
11269 fi
11270
11271 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
11272 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
11273 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
11274 $as_echo_n "(cached) " >&6
11275 else
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 #include <errno.h>
11283
11284 int
11285 main ()
11286 {
11287 #ifndef program_invocation_short_name
11288 (void) program_invocation_short_name;
11289 #endif
11290
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (ac_try="$ac_compile"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300 esac
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303 (eval "$ac_compile") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest.$ac_objext; then
11313 ac_cv_have_decl_program_invocation_short_name=yes
11314 else
11315 $as_echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 ac_cv_have_decl_program_invocation_short_name=no
11319 fi
11320
11321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 fi
11323 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
11324 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
11325 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
11326
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
11329 _ACEOF
11330
11331 else
11332
11333 cat >>confdefs.h <<\_ACEOF
11334 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
11335 _ACEOF
11336
11337 fi
11338
11339
11340 # Check if program_invocation_name and program_invocation_short_name
11341 # are defined elsewhere. It is improbable that only one of them will
11342 # be defined and other not, I prefer to stay on the safe side and to
11343 # test each one separately.
11344 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
11345 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <argp.h>
11353 int
11354 main ()
11355 {
11356 program_invocation_name = "test";
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (ac_try="$ac_link"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11368 $as_echo "$ac_try_echo") >&5
11369 (eval "$ac_link") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext && {
11379 test "$cross_compiling" = yes ||
11380 $as_test_x conftest$ac_exeext
11381 }; then
11382
11383 cat >>confdefs.h <<\_ACEOF
11384 #define HAVE_PROGRAM_INVOCATION_NAME 1
11385 _ACEOF
11386
11387 { $as_echo "$as_me:$LINENO: result: yes" >&5
11388 $as_echo "yes" >&6; }
11389 else
11390 $as_echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 { $as_echo "$as_me:$LINENO: result: no" >&5
11394 $as_echo "no" >&6; }
11395 fi
11396
11397 rm -rf conftest.dSYM
11398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11399 conftest$ac_exeext conftest.$ac_ext
11400
11401 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
11402 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include <argp.h>
11410 int
11411 main ()
11412 {
11413 program_invocation_short_name = "test";
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (ac_try="$ac_link"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11425 $as_echo "$ac_try_echo") >&5
11426 (eval "$ac_link") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest$ac_exeext && {
11436 test "$cross_compiling" = yes ||
11437 $as_test_x conftest$ac_exeext
11438 }; then
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
11442 _ACEOF
11443
11444 { $as_echo "$as_me:$LINENO: result: yes" >&5
11445 $as_echo "yes" >&6; }
11446 else
11447 $as_echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 { $as_echo "$as_me:$LINENO: result: no" >&5
11451 $as_echo "no" >&6; }
11452 fi
11453
11454 rm -rf conftest.dSYM
11455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11456 conftest$ac_exeext conftest.$ac_ext
11457
11458
11459 :
11460
11461
11462
11463
11464
11465
11466 :
11467
11468
11469
11470
11471
11472
11473 :
11474
11475
11476
11477
11478
11479
11480 :
11481
11482
11483
11484
11485
11486
11487 :
11488
11489
11490
11491
11492
11493
11494 :
11495
11496
11497
11498
11499
11500
11501 :
11502
11503
11504
11505
11506
11507
11508 :
11509
11510
11511
11512
11513
11514
11515 :
11516
11517
11518
11519
11520
11521
11522 :
11523
11524
11525
11526
11527
11528
11529 :
11530
11531
11532
11533
11534
11535
11536 :
11537
11538
11539
11540
11541
11542
11543 :
11544
11545
11546
11547
11548
11549
11550 :
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560 :
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
11573
11574
11575
11576 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
11608
11609
11610
11611
11612
11613
11614
11615
11616 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
11617 $as_echo_n "checking whether // is distinct from /... " >&6; }
11618 if test "${gl_cv_double_slash_root+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11620 else
11621 if test x"$cross_compiling" = xyes ; then
11622 # When cross-compiling, there is no way to tell whether // is special
11623 # short of a list of hosts. However, the only known hosts to date
11624 # that have a distinct // are Apollo DomainOS (too old to port to),
11625 # Cygwin, and z/OS. If anyone knows of another system for which // has
11626 # special semantics and is distinct from /, please report it to
11627 # <bug-gnulib@gnu.org>.
11628 case $host in
11629 *-cygwin | i370-ibm-openedition)
11630 gl_cv_double_slash_root=yes ;;
11631 *)
11632 # Be optimistic and assume that / and // are the same when we
11633 # don't know.
11634 gl_cv_double_slash_root='unknown, assuming no' ;;
11635 esac
11636 else
11637 set x `ls -di / // 2>/dev/null`
11638 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
11639 gl_cv_double_slash_root=no
11640 else
11641 gl_cv_double_slash_root=yes
11642 fi
11643 fi
11644 fi
11645 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
11646 $as_echo "$gl_cv_double_slash_root" >&6; }
11647 if test "$gl_cv_double_slash_root" = yes; then
11648
11649 cat >>confdefs.h <<\_ACEOF
11650 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
11651 _ACEOF
11652
11653 fi
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
11672 $as_echo_n "checking for error_at_line... " >&6; }
11673 if test "${ac_cv_lib_error_at_line+set}" = set; then
11674 $as_echo_n "(cached) " >&6
11675 else
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 #include <error.h>
11683 int
11684 main ()
11685 {
11686 error_at_line (0, 0, "", 0, "an error occurred");
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (ac_try="$ac_link"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696 esac
11697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11698 $as_echo "$ac_try_echo") >&5
11699 (eval "$ac_link") 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext && {
11709 test "$cross_compiling" = yes ||
11710 $as_test_x conftest$ac_exeext
11711 }; then
11712 ac_cv_lib_error_at_line=yes
11713 else
11714 $as_echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_cv_lib_error_at_line=no
11718 fi
11719
11720 rm -rf conftest.dSYM
11721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11722 conftest$ac_exeext conftest.$ac_ext
11723 fi
11724 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11725 $as_echo "$ac_cv_lib_error_at_line" >&6; }
11726 if test $ac_cv_lib_error_at_line = no; then
11727
11728
11729
11730
11731
11732
11733
11734
11735 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
11736
11737 fi
11738
11739
11740
11741 :
11742
11743
11744
11745
11746 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
11747
11748
11749
11750 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
11762
11763
11764 :
11765
11766
11767
11768
11769 FLOAT_H=
11770 case "$host_os" in
11771 beos* | openbsd*)
11772 FLOAT_H=float.h
11773
11774
11775
11776
11777 :
11778
11779
11780
11781
11782
11783
11784
11785 if test $gl_cv_have_include_next = yes; then
11786 gl_cv_next_float_h='<'float.h'>'
11787 else
11788 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
11789 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11790 if test "${gl_cv_next_float_h+set}" = set; then
11791 $as_echo_n "(cached) " >&6
11792 else
11793
11794 if test $ac_cv_header_float_h = yes; then
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <float.h>
11802
11803 _ACEOF
11804 case "$host_os" in
11805 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11806 *) gl_absname_cpp="$ac_cpp" ;;
11807 esac
11808 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11809 sed -n '\#/float.h#{
11810 s#.*"\(.*/float.h\)".*#\1#
11811 s#^/[^/]#//&#
11812 p
11813 q
11814 }'`'"'
11815 else
11816 gl_cv_next_float_h='<'float.h'>'
11817 fi
11818
11819 fi
11820 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
11821 $as_echo "$gl_cv_next_float_h" >&6; }
11822 fi
11823 NEXT_FLOAT_H=$gl_cv_next_float_h
11824
11825
11826
11827 ;;
11828 esac
11829
11830
11831
11832
11833 if test -n "$GETOPT_H"; then
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
11854
11855
11856 GETOPT_H=getopt.h
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define __GETOPT_PREFIX rpl_
11860 _ACEOF
11861
11862
11863
11864
11865
11866 :
11867
11868
11869
11870
11871
11872
11873
11874 fi
11875
11876
11877
11878
11879
11880
11881 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
11882 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
11883 if test "${gl_cv_c_inline_effective+set}" = set; then
11884 $as_echo_n "(cached) " >&6
11885 else
11886 if test $ac_cv_c_inline = no; then
11887 gl_cv_c_inline_effective=no
11888 else
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895
11896 int
11897 main ()
11898 {
11899 #ifdef __NO_INLINE__
11900 #error "inline is not effective"
11901 #endif
11902 ;
11903 return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11913 $as_echo "$ac_try_echo") >&5
11914 (eval "$ac_compile") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest.$ac_objext; then
11924 gl_cv_c_inline_effective=yes
11925 else
11926 $as_echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 gl_cv_c_inline_effective=no
11930 fi
11931
11932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933 fi
11934
11935 fi
11936 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
11937 $as_echo "$gl_cv_c_inline_effective" >&6; }
11938 if test $gl_cv_c_inline_effective = yes; then
11939
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_INLINE 1
11942 _ACEOF
11943
11944 fi
11945
11946
11947 for ac_header in stdlib.h
11948 do
11949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 $as_echo_n "checking for $ac_header... " >&6; }
11953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11954 $as_echo_n "(cached) " >&6
11955 fi
11956 ac_res=`eval 'as_val=${'$as_ac_Header'}
11957 $as_echo "$as_val"'`
11958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11959 $as_echo "$ac_res" >&6; }
11960 else
11961 # Is the header compilable?
11962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11963 $as_echo_n "checking $ac_header usability... " >&6; }
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h. */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 $ac_includes_default
11971 #include <$ac_header>
11972 _ACEOF
11973 rm -f conftest.$ac_objext
11974 if { (ac_try="$ac_compile"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978 esac
11979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11980 $as_echo "$ac_try_echo") >&5
11981 (eval "$ac_compile") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991 ac_header_compiler=yes
11992 else
11993 $as_echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_header_compiler=no
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12001 $as_echo "$ac_header_compiler" >&6; }
12002
12003 # Is the header present?
12004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12005 $as_echo_n "checking $ac_header presence... " >&6; }
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 #include <$ac_header>
12013 _ACEOF
12014 if { (ac_try="$ac_cpp conftest.$ac_ext"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020 $as_echo "$ac_try_echo") >&5
12021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev/null && {
12028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 }; then
12031 ac_header_preproc=yes
12032 else
12033 $as_echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_preproc=no
12037 fi
12038
12039 rm -f conftest.err conftest.$ac_ext
12040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12041 $as_echo "$ac_header_preproc" >&6; }
12042
12043 # So? What about this header?
12044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12045 yes:no: )
12046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12050 ac_header_preproc=yes
12051 ;;
12052 no:yes:* )
12053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12065 ( cat <<\_ASBOX
12066 ## -------------------------- ##
12067 ## Report this to lost@l-w.ca ##
12068 ## -------------------------- ##
12069 _ASBOX
12070 ) | sed "s/^/$as_me: WARNING: /" >&2
12071 ;;
12072 esac
12073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12074 $as_echo_n "checking for $ac_header... " >&6; }
12075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076 $as_echo_n "(cached) " >&6
12077 else
12078 eval "$as_ac_Header=\$ac_header_preproc"
12079 fi
12080 ac_res=`eval 'as_val=${'$as_ac_Header'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083 $as_echo "$ac_res" >&6; }
12084
12085 fi
12086 as_val=`eval 'as_val=${'$as_ac_Header'}
12087 $as_echo "$as_val"'`
12088 if test "x$as_val" = x""yes; then
12089 cat >>confdefs.h <<_ACEOF
12090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12091 _ACEOF
12092
12093 fi
12094
12095 done
12096
12097 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12098 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12099 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test "$cross_compiling" = yes; then
12103 ac_cv_func_malloc_0_nonnull=no
12104 else
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12112 # include <stdlib.h>
12113 #else
12114 char *malloc ();
12115 #endif
12116
12117 int
12118 main ()
12119 {
12120 return ! malloc (0);
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132 $as_echo "$ac_try_echo") >&5
12133 (eval "$ac_link") 2>&5
12134 ac_status=$?
12135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140 esac
12141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142 $as_echo "$ac_try_echo") >&5
12143 (eval "$ac_try") 2>&5
12144 ac_status=$?
12145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_func_malloc_0_nonnull=yes
12148 else
12149 $as_echo "$as_me: program exited with status $ac_status" >&5
12150 $as_echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ( exit $ac_status )
12154 ac_cv_func_malloc_0_nonnull=no
12155 fi
12156 rm -rf conftest.dSYM
12157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12158 fi
12159
12160
12161 fi
12162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12163 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12164 if test $ac_cv_func_malloc_0_nonnull = yes; then
12165
12166 cat >>confdefs.h <<\_ACEOF
12167 #define HAVE_MALLOC 1
12168 _ACEOF
12169
12170 else
12171 cat >>confdefs.h <<\_ACEOF
12172 #define HAVE_MALLOC 0
12173 _ACEOF
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
12184
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define malloc rpl_malloc
12188 _ACEOF
12189
12190 fi
12191
12192
12193
12194
12195 cat >>confdefs.h <<\_ACEOF
12196 #define GNULIB_MALLOC_GNU 1
12197 _ACEOF
12198
12199
12200
12201 if test $gl_cv_func_malloc_posix = yes; then
12202 HAVE_MALLOC_POSIX=1
12203
12204 cat >>confdefs.h <<\_ACEOF
12205 #define HAVE_MALLOC_POSIX 1
12206 _ACEOF
12207
12208 else
12209
12210
12211
12212
12213
12214
12215
12216
12217 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
12218
12219 HAVE_MALLOC_POSIX=0
12220 fi
12221
12222
12223
12224
12225 GNULIB_MALLOC_POSIX=1
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242 for ac_func in mempcpy
12243 do
12244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12246 $as_echo_n "checking for $ac_func... " >&6; }
12247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12248 $as_echo_n "(cached) " >&6
12249 else
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12258 #define $ac_func innocuous_$ac_func
12259
12260 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char $ac_func (); below.
12262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263 <limits.h> exists even on freestanding compilers. */
12264
12265 #ifdef __STDC__
12266 # include <limits.h>
12267 #else
12268 # include <assert.h>
12269 #endif
12270
12271 #undef $ac_func
12272
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 char $ac_func ();
12280 /* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283 #if defined __stub_$ac_func || defined __stub___$ac_func
12284 choke me
12285 #endif
12286
12287 int
12288 main ()
12289 {
12290 return $ac_func ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (ac_try="$ac_link"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300 esac
12301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12302 $as_echo "$ac_try_echo") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext && {
12313 test "$cross_compiling" = yes ||
12314 $as_test_x conftest$ac_exeext
12315 }; then
12316 eval "$as_ac_var=yes"
12317 else
12318 $as_echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 eval "$as_ac_var=no"
12322 fi
12323
12324 rm -rf conftest.dSYM
12325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
12327 fi
12328 ac_res=`eval 'as_val=${'$as_ac_var'}
12329 $as_echo "$as_val"'`
12330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12331 $as_echo "$ac_res" >&6; }
12332 as_val=`eval 'as_val=${'$as_ac_var'}
12333 $as_echo "$as_val"'`
12334 if test "x$as_val" = x""yes; then
12335 cat >>confdefs.h <<_ACEOF
12336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12337 _ACEOF
12338
12339 else
12340
12341 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
12342
12343 fi
12344 done
12345
12346
12347 if test $ac_cv_func_mempcpy = no; then
12348 HAVE_MEMPCPY=0
12349
12350 :
12351
12352 fi
12353
12354
12355
12356 GNULIB_MEMPCPY=1
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374 for ac_func in rawmemchr
12375 do
12376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12377 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12378 $as_echo_n "checking for $ac_func... " >&6; }
12379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12380 $as_echo_n "(cached) " >&6
12381 else
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12390 #define $ac_func innocuous_$ac_func
12391
12392 /* System header to define __stub macros and hopefully few prototypes,
12393 which can conflict with char $ac_func (); below.
12394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12395 <limits.h> exists even on freestanding compilers. */
12396
12397 #ifdef __STDC__
12398 # include <limits.h>
12399 #else
12400 # include <assert.h>
12401 #endif
12402
12403 #undef $ac_func
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char $ac_func ();
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined __stub_$ac_func || defined __stub___$ac_func
12416 choke me
12417 #endif
12418
12419 int
12420 main ()
12421 {
12422 return $ac_func ();
12423 ;
12424 return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (ac_try="$ac_link"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432 esac
12433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12434 $as_echo "$ac_try_echo") >&5
12435 (eval "$ac_link") 2>conftest.er1
12436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } && {
12442 test -z "$ac_c_werror_flag" ||
12443 test ! -s conftest.err
12444 } && test -s conftest$ac_exeext && {
12445 test "$cross_compiling" = yes ||
12446 $as_test_x conftest$ac_exeext
12447 }; then
12448 eval "$as_ac_var=yes"
12449 else
12450 $as_echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 eval "$as_ac_var=no"
12454 fi
12455
12456 rm -rf conftest.dSYM
12457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12458 conftest$ac_exeext conftest.$ac_ext
12459 fi
12460 ac_res=`eval 'as_val=${'$as_ac_var'}
12461 $as_echo "$as_val"'`
12462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12463 $as_echo "$ac_res" >&6; }
12464 as_val=`eval 'as_val=${'$as_ac_var'}
12465 $as_echo "$as_val"'`
12466 if test "x$as_val" = x""yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12469 _ACEOF
12470
12471 else
12472
12473 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
12474
12475 fi
12476 done
12477
12478
12479 if test $ac_cv_func_rawmemchr = no; then
12480 HAVE_RAWMEMCHR=0
12481 :
12482 fi
12483
12484
12485
12486 GNULIB_RAWMEMCHR=1
12487
12488
12489
12490 for ac_header in stdint.h
12491 do
12492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12495 $as_echo_n "checking for $ac_header... " >&6; }
12496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12497 $as_echo_n "(cached) " >&6
12498 fi
12499 ac_res=`eval 'as_val=${'$as_ac_Header'}
12500 $as_echo "$as_val"'`
12501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12502 $as_echo "$ac_res" >&6; }
12503 else
12504 # Is the header compilable?
12505 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506 $as_echo_n "checking $ac_header usability... " >&6; }
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 $ac_includes_default
12514 #include <$ac_header>
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (ac_try="$ac_compile"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521 esac
12522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12523 $as_echo "$ac_try_echo") >&5
12524 (eval "$ac_compile") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.$ac_objext; then
12534 ac_header_compiler=yes
12535 else
12536 $as_echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_header_compiler=no
12540 fi
12541
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544 $as_echo "$ac_header_compiler" >&6; }
12545
12546 # Is the header present?
12547 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548 $as_echo_n "checking $ac_header presence... " >&6; }
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h. */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <$ac_header>
12556 _ACEOF
12557 if { (ac_try="$ac_cpp conftest.$ac_ext"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12563 $as_echo "$ac_try_echo") >&5
12564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } >/dev/null && {
12571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 }; then
12574 ac_header_preproc=yes
12575 else
12576 $as_echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_header_preproc=no
12580 fi
12581
12582 rm -f conftest.err conftest.$ac_ext
12583 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12584 $as_echo "$ac_header_preproc" >&6; }
12585
12586 # So? What about this header?
12587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12588 yes:no: )
12589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12590 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12592 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12593 ac_header_preproc=yes
12594 ;;
12595 no:yes:* )
12596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12597 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12599 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12601 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12603 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12607 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12608 ( cat <<\_ASBOX
12609 ## -------------------------- ##
12610 ## Report this to lost@l-w.ca ##
12611 ## -------------------------- ##
12612 _ASBOX
12613 ) | sed "s/^/$as_me: WARNING: /" >&2
12614 ;;
12615 esac
12616 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12617 $as_echo_n "checking for $ac_header... " >&6; }
12618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12619 $as_echo_n "(cached) " >&6
12620 else
12621 eval "$as_ac_Header=\$ac_header_preproc"
12622 fi
12623 ac_res=`eval 'as_val=${'$as_ac_Header'}
12624 $as_echo "$as_val"'`
12625 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12626 $as_echo "$ac_res" >&6; }
12627
12628 fi
12629 as_val=`eval 'as_val=${'$as_ac_Header'}
12630 $as_echo "$as_val"'`
12631 if test "x$as_val" = x""yes; then
12632 cat >>confdefs.h <<_ACEOF
12633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12634 _ACEOF
12635
12636 fi
12637
12638 done
12639
12640 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
12641 $as_echo_n "checking for SIZE_MAX... " >&6; }
12642 if test "${gl_cv_size_max+set}" = set; then
12643 $as_echo_n "(cached) " >&6
12644 else
12645
12646 gl_cv_size_max=
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653
12654 #include <limits.h>
12655 #if HAVE_STDINT_H
12656 #include <stdint.h>
12657 #endif
12658 #ifdef SIZE_MAX
12659 Found it
12660 #endif
12661
12662 _ACEOF
12663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12664 $EGREP "Found it" >/dev/null 2>&1; then
12665 gl_cv_size_max=yes
12666 fi
12667 rm -f conftest*
12668
12669 if test -z "$gl_cv_size_max"; then
12670 if test "$cross_compiling" = yes; then
12671 # Depending upon the size, compute the lo and hi bounds.
12672 cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678 #include <stddef.h>
12679 #include <limits.h>
12680 int
12681 main ()
12682 {
12683 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
12684 test_array [0] = 0
12685
12686 ;
12687 return 0;
12688 }
12689 _ACEOF
12690 rm -f conftest.$ac_objext
12691 if { (ac_try="$ac_compile"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695 esac
12696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697 $as_echo "$ac_try_echo") >&5
12698 (eval "$ac_compile") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest.$ac_objext; then
12708 ac_lo=0 ac_mid=0
12709 while :; do
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 #include <stddef.h>
12717 #include <limits.h>
12718 int
12719 main ()
12720 {
12721 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
12722 test_array [0] = 0
12723
12724 ;
12725 return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (ac_try="$ac_compile"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733 esac
12734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12735 $as_echo "$ac_try_echo") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
12746 ac_hi=$ac_mid; break
12747 else
12748 $as_echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_lo=`expr $ac_mid + 1`
12752 if test $ac_lo -le $ac_mid; then
12753 ac_lo= ac_hi=
12754 break
12755 fi
12756 ac_mid=`expr 2 '*' $ac_mid + 1`
12757 fi
12758
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 done
12761 else
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <stddef.h>
12772 #include <limits.h>
12773 int
12774 main ()
12775 {
12776 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
12777 test_array [0] = 0
12778
12779 ;
12780 return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext
12784 if { (ac_try="$ac_compile"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12790 $as_echo "$ac_try_echo") >&5
12791 (eval "$ac_compile") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest.$ac_objext; then
12801 ac_hi=-1 ac_mid=-1
12802 while :; do
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h. */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 #include <stddef.h>
12810 #include <limits.h>
12811 int
12812 main ()
12813 {
12814 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
12815 test_array [0] = 0
12816
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (ac_try="$ac_compile"
12823 case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12826 esac
12827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12828 $as_echo "$ac_try_echo") >&5
12829 (eval "$ac_compile") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_c_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest.$ac_objext; then
12839 ac_lo=$ac_mid; break
12840 else
12841 $as_echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 ac_hi=`expr '(' $ac_mid ')' - 1`
12845 if test $ac_mid -le $ac_hi; then
12846 ac_lo= ac_hi=
12847 break
12848 fi
12849 ac_mid=`expr 2 '*' $ac_mid`
12850 fi
12851
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 done
12854 else
12855 $as_echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12857
12858 ac_lo= ac_hi=
12859 fi
12860
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 fi
12863
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 # Binary search between lo and hi bounds.
12866 while test "x$ac_lo" != "x$ac_hi"; do
12867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 #include <stddef.h>
12875 #include <limits.h>
12876 int
12877 main ()
12878 {
12879 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
12880 test_array [0] = 0
12881
12882 ;
12883 return 0;
12884 }
12885 _ACEOF
12886 rm -f conftest.$ac_objext
12887 if { (ac_try="$ac_compile"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12891 esac
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_compile") 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && {
12901 test -z "$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12903 } && test -s conftest.$ac_objext; then
12904 ac_hi=$ac_mid
12905 else
12906 $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_lo=`expr '(' $ac_mid ')' + 1`
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 done
12914 case $ac_lo in
12915 ?*) size_t_bits_minus_1=$ac_lo;;
12916 '') size_t_bits_minus_1= ;;
12917 esac
12918 else
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <stddef.h>
12926 #include <limits.h>
12927 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
12928 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
12929 #include <stdio.h>
12930 #include <stdlib.h>
12931 int
12932 main ()
12933 {
12934
12935 FILE *f = fopen ("conftest.val", "w");
12936 if (! f)
12937 return 1;
12938 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
12939 {
12940 long int i = longval ();
12941 if (i != (sizeof (size_t) * CHAR_BIT - 1))
12942 return 1;
12943 fprintf (f, "%ld", i);
12944 }
12945 else
12946 {
12947 unsigned long int i = ulongval ();
12948 if (i != (sizeof (size_t) * CHAR_BIT - 1))
12949 return 1;
12950 fprintf (f, "%lu", i);
12951 }
12952 /* Do not output a trailing newline, as this causes \r\n confusion
12953 on some platforms. */
12954 return ferror (f) || fclose (f) != 0;
12955
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12967 $as_echo "$ac_try_echo") >&5
12968 (eval "$ac_link") 2>&5
12969 ac_status=$?
12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977 $as_echo "$ac_try_echo") >&5
12978 (eval "$ac_try") 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 size_t_bits_minus_1=`cat conftest.val`
12983 else
12984 $as_echo "$as_me: program exited with status $ac_status" >&5
12985 $as_echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ( exit $ac_status )
12989 size_t_bits_minus_1=
12990 fi
12991 rm -rf conftest.dSYM
12992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12993 fi
12994 rm -f conftest.val
12995 if test "$cross_compiling" = yes; then
12996 # Depending upon the size, compute the lo and hi bounds.
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 #include <stddef.h>
13004 int
13005 main ()
13006 {
13007 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
13008 test_array [0] = 0
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 rm -f conftest.$ac_objext
13015 if { (ac_try="$ac_compile"
13016 case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13019 esac
13020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13021 $as_echo "$ac_try_echo") >&5
13022 (eval "$ac_compile") 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } && {
13029 test -z "$ac_c_werror_flag" ||
13030 test ! -s conftest.err
13031 } && test -s conftest.$ac_objext; then
13032 ac_lo=0 ac_mid=0
13033 while :; do
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 #include <stddef.h>
13041 int
13042 main ()
13043 {
13044 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
13045 test_array [0] = 0
13046
13047 ;
13048 return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (ac_try="$ac_compile"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056 esac
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_hi=$ac_mid; break
13070 else
13071 $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 ac_lo=`expr $ac_mid + 1`
13075 if test $ac_lo -le $ac_mid; then
13076 ac_lo= ac_hi=
13077 break
13078 fi
13079 ac_mid=`expr 2 '*' $ac_mid + 1`
13080 fi
13081
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 done
13084 else
13085 $as_echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13087
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <stddef.h>
13095 int
13096 main ()
13097 {
13098 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
13099 test_array [0] = 0
13100
13101 ;
13102 return 0;
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13112 $as_echo "$ac_try_echo") >&5
13113 (eval "$ac_compile") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest.$ac_objext; then
13123 ac_hi=-1 ac_mid=-1
13124 while :; do
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13131 #include <stddef.h>
13132 int
13133 main ()
13134 {
13135 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
13136 test_array [0] = 0
13137
13138 ;
13139 return 0;
13140 }
13141 _ACEOF
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147 esac
13148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149 $as_echo "$ac_try_echo") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_lo=$ac_mid; break
13161 else
13162 $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_hi=`expr '(' $ac_mid ')' - 1`
13166 if test $ac_mid -le $ac_hi; then
13167 ac_lo= ac_hi=
13168 break
13169 fi
13170 ac_mid=`expr 2 '*' $ac_mid`
13171 fi
13172
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 done
13175 else
13176 $as_echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179 ac_lo= ac_hi=
13180 fi
13181
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 fi
13184
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 # Binary search between lo and hi bounds.
13187 while test "x$ac_lo" != "x$ac_hi"; do
13188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #include <stddef.h>
13196 int
13197 main ()
13198 {
13199 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
13200 test_array [0] = 0
13201
13202 ;
13203 return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213 $as_echo "$ac_try_echo") >&5
13214 (eval "$ac_compile") 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest.$ac_objext; then
13224 ac_hi=$ac_mid
13225 else
13226 $as_echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_lo=`expr '(' $ac_mid ')' + 1`
13230 fi
13231
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 done
13234 case $ac_lo in
13235 ?*) fits_in_uint=$ac_lo;;
13236 '') fits_in_uint= ;;
13237 esac
13238 else
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 #include <stddef.h>
13246 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
13247 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
13248 #include <stdio.h>
13249 #include <stdlib.h>
13250 int
13251 main ()
13252 {
13253
13254 FILE *f = fopen ("conftest.val", "w");
13255 if (! f)
13256 return 1;
13257 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
13258 {
13259 long int i = longval ();
13260 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
13261 return 1;
13262 fprintf (f, "%ld", i);
13263 }
13264 else
13265 {
13266 unsigned long int i = ulongval ();
13267 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
13268 return 1;
13269 fprintf (f, "%lu", i);
13270 }
13271 /* Do not output a trailing newline, as this causes \r\n confusion
13272 on some platforms. */
13273 return ferror (f) || fclose (f) != 0;
13274
13275 ;
13276 return 0;
13277 }
13278 _ACEOF
13279 rm -f conftest$ac_exeext
13280 if { (ac_try="$ac_link"
13281 case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13284 esac
13285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13286 $as_echo "$ac_try_echo") >&5
13287 (eval "$ac_link") 2>&5
13288 ac_status=$?
13289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13291 { (case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294 esac
13295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296 $as_echo "$ac_try_echo") >&5
13297 (eval "$ac_try") 2>&5
13298 ac_status=$?
13299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 fits_in_uint=`cat conftest.val`
13302 else
13303 $as_echo "$as_me: program exited with status $ac_status" >&5
13304 $as_echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 ( exit $ac_status )
13308 fits_in_uint=
13309 fi
13310 rm -rf conftest.dSYM
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13312 fi
13313 rm -f conftest.val
13314 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
13315 if test $fits_in_uint = 1; then
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 #include <stddef.h>
13323 extern size_t foo;
13324 extern unsigned long foo;
13325
13326 int
13327 main ()
13328 {
13329
13330 ;
13331 return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339 esac
13340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341 $as_echo "$ac_try_echo") >&5
13342 (eval "$ac_compile") 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && {
13349 test -z "$ac_c_werror_flag" ||
13350 test ! -s conftest.err
13351 } && test -s conftest.$ac_objext; then
13352 fits_in_uint=0
13353 else
13354 $as_echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
13358 fi
13359
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 fi
13362 if test $fits_in_uint = 1; then
13363 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
13364 else
13365 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
13366 fi
13367 else
13368 gl_cv_size_max='((size_t)~(size_t)0)'
13369 fi
13370 fi
13371
13372 fi
13373
13374 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
13375 $as_echo "$gl_cv_size_max" >&6; }
13376 if test "$gl_cv_size_max" != yes; then
13377
13378 cat >>confdefs.h <<_ACEOF
13379 #define SIZE_MAX $gl_cv_size_max
13380 _ACEOF
13381
13382 fi
13383
13384
13385
13386 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
13387 $as_echo_n "checking whether sleep is declared... " >&6; }
13388 if test "${ac_cv_have_decl_sleep+set}" = set; then
13389 $as_echo_n "(cached) " >&6
13390 else
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <unistd.h>
13398
13399 int
13400 main ()
13401 {
13402 #ifndef sleep
13403 (void) sleep;
13404 #endif
13405
13406 ;
13407 return 0;
13408 }
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13417 $as_echo "$ac_try_echo") >&5
13418 (eval "$ac_compile") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest.$ac_objext; then
13428 ac_cv_have_decl_sleep=yes
13429 else
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_cv_have_decl_sleep=no
13434 fi
13435
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 fi
13438 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
13439 $as_echo "$ac_cv_have_decl_sleep" >&6; }
13440 if test "x$ac_cv_have_decl_sleep" = x""yes; then
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define HAVE_DECL_SLEEP 1
13444 _ACEOF
13445
13446
13447 else
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_DECL_SLEEP 0
13450 _ACEOF
13451
13452
13453 fi
13454
13455
13456 if test $ac_cv_have_decl_sleep != yes; then
13457 HAVE_SLEEP=0
13458
13459
13460
13461
13462
13463
13464
13465
13466 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
13467
13468 :
13469 fi
13470
13471
13472
13473 GNULIB_SLEEP=1
13474
13475
13476
13477
13478 # Define two additional variables used in the Makefile substitution.
13479
13480 if test "$ac_cv_header_stdbool_h" = yes; then
13481 STDBOOL_H=''
13482 else
13483 STDBOOL_H='stdbool.h'
13484 fi
13485
13486
13487 if test "$ac_cv_type__Bool" = yes; then
13488 HAVE__BOOL=1
13489 else
13490 HAVE__BOOL=0
13491 fi
13492
13493
13494
13495
13496
13497 if test $ac_cv_type_long_long_int = yes; then
13498 HAVE_LONG_LONG_INT=1
13499 else
13500 HAVE_LONG_LONG_INT=0
13501 fi
13502
13503
13504 if test $ac_cv_type_unsigned_long_long_int = yes; then
13505 HAVE_UNSIGNED_LONG_LONG_INT=1
13506 else
13507 HAVE_UNSIGNED_LONG_LONG_INT=0
13508 fi
13509
13510
13511 if test $ac_cv_header_inttypes_h = yes; then
13512 HAVE_INTTYPES_H=1
13513 else
13514 HAVE_INTTYPES_H=0
13515 fi
13516
13517
13518 if test $ac_cv_header_sys_types_h = yes; then
13519 HAVE_SYS_TYPES_H=1
13520 else
13521 HAVE_SYS_TYPES_H=0
13522 fi
13523
13524
13525
13526
13527
13528
13529 :
13530
13531
13532
13533
13534
13535
13536
13537 if test $gl_cv_have_include_next = yes; then
13538 gl_cv_next_stdint_h='<'stdint.h'>'
13539 else
13540 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
13541 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
13542 if test "${gl_cv_next_stdint_h+set}" = set; then
13543 $as_echo_n "(cached) " >&6
13544 else
13545
13546 if test $ac_cv_header_stdint_h = yes; then
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <stdint.h>
13554
13555 _ACEOF
13556 case "$host_os" in
13557 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13558 *) gl_absname_cpp="$ac_cpp" ;;
13559 esac
13560 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13561 sed -n '\#/stdint.h#{
13562 s#.*"\(.*/stdint.h\)".*#\1#
13563 s#^/[^/]#//&#
13564 p
13565 q
13566 }'`'"'
13567 else
13568 gl_cv_next_stdint_h='<'stdint.h'>'
13569 fi
13570
13571 fi
13572 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
13573 $as_echo "$gl_cv_next_stdint_h" >&6; }
13574 fi
13575 NEXT_STDINT_H=$gl_cv_next_stdint_h
13576
13577
13578
13579 if test $ac_cv_header_stdint_h = yes; then
13580 HAVE_STDINT_H=1
13581 else
13582 HAVE_STDINT_H=0
13583 fi
13584
13585
13586 if test $ac_cv_header_stdint_h = yes; then
13587 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
13588 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
13589 if test "${gl_cv_header_working_stdint_h+set}" = set; then
13590 $as_echo_n "(cached) " >&6
13591 else
13592 gl_cv_header_working_stdint_h=no
13593 cat >conftest.$ac_ext <<_ACEOF
13594
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600
13601 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
13602 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
13603 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13604 #include <stdint.h>
13605 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
13606 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
13607 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
13608 #endif
13609
13610
13611 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13612 included before <wchar.h>. */
13613 #include <stddef.h>
13614 #include <signal.h>
13615 #if HAVE_WCHAR_H
13616 # include <stdio.h>
13617 # include <time.h>
13618 # include <wchar.h>
13619 #endif
13620
13621
13622 #ifdef INT8_MAX
13623 int8_t a1 = INT8_MAX;
13624 int8_t a1min = INT8_MIN;
13625 #endif
13626 #ifdef INT16_MAX
13627 int16_t a2 = INT16_MAX;
13628 int16_t a2min = INT16_MIN;
13629 #endif
13630 #ifdef INT32_MAX
13631 int32_t a3 = INT32_MAX;
13632 int32_t a3min = INT32_MIN;
13633 #endif
13634 #ifdef INT64_MAX
13635 int64_t a4 = INT64_MAX;
13636 int64_t a4min = INT64_MIN;
13637 #endif
13638 #ifdef UINT8_MAX
13639 uint8_t b1 = UINT8_MAX;
13640 #else
13641 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13642 #endif
13643 #ifdef UINT16_MAX
13644 uint16_t b2 = UINT16_MAX;
13645 #endif
13646 #ifdef UINT32_MAX
13647 uint32_t b3 = UINT32_MAX;
13648 #endif
13649 #ifdef UINT64_MAX
13650 uint64_t b4 = UINT64_MAX;
13651 #endif
13652 int_least8_t c1 = INT8_C (0x7f);
13653 int_least8_t c1max = INT_LEAST8_MAX;
13654 int_least8_t c1min = INT_LEAST8_MIN;
13655 int_least16_t c2 = INT16_C (0x7fff);
13656 int_least16_t c2max = INT_LEAST16_MAX;
13657 int_least16_t c2min = INT_LEAST16_MIN;
13658 int_least32_t c3 = INT32_C (0x7fffffff);
13659 int_least32_t c3max = INT_LEAST32_MAX;
13660 int_least32_t c3min = INT_LEAST32_MIN;
13661 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13662 int_least64_t c4max = INT_LEAST64_MAX;
13663 int_least64_t c4min = INT_LEAST64_MIN;
13664 uint_least8_t d1 = UINT8_C (0xff);
13665 uint_least8_t d1max = UINT_LEAST8_MAX;
13666 uint_least16_t d2 = UINT16_C (0xffff);
13667 uint_least16_t d2max = UINT_LEAST16_MAX;
13668 uint_least32_t d3 = UINT32_C (0xffffffff);
13669 uint_least32_t d3max = UINT_LEAST32_MAX;
13670 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13671 uint_least64_t d4max = UINT_LEAST64_MAX;
13672 int_fast8_t e1 = INT_FAST8_MAX;
13673 int_fast8_t e1min = INT_FAST8_MIN;
13674 int_fast16_t e2 = INT_FAST16_MAX;
13675 int_fast16_t e2min = INT_FAST16_MIN;
13676 int_fast32_t e3 = INT_FAST32_MAX;
13677 int_fast32_t e3min = INT_FAST32_MIN;
13678 int_fast64_t e4 = INT_FAST64_MAX;
13679 int_fast64_t e4min = INT_FAST64_MIN;
13680 uint_fast8_t f1 = UINT_FAST8_MAX;
13681 uint_fast16_t f2 = UINT_FAST16_MAX;
13682 uint_fast32_t f3 = UINT_FAST32_MAX;
13683 uint_fast64_t f4 = UINT_FAST64_MAX;
13684 #ifdef INTPTR_MAX
13685 intptr_t g = INTPTR_MAX;
13686 intptr_t gmin = INTPTR_MIN;
13687 #endif
13688 #ifdef UINTPTR_MAX
13689 uintptr_t h = UINTPTR_MAX;
13690 #endif
13691 intmax_t i = INTMAX_MAX;
13692 uintmax_t j = UINTMAX_MAX;
13693
13694 #include <limits.h> /* for CHAR_BIT */
13695 #define TYPE_MINIMUM(t) \
13696 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
13697 #define TYPE_MAXIMUM(t) \
13698 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
13699 struct s {
13700 int check_PTRDIFF:
13701 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13702 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13703 ? 1 : -1;
13704 /* Detect bug in FreeBSD 6.0 / ia64. */
13705 int check_SIG_ATOMIC:
13706 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13707 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13708 ? 1 : -1;
13709 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13710 int check_WCHAR:
13711 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13712 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13713 ? 1 : -1;
13714 /* Detect bug in mingw. */
13715 int check_WINT:
13716 WINT_MIN == TYPE_MINIMUM (wint_t)
13717 && WINT_MAX == TYPE_MAXIMUM (wint_t)
13718 ? 1 : -1;
13719
13720 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
13721 int check_UINT8_C:
13722 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13723 int check_UINT16_C:
13724 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13725
13726 /* Detect bugs in OpenBSD 3.9 stdint.h. */
13727 #ifdef UINT8_MAX
13728 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13729 #endif
13730 #ifdef UINT16_MAX
13731 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13732 #endif
13733 #ifdef UINT32_MAX
13734 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13735 #endif
13736 #ifdef UINT64_MAX
13737 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13738 #endif
13739 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13740 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13741 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13742 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13743 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13744 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13745 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13746 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13747 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13748 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13749 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13750 };
13751
13752 int
13753 main ()
13754 {
13755
13756 ;
13757 return 0;
13758 }
13759 _ACEOF
13760 rm -f conftest.$ac_objext
13761 if { (ac_try="$ac_compile"
13762 case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765 esac
13766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13767 $as_echo "$ac_try_echo") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 gl_cv_header_working_stdint_h=yes
13779 else
13780 $as_echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783
13784 fi
13785
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 fi
13788 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
13789 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
13790 fi
13791 if test "$gl_cv_header_working_stdint_h" = yes; then
13792 STDINT_H=
13793 else
13794
13795
13796 for ac_header in sys/inttypes.h sys/bitypes.h
13797 do
13798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13801 $as_echo_n "checking for $ac_header... " >&6; }
13802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13803 $as_echo_n "(cached) " >&6
13804 fi
13805 ac_res=`eval 'as_val=${'$as_ac_Header'}
13806 $as_echo "$as_val"'`
13807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13808 $as_echo "$ac_res" >&6; }
13809 else
13810 # Is the header compilable?
13811 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13812 $as_echo_n "checking $ac_header usability... " >&6; }
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13820 #include <$ac_header>
13821 _ACEOF
13822 rm -f conftest.$ac_objext
13823 if { (ac_try="$ac_compile"
13824 case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827 esac
13828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13829 $as_echo "$ac_try_echo") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && {
13837 test -z "$ac_c_werror_flag" ||
13838 test ! -s conftest.err
13839 } && test -s conftest.$ac_objext; then
13840 ac_header_compiler=yes
13841 else
13842 $as_echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_header_compiler=no
13846 fi
13847
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850 $as_echo "$ac_header_compiler" >&6; }
13851
13852 # Is the header present?
13853 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13854 $as_echo_n "checking $ac_header presence... " >&6; }
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h. */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <$ac_header>
13862 _ACEOF
13863 if { (ac_try="$ac_cpp conftest.$ac_ext"
13864 case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867 esac
13868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13869 $as_echo "$ac_try_echo") >&5
13870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } >/dev/null && {
13877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 }; then
13880 ac_header_preproc=yes
13881 else
13882 $as_echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_header_preproc=no
13886 fi
13887
13888 rm -f conftest.err conftest.$ac_ext
13889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13890 $as_echo "$ac_header_preproc" >&6; }
13891
13892 # So? What about this header?
13893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894 yes:no: )
13895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13899 ac_header_preproc=yes
13900 ;;
13901 no:yes:* )
13902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13903 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13907 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13909 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13913 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13914 ( cat <<\_ASBOX
13915 ## -------------------------- ##
13916 ## Report this to lost@l-w.ca ##
13917 ## -------------------------- ##
13918 _ASBOX
13919 ) | sed "s/^/$as_me: WARNING: /" >&2
13920 ;;
13921 esac
13922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13923 $as_echo_n "checking for $ac_header... " >&6; }
13924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13925 $as_echo_n "(cached) " >&6
13926 else
13927 eval "$as_ac_Header=\$ac_header_preproc"
13928 fi
13929 ac_res=`eval 'as_val=${'$as_ac_Header'}
13930 $as_echo "$as_val"'`
13931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13932 $as_echo "$ac_res" >&6; }
13933
13934 fi
13935 as_val=`eval 'as_val=${'$as_ac_Header'}
13936 $as_echo "$as_val"'`
13937 if test "x$as_val" = x""yes; then
13938 cat >>confdefs.h <<_ACEOF
13939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13940 _ACEOF
13941
13942 fi
13943
13944 done
13945
13946 if test $ac_cv_header_sys_inttypes_h = yes; then
13947 HAVE_SYS_INTTYPES_H=1
13948 else
13949 HAVE_SYS_INTTYPES_H=0
13950 fi
13951
13952 if test $ac_cv_header_sys_bitypes_h = yes; then
13953 HAVE_SYS_BITYPES_H=1
13954 else
13955 HAVE_SYS_BITYPES_H=0
13956 fi
13957
13958
13959
13960 :
13961
13962
13963
13964
13965
13966
13967
13968
13969 if test $APPLE_UNIVERSAL_BUILD = 0; then
13970
13971
13972
13973
13974 for gltype in ptrdiff_t size_t ; do
13975 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
13976 $as_echo_n "checking for bit size of $gltype... " >&6; }
13977 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
13978 $as_echo_n "(cached) " >&6
13979 else
13980 if test "$cross_compiling" = yes; then
13981 # Depending upon the size, compute the lo and hi bounds.
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988
13989 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13990 included before <wchar.h>. */
13991 #include <stddef.h>
13992 #include <signal.h>
13993 #if HAVE_WCHAR_H
13994 # include <stdio.h>
13995 # include <time.h>
13996 # include <wchar.h>
13997 #endif
13998
13999 #include <limits.h>
14000 int
14001 main ()
14002 {
14003 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14004 test_array [0] = 0
14005
14006 ;
14007 return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (ac_try="$ac_compile"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14017 $as_echo "$ac_try_echo") >&5
14018 (eval "$ac_compile") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
14028 ac_lo=0 ac_mid=0
14029 while :; do
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036
14037 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14038 included before <wchar.h>. */
14039 #include <stddef.h>
14040 #include <signal.h>
14041 #if HAVE_WCHAR_H
14042 # include <stdio.h>
14043 # include <time.h>
14044 # include <wchar.h>
14045 #endif
14046
14047 #include <limits.h>
14048 int
14049 main ()
14050 {
14051 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14052 test_array [0] = 0
14053
14054 ;
14055 return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (ac_try="$ac_compile"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063 esac
14064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14065 $as_echo "$ac_try_echo") >&5
14066 (eval "$ac_compile") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } && {
14073 test -z "$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 } && test -s conftest.$ac_objext; then
14076 ac_hi=$ac_mid; break
14077 else
14078 $as_echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 ac_lo=`expr $ac_mid + 1`
14082 if test $ac_lo -le $ac_mid; then
14083 ac_lo= ac_hi=
14084 break
14085 fi
14086 ac_mid=`expr 2 '*' $ac_mid + 1`
14087 fi
14088
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 done
14091 else
14092 $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h. */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101
14102 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14103 included before <wchar.h>. */
14104 #include <stddef.h>
14105 #include <signal.h>
14106 #if HAVE_WCHAR_H
14107 # include <stdio.h>
14108 # include <time.h>
14109 # include <wchar.h>
14110 #endif
14111
14112 #include <limits.h>
14113 int
14114 main ()
14115 {
14116 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
14117 test_array [0] = 0
14118
14119 ;
14120 return 0;
14121 }
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 ac_hi=-1 ac_mid=-1
14142 while :; do
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149
14150 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14151 included before <wchar.h>. */
14152 #include <stddef.h>
14153 #include <signal.h>
14154 #if HAVE_WCHAR_H
14155 # include <stdio.h>
14156 # include <time.h>
14157 # include <wchar.h>
14158 #endif
14159
14160 #include <limits.h>
14161 int
14162 main ()
14163 {
14164 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
14165 test_array [0] = 0
14166
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext
14172 if { (ac_try="$ac_compile"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14178 $as_echo "$ac_try_echo") >&5
14179 (eval "$ac_compile") 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } && {
14186 test -z "$ac_c_werror_flag" ||
14187 test ! -s conftest.err
14188 } && test -s conftest.$ac_objext; then
14189 ac_lo=$ac_mid; break
14190 else
14191 $as_echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_hi=`expr '(' $ac_mid ')' - 1`
14195 if test $ac_mid -le $ac_hi; then
14196 ac_lo= ac_hi=
14197 break
14198 fi
14199 ac_mid=`expr 2 '*' $ac_mid`
14200 fi
14201
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 done
14204 else
14205 $as_echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_lo= ac_hi=
14209 fi
14210
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212 fi
14213
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 # Binary search between lo and hi bounds.
14216 while test "x$ac_lo" != "x$ac_hi"; do
14217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224
14225 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14226 included before <wchar.h>. */
14227 #include <stddef.h>
14228 #include <signal.h>
14229 #if HAVE_WCHAR_H
14230 # include <stdio.h>
14231 # include <time.h>
14232 # include <wchar.h>
14233 #endif
14234
14235 #include <limits.h>
14236 int
14237 main ()
14238 {
14239 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14240 test_array [0] = 0
14241
14242 ;
14243 return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14251 esac
14252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14253 $as_echo "$ac_try_echo") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 ac_hi=$ac_mid
14265 else
14266 $as_echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 ac_lo=`expr '(' $ac_mid ')' + 1`
14270 fi
14271
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 done
14274 case $ac_lo in
14275 ?*) result=$ac_lo;;
14276 '') result=unknown ;;
14277 esac
14278 else
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285
14286 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14287 included before <wchar.h>. */
14288 #include <stddef.h>
14289 #include <signal.h>
14290 #if HAVE_WCHAR_H
14291 # include <stdio.h>
14292 # include <time.h>
14293 # include <wchar.h>
14294 #endif
14295
14296 #include <limits.h>
14297 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14298 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14299 #include <stdio.h>
14300 #include <stdlib.h>
14301 int
14302 main ()
14303 {
14304
14305 FILE *f = fopen ("conftest.val", "w");
14306 if (! f)
14307 return 1;
14308 if ((sizeof ($gltype) * CHAR_BIT) < 0)
14309 {
14310 long int i = longval ();
14311 if (i != (sizeof ($gltype) * CHAR_BIT))
14312 return 1;
14313 fprintf (f, "%ld", i);
14314 }
14315 else
14316 {
14317 unsigned long int i = ulongval ();
14318 if (i != (sizeof ($gltype) * CHAR_BIT))
14319 return 1;
14320 fprintf (f, "%lu", i);
14321 }
14322 /* Do not output a trailing newline, as this causes \r\n confusion
14323 on some platforms. */
14324 return ferror (f) || fclose (f) != 0;
14325
14326 ;
14327 return 0;
14328 }
14329 _ACEOF
14330 rm -f conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335 esac
14336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14337 $as_echo "$ac_try_echo") >&5
14338 (eval "$ac_link") 2>&5
14339 ac_status=$?
14340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345 esac
14346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14347 $as_echo "$ac_try_echo") >&5
14348 (eval "$ac_try") 2>&5
14349 ac_status=$?
14350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 result=`cat conftest.val`
14353 else
14354 $as_echo "$as_me: program exited with status $ac_status" >&5
14355 $as_echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 ( exit $ac_status )
14359 result=unknown
14360 fi
14361 rm -rf conftest.dSYM
14362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14363 fi
14364 rm -f conftest.val
14365 eval gl_cv_bitsizeof_${gltype}=\$result
14366
14367 fi
14368 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
14369 $as_echo "$as_val"'`
14370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14371 $as_echo "$ac_res" >&6; }
14372 eval result=\$gl_cv_bitsizeof_${gltype}
14373 if test $result = unknown; then
14374 result=0
14375 fi
14376 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14377 cat >>confdefs.h <<_ACEOF
14378 #define BITSIZEOF_${GLTYPE} $result
14379 _ACEOF
14380
14381 eval BITSIZEOF_${GLTYPE}=\$result
14382 done
14383
14384
14385 fi
14386
14387
14388
14389
14390
14391 for gltype in sig_atomic_t wchar_t wint_t ; do
14392 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
14393 $as_echo_n "checking for bit size of $gltype... " >&6; }
14394 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
14395 $as_echo_n "(cached) " >&6
14396 else
14397 if test "$cross_compiling" = yes; then
14398 # Depending upon the size, compute the lo and hi bounds.
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405
14406 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14407 included before <wchar.h>. */
14408 #include <stddef.h>
14409 #include <signal.h>
14410 #if HAVE_WCHAR_H
14411 # include <stdio.h>
14412 # include <time.h>
14413 # include <wchar.h>
14414 #endif
14415
14416 #include <limits.h>
14417 int
14418 main ()
14419 {
14420 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
14421 test_array [0] = 0
14422
14423 ;
14424 return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest.$ac_objext
14428 if { (ac_try="$ac_compile"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432 esac
14433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14434 $as_echo "$ac_try_echo") >&5
14435 (eval "$ac_compile") 2>conftest.er1
14436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } && {
14442 test -z "$ac_c_werror_flag" ||
14443 test ! -s conftest.err
14444 } && test -s conftest.$ac_objext; then
14445 ac_lo=0 ac_mid=0
14446 while :; do
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453
14454 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14455 included before <wchar.h>. */
14456 #include <stddef.h>
14457 #include <signal.h>
14458 #if HAVE_WCHAR_H
14459 # include <stdio.h>
14460 # include <time.h>
14461 # include <wchar.h>
14462 #endif
14463
14464 #include <limits.h>
14465 int
14466 main ()
14467 {
14468 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14469 test_array [0] = 0
14470
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (ac_try="$ac_compile"
14477 case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14480 esac
14481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14482 $as_echo "$ac_try_echo") >&5
14483 (eval "$ac_compile") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && {
14490 test -z "$ac_c_werror_flag" ||
14491 test ! -s conftest.err
14492 } && test -s conftest.$ac_objext; then
14493 ac_hi=$ac_mid; break
14494 else
14495 $as_echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14497
14498 ac_lo=`expr $ac_mid + 1`
14499 if test $ac_lo -le $ac_mid; then
14500 ac_lo= ac_hi=
14501 break
14502 fi
14503 ac_mid=`expr 2 '*' $ac_mid + 1`
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 done
14508 else
14509 $as_echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518
14519 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14520 included before <wchar.h>. */
14521 #include <stddef.h>
14522 #include <signal.h>
14523 #if HAVE_WCHAR_H
14524 # include <stdio.h>
14525 # include <time.h>
14526 # include <wchar.h>
14527 #endif
14528
14529 #include <limits.h>
14530 int
14531 main ()
14532 {
14533 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
14534 test_array [0] = 0
14535
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest.$ac_objext
14541 if { (ac_try="$ac_compile"
14542 case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545 esac
14546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14547 $as_echo "$ac_try_echo") >&5
14548 (eval "$ac_compile") 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && {
14555 test -z "$ac_c_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest.$ac_objext; then
14558 ac_hi=-1 ac_mid=-1
14559 while :; do
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566
14567 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14568 included before <wchar.h>. */
14569 #include <stddef.h>
14570 #include <signal.h>
14571 #if HAVE_WCHAR_H
14572 # include <stdio.h>
14573 # include <time.h>
14574 # include <wchar.h>
14575 #endif
14576
14577 #include <limits.h>
14578 int
14579 main ()
14580 {
14581 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
14582 test_array [0] = 0
14583
14584 ;
14585 return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (ac_try="$ac_compile"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593 esac
14594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14595 $as_echo "$ac_try_echo") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest.$ac_objext; then
14606 ac_lo=$ac_mid; break
14607 else
14608 $as_echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14610
14611 ac_hi=`expr '(' $ac_mid ')' - 1`
14612 if test $ac_mid -le $ac_hi; then
14613 ac_lo= ac_hi=
14614 break
14615 fi
14616 ac_mid=`expr 2 '*' $ac_mid`
14617 fi
14618
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 done
14621 else
14622 $as_echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_lo= ac_hi=
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 fi
14630
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632 # Binary search between lo and hi bounds.
14633 while test "x$ac_lo" != "x$ac_hi"; do
14634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h. */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641
14642 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14643 included before <wchar.h>. */
14644 #include <stddef.h>
14645 #include <signal.h>
14646 #if HAVE_WCHAR_H
14647 # include <stdio.h>
14648 # include <time.h>
14649 # include <wchar.h>
14650 #endif
14651
14652 #include <limits.h>
14653 int
14654 main ()
14655 {
14656 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
14657 test_array [0] = 0
14658
14659 ;
14660 return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14668 esac
14669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14670 $as_echo "$ac_try_echo") >&5
14671 (eval "$ac_compile") 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
14681 ac_hi=$ac_mid
14682 else
14683 $as_echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686 ac_lo=`expr '(' $ac_mid ')' + 1`
14687 fi
14688
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 done
14691 case $ac_lo in
14692 ?*) result=$ac_lo;;
14693 '') result=unknown ;;
14694 esac
14695 else
14696 cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h. */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702
14703 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14704 included before <wchar.h>. */
14705 #include <stddef.h>
14706 #include <signal.h>
14707 #if HAVE_WCHAR_H
14708 # include <stdio.h>
14709 # include <time.h>
14710 # include <wchar.h>
14711 #endif
14712
14713 #include <limits.h>
14714 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
14715 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
14716 #include <stdio.h>
14717 #include <stdlib.h>
14718 int
14719 main ()
14720 {
14721
14722 FILE *f = fopen ("conftest.val", "w");
14723 if (! f)
14724 return 1;
14725 if ((sizeof ($gltype) * CHAR_BIT) < 0)
14726 {
14727 long int i = longval ();
14728 if (i != (sizeof ($gltype) * CHAR_BIT))
14729 return 1;
14730 fprintf (f, "%ld", i);
14731 }
14732 else
14733 {
14734 unsigned long int i = ulongval ();
14735 if (i != (sizeof ($gltype) * CHAR_BIT))
14736 return 1;
14737 fprintf (f, "%lu", i);
14738 }
14739 /* Do not output a trailing newline, as this causes \r\n confusion
14740 on some platforms. */
14741 return ferror (f) || fclose (f) != 0;
14742
14743 ;
14744 return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752 esac
14753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14754 $as_echo "$ac_try_echo") >&5
14755 (eval "$ac_link") 2>&5
14756 ac_status=$?
14757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14759 { (case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14764 $as_echo "$ac_try_echo") >&5
14765 (eval "$ac_try") 2>&5
14766 ac_status=$?
14767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 result=`cat conftest.val`
14770 else
14771 $as_echo "$as_me: program exited with status $ac_status" >&5
14772 $as_echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775 ( exit $ac_status )
14776 result=unknown
14777 fi
14778 rm -rf conftest.dSYM
14779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14780 fi
14781 rm -f conftest.val
14782 eval gl_cv_bitsizeof_${gltype}=\$result
14783
14784 fi
14785 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
14786 $as_echo "$as_val"'`
14787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14788 $as_echo "$ac_res" >&6; }
14789 eval result=\$gl_cv_bitsizeof_${gltype}
14790 if test $result = unknown; then
14791 result=0
14792 fi
14793 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14794 cat >>confdefs.h <<_ACEOF
14795 #define BITSIZEOF_${GLTYPE} $result
14796 _ACEOF
14797
14798 eval BITSIZEOF_${GLTYPE}=\$result
14799 done
14800
14801
14802
14803
14804
14805
14806
14807 for gltype in sig_atomic_t wchar_t wint_t ; do
14808 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
14809 $as_echo_n "checking whether $gltype is signed... " >&6; }
14810 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
14811 $as_echo_n "(cached) " >&6
14812 else
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819
14820 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14821 included before <wchar.h>. */
14822 #include <stddef.h>
14823 #include <signal.h>
14824 #if HAVE_WCHAR_H
14825 # include <stdio.h>
14826 # include <time.h>
14827 # include <wchar.h>
14828 #endif
14829
14830 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
14831 int
14832 main ()
14833 {
14834
14835 ;
14836 return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (ac_try="$ac_compile"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844 esac
14845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14846 $as_echo "$ac_try_echo") >&5
14847 (eval "$ac_compile") 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest.$ac_objext; then
14857 result=yes
14858 else
14859 $as_echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862 result=no
14863 fi
14864
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 eval gl_cv_type_${gltype}_signed=\$result
14867
14868 fi
14869 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
14870 $as_echo "$as_val"'`
14871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14872 $as_echo "$ac_res" >&6; }
14873 eval result=\$gl_cv_type_${gltype}_signed
14874 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14875 if test "$result" = yes; then
14876 cat >>confdefs.h <<_ACEOF
14877 #define HAVE_SIGNED_${GLTYPE} 1
14878 _ACEOF
14879
14880 eval HAVE_SIGNED_${GLTYPE}=1
14881 else
14882 eval HAVE_SIGNED_${GLTYPE}=0
14883 fi
14884 done
14885
14886
14887 gl_cv_type_ptrdiff_t_signed=yes
14888 gl_cv_type_size_t_signed=no
14889 if test $APPLE_UNIVERSAL_BUILD = 0; then
14890
14891
14892
14893
14894 for gltype in ptrdiff_t size_t ; do
14895 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
14896 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
14897 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
14898 $as_echo_n "(cached) " >&6
14899 else
14900 eval gl_cv_type_${gltype}_suffix=no
14901 eval result=\$gl_cv_type_${gltype}_signed
14902 if test "$result" = yes; then
14903 glsufu=
14904 else
14905 glsufu=u
14906 fi
14907 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
14908 case $glsuf in
14909 '') gltype1='int';;
14910 l) gltype1='long int';;
14911 ll) gltype1='long long int';;
14912 i64) gltype1='__int64';;
14913 u) gltype1='unsigned int';;
14914 ul) gltype1='unsigned long int';;
14915 ull) gltype1='unsigned long long int';;
14916 ui64)gltype1='unsigned __int64';;
14917 esac
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h. */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924
14925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14926 included before <wchar.h>. */
14927 #include <stddef.h>
14928 #include <signal.h>
14929 #if HAVE_WCHAR_H
14930 # include <stdio.h>
14931 # include <time.h>
14932 # include <wchar.h>
14933 #endif
14934
14935 extern $gltype foo;
14936 extern $gltype1 foo;
14937 int
14938 main ()
14939 {
14940
14941 ;
14942 return 0;
14943 }
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953 (eval "$ac_compile") 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } && {
14960 test -z "$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 } && test -s conftest.$ac_objext; then
14963 eval gl_cv_type_${gltype}_suffix=\$glsuf
14964 else
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968
14969 fi
14970
14971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972 eval result=\$gl_cv_type_${gltype}_suffix
14973 test "$result" != no && break
14974 done
14975 fi
14976 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
14977 $as_echo "$as_val"'`
14978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14979 $as_echo "$ac_res" >&6; }
14980 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14981 eval result=\$gl_cv_type_${gltype}_suffix
14982 test "$result" = no && result=
14983 eval ${GLTYPE}_SUFFIX=\$result
14984 cat >>confdefs.h <<_ACEOF
14985 #define ${GLTYPE}_SUFFIX $result
14986 _ACEOF
14987
14988 done
14989
14990
14991 fi
14992
14993
14994
14995
14996
14997 for gltype in sig_atomic_t wchar_t wint_t ; do
14998 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
14999 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15000 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
15001 $as_echo_n "(cached) " >&6
15002 else
15003 eval gl_cv_type_${gltype}_suffix=no
15004 eval result=\$gl_cv_type_${gltype}_signed
15005 if test "$result" = yes; then
15006 glsufu=
15007 else
15008 glsufu=u
15009 fi
15010 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15011 case $glsuf in
15012 '') gltype1='int';;
15013 l) gltype1='long int';;
15014 ll) gltype1='long long int';;
15015 i64) gltype1='__int64';;
15016 u) gltype1='unsigned int';;
15017 ul) gltype1='unsigned long int';;
15018 ull) gltype1='unsigned long long int';;
15019 ui64)gltype1='unsigned __int64';;
15020 esac
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027
15028 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15029 included before <wchar.h>. */
15030 #include <stddef.h>
15031 #include <signal.h>
15032 #if HAVE_WCHAR_H
15033 # include <stdio.h>
15034 # include <time.h>
15035 # include <wchar.h>
15036 #endif
15037
15038 extern $gltype foo;
15039 extern $gltype1 foo;
15040 int
15041 main ()
15042 {
15043
15044 ;
15045 return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055 $as_echo "$ac_try_echo") >&5
15056 (eval "$ac_compile") 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest.$ac_objext; then
15066 eval gl_cv_type_${gltype}_suffix=\$glsuf
15067 else
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071
15072 fi
15073
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 eval result=\$gl_cv_type_${gltype}_suffix
15076 test "$result" != no && break
15077 done
15078 fi
15079 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
15080 $as_echo "$as_val"'`
15081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15082 $as_echo "$ac_res" >&6; }
15083 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15084 eval result=\$gl_cv_type_${gltype}_suffix
15085 test "$result" = no && result=
15086 eval ${GLTYPE}_SUFFIX=\$result
15087 cat >>confdefs.h <<_ACEOF
15088 #define ${GLTYPE}_SUFFIX $result
15089 _ACEOF
15090
15091 done
15092
15093
15094
15095 STDINT_H=stdint.h
15096 fi
15097
15098
15099
15100
15101
15102
15103
15104
15105 :
15106
15107
15108
15109
15110
15111
15112
15113 if test $gl_cv_have_include_next = yes; then
15114 gl_cv_next_stdio_h='<'stdio.h'>'
15115 else
15116 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
15117 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
15118 if test "${gl_cv_next_stdio_h+set}" = set; then
15119 $as_echo_n "(cached) " >&6
15120 else
15121
15122 if test $ac_cv_header_stdio_h = yes; then
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 #include <stdio.h>
15130
15131 _ACEOF
15132 case "$host_os" in
15133 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15134 *) gl_absname_cpp="$ac_cpp" ;;
15135 esac
15136 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15137 sed -n '\#/stdio.h#{
15138 s#.*"\(.*/stdio.h\)".*#\1#
15139 s#^/[^/]#//&#
15140 p
15141 q
15142 }'`'"'
15143 else
15144 gl_cv_next_stdio_h='<'stdio.h'>'
15145 fi
15146
15147 fi
15148 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
15149 $as_echo "$gl_cv_next_stdio_h" >&6; }
15150 fi
15151 NEXT_STDIO_H=$gl_cv_next_stdio_h
15152
15153
15154
15155 GNULIB_FPRINTF=1
15156 GNULIB_PRINTF=1
15157 GNULIB_VFPRINTF=1
15158 GNULIB_VPRINTF=1
15159 GNULIB_FPUTC=1
15160 GNULIB_PUTC=1
15161 GNULIB_PUTCHAR=1
15162 GNULIB_FPUTS=1
15163 GNULIB_PUTS=1
15164 GNULIB_FWRITE=1
15165
15166
15167
15168
15169
15170
15171
15172
15173 :
15174
15175
15176
15177
15178
15179
15180
15181 if test $gl_cv_have_include_next = yes; then
15182 gl_cv_next_stdlib_h='<'stdlib.h'>'
15183 else
15184 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
15185 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15186 if test "${gl_cv_next_stdlib_h+set}" = set; then
15187 $as_echo_n "(cached) " >&6
15188 else
15189
15190 if test $ac_cv_header_stdlib_h = yes; then
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <stdlib.h>
15198
15199 _ACEOF
15200 case "$host_os" in
15201 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15202 *) gl_absname_cpp="$ac_cpp" ;;
15203 esac
15204 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15205 sed -n '\#/stdlib.h#{
15206 s#.*"\(.*/stdlib.h\)".*#\1#
15207 s#^/[^/]#//&#
15208 p
15209 q
15210 }'`'"'
15211 else
15212 gl_cv_next_stdlib_h='<'stdlib.h'>'
15213 fi
15214
15215 fi
15216 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
15217 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15218 fi
15219 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15220
15221
15222
15223 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
15224 $as_echo_n "checking for struct random_data... " >&6; }
15225 if test "${ac_cv_type_struct_random_data+set}" = set; then
15226 $as_echo_n "(cached) " >&6
15227 else
15228 ac_cv_type_struct_random_data=no
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h. */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 #include <stdlib.h>
15236
15237 int
15238 main ()
15239 {
15240 if (sizeof (struct random_data))
15241 return 0;
15242 ;
15243 return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251 esac
15252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15253 $as_echo "$ac_try_echo") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_c_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest.$ac_objext; then
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h. */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <stdlib.h>
15271
15272 int
15273 main ()
15274 {
15275 if (sizeof ((struct random_data)))
15276 return 0;
15277 ;
15278 return 0;
15279 }
15280 _ACEOF
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15286 esac
15287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288 $as_echo "$ac_try_echo") >&5
15289 (eval "$ac_compile") 2>conftest.er1
15290 ac_status=$?
15291 grep -v '^ *+' conftest.er1 >conftest.err
15292 rm -f conftest.er1
15293 cat conftest.err >&5
15294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } && {
15296 test -z "$ac_c_werror_flag" ||
15297 test ! -s conftest.err
15298 } && test -s conftest.$ac_objext; then
15299 :
15300 else
15301 $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 ac_cv_type_struct_random_data=yes
15305 fi
15306
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308 else
15309 $as_echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15311
15312
15313 fi
15314
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 fi
15317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
15318 $as_echo "$ac_cv_type_struct_random_data" >&6; }
15319 if test "x$ac_cv_type_struct_random_data" = x""yes; then
15320
15321 cat >>confdefs.h <<_ACEOF
15322 #define HAVE_STRUCT_RANDOM_DATA 1
15323 _ACEOF
15324
15325
15326 else
15327 HAVE_STRUCT_RANDOM_DATA=0
15328 fi
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343 for ac_func in strcasecmp
15344 do
15345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15347 $as_echo_n "checking for $ac_func... " >&6; }
15348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15349 $as_echo_n "(cached) " >&6
15350 else
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15359 #define $ac_func innocuous_$ac_func
15360
15361 /* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char $ac_func (); below.
15363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15364 <limits.h> exists even on freestanding compilers. */
15365
15366 #ifdef __STDC__
15367 # include <limits.h>
15368 #else
15369 # include <assert.h>
15370 #endif
15371
15372 #undef $ac_func
15373
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 char $ac_func ();
15381 /* The GNU C library defines this for functions which it implements
15382 to always fail with ENOSYS. Some functions are actually named
15383 something starting with __ and the normal name is an alias. */
15384 #if defined __stub_$ac_func || defined __stub___$ac_func
15385 choke me
15386 #endif
15387
15388 int
15389 main ()
15390 {
15391 return $ac_func ();
15392 ;
15393 return 0;
15394 }
15395 _ACEOF
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext && {
15414 test "$cross_compiling" = yes ||
15415 $as_test_x conftest$ac_exeext
15416 }; then
15417 eval "$as_ac_var=yes"
15418 else
15419 $as_echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15421
15422 eval "$as_ac_var=no"
15423 fi
15424
15425 rm -rf conftest.dSYM
15426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15427 conftest$ac_exeext conftest.$ac_ext
15428 fi
15429 ac_res=`eval 'as_val=${'$as_ac_var'}
15430 $as_echo "$as_val"'`
15431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15432 $as_echo "$ac_res" >&6; }
15433 as_val=`eval 'as_val=${'$as_ac_var'}
15434 $as_echo "$as_val"'`
15435 if test "x$as_val" = x""yes; then
15436 cat >>confdefs.h <<_ACEOF
15437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15438 _ACEOF
15439
15440 else
15441
15442 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
15443
15444 fi
15445 done
15446
15447
15448 if test $ac_cv_func_strcasecmp = no; then
15449 HAVE_STRCASECMP=0
15450
15451 :
15452
15453 fi
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466 for ac_func in strncasecmp
15467 do
15468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15469 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15470 $as_echo_n "checking for $ac_func... " >&6; }
15471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15472 $as_echo_n "(cached) " >&6
15473 else
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15482 #define $ac_func innocuous_$ac_func
15483
15484 /* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func (); below.
15486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487 <limits.h> exists even on freestanding compilers. */
15488
15489 #ifdef __STDC__
15490 # include <limits.h>
15491 #else
15492 # include <assert.h>
15493 #endif
15494
15495 #undef $ac_func
15496
15497 /* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
15500 #ifdef __cplusplus
15501 extern "C"
15502 #endif
15503 char $ac_func ();
15504 /* The GNU C library defines this for functions which it implements
15505 to always fail with ENOSYS. Some functions are actually named
15506 something starting with __ and the normal name is an alias. */
15507 #if defined __stub_$ac_func || defined __stub___$ac_func
15508 choke me
15509 #endif
15510
15511 int
15512 main ()
15513 {
15514 return $ac_func ();
15515 ;
15516 return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (ac_try="$ac_link"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527 (eval "$ac_link") 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } && {
15534 test -z "$ac_c_werror_flag" ||
15535 test ! -s conftest.err
15536 } && test -s conftest$ac_exeext && {
15537 test "$cross_compiling" = yes ||
15538 $as_test_x conftest$ac_exeext
15539 }; then
15540 eval "$as_ac_var=yes"
15541 else
15542 $as_echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545 eval "$as_ac_var=no"
15546 fi
15547
15548 rm -rf conftest.dSYM
15549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15550 conftest$ac_exeext conftest.$ac_ext
15551 fi
15552 ac_res=`eval 'as_val=${'$as_ac_var'}
15553 $as_echo "$as_val"'`
15554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15555 $as_echo "$ac_res" >&6; }
15556 as_val=`eval 'as_val=${'$as_ac_var'}
15557 $as_echo "$as_val"'`
15558 if test "x$as_val" = x""yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15561 _ACEOF
15562
15563 else
15564
15565 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
15566
15567 fi
15568 done
15569
15570
15571 if test $ac_cv_func_strncasecmp = no; then
15572
15573 :
15574
15575 fi
15576 { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
15577 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
15578 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
15579 $as_echo_n "(cached) " >&6
15580 else
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 int
15589 main ()
15590 {
15591 #ifndef strncasecmp
15592 (void) strncasecmp;
15593 #endif
15594
15595 ;
15596 return 0;
15597 }
15598 _ACEOF
15599 rm -f conftest.$ac_objext
15600 if { (ac_try="$ac_compile"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604 esac
15605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15606 $as_echo "$ac_try_echo") >&5
15607 (eval "$ac_compile") 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest.$ac_objext; then
15617 ac_cv_have_decl_strncasecmp=yes
15618 else
15619 $as_echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ac_cv_have_decl_strncasecmp=no
15623 fi
15624
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 fi
15627 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
15628 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
15629 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
15630
15631 cat >>confdefs.h <<_ACEOF
15632 #define HAVE_DECL_STRNCASECMP 1
15633 _ACEOF
15634
15635
15636 else
15637 cat >>confdefs.h <<_ACEOF
15638 #define HAVE_DECL_STRNCASECMP 0
15639 _ACEOF
15640
15641
15642 fi
15643
15644
15645 if test $ac_cv_have_decl_strncasecmp = no; then
15646 HAVE_DECL_STRNCASECMP=0
15647 fi
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663 for ac_func in strchrnul
15664 do
15665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15666 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15667 $as_echo_n "checking for $ac_func... " >&6; }
15668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15669 $as_echo_n "(cached) " >&6
15670 else
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15679 #define $ac_func innocuous_$ac_func
15680
15681 /* System header to define __stub macros and hopefully few prototypes,
15682 which can conflict with char $ac_func (); below.
15683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15684 <limits.h> exists even on freestanding compilers. */
15685
15686 #ifdef __STDC__
15687 # include <limits.h>
15688 #else
15689 # include <assert.h>
15690 #endif
15691
15692 #undef $ac_func
15693
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15697 #ifdef __cplusplus
15698 extern "C"
15699 #endif
15700 char $ac_func ();
15701 /* The GNU C library defines this for functions which it implements
15702 to always fail with ENOSYS. Some functions are actually named
15703 something starting with __ and the normal name is an alias. */
15704 #if defined __stub_$ac_func || defined __stub___$ac_func
15705 choke me
15706 #endif
15707
15708 int
15709 main ()
15710 {
15711 return $ac_func ();
15712 ;
15713 return 0;
15714 }
15715 _ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721 esac
15722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724 (eval "$ac_link") 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest$ac_exeext && {
15734 test "$cross_compiling" = yes ||
15735 $as_test_x conftest$ac_exeext
15736 }; then
15737 eval "$as_ac_var=yes"
15738 else
15739 $as_echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 eval "$as_ac_var=no"
15743 fi
15744
15745 rm -rf conftest.dSYM
15746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15747 conftest$ac_exeext conftest.$ac_ext
15748 fi
15749 ac_res=`eval 'as_val=${'$as_ac_var'}
15750 $as_echo "$as_val"'`
15751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15752 $as_echo "$ac_res" >&6; }
15753 as_val=`eval 'as_val=${'$as_ac_var'}
15754 $as_echo "$as_val"'`
15755 if test "x$as_val" = x""yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15758 _ACEOF
15759
15760 else
15761
15762 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
15763
15764 fi
15765 done
15766
15767
15768 if test $ac_cv_func_strchrnul = no; then
15769 HAVE_STRCHRNUL=0
15770 :
15771 fi
15772
15773
15774
15775 GNULIB_STRCHRNUL=1
15776
15777
15778
15779 if test $REPLACE_STRERROR = 1; then
15780
15781
15782
15783
15784
15785
15786
15787
15788 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
15789
15790
15791 cat >>confdefs.h <<_ACEOF
15792 #define REPLACE_STRERROR $REPLACE_STRERROR
15793 _ACEOF
15794
15795 fi
15796
15797
15798
15799 GNULIB_STRERROR=1
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812 :
15813
15814
15815
15816
15817
15818 if test $ac_cv_have_decl_strndup = no; then
15819 HAVE_DECL_STRNDUP=0
15820 fi
15821
15822 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
15823 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
15824 $as_echo_n "checking for working strndup... " >&6; }
15825 if test "${gl_cv_func_strndup+set}" = set; then
15826 $as_echo_n "(cached) " >&6
15827 else
15828 if test "$cross_compiling" = yes; then
15829 { $as_echo "$as_me:$LINENO: checking for strndup" >&5
15830 $as_echo_n "checking for strndup... " >&6; }
15831 if test "${ac_cv_func_strndup+set}" = set; then
15832 $as_echo_n "(cached) " >&6
15833 else
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
15841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15842 #define strndup innocuous_strndup
15843
15844 /* System header to define __stub macros and hopefully few prototypes,
15845 which can conflict with char strndup (); below.
15846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15847 <limits.h> exists even on freestanding compilers. */
15848
15849 #ifdef __STDC__
15850 # include <limits.h>
15851 #else
15852 # include <assert.h>
15853 #endif
15854
15855 #undef strndup
15856
15857 /* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
15860 #ifdef __cplusplus
15861 extern "C"
15862 #endif
15863 char strndup ();
15864 /* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867 #if defined __stub_strndup || defined __stub___strndup
15868 choke me
15869 #endif
15870
15871 int
15872 main ()
15873 {
15874 return strndup ();
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (ac_try="$ac_link"
15881 case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884 esac
15885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15886 $as_echo "$ac_try_echo") >&5
15887 (eval "$ac_link") 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && {
15894 test -z "$ac_c_werror_flag" ||
15895 test ! -s conftest.err
15896 } && test -s conftest$ac_exeext && {
15897 test "$cross_compiling" = yes ||
15898 $as_test_x conftest$ac_exeext
15899 }; then
15900 ac_cv_func_strndup=yes
15901 else
15902 $as_echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_cv_func_strndup=no
15906 fi
15907
15908 rm -rf conftest.dSYM
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 fi
15912 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
15913 $as_echo "$ac_cv_func_strndup" >&6; }
15914 if test "x$ac_cv_func_strndup" = x""yes; then
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921
15922 #ifdef _AIX
15923 too risky
15924 #endif
15925
15926 _ACEOF
15927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15928 $EGREP "too risky" >/dev/null 2>&1; then
15929 gl_cv_func_strndup=no
15930 else
15931 gl_cv_func_strndup=yes
15932 fi
15933 rm -f conftest*
15934
15935 else
15936 gl_cv_func_strndup=no
15937 fi
15938
15939 else
15940 cat >conftest.$ac_ext <<_ACEOF
15941
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <string.h>
15948 #include <stdlib.h>
15949 int
15950 main ()
15951 {
15952
15953 #ifndef HAVE_DECL_STRNDUP
15954 extern char *strndup (const char *, size_t);
15955 #endif
15956 char *s;
15957 s = strndup ("some longer string", 15);
15958 free (s);
15959 s = strndup ("shorter string", 13);
15960 return s[13] != '\0';
15961 ;
15962 return 0;
15963 }
15964 _ACEOF
15965 rm -f conftest$ac_exeext
15966 if { (ac_try="$ac_link"
15967 case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970 esac
15971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15972 $as_echo "$ac_try_echo") >&5
15973 (eval "$ac_link") 2>&5
15974 ac_status=$?
15975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15977 { (case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980 esac
15981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15982 $as_echo "$ac_try_echo") >&5
15983 (eval "$ac_try") 2>&5
15984 ac_status=$?
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 gl_cv_func_strndup=yes
15988 else
15989 $as_echo "$as_me: program exited with status $ac_status" >&5
15990 $as_echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15992
15993 ( exit $ac_status )
15994 gl_cv_func_strndup=no
15995 fi
15996 rm -rf conftest.dSYM
15997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15998 fi
15999
16000
16001 fi
16002 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
16003 $as_echo "$gl_cv_func_strndup" >&6; }
16004 if test $gl_cv_func_strndup = yes; then
16005
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_STRNDUP 1
16008 _ACEOF
16009
16010 else
16011 HAVE_STRNDUP=0
16012
16013
16014
16015
16016
16017
16018
16019
16020 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
16021
16022 :
16023 fi
16024
16025
16026
16027 GNULIB_STRNDUP=1
16028
16029
16030
16031
16032
16033
16034 :
16035
16036
16037
16038
16039
16040 if test $ac_cv_have_decl_strnlen = no; then
16041 HAVE_DECL_STRNLEN=0
16042 fi
16043
16044 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
16045 $as_echo_n "checking for working strnlen... " >&6; }
16046 if test "${ac_cv_func_strnlen_working+set}" = set; then
16047 $as_echo_n "(cached) " >&6
16048 else
16049 if test "$cross_compiling" = yes; then
16050 ac_cv_func_strnlen_working=no
16051 else
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 $ac_includes_default
16059 int
16060 main ()
16061 {
16062
16063 #define S "foobar"
16064 #define S_LEN (sizeof S - 1)
16065
16066 /* At least one implementation is buggy: that of AIX 4.3 would
16067 give strnlen (S, 1) == 3. */
16068
16069 int i;
16070 for (i = 0; i < S_LEN + 1; ++i)
16071 {
16072 int expected = i <= S_LEN ? i : S_LEN;
16073 if (strnlen (S, i) != expected)
16074 return 1;
16075 }
16076 return 0;
16077
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087 esac
16088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16089 $as_echo "$ac_try_echo") >&5
16090 (eval "$ac_link") 2>&5
16091 ac_status=$?
16092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097 esac
16098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_try") 2>&5
16101 ac_status=$?
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_cv_func_strnlen_working=yes
16105 else
16106 $as_echo "$as_me: program exited with status $ac_status" >&5
16107 $as_echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 ( exit $ac_status )
16111 ac_cv_func_strnlen_working=no
16112 fi
16113 rm -rf conftest.dSYM
16114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16115 fi
16116
16117
16118 fi
16119 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
16120 $as_echo "$ac_cv_func_strnlen_working" >&6; }
16121 test $ac_cv_func_strnlen_working = no &&
16122
16123
16124
16125
16126
16127
16128
16129 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
16130
16131
16132 if test $ac_cv_func_strnlen_working = no; then
16133 # This is necessary because automake-1.6.1 doesn't understand
16134 # that the above use of AC_FUNC_STRNLEN means we may have to use
16135 # lib/strnlen.c.
16136 #AC_LIBOBJ(strnlen)
16137
16138 cat >>confdefs.h <<\_ACEOF
16139 #define strnlen rpl_strnlen
16140 _ACEOF
16141
16142 :
16143 fi
16144
16145
16146
16147 GNULIB_STRNLEN=1
16148
16149
16150
16151 :
16152
16153
16154
16155
16156
16157 if test $ac_cv_header_sysexits_h = yes; then
16158 HAVE_SYSEXITS_H=1
16159
16160
16161
16162
16163 :
16164
16165
16166
16167
16168
16169
16170
16171 if test $gl_cv_have_include_next = yes; then
16172 gl_cv_next_sysexits_h='<'sysexits.h'>'
16173 else
16174 { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
16175 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
16176 if test "${gl_cv_next_sysexits_h+set}" = set; then
16177 $as_echo_n "(cached) " >&6
16178 else
16179
16180 if test $ac_cv_header_sysexits_h = yes; then
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h. */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <sysexits.h>
16188
16189 _ACEOF
16190 case "$host_os" in
16191 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16192 *) gl_absname_cpp="$ac_cpp" ;;
16193 esac
16194 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16195 sed -n '\#/sysexits.h#{
16196 s#.*"\(.*/sysexits.h\)".*#\1#
16197 s#^/[^/]#//&#
16198 p
16199 q
16200 }'`'"'
16201 else
16202 gl_cv_next_sysexits_h='<'sysexits.h'>'
16203 fi
16204
16205 fi
16206 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
16207 $as_echo "$gl_cv_next_sysexits_h" >&6; }
16208 fi
16209 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
16210
16211
16212
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h. */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <sysexits.h>
16220 int
16221 main ()
16222 {
16223 switch (0)
16224 {
16225 case EX_OK:
16226 case EX_USAGE:
16227 case EX_DATAERR:
16228 case EX_NOINPUT:
16229 case EX_NOUSER:
16230 case EX_NOHOST:
16231 case EX_UNAVAILABLE:
16232 case EX_SOFTWARE:
16233 case EX_OSERR:
16234 case EX_OSFILE:
16235 case EX_CANTCREAT:
16236 case EX_IOERR:
16237 case EX_TEMPFAIL:
16238 case EX_PROTOCOL:
16239 case EX_NOPERM:
16240 case EX_CONFIG:
16241 break;
16242 }
16243
16244 ;
16245 return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.$ac_objext; then
16266 SYSEXITS_H=
16267 else
16268 $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271 SYSEXITS_H=sysexits.h
16272 fi
16273
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 else
16276 HAVE_SYSEXITS_H=0
16277 SYSEXITS_H=sysexits.h
16278 fi
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289 :
16290
16291
16292
16293
16294
16295
16296
16297 if test $gl_cv_have_include_next = yes; then
16298 gl_cv_next_unistd_h='<'unistd.h'>'
16299 else
16300 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
16301 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16302 if test "${gl_cv_next_unistd_h+set}" = set; then
16303 $as_echo_n "(cached) " >&6
16304 else
16305
16306 if test $ac_cv_header_unistd_h = yes; then
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <unistd.h>
16314
16315 _ACEOF
16316 case "$host_os" in
16317 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16318 *) gl_absname_cpp="$ac_cpp" ;;
16319 esac
16320 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16321 sed -n '\#/unistd.h#{
16322 s#.*"\(.*/unistd.h\)".*#\1#
16323 s#^/[^/]#//&#
16324 p
16325 q
16326 }'`'"'
16327 else
16328 gl_cv_next_unistd_h='<'unistd.h'>'
16329 fi
16330
16331 fi
16332 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
16333 $as_echo "$gl_cv_next_unistd_h" >&6; }
16334 fi
16335 NEXT_UNISTD_H=$gl_cv_next_unistd_h
16336
16337
16338
16339
16340
16341 :
16342
16343
16344
16345
16346
16347 if test $ac_cv_header_unistd_h = yes; then
16348 HAVE_UNISTD_H=1
16349 else
16350 HAVE_UNISTD_H=0
16351 fi
16352
16353
16354
16355
16356 :
16357
16358
16359
16360
16361
16362 if test $ac_cv_func_vasnprintf = no; then
16363
16364
16365 :
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
16410
16411 if test $ac_cv_func_vasnprintf = yes; then
16412
16413 cat >>confdefs.h <<\_ACEOF
16414 #define REPLACE_VASNPRINTF 1
16415 _ACEOF
16416
16417 fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
16429 $as_echo_n "checking for ptrdiff_t... " >&6; }
16430 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
16431 $as_echo_n "(cached) " >&6
16432 else
16433 ac_cv_type_ptrdiff_t=no
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h. */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 $ac_includes_default
16441 int
16442 main ()
16443 {
16444 if (sizeof (ptrdiff_t))
16445 return 0;
16446 ;
16447 return 0;
16448 }
16449 _ACEOF
16450 rm -f conftest.$ac_objext
16451 if { (ac_try="$ac_compile"
16452 case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16455 esac
16456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16457 $as_echo "$ac_try_echo") >&5
16458 (eval "$ac_compile") 2>conftest.er1
16459 ac_status=$?
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
16463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } && {
16465 test -z "$ac_c_werror_flag" ||
16466 test ! -s conftest.err
16467 } && test -s conftest.$ac_objext; then
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16475 int
16476 main ()
16477 {
16478 if (sizeof ((ptrdiff_t)))
16479 return 0;
16480 ;
16481 return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489 esac
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } && {
16499 test -z "$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16501 } && test -s conftest.$ac_objext; then
16502 :
16503 else
16504 $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 ac_cv_type_ptrdiff_t=yes
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 else
16512 $as_echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16514
16515
16516 fi
16517
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519 fi
16520 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
16521 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
16522 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
16523 :
16524 else
16525
16526 cat >>confdefs.h <<\_ACEOF
16527 #define ptrdiff_t long
16528 _ACEOF
16529
16530
16531 fi
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542 for ac_func in snprintf wcslen
16543 do
16544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16546 $as_echo_n "checking for $ac_func... " >&6; }
16547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16548 $as_echo_n "(cached) " >&6
16549 else
16550 cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16558 #define $ac_func innocuous_$ac_func
16559
16560 /* System header to define __stub macros and hopefully few prototypes,
16561 which can conflict with char $ac_func (); below.
16562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563 <limits.h> exists even on freestanding compilers. */
16564
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570
16571 #undef $ac_func
16572
16573 /* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16576 #ifdef __cplusplus
16577 extern "C"
16578 #endif
16579 char $ac_func ();
16580 /* The GNU C library defines this for functions which it implements
16581 to always fail with ENOSYS. Some functions are actually named
16582 something starting with __ and the normal name is an alias. */
16583 #if defined __stub_$ac_func || defined __stub___$ac_func
16584 choke me
16585 #endif
16586
16587 int
16588 main ()
16589 {
16590 return $ac_func ();
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (ac_try="$ac_link"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600 esac
16601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16602 $as_echo "$ac_try_echo") >&5
16603 (eval "$ac_link") 2>conftest.er1
16604 ac_status=$?
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
16608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && {
16610 test -z "$ac_c_werror_flag" ||
16611 test ! -s conftest.err
16612 } && test -s conftest$ac_exeext && {
16613 test "$cross_compiling" = yes ||
16614 $as_test_x conftest$ac_exeext
16615 }; then
16616 eval "$as_ac_var=yes"
16617 else
16618 $as_echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 eval "$as_ac_var=no"
16622 fi
16623
16624 rm -rf conftest.dSYM
16625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16626 conftest$ac_exeext conftest.$ac_ext
16627 fi
16628 ac_res=`eval 'as_val=${'$as_ac_var'}
16629 $as_echo "$as_val"'`
16630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16631 $as_echo "$ac_res" >&6; }
16632 as_val=`eval 'as_val=${'$as_ac_var'}
16633 $as_echo "$as_val"'`
16634 if test "x$as_val" = x""yes; then
16635 cat >>confdefs.h <<_ACEOF
16636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16637 _ACEOF
16638
16639 fi
16640 done
16641
16642 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
16643 $as_echo_n "checking whether _snprintf is declared... " >&6; }
16644 if test "${ac_cv_have_decl__snprintf+set}" = set; then
16645 $as_echo_n "(cached) " >&6
16646 else
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h. */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 #include <stdio.h>
16654
16655 int
16656 main ()
16657 {
16658 #ifndef _snprintf
16659 (void) _snprintf;
16660 #endif
16661
16662 ;
16663 return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext
16667 if { (ac_try="$ac_compile"
16668 case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671 esac
16672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16673 $as_echo "$ac_try_echo") >&5
16674 (eval "$ac_compile") 2>conftest.er1
16675 ac_status=$?
16676 grep -v '^ *+' conftest.er1 >conftest.err
16677 rm -f conftest.er1
16678 cat conftest.err >&5
16679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && {
16681 test -z "$ac_c_werror_flag" ||
16682 test ! -s conftest.err
16683 } && test -s conftest.$ac_objext; then
16684 ac_cv_have_decl__snprintf=yes
16685 else
16686 $as_echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ac_cv_have_decl__snprintf=no
16690 fi
16691
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
16695 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
16696 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
16697
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_DECL__SNPRINTF 1
16700 _ACEOF
16701
16702
16703 else
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_DECL__SNPRINTF 0
16706 _ACEOF
16707
16708
16709 fi
16710
16711
16712
16713
16714
16715
16716 fi
16717
16718
16719
16720 gl_cv_func_vsnprintf_usable=no
16721
16722 for ac_func in vsnprintf
16723 do
16724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16726 $as_echo_n "checking for $ac_func... " >&6; }
16727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16728 $as_echo_n "(cached) " >&6
16729 else
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h. */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16738 #define $ac_func innocuous_$ac_func
16739
16740 /* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char $ac_func (); below.
16742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743 <limits.h> exists even on freestanding compilers. */
16744
16745 #ifdef __STDC__
16746 # include <limits.h>
16747 #else
16748 # include <assert.h>
16749 #endif
16750
16751 #undef $ac_func
16752
16753 /* Override any GCC internal prototype to avoid an error.
16754 Use char because int might match the return type of a GCC
16755 builtin and then its argument prototype would still apply. */
16756 #ifdef __cplusplus
16757 extern "C"
16758 #endif
16759 char $ac_func ();
16760 /* The GNU C library defines this for functions which it implements
16761 to always fail with ENOSYS. Some functions are actually named
16762 something starting with __ and the normal name is an alias. */
16763 #if defined __stub_$ac_func || defined __stub___$ac_func
16764 choke me
16765 #endif
16766
16767 int
16768 main ()
16769 {
16770 return $ac_func ();
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext conftest$ac_exeext
16776 if { (ac_try="$ac_link"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780 esac
16781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16782 $as_echo "$ac_try_echo") >&5
16783 (eval "$ac_link") 2>conftest.er1
16784 ac_status=$?
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
16788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } && {
16790 test -z "$ac_c_werror_flag" ||
16791 test ! -s conftest.err
16792 } && test -s conftest$ac_exeext && {
16793 test "$cross_compiling" = yes ||
16794 $as_test_x conftest$ac_exeext
16795 }; then
16796 eval "$as_ac_var=yes"
16797 else
16798 $as_echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16800
16801 eval "$as_ac_var=no"
16802 fi
16803
16804 rm -rf conftest.dSYM
16805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16806 conftest$ac_exeext conftest.$ac_ext
16807 fi
16808 ac_res=`eval 'as_val=${'$as_ac_var'}
16809 $as_echo "$as_val"'`
16810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16811 $as_echo "$ac_res" >&6; }
16812 as_val=`eval 'as_val=${'$as_ac_var'}
16813 $as_echo "$as_val"'`
16814 if test "x$as_val" = x""yes; then
16815 cat >>confdefs.h <<_ACEOF
16816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16817 _ACEOF
16818
16819 fi
16820 done
16821
16822 if test $ac_cv_func_vsnprintf = yes; then
16823
16824
16825 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
16826 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
16827 if test "${gl_cv_func_snprintf_size1+set}" = set; then
16828 $as_echo_n "(cached) " >&6
16829 else
16830
16831 if test "$cross_compiling" = yes; then
16832 gl_cv_func_snprintf_size1="guessing yes"
16833 else
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h. */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840
16841 #include <stdio.h>
16842 int main()
16843 {
16844 static char buf[8] = "DEADBEEF";
16845 snprintf (buf, 1, "%d", 12345);
16846 return buf[1] != 'E';
16847 }
16848 _ACEOF
16849 rm -f conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854 esac
16855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16856 $as_echo "$ac_try_echo") >&5
16857 (eval "$ac_link") 2>&5
16858 ac_status=$?
16859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864 esac
16865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866 $as_echo "$ac_try_echo") >&5
16867 (eval "$ac_try") 2>&5
16868 ac_status=$?
16869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 gl_cv_func_snprintf_size1=yes
16872 else
16873 $as_echo "$as_me: program exited with status $ac_status" >&5
16874 $as_echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 ( exit $ac_status )
16878 gl_cv_func_snprintf_size1=no
16879 fi
16880 rm -rf conftest.dSYM
16881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16882 fi
16883
16884
16885
16886 fi
16887 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
16888 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
16889
16890 case "$gl_cv_func_snprintf_size1" in
16891 *yes)
16892 gl_cv_func_vsnprintf_usable=yes
16893 ;;
16894 esac
16895 fi
16896 if test $gl_cv_func_vsnprintf_usable = no; then
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
16908
16909 if test $ac_cv_func_vsnprintf = yes; then
16910 REPLACE_VSNPRINTF=1
16911 fi
16912 :
16913
16914 fi
16915
16916 :
16917
16918
16919
16920
16921
16922 if test $ac_cv_have_decl_vsnprintf = no; then
16923 HAVE_DECL_VSNPRINTF=0
16924 fi
16925
16926
16927
16928 GNULIB_VSNPRINTF=1
16929
16930
16931
16932 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
16933 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
16934 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
16935 $as_echo_n "(cached) " >&6
16936 else
16937 cat >conftest.$ac_ext <<_ACEOF
16938 #include <wchar.h>
16939 wchar_t w;
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946 esac
16947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16948 $as_echo "$ac_try_echo") >&5
16949 (eval "$ac_compile") 2>conftest.er1
16950 ac_status=$?
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
16954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest.$ac_objext; then
16959 gl_cv_header_wchar_h_standalone=yes
16960 else
16961 $as_echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 gl_cv_header_wchar_h_standalone=no
16965 fi
16966
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968 fi
16969 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
16970 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
16971
16972
16973 if test $gt_cv_c_wint_t = yes; then
16974 HAVE_WINT_T=1
16975 else
16976 HAVE_WINT_T=0
16977 fi
16978
16979
16980 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
16981 WCHAR_H=wchar.h
16982 fi
16983
16984
16985 :
16986
16987
16988
16989
16990
16991 if test $ac_cv_header_wchar_h = yes; then
16992 HAVE_WCHAR_H=1
16993 else
16994 HAVE_WCHAR_H=0
16995 fi
16996
16997
16998
16999
17000
17001 :
17002
17003
17004
17005
17006
17007
17008
17009 if test $gl_cv_have_include_next = yes; then
17010 gl_cv_next_wchar_h='<'wchar.h'>'
17011 else
17012 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
17013 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17014 if test "${gl_cv_next_wchar_h+set}" = set; then
17015 $as_echo_n "(cached) " >&6
17016 else
17017
17018 if test $ac_cv_header_wchar_h = yes; then
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h. */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <wchar.h>
17026
17027 _ACEOF
17028 case "$host_os" in
17029 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17030 *) gl_absname_cpp="$ac_cpp" ;;
17031 esac
17032 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17033 sed -n '\#/wchar.h#{
17034 s#.*"\(.*/wchar.h\)".*#\1#
17035 s#^/[^/]#//&#
17036 p
17037 q
17038 }'`'"'
17039 else
17040 gl_cv_next_wchar_h='<'wchar.h'>'
17041 fi
17042
17043 fi
17044 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
17045 $as_echo "$gl_cv_next_wchar_h" >&6; }
17046 fi
17047 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
17062
17063
17064
17065
17066 :
17067
17068
17069 :
17070
17071
17072
17073
17074
17075
17076 for ac_header in stdint.h
17077 do
17078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 $as_echo_n "checking for $ac_header... " >&6; }
17082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17083 $as_echo_n "(cached) " >&6
17084 fi
17085 ac_res=`eval 'as_val=${'$as_ac_Header'}
17086 $as_echo "$as_val"'`
17087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17088 $as_echo "$ac_res" >&6; }
17089 else
17090 # Is the header compilable?
17091 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17092 $as_echo_n "checking $ac_header usability... " >&6; }
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 $ac_includes_default
17100 #include <$ac_header>
17101 _ACEOF
17102 rm -f conftest.$ac_objext
17103 if { (ac_try="$ac_compile"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107 esac
17108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17109 $as_echo "$ac_try_echo") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest.$ac_objext; then
17120 ac_header_compiler=yes
17121 else
17122 $as_echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 ac_header_compiler=no
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 $as_echo "$ac_header_compiler" >&6; }
17131
17132 # Is the header present?
17133 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17134 $as_echo_n "checking $ac_header presence... " >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <$ac_header>
17142 _ACEOF
17143 if { (ac_try="$ac_cpp conftest.$ac_ext"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17149 $as_echo "$ac_try_echo") >&5
17150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } >/dev/null && {
17157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17158 test ! -s conftest.err
17159 }; then
17160 ac_header_preproc=yes
17161 else
17162 $as_echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 ac_header_preproc=no
17166 fi
17167
17168 rm -f conftest.err conftest.$ac_ext
17169 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 $as_echo "$ac_header_preproc" >&6; }
17171
17172 # So? What about this header?
17173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17174 yes:no: )
17175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179 ac_header_preproc=yes
17180 ;;
17181 no:yes:* )
17182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17185 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17189 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17194 ( cat <<\_ASBOX
17195 ## -------------------------- ##
17196 ## Report this to lost@l-w.ca ##
17197 ## -------------------------- ##
17198 _ASBOX
17199 ) | sed "s/^/$as_me: WARNING: /" >&2
17200 ;;
17201 esac
17202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17203 $as_echo_n "checking for $ac_header... " >&6; }
17204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17205 $as_echo_n "(cached) " >&6
17206 else
17207 eval "$as_ac_Header=\$ac_header_preproc"
17208 fi
17209 ac_res=`eval 'as_val=${'$as_ac_Header'}
17210 $as_echo "$as_val"'`
17211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17212 $as_echo "$ac_res" >&6; }
17213
17214 fi
17215 as_val=`eval 'as_val=${'$as_ac_Header'}
17216 $as_echo "$as_val"'`
17217 if test "x$as_val" = x""yes; then
17218 cat >>confdefs.h <<_ACEOF
17219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17220 _ACEOF
17221
17222 fi
17223
17224 done
17225
17226
17227
17228
17229 :
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241 gltests_libdeps=
17242 gltests_ltlibdeps=
17243
17244
17245
17246
17247
17248
17249
17250
17251 gl_source_base='tests'
17252
17253
17254
17255
17256
17257
17258
17259 LIBGNU_LIBDEPS="$gl_libdeps"
17260
17261 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17262
17263
17264 ac_config_headers="$ac_config_headers lwasm/config.h"
17265
17266 ac_config_files="$ac_config_files Makefile lwasm/Makefile doc/Makefile lwlink/Makefile lwar/Makefile lib/Makefile"
17267
17268 cat >confcache <<\_ACEOF
17269 # This file is a shell script that caches the results of configure
17270 # tests run on this system so they can be shared between configure
17271 # scripts and configure runs, see configure's option --config-cache.
17272 # It is not useful on other systems. If it contains results you don't
17273 # want to keep, you may remove or edit it.
17274 #
17275 # config.status only pays attention to the cache file if you give it
17276 # the --recheck option to rerun configure.
17277 #
17278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17280 # following values.
17281
17282 _ACEOF
17283
17284 # The following way of writing the cache mishandles newlines in values,
17285 # but we know of no workaround that is simple, portable, and efficient.
17286 # So, we kill variables containing newlines.
17287 # Ultrix sh set writes to stderr and can't be redirected directly,
17288 # and sets the high bit in the cache file unless we assign to the vars.
17289 (
17290 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17291 eval ac_val=\$$ac_var
17292 case $ac_val in #(
17293 *${as_nl}*)
17294 case $ac_var in #(
17295 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17297 esac
17298 case $ac_var in #(
17299 _ | IFS | as_nl) ;; #(
17300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17301 *) $as_unset $ac_var ;;
17302 esac ;;
17303 esac
17304 done
17305
17306 (set) 2>&1 |
17307 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17308 *${as_nl}ac_space=\ *)
17309 # `set' does not quote correctly, so add quotes (double-quote
17310 # substitution turns \\\\ into \\, and sed turns \\ into \).
17311 sed -n \
17312 "s/'/'\\\\''/g;
17313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17314 ;; #(
17315 *)
17316 # `set' quotes correctly as required by POSIX, so do not add quotes.
17317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17318 ;;
17319 esac |
17320 sort
17321 ) |
17322 sed '
17323 /^ac_cv_env_/b end
17324 t clear
17325 :clear
17326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17327 t end
17328 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17329 :end' >>confcache
17330 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17331 if test -w "$cache_file"; then
17332 test "x$cache_file" != "x/dev/null" &&
17333 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17334 $as_echo "$as_me: updating cache $cache_file" >&6;}
17335 cat confcache >$cache_file
17336 else
17337 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17338 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17339 fi
17340 fi
17341 rm -f confcache
17342
17343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17344 # Let make expand exec_prefix.
17345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17346
17347 DEFS=-DHAVE_CONFIG_H
17348
17349 ac_libobjs=
17350 ac_ltlibobjs=
17351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17352 # 1. Remove the extension, and $U if already installed.
17353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17356 # will be set to the directory where LIBOBJS objects are built.
17357 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17358 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17359 done
17360 LIBOBJS=$ac_libobjs
17361
17362 LTLIBOBJS=$ac_ltlibobjs
17363
17364
17365 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17366 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17367 Usually this means the macro was only invoked conditionally." >&5
17368 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17369 Usually this means the macro was only invoked conditionally." >&2;}
17370 { (exit 1); exit 1; }; }
17371 fi
17372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17373 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17374 Usually this means the macro was only invoked conditionally." >&5
17375 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17376 Usually this means the macro was only invoked conditionally." >&2;}
17377 { (exit 1); exit 1; }; }
17378 fi
17379 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17380 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
17381 Usually this means the macro was only invoked conditionally." >&5
17382 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
17383 Usually this means the macro was only invoked conditionally." >&2;}
17384 { (exit 1); exit 1; }; }
17385 fi
17386
17387 gl_libobjs=
17388 gl_ltlibobjs=
17389 if test -n "$gl_LIBOBJS"; then
17390 # Remove the extension.
17391 sed_drop_objext='s/\.o$//;s/\.obj$//'
17392 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
17393 gl_libobjs="$gl_libobjs $i.$ac_objext"
17394 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17395 done
17396 fi
17397 gl_LIBOBJS=$gl_libobjs
17398
17399 gl_LTLIBOBJS=$gl_ltlibobjs
17400
17401
17402
17403 gltests_libobjs=
17404 gltests_ltlibobjs=
17405 if test -n "$gltests_LIBOBJS"; then
17406 # Remove the extension.
17407 sed_drop_objext='s/\.o$//;s/\.obj$//'
17408 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
17409 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17410 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17411 done
17412 fi
17413 gltests_LIBOBJS=$gltests_libobjs
17414
17415 gltests_LTLIBOBJS=$gltests_ltlibobjs
17416
17417
17418
17419 : ${CONFIG_STATUS=./config.status}
17420 ac_write_fail=0
17421 ac_clean_files_save=$ac_clean_files
17422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17423 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17425 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17426 #! $SHELL
17427 # Generated by $as_me.
17428 # Run this file to recreate the current configuration.
17429 # Compiler output produced by configure, useful for debugging
17430 # configure, is in config.log if it exists.
17431
17432 debug=false
17433 ac_cs_recheck=false
17434 ac_cs_silent=false
17435 SHELL=\${CONFIG_SHELL-$SHELL}
17436 _ACEOF
17437
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17439 ## --------------------- ##
17440 ## M4sh Initialization. ##
17441 ## --------------------- ##
17442
17443 # Be more Bourne compatible
17444 DUALCASE=1; export DUALCASE # for MKS sh
17445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17446 emulate sh
17447 NULLCMD=:
17448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17449 # is contrary to our usage. Disable this feature.
17450 alias -g '${1+"$@"}'='"$@"'
17451 setopt NO_GLOB_SUBST
17452 else
17453 case `(set -o) 2>/dev/null` in
17454 *posix*) set -o posix ;;
17455 esac
17456
17457 fi
17458
17459
17460
17461
17462 # PATH needs CR
17463 # Avoid depending upon Character Ranges.
17464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17467 as_cr_digits='0123456789'
17468 as_cr_alnum=$as_cr_Letters$as_cr_digits
17469
17470 as_nl='
17471 '
17472 export as_nl
17473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17474 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17477 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17478 as_echo='printf %s\n'
17479 as_echo_n='printf %s'
17480 else
17481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17482 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17483 as_echo_n='/usr/ucb/echo -n'
17484 else
17485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17486 as_echo_n_body='eval
17487 arg=$1;
17488 case $arg in
17489 *"$as_nl"*)
17490 expr "X$arg" : "X\\(.*\\)$as_nl";
17491 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17492 esac;
17493 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17494 '
17495 export as_echo_n_body
17496 as_echo_n='sh -c $as_echo_n_body as_echo'
17497 fi
17498 export as_echo_body
17499 as_echo='sh -c $as_echo_body as_echo'
17500 fi
17501
17502 # The user is always right.
17503 if test "${PATH_SEPARATOR+set}" != set; then
17504 PATH_SEPARATOR=:
17505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17506 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17507 PATH_SEPARATOR=';'
17508 }
17509 fi
17510
17511 # Support unset when possible.
17512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17513 as_unset=unset
17514 else
17515 as_unset=false
17516 fi
17517
17518
17519 # IFS
17520 # We need space, tab and new line, in precisely that order. Quoting is
17521 # there to prevent editors from complaining about space-tab.
17522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17523 # splitting by setting IFS to empty value.)
17524 IFS=" "" $as_nl"
17525
17526 # Find who we are. Look in the path if we contain no directory separator.
17527 case $0 in
17528 *[\\/]* ) as_myself=$0 ;;
17529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $PATH
17531 do
17532 IFS=$as_save_IFS
17533 test -z "$as_dir" && as_dir=.
17534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17535 done
17536 IFS=$as_save_IFS
17537
17538 ;;
17539 esac
17540 # We did not find ourselves, most probably we were run as `sh COMMAND'
17541 # in which case we are not to be found in the path.
17542 if test "x$as_myself" = x; then
17543 as_myself=$0
17544 fi
17545 if test ! -f "$as_myself"; then
17546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17547 { (exit 1); exit 1; }
17548 fi
17549
17550 # Work around bugs in pre-3.0 UWIN ksh.
17551 for as_var in ENV MAIL MAILPATH
17552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17553 done
17554 PS1='$ '
17555 PS2='> '
17556 PS4='+ '
17557
17558 # NLS nuisances.
17559 LC_ALL=C
17560 export LC_ALL
17561 LANGUAGE=C
17562 export LANGUAGE
17563
17564 # Required to use basename.
17565 if expr a : '\(a\)' >/dev/null 2>&1 &&
17566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17567 as_expr=expr
17568 else
17569 as_expr=false
17570 fi
17571
17572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17573 as_basename=basename
17574 else
17575 as_basename=false
17576 fi
17577
17578
17579 # Name of the executable.
17580 as_me=`$as_basename -- "$0" ||
17581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17582 X"$0" : 'X\(//\)$' \| \
17583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17584 $as_echo X/"$0" |
17585 sed '/^.*\/\([^/][^/]*\)\/*$/{
17586 s//\1/
17587 q
17588 }
17589 /^X\/\(\/\/\)$/{
17590 s//\1/
17591 q
17592 }
17593 /^X\/\(\/\).*/{
17594 s//\1/
17595 q
17596 }
17597 s/.*/./; q'`
17598
17599 # CDPATH.
17600 $as_unset CDPATH
17601
17602
17603
17604 as_lineno_1=$LINENO
17605 as_lineno_2=$LINENO
17606 test "x$as_lineno_1" != "x$as_lineno_2" &&
17607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17608
17609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17610 # uniformly replaced by the line number. The first 'sed' inserts a
17611 # line-number line after each line using $LINENO; the second 'sed'
17612 # does the real work. The second script uses 'N' to pair each
17613 # line-number line with the line containing $LINENO, and appends
17614 # trailing '-' during substitution so that $LINENO is not a special
17615 # case at line end.
17616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17617 # scripts with optimization help from Paolo Bonzini. Blame Lee
17618 # E. McMahon (1931-1989) for sed's syntax. :-)
17619 sed -n '
17620 p
17621 /[$]LINENO/=
17622 ' <$as_myself |
17623 sed '
17624 s/[$]LINENO.*/&-/
17625 t lineno
17626 b
17627 :lineno
17628 N
17629 :loop
17630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17631 t loop
17632 s/-\n.*//
17633 ' >$as_me.lineno &&
17634 chmod +x "$as_me.lineno" ||
17635 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17636 { (exit 1); exit 1; }; }
17637
17638 # Don't try to exec as it changes $[0], causing all sort of problems
17639 # (the dirname of $[0] is not the place where we might find the
17640 # original and so on. Autoconf is especially sensitive to this).
17641 . "./$as_me.lineno"
17642 # Exit status is that of the last command.
17643 exit
17644 }
17645
17646
17647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17648 as_dirname=dirname
17649 else
17650 as_dirname=false
17651 fi
17652
17653 ECHO_C= ECHO_N= ECHO_T=
17654 case `echo -n x` in
17655 -n*)
17656 case `echo 'x\c'` in
17657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17658 *) ECHO_C='\c';;
17659 esac;;
17660 *)
17661 ECHO_N='-n';;
17662 esac
17663 if expr a : '\(a\)' >/dev/null 2>&1 &&
17664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17665 as_expr=expr
17666 else
17667 as_expr=false
17668 fi
17669
17670 rm -f conf$$ conf$$.exe conf$$.file
17671 if test -d conf$$.dir; then
17672 rm -f conf$$.dir/conf$$.file
17673 else
17674 rm -f conf$$.dir
17675 mkdir conf$$.dir 2>/dev/null
17676 fi
17677 if (echo >conf$$.file) 2>/dev/null; then
17678 if ln -s conf$$.file conf$$ 2>/dev/null; then
17679 as_ln_s='ln -s'
17680 # ... but there are two gotchas:
17681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17683 # In both cases, we have to default to `cp -p'.
17684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17685 as_ln_s='cp -p'
17686 elif ln conf$$.file conf$$ 2>/dev/null; then
17687 as_ln_s=ln
17688 else
17689 as_ln_s='cp -p'
17690 fi
17691 else
17692 as_ln_s='cp -p'
17693 fi
17694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17695 rmdir conf$$.dir 2>/dev/null
17696
17697 if mkdir -p . 2>/dev/null; then
17698 as_mkdir_p=:
17699 else
17700 test -d ./-p && rmdir ./-p
17701 as_mkdir_p=false
17702 fi
17703
17704 if test -x / >/dev/null 2>&1; then
17705 as_test_x='test -x'
17706 else
17707 if ls -dL / >/dev/null 2>&1; then
17708 as_ls_L_option=L
17709 else
17710 as_ls_L_option=
17711 fi
17712 as_test_x='
17713 eval sh -c '\''
17714 if test -d "$1"; then
17715 test -d "$1/.";
17716 else
17717 case $1 in
17718 -*)set "./$1";;
17719 esac;
17720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17721 ???[sx]*):;;*)false;;esac;fi
17722 '\'' sh
17723 '
17724 fi
17725 as_executable_p=$as_test_x
17726
17727 # Sed expression to map a string onto a valid CPP name.
17728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17729
17730 # Sed expression to map a string onto a valid variable name.
17731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17732
17733
17734 exec 6>&1
17735
17736 # Save the log message, to keep $[0] and so on meaningful, and to
17737 # report actual input values of CONFIG_FILES etc. instead of their
17738 # values after options handling.
17739 ac_log="
17740 This file was extended by LWTOOLS $as_me 2.5-pre, which was
17741 generated by GNU Autoconf 2.63. Invocation command line was
17742
17743 CONFIG_FILES = $CONFIG_FILES
17744 CONFIG_HEADERS = $CONFIG_HEADERS
17745 CONFIG_LINKS = $CONFIG_LINKS
17746 CONFIG_COMMANDS = $CONFIG_COMMANDS
17747 $ $0 $@
17748
17749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17750 "
17751
17752 _ACEOF
17753
17754 case $ac_config_files in *"
17755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17756 esac
17757
17758 case $ac_config_headers in *"
17759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17760 esac
17761
17762
17763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17764 # Files that config.status was made for.
17765 config_files="$ac_config_files"
17766 config_headers="$ac_config_headers"
17767 config_commands="$ac_config_commands"
17768
17769 _ACEOF
17770
17771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17772 ac_cs_usage="\
17773 \`$as_me' instantiates files from templates according to the
17774 current configuration.
17775
17776 Usage: $0 [OPTION]... [FILE]...
17777
17778 -h, --help print this help, then exit
17779 -V, --version print version number and configuration settings, then exit
17780 -q, --quiet, --silent
17781 do not print progress messages
17782 -d, --debug don't remove temporary files
17783 --recheck update $as_me by reconfiguring in the same conditions
17784 --file=FILE[:TEMPLATE]
17785 instantiate the configuration file FILE
17786 --header=FILE[:TEMPLATE]
17787 instantiate the configuration header FILE
17788
17789 Configuration files:
17790 $config_files
17791
17792 Configuration headers:
17793 $config_headers
17794
17795 Configuration commands:
17796 $config_commands
17797
17798 Report bugs to <bug-autoconf@gnu.org>."
17799
17800 _ACEOF
17801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17802 ac_cs_version="\\
17803 LWTOOLS config.status 2.5-pre
17804 configured by $0, generated by GNU Autoconf 2.63,
17805 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17806
17807 Copyright (C) 2008 Free Software Foundation, Inc.
17808 This config.status script is free software; the Free Software Foundation
17809 gives unlimited permission to copy, distribute and modify it."
17810
17811 ac_pwd='$ac_pwd'
17812 srcdir='$srcdir'
17813 INSTALL='$INSTALL'
17814 MKDIR_P='$MKDIR_P'
17815 AWK='$AWK'
17816 test -n "\$AWK" || AWK=awk
17817 _ACEOF
17818
17819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17820 # The default lists apply if the user does not specify any file.
17821 ac_need_defaults=:
17822 while test $# != 0
17823 do
17824 case $1 in
17825 --*=*)
17826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17828 ac_shift=:
17829 ;;
17830 *)
17831 ac_option=$1
17832 ac_optarg=$2
17833 ac_shift=shift
17834 ;;
17835 esac
17836
17837 case $ac_option in
17838 # Handling of the options.
17839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17840 ac_cs_recheck=: ;;
17841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17842 $as_echo "$ac_cs_version"; exit ;;
17843 --debug | --debu | --deb | --de | --d | -d )
17844 debug=: ;;
17845 --file | --fil | --fi | --f )
17846 $ac_shift
17847 case $ac_optarg in
17848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17849 esac
17850 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17851 ac_need_defaults=false;;
17852 --header | --heade | --head | --hea )
17853 $ac_shift
17854 case $ac_optarg in
17855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17856 esac
17857 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17858 ac_need_defaults=false;;
17859 --he | --h)
17860 # Conflict between --help and --header
17861 { $as_echo "$as_me: error: ambiguous option: $1
17862 Try \`$0 --help' for more information." >&2
17863 { (exit 1); exit 1; }; };;
17864 --help | --hel | -h )
17865 $as_echo "$ac_cs_usage"; exit ;;
17866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17868 ac_cs_silent=: ;;
17869
17870 # This is an error.
17871 -*) { $as_echo "$as_me: error: unrecognized option: $1
17872 Try \`$0 --help' for more information." >&2
17873 { (exit 1); exit 1; }; } ;;
17874
17875 *) ac_config_targets="$ac_config_targets $1"
17876 ac_need_defaults=false ;;
17877
17878 esac
17879 shift
17880 done
17881
17882 ac_configure_extra_args=
17883
17884 if $ac_cs_silent; then
17885 exec 6>/dev/null
17886 ac_configure_extra_args="$ac_configure_extra_args --silent"
17887 fi
17888
17889 _ACEOF
17890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891 if \$ac_cs_recheck; then
17892 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17893 shift
17894 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17895 CONFIG_SHELL='$SHELL'
17896 export CONFIG_SHELL
17897 exec "\$@"
17898 fi
17899
17900 _ACEOF
17901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17902 exec 5>>config.log
17903 {
17904 echo
17905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17906 ## Running $as_me. ##
17907 _ASBOX
17908 $as_echo "$ac_log"
17909 } >&5
17910
17911 _ACEOF
17912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17913 #
17914 # INIT-COMMANDS
17915 #
17916 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17917
17918 _ACEOF
17919
17920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17921
17922 # Handling of arguments.
17923 for ac_config_target in $ac_config_targets
17924 do
17925 case $ac_config_target in
17926 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17927 "lwasm/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lwasm/config.h" ;;
17928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17929 "lwasm/Makefile") CONFIG_FILES="$CONFIG_FILES lwasm/Makefile" ;;
17930 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17931 "lwlink/Makefile") CONFIG_FILES="$CONFIG_FILES lwlink/Makefile" ;;
17932 "lwar/Makefile") CONFIG_FILES="$CONFIG_FILES lwar/Makefile" ;;
17933 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17934
17935 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17936 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17937 { (exit 1); exit 1; }; };;
17938 esac
17939 done
17940
17941
17942 # If the user did not use the arguments to specify the items to instantiate,
17943 # then the envvar interface is used. Set only those that are not.
17944 # We use the long form for the default assignment because of an extremely
17945 # bizarre bug on SunOS 4.1.3.
17946 if $ac_need_defaults; then
17947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17950 fi
17951
17952 # Have a temporary directory for convenience. Make it in the build tree
17953 # simply because there is no reason against having it here, and in addition,
17954 # creating and moving files from /tmp can sometimes cause problems.
17955 # Hook for its removal unless debugging.
17956 # Note that there is a small window in which the directory will not be cleaned:
17957 # after its creation but before its name has been assigned to `$tmp'.
17958 $debug ||
17959 {
17960 tmp=
17961 trap 'exit_status=$?
17962 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17963 ' 0
17964 trap '{ (exit 1); exit 1; }' 1 2 13 15
17965 }
17966 # Create a (secure) tmp directory for tmp files.
17967
17968 {
17969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17970 test -n "$tmp" && test -d "$tmp"
17971 } ||
17972 {
17973 tmp=./conf$$-$RANDOM
17974 (umask 077 && mkdir "$tmp")
17975 } ||
17976 {
17977 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17978 { (exit 1); exit 1; }
17979 }
17980
17981 # Set up the scripts for CONFIG_FILES section.
17982 # No need to generate them if there are no CONFIG_FILES.
17983 # This happens for instance with `./config.status config.h'.
17984 if test -n "$CONFIG_FILES"; then
17985
17986
17987 ac_cr='
17988 '
17989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17991 ac_cs_awk_cr='\\r'
17992 else
17993 ac_cs_awk_cr=$ac_cr
17994 fi
17995
17996 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17997 _ACEOF
17998
17999
18000 {
18001 echo "cat >conf$$subs.awk <<_ACEOF" &&
18002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18003 echo "_ACEOF"
18004 } >conf$$subs.sh ||
18005 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18006 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18007 { (exit 1); exit 1; }; }
18008 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18009 ac_delim='%!_!# '
18010 for ac_last_try in false false false false false :; do
18011 . ./conf$$subs.sh ||
18012 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18013 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18014 { (exit 1); exit 1; }; }
18015
18016 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18017 if test $ac_delim_n = $ac_delim_num; then
18018 break
18019 elif $ac_last_try; then
18020 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18021 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18022 { (exit 1); exit 1; }; }
18023 else
18024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18025 fi
18026 done
18027 rm -f conf$$subs.sh
18028
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18031 _ACEOF
18032 sed -n '
18033 h
18034 s/^/S["/; s/!.*/"]=/
18035 p
18036 g
18037 s/^[^!]*!//
18038 :repl
18039 t repl
18040 s/'"$ac_delim"'$//
18041 t delim
18042 :nl
18043 h
18044 s/\(.\{148\}\).*/\1/
18045 t more1
18046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18047 p
18048 n
18049 b repl
18050 :more1
18051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18052 p
18053 g
18054 s/.\{148\}//
18055 t nl
18056 :delim
18057 h
18058 s/\(.\{148\}\).*/\1/
18059 t more2
18060 s/["\\]/\\&/g; s/^/"/; s/$/"/
18061 p
18062 b
18063 :more2
18064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18065 p
18066 g
18067 s/.\{148\}//
18068 t delim
18069 ' <conf$$subs.awk | sed '
18070 /^[^""]/{
18071 N
18072 s/\n//
18073 }
18074 ' >>$CONFIG_STATUS || ac_write_fail=1
18075 rm -f conf$$subs.awk
18076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18077 _ACAWK
18078 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18079 for (key in S) S_is_set[key] = 1
18080 FS = ""
18081
18082 }
18083 {
18084 line = $ 0
18085 nfields = split(line, field, "@")
18086 substed = 0
18087 len = length(field[1])
18088 for (i = 2; i < nfields; i++) {
18089 key = field[i]
18090 keylen = length(key)
18091 if (S_is_set[key]) {
18092 value = S[key]
18093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18094 len += length(value) + length(field[++i])
18095 substed = 1
18096 } else
18097 len += 1 + keylen
18098 }
18099
18100 print line
18101 }
18102
18103 _ACAWK
18104 _ACEOF
18105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18107 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18108 else
18109 cat
18110 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18111 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18112 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18113 { (exit 1); exit 1; }; }
18114 _ACEOF
18115
18116 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18117 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18118 # trailing colons and then remove the whole line if VPATH becomes empty
18119 # (actually we leave an empty line to preserve line numbers).
18120 if test "x$srcdir" = x.; then
18121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18122 s/:*\$(srcdir):*/:/
18123 s/:*\${srcdir}:*/:/
18124 s/:*@srcdir@:*/:/
18125 s/^\([^=]*=[ ]*\):*/\1/
18126 s/:*$//
18127 s/^[^=]*=[ ]*$//
18128 }'
18129 fi
18130
18131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18132 fi # test -n "$CONFIG_FILES"
18133
18134 # Set up the scripts for CONFIG_HEADERS section.
18135 # No need to generate them if there are no CONFIG_HEADERS.
18136 # This happens for instance with `./config.status Makefile'.
18137 if test -n "$CONFIG_HEADERS"; then
18138 cat >"$tmp/defines.awk" <<\_ACAWK ||
18139 BEGIN {
18140 _ACEOF
18141
18142 # Transform confdefs.h into an awk script `defines.awk', embedded as
18143 # here-document in config.status, that substitutes the proper values into
18144 # config.h.in to produce config.h.
18145
18146 # Create a delimiter string that does not exist in confdefs.h, to ease
18147 # handling of long lines.
18148 ac_delim='%!_!# '
18149 for ac_last_try in false false :; do
18150 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18151 if test -z "$ac_t"; then
18152 break
18153 elif $ac_last_try; then
18154 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18155 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18156 { (exit 1); exit 1; }; }
18157 else
18158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18159 fi
18160 done
18161
18162 # For the awk script, D is an array of macro values keyed by name,
18163 # likewise P contains macro parameters if any. Preserve backslash
18164 # newline sequences.
18165
18166 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18167 sed -n '
18168 s/.\{148\}/&'"$ac_delim"'/g
18169 t rset
18170 :rset
18171 s/^[ ]*#[ ]*define[ ][ ]*/ /
18172 t def
18173 d
18174 :def
18175 s/\\$//
18176 t bsnl
18177 s/["\\]/\\&/g
18178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18179 D["\1"]=" \3"/p
18180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18181 d
18182 :bsnl
18183 s/["\\]/\\&/g
18184 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18185 D["\1"]=" \3\\\\\\n"\\/p
18186 t cont
18187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18188 t cont
18189 d
18190 :cont
18191 n
18192 s/.\{148\}/&'"$ac_delim"'/g
18193 t clear
18194 :clear
18195 s/\\$//
18196 t bsnlc
18197 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18198 d
18199 :bsnlc
18200 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18201 b cont
18202 ' <confdefs.h | sed '
18203 s/'"$ac_delim"'/"\\\
18204 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18205
18206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18207 for (key in D) D_is_set[key] = 1
18208 FS = ""
18209 }
18210 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18211 line = \$ 0
18212 split(line, arg, " ")
18213 if (arg[1] == "#") {
18214 defundef = arg[2]
18215 mac1 = arg[3]
18216 } else {
18217 defundef = substr(arg[1], 2)
18218 mac1 = arg[2]
18219 }
18220 split(mac1, mac2, "(") #)
18221 macro = mac2[1]
18222 prefix = substr(line, 1, index(line, defundef) - 1)
18223 if (D_is_set[macro]) {
18224 # Preserve the white space surrounding the "#".
18225 print prefix "define", macro P[macro] D[macro]
18226 next
18227 } else {
18228 # Replace #undef with comments. This is necessary, for example,
18229 # in the case of _POSIX_SOURCE, which is predefined and required
18230 # on some systems where configure will not decide to define it.
18231 if (defundef == "undef") {
18232 print "/*", prefix defundef, macro, "*/"
18233 next
18234 }
18235 }
18236 }
18237 { print }
18238 _ACAWK
18239 _ACEOF
18240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18241 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18242 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18243 { (exit 1); exit 1; }; }
18244 fi # test -n "$CONFIG_HEADERS"
18245
18246
18247 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18248 shift
18249 for ac_tag
18250 do
18251 case $ac_tag in
18252 :[FHLC]) ac_mode=$ac_tag; continue;;
18253 esac
18254 case $ac_mode$ac_tag in
18255 :[FHL]*:*);;
18256 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18257 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18258 { (exit 1); exit 1; }; };;
18259 :[FH]-) ac_tag=-:-;;
18260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18261 esac
18262 ac_save_IFS=$IFS
18263 IFS=:
18264 set x $ac_tag
18265 IFS=$ac_save_IFS
18266 shift
18267 ac_file=$1
18268 shift
18269
18270 case $ac_mode in
18271 :L) ac_source=$1;;
18272 :[FH])
18273 ac_file_inputs=
18274 for ac_f
18275 do
18276 case $ac_f in
18277 -) ac_f="$tmp/stdin";;
18278 *) # Look for the file first in the build tree, then in the source tree
18279 # (if the path is not absolute). The absolute path cannot be DOS-style,
18280 # because $ac_f cannot contain `:'.
18281 test -f "$ac_f" ||
18282 case $ac_f in
18283 [\\/$]*) false;;
18284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18285 esac ||
18286 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18287 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18288 { (exit 1); exit 1; }; };;
18289 esac
18290 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18291 ac_file_inputs="$ac_file_inputs '$ac_f'"
18292 done
18293
18294 # Let's still pretend it is `configure' which instantiates (i.e., don't
18295 # use $as_me), people would be surprised to read:
18296 # /* config.h. Generated by config.status. */
18297 configure_input='Generated from '`
18298 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18299 `' by configure.'
18300 if test x"$ac_file" != x-; then
18301 configure_input="$ac_file. $configure_input"
18302 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18303 $as_echo "$as_me: creating $ac_file" >&6;}
18304 fi
18305 # Neutralize special characters interpreted by sed in replacement strings.
18306 case $configure_input in #(
18307 *\&* | *\|* | *\\* )
18308 ac_sed_conf_input=`$as_echo "$configure_input" |
18309 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18310 *) ac_sed_conf_input=$configure_input;;
18311 esac
18312
18313 case $ac_tag in
18314 *:-:* | *:-) cat >"$tmp/stdin" \
18315 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18316 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18317 { (exit 1); exit 1; }; } ;;
18318 esac
18319 ;;
18320 esac
18321
18322 ac_dir=`$as_dirname -- "$ac_file" ||
18323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324 X"$ac_file" : 'X\(//\)[^/]' \| \
18325 X"$ac_file" : 'X\(//\)$' \| \
18326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18327 $as_echo X"$ac_file" |
18328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18329 s//\1/
18330 q
18331 }
18332 /^X\(\/\/\)[^/].*/{
18333 s//\1/
18334 q
18335 }
18336 /^X\(\/\/\)$/{
18337 s//\1/
18338 q
18339 }
18340 /^X\(\/\).*/{
18341 s//\1/
18342 q
18343 }
18344 s/.*/./; q'`
18345 { as_dir="$ac_dir"
18346 case $as_dir in #(
18347 -*) as_dir=./$as_dir;;
18348 esac
18349 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18350 as_dirs=
18351 while :; do
18352 case $as_dir in #(
18353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18354 *) as_qdir=$as_dir;;
18355 esac
18356 as_dirs="'$as_qdir' $as_dirs"
18357 as_dir=`$as_dirname -- "$as_dir" ||
18358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18359 X"$as_dir" : 'X\(//\)[^/]' \| \
18360 X"$as_dir" : 'X\(//\)$' \| \
18361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18362 $as_echo X"$as_dir" |
18363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18364 s//\1/
18365 q
18366 }
18367 /^X\(\/\/\)[^/].*/{
18368 s//\1/
18369 q
18370 }
18371 /^X\(\/\/\)$/{
18372 s//\1/
18373 q
18374 }
18375 /^X\(\/\).*/{
18376 s//\1/
18377 q
18378 }
18379 s/.*/./; q'`
18380 test -d "$as_dir" && break
18381 done
18382 test -z "$as_dirs" || eval "mkdir $as_dirs"
18383 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18384 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18385 { (exit 1); exit 1; }; }; }
18386 ac_builddir=.
18387
18388 case "$ac_dir" in
18389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18390 *)
18391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18392 # A ".." for each directory in $ac_dir_suffix.
18393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18394 case $ac_top_builddir_sub in
18395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18397 esac ;;
18398 esac
18399 ac_abs_top_builddir=$ac_pwd
18400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18401 # for backward compatibility:
18402 ac_top_builddir=$ac_top_build_prefix
18403
18404 case $srcdir in
18405 .) # We are building in place.
18406 ac_srcdir=.
18407 ac_top_srcdir=$ac_top_builddir_sub
18408 ac_abs_top_srcdir=$ac_pwd ;;
18409 [\\/]* | ?:[\\/]* ) # Absolute name.
18410 ac_srcdir=$srcdir$ac_dir_suffix;
18411 ac_top_srcdir=$srcdir
18412 ac_abs_top_srcdir=$srcdir ;;
18413 *) # Relative name.
18414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18415 ac_top_srcdir=$ac_top_build_prefix$srcdir
18416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18417 esac
18418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18419
18420
18421 case $ac_mode in
18422 :F)
18423 #
18424 # CONFIG_FILE
18425 #
18426
18427 case $INSTALL in
18428 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18429 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18430 esac
18431 ac_MKDIR_P=$MKDIR_P
18432 case $MKDIR_P in
18433 [\\/$]* | ?:[\\/]* ) ;;
18434 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18435 esac
18436 _ACEOF
18437
18438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18439 # If the template does not know about datarootdir, expand it.
18440 # FIXME: This hack should be removed a few years after 2.60.
18441 ac_datarootdir_hack=; ac_datarootdir_seen=
18442
18443 ac_sed_dataroot='
18444 /datarootdir/ {
18445 p
18446 q
18447 }
18448 /@datadir@/p
18449 /@docdir@/p
18450 /@infodir@/p
18451 /@localedir@/p
18452 /@mandir@/p
18453 '
18454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18455 *datarootdir*) ac_datarootdir_seen=yes;;
18456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18457 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18458 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18459 _ACEOF
18460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18461 ac_datarootdir_hack='
18462 s&@datadir@&$datadir&g
18463 s&@docdir@&$docdir&g
18464 s&@infodir@&$infodir&g
18465 s&@localedir@&$localedir&g
18466 s&@mandir@&$mandir&g
18467 s&\\\${datarootdir}&$datarootdir&g' ;;
18468 esac
18469 _ACEOF
18470
18471 # Neutralize VPATH when `$srcdir' = `.'.
18472 # Shell code in configure.ac might set extrasub.
18473 # FIXME: do we really want to maintain this feature?
18474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18475 ac_sed_extra="$ac_vpsub
18476 $extrasub
18477 _ACEOF
18478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18479 :t
18480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18481 s|@configure_input@|$ac_sed_conf_input|;t t
18482 s&@top_builddir@&$ac_top_builddir_sub&;t t
18483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18484 s&@srcdir@&$ac_srcdir&;t t
18485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18486 s&@top_srcdir@&$ac_top_srcdir&;t t
18487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18488 s&@builddir@&$ac_builddir&;t t
18489 s&@abs_builddir@&$ac_abs_builddir&;t t
18490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18491 s&@INSTALL@&$ac_INSTALL&;t t
18492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18493 $ac_datarootdir_hack
18494 "
18495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18496 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18497 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18498 { (exit 1); exit 1; }; }
18499
18500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18503 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18504 which seems to be undefined. Please make sure it is defined." >&5
18505 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18506 which seems to be undefined. Please make sure it is defined." >&2;}
18507
18508 rm -f "$tmp/stdin"
18509 case $ac_file in
18510 -) cat "$tmp/out" && rm -f "$tmp/out";;
18511 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18512 esac \
18513 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18514 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18515 { (exit 1); exit 1; }; }
18516 ;;
18517 :H)
18518 #
18519 # CONFIG_HEADER
18520 #
18521 if test x"$ac_file" != x-; then
18522 {
18523 $as_echo "/* $configure_input */" \
18524 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18525 } >"$tmp/config.h" \
18526 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18527 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18528 { (exit 1); exit 1; }; }
18529 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18530 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18531 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18532 else
18533 rm -f "$ac_file"
18534 mv "$tmp/config.h" "$ac_file" \
18535 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18536 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18537 { (exit 1); exit 1; }; }
18538 fi
18539 else
18540 $as_echo "/* $configure_input */" \
18541 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18542 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18543 $as_echo "$as_me: error: could not create -" >&2;}
18544 { (exit 1); exit 1; }; }
18545 fi
18546 # Compute "$ac_file"'s index in $config_headers.
18547 _am_arg="$ac_file"
18548 _am_stamp_count=1
18549 for _am_header in $config_headers :; do
18550 case $_am_header in
18551 $_am_arg | $_am_arg:* )
18552 break ;;
18553 * )
18554 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18555 esac
18556 done
18557 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18558 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18559 X"$_am_arg" : 'X\(//\)[^/]' \| \
18560 X"$_am_arg" : 'X\(//\)$' \| \
18561 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18562 $as_echo X"$_am_arg" |
18563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18564 s//\1/
18565 q
18566 }
18567 /^X\(\/\/\)[^/].*/{
18568 s//\1/
18569 q
18570 }
18571 /^X\(\/\/\)$/{
18572 s//\1/
18573 q
18574 }
18575 /^X\(\/\).*/{
18576 s//\1/
18577 q
18578 }
18579 s/.*/./; q'`/stamp-h$_am_stamp_count
18580 ;;
18581
18582 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18583 $as_echo "$as_me: executing $ac_file commands" >&6;}
18584 ;;
18585 esac
18586
18587
18588 case $ac_file$ac_mode in
18589 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18590 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18591 # are listed without --file. Let's play safe and only enable the eval
18592 # if we detect the quoting.
18593 case $CONFIG_FILES in
18594 *\'*) eval set x "$CONFIG_FILES" ;;
18595 *) set x $CONFIG_FILES ;;
18596 esac
18597 shift
18598 for mf
18599 do
18600 # Strip MF so we end up with the name of the file.
18601 mf=`echo "$mf" | sed -e 's/:.*$//'`
18602 # Check whether this is an Automake generated Makefile or not.
18603 # We used to match only the files named `Makefile.in', but
18604 # some people rename them; so instead we look at the file content.
18605 # Grep'ing the first line is not enough: some people post-process
18606 # each Makefile.in and add a new line on top of each file to say so.
18607 # Grep'ing the whole file is not good either: AIX grep has a line
18608 # limit of 2048, but all sed's we know have understand at least 4000.
18609 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18610 dirpart=`$as_dirname -- "$mf" ||
18611 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18612 X"$mf" : 'X\(//\)[^/]' \| \
18613 X"$mf" : 'X\(//\)$' \| \
18614 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18615 $as_echo X"$mf" |
18616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18617 s//\1/
18618 q
18619 }
18620 /^X\(\/\/\)[^/].*/{
18621 s//\1/
18622 q
18623 }
18624 /^X\(\/\/\)$/{
18625 s//\1/
18626 q
18627 }
18628 /^X\(\/\).*/{
18629 s//\1/
18630 q
18631 }
18632 s/.*/./; q'`
18633 else
18634 continue
18635 fi
18636 # Extract the definition of DEPDIR, am__include, and am__quote
18637 # from the Makefile without running `make'.
18638 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18639 test -z "$DEPDIR" && continue
18640 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18641 test -z "am__include" && continue
18642 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18643 # When using ansi2knr, U may be empty or an underscore; expand it
18644 U=`sed -n 's/^U = //p' < "$mf"`
18645 # Find all dependency output files, they are included files with
18646 # $(DEPDIR) in their names. We invoke sed twice because it is the
18647 # simplest approach to changing $(DEPDIR) to its actual value in the
18648 # expansion.
18649 for file in `sed -n "
18650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18652 # Make sure the directory exists.
18653 test -f "$dirpart/$file" && continue
18654 fdir=`$as_dirname -- "$file" ||
18655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18656 X"$file" : 'X\(//\)[^/]' \| \
18657 X"$file" : 'X\(//\)$' \| \
18658 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18659 $as_echo X"$file" |
18660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18661 s//\1/
18662 q
18663 }
18664 /^X\(\/\/\)[^/].*/{
18665 s//\1/
18666 q
18667 }
18668 /^X\(\/\/\)$/{
18669 s//\1/
18670 q
18671 }
18672 /^X\(\/\).*/{
18673 s//\1/
18674 q
18675 }
18676 s/.*/./; q'`
18677 { as_dir=$dirpart/$fdir
18678 case $as_dir in #(
18679 -*) as_dir=./$as_dir;;
18680 esac
18681 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18682 as_dirs=
18683 while :; do
18684 case $as_dir in #(
18685 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18686 *) as_qdir=$as_dir;;
18687 esac
18688 as_dirs="'$as_qdir' $as_dirs"
18689 as_dir=`$as_dirname -- "$as_dir" ||
18690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18691 X"$as_dir" : 'X\(//\)[^/]' \| \
18692 X"$as_dir" : 'X\(//\)$' \| \
18693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18694 $as_echo X"$as_dir" |
18695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18696 s//\1/
18697 q
18698 }
18699 /^X\(\/\/\)[^/].*/{
18700 s//\1/
18701 q
18702 }
18703 /^X\(\/\/\)$/{
18704 s//\1/
18705 q
18706 }
18707 /^X\(\/\).*/{
18708 s//\1/
18709 q
18710 }
18711 s/.*/./; q'`
18712 test -d "$as_dir" && break
18713 done
18714 test -z "$as_dirs" || eval "mkdir $as_dirs"
18715 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18716 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18717 { (exit 1); exit 1; }; }; }
18718 # echo "creating $dirpart/$file"
18719 echo '# dummy' > "$dirpart/$file"
18720 done
18721 done
18722 }
18723 ;;
18724
18725 esac
18726 done # for ac_tag
18727
18728
18729 { (exit 0); exit 0; }
18730 _ACEOF
18731 chmod +x $CONFIG_STATUS
18732 ac_clean_files=$ac_clean_files_save
18733
18734 test $ac_write_fail = 0 ||
18735 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18736 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18737 { (exit 1); exit 1; }; }
18738
18739
18740 # configure is writing to config.log, and then calls config.status.
18741 # config.status does its own redirection, appending to config.log.
18742 # Unfortunately, on DOS this fails, as config.log is still kept open
18743 # by configure, so config.status won't be able to write to it; its
18744 # output is simply discarded. So we exec the FD to /dev/null,
18745 # effectively closing config.log, so it can be properly (re)opened and
18746 # appended to by config.status. When coming back to configure, we
18747 # need to make the FD available again.
18748 if test "$no_create" != yes; then
18749 ac_cs_success=:
18750 ac_config_status_args=
18751 test "$silent" = yes &&
18752 ac_config_status_args="$ac_config_status_args --quiet"
18753 exec 5>/dev/null
18754 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18755 exec 5>>config.log
18756 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18757 # would make configure fail if this is the last instruction.
18758 $ac_cs_success || { (exit 1); exit 1; }
18759 fi
18760 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18761 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18762 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18763 fi
18764