]> git.ipfire.org Git - thirdparty/bash.git/blob - autom4te.cache/output.0
commit bash-20101025 snapshot
[thirdparty/bash.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ From configure.in for Bash 4.2, version 4.033.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.63 for bash 4.2-alpha.
5 @%:@
6 @%:@ Report bugs to <bug-bash@gnu.org>.
7 @%:@
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 @%:@ This configure script is free software; the Free Software Foundation
11 @%:@ gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
98
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111 ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
186 }
187 as_func_success () {
188 as_func_return 0
189 }
190 as_func_failure () {
191 as_func_return 1
192 }
193 as_func_ret_success () {
194 return 0
195 }
196 as_func_ret_failure () {
197 return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202 :
203 else
204 exitcode=1
205 echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214 :
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227 else
228 exitcode=1
229 echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240 :
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
249 /*)
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300 (exit $1)
301 }
302 as_func_success () {
303 as_func_return 0
304 }
305 as_func_failure () {
306 as_func_return 1
307 }
308 as_func_ret_success () {
309 return 0
310 }
311 as_func_ret_failure () {
312 return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317 :
318 else
319 exitcode=1
320 echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329 :
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342 else
343 exitcode=1
344 echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357 break
358 fi
359
360 fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389 (exit \$1)
390 }
391 as_func_success () {
392 as_func_return 0
393 }
394 as_func_failure () {
395 as_func_return 1
396 }
397 as_func_ret_success () {
398 return 0
399 }
400 as_func_ret_failure () {
401 return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406 :
407 else
408 exitcode=1
409 echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418 :
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431 else
432 exitcode=1
433 echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442 }
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
470 N
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502 *)
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
532 fi
533 else
534 as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577 exec 7<&0 </dev/null 6>&1
578
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584 #
585 # Initializations.
586 #
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIB@&t@OBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597 # Identity of this package.
598 PACKAGE_NAME='bash'
599 PACKAGE_TARNAME='bash'
600 PACKAGE_VERSION='4.2-alpha'
601 PACKAGE_STRING='bash 4.2-alpha'
602 PACKAGE_BUGREPORT='bug-bash@gnu.org'
603
604 ac_unique_file="shell.h"
605 # Factoring default headers for most tests.
606 ac_includes_default="\
607 #include <stdio.h>
608 #ifdef HAVE_SYS_TYPES_H
609 # include <sys/types.h>
610 #endif
611 #ifdef HAVE_SYS_STAT_H
612 # include <sys/stat.h>
613 #endif
614 #ifdef STDC_HEADERS
615 # include <stdlib.h>
616 # include <stddef.h>
617 #else
618 # ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 # endif
621 #endif
622 #ifdef HAVE_STRING_H
623 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 # include <memory.h>
625 # endif
626 # include <string.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 ac_header_list=
642 ac_func_list=
643 ac_subst_vars='LTLIBOBJS
644 LOCAL_DEFS
645 LOCAL_LDFLAGS
646 LOCAL_CFLAGS
647 LOCAL_LIBS
648 MALLOC_DEBUG
649 DEBUG
650 RELSTATUS
651 BASHVERS
652 ARFLAGS
653 BUILD_DIR
654 incdir
655 PROFILE_FLAGS
656 SHOBJ_STATUS
657 SHOBJ_LIBS
658 SHOBJ_XLDFLAGS
659 SHOBJ_LDFLAGS
660 SHOBJ_LD
661 SHOBJ_CFLAGS
662 SHOBJ_CC
663 JOBS_O
664 TERMCAP_DEP
665 TERMCAP_LIB
666 SIGLIST_O
667 LIBINTL_H
668 INTL_INC
669 INTL_DEP
670 LIB@&t@OBJS
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 INTL_LIBTOOL_SUFFIX_PREFIX
676 INTLOBJS
677 GENCAT
678 INSTOBJEXT
679 DATADIRNAME
680 CATOBJEXT
681 USE_INCLUDED_LIBINTL
682 BUILD_INCLUDED_LIBINTL
683 INTLBISON
684 LTLIBICONV
685 LIBICONV
686 GLIBC21
687 ALLOCA
688 MSGMERGE
689 XGETTEXT
690 GMSGFMT
691 MSGFMT
692 USE_NLS
693 MKINSTALLDIRS
694 SIZE
695 MAKE_SHELL
696 SET_MAKE
697 YFLAGS
698 YACC
699 RANLIB
700 AR
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 TILDE_LIB
705 HIST_LIBDIR
706 HISTORY_DEP
707 HISTORY_LIB
708 RL_INCLUDE
709 RL_INCLUDEDIR
710 RL_LIBDIR
711 READLINE_DEP
712 READLINE_LIB
713 RL_MINOR
714 RL_MAJOR
715 RL_VERSION
716 LDFLAGS_FOR_BUILD
717 CPPFLAGS_FOR_BUILD
718 CFLAGS_FOR_BUILD
719 STATIC_LD
720 CC_FOR_BUILD
721 SIGNAMES_O
722 SIGNAMES_H
723 CROSS_COMPILE
724 EGREP
725 GREP
726 CPP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 HELPSTRINGS
735 HELPINSTALL
736 HELPDIRDEFINE
737 HELPDIR
738 MALLOC_DEP
739 MALLOC_LDFLAGS
740 MALLOC_LIBRARY
741 MALLOC_LIB
742 MALLOC_SRC
743 MALLOC_TARGET
744 PURIFY
745 TESTSCRIPT
746 DEBUGGER_START_FILE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 with_afs
796 with_bash_malloc
797 with_curses
798 with_gnu_malloc
799 with_installed_readline
800 with_purecov
801 with_purify
802 enable_minimal_config
803 enable_alias
804 enable_arith_for_command
805 enable_array_variables
806 enable_bang_history
807 enable_brace_expansion
808 enable_casemod_attributes
809 enable_casemod_expansions
810 enable_command_timing
811 enable_cond_command
812 enable_cond_regexp
813 enable_coprocesses
814 enable_debugger
815 enable_directory_stack
816 enable_disabled_builtins
817 enable_dparen_arithmetic
818 enable_extended_glob
819 enable_extended_glob_default
820 enable_help_builtin
821 enable_history
822 enable_job_control
823 enable_multibyte
824 enable_net_redirections
825 enable_process_substitution
826 enable_progcomp
827 enable_prompt_string_decoding
828 enable_readline
829 enable_restricted
830 enable_select
831 enable_separate_helpfiles
832 enable_single_help_strings
833 enable_strict_posix_default
834 enable_usg_echo_default
835 enable_xpg_echo_default
836 enable_mem_scramble
837 enable_profiling
838 enable_static_link
839 enable_largefile
840 enable_nls
841 with_gnu_ld
842 enable_rpath
843 with_libiconv_prefix
844 with_included_gettext
845 with_libintl_prefix
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 DEBUGGER_START_FILE
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 YACC
858 YFLAGS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
968 { (exit 1); exit 1; }; }
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1282 { (exit 1); exit 1; }; } ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1285 fi
1286
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 $as_echo X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374 else
1375 ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures bash 4.2-alpha to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bash@:>@
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1465
1466 cat <<\_ACEOF
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of bash 4.2-alpha:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-minimal-config a minimal sh-like configuration
1485 --enable-alias enable shell aliases
1486 --enable-arith-for-command
1487 enable arithmetic for command
1488 --enable-array-variables
1489 include shell array variables
1490 --enable-bang-history turn on csh-style history substitution
1491 --enable-brace-expansion
1492 include brace expansion
1493 --enable-casemod-attributes
1494 include case-modifying variable attributes
1495 --enable-casemod-expansions
1496 include case-modifying word expansions
1497 --enable-command-timing enable the time reserved word and command timing
1498 --enable-cond-command enable the conditional command
1499 --enable-cond-regexp enable extended regular expression matching in
1500 conditional commands
1501 --enable-coprocesses enable coprocess support and the coproc reserved
1502 word
1503 --enable-debugger enable support for bash debugger
1504 --enable-directory-stack
1505 enable builtins pushd/popd/dirs
1506 --enable-disabled-builtins
1507 allow disabled builtins to still be invoked
1508 --enable-dparen-arithmetic
1509 include ((...)) command
1510 --enable-extended-glob include ksh-style extended pattern matching
1511 --enable-extended-glob-default
1512 force extended pattern matching to be enabled by
1513 default
1514 --enable-help-builtin include the help builtin
1515 --enable-history turn on command history
1516 --enable-job-control enable job control features
1517 --enable-multibyte enable multibyte characters if OS supports them
1518 --enable-net-redirections
1519 enable /dev/tcp/host/port redirection
1520 --enable-process-substitution
1521 enable process substitution
1522 --enable-progcomp enable programmable completion and the complete
1523 builtin
1524 --enable-prompt-string-decoding
1525 turn on escape character decoding in prompts
1526 --enable-readline turn on command line editing
1527 --enable-restricted enable a restricted shell
1528 --enable-select include select command
1529 --enable-separate-helpfiles
1530 use external files for help builtin documentation
1531 --enable-single-help-strings
1532 store help documentation as a single string to ease
1533 translation
1534 --enable-strict-posix-default
1535 configure bash to be posix-conformant by default
1536 --enable-usg-echo-default
1537 a synonym for --enable-xpg-echo-default
1538 --enable-xpg-echo-default
1539 make the echo builtin expand escape sequences by
1540 default
1541 --enable-mem-scramble scramble memory on calls to malloc and free
1542 --enable-profiling allow profiling with gprof
1543 --enable-static-link link bash statically, for use as a root shell
1544 --disable-largefile omit support for large files
1545 --disable-nls do not use Native Language Support
1546 --disable-rpath do not hardcode runtime library paths
1547
1548 Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-afs if you are running AFS
1552 --with-bash-malloc use the Bash version of malloc
1553 --with-curses use the curses library instead of the termcap
1554 library
1555 --with-gnu-malloc synonym for --with-bash-malloc
1556 --with-installed-readline
1557 use a version of the readline library that is
1558 already installed
1559 --with-purecov configure to postprocess with pure coverage
1560 --with-purify configure to postprocess with purify
1561 --with-gnu-ld assume the C compiler uses GNU ld default=no
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-included-gettext use the GNU gettext library included here
1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1566 --without-libintl-prefix don't search for libintl in includedir and libdir
1567
1568 Some influential environment variables:
1569 DEBUGGER_START_FILE
1570 location of bash debugger initialization file
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CPP C preprocessor
1579 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison -y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
1584
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to <bug-bash@gnu.org>.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650 cat <<\_ACEOF
1651 bash configure 4.2-alpha
1652 generated by GNU Autoconf 2.63
1653
1654 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1656 This configure script is free software; the Free Software Foundation
1657 gives unlimited permission to copy, distribute and modify it.
1658 _ACEOF
1659 exit
1660 fi
1661 cat >config.log <<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1664
1665 It was created by bash $as_me 4.2-alpha, which was
1666 generated by GNU Autoconf 2.63. Invocation command line was
1667
1668 $ $0 $@
1669
1670 _ACEOF
1671 exec 5>>config.log
1672 {
1673 cat <<_ASUNAME
1674 @%:@@%:@ --------- @%:@@%:@
1675 @%:@@%:@ Platform. @%:@@%:@
1676 @%:@@%:@ --------- @%:@@%:@
1677
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
1695 _ASUNAME
1696
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 $as_echo "PATH: $as_dir"
1703 done
1704 IFS=$as_save_IFS
1705
1706 } >&5
1707
1708 cat >&5 <<_ACEOF
1709
1710
1711 @%:@@%:@ ----------- @%:@@%:@
1712 @%:@@%:@ Core tests. @%:@@%:@
1713 @%:@@%:@ ----------- @%:@@%:@
1714
1715 _ACEOF
1716
1717
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1723 ac_configure_args=
1724 ac_configure_args0=
1725 ac_configure_args1=
1726 ac_must_keep_next=false
1727 for ac_pass in 1 2
1728 do
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
1736 *\'*)
1737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
1744 ac_must_keep_next=false # Got value, back to normal.
1745 else
1746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
1757 fi
1758 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 ;;
1760 esac
1761 done
1762 done
1763 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1773 {
1774 echo
1775
1776 cat <<\_ASBOX
1777 @%:@@%:@ ---------------- @%:@@%:@
1778 @%:@@%:@ Cache variables. @%:@@%:@
1779 @%:@@%:@ ---------------- @%:@@%:@
1780 _ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
1783 (
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1796 esac ;;
1797 esac
1798 done
1799 (set) 2>&1 |
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1802 sed -n \
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1805 ;; #(
1806 *)
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 ;;
1809 esac |
1810 sort
1811 )
1812 echo
1813
1814 cat <<\_ASBOX
1815 @%:@@%:@ ----------------- @%:@@%:@
1816 @%:@@%:@ Output variables. @%:@@%:@
1817 @%:@@%:@ ----------------- @%:@@%:@
1818 _ASBOX
1819 echo
1820 for ac_var in $ac_subst_vars
1821 do
1822 eval ac_val=\$$ac_var
1823 case $ac_val in
1824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 esac
1826 $as_echo "$ac_var='\''$ac_val'\''"
1827 done | sort
1828 echo
1829
1830 if test -n "$ac_subst_files"; then
1831 cat <<\_ASBOX
1832 @%:@@%:@ ------------------- @%:@@%:@
1833 @%:@@%:@ File substitutions. @%:@@%:@
1834 @%:@@%:@ ------------------- @%:@@%:@
1835 _ASBOX
1836 echo
1837 for ac_var in $ac_subst_files
1838 do
1839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 $as_echo "$ac_var='\''$ac_val'\''"
1844 done | sort
1845 echo
1846 fi
1847
1848 if test -s confdefs.h; then
1849 cat <<\_ASBOX
1850 @%:@@%:@ ----------- @%:@@%:@
1851 @%:@@%:@ confdefs.h. @%:@@%:@
1852 @%:@@%:@ ----------- @%:@@%:@
1853 _ASBOX
1854 echo
1855 cat confdefs.h
1856 echo
1857 fi
1858 test "$ac_signal" != 0 &&
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
1861 } >&5
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1864 exit $exit_status
1865 ' 0
1866 for ac_signal in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1868 done
1869 ac_signal=0
1870
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest* confdefs.h
1873
1874 # Predefined preprocessor variables.
1875
1876 cat >>confdefs.h <<_ACEOF
1877 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1898 _ACEOF
1899
1900
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer an explicitly selected file to automatically selected ones.
1903 ac_site_file1=NONE
1904 ac_site_file2=NONE
1905 if test -n "$CONFIG_SITE"; then
1906 ac_site_file1=$CONFIG_SITE
1907 elif test "x$prefix" != xNONE; then
1908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
1910 else
1911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
1913 fi
1914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915 do
1916 test "x$ac_site_file" = xNONE && continue
1917 if test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1921 . "$ac_site_file"
1922 fi
1923 done
1924
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 $as_echo "$as_me: loading cache $cache_file" >&6;}
1931 case $cache_file in
1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
1934 esac
1935 fi
1936 else
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 $as_echo "$as_me: creating cache $cache_file" >&6;}
1939 >$cache_file
1940 fi
1941
1942 ac_header_list="$ac_header_list sys/time.h"
1943 ac_header_list="$ac_header_list unistd.h"
1944 ac_func_list="$ac_func_list alarm"
1945 ac_func_list="$ac_func_list fpurge"
1946 ac_func_list="$ac_func_list __fpurge"
1947 ac_func_list="$ac_func_list snprintf"
1948 ac_func_list="$ac_func_list vsnprintf"
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1958 set,)
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,set)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,);;
1967 *)
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1976 else
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1980 fi
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1997 fi
1998 done
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2007 fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
2041
2042
2043
2044 ac_aux_dir=
2045 for ac_dir in ./support "$srcdir"/./support; do
2046 if test -f "$ac_dir/install-sh"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
2050 elif test -f "$ac_dir/install.sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
2054 elif test -f "$ac_dir/shtool"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059 done
2060 if test -z "$ac_aux_dir"; then
2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2062 $as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2063 { (exit 1); exit 1; }; }
2064 fi
2065
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
2074
2075 ac_config_headers="$ac_config_headers config.h"
2076
2077
2078 BASHVERS=4.2
2079 RELSTATUS=alpha
2080
2081 case "$RELSTATUS" in
2082 alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2083 *) DEBUG= MALLOC_DEBUG= ;;
2084 esac
2085
2086 # Make sure we can run config.sub.
2087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2088 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2089 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2090 { (exit 1); exit 1; }; }
2091
2092 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2093 $as_echo_n "checking build system type... " >&6; }
2094 if test "${ac_cv_build+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2096 else
2097 ac_build_alias=$build_alias
2098 test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100 test "x$ac_build_alias" = x &&
2101 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103 { (exit 1); exit 1; }; }
2104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2105 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2106 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2107 { (exit 1); exit 1; }; }
2108
2109 fi
2110 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111 $as_echo "$ac_cv_build" >&6; }
2112 case $ac_cv_build in
2113 *-*-*) ;;
2114 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2115 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2116 { (exit 1); exit 1; }; };;
2117 esac
2118 build=$ac_cv_build
2119 ac_save_IFS=$IFS; IFS='-'
2120 set x $ac_cv_build
2121 shift
2122 build_cpu=$1
2123 build_vendor=$2
2124 shift; shift
2125 # Remember, the first character of IFS is used to create $*,
2126 # except with old shells:
2127 build_os=$*
2128 IFS=$ac_save_IFS
2129 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2130
2131
2132 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2133 $as_echo_n "checking host system type... " >&6; }
2134 if test "${ac_cv_host+set}" = set; then
2135 $as_echo_n "(cached) " >&6
2136 else
2137 if test "x$host_alias" = x; then
2138 ac_cv_host=$ac_cv_build
2139 else
2140 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2141 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2142 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2144 fi
2145
2146 fi
2147 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2148 $as_echo "$ac_cv_host" >&6; }
2149 case $ac_cv_host in
2150 *-*-*) ;;
2151 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2152 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2153 { (exit 1); exit 1; }; };;
2154 esac
2155 host=$ac_cv_host
2156 ac_save_IFS=$IFS; IFS='-'
2157 set x $ac_cv_host
2158 shift
2159 host_cpu=$1
2160 host_vendor=$2
2161 shift; shift
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2164 host_os=$*
2165 IFS=$ac_save_IFS
2166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2167
2168
2169
2170 opt_bash_malloc=yes
2171 opt_purify=no
2172 opt_purecov=no
2173 opt_afs=no
2174 opt_curses=no
2175 opt_with_installed_readline=no
2176
2177 #htmldir=
2178
2179 case "${host_cpu}-${host_os}" in
2180 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2181 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2182 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2183 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2184 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2185 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2186 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2187 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2188 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2189 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2190 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2191 *-aix*) opt_bash_malloc=no ;; # AIX machines
2192 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2193 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2194 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2195 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2196 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2197 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2198 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2199 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2200 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
2201 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2202 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2203 esac
2204
2205 # memory scrambling on free()
2206 case "${host_os}" in
2207 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2208 *) opt_memscramble=yes ;;
2209 esac
2210
2211
2212
2213
2214 @%:@ Check whether --with-afs was given.
2215 if test "${with_afs+set}" = set; then
2216 withval=$with_afs; opt_afs=$withval
2217 fi
2218
2219
2220 @%:@ Check whether --with-bash-malloc was given.
2221 if test "${with_bash_malloc+set}" = set; then
2222 withval=$with_bash_malloc; opt_bash_malloc=$withval
2223 fi
2224
2225
2226 @%:@ Check whether --with-curses was given.
2227 if test "${with_curses+set}" = set; then
2228 withval=$with_curses; opt_curses=$withval
2229 fi
2230
2231
2232 @%:@ Check whether --with-gnu-malloc was given.
2233 if test "${with_gnu_malloc+set}" = set; then
2234 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2235 fi
2236
2237
2238 @%:@ Check whether --with-installed-readline was given.
2239 if test "${with_installed_readline+set}" = set; then
2240 withval=$with_installed_readline; opt_with_installed_readline=$withval
2241 fi
2242
2243
2244 @%:@ Check whether --with-purecov was given.
2245 if test "${with_purecov+set}" = set; then
2246 withval=$with_purecov; opt_purecov=$withval
2247 fi
2248
2249
2250 @%:@ Check whether --with-purify was given.
2251 if test "${with_purify+set}" = set; then
2252 withval=$with_purify; opt_purify=$withval
2253 fi
2254
2255
2256 if test "$opt_bash_malloc" = yes; then
2257 MALLOC_TARGET=malloc
2258 MALLOC_SRC=malloc.c
2259
2260 MALLOC_LIB='-lmalloc'
2261 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2262 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2263 MALLOC_DEP='$(MALLOC_LIBRARY)'
2264
2265 cat >>confdefs.h <<\_ACEOF
2266 @%:@define USING_BASH_MALLOC 1
2267 _ACEOF
2268
2269 else
2270 MALLOC_LIB=
2271 MALLOC_LIBRARY=
2272 MALLOC_LDFLAGS=
2273 MALLOC_DEP=
2274 fi
2275
2276 if test "$opt_purify" = yes; then
2277 PURIFY="purify "
2278 cat >>confdefs.h <<\_ACEOF
2279 @%:@define DISABLE_MALLOC_WRAPPERS 1
2280 _ACEOF
2281
2282 else
2283 PURIFY=
2284 fi
2285
2286 if test "$opt_purecov" = yes; then
2287 PURIFY="${PURIFY}purecov"
2288 fi
2289
2290 if test "$opt_afs" = yes; then
2291 cat >>confdefs.h <<\_ACEOF
2292 @%:@define AFS 1
2293 _ACEOF
2294
2295 fi
2296
2297 if test "$opt_curses" = yes; then
2298 prefer_curses=yes
2299 fi
2300
2301 if test -z "${DEBUGGER_START_FILE}"; then
2302 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
2303 fi
2304
2305 opt_minimal_config=no
2306
2307 opt_job_control=yes
2308 opt_alias=yes
2309 opt_readline=yes
2310 opt_history=yes
2311 opt_bang_history=yes
2312 opt_dirstack=yes
2313 opt_restricted=yes
2314 opt_process_subst=yes
2315 opt_prompt_decoding=yes
2316 opt_select=yes
2317 opt_help=yes
2318 opt_array_variables=yes
2319 opt_dparen_arith=yes
2320 opt_extended_glob=yes
2321 opt_brace_expansion=yes
2322 opt_disabled_builtins=no
2323 opt_command_timing=yes
2324 opt_xpg_echo=no
2325 opt_strict_posix=no
2326 opt_cond_command=yes
2327 opt_cond_regexp=yes
2328 opt_coproc=yes
2329 opt_arith_for_command=yes
2330 opt_net_redirs=yes
2331 opt_progcomp=yes
2332 opt_separate_help=no
2333 opt_multibyte=yes
2334 opt_debugger=yes
2335 opt_single_longdoc_strings=yes
2336 opt_casemod_attrs=yes
2337 opt_casemod_expansions=yes
2338 opt_extglob_default=no
2339
2340 opt_static_link=no
2341 opt_profiling=no
2342
2343 @%:@ Check whether --enable-minimal-config was given.
2344 if test "${enable_minimal_config+set}" = set; then
2345 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2346 fi
2347
2348
2349 if test $opt_minimal_config = yes; then
2350 opt_job_control=no opt_alias=no opt_readline=no
2351 opt_history=no opt_bang_history=no opt_dirstack=no
2352 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2353 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2354 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2355 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2356 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2357 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2358 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
2359 fi
2360
2361 @%:@ Check whether --enable-alias was given.
2362 if test "${enable_alias+set}" = set; then
2363 enableval=$enable_alias; opt_alias=$enableval
2364 fi
2365
2366 @%:@ Check whether --enable-arith-for-command was given.
2367 if test "${enable_arith_for_command+set}" = set; then
2368 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2369 fi
2370
2371 @%:@ Check whether --enable-array-variables was given.
2372 if test "${enable_array_variables+set}" = set; then
2373 enableval=$enable_array_variables; opt_array_variables=$enableval
2374 fi
2375
2376 @%:@ Check whether --enable-bang-history was given.
2377 if test "${enable_bang_history+set}" = set; then
2378 enableval=$enable_bang_history; opt_bang_history=$enableval
2379 fi
2380
2381 @%:@ Check whether --enable-brace-expansion was given.
2382 if test "${enable_brace_expansion+set}" = set; then
2383 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2384 fi
2385
2386 @%:@ Check whether --enable-casemod-attributes was given.
2387 if test "${enable_casemod_attributes+set}" = set; then
2388 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2389 fi
2390
2391 @%:@ Check whether --enable-casemod-expansions was given.
2392 if test "${enable_casemod_expansions+set}" = set; then
2393 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2394 fi
2395
2396 @%:@ Check whether --enable-command-timing was given.
2397 if test "${enable_command_timing+set}" = set; then
2398 enableval=$enable_command_timing; opt_command_timing=$enableval
2399 fi
2400
2401 @%:@ Check whether --enable-cond-command was given.
2402 if test "${enable_cond_command+set}" = set; then
2403 enableval=$enable_cond_command; opt_cond_command=$enableval
2404 fi
2405
2406 @%:@ Check whether --enable-cond-regexp was given.
2407 if test "${enable_cond_regexp+set}" = set; then
2408 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2409 fi
2410
2411 @%:@ Check whether --enable-coprocesses was given.
2412 if test "${enable_coprocesses+set}" = set; then
2413 enableval=$enable_coprocesses; opt_coproc=$enableval
2414 fi
2415
2416 @%:@ Check whether --enable-debugger was given.
2417 if test "${enable_debugger+set}" = set; then
2418 enableval=$enable_debugger; opt_debugger=$enableval
2419 fi
2420
2421 @%:@ Check whether --enable-directory-stack was given.
2422 if test "${enable_directory_stack+set}" = set; then
2423 enableval=$enable_directory_stack; opt_dirstack=$enableval
2424 fi
2425
2426 @%:@ Check whether --enable-disabled-builtins was given.
2427 if test "${enable_disabled_builtins+set}" = set; then
2428 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2429 fi
2430
2431 @%:@ Check whether --enable-dparen-arithmetic was given.
2432 if test "${enable_dparen_arithmetic+set}" = set; then
2433 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2434 fi
2435
2436 @%:@ Check whether --enable-extended-glob was given.
2437 if test "${enable_extended_glob+set}" = set; then
2438 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2439 fi
2440
2441 @%:@ Check whether --enable-extended-glob-default was given.
2442 if test "${enable_extended_glob_default+set}" = set; then
2443 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
2444 fi
2445
2446 @%:@ Check whether --enable-help-builtin was given.
2447 if test "${enable_help_builtin+set}" = set; then
2448 enableval=$enable_help_builtin; opt_help=$enableval
2449 fi
2450
2451 @%:@ Check whether --enable-history was given.
2452 if test "${enable_history+set}" = set; then
2453 enableval=$enable_history; opt_history=$enableval
2454 fi
2455
2456 @%:@ Check whether --enable-job-control was given.
2457 if test "${enable_job_control+set}" = set; then
2458 enableval=$enable_job_control; opt_job_control=$enableval
2459 fi
2460
2461 @%:@ Check whether --enable-multibyte was given.
2462 if test "${enable_multibyte+set}" = set; then
2463 enableval=$enable_multibyte; opt_multibyte=$enableval
2464 fi
2465
2466 @%:@ Check whether --enable-net-redirections was given.
2467 if test "${enable_net_redirections+set}" = set; then
2468 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2469 fi
2470
2471 @%:@ Check whether --enable-process-substitution was given.
2472 if test "${enable_process_substitution+set}" = set; then
2473 enableval=$enable_process_substitution; opt_process_subst=$enableval
2474 fi
2475
2476 @%:@ Check whether --enable-progcomp was given.
2477 if test "${enable_progcomp+set}" = set; then
2478 enableval=$enable_progcomp; opt_progcomp=$enableval
2479 fi
2480
2481 @%:@ Check whether --enable-prompt-string-decoding was given.
2482 if test "${enable_prompt_string_decoding+set}" = set; then
2483 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2484 fi
2485
2486 @%:@ Check whether --enable-readline was given.
2487 if test "${enable_readline+set}" = set; then
2488 enableval=$enable_readline; opt_readline=$enableval
2489 fi
2490
2491 @%:@ Check whether --enable-restricted was given.
2492 if test "${enable_restricted+set}" = set; then
2493 enableval=$enable_restricted; opt_restricted=$enableval
2494 fi
2495
2496 @%:@ Check whether --enable-select was given.
2497 if test "${enable_select+set}" = set; then
2498 enableval=$enable_select; opt_select=$enableval
2499 fi
2500
2501 @%:@ Check whether --enable-separate-helpfiles was given.
2502 if test "${enable_separate_helpfiles+set}" = set; then
2503 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2504 fi
2505
2506 @%:@ Check whether --enable-single-help-strings was given.
2507 if test "${enable_single_help_strings+set}" = set; then
2508 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2509 fi
2510
2511 @%:@ Check whether --enable-strict-posix-default was given.
2512 if test "${enable_strict_posix_default+set}" = set; then
2513 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2514 fi
2515
2516 @%:@ Check whether --enable-usg-echo-default was given.
2517 if test "${enable_usg_echo_default+set}" = set; then
2518 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2519 fi
2520
2521 @%:@ Check whether --enable-xpg-echo-default was given.
2522 if test "${enable_xpg_echo_default+set}" = set; then
2523 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2524 fi
2525
2526
2527 @%:@ Check whether --enable-mem-scramble was given.
2528 if test "${enable_mem_scramble+set}" = set; then
2529 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2530 fi
2531
2532 @%:@ Check whether --enable-profiling was given.
2533 if test "${enable_profiling+set}" = set; then
2534 enableval=$enable_profiling; opt_profiling=$enableval
2535 fi
2536
2537 @%:@ Check whether --enable-static-link was given.
2538 if test "${enable_static_link+set}" = set; then
2539 enableval=$enable_static_link; opt_static_link=$enableval
2540 fi
2541
2542
2543
2544
2545 if test $opt_alias = yes; then
2546 cat >>confdefs.h <<\_ACEOF
2547 @%:@define ALIAS 1
2548 _ACEOF
2549
2550 fi
2551 if test $opt_dirstack = yes; then
2552 cat >>confdefs.h <<\_ACEOF
2553 @%:@define PUSHD_AND_POPD 1
2554 _ACEOF
2555
2556 fi
2557 if test $opt_restricted = yes; then
2558 cat >>confdefs.h <<\_ACEOF
2559 @%:@define RESTRICTED_SHELL 1
2560 _ACEOF
2561
2562 fi
2563 if test $opt_process_subst = yes; then
2564 cat >>confdefs.h <<\_ACEOF
2565 @%:@define PROCESS_SUBSTITUTION 1
2566 _ACEOF
2567
2568 fi
2569 if test $opt_prompt_decoding = yes; then
2570 cat >>confdefs.h <<\_ACEOF
2571 @%:@define PROMPT_STRING_DECODE 1
2572 _ACEOF
2573
2574 fi
2575 if test $opt_select = yes; then
2576 cat >>confdefs.h <<\_ACEOF
2577 @%:@define SELECT_COMMAND 1
2578 _ACEOF
2579
2580 fi
2581 if test $opt_help = yes; then
2582 cat >>confdefs.h <<\_ACEOF
2583 @%:@define HELP_BUILTIN 1
2584 _ACEOF
2585
2586 fi
2587 if test $opt_array_variables = yes; then
2588 cat >>confdefs.h <<\_ACEOF
2589 @%:@define ARRAY_VARS 1
2590 _ACEOF
2591
2592 fi
2593 if test $opt_dparen_arith = yes; then
2594 cat >>confdefs.h <<\_ACEOF
2595 @%:@define DPAREN_ARITHMETIC 1
2596 _ACEOF
2597
2598 fi
2599 if test $opt_brace_expansion = yes; then
2600 cat >>confdefs.h <<\_ACEOF
2601 @%:@define BRACE_EXPANSION 1
2602 _ACEOF
2603
2604 fi
2605 if test $opt_disabled_builtins = yes; then
2606 cat >>confdefs.h <<\_ACEOF
2607 @%:@define DISABLED_BUILTINS 1
2608 _ACEOF
2609
2610 fi
2611 if test $opt_command_timing = yes; then
2612 cat >>confdefs.h <<\_ACEOF
2613 @%:@define COMMAND_TIMING 1
2614 _ACEOF
2615
2616 fi
2617 if test $opt_xpg_echo = yes ; then
2618 cat >>confdefs.h <<\_ACEOF
2619 @%:@define DEFAULT_ECHO_TO_XPG 1
2620 _ACEOF
2621
2622 fi
2623 if test $opt_strict_posix = yes; then
2624 cat >>confdefs.h <<\_ACEOF
2625 @%:@define STRICT_POSIX 1
2626 _ACEOF
2627
2628 fi
2629 if test $opt_extended_glob = yes ; then
2630 cat >>confdefs.h <<\_ACEOF
2631 @%:@define EXTENDED_GLOB 1
2632 _ACEOF
2633
2634 fi
2635 if test $opt_extglob_default = yes; then
2636 cat >>confdefs.h <<\_ACEOF
2637 @%:@define EXTGLOB_DEFAULT 1
2638 _ACEOF
2639
2640 else
2641 cat >>confdefs.h <<\_ACEOF
2642 @%:@define EXTGLOB_DEFAULT 0
2643 _ACEOF
2644
2645 fi
2646 if test $opt_cond_command = yes ; then
2647 cat >>confdefs.h <<\_ACEOF
2648 @%:@define COND_COMMAND 1
2649 _ACEOF
2650
2651 fi
2652 if test $opt_cond_regexp = yes ; then
2653 cat >>confdefs.h <<\_ACEOF
2654 @%:@define COND_REGEXP 1
2655 _ACEOF
2656
2657 fi
2658 if test $opt_coproc = yes; then
2659 cat >>confdefs.h <<\_ACEOF
2660 @%:@define COPROCESS_SUPPORT 1
2661 _ACEOF
2662
2663 fi
2664 if test $opt_arith_for_command = yes; then
2665 cat >>confdefs.h <<\_ACEOF
2666 @%:@define ARITH_FOR_COMMAND 1
2667 _ACEOF
2668
2669 fi
2670 if test $opt_net_redirs = yes; then
2671 cat >>confdefs.h <<\_ACEOF
2672 @%:@define NETWORK_REDIRECTIONS 1
2673 _ACEOF
2674
2675 fi
2676 if test $opt_progcomp = yes; then
2677 cat >>confdefs.h <<\_ACEOF
2678 @%:@define PROGRAMMABLE_COMPLETION 1
2679 _ACEOF
2680
2681 fi
2682 if test $opt_multibyte = no; then
2683 cat >>confdefs.h <<\_ACEOF
2684 @%:@define NO_MULTIBYTE_SUPPORT 1
2685 _ACEOF
2686
2687 fi
2688 if test $opt_debugger = yes; then
2689 cat >>confdefs.h <<\_ACEOF
2690 @%:@define DEBUGGER 1
2691 _ACEOF
2692
2693 fi
2694 if test $opt_casemod_attrs = yes; then
2695 cat >>confdefs.h <<\_ACEOF
2696 @%:@define CASEMOD_ATTRS 1
2697 _ACEOF
2698
2699 fi
2700 if test $opt_casemod_expansions = yes; then
2701 cat >>confdefs.h <<\_ACEOF
2702 @%:@define CASEMOD_EXPANSIONS 1
2703 _ACEOF
2704
2705 fi
2706
2707 if test $opt_memscramble = yes; then
2708 cat >>confdefs.h <<\_ACEOF
2709 @%:@define MEMSCRAMBLE 1
2710 _ACEOF
2711
2712 fi
2713
2714 if test "$opt_minimal_config" = yes; then
2715 TESTSCRIPT=run-minimal
2716 else
2717 TESTSCRIPT=run-all
2718 fi
2719
2720 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2721 if test "$opt_separate_help" != no; then
2722 if test "$opt_separate_help" = "yes" ; then
2723 HELPDIR='${datadir}/bash'
2724 else
2725 HELPDIR=$opt_separate_help
2726 fi
2727 HELPDIRDEFINE='-H ${HELPDIR}'
2728 HELPINSTALL='install-help'
2729 fi
2730 HELPSTRINGS=
2731 if test "$opt_single_longdoc_strings" != "yes"; then
2732 HELPSTRINGS='-S'
2733 fi
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752 echo ""
2753 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2754 echo ""
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:$LINENO: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$ac_cv_prog_CC"; then
2801 ac_ct_CC=$CC
2802 # Extract the first word of "gcc", so it can be a program name with args.
2803 set dummy gcc; ac_word=$2
2804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CC="gcc"
2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 $as_echo "$ac_ct_CC" >&6; }
2833 else
2834 { $as_echo "$as_me:$LINENO: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2846 esac
2847 CC=$ac_ct_CC
2848 fi
2849 else
2850 CC="$ac_cv_prog_CC"
2851 fi
2852
2853 if test -z "$CC"; then
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}cc; ac_word=$2
2857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}cc"
2873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 fi
2894 if test -z "$CC"; then
2895 # Extract the first word of "cc", so it can be a program name with args.
2896 set dummy cc; ac_word=$2
2897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 ac_prog_rejected=no
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914 ac_prog_rejected=yes
2915 continue
2916 fi
2917 ac_cv_prog_CC="cc"
2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 if test $ac_prog_rejected = yes; then
2926 # We found a bogon in the path, so make sure we never use it.
2927 set dummy $ac_cv_prog_CC
2928 shift
2929 if test $@%:@ != 0; then
2930 # We chose a different compiler from the bogus one.
2931 # However, it has the same basename, so the bogon will be chosen
2932 # first if we set CC to just the basename; use the full file name.
2933 shift
2934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 fi
2936 fi
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2943 else
2944 { $as_echo "$as_me:$LINENO: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 for ac_prog in cl.exe
2953 do
2954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 test -n "$CC" && break
2992 done
2993 fi
2994 if test -z "$CC"; then
2995 ac_ct_CC=$CC
2996 for ac_prog in cl.exe
2997 do
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="$ac_prog"
3016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028 $as_echo "$ac_ct_CC" >&6; }
3029 else
3030 { $as_echo "$as_me:$LINENO: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 test -n "$ac_ct_CC" && break
3036 done
3037
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3048 fi
3049 fi
3050
3051 fi
3052
3053
3054 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details." >&5
3058 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details." >&2;}
3060 { (exit 1); exit 1; }; }; }
3061
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 { (ac_try="$ac_compiler --version >&5"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072 $as_echo "$ac_try_echo") >&5
3073 (eval "$ac_compiler --version >&5") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }
3077 { (ac_try="$ac_compiler -v >&5"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_compiler -v >&5") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (ac_try="$ac_compiler -V >&5"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compiler -V >&5") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }
3099
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106
3107 int
3108 main ()
3109 {
3110
3111 ;
3112 return 0;
3113 }
3114 _ACEOF
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3119 # of exeext.
3120 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
3127 ac_rmfiles=
3128 for ac_file in $ac_files
3129 do
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134 done
3135 rm -f $ac_rmfiles
3136
3137 if { (ac_try="$ac_link_default"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_link_default") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3152 # Autoconf.
3153 for ac_file in $ac_files ''
3154 do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
3173 break;;
3174 * )
3175 break;;
3176 esac
3177 done
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
3180 else
3181 ac_file=''
3182 fi
3183
3184 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3185 $as_echo "$ac_file" >&6; }
3186 if test -z "$ac_file"; then
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3193 See \`config.log' for more details." >&5
3194 $as_echo "$as_me: error: C compiler cannot create executables
3195 See \`config.log' for more details." >&2;}
3196 { (exit 77); exit 77; }; }; }
3197 fi
3198
3199 ac_exeext=$ac_cv_exeext
3200
3201 # Check that the compiler produces executables we can run. If not, either
3202 # the compiler is broken, or we cross compile.
3203 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3204 $as_echo_n "checking whether the C compiler works... " >&6; }
3205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3206 # If not cross compiling, check that we can run a simple program.
3207 if test "$cross_compiling" != yes; then
3208 if { ac_try='./$ac_file'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 cross_compiling=no
3220 else
3221 if test "$cross_compiling" = maybe; then
3222 cross_compiling=yes
3223 else
3224 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3227 If you meant to cross compile, use \`--host'.
3228 See \`config.log' for more details." >&5
3229 $as_echo "$as_me: error: cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }; }
3233 fi
3234 fi
3235 fi
3236 { $as_echo "$as_me:$LINENO: result: yes" >&5
3237 $as_echo "yes" >&6; }
3238
3239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240 ac_clean_files=$ac_clean_files_save
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3247
3248 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3249 $as_echo_n "checking for suffix of executables... " >&6; }
3250 if { (ac_try="$ac_link"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257 (eval "$ac_link") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; then
3261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3263 # work properly (i.e., refer to `conftest.exe'), while it won't with
3264 # `rm'.
3265 for ac_file in conftest.exe conftest conftest.*; do
3266 test -f "$ac_file" || continue
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 break;;
3271 * ) break;;
3272 esac
3273 done
3274 else
3275 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3278 See \`config.log' for more details." >&5
3279 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }; }
3282 fi
3283
3284 rm -f conftest$ac_cv_exeext
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3287
3288 rm -f conftest.$ac_ext
3289 EXEEXT=$ac_cv_exeext
3290 ac_exeext=$EXEEXT
3291 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3292 $as_echo_n "checking for suffix of object files... " >&6; }
3293 if test "${ac_cv_objext+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3295 else
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.o conftest.obj
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319 (eval "$ac_compile") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; then
3323 for ac_file in conftest.o conftest.obj conftest.*; do
3324 test -f "$ac_file" || continue;
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 break;;
3329 esac
3330 done
3331 else
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3342 fi
3343
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345 fi
3346 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365 #ifndef __GNUC__
3366 choke me
3367 #endif
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_compiler_gnu=yes
3392 else
3393 $as_echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 ac_compiler_gnu=no
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3401
3402 fi
3403 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3404 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3405 if test $ac_compiler_gnu = yes; then
3406 GCC=yes
3407 else
3408 GCC=
3409 fi
3410 ac_test_CFLAGS=${CFLAGS+set}
3411 ac_save_CFLAGS=$CFLAGS
3412 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3414 if test "${ac_cv_prog_cc_g+set}" = set; then
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_save_c_werror_flag=$ac_c_werror_flag
3418 ac_c_werror_flag=yes
3419 ac_cv_prog_cc_g=no
3420 CFLAGS="-g"
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (ac_try="$ac_compile"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3443 $as_echo "$ac_try_echo") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3454 ac_cv_prog_cc_g=yes
3455 else
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 CFLAGS=""
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3493 :
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3499 CFLAGS="-g"
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_prog_cc_g=yes
3534 else
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
3539 fi
3540
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 fi
3543
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3549 fi
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3551 $as_echo "$ac_cv_prog_cc_g" >&6; }
3552 if test "$ac_test_CFLAGS" = set; then
3553 CFLAGS=$ac_save_CFLAGS
3554 elif test $ac_cv_prog_cc_g = yes; then
3555 if test "$GCC" = yes; then
3556 CFLAGS="-g -O2"
3557 else
3558 CFLAGS="-g"
3559 fi
3560 else
3561 if test "$GCC" = yes; then
3562 CFLAGS="-O2"
3563 else
3564 CFLAGS=
3565 fi
3566 fi
3567 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3569 if test "${ac_cv_prog_cc_c89+set}" = set; then
3570 $as_echo_n "(cached) " >&6
3571 else
3572 ac_cv_prog_cc_c89=no
3573 ac_save_CC=$CC
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdio.h>
3582 #include <sys/types.h>
3583 #include <sys/stat.h>
3584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585 struct buf { int x; };
3586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587 static char *e (p, i)
3588 char **p;
3589 int i;
3590 {
3591 return p[i];
3592 }
3593 static char *f (char * (*g) (char **, int), char **p, ...)
3594 {
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601 }
3602
3603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
3606 as 'x'. The following induces an error, until -std is added to get
3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
3609 that's true only with -std. */
3610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611
3612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3614 #define FOO(x) 'x'
3615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621 int argc;
3622 char **argv;
3623 int
3624 main ()
3625 {
3626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 do
3634 CC="$ac_save_CC $ac_arg"
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_compile") 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3653 ac_cv_prog_cc_c89=$ac_arg
3654 else
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658
3659 fi
3660
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC
3666
3667 fi
3668 # AC_CACHE_VAL
3669 case "x$ac_cv_prog_cc_c89" in
3670 x)
3671 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3673 xno)
3674 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3676 *)
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680 esac
3681
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689
3690
3691
3692 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3693 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3694 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3696 else
3697 ac_check_lib_save_LIBS=$LIBS
3698 LIBS="-lcposix $LIBS"
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705
3706 /* Override any GCC internal prototype to avoid an error.
3707 Use char because int might match the return type of a GCC
3708 builtin and then its argument prototype would still apply. */
3709 #ifdef __cplusplus
3710 extern "C"
3711 #endif
3712 char strerror ();
3713 int
3714 main ()
3715 {
3716 return strerror ();
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.$ac_objext conftest$ac_exeext
3722 if { (ac_try="$ac_link"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729 (eval "$ac_link") 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest$ac_exeext && {
3739 test "$cross_compiling" = yes ||
3740 $as_test_x conftest$ac_exeext
3741 }; then
3742 ac_cv_lib_cposix_strerror=yes
3743 else
3744 $as_echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 ac_cv_lib_cposix_strerror=no
3748 fi
3749
3750 rm -rf conftest.dSYM
3751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3752 conftest$ac_exeext conftest.$ac_ext
3753 LIBS=$ac_check_lib_save_LIBS
3754 fi
3755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3756 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3757 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
3758 LIBS="$LIBS -lcposix"
3759 fi
3760
3761
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3772 CPP=
3773 fi
3774 if test -z "$CPP"; then
3775 if test "${ac_cv_prog_CPP+set}" = set; then
3776 $as_echo_n "(cached) " >&6
3777 else
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780 do
3781 ac_preproc_ok=false
3782 for ac_c_preproc_warn_flag in '' yes
3783 do
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 @%:@ifdef __STDC__
3797 @%:@ include <limits.h>
3798 @%:@else
3799 @%:@ include <assert.h>
3800 @%:@endif
3801 Syntax error
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3809 $as_echo "$ac_try_echo") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 }; then
3820 :
3821 else
3822 $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 # Broken: fails on valid input.
3826 continue
3827 fi
3828
3829 rm -f conftest.err conftest.$ac_ext
3830
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 @%:@include <ac_nonexistent.h>
3840 _ACEOF
3841 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3847 $as_echo "$ac_try_echo") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 }; then
3858 # Broken: success on invalid input.
3859 continue
3860 else
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 # Passes both tests.
3865 ac_preproc_ok=:
3866 break
3867 fi
3868
3869 rm -f conftest.err conftest.$ac_ext
3870
3871 done
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then
3875 break
3876 fi
3877
3878 done
3879 ac_cv_prog_CPP=$CPP
3880
3881 fi
3882 CPP=$ac_cv_prog_CPP
3883 else
3884 ac_cv_prog_CPP=$CPP
3885 fi
3886 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3887 $as_echo "$CPP" >&6; }
3888 ac_preproc_ok=false
3889 for ac_c_preproc_warn_flag in '' yes
3890 do
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h. */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 @%:@ifdef __STDC__
3904 @%:@ include <limits.h>
3905 @%:@else
3906 @%:@ include <assert.h>
3907 @%:@endif
3908 Syntax error
3909 _ACEOF
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3916 $as_echo "$ac_try_echo") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null && {
3924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 }; then
3927 :
3928 else
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 # Broken: fails on valid input.
3933 continue
3934 fi
3935
3936 rm -f conftest.err conftest.$ac_ext
3937
3938 # OK, works on sane cases. Now check whether nonexistent headers
3939 # can be detected and how.
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 @%:@include <ac_nonexistent.h>
3947 _ACEOF
3948 if { (ac_try="$ac_cpp conftest.$ac_ext"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3954 $as_echo "$ac_try_echo") >&5
3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null && {
3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 }; then
3965 # Broken: success on invalid input.
3966 continue
3967 else
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 # Passes both tests.
3972 ac_preproc_ok=:
3973 break
3974 fi
3975
3976 rm -f conftest.err conftest.$ac_ext
3977
3978 done
3979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3980 rm -f conftest.err conftest.$ac_ext
3981 if $ac_preproc_ok; then
3982 :
3983 else
3984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3987 See \`config.log' for more details." >&5
3988 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3989 See \`config.log' for more details." >&2;}
3990 { (exit 1); exit 1; }; }; }
3991 fi
3992
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999
4000 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4002 if test "${ac_cv_path_GREP+set}" = set; then
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -z "$GREP"; then
4006 ac_path_GREP_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010 do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_prog in grep ggrep; do
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4017 # Check for GNU ac_path_GREP and select it if it is found.
4018 # Check for GNU $ac_path_GREP
4019 case `"$ac_path_GREP" --version 2>&1` in
4020 *GNU*)
4021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4022 *)
4023 ac_count=0
4024 $as_echo_n 0123456789 >"conftest.in"
4025 while :
4026 do
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 $as_echo 'GREP' >> "conftest.nl"
4031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033 ac_count=`expr $ac_count + 1`
4034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_GREP="$ac_path_GREP"
4037 ac_path_GREP_max=$ac_count
4038 fi
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4041 done
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 esac
4044
4045 $ac_path_GREP_found && break 3
4046 done
4047 done
4048 done
4049 IFS=$as_save_IFS
4050 if test -z "$ac_cv_path_GREP"; then
4051 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4054 fi
4055 else
4056 ac_cv_path_GREP=$GREP
4057 fi
4058
4059 fi
4060 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4061 $as_echo "$ac_cv_path_GREP" >&6; }
4062 GREP="$ac_cv_path_GREP"
4063
4064
4065 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4066 $as_echo_n "checking for egrep... " >&6; }
4067 if test "${ac_cv_path_EGREP+set}" = set; then
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4071 then ac_cv_path_EGREP="$GREP -E"
4072 else
4073 if test -z "$EGREP"; then
4074 ac_path_EGREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in egrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4085 # Check for GNU ac_path_EGREP and select it if it is found.
4086 # Check for GNU $ac_path_EGREP
4087 case `"$ac_path_EGREP" --version 2>&1` in
4088 *GNU*)
4089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4090 *)
4091 ac_count=0
4092 $as_echo_n 0123456789 >"conftest.in"
4093 while :
4094 do
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'EGREP' >> "conftest.nl"
4099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 ac_count=`expr $ac_count + 1`
4102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_EGREP="$ac_path_EGREP"
4105 ac_path_EGREP_max=$ac_count
4106 fi
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4109 done
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113 $ac_path_EGREP_found && break 3
4114 done
4115 done
4116 done
4117 IFS=$as_save_IFS
4118 if test -z "$ac_cv_path_EGREP"; then
4119 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121 { (exit 1); exit 1; }; }
4122 fi
4123 else
4124 ac_cv_path_EGREP=$EGREP
4125 fi
4126
4127 fi
4128 fi
4129 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 $as_echo "$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4132
4133
4134 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4135 $as_echo_n "checking for ANSI C header files... " >&6; }
4136 if test "${ac_cv_header_stdc+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <stdlib.h>
4146 #include <stdarg.h>
4147 #include <string.h>
4148 #include <float.h>
4149
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (ac_try="$ac_compile"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4165 $as_echo "$ac_try_echo") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && {
4173 test -z "$ac_c_werror_flag" ||
4174 test ! -s conftest.err
4175 } && test -s conftest.$ac_objext; then
4176 ac_cv_header_stdc=yes
4177 else
4178 $as_echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 ac_cv_header_stdc=no
4182 fi
4183
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185
4186 if test $ac_cv_header_stdc = yes; then
4187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 #include <string.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "memchr" >/dev/null 2>&1; then
4199 :
4200 else
4201 ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <stdlib.h>
4216
4217 _ACEOF
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 $EGREP "free" >/dev/null 2>&1; then
4220 :
4221 else
4222 ac_cv_header_stdc=no
4223 fi
4224 rm -f conftest*
4225
4226 fi
4227
4228 if test $ac_cv_header_stdc = yes; then
4229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230 if test "$cross_compiling" = yes; then
4231 :
4232 else
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <ctype.h>
4240 #include <stdlib.h>
4241 #if ((' ' & 0x0FF) == 0x020)
4242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4244 #else
4245 # define ISLOWER(c) \
4246 (('a' <= (c) && (c) <= 'i') \
4247 || ('j' <= (c) && (c) <= 'r') \
4248 || ('s' <= (c) && (c) <= 'z'))
4249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4250 #endif
4251
4252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 int
4254 main ()
4255 {
4256 int i;
4257 for (i = 0; i < 256; i++)
4258 if (XOR (islower (i), ISLOWER (i))
4259 || toupper (i) != TOUPPER (i))
4260 return 2;
4261 return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest$ac_exeext
4265 if { (ac_try="$ac_link"
4266 case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4271 $as_echo "$ac_try_echo") >&5
4272 (eval "$ac_link") 2>&5
4273 ac_status=$?
4274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_try") 2>&5
4283 ac_status=$?
4284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 :
4287 else
4288 $as_echo "$as_me: program exited with status $ac_status" >&5
4289 $as_echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ( exit $ac_status )
4293 ac_cv_header_stdc=no
4294 fi
4295 rm -rf conftest.dSYM
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4297 fi
4298
4299
4300 fi
4301 fi
4302 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 $as_echo "$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4305
4306 cat >>confdefs.h <<\_ACEOF
4307 @%:@define STDC_HEADERS 1
4308 _ACEOF
4309
4310 fi
4311
4312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4324 do
4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 $as_echo_n "checking for $ac_header... " >&6; }
4328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 $ac_includes_default
4338
4339 @%:@include <$ac_header>
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4348 $as_echo "$ac_try_echo") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && {
4356 test -z "$ac_c_werror_flag" ||
4357 test ! -s conftest.err
4358 } && test -s conftest.$ac_objext; then
4359 eval "$as_ac_Header=yes"
4360 else
4361 $as_echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 eval "$as_ac_Header=no"
4365 fi
4366
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 fi
4369 ac_res=`eval 'as_val=${'$as_ac_Header'}
4370 $as_echo "$as_val"'`
4371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4372 $as_echo "$ac_res" >&6; }
4373 as_val=`eval 'as_val=${'$as_ac_Header'}
4374 $as_echo "$as_val"'`
4375 if test "x$as_val" = x""yes; then
4376 cat >>confdefs.h <<_ACEOF
4377 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378 _ACEOF
4379
4380 fi
4381
4382 done
4383
4384
4385
4386 if test "${ac_cv_header_minix_config_h+set}" = set; then
4387 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4388 $as_echo_n "checking for minix/config.h... " >&6; }
4389 if test "${ac_cv_header_minix_config_h+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4391 fi
4392 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4393 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4394 else
4395 # Is the header compilable?
4396 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4397 $as_echo_n "checking minix/config.h usability... " >&6; }
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 $ac_includes_default
4405 @%:@include <minix/config.h>
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (ac_try="$ac_compile"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4414 $as_echo "$ac_try_echo") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 ac_header_compiler=yes
4426 else
4427 $as_echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 ac_header_compiler=no
4431 fi
4432
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4435 $as_echo "$ac_header_compiler" >&6; }
4436
4437 # Is the header present?
4438 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4439 $as_echo_n "checking minix/config.h presence... " >&6; }
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 @%:@include <minix/config.h>
4447 _ACEOF
4448 if { (ac_try="$ac_cpp conftest.$ac_ext"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4454 $as_echo "$ac_try_echo") >&5
4455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null && {
4462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4464 }; then
4465 ac_header_preproc=yes
4466 else
4467 $as_echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 ac_header_preproc=no
4471 fi
4472
4473 rm -f conftest.err conftest.$ac_ext
4474 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4475 $as_echo "$ac_header_preproc" >&6; }
4476
4477 # So? What about this header?
4478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4479 yes:no: )
4480 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4481 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4482 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4483 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4484 ac_header_preproc=yes
4485 ;;
4486 no:yes:* )
4487 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4488 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4489 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4490 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4491 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4492 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4493 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4494 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4495 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4496 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4497 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4498 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4499 ( cat <<\_ASBOX
4500 @%:@@%:@ ------------------------------- @%:@@%:@
4501 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
4502 @%:@@%:@ ------------------------------- @%:@@%:@
4503 _ASBOX
4504 ) | sed "s/^/$as_me: WARNING: /" >&2
4505 ;;
4506 esac
4507 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4508 $as_echo_n "checking for minix/config.h... " >&6; }
4509 if test "${ac_cv_header_minix_config_h+set}" = set; then
4510 $as_echo_n "(cached) " >&6
4511 else
4512 ac_cv_header_minix_config_h=$ac_header_preproc
4513 fi
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4515 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4516
4517 fi
4518 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4519 MINIX=yes
4520 else
4521 MINIX=
4522 fi
4523
4524
4525 if test "$MINIX" = yes; then
4526
4527 cat >>confdefs.h <<\_ACEOF
4528 @%:@define _POSIX_SOURCE 1
4529 _ACEOF
4530
4531
4532 cat >>confdefs.h <<\_ACEOF
4533 @%:@define _POSIX_1_SOURCE 2
4534 _ACEOF
4535
4536
4537 cat >>confdefs.h <<\_ACEOF
4538 @%:@define _MINIX 1
4539 _ACEOF
4540
4541 fi
4542
4543
4544
4545 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4546 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4547 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4548 $as_echo_n "(cached) " >&6
4549 else
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556
4557 # define __EXTENSIONS__ 1
4558 $ac_includes_default
4559 int
4560 main ()
4561 {
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (ac_try="$ac_compile"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_compile") 2>conftest.er1
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && {
4582 test -z "$ac_c_werror_flag" ||
4583 test ! -s conftest.err
4584 } && test -s conftest.$ac_objext; then
4585 ac_cv_safe_to_define___extensions__=yes
4586 else
4587 $as_echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 ac_cv_safe_to_define___extensions__=no
4591 fi
4592
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4596 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4597 test $ac_cv_safe_to_define___extensions__ = yes &&
4598 cat >>confdefs.h <<\_ACEOF
4599 @%:@define __EXTENSIONS__ 1
4600 _ACEOF
4601
4602 cat >>confdefs.h <<\_ACEOF
4603 @%:@define _ALL_SOURCE 1
4604 _ACEOF
4605
4606 cat >>confdefs.h <<\_ACEOF
4607 @%:@define _GNU_SOURCE 1
4608 _ACEOF
4609
4610 cat >>confdefs.h <<\_ACEOF
4611 @%:@define _POSIX_PTHREAD_SEMANTICS 1
4612 _ACEOF
4613
4614 cat >>confdefs.h <<\_ACEOF
4615 @%:@define _TANDEM_SOURCE 1
4616 _ACEOF
4617
4618
4619
4620 @%:@ Check whether --enable-largefile was given.
4621 if test "${enable_largefile+set}" = set; then
4622 enableval=$enable_largefile;
4623 fi
4624
4625 if test "$enable_largefile" != no; then
4626
4627 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4628 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4629 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4630 $as_echo_n "(cached) " >&6
4631 else
4632 ac_cv_sys_largefile_CC=no
4633 if test "$GCC" != yes; then
4634 ac_save_CC=$CC
4635 while :; do
4636 # IRIX 6.2 and later do not support large files by default,
4637 # so use the C compiler's -n32 option if that helps.
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 @%:@include <sys/types.h>
4645 /* Check that off_t can represent 2**63 - 1 correctly.
4646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4647 since some C++ compilers masquerading as C compilers
4648 incorrectly reject 9223372036854775807. */
4649 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4651 && LARGE_OFF_T % 2147483647 == 1)
4652 ? 1 : -1];
4653 int
4654 main ()
4655 {
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (ac_try="$ac_compile"
4663 case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 break
4680 else
4681 $as_echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684
4685 fi
4686
4687 rm -f core conftest.err conftest.$ac_objext
4688 CC="$CC -n32"
4689 rm -f conftest.$ac_objext
4690 if { (ac_try="$ac_compile"
4691 case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697 (eval "$ac_compile") 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && {
4704 test -z "$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4706 } && test -s conftest.$ac_objext; then
4707 ac_cv_sys_largefile_CC=' -n32'; break
4708 else
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712
4713 fi
4714
4715 rm -f core conftest.err conftest.$ac_objext
4716 break
4717 done
4718 CC=$ac_save_CC
4719 rm -f conftest.$ac_ext
4720 fi
4721 fi
4722 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4723 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4724 if test "$ac_cv_sys_largefile_CC" != no; then
4725 CC=$CC$ac_cv_sys_largefile_CC
4726 fi
4727
4728 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4729 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4730 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4732 else
4733 while :; do
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 @%:@include <sys/types.h>
4741 /* Check that off_t can represent 2**63 - 1 correctly.
4742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4743 since some C++ compilers masquerading as C compilers
4744 incorrectly reject 9223372036854775807. */
4745 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4747 && LARGE_OFF_T % 2147483647 == 1)
4748 ? 1 : -1];
4749 int
4750 main ()
4751 {
4752
4753 ;
4754 return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (ac_try="$ac_compile"
4759 case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762 esac
4763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4764 $as_echo "$ac_try_echo") >&5
4765 (eval "$ac_compile") 2>conftest.er1
4766 ac_status=$?
4767 grep -v '^ *+' conftest.er1 >conftest.err
4768 rm -f conftest.er1
4769 cat conftest.err >&5
4770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } && {
4772 test -z "$ac_c_werror_flag" ||
4773 test ! -s conftest.err
4774 } && test -s conftest.$ac_objext; then
4775 ac_cv_sys_file_offset_bits=no; break
4776 else
4777 $as_echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4779
4780
4781 fi
4782
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 @%:@define _FILE_OFFSET_BITS 64
4791 @%:@include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4799 ? 1 : -1];
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (ac_try="$ac_compile"
4810 case "(($ac_try" in
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4813 esac
4814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4815 $as_echo "$ac_try_echo") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4826 ac_cv_sys_file_offset_bits=64; break
4827 else
4828 $as_echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4830
4831
4832 fi
4833
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cv_sys_file_offset_bits=unknown
4836 break
4837 done
4838 fi
4839 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4840 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4841 case $ac_cv_sys_file_offset_bits in #(
4842 no | unknown) ;;
4843 *)
4844 cat >>confdefs.h <<_ACEOF
4845 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4846 _ACEOF
4847 ;;
4848 esac
4849 rm -rf conftest*
4850 if test $ac_cv_sys_file_offset_bits = unknown; then
4851 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4852 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4853 if test "${ac_cv_sys_large_files+set}" = set; then
4854 $as_echo_n "(cached) " >&6
4855 else
4856 while :; do
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h. */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 @%:@include <sys/types.h>
4864 /* Check that off_t can represent 2**63 - 1 correctly.
4865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4866 since some C++ compilers masquerading as C compilers
4867 incorrectly reject 9223372036854775807. */
4868 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4870 && LARGE_OFF_T % 2147483647 == 1)
4871 ? 1 : -1];
4872 int
4873 main ()
4874 {
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (ac_try="$ac_compile"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_compile") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest.$ac_objext; then
4898 ac_cv_sys_large_files=no; break
4899 else
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903
4904 fi
4905
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 @%:@define _LARGE_FILES 1
4914 @%:@include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4922 ? 1 : -1];
4923 int
4924 main ()
4925 {
4926
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4949 ac_cv_sys_large_files=1; break
4950 else
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954
4955 fi
4956
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_cv_sys_large_files=unknown
4959 break
4960 done
4961 fi
4962 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4963 $as_echo "$ac_cv_sys_large_files" >&6; }
4964 case $ac_cv_sys_large_files in #(
4965 no | unknown) ;;
4966 *)
4967 cat >>confdefs.h <<_ACEOF
4968 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4969 _ACEOF
4970 ;;
4971 esac
4972 rm -rf conftest*
4973 fi
4974 fi
4975
4976
4977
4978 SIGNAMES_O=
4979 SIGNAMES_H=lsignames.h
4980
4981
4982
4983 CROSS_COMPILE=
4984 if test "x$cross_compiling" = "xyes"; then
4985 case "${host}" in
4986 *-cygwin*)
4987 cross_cache=${srcdir}/cross-build/cygwin32.cache
4988 ;;
4989 *-mingw*)
4990 cross_cache=${srcdir}/cross-build/cygwin32.cache
4991 ;;
4992 i[3456]86-*-beos*)
4993 cross_cache=${srcdir}/cross-build/x86-beos.cache
4994 ;;
4995 *) echo "configure: cross-compiling for $host is not supported" >&2
4996 ;;
4997 esac
4998 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4999 echo "loading cross-build cache file ${cross_cache}"
5000 . ${cross_cache}
5001 fi
5002 unset cross_cache
5003 SIGNAMES_O='signames.o'
5004 CROSS_COMPILE='-DCROSS_COMPILING'
5005
5006 fi
5007
5008
5009
5010 if test -z "$CC_FOR_BUILD"; then
5011 if test "x$cross_compiling" = "xno"; then
5012 CC_FOR_BUILD='$(CC)'
5013 else
5014 CC_FOR_BUILD=gcc
5015 fi
5016 fi
5017
5018
5019
5020 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5021
5022 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5023
5024 if test "$opt_profiling" = "yes"; then
5025 PROFILE_FLAGS=-pg
5026 case "$host_os" in
5027 solaris2*) ;;
5028 *) opt_static_link=yes ;;
5029 esac
5030 DEBUG= MALLOC_DEBUG=
5031 fi
5032
5033 if test "$opt_static_link" = yes; then
5034 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5035 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
5036 STATIC_LD="-static"
5037 case "$host_os" in
5038 solaris2*) ;;
5039 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5040 esac
5041 fi
5042 fi
5043
5044 if test "X$cross_compiling" = "Xno"; then
5045 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5046 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5047 else
5048 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5049 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5050 fi
5051
5052 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063 if test $ac_cv_c_compiler_gnu = yes; then
5064 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5065 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5066 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5067 $as_echo_n "(cached) " >&6
5068 else
5069 ac_pattern="Autoconf.*'x'"
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sgtty.h>
5077 Autoconf TIOCGETP
5078 _ACEOF
5079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5081 ac_cv_prog_gcc_traditional=yes
5082 else
5083 ac_cv_prog_gcc_traditional=no
5084 fi
5085 rm -f conftest*
5086
5087
5088 if test $ac_cv_prog_gcc_traditional = no; then
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <termio.h>
5096 Autoconf TCGETA
5097 _ACEOF
5098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5099 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5100 ac_cv_prog_gcc_traditional=yes
5101 fi
5102 rm -f conftest*
5103
5104 fi
5105 fi
5106 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5107 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5108 if test $ac_cv_prog_gcc_traditional = yes; then
5109 CC="$CC -traditional"
5110 fi
5111 fi
5112
5113
5114
5115 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
5116 then
5117 # If the user specified --with-installed-readline=PREFIX and PREFIX
5118 # is not `yes', set ac_cv_rl_prefix to PREFIX
5119 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
5120
5121
5122 if test "X$bash_cv_termcap_lib" = "X"; then
5123 _bash_needmsg=yes
5124 else
5125 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5126 $as_echo_n "checking which library has the termcap functions... " >&6; }
5127 _bash_needmsg=
5128 fi
5129 if test "${bash_cv_termcap_lib+set}" = set; then
5130 $as_echo_n "(cached) " >&6
5131 else
5132 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5133 $as_echo_n "checking for tgetent... " >&6; }
5134 if test "${ac_cv_func_tgetent+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5145 #define tgetent innocuous_tgetent
5146
5147 /* System header to define __stub macros and hopefully few prototypes,
5148 which can conflict with char tgetent (); below.
5149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5150 <limits.h> exists even on freestanding compilers. */
5151
5152 #ifdef __STDC__
5153 # include <limits.h>
5154 #else
5155 # include <assert.h>
5156 #endif
5157
5158 #undef tgetent
5159
5160 /* Override any GCC internal prototype to avoid an error.
5161 Use char because int might match the return type of a GCC
5162 builtin and then its argument prototype would still apply. */
5163 #ifdef __cplusplus
5164 extern "C"
5165 #endif
5166 char tgetent ();
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined __stub_tgetent || defined __stub___tgetent
5171 choke me
5172 #endif
5173
5174 int
5175 main ()
5176 {
5177 return tgetent ();
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (ac_try="$ac_link"
5184 case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187 esac
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_link") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest$ac_exeext && {
5200 test "$cross_compiling" = yes ||
5201 $as_test_x conftest$ac_exeext
5202 }; then
5203 ac_cv_func_tgetent=yes
5204 else
5205 $as_echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_cv_func_tgetent=no
5209 fi
5210
5211 rm -rf conftest.dSYM
5212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5213 conftest$ac_exeext conftest.$ac_ext
5214 fi
5215 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5216 $as_echo "$ac_cv_func_tgetent" >&6; }
5217 if test "x$ac_cv_func_tgetent" = x""yes; then
5218 bash_cv_termcap_lib=libc
5219 else
5220 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5221 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5222 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5224 else
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-ltermcap $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233
5234 /* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 char tgetent ();
5241 int
5242 main ()
5243 {
5244 return tgetent ();
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256 $as_echo "$ac_try_echo") >&5
5257 (eval "$ac_link") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext && {
5267 test "$cross_compiling" = yes ||
5268 $as_test_x conftest$ac_exeext
5269 }; then
5270 ac_cv_lib_termcap_tgetent=yes
5271 else
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 ac_cv_lib_termcap_tgetent=no
5276 fi
5277
5278 rm -rf conftest.dSYM
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5282 fi
5283 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5284 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5285 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
5286 bash_cv_termcap_lib=libtermcap
5287 else
5288 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5289 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5290 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5291 $as_echo_n "(cached) " >&6
5292 else
5293 ac_check_lib_save_LIBS=$LIBS
5294 LIBS="-ltinfo $LIBS"
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char tgetent ();
5309 int
5310 main ()
5311 {
5312 return tgetent ();
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (ac_try="$ac_link"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_link") 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest$ac_exeext && {
5335 test "$cross_compiling" = yes ||
5336 $as_test_x conftest$ac_exeext
5337 }; then
5338 ac_cv_lib_tinfo_tgetent=yes
5339 else
5340 $as_echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_cv_lib_tinfo_tgetent=no
5344 fi
5345
5346 rm -rf conftest.dSYM
5347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5348 conftest$ac_exeext conftest.$ac_ext
5349 LIBS=$ac_check_lib_save_LIBS
5350 fi
5351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5352 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5353 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5354 bash_cv_termcap_lib=libtinfo
5355 else
5356 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5357 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
5358 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5359 $as_echo_n "(cached) " >&6
5360 else
5361 ac_check_lib_save_LIBS=$LIBS
5362 LIBS="-lcurses $LIBS"
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369
5370 /* Override any GCC internal prototype to avoid an error.
5371 Use char because int might match the return type of a GCC
5372 builtin and then its argument prototype would still apply. */
5373 #ifdef __cplusplus
5374 extern "C"
5375 #endif
5376 char tgetent ();
5377 int
5378 main ()
5379 {
5380 return tgetent ();
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5387 case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5392 $as_echo "$ac_try_echo") >&5
5393 (eval "$ac_link") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_c_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest$ac_exeext && {
5403 test "$cross_compiling" = yes ||
5404 $as_test_x conftest$ac_exeext
5405 }; then
5406 ac_cv_lib_curses_tgetent=yes
5407 else
5408 $as_echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_cv_lib_curses_tgetent=no
5412 fi
5413
5414 rm -rf conftest.dSYM
5415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5418 fi
5419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5420 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5421 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
5422 bash_cv_termcap_lib=libcurses
5423 else
5424 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5425 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
5426 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5427 $as_echo_n "(cached) " >&6
5428 else
5429 ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-lncurses $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437
5438 /* Override any GCC internal prototype to avoid an error.
5439 Use char because int might match the return type of a GCC
5440 builtin and then its argument prototype would still apply. */
5441 #ifdef __cplusplus
5442 extern "C"
5443 #endif
5444 char tgetent ();
5445 int
5446 main ()
5447 {
5448 return tgetent ();
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (ac_try="$ac_link"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5460 $as_echo "$ac_try_echo") >&5
5461 (eval "$ac_link") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest$ac_exeext && {
5471 test "$cross_compiling" = yes ||
5472 $as_test_x conftest$ac_exeext
5473 }; then
5474 ac_cv_lib_ncurses_tgetent=yes
5475 else
5476 $as_echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 ac_cv_lib_ncurses_tgetent=no
5480 fi
5481
5482 rm -rf conftest.dSYM
5483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5484 conftest$ac_exeext conftest.$ac_ext
5485 LIBS=$ac_check_lib_save_LIBS
5486 fi
5487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5488 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5489 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
5490 bash_cv_termcap_lib=libncurses
5491 else
5492 bash_cv_termcap_lib=gnutermcap
5493 fi
5494
5495 fi
5496
5497 fi
5498
5499 fi
5500
5501 fi
5502
5503 fi
5504
5505 if test "X$_bash_needmsg" = "Xyes"; then
5506 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5507 $as_echo_n "checking which library has the termcap functions... " >&6; }
5508 fi
5509 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5510 $as_echo "using $bash_cv_termcap_lib" >&6; }
5511 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5512 LDFLAGS="$LDFLAGS -L./lib/termcap"
5513 TERMCAP_LIB="./lib/termcap/libtermcap.a"
5514 TERMCAP_DEP="./lib/termcap/libtermcap.a"
5515 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5516 TERMCAP_LIB=-ltermcap
5517 TERMCAP_DEP=
5518 elif test $bash_cv_termcap_lib = libtinfo; then
5519 TERMCAP_LIB=-ltinfo
5520 TERMCAP_DEP=
5521 elif test $bash_cv_termcap_lib = libncurses; then
5522 TERMCAP_LIB=-lncurses
5523 TERMCAP_DEP=
5524 elif test $bash_cv_termcap_lib = libc; then
5525 TERMCAP_LIB=
5526 TERMCAP_DEP=
5527 else
5528 TERMCAP_LIB=-lcurses
5529 TERMCAP_DEP=
5530 fi
5531
5532
5533
5534
5535 { $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5536 $as_echo_n "checking version of installed readline library... " >&6; }
5537
5538 # What a pain in the ass this is.
5539
5540 # save cpp and ld options
5541 _save_CFLAGS="$CFLAGS"
5542 _save_LDFLAGS="$LDFLAGS"
5543 _save_LIBS="$LIBS"
5544
5545 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5546 # allows the caller to do something like $_rl_prefix=$withval if the user
5547 # specifies --with-installed-readline=PREFIX as an argument to configure
5548
5549 if test -z "$ac_cv_rl_prefix"; then
5550 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5551 fi
5552
5553 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5554 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5555
5556 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5557 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5558 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5559
5560 if test "${ac_cv_rl_version+set}" = set; then
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test "$cross_compiling" = yes; then
5564 ac_cv_rl_version='4.2'
5565 else
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572
5573 #include <stdio.h>
5574 #include <readline/readline.h>
5575
5576 extern int rl_gnu_readline_p;
5577
5578 main()
5579 {
5580 FILE *fp;
5581 fp = fopen("conftest.rlv", "w");
5582 if (fp == 0)
5583 exit(1);
5584 if (rl_gnu_readline_p != 1)
5585 fprintf(fp, "0.0\n");
5586 else
5587 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
5588 fclose(fp);
5589 exit(0);
5590 }
5591
5592 _ACEOF
5593 rm -f conftest$ac_exeext
5594 if { (ac_try="$ac_link"
5595 case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5600 $as_echo "$ac_try_echo") >&5
5601 (eval "$ac_link") 2>&5
5602 ac_status=$?
5603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5610 $as_echo "$ac_try_echo") >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_rl_version=`cat conftest.rlv`
5616 else
5617 $as_echo "$as_me: program exited with status $ac_status" >&5
5618 $as_echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ( exit $ac_status )
5622 ac_cv_rl_version='0.0'
5623 fi
5624 rm -rf conftest.dSYM
5625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5626 fi
5627
5628
5629 fi
5630
5631
5632 CFLAGS="$_save_CFLAGS"
5633 LDFLAGS="$_save_LDFLAGS"
5634 LIBS="$_save_LIBS"
5635
5636 RL_MAJOR=0
5637 RL_MINOR=0
5638
5639 # (
5640 case "$ac_cv_rl_version" in
5641 2*|3*|4*|5*|6*|7*|8*|9*)
5642 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
5643 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
5644 ;;
5645 esac
5646
5647 # (((
5648 case $RL_MAJOR in
5649 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5650 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5651 *) _RL_MAJOR=00 ;;
5652 esac
5653
5654 # (((
5655 case $RL_MINOR in
5656 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5657 [0-9]) _RL_MINOR=0$RL_MINOR ;;
5658 *) _RL_MINOR=00 ;;
5659 esac
5660
5661 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5662
5663 # Readline versions greater than 4.2 have these defines in readline.h
5664
5665 if test $ac_cv_rl_version = '0.0' ; then
5666 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5667 $as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
5668 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5669 # set these for use by the caller
5670 RL_PREFIX=$ac_cv_rl_prefix
5671 RL_LIBDIR=$ac_cv_rl_libdir
5672 RL_INCLUDEDIR=$ac_cv_rl_includedir
5673 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5674 $as_echo "$ac_cv_rl_version" >&6; }
5675 else
5676
5677
5678 cat >>confdefs.h <<_ACEOF
5679 @%:@define RL_READLINE_VERSION $RL_VERSION
5680 _ACEOF
5681
5682
5683 cat >>confdefs.h <<_ACEOF
5684 @%:@define RL_VERSION_MAJOR $RL_MAJOR
5685 _ACEOF
5686
5687
5688 cat >>confdefs.h <<_ACEOF
5689 @%:@define RL_VERSION_MINOR $RL_MINOR
5690 _ACEOF
5691
5692
5693
5694
5695
5696
5697 # set these for use by the caller
5698 RL_PREFIX=$ac_cv_rl_prefix
5699 RL_LIBDIR=$ac_cv_rl_libdir
5700 RL_INCLUDEDIR=$ac_cv_rl_includedir
5701
5702 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5703 $as_echo "$ac_cv_rl_version" >&6; }
5704
5705 fi
5706
5707
5708 case "$ac_cv_rl_version" in
5709 5*|6*|7*|8*|9*) ;;
5710 *) opt_with_installed_readline=no
5711 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5712 $as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5713 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5714 $as_echo "$as_me: WARNING: using private bash version" >&2;}
5715 ;;
5716 esac
5717 fi
5718
5719 TILDE_LIB=-ltilde
5720 if test $opt_readline = yes; then
5721 cat >>confdefs.h <<\_ACEOF
5722 @%:@define READLINE 1
5723 _ACEOF
5724
5725 if test "$opt_with_installed_readline" != "no" ; then
5726 case "$opt_with_installed_readline" in
5727 yes) RL_INCLUDE= ;;
5728 *) case "$RL_INCLUDEDIR" in
5729 /usr/include) ;;
5730 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5731 esac
5732 ;;
5733 esac
5734 READLINE_DEP=
5735 READLINE_LIB=-lreadline
5736 # section for OS versions that don't allow unresolved symbols
5737 # to be compiled into dynamic libraries.
5738 case "$host_os" in
5739 cygwin*) TILDE_LIB= ;;
5740 esac
5741 else
5742 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5743 READLINE_DEP='$(READLINE_LIBRARY)'
5744 # section for OS versions that ship an older/broken version of
5745 # readline as a standard dynamic library and don't allow a
5746 # static version specified as -llibname to override the
5747 # dynamic version
5748 case "${host_os}" in
5749 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
5750 *) READLINE_LIB=-lreadline ;;
5751 esac
5752 fi
5753 else
5754 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5755 READLINE_LIB= READLINE_DEP=
5756 fi
5757 if test $opt_history = yes || test $opt_bang_history = yes; then
5758 if test $opt_history = yes; then
5759 cat >>confdefs.h <<\_ACEOF
5760 @%:@define HISTORY 1
5761 _ACEOF
5762
5763 fi
5764 if test $opt_bang_history = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 @%:@define BANG_HISTORY 1
5767 _ACEOF
5768
5769 fi
5770 if test "$opt_with_installed_readline" != "no"; then
5771 HIST_LIBDIR=$RL_LIBDIR
5772 HISTORY_DEP=
5773 HISTORY_LIB=-lhistory
5774 case "$opt_with_installed_readline" in
5775 yes) RL_INCLUDE= ;;
5776 *) case "$RL_INCLUDEDIR" in
5777 /usr/include) ;;
5778 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5779 esac
5780 ;;
5781 esac
5782 else
5783 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5784 HISTORY_DEP='$(HISTORY_LIBRARY)'
5785 # section for OS versions that ship an older version of
5786 # readline as a standard dynamic library and don't allow a
5787 # static version specified as -llibname to override the
5788 # dynamic version
5789 case "${host_os}" in
5790 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
5791 *) HISTORY_LIB=-lhistory ;;
5792 esac
5793 fi
5794 else
5795 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5796 HISTORY_LIB= HISTORY_DEP=
5797 fi
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 # Find a good install program. We prefer a C program (faster),
5810 # so one script is as good as another. But avoid the broken or
5811 # incompatible versions:
5812 # SysV /etc/install, /usr/sbin/install
5813 # SunOS /usr/etc/install
5814 # IRIX /sbin/install
5815 # AIX /bin/install
5816 # AmigaOS /C/install, which installs bootblocks on floppy discs
5817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5820 # OS/2's system install, which has a completely different semantic
5821 # ./install, which can be erroneously created by make from ./install.sh.
5822 # Reject install programs that cannot install multiple files.
5823 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5824 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5825 if test -z "$INSTALL"; then
5826 if test "${ac_cv_path_install+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 # Account for people who put trailing slashes in PATH elements.
5835 case $as_dir/ in
5836 ./ | .// | /cC/* | \
5837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5838 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5839 /usr/ucb/* ) ;;
5840 *)
5841 # OSF1 and SCO ODT 3.0 have their own names for install.
5842 # Don't use installbsd from OSF since it installs stuff as root
5843 # by default.
5844 for ac_prog in ginstall scoinst install; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5847 if test $ac_prog = install &&
5848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5849 # AIX install. It has an incompatible calling convention.
5850 :
5851 elif test $ac_prog = install &&
5852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5853 # program-specific install script used by HP pwplus--don't use.
5854 :
5855 else
5856 rm -rf conftest.one conftest.two conftest.dir
5857 echo one > conftest.one
5858 echo two > conftest.two
5859 mkdir conftest.dir
5860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5861 test -s conftest.one && test -s conftest.two &&
5862 test -s conftest.dir/conftest.one &&
5863 test -s conftest.dir/conftest.two
5864 then
5865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5866 break 3
5867 fi
5868 fi
5869 fi
5870 done
5871 done
5872 ;;
5873 esac
5874
5875 done
5876 IFS=$as_save_IFS
5877
5878 rm -rf conftest.one conftest.two conftest.dir
5879
5880 fi
5881 if test "${ac_cv_path_install+set}" = set; then
5882 INSTALL=$ac_cv_path_install
5883 else
5884 # As a last resort, use the slow shell script. Don't cache a
5885 # value for INSTALL within a source directory, because that will
5886 # break other packages using the cache if that directory is
5887 # removed, or if the value is a relative name.
5888 INSTALL=$ac_install_sh
5889 fi
5890 fi
5891 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5892 $as_echo "$INSTALL" >&6; }
5893
5894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5895 # It thinks the first close brace ends the variable substitution.
5896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5897
5898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5899
5900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5901
5902 # Extract the first word of "ar", so it can be a program name with args.
5903 set dummy ar; ac_word=$2
5904 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_AR+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$AR"; then
5910 ac_cv_prog_AR="$AR" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_AR=""
5920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5928 fi
5929 fi
5930 AR=$ac_cv_prog_AR
5931 if test -n "$AR"; then
5932 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5933 $as_echo "$AR" >&6; }
5934 else
5935 { $as_echo "$as_me:$LINENO: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939
5940 test -n "$ARFLAGS" || ARFLAGS="cr"
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if test "${ac_cv_prog_RANLIB+set}" = set; then
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$RANLIB"; then
5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 RANLIB=$ac_cv_prog_RANLIB
5970 if test -n "$RANLIB"; then
5971 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5972 $as_echo "$RANLIB" >&6; }
5973 else
5974 { $as_echo "$as_me:$LINENO: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979 fi
5980 if test -z "$ac_cv_prog_RANLIB"; then
5981 ac_ct_RANLIB=$RANLIB
5982 # Extract the first word of "ranlib", so it can be a program name with args.
5983 set dummy ranlib; ac_word=$2
5984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$ac_ct_RANLIB"; then
5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_RANLIB="ranlib"
6000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010 if test -n "$ac_ct_RANLIB"; then
6011 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6012 $as_echo "$ac_ct_RANLIB" >&6; }
6013 else
6014 { $as_echo "$as_me:$LINENO: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018 if test "x$ac_ct_RANLIB" = x; then
6019 RANLIB=":"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6026 esac
6027 RANLIB=$ac_ct_RANLIB
6028 fi
6029 else
6030 RANLIB="$ac_cv_prog_RANLIB"
6031 fi
6032
6033 for ac_prog in 'bison -y' byacc
6034 do
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036 set dummy $ac_prog; ac_word=$2
6037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_YACC+set}" = set; then
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$YACC"; then
6043 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_YACC="$ac_prog"
6053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056 done
6057 done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 YACC=$ac_cv_prog_YACC
6063 if test -n "$YACC"; then
6064 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6065 $as_echo "$YACC" >&6; }
6066 else
6067 { $as_echo "$as_me:$LINENO: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071
6072 test -n "$YACC" && break
6073 done
6074 test -n "$YACC" || YACC="yacc"
6075
6076 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6078 set x ${MAKE-make}
6079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6080 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat >conftest.make <<\_ACEOF
6084 SHELL = /bin/sh
6085 all:
6086 @echo '@@@%%%=$(MAKE)=@@@%%%'
6087 _ACEOF
6088 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6090 *@@@%%%=?*=@@@%%%*)
6091 eval ac_cv_prog_make_${ac_make}_set=yes;;
6092 *)
6093 eval ac_cv_prog_make_${ac_make}_set=no;;
6094 esac
6095 rm -f conftest.make
6096 fi
6097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6098 { $as_echo "$as_me:$LINENO: result: yes" >&5
6099 $as_echo "yes" >&6; }
6100 SET_MAKE=
6101 else
6102 { $as_echo "$as_me:$LINENO: result: no" >&5
6103 $as_echo "no" >&6; }
6104 SET_MAKE="MAKE=${MAKE-make}"
6105 fi
6106
6107
6108 case "$host_os" in
6109 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
6110 *) MAKE_SHELL=/bin/sh ;;
6111 esac
6112
6113
6114 if test x$SIZE = x; then
6115 if test x$ac_tool_prefix = x; then
6116 SIZE=size
6117 else
6118 SIZE=${ac_tool_prefix}size
6119 save_IFS=$IFS ; IFS=:
6120 size_found=0
6121 for dir in $PATH; do
6122 if test -x $dir/$SIZE ; then
6123 size_found=1
6124 break
6125 fi
6126 done
6127 if test $size_found -eq 0; then
6128 SIZE=:
6129 fi
6130 IFS=$save_IFS
6131 fi
6132 fi
6133
6134
6135 cat >>confdefs.h <<\_ACEOF
6136 @%:@define _GNU_SOURCE 1
6137 _ACEOF
6138
6139
6140 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6141 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6142 if test "${ac_cv_c_const+set}" = set; then
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151
6152 int
6153 main ()
6154 {
6155 /* FIXME: Include the comments suggested by Paul. */
6156 #ifndef __cplusplus
6157 /* Ultrix mips cc rejects this. */
6158 typedef int charset[2];
6159 const charset cs;
6160 /* SunOS 4.1.1 cc rejects this. */
6161 char const *const *pcpcc;
6162 char **ppc;
6163 /* NEC SVR4.0.2 mips cc rejects this. */
6164 struct point {int x, y;};
6165 static struct point const zero = {0,0};
6166 /* AIX XL C 1.02.0.0 rejects this.
6167 It does not let you subtract one const X* pointer from another in
6168 an arm of an if-expression whose if-part is not a constant
6169 expression */
6170 const char *g = "string";
6171 pcpcc = &g + (g ? g-g : 0);
6172 /* HPUX 7.0 cc rejects these. */
6173 ++pcpcc;
6174 ppc = (char**) pcpcc;
6175 pcpcc = (char const *const *) ppc;
6176 { /* SCO 3.2v4 cc rejects this. */
6177 char *t;
6178 char const *s = 0 ? (char *) 0 : (char const *) 0;
6179
6180 *t++ = 0;
6181 if (s) return 0;
6182 }
6183 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6184 int x[] = {25, 17};
6185 const int *foo = &x[0];
6186 ++foo;
6187 }
6188 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6189 typedef const int *iptr;
6190 iptr p = 0;
6191 ++p;
6192 }
6193 { /* AIX XL C 1.02.0.0 rejects this saying
6194 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6195 struct s { int j; const int *ap[3]; };
6196 struct s *b; b->j = 5;
6197 }
6198 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6199 const int foo = 10;
6200 if (!foo) return 0;
6201 }
6202 return !cs[0] && !zero.x;
6203 #endif
6204
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6216 $as_echo "$ac_try_echo") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_cv_c_const=yes
6228 else
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 ac_cv_c_const=no
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6238 $as_echo "$ac_cv_c_const" >&6; }
6239 if test $ac_cv_c_const = no; then
6240
6241 cat >>confdefs.h <<\_ACEOF
6242 @%:@define const /**/
6243 _ACEOF
6244
6245 fi
6246
6247 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6248 $as_echo_n "checking for inline... " >&6; }
6249 if test "${ac_cv_c_inline+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251 else
6252 ac_cv_c_inline=no
6253 for ac_kw in inline __inline__ __inline; do
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #ifndef __cplusplus
6261 typedef int foo_t;
6262 static $ac_kw foo_t static_foo () {return 0; }
6263 $ac_kw foo_t foo () {return 0; }
6264 #endif
6265
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (ac_try="$ac_compile"
6269 case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272 esac
6273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274 $as_echo "$ac_try_echo") >&5
6275 (eval "$ac_compile") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && {
6282 test -z "$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest.$ac_objext; then
6285 ac_cv_c_inline=$ac_kw
6286 else
6287 $as_echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290
6291 fi
6292
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 test "$ac_cv_c_inline" != no && break
6295 done
6296
6297 fi
6298 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6299 $as_echo "$ac_cv_c_inline" >&6; }
6300
6301
6302 case $ac_cv_c_inline in
6303 inline | yes) ;;
6304 *)
6305 case $ac_cv_c_inline in
6306 no) ac_val=;;
6307 *) ac_val=$ac_cv_c_inline;;
6308 esac
6309 cat >>confdefs.h <<_ACEOF
6310 #ifndef __cplusplus
6311 #define inline $ac_val
6312 #endif
6313 _ACEOF
6314 ;;
6315 esac
6316
6317
6318 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6319 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6320 if test "${ac_cv_c_bigendian+set}" = set; then
6321 $as_echo_n "(cached) " >&6
6322 else
6323 ac_cv_c_bigendian=unknown
6324 # See if we're dealing with a universal compiler.
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #ifndef __APPLE_CC__
6332 not a universal capable compiler
6333 #endif
6334 typedef int dummy;
6335
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6339 case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342 esac
6343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6344 $as_echo "$ac_try_echo") >&5
6345 (eval "$ac_compile") 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest.$ac_objext; then
6355
6356 # Check for potential -arch flags. It is not universal unless
6357 # there are some -arch flags. Note that *ppc* also matches
6358 # ppc64. This check is also rather less than ideal.
6359 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6360 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6361 esac
6362 else
6363 $as_echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366
6367 fi
6368
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test $ac_cv_c_bigendian = unknown; then
6371 # See if sys/param.h defines the BYTE_ORDER macro.
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6379 #include <sys/param.h>
6380
6381 int
6382 main ()
6383 {
6384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6386 && LITTLE_ENDIAN)
6387 bogus endian macros
6388 #endif
6389
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 # It does; now see whether it defined to BIG_ENDIAN or not.
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #include <sys/types.h>
6420 #include <sys/param.h>
6421
6422 int
6423 main ()
6424 {
6425 #if BYTE_ORDER != BIG_ENDIAN
6426 not big endian
6427 #endif
6428
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438 esac
6439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6440 $as_echo "$ac_try_echo") >&5
6441 (eval "$ac_compile") 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } && {
6448 test -z "$ac_c_werror_flag" ||
6449 test ! -s conftest.err
6450 } && test -s conftest.$ac_objext; then
6451 ac_cv_c_bigendian=yes
6452 else
6453 $as_echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 ac_cv_c_bigendian=no
6457 fi
6458
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 else
6461 $as_echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6463
6464
6465 fi
6466
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 fi
6469 if test $ac_cv_c_bigendian = unknown; then
6470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <limits.h>
6478
6479 int
6480 main ()
6481 {
6482 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6483 bogus endian macros
6484 #endif
6485
6486 ;
6487 return 0;
6488 }
6489 _ACEOF
6490 rm -f conftest.$ac_objext
6491 if { (ac_try="$ac_compile"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497 $as_echo "$ac_try_echo") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest.$ac_objext; then
6508 # It does; now see whether it defined to _BIG_ENDIAN or not.
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 #include <limits.h>
6516
6517 int
6518 main ()
6519 {
6520 #ifndef _BIG_ENDIAN
6521 not big endian
6522 #endif
6523
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (ac_try="$ac_compile"
6530 case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533 esac
6534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6535 $as_echo "$ac_try_echo") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest.$ac_objext; then
6546 ac_cv_c_bigendian=yes
6547 else
6548 $as_echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_c_bigendian=no
6552 fi
6553
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 else
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 fi
6564 if test $ac_cv_c_bigendian = unknown; then
6565 # Compile a test program.
6566 if test "$cross_compiling" = yes; then
6567 # Try to guess by grepping values from an object file.
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 short int ascii_mm[] =
6575 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6576 short int ascii_ii[] =
6577 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6578 int use_ascii (int i) {
6579 return ascii_mm[i] + ascii_ii[i];
6580 }
6581 short int ebcdic_ii[] =
6582 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6583 short int ebcdic_mm[] =
6584 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6585 int use_ebcdic (int i) {
6586 return ebcdic_mm[i] + ebcdic_ii[i];
6587 }
6588 extern int foo;
6589
6590 int
6591 main ()
6592 {
6593 return use_ascii (foo) == use_ebcdic (foo);
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (ac_try="$ac_compile"
6600 case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603 esac
6604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6605 $as_echo "$ac_try_echo") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6617 ac_cv_c_bigendian=yes
6618 fi
6619 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6620 if test "$ac_cv_c_bigendian" = unknown; then
6621 ac_cv_c_bigendian=no
6622 else
6623 # finding both strings is unlikely to happen, but who knows?
6624 ac_cv_c_bigendian=unknown
6625 fi
6626 fi
6627 else
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631
6632 fi
6633
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 else
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6643 int
6644 main ()
6645 {
6646
6647 /* Are we little or big endian? From Harbison&Steele. */
6648 union
6649 {
6650 long int l;
6651 char c[sizeof (long int)];
6652 } u;
6653 u.l = 1;
6654 return u.c[sizeof (long int) - 1] == 1;
6655
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest$ac_exeext
6661 if { (ac_try="$ac_link"
6662 case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_link") 2>&5
6669 ac_status=$?
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6672 { (case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677 $as_echo "$ac_try_echo") >&5
6678 (eval "$ac_try") 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_c_bigendian=no
6683 else
6684 $as_echo "$as_me: program exited with status $ac_status" >&5
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ( exit $ac_status )
6689 ac_cv_c_bigendian=yes
6690 fi
6691 rm -rf conftest.dSYM
6692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6693 fi
6694
6695
6696 fi
6697 fi
6698 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6699 $as_echo "$ac_cv_c_bigendian" >&6; }
6700 case $ac_cv_c_bigendian in #(
6701 yes)
6702 cat >>confdefs.h <<\_ACEOF
6703 @%:@define WORDS_BIGENDIAN 1
6704 _ACEOF
6705 ;; #(
6706 no)
6707 ;; #(
6708 universal)
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 @%:@define AC_APPLE_UNIVERSAL_BUILD 1
6712 _ACEOF
6713
6714 ;; #(
6715 *)
6716 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6717 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6718 $as_echo "$as_me: error: unknown endianness
6719 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6720 { (exit 1); exit 1; }; } ;;
6721 esac
6722
6723 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6724 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6725 if test "${ac_cv_c_stringize+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6727 else
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 @%:@define x(y) #y
6735
6736 char *s = x(teststring);
6737 _ACEOF
6738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739 $EGREP "@%:@teststring" >/dev/null 2>&1; then
6740 ac_cv_c_stringize=no
6741 else
6742 ac_cv_c_stringize=yes
6743 fi
6744 rm -f conftest*
6745
6746 fi
6747 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6748 $as_echo "$ac_cv_c_stringize" >&6; }
6749 if test $ac_cv_c_stringize = yes; then
6750
6751 cat >>confdefs.h <<\_ACEOF
6752 @%:@define HAVE_STRINGIZE 1
6753 _ACEOF
6754
6755 fi
6756
6757
6758
6759 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6760 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
6761 if test "${ac_cv_type_long_double_wider+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6763 else
6764 cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h. */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <float.h>
6771 long double const a[] =
6772 {
6773 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6774 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6775 };
6776 long double
6777 f (long double x)
6778 {
6779 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6780 + (x ? f (x) : 'c'));
6781 }
6782
6783 int
6784 main ()
6785 {
6786 static int test_array @<:@1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6787 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6788 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6789 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6790 && (int) LDBL_EPSILON == 0
6791 )@:>@;
6792 test_array @<:@0@:>@ = 0
6793
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (ac_try="$ac_compile"
6800 case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803 esac
6804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6805 $as_echo "$ac_try_echo") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_cv_type_long_double_wider=yes
6817 else
6818 $as_echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ac_cv_type_long_double_wider=no
6822 fi
6823
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 fi
6826 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6827 $as_echo "$ac_cv_type_long_double_wider" >&6; }
6828 if test $ac_cv_type_long_double_wider = yes; then
6829
6830 cat >>confdefs.h <<\_ACEOF
6831 @%:@define HAVE_LONG_DOUBLE_WIDER 1
6832 _ACEOF
6833
6834 fi
6835
6836 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6837 if test $ac_cv_c_long_double = yes; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 @%:@define HAVE_LONG_DOUBLE 1
6841 _ACEOF
6842
6843 fi
6844
6845 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6846 $as_echo_n "checking for function prototypes... " >&6; }
6847 if test "$ac_cv_prog_cc_c89" != no; then
6848 { $as_echo "$as_me:$LINENO: result: yes" >&5
6849 $as_echo "yes" >&6; }
6850
6851 cat >>confdefs.h <<\_ACEOF
6852 @%:@define PROTOTYPES 1
6853 _ACEOF
6854
6855
6856 cat >>confdefs.h <<\_ACEOF
6857 @%:@define __PROTOTYPES 1
6858 _ACEOF
6859
6860 else
6861 { $as_echo "$as_me:$LINENO: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865
6866 { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6867 $as_echo_n "checking whether char is unsigned... " >&6; }
6868 if test "${ac_cv_c_char_unsigned+set}" = set; then
6869 $as_echo_n "(cached) " >&6
6870 else
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6878 int
6879 main ()
6880 {
6881 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
6882 test_array @<:@0@:>@ = 0
6883
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6906 ac_cv_c_char_unsigned=no
6907 else
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 ac_cv_c_char_unsigned=yes
6912 fi
6913
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 fi
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6917 $as_echo "$ac_cv_c_char_unsigned" >&6; }
6918 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6919 cat >>confdefs.h <<\_ACEOF
6920 @%:@define __CHAR_UNSIGNED__ 1
6921 _ACEOF
6922
6923 fi
6924
6925 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6926 $as_echo_n "checking for working volatile... " >&6; }
6927 if test "${ac_cv_c_volatile+set}" = set; then
6928 $as_echo_n "(cached) " >&6
6929 else
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936
6937 int
6938 main ()
6939 {
6940
6941 volatile int x;
6942 int * volatile y = (int *) 0;
6943 return !x && !y;
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_cv_c_volatile=yes
6967 else
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_cv_c_volatile=no
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 fi
6976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6977 $as_echo "$ac_cv_c_volatile" >&6; }
6978 if test $ac_cv_c_volatile = no; then
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 @%:@define volatile /**/
6982 _ACEOF
6983
6984 fi
6985
6986 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6988 if test "${ac_cv_c_restrict+set}" = set; then
6989 $as_echo_n "(cached) " >&6
6990 else
6991 ac_cv_c_restrict=no
6992 # The order here caters to the fact that C++ does not require restrict.
6993 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 typedef int * int_ptr;
7001 int foo (int_ptr $ac_kw ip) {
7002 return ip[0];
7003 }
7004 int
7005 main ()
7006 {
7007 int s[1];
7008 int * $ac_kw t = s;
7009 t[0] = 0;
7010 return foo(t)
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7017 case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020 esac
7021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022 $as_echo "$ac_try_echo") >&5
7023 (eval "$ac_compile") 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest.$ac_objext; then
7033 ac_cv_c_restrict=$ac_kw
7034 else
7035 $as_echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038
7039 fi
7040
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 test "$ac_cv_c_restrict" != no && break
7043 done
7044
7045 fi
7046 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7047 $as_echo "$ac_cv_c_restrict" >&6; }
7048
7049
7050 case $ac_cv_c_restrict in
7051 restrict) ;;
7052 no) cat >>confdefs.h <<\_ACEOF
7053 @%:@define restrict /**/
7054 _ACEOF
7055 ;;
7056 *) cat >>confdefs.h <<_ACEOF
7057 @%:@define restrict $ac_cv_c_restrict
7058 _ACEOF
7059 ;;
7060 esac
7061
7062
7063
7064 MKINSTALLDIRS=
7065 if test -n "$ac_aux_dir"; then
7066 case "$ac_aux_dir" in
7067 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7068 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7069 esac
7070 fi
7071 if test -z "$MKINSTALLDIRS"; then
7072 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7073 fi
7074
7075
7076
7077 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7078 $as_echo_n "checking whether NLS is requested... " >&6; }
7079 @%:@ Check whether --enable-nls was given.
7080 if test "${enable_nls+set}" = set; then
7081 enableval=$enable_nls; USE_NLS=$enableval
7082 else
7083 USE_NLS=yes
7084 fi
7085
7086 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7087 $as_echo "$USE_NLS" >&6; }
7088
7089
7090
7091
7092
7093
7094 # Prepare PATH_SEPARATOR.
7095 # The user is always right.
7096 if test "${PATH_SEPARATOR+set}" != set; then
7097 echo "#! /bin/sh" >conf$$.sh
7098 echo "exit 0" >>conf$$.sh
7099 chmod +x conf$$.sh
7100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7101 PATH_SEPARATOR=';'
7102 else
7103 PATH_SEPARATOR=:
7104 fi
7105 rm -f conf$$.sh
7106 fi
7107
7108 # Find out how to test for executable files. Don't use a zero-byte file,
7109 # as systems may use methods other than mode bits to determine executability.
7110 cat >conf$$.file <<_ASEOF
7111 #! /bin/sh
7112 exit 0
7113 _ASEOF
7114 chmod +x conf$$.file
7115 if test -x conf$$.file >/dev/null 2>&1; then
7116 ac_executable_p="test -x"
7117 else
7118 ac_executable_p="test -f"
7119 fi
7120 rm -f conf$$.file
7121
7122 # Extract the first word of "msgfmt", so it can be a program name with args.
7123 set dummy msgfmt; ac_word=$2
7124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_path_MSGFMT+set}" = set; then
7127 $as_echo_n "(cached) " >&6
7128 else
7129 case "$MSGFMT" in
7130 [\\/]* | ?:[\\/]*)
7131 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7132 ;;
7133 *)
7134 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7135 for ac_dir in $PATH; do
7136 IFS="$ac_save_IFS"
7137 test -z "$ac_dir" && ac_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7140 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7141 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7142 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7143 break 2
7144 fi
7145 fi
7146 done
7147 done
7148 IFS="$ac_save_IFS"
7149 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7150 ;;
7151 esac
7152 fi
7153 MSGFMT="$ac_cv_path_MSGFMT"
7154 if test "$MSGFMT" != ":"; then
7155 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7156 $as_echo "$MSGFMT" >&6; }
7157 else
7158 { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7163 set dummy gmsgfmt; ac_word=$2
7164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7167 $as_echo_n "(cached) " >&6
7168 else
7169 case $GMSGFMT in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7190 ;;
7191 esac
7192 fi
7193 GMSGFMT=$ac_cv_path_GMSGFMT
7194 if test -n "$GMSGFMT"; then
7195 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7196 $as_echo "$GMSGFMT" >&6; }
7197 else
7198 { $as_echo "$as_me:$LINENO: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203
7204
7205 # Prepare PATH_SEPARATOR.
7206 # The user is always right.
7207 if test "${PATH_SEPARATOR+set}" != set; then
7208 echo "#! /bin/sh" >conf$$.sh
7209 echo "exit 0" >>conf$$.sh
7210 chmod +x conf$$.sh
7211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7212 PATH_SEPARATOR=';'
7213 else
7214 PATH_SEPARATOR=:
7215 fi
7216 rm -f conf$$.sh
7217 fi
7218
7219 # Find out how to test for executable files. Don't use a zero-byte file,
7220 # as systems may use methods other than mode bits to determine executability.
7221 cat >conf$$.file <<_ASEOF
7222 #! /bin/sh
7223 exit 0
7224 _ASEOF
7225 chmod +x conf$$.file
7226 if test -x conf$$.file >/dev/null 2>&1; then
7227 ac_executable_p="test -x"
7228 else
7229 ac_executable_p="test -f"
7230 fi
7231 rm -f conf$$.file
7232
7233 # Extract the first word of "xgettext", so it can be a program name with args.
7234 set dummy xgettext; ac_word=$2
7235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7238 $as_echo_n "(cached) " >&6
7239 else
7240 case "$XGETTEXT" in
7241 [\\/]* | ?:[\\/]*)
7242 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7243 ;;
7244 *)
7245 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7246 for ac_dir in $PATH; do
7247 IFS="$ac_save_IFS"
7248 test -z "$ac_dir" && ac_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7251 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7252 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7253 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7254 break 2
7255 fi
7256 fi
7257 done
7258 done
7259 IFS="$ac_save_IFS"
7260 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7261 ;;
7262 esac
7263 fi
7264 XGETTEXT="$ac_cv_path_XGETTEXT"
7265 if test "$XGETTEXT" != ":"; then
7266 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7267 $as_echo "$XGETTEXT" >&6; }
7268 else
7269 { $as_echo "$as_me:$LINENO: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273 rm -f messages.po
7274
7275
7276 # Prepare PATH_SEPARATOR.
7277 # The user is always right.
7278 if test "${PATH_SEPARATOR+set}" != set; then
7279 echo "#! /bin/sh" >conf$$.sh
7280 echo "exit 0" >>conf$$.sh
7281 chmod +x conf$$.sh
7282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7283 PATH_SEPARATOR=';'
7284 else
7285 PATH_SEPARATOR=:
7286 fi
7287 rm -f conf$$.sh
7288 fi
7289
7290 # Find out how to test for executable files. Don't use a zero-byte file,
7291 # as systems may use methods other than mode bits to determine executability.
7292 cat >conf$$.file <<_ASEOF
7293 #! /bin/sh
7294 exit 0
7295 _ASEOF
7296 chmod +x conf$$.file
7297 if test -x conf$$.file >/dev/null 2>&1; then
7298 ac_executable_p="test -x"
7299 else
7300 ac_executable_p="test -f"
7301 fi
7302 rm -f conf$$.file
7303
7304 # Extract the first word of "msgmerge", so it can be a program name with args.
7305 set dummy msgmerge; ac_word=$2
7306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7310 else
7311 case "$MSGMERGE" in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7314 ;;
7315 *)
7316 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7317 for ac_dir in $PATH; do
7318 IFS="$ac_save_IFS"
7319 test -z "$ac_dir" && ac_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7322 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7323 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7324 break 2
7325 fi
7326 fi
7327 done
7328 done
7329 IFS="$ac_save_IFS"
7330 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7331 ;;
7332 esac
7333 fi
7334 MSGMERGE="$ac_cv_path_MSGMERGE"
7335 if test "$MSGMERGE" != ":"; then
7336 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7337 $as_echo "$MSGMERGE" >&6; }
7338 else
7339 { $as_echo "$as_me:$LINENO: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343
7344 if test "$GMSGFMT" != ":"; then
7345 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7346 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7347 : ;
7348 else
7349 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7350 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7351 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7352 GMSGFMT=":"
7353 fi
7354 fi
7355
7356 if test "$XGETTEXT" != ":"; then
7357 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7358 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7359 : ;
7360 else
7361 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7362 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7363 XGETTEXT=":"
7364 fi
7365 rm -f messages.po
7366 fi
7367
7368 ac_config_commands="$ac_config_commands default-1"
7369
7370
7371 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7372 $as_echo_n "checking for off_t... " >&6; }
7373 if test "${ac_cv_type_off_t+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7375 else
7376 ac_cv_type_off_t=no
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 $ac_includes_default
7384 int
7385 main ()
7386 {
7387 if (sizeof (off_t))
7388 return 0;
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7395 case "(($ac_try" in
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7398 esac
7399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7400 $as_echo "$ac_try_echo") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 $ac_includes_default
7418 int
7419 main ()
7420 {
7421 if (sizeof ((off_t)))
7422 return 0;
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7429 case "(($ac_try" in
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7432 esac
7433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7434 $as_echo "$ac_try_echo") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
7445 :
7446 else
7447 $as_echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 ac_cv_type_off_t=yes
7451 fi
7452
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 else
7455 $as_echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458
7459 fi
7460
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 fi
7463 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7464 $as_echo "$ac_cv_type_off_t" >&6; }
7465 if test "x$ac_cv_type_off_t" = x""yes; then
7466 :
7467 else
7468
7469 cat >>confdefs.h <<_ACEOF
7470 @%:@define off_t long int
7471 _ACEOF
7472
7473 fi
7474
7475 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7476 $as_echo_n "checking for size_t... " >&6; }
7477 if test "${ac_cv_type_size_t+set}" = set; then
7478 $as_echo_n "(cached) " >&6
7479 else
7480 ac_cv_type_size_t=no
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 $ac_includes_default
7488 int
7489 main ()
7490 {
7491 if (sizeof (size_t))
7492 return 0;
7493 ;
7494 return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h. */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 int
7523 main ()
7524 {
7525 if (sizeof ((size_t)))
7526 return 0;
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 :
7550 else
7551 $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ac_cv_type_size_t=yes
7555 fi
7556
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 else
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562
7563 fi
7564
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7568 $as_echo "$ac_cv_type_size_t" >&6; }
7569 if test "x$ac_cv_type_size_t" = x""yes; then
7570 :
7571 else
7572
7573 cat >>confdefs.h <<_ACEOF
7574 @%:@define size_t unsigned int
7575 _ACEOF
7576
7577 fi
7578
7579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7580 # for constant arguments. Useless!
7581 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7582 $as_echo_n "checking for working alloca.h... " >&6; }
7583 if test "${ac_cv_working_alloca_h+set}" = set; then
7584 $as_echo_n "(cached) " >&6
7585 else
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 @%:@include <alloca.h>
7593 int
7594 main ()
7595 {
7596 char *p = (char *) alloca (2 * sizeof (int));
7597 if (p) return 0;
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7604 case "(($ac_try" in
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7607 esac
7608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7609 $as_echo "$ac_try_echo") >&5
7610 (eval "$ac_link") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext && {
7620 test "$cross_compiling" = yes ||
7621 $as_test_x conftest$ac_exeext
7622 }; then
7623 ac_cv_working_alloca_h=yes
7624 else
7625 $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7627
7628 ac_cv_working_alloca_h=no
7629 fi
7630
7631 rm -rf conftest.dSYM
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7633 conftest$ac_exeext conftest.$ac_ext
7634 fi
7635 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7636 $as_echo "$ac_cv_working_alloca_h" >&6; }
7637 if test $ac_cv_working_alloca_h = yes; then
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 @%:@define HAVE_ALLOCA_H 1
7641 _ACEOF
7642
7643 fi
7644
7645 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
7646 $as_echo_n "checking for alloca... " >&6; }
7647 if test "${ac_cv_func_alloca_works+set}" = set; then
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 #ifdef __GNUC__
7657 # define alloca __builtin_alloca
7658 #else
7659 # ifdef _MSC_VER
7660 # include <malloc.h>
7661 # define alloca _alloca
7662 # else
7663 # ifdef HAVE_ALLOCA_H
7664 # include <alloca.h>
7665 # else
7666 # ifdef _AIX
7667 #pragma alloca
7668 # else
7669 # ifndef alloca /* predefined by HP cc +Olibcalls */
7670 char *alloca ();
7671 # endif
7672 # endif
7673 # endif
7674 # endif
7675 #endif
7676
7677 int
7678 main ()
7679 {
7680 char *p = (char *) alloca (1);
7681 if (p) return 0;
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 rm -f conftest.$ac_objext conftest$ac_exeext
7687 if { (ac_try="$ac_link"
7688 case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691 esac
7692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7693 $as_echo "$ac_try_echo") >&5
7694 (eval "$ac_link") 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest$ac_exeext && {
7704 test "$cross_compiling" = yes ||
7705 $as_test_x conftest$ac_exeext
7706 }; then
7707 ac_cv_func_alloca_works=yes
7708 else
7709 $as_echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7711
7712 ac_cv_func_alloca_works=no
7713 fi
7714
7715 rm -rf conftest.dSYM
7716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7717 conftest$ac_exeext conftest.$ac_ext
7718 fi
7719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7720 $as_echo "$ac_cv_func_alloca_works" >&6; }
7721
7722 if test $ac_cv_func_alloca_works = yes; then
7723
7724 cat >>confdefs.h <<\_ACEOF
7725 @%:@define HAVE_ALLOCA 1
7726 _ACEOF
7727
7728 else
7729 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7730 # that cause trouble. Some versions do not even contain alloca or
7731 # contain a buggy version. If you still want to use their alloca,
7732 # use ar to extract alloca.o from them instead of compiling alloca.c.
7733
7734 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7735
7736 cat >>confdefs.h <<\_ACEOF
7737 @%:@define C_ALLOCA 1
7738 _ACEOF
7739
7740
7741 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7742 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7743 if test "${ac_cv_os_cray+set}" = set; then
7744 $as_echo_n "(cached) " >&6
7745 else
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 #if defined CRAY && ! defined CRAY2
7753 webecray
7754 #else
7755 wenotbecray
7756 #endif
7757
7758 _ACEOF
7759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7760 $EGREP "webecray" >/dev/null 2>&1; then
7761 ac_cv_os_cray=yes
7762 else
7763 ac_cv_os_cray=no
7764 fi
7765 rm -f conftest*
7766
7767 fi
7768 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7769 $as_echo "$ac_cv_os_cray" >&6; }
7770 if test $ac_cv_os_cray = yes; then
7771 for ac_func in _getb67 GETB67 getb67; do
7772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7773 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7774 $as_echo_n "checking for $ac_func... " >&6; }
7775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7786 #define $ac_func innocuous_$ac_func
7787
7788 /* System header to define __stub macros and hopefully few prototypes,
7789 which can conflict with char $ac_func (); below.
7790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 <limits.h> exists even on freestanding compilers. */
7792
7793 #ifdef __STDC__
7794 # include <limits.h>
7795 #else
7796 # include <assert.h>
7797 #endif
7798
7799 #undef $ac_func
7800
7801 /* Override any GCC internal prototype to avoid an error.
7802 Use char because int might match the return type of a GCC
7803 builtin and then its argument prototype would still apply. */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 char $ac_func ();
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined __stub_$ac_func || defined __stub___$ac_func
7812 choke me
7813 #endif
7814
7815 int
7816 main ()
7817 {
7818 return $ac_func ();
7819 ;
7820 return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7825 case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828 esac
7829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7830 $as_echo "$ac_try_echo") >&5
7831 (eval "$ac_link") 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest$ac_exeext && {
7841 test "$cross_compiling" = yes ||
7842 $as_test_x conftest$ac_exeext
7843 }; then
7844 eval "$as_ac_var=yes"
7845 else
7846 $as_echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 eval "$as_ac_var=no"
7850 fi
7851
7852 rm -rf conftest.dSYM
7853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7854 conftest$ac_exeext conftest.$ac_ext
7855 fi
7856 ac_res=`eval 'as_val=${'$as_ac_var'}
7857 $as_echo "$as_val"'`
7858 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7859 $as_echo "$ac_res" >&6; }
7860 as_val=`eval 'as_val=${'$as_ac_var'}
7861 $as_echo "$as_val"'`
7862 if test "x$as_val" = x""yes; then
7863
7864 cat >>confdefs.h <<_ACEOF
7865 @%:@define CRAY_STACKSEG_END $ac_func
7866 _ACEOF
7867
7868 break
7869 fi
7870
7871 done
7872 fi
7873
7874 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7875 $as_echo_n "checking stack direction for C alloca... " >&6; }
7876 if test "${ac_cv_c_stack_direction+set}" = set; then
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test "$cross_compiling" = yes; then
7880 ac_cv_c_stack_direction=0
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 $ac_includes_default
7889 int
7890 find_stack_direction ()
7891 {
7892 static char *addr = 0;
7893 auto char dummy;
7894 if (addr == 0)
7895 {
7896 addr = &dummy;
7897 return find_stack_direction ();
7898 }
7899 else
7900 return (&dummy > addr) ? 1 : -1;
7901 }
7902
7903 int
7904 main ()
7905 {
7906 return find_stack_direction () < 0;
7907 }
7908 _ACEOF
7909 rm -f conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7911 case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914 esac
7915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7916 $as_echo "$ac_try_echo") >&5
7917 (eval "$ac_link") 2>&5
7918 ac_status=$?
7919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927 (eval "$ac_try") 2>&5
7928 ac_status=$?
7929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_c_stack_direction=1
7932 else
7933 $as_echo "$as_me: program exited with status $ac_status" >&5
7934 $as_echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937 ( exit $ac_status )
7938 ac_cv_c_stack_direction=-1
7939 fi
7940 rm -rf conftest.dSYM
7941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7942 fi
7943
7944
7945 fi
7946 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7947 $as_echo "$ac_cv_c_stack_direction" >&6; }
7948
7949 cat >>confdefs.h <<_ACEOF
7950 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
7951 _ACEOF
7952
7953
7954 fi
7955
7956
7957
7958 for ac_header in stdlib.h unistd.h
7959 do
7960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7963 $as_echo_n "checking for $ac_header... " >&6; }
7964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7965 $as_echo_n "(cached) " >&6
7966 fi
7967 ac_res=`eval 'as_val=${'$as_ac_Header'}
7968 $as_echo "$as_val"'`
7969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7970 $as_echo "$ac_res" >&6; }
7971 else
7972 # Is the header compilable?
7973 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7974 $as_echo_n "checking $ac_header usability... " >&6; }
7975 cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h. */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981 $ac_includes_default
7982 @%:@include <$ac_header>
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7986 case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989 esac
7990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7991 $as_echo "$ac_try_echo") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_header_compiler=yes
8003 else
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ac_header_compiler=no
8008 fi
8009
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8012 $as_echo "$ac_header_compiler" >&6; }
8013
8014 # Is the header present?
8015 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8016 $as_echo_n "checking $ac_header presence... " >&6; }
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 @%:@include <$ac_header>
8024 _ACEOF
8025 if { (ac_try="$ac_cpp conftest.$ac_ext"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031 $as_echo "$ac_try_echo") >&5
8032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } >/dev/null && {
8039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 }; then
8042 ac_header_preproc=yes
8043 else
8044 $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 ac_header_preproc=no
8048 fi
8049
8050 rm -f conftest.err conftest.$ac_ext
8051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052 $as_echo "$ac_header_preproc" >&6; }
8053
8054 # So? What about this header?
8055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056 yes:no: )
8057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061 ac_header_preproc=yes
8062 ;;
8063 no:yes:* )
8064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8067 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8071 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8076 ( cat <<\_ASBOX
8077 @%:@@%:@ ------------------------------- @%:@@%:@
8078 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
8079 @%:@@%:@ ------------------------------- @%:@@%:@
8080 _ASBOX
8081 ) | sed "s/^/$as_me: WARNING: /" >&2
8082 ;;
8083 esac
8084 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8085 $as_echo_n "checking for $ac_header... " >&6; }
8086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087 $as_echo_n "(cached) " >&6
8088 else
8089 eval "$as_ac_Header=\$ac_header_preproc"
8090 fi
8091 ac_res=`eval 'as_val=${'$as_ac_Header'}
8092 $as_echo "$as_val"'`
8093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8094 $as_echo "$ac_res" >&6; }
8095
8096 fi
8097 as_val=`eval 'as_val=${'$as_ac_Header'}
8098 $as_echo "$as_val"'`
8099 if test "x$as_val" = x""yes; then
8100 cat >>confdefs.h <<_ACEOF
8101 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102 _ACEOF
8103
8104 fi
8105
8106 done
8107
8108
8109 for ac_func in getpagesize
8110 do
8111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8113 $as_echo_n "checking for $ac_func... " >&6; }
8114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8125 #define $ac_func innocuous_$ac_func
8126
8127 /* System header to define __stub macros and hopefully few prototypes,
8128 which can conflict with char $ac_func (); below.
8129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8130 <limits.h> exists even on freestanding compilers. */
8131
8132 #ifdef __STDC__
8133 # include <limits.h>
8134 #else
8135 # include <assert.h>
8136 #endif
8137
8138 #undef $ac_func
8139
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 char $ac_func ();
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined __stub_$ac_func || defined __stub___$ac_func
8151 choke me
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 return $ac_func ();
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8169 $as_echo "$ac_try_echo") >&5
8170 (eval "$ac_link") 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest$ac_exeext && {
8180 test "$cross_compiling" = yes ||
8181 $as_test_x conftest$ac_exeext
8182 }; then
8183 eval "$as_ac_var=yes"
8184 else
8185 $as_echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 eval "$as_ac_var=no"
8189 fi
8190
8191 rm -rf conftest.dSYM
8192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8193 conftest$ac_exeext conftest.$ac_ext
8194 fi
8195 ac_res=`eval 'as_val=${'$as_ac_var'}
8196 $as_echo "$as_val"'`
8197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8198 $as_echo "$ac_res" >&6; }
8199 as_val=`eval 'as_val=${'$as_ac_var'}
8200 $as_echo "$as_val"'`
8201 if test "x$as_val" = x""yes; then
8202 cat >>confdefs.h <<_ACEOF
8203 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8204 _ACEOF
8205
8206 fi
8207 done
8208
8209 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8210 $as_echo_n "checking for working mmap... " >&6; }
8211 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test "$cross_compiling" = yes; then
8215 ac_cv_func_mmap_fixed_mapped=no
8216 else
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 /* malloc might have been renamed as rpl_malloc. */
8225 #undef malloc
8226
8227 /* Thanks to Mike Haertel and Jim Avera for this test.
8228 Here is a matrix of mmap possibilities:
8229 mmap private not fixed
8230 mmap private fixed at somewhere currently unmapped
8231 mmap private fixed at somewhere already mapped
8232 mmap shared not fixed
8233 mmap shared fixed at somewhere currently unmapped
8234 mmap shared fixed at somewhere already mapped
8235 For private mappings, we should verify that changes cannot be read()
8236 back from the file, nor mmap's back from the file at a different
8237 address. (There have been systems where private was not correctly
8238 implemented like the infamous i386 svr4.0, and systems where the
8239 VM page cache was not coherent with the file system buffer cache
8240 like early versions of FreeBSD and possibly contemporary NetBSD.)
8241 For shared mappings, we should conversely verify that changes get
8242 propagated back to all the places they're supposed to be.
8243
8244 Grep wants private fixed already mapped.
8245 The main things grep needs to know about mmap are:
8246 * does it exist and is it safe to write into the mmap'd area
8247 * how to use it (BSD variants) */
8248
8249 #include <fcntl.h>
8250 #include <sys/mman.h>
8251
8252 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8253 char *malloc ();
8254 #endif
8255
8256 /* This mess was copied from the GNU getpagesize.h. */
8257 #ifndef HAVE_GETPAGESIZE
8258 /* Assume that all systems that can run configure have sys/param.h. */
8259 # ifndef HAVE_SYS_PARAM_H
8260 # define HAVE_SYS_PARAM_H 1
8261 # endif
8262
8263 # ifdef _SC_PAGESIZE
8264 # define getpagesize() sysconf(_SC_PAGESIZE)
8265 # else /* no _SC_PAGESIZE */
8266 # ifdef HAVE_SYS_PARAM_H
8267 # include <sys/param.h>
8268 # ifdef EXEC_PAGESIZE
8269 # define getpagesize() EXEC_PAGESIZE
8270 # else /* no EXEC_PAGESIZE */
8271 # ifdef NBPG
8272 # define getpagesize() NBPG * CLSIZE
8273 # ifndef CLSIZE
8274 # define CLSIZE 1
8275 # endif /* no CLSIZE */
8276 # else /* no NBPG */
8277 # ifdef NBPC
8278 # define getpagesize() NBPC
8279 # else /* no NBPC */
8280 # ifdef PAGESIZE
8281 # define getpagesize() PAGESIZE
8282 # endif /* PAGESIZE */
8283 # endif /* no NBPC */
8284 # endif /* no NBPG */
8285 # endif /* no EXEC_PAGESIZE */
8286 # else /* no HAVE_SYS_PARAM_H */
8287 # define getpagesize() 8192 /* punt totally */
8288 # endif /* no HAVE_SYS_PARAM_H */
8289 # endif /* no _SC_PAGESIZE */
8290
8291 #endif /* no HAVE_GETPAGESIZE */
8292
8293 int
8294 main ()
8295 {
8296 char *data, *data2, *data3;
8297 int i, pagesize;
8298 int fd;
8299
8300 pagesize = getpagesize ();
8301
8302 /* First, make a file with some known garbage in it. */
8303 data = (char *) malloc (pagesize);
8304 if (!data)
8305 return 1;
8306 for (i = 0; i < pagesize; ++i)
8307 *(data + i) = rand ();
8308 umask (0);
8309 fd = creat ("conftest.mmap", 0600);
8310 if (fd < 0)
8311 return 1;
8312 if (write (fd, data, pagesize) != pagesize)
8313 return 1;
8314 close (fd);
8315
8316 /* Next, try to mmap the file at a fixed address which already has
8317 something else allocated at it. If we can, also make sure that
8318 we see the same garbage. */
8319 fd = open ("conftest.mmap", O_RDWR);
8320 if (fd < 0)
8321 return 1;
8322 data2 = (char *) malloc (2 * pagesize);
8323 if (!data2)
8324 return 1;
8325 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8326 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8327 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8328 return 1;
8329 for (i = 0; i < pagesize; ++i)
8330 if (*(data + i) != *(data2 + i))
8331 return 1;
8332
8333 /* Finally, make sure that changes to the mapped area do not
8334 percolate back to the file as seen by read(). (This is a bug on
8335 some variants of i386 svr4.0.) */
8336 for (i = 0; i < pagesize; ++i)
8337 *(data2 + i) = *(data2 + i) + 1;
8338 data3 = (char *) malloc (pagesize);
8339 if (!data3)
8340 return 1;
8341 if (read (fd, data3, pagesize) != pagesize)
8342 return 1;
8343 for (i = 0; i < pagesize; ++i)
8344 if (*(data + i) != *(data3 + i))
8345 return 1;
8346 close (fd);
8347 return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest$ac_exeext
8351 if { (ac_try="$ac_link"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358 (eval "$ac_link") 2>&5
8359 ac_status=$?
8360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8367 $as_echo "$ac_try_echo") >&5
8368 (eval "$ac_try") 2>&5
8369 ac_status=$?
8370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_func_mmap_fixed_mapped=yes
8373 else
8374 $as_echo "$as_me: program exited with status $ac_status" >&5
8375 $as_echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8377
8378 ( exit $ac_status )
8379 ac_cv_func_mmap_fixed_mapped=no
8380 fi
8381 rm -rf conftest.dSYM
8382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8383 fi
8384
8385
8386 fi
8387 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8388 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8389 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8390
8391 cat >>confdefs.h <<\_ACEOF
8392 @%:@define HAVE_MMAP 1
8393 _ACEOF
8394
8395 fi
8396 rm -f conftest.mmap
8397
8398
8399 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8400 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8401 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8402 $as_echo_n "(cached) " >&6
8403 else
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410
8411 #include <features.h>
8412 #ifdef __GNU_LIBRARY__
8413 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8414 Lucky GNU user
8415 #endif
8416 #endif
8417
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8421 ac_cv_gnu_library_2_1=yes
8422 else
8423 ac_cv_gnu_library_2_1=no
8424 fi
8425 rm -f conftest*
8426
8427
8428
8429 fi
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8431 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8432
8433 GLIBC21="$ac_cv_gnu_library_2_1"
8434
8435
8436
8437
8438 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8439 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
8440 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8441 $as_echo_n "(cached) " >&6
8442 else
8443
8444 if test "$cross_compiling" = yes; then
8445
8446 # Guess based on the CPU.
8447 case "$host_cpu" in
8448 alpha* | i3456786 | m68k | s390*)
8449 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8450 *)
8451 gt_cv_int_divbyzero_sigfpe="guessing no";;
8452 esac
8453
8454 else
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461
8462 #include <stdlib.h>
8463 #include <signal.h>
8464
8465 static void
8466 #ifdef __cplusplus
8467 sigfpe_handler (int sig)
8468 #else
8469 sigfpe_handler (sig) int sig;
8470 #endif
8471 {
8472 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8473 exit (sig != SIGFPE);
8474 }
8475
8476 int x = 1;
8477 int y = 0;
8478 int z;
8479 int nan;
8480
8481 int main ()
8482 {
8483 signal (SIGFPE, sigfpe_handler);
8484 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8485 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8486 signal (SIGTRAP, sigfpe_handler);
8487 #endif
8488 /* Linux/SPARC yields signal SIGILL. */
8489 #if defined (__sparc__) && defined (__linux__)
8490 signal (SIGILL, sigfpe_handler);
8491 #endif
8492
8493 z = x / y;
8494 nan = y / y;
8495 exit (1);
8496 }
8497
8498 _ACEOF
8499 rm -f conftest$ac_exeext
8500 if { (ac_try="$ac_link"
8501 case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504 esac
8505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506 $as_echo "$ac_try_echo") >&5
8507 (eval "$ac_link") 2>&5
8508 ac_status=$?
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516 $as_echo "$ac_try_echo") >&5
8517 (eval "$ac_try") 2>&5
8518 ac_status=$?
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 gt_cv_int_divbyzero_sigfpe=yes
8522 else
8523 $as_echo "$as_me: program exited with status $ac_status" >&5
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 ( exit $ac_status )
8528 gt_cv_int_divbyzero_sigfpe=no
8529 fi
8530 rm -rf conftest.dSYM
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8532 fi
8533
8534
8535
8536 fi
8537 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8538 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
8539 case "$gt_cv_int_divbyzero_sigfpe" in
8540 *yes) value=1;;
8541 *) value=0;;
8542 esac
8543
8544 cat >>confdefs.h <<_ACEOF
8545 @%:@define INTDIV0_RAISES_SIGFPE $value
8546 _ACEOF
8547
8548
8549
8550 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8551 $as_echo_n "checking for inttypes.h... " >&6; }
8552 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8553 $as_echo_n "(cached) " >&6
8554 else
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 #include <sys/types.h>
8562 #include <inttypes.h>
8563 int
8564 main ()
8565 {
8566 uintmax_t i = (uintmax_t) -1;
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 jm_ac_cv_header_inttypes_h=yes
8590 else
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 jm_ac_cv_header_inttypes_h=no
8595 fi
8596
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8600 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
8601 if test $jm_ac_cv_header_inttypes_h = yes; then
8602
8603 cat >>confdefs.h <<_ACEOF
8604 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
8605 _ACEOF
8606
8607 fi
8608
8609
8610 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8611 $as_echo_n "checking for stdint.h... " >&6; }
8612 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 #include <sys/types.h>
8622 #include <stdint.h>
8623 int
8624 main ()
8625 {
8626 uintmax_t i = (uintmax_t) -1;
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 jm_ac_cv_header_stdint_h=yes
8650 else
8651 $as_echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 jm_ac_cv_header_stdint_h=no
8655 fi
8656
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8660 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
8661 if test $jm_ac_cv_header_stdint_h = yes; then
8662
8663 cat >>confdefs.h <<_ACEOF
8664 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
8665 _ACEOF
8666
8667 fi
8668
8669
8670 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8671 $as_echo_n "checking for unsigned long long... " >&6; }
8672 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8673 $as_echo_n "(cached) " >&6
8674 else
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 unsigned long long ull = 1; int i = 63;
8682 int
8683 main ()
8684 {
8685 unsigned long long ullmax = (unsigned long long) -1;
8686 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (ac_try="$ac_link"
8693 case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_link") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest$ac_exeext && {
8709 test "$cross_compiling" = yes ||
8710 $as_test_x conftest$ac_exeext
8711 }; then
8712 ac_cv_type_unsigned_long_long=yes
8713 else
8714 $as_echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_type_unsigned_long_long=no
8718 fi
8719
8720 rm -rf conftest.dSYM
8721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8722 conftest$ac_exeext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8725 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
8726 if test $ac_cv_type_unsigned_long_long = yes; then
8727
8728 cat >>confdefs.h <<\_ACEOF
8729 @%:@define HAVE_UNSIGNED_LONG_LONG 1
8730 _ACEOF
8731
8732 fi
8733
8734
8735
8736
8737 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8738
8739 test $ac_cv_type_unsigned_long_long = yes \
8740 && ac_type='unsigned long long' \
8741 || ac_type='unsigned long'
8742
8743 cat >>confdefs.h <<_ACEOF
8744 @%:@define uintmax_t $ac_type
8745 _ACEOF
8746
8747 else
8748
8749 cat >>confdefs.h <<\_ACEOF
8750 @%:@define HAVE_UINTMAX_T 1
8751 _ACEOF
8752
8753 fi
8754
8755
8756 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8757 $as_echo_n "checking for inttypes.h... " >&6; }
8758 if test "${gt_cv_header_inttypes_h+set}" = set; then
8759 $as_echo_n "(cached) " >&6
8760 else
8761
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h. */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 #include <sys/types.h>
8769 #include <inttypes.h>
8770 int
8771 main ()
8772 {
8773
8774 ;
8775 return 0;
8776 }
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8785 $as_echo "$ac_try_echo") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 gt_cv_header_inttypes_h=yes
8797 else
8798 $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 gt_cv_header_inttypes_h=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805
8806 fi
8807 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8808 $as_echo "$gt_cv_header_inttypes_h" >&6; }
8809 if test $gt_cv_header_inttypes_h = yes; then
8810
8811 cat >>confdefs.h <<_ACEOF
8812 @%:@define HAVE_INTTYPES_H 1
8813 _ACEOF
8814
8815 fi
8816
8817
8818
8819 if test $gt_cv_header_inttypes_h = yes; then
8820 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8821 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8822 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8823 $as_echo_n "(cached) " >&6
8824 else
8825
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 #include <inttypes.h>
8833 #ifdef PRId32
8834 char *p = PRId32;
8835 #endif
8836
8837 int
8838 main ()
8839 {
8840
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852 $as_echo "$ac_try_echo") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 gt_cv_inttypes_pri_broken=no
8864 else
8865 $as_echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 gt_cv_inttypes_pri_broken=yes
8869 fi
8870
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872
8873 fi
8874 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8875 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8876 fi
8877 if test "$gt_cv_inttypes_pri_broken" = yes; then
8878
8879 cat >>confdefs.h <<_ACEOF
8880 @%:@define PRI_MACROS_BROKEN 1
8881 _ACEOF
8882
8883 fi
8884
8885
8886 if test "X$prefix" = "XNONE"; then
8887 acl_final_prefix="$ac_default_prefix"
8888 else
8889 acl_final_prefix="$prefix"
8890 fi
8891 if test "X$exec_prefix" = "XNONE"; then
8892 acl_final_exec_prefix='${prefix}'
8893 else
8894 acl_final_exec_prefix="$exec_prefix"
8895 fi
8896 acl_save_prefix="$prefix"
8897 prefix="$acl_final_prefix"
8898 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8899 prefix="$acl_save_prefix"
8900
8901
8902 @%:@ Check whether --with-gnu-ld was given.
8903 if test "${with_gnu_ld+set}" = set; then
8904 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8905 else
8906 with_gnu_ld=no
8907 fi
8908
8909 # Prepare PATH_SEPARATOR.
8910 # The user is always right.
8911 if test "${PATH_SEPARATOR+set}" != set; then
8912 echo "#! /bin/sh" >conf$$.sh
8913 echo "exit 0" >>conf$$.sh
8914 chmod +x conf$$.sh
8915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8916 PATH_SEPARATOR=';'
8917 else
8918 PATH_SEPARATOR=:
8919 fi
8920 rm -f conf$$.sh
8921 fi
8922 ac_prog=ld
8923 if test "$GCC" = yes; then
8924 # Check if gcc -print-prog-name=ld gives a path.
8925 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8926 $as_echo_n "checking for ld used by GCC... " >&6; }
8927 case $host in
8928 *-*-mingw*)
8929 # gcc leaves a trailing carriage return which upsets mingw
8930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8931 *)
8932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8933 esac
8934 case $ac_prog in
8935 # Accept absolute paths.
8936 [\\/]* | [A-Za-z]:[\\/]*)
8937 re_direlt='/[^/][^/]*/\.\./'
8938 # Canonicalize the path of ld
8939 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8940 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8941 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8942 done
8943 test -z "$LD" && LD="$ac_prog"
8944 ;;
8945 "")
8946 # If it fails, then pretend we aren't using GCC.
8947 ac_prog=ld
8948 ;;
8949 *)
8950 # If it is relative, then search for the first ld in PATH.
8951 with_gnu_ld=unknown
8952 ;;
8953 esac
8954 elif test "$with_gnu_ld" = yes; then
8955 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8956 $as_echo_n "checking for GNU ld... " >&6; }
8957 else
8958 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8959 $as_echo_n "checking for non-GNU ld... " >&6; }
8960 fi
8961 if test "${acl_cv_path_LD+set}" = set; then
8962 $as_echo_n "(cached) " >&6
8963 else
8964 if test -z "$LD"; then
8965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8966 for ac_dir in $PATH; do
8967 test -z "$ac_dir" && ac_dir=.
8968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8969 acl_cv_path_LD="$ac_dir/$ac_prog"
8970 # Check to see if the program is GNU ld. I'd rather use --version,
8971 # but apparently some GNU ld's only accept -v.
8972 # Break only if it was the GNU/non-GNU ld that we prefer.
8973 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8974 test "$with_gnu_ld" != no && break
8975 else
8976 test "$with_gnu_ld" != yes && break
8977 fi
8978 fi
8979 done
8980 IFS="$ac_save_ifs"
8981 else
8982 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8983 fi
8984 fi
8985
8986 LD="$acl_cv_path_LD"
8987 if test -n "$LD"; then
8988 { $as_echo "$as_me:$LINENO: result: $LD" >&5
8989 $as_echo "$LD" >&6; }
8990 else
8991 { $as_echo "$as_me:$LINENO: result: no" >&5
8992 $as_echo "no" >&6; }
8993 fi
8994 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8995 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8996 { (exit 1); exit 1; }; }
8997 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8998 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8999 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9000 $as_echo_n "(cached) " >&6
9001 else
9002 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9003 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9004 acl_cv_prog_gnu_ld=yes
9005 else
9006 acl_cv_prog_gnu_ld=no
9007 fi
9008 fi
9009 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9010 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9011 with_gnu_ld=$acl_cv_prog_gnu_ld
9012
9013
9014
9015 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9016 $as_echo_n "checking for shared library run path origin... " >&6; }
9017 if test "${acl_cv_rpath+set}" = set; then
9018 $as_echo_n "(cached) " >&6
9019 else
9020
9021 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9022 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9023 . ./conftest.sh
9024 rm -f ./conftest.sh
9025 acl_cv_rpath=done
9026
9027 fi
9028 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9029 $as_echo "$acl_cv_rpath" >&6; }
9030 wl="$acl_cv_wl"
9031 libext="$acl_cv_libext"
9032 shlibext="$acl_cv_shlibext"
9033 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9034 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9035 hardcode_direct="$acl_cv_hardcode_direct"
9036 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9037 @%:@ Check whether --enable-rpath was given.
9038 if test "${enable_rpath+set}" = set; then
9039 enableval=$enable_rpath; :
9040 else
9041 enable_rpath=yes
9042 fi
9043
9044
9045
9046
9047
9048
9049
9050
9051 use_additional=yes
9052
9053 acl_save_prefix="$prefix"
9054 prefix="$acl_final_prefix"
9055 acl_save_exec_prefix="$exec_prefix"
9056 exec_prefix="$acl_final_exec_prefix"
9057
9058 eval additional_includedir=\"$includedir\"
9059 eval additional_libdir=\"$libdir\"
9060
9061 exec_prefix="$acl_save_exec_prefix"
9062 prefix="$acl_save_prefix"
9063
9064
9065 @%:@ Check whether --with-libiconv-prefix was given.
9066 if test "${with_libiconv_prefix+set}" = set; then
9067 withval=$with_libiconv_prefix;
9068 if test "X$withval" = "Xno"; then
9069 use_additional=no
9070 else
9071 if test "X$withval" = "X"; then
9072
9073 acl_save_prefix="$prefix"
9074 prefix="$acl_final_prefix"
9075 acl_save_exec_prefix="$exec_prefix"
9076 exec_prefix="$acl_final_exec_prefix"
9077
9078 eval additional_includedir=\"$includedir\"
9079 eval additional_libdir=\"$libdir\"
9080
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9083
9084 else
9085 additional_includedir="$withval/include"
9086 additional_libdir="$withval/lib"
9087 fi
9088 fi
9089
9090 fi
9091
9092 LIBICONV=
9093 LTLIBICONV=
9094 INCICONV=
9095 rpathdirs=
9096 ltrpathdirs=
9097 names_already_handled=
9098 names_next_round='iconv '
9099 while test -n "$names_next_round"; do
9100 names_this_round="$names_next_round"
9101 names_next_round=
9102 for name in $names_this_round; do
9103 already_handled=
9104 for n in $names_already_handled; do
9105 if test "$n" = "$name"; then
9106 already_handled=yes
9107 break
9108 fi
9109 done
9110 if test -z "$already_handled"; then
9111 names_already_handled="$names_already_handled $name"
9112 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9113 eval value=\"\$HAVE_LIB$uppername\"
9114 if test -n "$value"; then
9115 if test "$value" = yes; then
9116 eval value=\"\$LIB$uppername\"
9117 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9118 eval value=\"\$LTLIB$uppername\"
9119 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9120 else
9121 :
9122 fi
9123 else
9124 found_dir=
9125 found_la=
9126 found_so=
9127 found_a=
9128 if test $use_additional = yes; then
9129 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9130 found_dir="$additional_libdir"
9131 found_so="$additional_libdir/lib$name.$shlibext"
9132 if test -f "$additional_libdir/lib$name.la"; then
9133 found_la="$additional_libdir/lib$name.la"
9134 fi
9135 else
9136 if test -f "$additional_libdir/lib$name.$libext"; then
9137 found_dir="$additional_libdir"
9138 found_a="$additional_libdir/lib$name.$libext"
9139 if test -f "$additional_libdir/lib$name.la"; then
9140 found_la="$additional_libdir/lib$name.la"
9141 fi
9142 fi
9143 fi
9144 fi
9145 if test "X$found_dir" = "X"; then
9146 for x in $LDFLAGS $LTLIBICONV; do
9147
9148 acl_save_prefix="$prefix"
9149 prefix="$acl_final_prefix"
9150 acl_save_exec_prefix="$exec_prefix"
9151 exec_prefix="$acl_final_exec_prefix"
9152 eval x=\"$x\"
9153 exec_prefix="$acl_save_exec_prefix"
9154 prefix="$acl_save_prefix"
9155
9156 case "$x" in
9157 -L*)
9158 dir=`echo "X$x" | sed -e 's/^X-L//'`
9159 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9160 found_dir="$dir"
9161 found_so="$dir/lib$name.$shlibext"
9162 if test -f "$dir/lib$name.la"; then
9163 found_la="$dir/lib$name.la"
9164 fi
9165 else
9166 if test -f "$dir/lib$name.$libext"; then
9167 found_dir="$dir"
9168 found_a="$dir/lib$name.$libext"
9169 if test -f "$dir/lib$name.la"; then
9170 found_la="$dir/lib$name.la"
9171 fi
9172 fi
9173 fi
9174 ;;
9175 esac
9176 if test "X$found_dir" != "X"; then
9177 break
9178 fi
9179 done
9180 fi
9181 if test "X$found_dir" != "X"; then
9182 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9183 if test "X$found_so" != "X"; then
9184 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9186 else
9187 haveit=
9188 for x in $ltrpathdirs; do
9189 if test "X$x" = "X$found_dir"; then
9190 haveit=yes
9191 break
9192 fi
9193 done
9194 if test -z "$haveit"; then
9195 ltrpathdirs="$ltrpathdirs $found_dir"
9196 fi
9197 if test "$hardcode_direct" = yes; then
9198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9199 else
9200 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9202 haveit=
9203 for x in $rpathdirs; do
9204 if test "X$x" = "X$found_dir"; then
9205 haveit=yes
9206 break
9207 fi
9208 done
9209 if test -z "$haveit"; then
9210 rpathdirs="$rpathdirs $found_dir"
9211 fi
9212 else
9213 haveit=
9214 for x in $LDFLAGS $LIBICONV; do
9215
9216 acl_save_prefix="$prefix"
9217 prefix="$acl_final_prefix"
9218 acl_save_exec_prefix="$exec_prefix"
9219 exec_prefix="$acl_final_exec_prefix"
9220 eval x=\"$x\"
9221 exec_prefix="$acl_save_exec_prefix"
9222 prefix="$acl_save_prefix"
9223
9224 if test "X$x" = "X-L$found_dir"; then
9225 haveit=yes
9226 break
9227 fi
9228 done
9229 if test -z "$haveit"; then
9230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9231 fi
9232 if test "$hardcode_minus_L" != no; then
9233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9234 else
9235 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9236 fi
9237 fi
9238 fi
9239 fi
9240 else
9241 if test "X$found_a" != "X"; then
9242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9243 else
9244 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9245 fi
9246 fi
9247 additional_includedir=
9248 case "$found_dir" in
9249 */lib | */lib/)
9250 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9251 additional_includedir="$basedir/include"
9252 ;;
9253 esac
9254 if test "X$additional_includedir" != "X"; then
9255 if test "X$additional_includedir" != "X/usr/include"; then
9256 haveit=
9257 if test "X$additional_includedir" = "X/usr/local/include"; then
9258 if test -n "$GCC"; then
9259 case $host_os in
9260 linux*) haveit=yes;;
9261 esac
9262 fi
9263 fi
9264 if test -z "$haveit"; then
9265 for x in $CPPFLAGS $INCICONV; do
9266
9267 acl_save_prefix="$prefix"
9268 prefix="$acl_final_prefix"
9269 acl_save_exec_prefix="$exec_prefix"
9270 exec_prefix="$acl_final_exec_prefix"
9271 eval x=\"$x\"
9272 exec_prefix="$acl_save_exec_prefix"
9273 prefix="$acl_save_prefix"
9274
9275 if test "X$x" = "X-I$additional_includedir"; then
9276 haveit=yes
9277 break
9278 fi
9279 done
9280 if test -z "$haveit"; then
9281 if test -d "$additional_includedir"; then
9282 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9283 fi
9284 fi
9285 fi
9286 fi
9287 fi
9288 if test -n "$found_la"; then
9289 save_libdir="$libdir"
9290 case "$found_la" in
9291 */* | *\\*) . "$found_la" ;;
9292 *) . "./$found_la" ;;
9293 esac
9294 libdir="$save_libdir"
9295 for dep in $dependency_libs; do
9296 case "$dep" in
9297 -L*)
9298 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9299 if test "X$additional_libdir" != "X/usr/lib"; then
9300 haveit=
9301 if test "X$additional_libdir" = "X/usr/local/lib"; then
9302 if test -n "$GCC"; then
9303 case $host_os in
9304 linux*) haveit=yes;;
9305 esac
9306 fi
9307 fi
9308 if test -z "$haveit"; then
9309 haveit=
9310 for x in $LDFLAGS $LIBICONV; do
9311
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9316 eval x=\"$x\"
9317 exec_prefix="$acl_save_exec_prefix"
9318 prefix="$acl_save_prefix"
9319
9320 if test "X$x" = "X-L$additional_libdir"; then
9321 haveit=yes
9322 break
9323 fi
9324 done
9325 if test -z "$haveit"; then
9326 if test -d "$additional_libdir"; then
9327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9328 fi
9329 fi
9330 haveit=
9331 for x in $LDFLAGS $LTLIBICONV; do
9332
9333 acl_save_prefix="$prefix"
9334 prefix="$acl_final_prefix"
9335 acl_save_exec_prefix="$exec_prefix"
9336 exec_prefix="$acl_final_exec_prefix"
9337 eval x=\"$x\"
9338 exec_prefix="$acl_save_exec_prefix"
9339 prefix="$acl_save_prefix"
9340
9341 if test "X$x" = "X-L$additional_libdir"; then
9342 haveit=yes
9343 break
9344 fi
9345 done
9346 if test -z "$haveit"; then
9347 if test -d "$additional_libdir"; then
9348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9349 fi
9350 fi
9351 fi
9352 fi
9353 ;;
9354 -R*)
9355 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9356 if test "$enable_rpath" != no; then
9357 haveit=
9358 for x in $rpathdirs; do
9359 if test "X$x" = "X$dir"; then
9360 haveit=yes
9361 break
9362 fi
9363 done
9364 if test -z "$haveit"; then
9365 rpathdirs="$rpathdirs $dir"
9366 fi
9367 haveit=
9368 for x in $ltrpathdirs; do
9369 if test "X$x" = "X$dir"; then
9370 haveit=yes
9371 break
9372 fi
9373 done
9374 if test -z "$haveit"; then
9375 ltrpathdirs="$ltrpathdirs $dir"
9376 fi
9377 fi
9378 ;;
9379 -l*)
9380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9381 ;;
9382 *.la)
9383 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9384 ;;
9385 *)
9386 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9388 ;;
9389 esac
9390 done
9391 fi
9392 else
9393 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9395 fi
9396 fi
9397 fi
9398 done
9399 done
9400 if test "X$rpathdirs" != "X"; then
9401 if test -n "$hardcode_libdir_separator"; then
9402 alldirs=
9403 for found_dir in $rpathdirs; do
9404 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9405 done
9406 acl_save_libdir="$libdir"
9407 libdir="$alldirs"
9408 eval flag=\"$hardcode_libdir_flag_spec\"
9409 libdir="$acl_save_libdir"
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9411 else
9412 for found_dir in $rpathdirs; do
9413 acl_save_libdir="$libdir"
9414 libdir="$found_dir"
9415 eval flag=\"$hardcode_libdir_flag_spec\"
9416 libdir="$acl_save_libdir"
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9418 done
9419 fi
9420 fi
9421 if test "X$ltrpathdirs" != "X"; then
9422 for found_dir in $ltrpathdirs; do
9423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9424 done
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9441 stdlib.h string.h unistd.h sys/param.h
9442 do
9443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9446 $as_echo_n "checking for $ac_header... " >&6; }
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 $as_echo_n "(cached) " >&6
9449 fi
9450 ac_res=`eval 'as_val=${'$as_ac_Header'}
9451 $as_echo "$as_val"'`
9452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9453 $as_echo "$ac_res" >&6; }
9454 else
9455 # Is the header compilable?
9456 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9457 $as_echo_n "checking $ac_header usability... " >&6; }
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h. */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 $ac_includes_default
9465 @%:@include <$ac_header>
9466 _ACEOF
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474 $as_echo "$ac_try_echo") >&5
9475 (eval "$ac_compile") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
9485 ac_header_compiler=yes
9486 else
9487 $as_echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 ac_header_compiler=no
9491 fi
9492
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495 $as_echo "$ac_header_compiler" >&6; }
9496
9497 # Is the header present?
9498 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499 $as_echo_n "checking $ac_header presence... " >&6; }
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 @%:@include <$ac_header>
9507 _ACEOF
9508 if { (ac_try="$ac_cpp conftest.$ac_ext"
9509 case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9514 $as_echo "$ac_try_echo") >&5
9515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } >/dev/null && {
9522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 }; then
9525 ac_header_preproc=yes
9526 else
9527 $as_echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 ac_header_preproc=no
9531 fi
9532
9533 rm -f conftest.err conftest.$ac_ext
9534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9535 $as_echo "$ac_header_preproc" >&6; }
9536
9537 # So? What about this header?
9538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9539 yes:no: )
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9544 ac_header_preproc=yes
9545 ;;
9546 no:yes:* )
9547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9548 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9550 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9552 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9554 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9556 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9558 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9559 ( cat <<\_ASBOX
9560 @%:@@%:@ ------------------------------- @%:@@%:@
9561 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
9562 @%:@@%:@ ------------------------------- @%:@@%:@
9563 _ASBOX
9564 ) | sed "s/^/$as_me: WARNING: /" >&2
9565 ;;
9566 esac
9567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9568 $as_echo_n "checking for $ac_header... " >&6; }
9569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9570 $as_echo_n "(cached) " >&6
9571 else
9572 eval "$as_ac_Header=\$ac_header_preproc"
9573 fi
9574 ac_res=`eval 'as_val=${'$as_ac_Header'}
9575 $as_echo "$as_val"'`
9576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9577 $as_echo "$ac_res" >&6; }
9578
9579 fi
9580 as_val=`eval 'as_val=${'$as_ac_Header'}
9581 $as_echo "$as_val"'`
9582 if test "x$as_val" = x""yes; then
9583 cat >>confdefs.h <<_ACEOF
9584 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9585 _ACEOF
9586
9587 fi
9588
9589 done
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
9615 geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9616 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9617 __fsetlocking
9618 do
9619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9620 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9621 $as_echo_n "checking for $ac_func... " >&6; }
9622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9623 $as_echo_n "(cached) " >&6
9624 else
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9633 #define $ac_func innocuous_$ac_func
9634
9635 /* System header to define __stub macros and hopefully few prototypes,
9636 which can conflict with char $ac_func (); below.
9637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638 <limits.h> exists even on freestanding compilers. */
9639
9640 #ifdef __STDC__
9641 # include <limits.h>
9642 #else
9643 # include <assert.h>
9644 #endif
9645
9646 #undef $ac_func
9647
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9651 #ifdef __cplusplus
9652 extern "C"
9653 #endif
9654 char $ac_func ();
9655 /* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658 #if defined __stub_$ac_func || defined __stub___$ac_func
9659 choke me
9660 #endif
9661
9662 int
9663 main ()
9664 {
9665 return $ac_func ();
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675 esac
9676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9677 $as_echo "$ac_try_echo") >&5
9678 (eval "$ac_link") 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest$ac_exeext && {
9688 test "$cross_compiling" = yes ||
9689 $as_test_x conftest$ac_exeext
9690 }; then
9691 eval "$as_ac_var=yes"
9692 else
9693 $as_echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 eval "$as_ac_var=no"
9697 fi
9698
9699 rm -rf conftest.dSYM
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9702 fi
9703 ac_res=`eval 'as_val=${'$as_ac_var'}
9704 $as_echo "$as_val"'`
9705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9706 $as_echo "$ac_res" >&6; }
9707 as_val=`eval 'as_val=${'$as_ac_var'}
9708 $as_echo "$as_val"'`
9709 if test "x$as_val" = x""yes; then
9710 cat >>confdefs.h <<_ACEOF
9711 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9712 _ACEOF
9713
9714 fi
9715 done
9716
9717
9718
9719
9720
9721
9722
9723 am_save_CPPFLAGS="$CPPFLAGS"
9724
9725 for element in $INCICONV; do
9726 haveit=
9727 for x in $CPPFLAGS; do
9728
9729 acl_save_prefix="$prefix"
9730 prefix="$acl_final_prefix"
9731 acl_save_exec_prefix="$exec_prefix"
9732 exec_prefix="$acl_final_exec_prefix"
9733 eval x=\"$x\"
9734 exec_prefix="$acl_save_exec_prefix"
9735 prefix="$acl_save_prefix"
9736
9737 if test "X$x" = "X$element"; then
9738 haveit=yes
9739 break
9740 fi
9741 done
9742 if test -z "$haveit"; then
9743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9744 fi
9745 done
9746
9747
9748 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9749 $as_echo_n "checking for iconv... " >&6; }
9750 if test "${am_cv_func_iconv+set}" = set; then
9751 $as_echo_n "(cached) " >&6
9752 else
9753
9754 am_cv_func_iconv="no, consider installing GNU libiconv"
9755 am_cv_lib_iconv=no
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h. */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 #include <stdlib.h>
9763 #include <iconv.h>
9764 int
9765 main ()
9766 {
9767 iconv_t cd = iconv_open("","");
9768 iconv(cd,NULL,NULL,NULL,NULL);
9769 iconv_close(cd);
9770 ;
9771 return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9781 $as_echo "$ac_try_echo") >&5
9782 (eval "$ac_link") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext && {
9792 test "$cross_compiling" = yes ||
9793 $as_test_x conftest$ac_exeext
9794 }; then
9795 am_cv_func_iconv=yes
9796 else
9797 $as_echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800
9801 fi
9802
9803 rm -rf conftest.dSYM
9804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9806 if test "$am_cv_func_iconv" != yes; then
9807 am_save_LIBS="$LIBS"
9808 LIBS="$LIBS $LIBICONV"
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #include <stdlib.h>
9816 #include <iconv.h>
9817 int
9818 main ()
9819 {
9820 iconv_t cd = iconv_open("","");
9821 iconv(cd,NULL,NULL,NULL,NULL);
9822 iconv_close(cd);
9823 ;
9824 return 0;
9825 }
9826 _ACEOF
9827 rm -f conftest.$ac_objext conftest$ac_exeext
9828 if { (ac_try="$ac_link"
9829 case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832 esac
9833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9834 $as_echo "$ac_try_echo") >&5
9835 (eval "$ac_link") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext && {
9845 test "$cross_compiling" = yes ||
9846 $as_test_x conftest$ac_exeext
9847 }; then
9848 am_cv_lib_iconv=yes
9849 am_cv_func_iconv=yes
9850 else
9851 $as_echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854
9855 fi
9856
9857 rm -rf conftest.dSYM
9858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS="$am_save_LIBS"
9861 fi
9862
9863 fi
9864 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9865 $as_echo "$am_cv_func_iconv" >&6; }
9866 if test "$am_cv_func_iconv" = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 @%:@define HAVE_ICONV 1
9870 _ACEOF
9871
9872 fi
9873 if test "$am_cv_lib_iconv" = yes; then
9874 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9875 $as_echo_n "checking how to link with libiconv... " >&6; }
9876 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9877 $as_echo "$LIBICONV" >&6; }
9878 else
9879 CPPFLAGS="$am_save_CPPFLAGS"
9880 LIBICONV=
9881 LTLIBICONV=
9882 fi
9883
9884
9885
9886 if test "$am_cv_func_iconv" = yes; then
9887 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9888 $as_echo_n "checking for iconv declaration... " >&6; }
9889 if test "${am_cv_proto_iconv+set}" = set; then
9890 $as_echo_n "(cached) " >&6
9891 else
9892
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899
9900 #include <stdlib.h>
9901 #include <iconv.h>
9902 extern
9903 #ifdef __cplusplus
9904 "C"
9905 #endif
9906 #if defined(__STDC__) || defined(__cplusplus)
9907 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9908 #else
9909 size_t iconv();
9910 #endif
9911
9912 int
9913 main ()
9914 {
9915
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927 $as_echo "$ac_try_echo") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 am_cv_proto_iconv_arg1=""
9939 else
9940 $as_echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 am_cv_proto_iconv_arg1="const"
9944 fi
9945
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9948 fi
9949
9950 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9951 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
9952 }$am_cv_proto_iconv" >&5
9953 $as_echo "${ac_t:-
9954 }$am_cv_proto_iconv" >&6; }
9955
9956 cat >>confdefs.h <<_ACEOF
9957 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
9958 _ACEOF
9959
9960 fi
9961
9962
9963 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9964 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9965 if test "${am_cv_langinfo_codeset+set}" = set; then
9966 $as_echo_n "(cached) " >&6
9967 else
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 #include <langinfo.h>
9975 int
9976 main ()
9977 {
9978 char* cs = nl_langinfo(CODESET);
9979 ;
9980 return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9985 case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988 esac
9989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990 $as_echo "$ac_try_echo") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext && {
10001 test "$cross_compiling" = yes ||
10002 $as_test_x conftest$ac_exeext
10003 }; then
10004 am_cv_langinfo_codeset=yes
10005 else
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 am_cv_langinfo_codeset=no
10010 fi
10011
10012 rm -rf conftest.dSYM
10013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014 conftest$ac_exeext conftest.$ac_ext
10015
10016 fi
10017 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10018 $as_echo "$am_cv_langinfo_codeset" >&6; }
10019 if test $am_cv_langinfo_codeset = yes; then
10020
10021 cat >>confdefs.h <<\_ACEOF
10022 @%:@define HAVE_LANGINFO_CODESET 1
10023 _ACEOF
10024
10025 fi
10026
10027 if test $ac_cv_header_locale_h = yes; then
10028
10029 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10030 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10031 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10032 $as_echo_n "(cached) " >&6
10033 else
10034 cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h. */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <locale.h>
10041 int
10042 main ()
10043 {
10044 return LC_MESSAGES
10045 ;
10046 return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10056 $as_echo "$ac_try_echo") >&5
10057 (eval "$ac_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext && {
10067 test "$cross_compiling" = yes ||
10068 $as_test_x conftest$ac_exeext
10069 }; then
10070 am_cv_val_LC_MESSAGES=yes
10071 else
10072 $as_echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 am_cv_val_LC_MESSAGES=no
10076 fi
10077
10078 rm -rf conftest.dSYM
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10081 fi
10082 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10083 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10084 if test $am_cv_val_LC_MESSAGES = yes; then
10085
10086 cat >>confdefs.h <<\_ACEOF
10087 @%:@define HAVE_LC_MESSAGES 1
10088 _ACEOF
10089
10090 fi
10091
10092 fi
10093
10094 for ac_prog in bison
10095 do
10096 # Extract the first word of "$ac_prog", so it can be a program name with args.
10097 set dummy $ac_prog; ac_word=$2
10098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10101 $as_echo_n "(cached) " >&6
10102 else
10103 if test -n "$INTLBISON"; then
10104 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10105 else
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10108 do
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10113 ac_cv_prog_INTLBISON="$ac_prog"
10114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10116 fi
10117 done
10118 done
10119 IFS=$as_save_IFS
10120
10121 fi
10122 fi
10123 INTLBISON=$ac_cv_prog_INTLBISON
10124 if test -n "$INTLBISON"; then
10125 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10126 $as_echo "$INTLBISON" >&6; }
10127 else
10128 { $as_echo "$as_me:$LINENO: result: no" >&5
10129 $as_echo "no" >&6; }
10130 fi
10131
10132
10133 test -n "$INTLBISON" && break
10134 done
10135
10136 if test -z "$INTLBISON"; then
10137 ac_verc_fail=yes
10138 else
10139 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10140 $as_echo_n "checking version of bison... " >&6; }
10141 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10142 case $ac_prog_version in
10143 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10144 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10145 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10146 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10147 esac
10148 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10149 $as_echo "$ac_prog_version" >&6; }
10150 fi
10151 if test $ac_verc_fail = yes; then
10152 INTLBISON=:
10153 fi
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10171 $as_echo_n "checking whether NLS is requested... " >&6; }
10172 @%:@ Check whether --enable-nls was given.
10173 if test "${enable_nls+set}" = set; then
10174 enableval=$enable_nls; USE_NLS=$enableval
10175 else
10176 USE_NLS=yes
10177 fi
10178
10179 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10180 $as_echo "$USE_NLS" >&6; }
10181
10182
10183
10184
10185 BUILD_INCLUDED_LIBINTL=no
10186 USE_INCLUDED_LIBINTL=no
10187
10188 LIBINTL=
10189 LTLIBINTL=
10190 POSUB=
10191
10192 if test "$USE_NLS" = "yes"; then
10193 gt_use_preinstalled_gnugettext=no
10194
10195 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10196 $as_echo_n "checking whether included gettext is requested... " >&6; }
10197
10198 @%:@ Check whether --with-included-gettext was given.
10199 if test "${with_included_gettext+set}" = set; then
10200 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10201 else
10202 nls_cv_force_use_gnu_gettext=no
10203 fi
10204
10205 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10206 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10207
10208 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10209 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10210
10211
10212
10213
10214
10215
10216 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10217 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10218 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
10219 $as_echo_n "(cached) " >&6
10220 else
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 #include <libintl.h>
10228 extern int _nl_msg_cat_cntr;
10229 extern int *_nl_domain_bindings;
10230 int
10231 main ()
10232 {
10233 bindtextdomain ("", "");
10234 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247 (eval "$ac_link") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && {
10254 test -z "$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 } && test -s conftest$ac_exeext && {
10257 test "$cross_compiling" = yes ||
10258 $as_test_x conftest$ac_exeext
10259 }; then
10260 gt_cv_func_gnugettext2_libc=yes
10261 else
10262 $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 gt_cv_func_gnugettext2_libc=no
10266 fi
10267
10268 rm -rf conftest.dSYM
10269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271 fi
10272 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10273 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
10274
10275 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10276
10277
10278
10279 use_additional=yes
10280
10281 acl_save_prefix="$prefix"
10282 prefix="$acl_final_prefix"
10283 acl_save_exec_prefix="$exec_prefix"
10284 exec_prefix="$acl_final_exec_prefix"
10285
10286 eval additional_includedir=\"$includedir\"
10287 eval additional_libdir=\"$libdir\"
10288
10289 exec_prefix="$acl_save_exec_prefix"
10290 prefix="$acl_save_prefix"
10291
10292
10293 @%:@ Check whether --with-libintl-prefix was given.
10294 if test "${with_libintl_prefix+set}" = set; then
10295 withval=$with_libintl_prefix;
10296 if test "X$withval" = "Xno"; then
10297 use_additional=no
10298 else
10299 if test "X$withval" = "X"; then
10300
10301 acl_save_prefix="$prefix"
10302 prefix="$acl_final_prefix"
10303 acl_save_exec_prefix="$exec_prefix"
10304 exec_prefix="$acl_final_exec_prefix"
10305
10306 eval additional_includedir=\"$includedir\"
10307 eval additional_libdir=\"$libdir\"
10308
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10311
10312 else
10313 additional_includedir="$withval/include"
10314 additional_libdir="$withval/lib"
10315 fi
10316 fi
10317
10318 fi
10319
10320 LIBINTL=
10321 LTLIBINTL=
10322 INCINTL=
10323 rpathdirs=
10324 ltrpathdirs=
10325 names_already_handled=
10326 names_next_round='intl '
10327 while test -n "$names_next_round"; do
10328 names_this_round="$names_next_round"
10329 names_next_round=
10330 for name in $names_this_round; do
10331 already_handled=
10332 for n in $names_already_handled; do
10333 if test "$n" = "$name"; then
10334 already_handled=yes
10335 break
10336 fi
10337 done
10338 if test -z "$already_handled"; then
10339 names_already_handled="$names_already_handled $name"
10340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10341 eval value=\"\$HAVE_LIB$uppername\"
10342 if test -n "$value"; then
10343 if test "$value" = yes; then
10344 eval value=\"\$LIB$uppername\"
10345 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10346 eval value=\"\$LTLIB$uppername\"
10347 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10348 else
10349 :
10350 fi
10351 else
10352 found_dir=
10353 found_la=
10354 found_so=
10355 found_a=
10356 if test $use_additional = yes; then
10357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10358 found_dir="$additional_libdir"
10359 found_so="$additional_libdir/lib$name.$shlibext"
10360 if test -f "$additional_libdir/lib$name.la"; then
10361 found_la="$additional_libdir/lib$name.la"
10362 fi
10363 else
10364 if test -f "$additional_libdir/lib$name.$libext"; then
10365 found_dir="$additional_libdir"
10366 found_a="$additional_libdir/lib$name.$libext"
10367 if test -f "$additional_libdir/lib$name.la"; then
10368 found_la="$additional_libdir/lib$name.la"
10369 fi
10370 fi
10371 fi
10372 fi
10373 if test "X$found_dir" = "X"; then
10374 for x in $LDFLAGS $LTLIBINTL; do
10375
10376 acl_save_prefix="$prefix"
10377 prefix="$acl_final_prefix"
10378 acl_save_exec_prefix="$exec_prefix"
10379 exec_prefix="$acl_final_exec_prefix"
10380 eval x=\"$x\"
10381 exec_prefix="$acl_save_exec_prefix"
10382 prefix="$acl_save_prefix"
10383
10384 case "$x" in
10385 -L*)
10386 dir=`echo "X$x" | sed -e 's/^X-L//'`
10387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10388 found_dir="$dir"
10389 found_so="$dir/lib$name.$shlibext"
10390 if test -f "$dir/lib$name.la"; then
10391 found_la="$dir/lib$name.la"
10392 fi
10393 else
10394 if test -f "$dir/lib$name.$libext"; then
10395 found_dir="$dir"
10396 found_a="$dir/lib$name.$libext"
10397 if test -f "$dir/lib$name.la"; then
10398 found_la="$dir/lib$name.la"
10399 fi
10400 fi
10401 fi
10402 ;;
10403 esac
10404 if test "X$found_dir" != "X"; then
10405 break
10406 fi
10407 done
10408 fi
10409 if test "X$found_dir" != "X"; then
10410 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10411 if test "X$found_so" != "X"; then
10412 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10414 else
10415 haveit=
10416 for x in $ltrpathdirs; do
10417 if test "X$x" = "X$found_dir"; then
10418 haveit=yes
10419 break
10420 fi
10421 done
10422 if test -z "$haveit"; then
10423 ltrpathdirs="$ltrpathdirs $found_dir"
10424 fi
10425 if test "$hardcode_direct" = yes; then
10426 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10427 else
10428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10429 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10430 haveit=
10431 for x in $rpathdirs; do
10432 if test "X$x" = "X$found_dir"; then
10433 haveit=yes
10434 break
10435 fi
10436 done
10437 if test -z "$haveit"; then
10438 rpathdirs="$rpathdirs $found_dir"
10439 fi
10440 else
10441 haveit=
10442 for x in $LDFLAGS $LIBINTL; do
10443
10444 acl_save_prefix="$prefix"
10445 prefix="$acl_final_prefix"
10446 acl_save_exec_prefix="$exec_prefix"
10447 exec_prefix="$acl_final_exec_prefix"
10448 eval x=\"$x\"
10449 exec_prefix="$acl_save_exec_prefix"
10450 prefix="$acl_save_prefix"
10451
10452 if test "X$x" = "X-L$found_dir"; then
10453 haveit=yes
10454 break
10455 fi
10456 done
10457 if test -z "$haveit"; then
10458 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10459 fi
10460 if test "$hardcode_minus_L" != no; then
10461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10462 else
10463 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10464 fi
10465 fi
10466 fi
10467 fi
10468 else
10469 if test "X$found_a" != "X"; then
10470 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10471 else
10472 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10473 fi
10474 fi
10475 additional_includedir=
10476 case "$found_dir" in
10477 */lib | */lib/)
10478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10479 additional_includedir="$basedir/include"
10480 ;;
10481 esac
10482 if test "X$additional_includedir" != "X"; then
10483 if test "X$additional_includedir" != "X/usr/include"; then
10484 haveit=
10485 if test "X$additional_includedir" = "X/usr/local/include"; then
10486 if test -n "$GCC"; then
10487 case $host_os in
10488 linux*) haveit=yes;;
10489 esac
10490 fi
10491 fi
10492 if test -z "$haveit"; then
10493 for x in $CPPFLAGS $INCINTL; do
10494
10495 acl_save_prefix="$prefix"
10496 prefix="$acl_final_prefix"
10497 acl_save_exec_prefix="$exec_prefix"
10498 exec_prefix="$acl_final_exec_prefix"
10499 eval x=\"$x\"
10500 exec_prefix="$acl_save_exec_prefix"
10501 prefix="$acl_save_prefix"
10502
10503 if test "X$x" = "X-I$additional_includedir"; then
10504 haveit=yes
10505 break
10506 fi
10507 done
10508 if test -z "$haveit"; then
10509 if test -d "$additional_includedir"; then
10510 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10511 fi
10512 fi
10513 fi
10514 fi
10515 fi
10516 if test -n "$found_la"; then
10517 save_libdir="$libdir"
10518 case "$found_la" in
10519 */* | *\\*) . "$found_la" ;;
10520 *) . "./$found_la" ;;
10521 esac
10522 libdir="$save_libdir"
10523 for dep in $dependency_libs; do
10524 case "$dep" in
10525 -L*)
10526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10527 if test "X$additional_libdir" != "X/usr/lib"; then
10528 haveit=
10529 if test "X$additional_libdir" = "X/usr/local/lib"; then
10530 if test -n "$GCC"; then
10531 case $host_os in
10532 linux*) haveit=yes;;
10533 esac
10534 fi
10535 fi
10536 if test -z "$haveit"; then
10537 haveit=
10538 for x in $LDFLAGS $LIBINTL; do
10539
10540 acl_save_prefix="$prefix"
10541 prefix="$acl_final_prefix"
10542 acl_save_exec_prefix="$exec_prefix"
10543 exec_prefix="$acl_final_exec_prefix"
10544 eval x=\"$x\"
10545 exec_prefix="$acl_save_exec_prefix"
10546 prefix="$acl_save_prefix"
10547
10548 if test "X$x" = "X-L$additional_libdir"; then
10549 haveit=yes
10550 break
10551 fi
10552 done
10553 if test -z "$haveit"; then
10554 if test -d "$additional_libdir"; then
10555 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10556 fi
10557 fi
10558 haveit=
10559 for x in $LDFLAGS $LTLIBINTL; do
10560
10561 acl_save_prefix="$prefix"
10562 prefix="$acl_final_prefix"
10563 acl_save_exec_prefix="$exec_prefix"
10564 exec_prefix="$acl_final_exec_prefix"
10565 eval x=\"$x\"
10566 exec_prefix="$acl_save_exec_prefix"
10567 prefix="$acl_save_prefix"
10568
10569 if test "X$x" = "X-L$additional_libdir"; then
10570 haveit=yes
10571 break
10572 fi
10573 done
10574 if test -z "$haveit"; then
10575 if test -d "$additional_libdir"; then
10576 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10577 fi
10578 fi
10579 fi
10580 fi
10581 ;;
10582 -R*)
10583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10584 if test "$enable_rpath" != no; then
10585 haveit=
10586 for x in $rpathdirs; do
10587 if test "X$x" = "X$dir"; then
10588 haveit=yes
10589 break
10590 fi
10591 done
10592 if test -z "$haveit"; then
10593 rpathdirs="$rpathdirs $dir"
10594 fi
10595 haveit=
10596 for x in $ltrpathdirs; do
10597 if test "X$x" = "X$dir"; then
10598 haveit=yes
10599 break
10600 fi
10601 done
10602 if test -z "$haveit"; then
10603 ltrpathdirs="$ltrpathdirs $dir"
10604 fi
10605 fi
10606 ;;
10607 -l*)
10608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10609 ;;
10610 *.la)
10611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10612 ;;
10613 *)
10614 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10616 ;;
10617 esac
10618 done
10619 fi
10620 else
10621 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10623 fi
10624 fi
10625 fi
10626 done
10627 done
10628 if test "X$rpathdirs" != "X"; then
10629 if test -n "$hardcode_libdir_separator"; then
10630 alldirs=
10631 for found_dir in $rpathdirs; do
10632 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10633 done
10634 acl_save_libdir="$libdir"
10635 libdir="$alldirs"
10636 eval flag=\"$hardcode_libdir_flag_spec\"
10637 libdir="$acl_save_libdir"
10638 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10639 else
10640 for found_dir in $rpathdirs; do
10641 acl_save_libdir="$libdir"
10642 libdir="$found_dir"
10643 eval flag=\"$hardcode_libdir_flag_spec\"
10644 libdir="$acl_save_libdir"
10645 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10646 done
10647 fi
10648 fi
10649 if test "X$ltrpathdirs" != "X"; then
10650 for found_dir in $ltrpathdirs; do
10651 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10652 done
10653 fi
10654
10655 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10656 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10657 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10658 $as_echo_n "(cached) " >&6
10659 else
10660 gt_save_CPPFLAGS="$CPPFLAGS"
10661 CPPFLAGS="$CPPFLAGS $INCINTL"
10662 gt_save_LIBS="$LIBS"
10663 LIBS="$LIBS $LIBINTL"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 #include <libintl.h>
10671 extern int _nl_msg_cat_cntr;
10672 extern
10673 #ifdef __cplusplus
10674 "C"
10675 #endif
10676 const char *_nl_expand_alias ();
10677 int
10678 main ()
10679 {
10680 bindtextdomain ("", "");
10681 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
10707 gt_cv_func_gnugettext2_libintl=yes
10708 else
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 gt_cv_func_gnugettext2_libintl=no
10713 fi
10714
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10719 LIBS="$LIBS $LIBICONV"
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <libintl.h>
10727 extern int _nl_msg_cat_cntr;
10728 extern
10729 #ifdef __cplusplus
10730 "C"
10731 #endif
10732 const char *_nl_expand_alias ();
10733 int
10734 main ()
10735 {
10736 bindtextdomain ("", "");
10737 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747 esac
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_link") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext && {
10760 test "$cross_compiling" = yes ||
10761 $as_test_x conftest$ac_exeext
10762 }; then
10763 LIBINTL="$LIBINTL $LIBICONV"
10764 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10765 gt_cv_func_gnugettext2_libintl=yes
10766
10767 else
10768 $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10770
10771
10772 fi
10773
10774 rm -rf conftest.dSYM
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10777 fi
10778 CPPFLAGS="$gt_save_CPPFLAGS"
10779 LIBS="$gt_save_LIBS"
10780 fi
10781 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10782 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10783 fi
10784
10785 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10786 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10787 && test "$PACKAGE" != gettext-runtime \
10788 && test "$PACKAGE" != gettext-tools; }; then
10789 gt_use_preinstalled_gnugettext=yes
10790 else
10791 LIBINTL=
10792 LTLIBINTL=
10793 INCINTL=
10794 fi
10795
10796
10797 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10798 nls_cv_use_gnu_gettext=yes
10799 fi
10800 fi
10801
10802 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10803 BUILD_INCLUDED_LIBINTL=yes
10804 USE_INCLUDED_LIBINTL=yes
10805 LIBINTL="lib/intl/libintl.a $LIBICONV"
10806 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10807 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10808 fi
10809
10810 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10811 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10812 CATOBJEXT=.gmo
10813 fi
10814
10815
10816 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10817 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10818
10819 cat >>confdefs.h <<\_ACEOF
10820 @%:@define ENABLE_NLS 1
10821 _ACEOF
10822
10823 else
10824 USE_NLS=no
10825 fi
10826 fi
10827
10828 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10829 $as_echo_n "checking whether to use NLS... " >&6; }
10830 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10831 $as_echo "$USE_NLS" >&6; }
10832 if test "$USE_NLS" = "yes"; then
10833 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10834 $as_echo_n "checking where the gettext function comes from... " >&6; }
10835 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10836 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10837 gt_source="external libintl"
10838 else
10839 gt_source="libc"
10840 fi
10841 else
10842 gt_source="included intl directory"
10843 fi
10844 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10845 $as_echo "$gt_source" >&6; }
10846 fi
10847
10848 if test "$USE_NLS" = "yes"; then
10849
10850 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10851 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10852 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10853 $as_echo_n "checking how to link with libintl... " >&6; }
10854 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10855 $as_echo "$LIBINTL" >&6; }
10856
10857 for element in $INCINTL; do
10858 haveit=
10859 for x in $CPPFLAGS; do
10860
10861 acl_save_prefix="$prefix"
10862 prefix="$acl_final_prefix"
10863 acl_save_exec_prefix="$exec_prefix"
10864 exec_prefix="$acl_final_exec_prefix"
10865 eval x=\"$x\"
10866 exec_prefix="$acl_save_exec_prefix"
10867 prefix="$acl_save_prefix"
10868
10869 if test "X$x" = "X$element"; then
10870 haveit=yes
10871 break
10872 fi
10873 done
10874 if test -z "$haveit"; then
10875 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10876 fi
10877 done
10878
10879 fi
10880
10881
10882 cat >>confdefs.h <<\_ACEOF
10883 @%:@define HAVE_GETTEXT 1
10884 _ACEOF
10885
10886
10887 cat >>confdefs.h <<\_ACEOF
10888 @%:@define HAVE_DCGETTEXT 1
10889 _ACEOF
10890
10891 fi
10892
10893 POSUB=po
10894 fi
10895
10896
10897 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10898 BUILD_INCLUDED_LIBINTL=yes
10899 fi
10900
10901
10902
10903
10904
10905 nls_cv_header_intl=
10906 nls_cv_header_libgt=
10907
10908 DATADIRNAME=share
10909
10910
10911 INSTOBJEXT=.mo
10912
10913
10914 GENCAT=gencat
10915
10916
10917 if test "$USE_INCLUDED_LIBINTL" = yes; then
10918 INTLOBJS="\$(GETTOBJS)"
10919 fi
10920
10921
10922 INTL_LIBTOOL_SUFFIX_PREFIX=
10923
10924
10925
10926 INTLLIBS="$LIBINTL"
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939 ac_header_dirent=no
10940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10941 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10942 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10943 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945 $as_echo_n "(cached) " >&6
10946 else
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/types.h>
10954 #include <$ac_hdr>
10955
10956 int
10957 main ()
10958 {
10959 if ((DIR *) 0)
10960 return 0;
10961 ;
10962 return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext
10966 if { (ac_try="$ac_compile"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970 esac
10971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_compile") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest.$ac_objext; then
10983 eval "$as_ac_Header=yes"
10984 else
10985 $as_echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 eval "$as_ac_Header=no"
10989 fi
10990
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 fi
10993 ac_res=`eval 'as_val=${'$as_ac_Header'}
10994 $as_echo "$as_val"'`
10995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10996 $as_echo "$ac_res" >&6; }
10997 as_val=`eval 'as_val=${'$as_ac_Header'}
10998 $as_echo "$as_val"'`
10999 if test "x$as_val" = x""yes; then
11000 cat >>confdefs.h <<_ACEOF
11001 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11002 _ACEOF
11003
11004 ac_header_dirent=$ac_hdr; break
11005 fi
11006
11007 done
11008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11009 if test $ac_header_dirent = dirent.h; then
11010 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11011 $as_echo_n "checking for library containing opendir... " >&6; }
11012 if test "${ac_cv_search_opendir+set}" = set; then
11013 $as_echo_n "(cached) " >&6
11014 else
11015 ac_func_search_save_LIBS=$LIBS
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char opendir ();
11030 int
11031 main ()
11032 {
11033 return opendir ();
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 for ac_lib in '' dir; do
11039 if test -z "$ac_lib"; then
11040 ac_res="none required"
11041 else
11042 ac_res=-l$ac_lib
11043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11044 fi
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11065 }; then
11066 ac_cv_search_opendir=$ac_res
11067 else
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071
11072 fi
11073
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext
11077 if test "${ac_cv_search_opendir+set}" = set; then
11078 break
11079 fi
11080 done
11081 if test "${ac_cv_search_opendir+set}" = set; then
11082 :
11083 else
11084 ac_cv_search_opendir=no
11085 fi
11086 rm conftest.$ac_ext
11087 LIBS=$ac_func_search_save_LIBS
11088 fi
11089 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11090 $as_echo "$ac_cv_search_opendir" >&6; }
11091 ac_res=$ac_cv_search_opendir
11092 if test "$ac_res" != no; then
11093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11094
11095 fi
11096
11097 else
11098 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11099 $as_echo_n "checking for library containing opendir... " >&6; }
11100 if test "${ac_cv_search_opendir+set}" = set; then
11101 $as_echo_n "(cached) " >&6
11102 else
11103 ac_func_search_save_LIBS=$LIBS
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 char opendir ();
11118 int
11119 main ()
11120 {
11121 return opendir ();
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 for ac_lib in '' x; do
11127 if test -z "$ac_lib"; then
11128 ac_res="none required"
11129 else
11130 ac_res=-l$ac_lib
11131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11132 fi
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11140 $as_echo "$ac_try_echo") >&5
11141 (eval "$ac_link") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_c_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest$ac_exeext && {
11151 test "$cross_compiling" = yes ||
11152 $as_test_x conftest$ac_exeext
11153 }; then
11154 ac_cv_search_opendir=$ac_res
11155 else
11156 $as_echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159
11160 fi
11161
11162 rm -rf conftest.dSYM
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164 conftest$ac_exeext
11165 if test "${ac_cv_search_opendir+set}" = set; then
11166 break
11167 fi
11168 done
11169 if test "${ac_cv_search_opendir+set}" = set; then
11170 :
11171 else
11172 ac_cv_search_opendir=no
11173 fi
11174 rm conftest.$ac_ext
11175 LIBS=$ac_func_search_save_LIBS
11176 fi
11177 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11178 $as_echo "$ac_cv_search_opendir" >&6; }
11179 ac_res=$ac_cv_search_opendir
11180 if test "$ac_res" != no; then
11181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11182
11183 fi
11184
11185 fi
11186
11187 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11188 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11189 if test "${ac_cv_header_time+set}" = set; then
11190 $as_echo_n "(cached) " >&6
11191 else
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 #include <sys/types.h>
11199 #include <sys/time.h>
11200 #include <time.h>
11201
11202 int
11203 main ()
11204 {
11205 if ((struct tm *) 0)
11206 return 0;
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext
11212 if { (ac_try="$ac_compile"
11213 case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216 esac
11217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11218 $as_echo "$ac_try_echo") >&5
11219 (eval "$ac_compile") 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest.$ac_objext; then
11229 ac_cv_header_time=yes
11230 else
11231 $as_echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ac_cv_header_time=no
11235 fi
11236
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 fi
11239 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11240 $as_echo "$ac_cv_header_time" >&6; }
11241 if test $ac_cv_header_time = yes; then
11242
11243 cat >>confdefs.h <<\_ACEOF
11244 @%:@define TIME_WITH_SYS_TIME 1
11245 _ACEOF
11246
11247 fi
11248
11249
11250
11251
11252 for ac_header in inttypes.h
11253 do
11254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 $as_echo_n "checking for $ac_header... " >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 $as_echo_n "(cached) " >&6
11260 fi
11261 ac_res=`eval 'as_val=${'$as_ac_Header'}
11262 $as_echo "$as_val"'`
11263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11264 $as_echo "$ac_res" >&6; }
11265 else
11266 # Is the header compilable?
11267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 $as_echo_n "checking $ac_header usability... " >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h. */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 @%:@include <$ac_header>
11277 _ACEOF
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283 esac
11284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11285 $as_echo "$ac_try_echo") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11296 ac_header_compiler=yes
11297 else
11298 $as_echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_compiler=no
11302 fi
11303
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 $as_echo "$ac_header_compiler" >&6; }
11307
11308 # Is the header present?
11309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11310 $as_echo_n "checking $ac_header presence... " >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 @%:@include <$ac_header>
11318 _ACEOF
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11325 $as_echo "$ac_try_echo") >&5
11326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } >/dev/null && {
11333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 }; then
11336 ac_header_preproc=yes
11337 else
11338 $as_echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 ac_header_preproc=no
11342 fi
11343
11344 rm -f conftest.err conftest.$ac_ext
11345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11346 $as_echo "$ac_header_preproc" >&6; }
11347
11348 # So? What about this header?
11349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 yes:no: )
11351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11355 ac_header_preproc=yes
11356 ;;
11357 no:yes:* )
11358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11361 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11365 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11370 ( cat <<\_ASBOX
11371 @%:@@%:@ ------------------------------- @%:@@%:@
11372 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11373 @%:@@%:@ ------------------------------- @%:@@%:@
11374 _ASBOX
11375 ) | sed "s/^/$as_me: WARNING: /" >&2
11376 ;;
11377 esac
11378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11379 $as_echo_n "checking for $ac_header... " >&6; }
11380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11381 $as_echo_n "(cached) " >&6
11382 else
11383 eval "$as_ac_Header=\$ac_header_preproc"
11384 fi
11385 ac_res=`eval 'as_val=${'$as_ac_Header'}
11386 $as_echo "$as_val"'`
11387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11388 $as_echo "$ac_res" >&6; }
11389
11390 fi
11391 as_val=`eval 'as_val=${'$as_ac_Header'}
11392 $as_echo "$as_val"'`
11393 if test "x$as_val" = x""yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 _ACEOF
11397
11398 fi
11399
11400 done
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11426 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11427 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h \
11428 syslog.h ulimit.h
11429 do
11430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 $as_echo_n "checking for $ac_header... " >&6; }
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 $as_echo_n "(cached) " >&6
11436 fi
11437 ac_res=`eval 'as_val=${'$as_ac_Header'}
11438 $as_echo "$as_val"'`
11439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11440 $as_echo "$ac_res" >&6; }
11441 else
11442 # Is the header compilable?
11443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11444 $as_echo_n "checking $ac_header usability... " >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 $ac_includes_default
11452 @%:@include <$ac_header>
11453 _ACEOF
11454 rm -f conftest.$ac_objext
11455 if { (ac_try="$ac_compile"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459 esac
11460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461 $as_echo "$ac_try_echo") >&5
11462 (eval "$ac_compile") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } && {
11469 test -z "$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 } && test -s conftest.$ac_objext; then
11472 ac_header_compiler=yes
11473 else
11474 $as_echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 ac_header_compiler=no
11478 fi
11479
11480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11482 $as_echo "$ac_header_compiler" >&6; }
11483
11484 # Is the header present?
11485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11486 $as_echo_n "checking $ac_header presence... " >&6; }
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 @%:@include <$ac_header>
11494 _ACEOF
11495 if { (ac_try="$ac_cpp conftest.$ac_ext"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11501 $as_echo "$ac_try_echo") >&5
11502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } >/dev/null && {
11509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 }; then
11512 ac_header_preproc=yes
11513 else
11514 $as_echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_header_preproc=no
11518 fi
11519
11520 rm -f conftest.err conftest.$ac_ext
11521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 $as_echo "$ac_header_preproc" >&6; }
11523
11524 # So? What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 yes:no: )
11527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11532 ;;
11533 no:yes:* )
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546 ( cat <<\_ASBOX
11547 @%:@@%:@ ------------------------------- @%:@@%:@
11548 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11549 @%:@@%:@ ------------------------------- @%:@@%:@
11550 _ASBOX
11551 ) | sed "s/^/$as_me: WARNING: /" >&2
11552 ;;
11553 esac
11554 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11555 $as_echo_n "checking for $ac_header... " >&6; }
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 $as_echo_n "(cached) " >&6
11558 else
11559 eval "$as_ac_Header=\$ac_header_preproc"
11560 fi
11561 ac_res=`eval 'as_val=${'$as_ac_Header'}
11562 $as_echo "$as_val"'`
11563 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11564 $as_echo "$ac_res" >&6; }
11565
11566 fi
11567 as_val=`eval 'as_val=${'$as_ac_Header'}
11568 $as_echo "$as_val"'`
11569 if test "x$as_val" = x""yes; then
11570 cat >>confdefs.h <<_ACEOF
11571 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11572 _ACEOF
11573
11574 fi
11575
11576 done
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11591 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11592 sys/time.h sys/times.h sys/types.h sys/wait.h
11593 do
11594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 $as_echo_n "checking for $ac_header... " >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 $as_echo_n "(cached) " >&6
11600 fi
11601 ac_res=`eval 'as_val=${'$as_ac_Header'}
11602 $as_echo "$as_val"'`
11603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11604 $as_echo "$ac_res" >&6; }
11605 else
11606 # Is the header compilable?
11607 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 $as_echo_n "checking $ac_header usability... " >&6; }
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 $ac_includes_default
11616 @%:@include <$ac_header>
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11625 $as_echo "$ac_try_echo") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 ac_header_compiler=yes
11637 else
11638 $as_echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641 ac_header_compiler=no
11642 fi
11643
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 $as_echo "$ac_header_compiler" >&6; }
11647
11648 # Is the header present?
11649 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 $as_echo_n "checking $ac_header presence... " >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 @%:@include <$ac_header>
11658 _ACEOF
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11665 $as_echo "$ac_try_echo") >&5
11666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null && {
11673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11674 test ! -s conftest.err
11675 }; then
11676 ac_header_preproc=yes
11677 else
11678 $as_echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11680
11681 ac_header_preproc=no
11682 fi
11683
11684 rm -f conftest.err conftest.$ac_ext
11685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11686 $as_echo "$ac_header_preproc" >&6; }
11687
11688 # So? What about this header?
11689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11690 yes:no: )
11691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11692 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11695 ac_header_preproc=yes
11696 ;;
11697 no:yes:* )
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11701 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11703 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11705 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11710 ( cat <<\_ASBOX
11711 @%:@@%:@ ------------------------------- @%:@@%:@
11712 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11713 @%:@@%:@ ------------------------------- @%:@@%:@
11714 _ASBOX
11715 ) | sed "s/^/$as_me: WARNING: /" >&2
11716 ;;
11717 esac
11718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11719 $as_echo_n "checking for $ac_header... " >&6; }
11720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 $as_echo_n "(cached) " >&6
11722 else
11723 eval "$as_ac_Header=\$ac_header_preproc"
11724 fi
11725 ac_res=`eval 'as_val=${'$as_ac_Header'}
11726 $as_echo "$as_val"'`
11727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11728 $as_echo "$ac_res" >&6; }
11729
11730 fi
11731 as_val=`eval 'as_val=${'$as_ac_Header'}
11732 $as_echo "$as_val"'`
11733 if test "x$as_val" = x""yes; then
11734 cat >>confdefs.h <<_ACEOF
11735 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11736 _ACEOF
11737
11738 fi
11739
11740 done
11741
11742
11743
11744 for ac_header in netinet/in.h arpa/inet.h
11745 do
11746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11749 $as_echo_n "checking for $ac_header... " >&6; }
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 $as_echo_n "(cached) " >&6
11752 fi
11753 ac_res=`eval 'as_val=${'$as_ac_Header'}
11754 $as_echo "$as_val"'`
11755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11756 $as_echo "$ac_res" >&6; }
11757 else
11758 # Is the header compilable?
11759 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 $as_echo_n "checking $ac_header usability... " >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 @%:@include <$ac_header>
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11777 $as_echo "$ac_try_echo") >&5
11778 (eval "$ac_compile") 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.$ac_objext; then
11788 ac_header_compiler=yes
11789 else
11790 $as_echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11792
11793 ac_header_compiler=no
11794 fi
11795
11796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11798 $as_echo "$ac_header_compiler" >&6; }
11799
11800 # Is the header present?
11801 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11802 $as_echo_n "checking $ac_header presence... " >&6; }
11803 cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h. */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 @%:@include <$ac_header>
11810 _ACEOF
11811 if { (ac_try="$ac_cpp conftest.$ac_ext"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815 esac
11816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11817 $as_echo "$ac_try_echo") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev/null && {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 }; then
11828 ac_header_preproc=yes
11829 else
11830 $as_echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_header_preproc=no
11834 fi
11835
11836 rm -f conftest.err conftest.$ac_ext
11837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838 $as_echo "$ac_header_preproc" >&6; }
11839
11840 # So? What about this header?
11841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11842 yes:no: )
11843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11844 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11847 ac_header_preproc=yes
11848 ;;
11849 no:yes:* )
11850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11851 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11853 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11855 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11857 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11862 ( cat <<\_ASBOX
11863 @%:@@%:@ ------------------------------- @%:@@%:@
11864 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
11865 @%:@@%:@ ------------------------------- @%:@@%:@
11866 _ASBOX
11867 ) | sed "s/^/$as_me: WARNING: /" >&2
11868 ;;
11869 esac
11870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 $as_echo_n "checking for $ac_header... " >&6; }
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 $as_echo_n "(cached) " >&6
11874 else
11875 eval "$as_ac_Header=\$ac_header_preproc"
11876 fi
11877 ac_res=`eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'`
11879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11880 $as_echo "$ac_res" >&6; }
11881
11882 fi
11883 as_val=`eval 'as_val=${'$as_ac_Header'}
11884 $as_echo "$as_val"'`
11885 if test "x$as_val" = x""yes; then
11886 cat >>confdefs.h <<_ACEOF
11887 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11888 _ACEOF
11889
11890 fi
11891
11892 done
11893
11894
11895 { $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11896 $as_echo_n "checking for sys/ptem.h... " >&6; }
11897 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11898 $as_echo_n "(cached) " >&6
11899 else
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906
11907 #if HAVE_SYS_STREAM_H
11908 # include <sys/stream.h>
11909 #endif
11910
11911
11912 @%:@include <sys/ptem.h>
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921 $as_echo "$ac_try_echo") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 ac_cv_header_sys_ptem_h=yes
11933 else
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 ac_cv_header_sys_ptem_h=no
11938 fi
11939
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 fi
11942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11943 $as_echo "$ac_cv_header_sys_ptem_h" >&6; }
11944
11945
11946
11947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11948 # for constant arguments. Useless!
11949 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11950 $as_echo_n "checking for working alloca.h... " >&6; }
11951 if test "${ac_cv_working_alloca_h+set}" = set; then
11952 $as_echo_n "(cached) " >&6
11953 else
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h. */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 @%:@include <alloca.h>
11961 int
11962 main ()
11963 {
11964 char *p = (char *) alloca (2 * sizeof (int));
11965 if (p) return 0;
11966 ;
11967 return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975 esac
11976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11977 $as_echo "$ac_try_echo") >&5
11978 (eval "$ac_link") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest$ac_exeext && {
11988 test "$cross_compiling" = yes ||
11989 $as_test_x conftest$ac_exeext
11990 }; then
11991 ac_cv_working_alloca_h=yes
11992 else
11993 $as_echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_working_alloca_h=no
11997 fi
11998
11999 rm -rf conftest.dSYM
12000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12001 conftest$ac_exeext conftest.$ac_ext
12002 fi
12003 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12004 $as_echo "$ac_cv_working_alloca_h" >&6; }
12005 if test $ac_cv_working_alloca_h = yes; then
12006
12007 cat >>confdefs.h <<\_ACEOF
12008 @%:@define HAVE_ALLOCA_H 1
12009 _ACEOF
12010
12011 fi
12012
12013 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12014 $as_echo_n "checking for alloca... " >&6; }
12015 if test "${ac_cv_func_alloca_works+set}" = set; then
12016 $as_echo_n "(cached) " >&6
12017 else
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 #ifdef __GNUC__
12025 # define alloca __builtin_alloca
12026 #else
12027 # ifdef _MSC_VER
12028 # include <malloc.h>
12029 # define alloca _alloca
12030 # else
12031 # ifdef HAVE_ALLOCA_H
12032 # include <alloca.h>
12033 # else
12034 # ifdef _AIX
12035 #pragma alloca
12036 # else
12037 # ifndef alloca /* predefined by HP cc +Olibcalls */
12038 char *alloca ();
12039 # endif
12040 # endif
12041 # endif
12042 # endif
12043 #endif
12044
12045 int
12046 main ()
12047 {
12048 char *p = (char *) alloca (1);
12049 if (p) return 0;
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059 esac
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062 (eval "$ac_link") 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest$ac_exeext && {
12072 test "$cross_compiling" = yes ||
12073 $as_test_x conftest$ac_exeext
12074 }; then
12075 ac_cv_func_alloca_works=yes
12076 else
12077 $as_echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 ac_cv_func_alloca_works=no
12081 fi
12082
12083 rm -rf conftest.dSYM
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12086 fi
12087 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12088 $as_echo "$ac_cv_func_alloca_works" >&6; }
12089
12090 if test $ac_cv_func_alloca_works = yes; then
12091
12092 cat >>confdefs.h <<\_ACEOF
12093 @%:@define HAVE_ALLOCA 1
12094 _ACEOF
12095
12096 else
12097 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12098 # that cause trouble. Some versions do not even contain alloca or
12099 # contain a buggy version. If you still want to use their alloca,
12100 # use ar to extract alloca.o from them instead of compiling alloca.c.
12101
12102 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12103
12104 cat >>confdefs.h <<\_ACEOF
12105 @%:@define C_ALLOCA 1
12106 _ACEOF
12107
12108
12109 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12110 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12111 if test "${ac_cv_os_cray+set}" = set; then
12112 $as_echo_n "(cached) " >&6
12113 else
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #if defined CRAY && ! defined CRAY2
12121 webecray
12122 #else
12123 wenotbecray
12124 #endif
12125
12126 _ACEOF
12127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12128 $EGREP "webecray" >/dev/null 2>&1; then
12129 ac_cv_os_cray=yes
12130 else
12131 ac_cv_os_cray=no
12132 fi
12133 rm -f conftest*
12134
12135 fi
12136 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12137 $as_echo "$ac_cv_os_cray" >&6; }
12138 if test $ac_cv_os_cray = yes; then
12139 for ac_func in _getb67 GETB67 getb67; do
12140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12141 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12142 $as_echo_n "checking for $ac_func... " >&6; }
12143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12144 $as_echo_n "(cached) " >&6
12145 else
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12154 #define $ac_func innocuous_$ac_func
12155
12156 /* System header to define __stub macros and hopefully few prototypes,
12157 which can conflict with char $ac_func (); below.
12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12159 <limits.h> exists even on freestanding compilers. */
12160
12161 #ifdef __STDC__
12162 # include <limits.h>
12163 #else
12164 # include <assert.h>
12165 #endif
12166
12167 #undef $ac_func
12168
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 char $ac_func ();
12176 /* The GNU C library defines this for functions which it implements
12177 to always fail with ENOSYS. Some functions are actually named
12178 something starting with __ and the normal name is an alias. */
12179 #if defined __stub_$ac_func || defined __stub___$ac_func
12180 choke me
12181 #endif
12182
12183 int
12184 main ()
12185 {
12186 return $ac_func ();
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (ac_try="$ac_link"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196 esac
12197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12198 $as_echo "$ac_try_echo") >&5
12199 (eval "$ac_link") 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } && {
12206 test -z "$ac_c_werror_flag" ||
12207 test ! -s conftest.err
12208 } && test -s conftest$ac_exeext && {
12209 test "$cross_compiling" = yes ||
12210 $as_test_x conftest$ac_exeext
12211 }; then
12212 eval "$as_ac_var=yes"
12213 else
12214 $as_echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 eval "$as_ac_var=no"
12218 fi
12219
12220 rm -rf conftest.dSYM
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222 conftest$ac_exeext conftest.$ac_ext
12223 fi
12224 ac_res=`eval 'as_val=${'$as_ac_var'}
12225 $as_echo "$as_val"'`
12226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12227 $as_echo "$ac_res" >&6; }
12228 as_val=`eval 'as_val=${'$as_ac_var'}
12229 $as_echo "$as_val"'`
12230 if test "x$as_val" = x""yes; then
12231
12232 cat >>confdefs.h <<_ACEOF
12233 @%:@define CRAY_STACKSEG_END $ac_func
12234 _ACEOF
12235
12236 break
12237 fi
12238
12239 done
12240 fi
12241
12242 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12243 $as_echo_n "checking stack direction for C alloca... " >&6; }
12244 if test "${ac_cv_c_stack_direction+set}" = set; then
12245 $as_echo_n "(cached) " >&6
12246 else
12247 if test "$cross_compiling" = yes; then
12248 ac_cv_c_stack_direction=0
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 $ac_includes_default
12257 int
12258 find_stack_direction ()
12259 {
12260 static char *addr = 0;
12261 auto char dummy;
12262 if (addr == 0)
12263 {
12264 addr = &dummy;
12265 return find_stack_direction ();
12266 }
12267 else
12268 return (&dummy > addr) ? 1 : -1;
12269 }
12270
12271 int
12272 main ()
12273 {
12274 return find_stack_direction () < 0;
12275 }
12276 _ACEOF
12277 rm -f conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282 esac
12283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12284 $as_echo "$ac_try_echo") >&5
12285 (eval "$ac_link") 2>&5
12286 ac_status=$?
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292 esac
12293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12294 $as_echo "$ac_try_echo") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_c_stack_direction=1
12300 else
12301 $as_echo "$as_me: program exited with status $ac_status" >&5
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ( exit $ac_status )
12306 ac_cv_c_stack_direction=-1
12307 fi
12308 rm -rf conftest.dSYM
12309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12310 fi
12311
12312
12313 fi
12314 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12315 $as_echo "$ac_cv_c_stack_direction" >&6; }
12316
12317 cat >>confdefs.h <<_ACEOF
12318 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
12319 _ACEOF
12320
12321
12322 fi
12323
12324 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12325 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12326 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12327 $as_echo_n "(cached) " >&6
12328 else
12329 # Use it with a single arg.
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h. */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 $ac_includes_default
12337 int
12338 main ()
12339 {
12340 getpgrp (0);
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350 esac
12351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12352 $as_echo "$ac_try_echo") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.$ac_objext; then
12363 ac_cv_func_getpgrp_void=no
12364 else
12365 $as_echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_func_getpgrp_void=yes
12369 fi
12370
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372
12373 fi
12374 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12375 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12376 if test $ac_cv_func_getpgrp_void = yes; then
12377
12378 cat >>confdefs.h <<\_ACEOF
12379 @%:@define GETPGRP_VOID 1
12380 _ACEOF
12381
12382 fi
12383
12384 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12385 $as_echo_n "(cached) " >&6
12386 else
12387 ac_cv_func_setvbuf_reversed=no
12388 fi
12389
12390
12391
12392 for ac_func in vprintf
12393 do
12394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12396 $as_echo_n "checking for $ac_func... " >&6; }
12397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12398 $as_echo_n "(cached) " >&6
12399 else
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12408 #define $ac_func innocuous_$ac_func
12409
12410 /* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char $ac_func (); below.
12412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12413 <limits.h> exists even on freestanding compilers. */
12414
12415 #ifdef __STDC__
12416 # include <limits.h>
12417 #else
12418 # include <assert.h>
12419 #endif
12420
12421 #undef $ac_func
12422
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char $ac_func ();
12430 /* The GNU C library defines this for functions which it implements
12431 to always fail with ENOSYS. Some functions are actually named
12432 something starting with __ and the normal name is an alias. */
12433 #if defined __stub_$ac_func || defined __stub___$ac_func
12434 choke me
12435 #endif
12436
12437 int
12438 main ()
12439 {
12440 return $ac_func ();
12441 ;
12442 return 0;
12443 }
12444 _ACEOF
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (ac_try="$ac_link"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450 esac
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_link") 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest$ac_exeext && {
12463 test "$cross_compiling" = yes ||
12464 $as_test_x conftest$ac_exeext
12465 }; then
12466 eval "$as_ac_var=yes"
12467 else
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471 eval "$as_ac_var=no"
12472 fi
12473
12474 rm -rf conftest.dSYM
12475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12476 conftest$ac_exeext conftest.$ac_ext
12477 fi
12478 ac_res=`eval 'as_val=${'$as_ac_var'}
12479 $as_echo "$as_val"'`
12480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12481 $as_echo "$ac_res" >&6; }
12482 as_val=`eval 'as_val=${'$as_ac_var'}
12483 $as_echo "$as_val"'`
12484 if test "x$as_val" = x""yes; then
12485 cat >>confdefs.h <<_ACEOF
12486 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12487 _ACEOF
12488
12489 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12490 $as_echo_n "checking for _doprnt... " >&6; }
12491 if test "${ac_cv_func__doprnt+set}" = set; then
12492 $as_echo_n "(cached) " >&6
12493 else
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12502 #define _doprnt innocuous__doprnt
12503
12504 /* System header to define __stub macros and hopefully few prototypes,
12505 which can conflict with char _doprnt (); below.
12506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12507 <limits.h> exists even on freestanding compilers. */
12508
12509 #ifdef __STDC__
12510 # include <limits.h>
12511 #else
12512 # include <assert.h>
12513 #endif
12514
12515 #undef _doprnt
12516
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12520 #ifdef __cplusplus
12521 extern "C"
12522 #endif
12523 char _doprnt ();
12524 /* The GNU C library defines this for functions which it implements
12525 to always fail with ENOSYS. Some functions are actually named
12526 something starting with __ and the normal name is an alias. */
12527 #if defined __stub__doprnt || defined __stub____doprnt
12528 choke me
12529 #endif
12530
12531 int
12532 main ()
12533 {
12534 return _doprnt ();
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544 esac
12545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12546 $as_echo "$ac_try_echo") >&5
12547 (eval "$ac_link") 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && {
12554 test -z "$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12556 } && test -s conftest$ac_exeext && {
12557 test "$cross_compiling" = yes ||
12558 $as_test_x conftest$ac_exeext
12559 }; then
12560 ac_cv_func__doprnt=yes
12561 else
12562 $as_echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ac_cv_func__doprnt=no
12566 fi
12567
12568 rm -rf conftest.dSYM
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570 conftest$ac_exeext conftest.$ac_ext
12571 fi
12572 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12573 $as_echo "$ac_cv_func__doprnt" >&6; }
12574 if test "x$ac_cv_func__doprnt" = x""yes; then
12575
12576 cat >>confdefs.h <<\_ACEOF
12577 @%:@define HAVE_DOPRNT 1
12578 _ACEOF
12579
12580 fi
12581
12582 fi
12583 done
12584
12585
12586 { $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12587 $as_echo_n "checking for working strcoll... " >&6; }
12588 if test "${ac_cv_func_strcoll_works+set}" = set; then
12589 $as_echo_n "(cached) " >&6
12590 else
12591 if test "$cross_compiling" = yes; then
12592 ac_cv_func_strcoll_works=no
12593 else
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12601 int
12602 main ()
12603 {
12604 return (strcoll ("abc", "def") >= 0 ||
12605 strcoll ("ABC", "DEF") >= 0 ||
12606 strcoll ("123", "456") >= 0)
12607 ;
12608 return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619 (eval "$ac_link") 2>&5
12620 ac_status=$?
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629 (eval "$ac_try") 2>&5
12630 ac_status=$?
12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_func_strcoll_works=yes
12634 else
12635 $as_echo "$as_me: program exited with status $ac_status" >&5
12636 $as_echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ( exit $ac_status )
12640 ac_cv_func_strcoll_works=no
12641 fi
12642 rm -rf conftest.dSYM
12643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12644 fi
12645
12646
12647 fi
12648 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12649 $as_echo "$ac_cv_func_strcoll_works" >&6; }
12650 if test $ac_cv_func_strcoll_works = yes; then
12651
12652 cat >>confdefs.h <<\_ACEOF
12653 @%:@define HAVE_STRCOLL 1
12654 _ACEOF
12655
12656 fi
12657
12658
12659
12660 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12661 MALLOC_TARGET=alloca
12662 MALLOC_SRC=alloca.c
12663
12664 MALLOC_LIB='-lmalloc'
12665 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12666 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12667 MALLOC_DEP='$(MALLOC_LIBRARY)'
12668 fi
12669
12670 if test "$ac_cv_func_vprintf" = no; then
12671 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12672 $as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 #include <stdio.h>
12680
12681 _ACEOF
12682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12683 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12684 ac_cv_func_vprintf=yes
12685 fi
12686 rm -f conftest*
12687
12688 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12689 $as_echo "$ac_cv_func_vprintf" >&6; }
12690 if test $ac_cv_func_vprintf = yes; then
12691 cat >>confdefs.h <<\_ACEOF
12692 @%:@define HAVE_VPRINTF 1
12693 _ACEOF
12694
12695 fi
12696 fi
12697
12698 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12699 case " $LIB@&t@OBJS " in
12700 *" vprint.$ac_objext "* ) ;;
12701 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext"
12702 ;;
12703 esac
12704
12705 fi
12706
12707 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12708 $as_echo_n "checking return type of signal handlers... " >&6; }
12709 if test "${ac_cv_type_signal+set}" = set; then
12710 $as_echo_n "(cached) " >&6
12711 else
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 #include <sys/types.h>
12719 #include <signal.h>
12720
12721 int
12722 main ()
12723 {
12724 return *(signal (0, 0)) (0) == 1;
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736 $as_echo "$ac_try_echo") >&5
12737 (eval "$ac_compile") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest.$ac_objext; then
12747 ac_cv_type_signal=int
12748 else
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 ac_cv_type_signal=void
12753 fi
12754
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 fi
12757 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12758 $as_echo "$ac_cv_type_signal" >&6; }
12759
12760 cat >>confdefs.h <<_ACEOF
12761 @%:@define RETSIGTYPE $ac_cv_type_signal
12762 _ACEOF
12763
12764
12765
12766 { $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12767 $as_echo_n "checking for __setostype... " >&6; }
12768 if test "${ac_cv_func___setostype+set}" = set; then
12769 $as_echo_n "(cached) " >&6
12770 else
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12779 #define __setostype innocuous___setostype
12780
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char __setostype (); below.
12783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 <limits.h> exists even on freestanding compilers. */
12785
12786 #ifdef __STDC__
12787 # include <limits.h>
12788 #else
12789 # include <assert.h>
12790 #endif
12791
12792 #undef __setostype
12793
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 char __setostype ();
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined __stub___setostype || defined __stub_____setostype
12805 choke me
12806 #endif
12807
12808 int
12809 main ()
12810 {
12811 return __setostype ();
12812 ;
12813 return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (ac_try="$ac_link"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821 esac
12822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12823 $as_echo "$ac_try_echo") >&5
12824 (eval "$ac_link") 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } && {
12831 test -z "$ac_c_werror_flag" ||
12832 test ! -s conftest.err
12833 } && test -s conftest$ac_exeext && {
12834 test "$cross_compiling" = yes ||
12835 $as_test_x conftest$ac_exeext
12836 }; then
12837 ac_cv_func___setostype=yes
12838 else
12839 $as_echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 ac_cv_func___setostype=no
12843 fi
12844
12845 rm -rf conftest.dSYM
12846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12847 conftest$ac_exeext conftest.$ac_ext
12848 fi
12849 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12850 $as_echo "$ac_cv_func___setostype" >&6; }
12851 if test "x$ac_cv_func___setostype" = x""yes; then
12852 cat >>confdefs.h <<\_ACEOF
12853 @%:@define HAVE_SETOSTYPE 1
12854 _ACEOF
12855
12856 fi
12857
12858 { $as_echo "$as_me:$LINENO: checking for wait3" >&5
12859 $as_echo_n "checking for wait3... " >&6; }
12860 if test "${ac_cv_func_wait3+set}" = set; then
12861 $as_echo_n "(cached) " >&6
12862 else
12863 cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h. */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12871 #define wait3 innocuous_wait3
12872
12873 /* System header to define __stub macros and hopefully few prototypes,
12874 which can conflict with char wait3 (); below.
12875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12876 <limits.h> exists even on freestanding compilers. */
12877
12878 #ifdef __STDC__
12879 # include <limits.h>
12880 #else
12881 # include <assert.h>
12882 #endif
12883
12884 #undef wait3
12885
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char wait3 ();
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined __stub_wait3 || defined __stub___wait3
12897 choke me
12898 #endif
12899
12900 int
12901 main ()
12902 {
12903 return wait3 ();
12904 ;
12905 return 0;
12906 }
12907 _ACEOF
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913 esac
12914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12915 $as_echo "$ac_try_echo") >&5
12916 (eval "$ac_link") 2>conftest.er1
12917 ac_status=$?
12918 grep -v '^ *+' conftest.er1 >conftest.err
12919 rm -f conftest.er1
12920 cat conftest.err >&5
12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && {
12923 test -z "$ac_c_werror_flag" ||
12924 test ! -s conftest.err
12925 } && test -s conftest$ac_exeext && {
12926 test "$cross_compiling" = yes ||
12927 $as_test_x conftest$ac_exeext
12928 }; then
12929 ac_cv_func_wait3=yes
12930 else
12931 $as_echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934 ac_cv_func_wait3=no
12935 fi
12936
12937 rm -rf conftest.dSYM
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939 conftest$ac_exeext conftest.$ac_ext
12940 fi
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12942 $as_echo "$ac_cv_func_wait3" >&6; }
12943 if test "x$ac_cv_func_wait3" = x""yes; then
12944 cat >>confdefs.h <<\_ACEOF
12945 @%:@define HAVE_WAIT3 1
12946 _ACEOF
12947
12948 fi
12949
12950 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
12951 $as_echo_n "checking for isinf... " >&6; }
12952 if test "${ac_cv_func_isinf+set}" = set; then
12953 $as_echo_n "(cached) " >&6
12954 else
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h. */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12963 #define isinf innocuous_isinf
12964
12965 /* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char isinf (); below.
12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968 <limits.h> exists even on freestanding compilers. */
12969
12970 #ifdef __STDC__
12971 # include <limits.h>
12972 #else
12973 # include <assert.h>
12974 #endif
12975
12976 #undef isinf
12977
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char isinf ();
12985 /* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988 #if defined __stub_isinf || defined __stub___isinf
12989 choke me
12990 #endif
12991
12992 int
12993 main ()
12994 {
12995 return isinf ();
12996 ;
12997 return 0;
12998 }
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008 (eval "$ac_link") 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest$ac_exeext && {
13018 test "$cross_compiling" = yes ||
13019 $as_test_x conftest$ac_exeext
13020 }; then
13021 ac_cv_func_isinf=yes
13022 else
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ac_cv_func_isinf=no
13027 fi
13028
13029 rm -rf conftest.dSYM
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031 conftest$ac_exeext conftest.$ac_ext
13032 fi
13033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13034 $as_echo "$ac_cv_func_isinf" >&6; }
13035 if test "x$ac_cv_func_isinf" = x""yes; then
13036 cat >>confdefs.h <<\_ACEOF
13037 @%:@define HAVE_ISINF_IN_LIBC 1
13038 _ACEOF
13039
13040 fi
13041
13042 { $as_echo "$as_me:$LINENO: checking for isnan" >&5
13043 $as_echo_n "checking for isnan... " >&6; }
13044 if test "${ac_cv_func_isnan+set}" = set; then
13045 $as_echo_n "(cached) " >&6
13046 else
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
13054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13055 #define isnan innocuous_isnan
13056
13057 /* System header to define __stub macros and hopefully few prototypes,
13058 which can conflict with char isnan (); below.
13059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13060 <limits.h> exists even on freestanding compilers. */
13061
13062 #ifdef __STDC__
13063 # include <limits.h>
13064 #else
13065 # include <assert.h>
13066 #endif
13067
13068 #undef isnan
13069
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 char isnan ();
13077 /* The GNU C library defines this for functions which it implements
13078 to always fail with ENOSYS. Some functions are actually named
13079 something starting with __ and the normal name is an alias. */
13080 #if defined __stub_isnan || defined __stub___isnan
13081 choke me
13082 #endif
13083
13084 int
13085 main ()
13086 {
13087 return isnan ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_link") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest$ac_exeext && {
13110 test "$cross_compiling" = yes ||
13111 $as_test_x conftest$ac_exeext
13112 }; then
13113 ac_cv_func_isnan=yes
13114 else
13115 $as_echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_cv_func_isnan=no
13119 fi
13120
13121 rm -rf conftest.dSYM
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124 fi
13125 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13126 $as_echo "$ac_cv_func_isnan" >&6; }
13127 if test "x$ac_cv_func_isnan" = x""yes; then
13128 cat >>confdefs.h <<\_ACEOF
13129 @%:@define HAVE_ISNAN_IN_LIBC 1
13130 _ACEOF
13131
13132 fi
13133
13134
13135 { $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13136 $as_echo_n "checking for mkfifo... " >&6; }
13137 if test "${ac_cv_func_mkfifo+set}" = set; then
13138 $as_echo_n "(cached) " >&6
13139 else
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13148 #define mkfifo innocuous_mkfifo
13149
13150 /* System header to define __stub macros and hopefully few prototypes,
13151 which can conflict with char mkfifo (); below.
13152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13153 <limits.h> exists even on freestanding compilers. */
13154
13155 #ifdef __STDC__
13156 # include <limits.h>
13157 #else
13158 # include <assert.h>
13159 #endif
13160
13161 #undef mkfifo
13162
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 char mkfifo ();
13170 /* The GNU C library defines this for functions which it implements
13171 to always fail with ENOSYS. Some functions are actually named
13172 something starting with __ and the normal name is an alias. */
13173 #if defined __stub_mkfifo || defined __stub___mkfifo
13174 choke me
13175 #endif
13176
13177 int
13178 main ()
13179 {
13180 return mkfifo ();
13181 ;
13182 return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (ac_try="$ac_link"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190 esac
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_link") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest$ac_exeext && {
13203 test "$cross_compiling" = yes ||
13204 $as_test_x conftest$ac_exeext
13205 }; then
13206 ac_cv_func_mkfifo=yes
13207 else
13208 $as_echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 ac_cv_func_mkfifo=no
13212 fi
13213
13214 rm -rf conftest.dSYM
13215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13216 conftest$ac_exeext conftest.$ac_ext
13217 fi
13218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13219 $as_echo "$ac_cv_func_mkfifo" >&6; }
13220 if test "x$ac_cv_func_mkfifo" = x""yes; then
13221 cat >>confdefs.h <<\_ACEOF
13222 @%:@define HAVE_MKFIFO 1
13223 _ACEOF
13224
13225 else
13226 cat >>confdefs.h <<\_ACEOF
13227 @%:@define MKFIFO_MISSING 1
13228 _ACEOF
13229
13230 fi
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13257 getpagesize getpeername getrlimit getrusage gettimeofday \
13258 kill killpg lstat readlink sbrk select setdtablesize \
13259 setitimer tcgetpgrp uname ulimit waitpid
13260 do
13261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13263 $as_echo_n "checking for $ac_func... " >&6; }
13264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13265 $as_echo_n "(cached) " >&6
13266 else
13267 cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13275 #define $ac_func innocuous_$ac_func
13276
13277 /* System header to define __stub macros and hopefully few prototypes,
13278 which can conflict with char $ac_func (); below.
13279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280 <limits.h> exists even on freestanding compilers. */
13281
13282 #ifdef __STDC__
13283 # include <limits.h>
13284 #else
13285 # include <assert.h>
13286 #endif
13287
13288 #undef $ac_func
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char $ac_func ();
13297 /* The GNU C library defines this for functions which it implements
13298 to always fail with ENOSYS. Some functions are actually named
13299 something starting with __ and the normal name is an alias. */
13300 #if defined __stub_$ac_func || defined __stub___$ac_func
13301 choke me
13302 #endif
13303
13304 int
13305 main ()
13306 {
13307 return $ac_func ();
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13319 $as_echo "$ac_try_echo") >&5
13320 (eval "$ac_link") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest$ac_exeext && {
13330 test "$cross_compiling" = yes ||
13331 $as_test_x conftest$ac_exeext
13332 }; then
13333 eval "$as_ac_var=yes"
13334 else
13335 $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 eval "$as_ac_var=no"
13339 fi
13340
13341 rm -rf conftest.dSYM
13342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13343 conftest$ac_exeext conftest.$ac_ext
13344 fi
13345 ac_res=`eval 'as_val=${'$as_ac_var'}
13346 $as_echo "$as_val"'`
13347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13348 $as_echo "$ac_res" >&6; }
13349 as_val=`eval 'as_val=${'$as_ac_var'}
13350 $as_echo "$as_val"'`
13351 if test "x$as_val" = x""yes; then
13352 cat >>confdefs.h <<_ACEOF
13353 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13354 _ACEOF
13355
13356 fi
13357 done
13358
13359
13360 for ac_func in rename
13361 do
13362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13364 $as_echo_n "checking for $ac_func... " >&6; }
13365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13366 $as_echo_n "(cached) " >&6
13367 else
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376 #define $ac_func innocuous_$ac_func
13377
13378 /* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char $ac_func (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13382
13383 #ifdef __STDC__
13384 # include <limits.h>
13385 #else
13386 # include <assert.h>
13387 #endif
13388
13389 #undef $ac_func
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char $ac_func ();
13398 /* The GNU C library defines this for functions which it implements
13399 to always fail with ENOSYS. Some functions are actually named
13400 something starting with __ and the normal name is an alias. */
13401 #if defined __stub_$ac_func || defined __stub___$ac_func
13402 choke me
13403 #endif
13404
13405 int
13406 main ()
13407 {
13408 return $ac_func ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418 esac
13419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13420 $as_echo "$ac_try_echo") >&5
13421 (eval "$ac_link") 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest$ac_exeext && {
13431 test "$cross_compiling" = yes ||
13432 $as_test_x conftest$ac_exeext
13433 }; then
13434 eval "$as_ac_var=yes"
13435 else
13436 $as_echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 eval "$as_ac_var=no"
13440 fi
13441
13442 rm -rf conftest.dSYM
13443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13444 conftest$ac_exeext conftest.$ac_ext
13445 fi
13446 ac_res=`eval 'as_val=${'$as_ac_var'}
13447 $as_echo "$as_val"'`
13448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13449 $as_echo "$ac_res" >&6; }
13450 as_val=`eval 'as_val=${'$as_ac_var'}
13451 $as_echo "$as_val"'`
13452 if test "x$as_val" = x""yes; then
13453 cat >>confdefs.h <<_ACEOF
13454 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13455 _ACEOF
13456
13457 else
13458 case " $LIB@&t@OBJS " in
13459 *" $ac_func.$ac_objext "* ) ;;
13460 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
13461 ;;
13462 esac
13463
13464 fi
13465 done
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498 for ac_func in bcopy bzero confstr faccessat fnmatch \
13499 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13500 memmove pathconf putenv raise regcomp regexec \
13501 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13502 sysconf syslog tcgetattr times ttyname tzset unsetenv
13503 do
13504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13505 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13506 $as_echo_n "checking for $ac_func... " >&6; }
13507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13508 $as_echo_n "(cached) " >&6
13509 else
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13518 #define $ac_func innocuous_$ac_func
13519
13520 /* System header to define __stub macros and hopefully few prototypes,
13521 which can conflict with char $ac_func (); below.
13522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13523 <limits.h> exists even on freestanding compilers. */
13524
13525 #ifdef __STDC__
13526 # include <limits.h>
13527 #else
13528 # include <assert.h>
13529 #endif
13530
13531 #undef $ac_func
13532
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 char $ac_func ();
13540 /* The GNU C library defines this for functions which it implements
13541 to always fail with ENOSYS. Some functions are actually named
13542 something starting with __ and the normal name is an alias. */
13543 #if defined __stub_$ac_func || defined __stub___$ac_func
13544 choke me
13545 #endif
13546
13547 int
13548 main ()
13549 {
13550 return $ac_func ();
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13560 esac
13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13562 $as_echo "$ac_try_echo") >&5
13563 (eval "$ac_link") 2>conftest.er1
13564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest$ac_exeext && {
13573 test "$cross_compiling" = yes ||
13574 $as_test_x conftest$ac_exeext
13575 }; then
13576 eval "$as_ac_var=yes"
13577 else
13578 $as_echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 eval "$as_ac_var=no"
13582 fi
13583
13584 rm -rf conftest.dSYM
13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586 conftest$ac_exeext conftest.$ac_ext
13587 fi
13588 ac_res=`eval 'as_val=${'$as_ac_var'}
13589 $as_echo "$as_val"'`
13590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13591 $as_echo "$ac_res" >&6; }
13592 as_val=`eval 'as_val=${'$as_ac_var'}
13593 $as_echo "$as_val"'`
13594 if test "x$as_val" = x""yes; then
13595 cat >>confdefs.h <<_ACEOF
13596 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13597 _ACEOF
13598
13599 fi
13600 done
13601
13602
13603
13604
13605 for ac_func in vasprintf asprintf
13606 do
13607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13608 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13609 $as_echo_n "checking for $ac_func... " >&6; }
13610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13611 $as_echo_n "(cached) " >&6
13612 else
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13621 #define $ac_func innocuous_$ac_func
13622
13623 /* System header to define __stub macros and hopefully few prototypes,
13624 which can conflict with char $ac_func (); below.
13625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 <limits.h> exists even on freestanding compilers. */
13627
13628 #ifdef __STDC__
13629 # include <limits.h>
13630 #else
13631 # include <assert.h>
13632 #endif
13633
13634 #undef $ac_func
13635
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13639 #ifdef __cplusplus
13640 extern "C"
13641 #endif
13642 char $ac_func ();
13643 /* The GNU C library defines this for functions which it implements
13644 to always fail with ENOSYS. Some functions are actually named
13645 something starting with __ and the normal name is an alias. */
13646 #if defined __stub_$ac_func || defined __stub___$ac_func
13647 choke me
13648 #endif
13649
13650 int
13651 main ()
13652 {
13653 return $ac_func ();
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext conftest$ac_exeext
13659 if { (ac_try="$ac_link"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663 esac
13664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13665 $as_echo "$ac_try_echo") >&5
13666 (eval "$ac_link") 2>conftest.er1
13667 ac_status=$?
13668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } && {
13673 test -z "$ac_c_werror_flag" ||
13674 test ! -s conftest.err
13675 } && test -s conftest$ac_exeext && {
13676 test "$cross_compiling" = yes ||
13677 $as_test_x conftest$ac_exeext
13678 }; then
13679 eval "$as_ac_var=yes"
13680 else
13681 $as_echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 eval "$as_ac_var=no"
13685 fi
13686
13687 rm -rf conftest.dSYM
13688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13690 fi
13691 ac_res=`eval 'as_val=${'$as_ac_var'}
13692 $as_echo "$as_val"'`
13693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13694 $as_echo "$ac_res" >&6; }
13695 as_val=`eval 'as_val=${'$as_ac_var'}
13696 $as_echo "$as_val"'`
13697 if test "x$as_val" = x""yes; then
13698 cat >>confdefs.h <<_ACEOF
13699 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13700 _ACEOF
13701
13702 fi
13703 done
13704
13705
13706
13707
13708
13709
13710
13711 for ac_func in isascii isblank isgraph isprint isspace isxdigit
13712 do
13713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13715 $as_echo_n "checking for $ac_func... " >&6; }
13716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13717 $as_echo_n "(cached) " >&6
13718 else
13719 cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h. */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13727 #define $ac_func innocuous_$ac_func
13728
13729 /* System header to define __stub macros and hopefully few prototypes,
13730 which can conflict with char $ac_func (); below.
13731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13732 <limits.h> exists even on freestanding compilers. */
13733
13734 #ifdef __STDC__
13735 # include <limits.h>
13736 #else
13737 # include <assert.h>
13738 #endif
13739
13740 #undef $ac_func
13741
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char $ac_func ();
13749 /* The GNU C library defines this for functions which it implements
13750 to always fail with ENOSYS. Some functions are actually named
13751 something starting with __ and the normal name is an alias. */
13752 #if defined __stub_$ac_func || defined __stub___$ac_func
13753 choke me
13754 #endif
13755
13756 int
13757 main ()
13758 {
13759 return $ac_func ();
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (ac_try="$ac_link"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 $as_echo "$ac_try_echo") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && {
13779 test -z "$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 } && test -s conftest$ac_exeext && {
13782 test "$cross_compiling" = yes ||
13783 $as_test_x conftest$ac_exeext
13784 }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 $as_echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 eval "$as_ac_var=no"
13791 fi
13792
13793 rm -rf conftest.dSYM
13794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13795 conftest$ac_exeext conftest.$ac_ext
13796 fi
13797 ac_res=`eval 'as_val=${'$as_ac_var'}
13798 $as_echo "$as_val"'`
13799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13800 $as_echo "$ac_res" >&6; }
13801 as_val=`eval 'as_val=${'$as_ac_var'}
13802 $as_echo "$as_val"'`
13803 if test "x$as_val" = x""yes; then
13804 cat >>confdefs.h <<_ACEOF
13805 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13806 _ACEOF
13807
13808 fi
13809 done
13810
13811
13812
13813
13814 for ac_func in getpwent getpwnam getpwuid
13815 do
13816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13817 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13818 $as_echo_n "checking for $ac_func... " >&6; }
13819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13820 $as_echo_n "(cached) " >&6
13821 else
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13830 #define $ac_func innocuous_$ac_func
13831
13832 /* System header to define __stub macros and hopefully few prototypes,
13833 which can conflict with char $ac_func (); below.
13834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13835 <limits.h> exists even on freestanding compilers. */
13836
13837 #ifdef __STDC__
13838 # include <limits.h>
13839 #else
13840 # include <assert.h>
13841 #endif
13842
13843 #undef $ac_func
13844
13845 /* Override any GCC internal prototype to avoid an error.
13846 Use char because int might match the return type of a GCC
13847 builtin and then its argument prototype would still apply. */
13848 #ifdef __cplusplus
13849 extern "C"
13850 #endif
13851 char $ac_func ();
13852 /* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855 #if defined __stub_$ac_func || defined __stub___$ac_func
13856 choke me
13857 #endif
13858
13859 int
13860 main ()
13861 {
13862 return $ac_func ();
13863 ;
13864 return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13872 esac
13873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13874 $as_echo "$ac_try_echo") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest$ac_exeext && {
13885 test "$cross_compiling" = yes ||
13886 $as_test_x conftest$ac_exeext
13887 }; then
13888 eval "$as_ac_var=yes"
13889 else
13890 $as_echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13892
13893 eval "$as_ac_var=no"
13894 fi
13895
13896 rm -rf conftest.dSYM
13897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13898 conftest$ac_exeext conftest.$ac_ext
13899 fi
13900 ac_res=`eval 'as_val=${'$as_ac_var'}
13901 $as_echo "$as_val"'`
13902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13903 $as_echo "$ac_res" >&6; }
13904 as_val=`eval 'as_val=${'$as_ac_var'}
13905 $as_echo "$as_val"'`
13906 if test "x$as_val" = x""yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13909 _ACEOF
13910
13911 fi
13912 done
13913
13914
13915
13916 for ac_func in getcwd memset
13917 do
13918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13919 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13920 $as_echo_n "checking for $ac_func... " >&6; }
13921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13922 $as_echo_n "(cached) " >&6
13923 else
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13932 #define $ac_func innocuous_$ac_func
13933
13934 /* System header to define __stub macros and hopefully few prototypes,
13935 which can conflict with char $ac_func (); below.
13936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13937 <limits.h> exists even on freestanding compilers. */
13938
13939 #ifdef __STDC__
13940 # include <limits.h>
13941 #else
13942 # include <assert.h>
13943 #endif
13944
13945 #undef $ac_func
13946
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13950 #ifdef __cplusplus
13951 extern "C"
13952 #endif
13953 char $ac_func ();
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined __stub_$ac_func || defined __stub___$ac_func
13958 choke me
13959 #endif
13960
13961 int
13962 main ()
13963 {
13964 return $ac_func ();
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext conftest$ac_exeext
13970 if { (ac_try="$ac_link"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974 esac
13975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976 $as_echo "$ac_try_echo") >&5
13977 (eval "$ac_link") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest$ac_exeext && {
13987 test "$cross_compiling" = yes ||
13988 $as_test_x conftest$ac_exeext
13989 }; then
13990 eval "$as_ac_var=yes"
13991 else
13992 $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 eval "$as_ac_var=no"
13996 fi
13997
13998 rm -rf conftest.dSYM
13999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14000 conftest$ac_exeext conftest.$ac_ext
14001 fi
14002 ac_res=`eval 'as_val=${'$as_ac_var'}
14003 $as_echo "$as_val"'`
14004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14005 $as_echo "$ac_res" >&6; }
14006 as_val=`eval 'as_val=${'$as_ac_var'}
14007 $as_echo "$as_val"'`
14008 if test "x$as_val" = x""yes; then
14009 cat >>confdefs.h <<_ACEOF
14010 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14011 _ACEOF
14012
14013 else
14014 case " $LIB@&t@OBJS " in
14015 *" $ac_func.$ac_objext "* ) ;;
14016 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14017 ;;
14018 esac
14019
14020 fi
14021 done
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031 for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
14032 do
14033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14034 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14035 $as_echo_n "checking for $ac_func... " >&6; }
14036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14037 $as_echo_n "(cached) " >&6
14038 else
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14047 #define $ac_func innocuous_$ac_func
14048
14049 /* System header to define __stub macros and hopefully few prototypes,
14050 which can conflict with char $ac_func (); below.
14051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14052 <limits.h> exists even on freestanding compilers. */
14053
14054 #ifdef __STDC__
14055 # include <limits.h>
14056 #else
14057 # include <assert.h>
14058 #endif
14059
14060 #undef $ac_func
14061
14062 /* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
14065 #ifdef __cplusplus
14066 extern "C"
14067 #endif
14068 char $ac_func ();
14069 /* The GNU C library defines this for functions which it implements
14070 to always fail with ENOSYS. Some functions are actually named
14071 something starting with __ and the normal name is an alias. */
14072 #if defined __stub_$ac_func || defined __stub___$ac_func
14073 choke me
14074 #endif
14075
14076 int
14077 main ()
14078 {
14079 return $ac_func ();
14080 ;
14081 return 0;
14082 }
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14091 $as_echo "$ac_try_echo") >&5
14092 (eval "$ac_link") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest$ac_exeext && {
14102 test "$cross_compiling" = yes ||
14103 $as_test_x conftest$ac_exeext
14104 }; then
14105 eval "$as_ac_var=yes"
14106 else
14107 $as_echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 eval "$as_ac_var=no"
14111 fi
14112
14113 rm -rf conftest.dSYM
14114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14115 conftest$ac_exeext conftest.$ac_ext
14116 fi
14117 ac_res=`eval 'as_val=${'$as_ac_var'}
14118 $as_echo "$as_val"'`
14119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14120 $as_echo "$ac_res" >&6; }
14121 as_val=`eval 'as_val=${'$as_ac_var'}
14122 $as_echo "$as_val"'`
14123 if test "x$as_val" = x""yes; then
14124 cat >>confdefs.h <<_ACEOF
14125 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14126 _ACEOF
14127
14128 else
14129 case " $LIB@&t@OBJS " in
14130 *" $ac_func.$ac_objext "* ) ;;
14131 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14132 ;;
14133 esac
14134
14135 fi
14136 done
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14147 do
14148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14150 $as_echo_n "checking for $ac_func... " >&6; }
14151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14152 $as_echo_n "(cached) " >&6
14153 else
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14162 #define $ac_func innocuous_$ac_func
14163
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14168
14169 #ifdef __STDC__
14170 # include <limits.h>
14171 #else
14172 # include <assert.h>
14173 #endif
14174
14175 #undef $ac_func
14176
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char $ac_func ();
14184 /* The GNU C library defines this for functions which it implements
14185 to always fail with ENOSYS. Some functions are actually named
14186 something starting with __ and the normal name is an alias. */
14187 #if defined __stub_$ac_func || defined __stub___$ac_func
14188 choke me
14189 #endif
14190
14191 int
14192 main ()
14193 {
14194 return $ac_func ();
14195 ;
14196 return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204 esac
14205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14206 $as_echo "$ac_try_echo") >&5
14207 (eval "$ac_link") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest$ac_exeext && {
14217 test "$cross_compiling" = yes ||
14218 $as_test_x conftest$ac_exeext
14219 }; then
14220 eval "$as_ac_var=yes"
14221 else
14222 $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 eval "$as_ac_var=no"
14226 fi
14227
14228 rm -rf conftest.dSYM
14229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14230 conftest$ac_exeext conftest.$ac_ext
14231 fi
14232 ac_res=`eval 'as_val=${'$as_ac_var'}
14233 $as_echo "$as_val"'`
14234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14235 $as_echo "$ac_res" >&6; }
14236 as_val=`eval 'as_val=${'$as_ac_var'}
14237 $as_echo "$as_val"'`
14238 if test "x$as_val" = x""yes; then
14239 cat >>confdefs.h <<_ACEOF
14240 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14241 _ACEOF
14242
14243 else
14244 case " $LIB@&t@OBJS " in
14245 *" $ac_func.$ac_objext "* ) ;;
14246 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14247 ;;
14248 esac
14249
14250 fi
14251 done
14252
14253
14254
14255 for ac_func in dprintf
14256 do
14257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14258 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14259 $as_echo_n "checking for $ac_func... " >&6; }
14260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14261 $as_echo_n "(cached) " >&6
14262 else
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14271 #define $ac_func innocuous_$ac_func
14272
14273 /* System header to define __stub macros and hopefully few prototypes,
14274 which can conflict with char $ac_func (); below.
14275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14276 <limits.h> exists even on freestanding compilers. */
14277
14278 #ifdef __STDC__
14279 # include <limits.h>
14280 #else
14281 # include <assert.h>
14282 #endif
14283
14284 #undef $ac_func
14285
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14289 #ifdef __cplusplus
14290 extern "C"
14291 #endif
14292 char $ac_func ();
14293 /* The GNU C library defines this for functions which it implements
14294 to always fail with ENOSYS. Some functions are actually named
14295 something starting with __ and the normal name is an alias. */
14296 #if defined __stub_$ac_func || defined __stub___$ac_func
14297 choke me
14298 #endif
14299
14300 int
14301 main ()
14302 {
14303 return $ac_func ();
14304 ;
14305 return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext conftest$ac_exeext
14309 if { (ac_try="$ac_link"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313 esac
14314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14315 $as_echo "$ac_try_echo") >&5
14316 (eval "$ac_link") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } && {
14323 test -z "$ac_c_werror_flag" ||
14324 test ! -s conftest.err
14325 } && test -s conftest$ac_exeext && {
14326 test "$cross_compiling" = yes ||
14327 $as_test_x conftest$ac_exeext
14328 }; then
14329 eval "$as_ac_var=yes"
14330 else
14331 $as_echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 eval "$as_ac_var=no"
14335 fi
14336
14337 rm -rf conftest.dSYM
14338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14339 conftest$ac_exeext conftest.$ac_ext
14340 fi
14341 ac_res=`eval 'as_val=${'$as_ac_var'}
14342 $as_echo "$as_val"'`
14343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14344 $as_echo "$ac_res" >&6; }
14345 as_val=`eval 'as_val=${'$as_ac_var'}
14346 $as_echo "$as_val"'`
14347 if test "x$as_val" = x""yes; then
14348 cat >>confdefs.h <<_ACEOF
14349 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14350 _ACEOF
14351
14352 else
14353 case " $LIB@&t@OBJS " in
14354 *" $ac_func.$ac_objext "* ) ;;
14355 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14356 ;;
14357 esac
14358
14359 fi
14360 done
14361
14362
14363
14364 for ac_func in strchrnul
14365 do
14366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14367 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14368 $as_echo_n "checking for $ac_func... " >&6; }
14369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14370 $as_echo_n "(cached) " >&6
14371 else
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14380 #define $ac_func innocuous_$ac_func
14381
14382 /* System header to define __stub macros and hopefully few prototypes,
14383 which can conflict with char $ac_func (); below.
14384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14385 <limits.h> exists even on freestanding compilers. */
14386
14387 #ifdef __STDC__
14388 # include <limits.h>
14389 #else
14390 # include <assert.h>
14391 #endif
14392
14393 #undef $ac_func
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char $ac_func ();
14402 /* The GNU C library defines this for functions which it implements
14403 to always fail with ENOSYS. Some functions are actually named
14404 something starting with __ and the normal name is an alias. */
14405 #if defined __stub_$ac_func || defined __stub___$ac_func
14406 choke me
14407 #endif
14408
14409 int
14410 main ()
14411 {
14412 return $ac_func ();
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (ac_try="$ac_link"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14422 esac
14423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424 $as_echo "$ac_try_echo") >&5
14425 (eval "$ac_link") 2>conftest.er1
14426 ac_status=$?
14427 grep -v '^ *+' conftest.er1 >conftest.err
14428 rm -f conftest.er1
14429 cat conftest.err >&5
14430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } && {
14432 test -z "$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14434 } && test -s conftest$ac_exeext && {
14435 test "$cross_compiling" = yes ||
14436 $as_test_x conftest$ac_exeext
14437 }; then
14438 eval "$as_ac_var=yes"
14439 else
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 eval "$as_ac_var=no"
14444 fi
14445
14446 rm -rf conftest.dSYM
14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14448 conftest$ac_exeext conftest.$ac_ext
14449 fi
14450 ac_res=`eval 'as_val=${'$as_ac_var'}
14451 $as_echo "$as_val"'`
14452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14453 $as_echo "$ac_res" >&6; }
14454 as_val=`eval 'as_val=${'$as_ac_var'}
14455 $as_echo "$as_val"'`
14456 if test "x$as_val" = x""yes; then
14457 cat >>confdefs.h <<_ACEOF
14458 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14459 _ACEOF
14460
14461 else
14462 case " $LIB@&t@OBJS " in
14463 *" $ac_func.$ac_objext "* ) ;;
14464 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
14465 ;;
14466 esac
14467
14468 fi
14469 done
14470
14471
14472
14473 { $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14474 $as_echo_n "checking whether confstr is declared... " >&6; }
14475 if test "${ac_cv_have_decl_confstr+set}" = set; then
14476 $as_echo_n "(cached) " >&6
14477 else
14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 $ac_includes_default
14485 int
14486 main ()
14487 {
14488 #ifndef confstr
14489 (void) confstr;
14490 #endif
14491
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (ac_try="$ac_compile"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14501 esac
14502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14503 $as_echo "$ac_try_echo") >&5
14504 (eval "$ac_compile") 2>conftest.er1
14505 ac_status=$?
14506 grep -v '^ *+' conftest.er1 >conftest.err
14507 rm -f conftest.er1
14508 cat conftest.err >&5
14509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } && {
14511 test -z "$ac_c_werror_flag" ||
14512 test ! -s conftest.err
14513 } && test -s conftest.$ac_objext; then
14514 ac_cv_have_decl_confstr=yes
14515 else
14516 $as_echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519 ac_cv_have_decl_confstr=no
14520 fi
14521
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14525 $as_echo "$ac_cv_have_decl_confstr" >&6; }
14526 if test "x$ac_cv_have_decl_confstr" = x""yes; then
14527
14528 cat >>confdefs.h <<_ACEOF
14529 @%:@define HAVE_DECL_CONFSTR 1
14530 _ACEOF
14531
14532
14533 else
14534 cat >>confdefs.h <<_ACEOF
14535 @%:@define HAVE_DECL_CONFSTR 0
14536 _ACEOF
14537
14538
14539 fi
14540
14541
14542 { $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14543 $as_echo_n "checking whether printf is declared... " >&6; }
14544 if test "${ac_cv_have_decl_printf+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14546 else
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h. */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 $ac_includes_default
14554 int
14555 main ()
14556 {
14557 #ifndef printf
14558 (void) printf;
14559 #endif
14560
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570 esac
14571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14572 $as_echo "$ac_try_echo") >&5
14573 (eval "$ac_compile") 2>conftest.er1
14574 ac_status=$?
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
14578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest.$ac_objext; then
14583 ac_cv_have_decl_printf=yes
14584 else
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588 ac_cv_have_decl_printf=no
14589 fi
14590
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 fi
14593 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14594 $as_echo "$ac_cv_have_decl_printf" >&6; }
14595 if test "x$ac_cv_have_decl_printf" = x""yes; then
14596
14597 cat >>confdefs.h <<_ACEOF
14598 @%:@define HAVE_DECL_PRINTF 1
14599 _ACEOF
14600
14601
14602 else
14603 cat >>confdefs.h <<_ACEOF
14604 @%:@define HAVE_DECL_PRINTF 0
14605 _ACEOF
14606
14607
14608 fi
14609
14610
14611 { $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14612 $as_echo_n "checking whether sbrk is declared... " >&6; }
14613 if test "${ac_cv_have_decl_sbrk+set}" = set; then
14614 $as_echo_n "(cached) " >&6
14615 else
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14623 int
14624 main ()
14625 {
14626 #ifndef sbrk
14627 (void) sbrk;
14628 #endif
14629
14630 ;
14631 return 0;
14632 }
14633 _ACEOF
14634 rm -f conftest.$ac_objext
14635 if { (ac_try="$ac_compile"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639 esac
14640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14641 $as_echo "$ac_try_echo") >&5
14642 (eval "$ac_compile") 2>conftest.er1
14643 ac_status=$?
14644 grep -v '^ *+' conftest.er1 >conftest.err
14645 rm -f conftest.er1
14646 cat conftest.err >&5
14647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } && {
14649 test -z "$ac_c_werror_flag" ||
14650 test ! -s conftest.err
14651 } && test -s conftest.$ac_objext; then
14652 ac_cv_have_decl_sbrk=yes
14653 else
14654 $as_echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_cv_have_decl_sbrk=no
14658 fi
14659
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 fi
14662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14663 $as_echo "$ac_cv_have_decl_sbrk" >&6; }
14664 if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14665
14666 cat >>confdefs.h <<_ACEOF
14667 @%:@define HAVE_DECL_SBRK 1
14668 _ACEOF
14669
14670
14671 else
14672 cat >>confdefs.h <<_ACEOF
14673 @%:@define HAVE_DECL_SBRK 0
14674 _ACEOF
14675
14676
14677 fi
14678
14679
14680 { $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14681 $as_echo_n "checking whether setregid is declared... " >&6; }
14682 if test "${ac_cv_have_decl_setregid+set}" = set; then
14683 $as_echo_n "(cached) " >&6
14684 else
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 $ac_includes_default
14692 int
14693 main ()
14694 {
14695 #ifndef setregid
14696 (void) setregid;
14697 #endif
14698
14699 ;
14700 return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (ac_try="$ac_compile"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest.$ac_objext; then
14721 ac_cv_have_decl_setregid=yes
14722 else
14723 $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_cv_have_decl_setregid=no
14727 fi
14728
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 fi
14731 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14732 $as_echo "$ac_cv_have_decl_setregid" >&6; }
14733 if test "x$ac_cv_have_decl_setregid" = x""yes; then
14734
14735 cat >>confdefs.h <<_ACEOF
14736 @%:@define HAVE_DECL_SETREGID 1
14737 _ACEOF
14738
14739
14740 else
14741 cat >>confdefs.h <<_ACEOF
14742 @%:@define HAVE_DECL_SETREGID 0
14743 _ACEOF
14744
14745
14746 fi
14747
14748
14749 { $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14750 $as_echo_n "checking whether strcpy is declared... " >&6; }
14751 if test "${ac_cv_have_decl_strcpy+set}" = set; then
14752 $as_echo_n "(cached) " >&6
14753 else
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 $ac_includes_default
14761 int
14762 main ()
14763 {
14764 #ifndef strcpy
14765 (void) strcpy;
14766 #endif
14767
14768 ;
14769 return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (ac_try="$ac_compile"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777 esac
14778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14779 $as_echo "$ac_try_echo") >&5
14780 (eval "$ac_compile") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } && {
14787 test -z "$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14789 } && test -s conftest.$ac_objext; then
14790 ac_cv_have_decl_strcpy=yes
14791 else
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 ac_cv_have_decl_strcpy=no
14796 fi
14797
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 fi
14800 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14801 $as_echo "$ac_cv_have_decl_strcpy" >&6; }
14802 if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14803
14804 cat >>confdefs.h <<_ACEOF
14805 @%:@define HAVE_DECL_STRCPY 1
14806 _ACEOF
14807
14808
14809 else
14810 cat >>confdefs.h <<_ACEOF
14811 @%:@define HAVE_DECL_STRCPY 0
14812 _ACEOF
14813
14814
14815 fi
14816
14817
14818 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14819 $as_echo_n "checking whether strsignal is declared... " >&6; }
14820 if test "${ac_cv_have_decl_strsignal+set}" = set; then
14821 $as_echo_n "(cached) " >&6
14822 else
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h. */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14829 $ac_includes_default
14830 int
14831 main ()
14832 {
14833 #ifndef strsignal
14834 (void) strsignal;
14835 #endif
14836
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 rm -f conftest.$ac_objext
14842 if { (ac_try="$ac_compile"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846 esac
14847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14848 $as_echo "$ac_try_echo") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest.$ac_objext; then
14859 ac_cv_have_decl_strsignal=yes
14860 else
14861 $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864 ac_cv_have_decl_strsignal=no
14865 fi
14866
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 fi
14869 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14870 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
14871 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14872
14873 cat >>confdefs.h <<_ACEOF
14874 @%:@define HAVE_DECL_STRSIGNAL 1
14875 _ACEOF
14876
14877
14878 else
14879 cat >>confdefs.h <<_ACEOF
14880 @%:@define HAVE_DECL_STRSIGNAL 0
14881 _ACEOF
14882
14883
14884 fi
14885
14886
14887
14888 { $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14889 $as_echo_n "checking whether strtold is declared... " >&6; }
14890 if test "${ac_cv_have_decl_strtold+set}" = set; then
14891 $as_echo_n "(cached) " >&6
14892 else
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14900 int
14901 main ()
14902 {
14903 #ifndef strtold
14904 (void) strtold;
14905 #endif
14906
14907 ;
14908 return 0;
14909 }
14910 _ACEOF
14911 rm -f conftest.$ac_objext
14912 if { (ac_try="$ac_compile"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916 esac
14917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14918 $as_echo "$ac_try_echo") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14920 ac_status=$?
14921 grep -v '^ *+' conftest.er1 >conftest.err
14922 rm -f conftest.er1
14923 cat conftest.err >&5
14924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 ac_cv_have_decl_strtold=yes
14930 else
14931 $as_echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934 ac_cv_have_decl_strtold=no
14935 fi
14936
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 fi
14939 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14940 $as_echo "$ac_cv_have_decl_strtold" >&6; }
14941 if test "x$ac_cv_have_decl_strtold" = x""yes; then
14942
14943 cat >>confdefs.h <<_ACEOF
14944 @%:@define HAVE_DECL_STRTOLD 1
14945 _ACEOF
14946
14947
14948 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14949 $as_echo_n "checking for broken strtold... " >&6; }
14950 if test "${bash_cv_strtold_broken+set}" = set; then
14951 $as_echo_n "(cached) " >&6
14952 else
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h. */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <stdlib.h>
14960 int
14961 main ()
14962 {
14963 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14964 ;
14965 return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14975 $as_echo "$ac_try_echo") >&5
14976 (eval "$ac_compile") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest.$ac_objext; then
14986 bash_cv_strtold_broken=no
14987 else
14988 $as_echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991 bash_cv_strtold_broken=yes
14992 fi
14993
14994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995
14996
14997 fi
14998
14999 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
15000 $as_echo "$bash_cv_strtold_broken" >&6; }
15001 if test "$bash_cv_strtold_broken" = "yes" ; then
15002 cat >>confdefs.h <<\_ACEOF
15003 @%:@define STRTOLD_BROKEN 1
15004 _ACEOF
15005
15006 fi
15007
15008 else
15009 cat >>confdefs.h <<_ACEOF
15010 @%:@define HAVE_DECL_STRTOLD 0
15011 _ACEOF
15012
15013
15014 fi
15015
15016
15017
15018
15019
15020
15021
15022 { $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
15023 $as_echo_n "checking for declaration of strtoimax... " >&6; }
15024 if test "${bash_cv_decl_strtoimax+set}" = set; then
15025 $as_echo_n "(cached) " >&6
15026 else
15027 cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h. */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033
15034 #if STDC_HEADERS
15035 # include <stdlib.h>
15036 #endif
15037 #if HAVE_INTTYPES_H
15038 # include <inttypes.h>
15039 #endif
15040
15041 int
15042 main ()
15043 {
15044 return !strtoimax;
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (ac_try="$ac_link"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054 esac
15055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15056 $as_echo "$ac_try_echo") >&5
15057 (eval "$ac_link") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest$ac_exeext && {
15067 test "$cross_compiling" = yes ||
15068 $as_test_x conftest$ac_exeext
15069 }; then
15070 bash_cv_decl_strtoimax=yes
15071 else
15072 $as_echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075 bash_cv_decl_strtoimax=no
15076 fi
15077
15078 rm -rf conftest.dSYM
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 fi
15082 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15083 $as_echo "$bash_cv_decl_strtoimax" >&6; }
15084 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15085 if test $bash_cv_decl_strtoimax = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 @%:@define $bash_tr_func 1
15088 _ACEOF
15089
15090 else
15091 cat >>confdefs.h <<_ACEOF
15092 @%:@define $bash_tr_func 0
15093 _ACEOF
15094
15095 fi
15096
15097
15098
15099
15100 { $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15101 $as_echo_n "checking for declaration of strtol... " >&6; }
15102 if test "${bash_cv_decl_strtol+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15104 else
15105 cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111
15112 #if STDC_HEADERS
15113 # include <stdlib.h>
15114 #endif
15115 #if HAVE_INTTYPES_H
15116 # include <inttypes.h>
15117 #endif
15118
15119 int
15120 main ()
15121 {
15122 return !strtol;
15123 ;
15124 return 0;
15125 }
15126 _ACEOF
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132 esac
15133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134 $as_echo "$ac_try_echo") >&5
15135 (eval "$ac_link") 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext && {
15145 test "$cross_compiling" = yes ||
15146 $as_test_x conftest$ac_exeext
15147 }; then
15148 bash_cv_decl_strtol=yes
15149 else
15150 $as_echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153 bash_cv_decl_strtol=no
15154 fi
15155
15156 rm -rf conftest.dSYM
15157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158 conftest$ac_exeext conftest.$ac_ext
15159 fi
15160 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15161 $as_echo "$bash_cv_decl_strtol" >&6; }
15162 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15163 if test $bash_cv_decl_strtol = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 @%:@define $bash_tr_func 1
15166 _ACEOF
15167
15168 else
15169 cat >>confdefs.h <<_ACEOF
15170 @%:@define $bash_tr_func 0
15171 _ACEOF
15172
15173 fi
15174
15175
15176
15177
15178 { $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15179 $as_echo_n "checking for declaration of strtoll... " >&6; }
15180 if test "${bash_cv_decl_strtoll+set}" = set; then
15181 $as_echo_n "(cached) " >&6
15182 else
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189
15190 #if STDC_HEADERS
15191 # include <stdlib.h>
15192 #endif
15193 #if HAVE_INTTYPES_H
15194 # include <inttypes.h>
15195 #endif
15196
15197 int
15198 main ()
15199 {
15200 return !strtoll;
15201 ;
15202 return 0;
15203 }
15204 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15225 }; then
15226 bash_cv_decl_strtoll=yes
15227 else
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 bash_cv_decl_strtoll=no
15232 fi
15233
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 fi
15238 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15239 $as_echo "$bash_cv_decl_strtoll" >&6; }
15240 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15241 if test $bash_cv_decl_strtoll = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 @%:@define $bash_tr_func 1
15244 _ACEOF
15245
15246 else
15247 cat >>confdefs.h <<_ACEOF
15248 @%:@define $bash_tr_func 0
15249 _ACEOF
15250
15251 fi
15252
15253
15254
15255
15256 { $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15257 $as_echo_n "checking for declaration of strtoul... " >&6; }
15258 if test "${bash_cv_decl_strtoul+set}" = set; then
15259 $as_echo_n "(cached) " >&6
15260 else
15261 cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267
15268 #if STDC_HEADERS
15269 # include <stdlib.h>
15270 #endif
15271 #if HAVE_INTTYPES_H
15272 # include <inttypes.h>
15273 #endif
15274
15275 int
15276 main ()
15277 {
15278 return !strtoul;
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288 esac
15289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15290 $as_echo "$ac_try_echo") >&5
15291 (eval "$ac_link") 2>conftest.er1
15292 ac_status=$?
15293 grep -v '^ *+' conftest.er1 >conftest.err
15294 rm -f conftest.er1
15295 cat conftest.err >&5
15296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && {
15298 test -z "$ac_c_werror_flag" ||
15299 test ! -s conftest.err
15300 } && test -s conftest$ac_exeext && {
15301 test "$cross_compiling" = yes ||
15302 $as_test_x conftest$ac_exeext
15303 }; then
15304 bash_cv_decl_strtoul=yes
15305 else
15306 $as_echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 bash_cv_decl_strtoul=no
15310 fi
15311
15312 rm -rf conftest.dSYM
15313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15314 conftest$ac_exeext conftest.$ac_ext
15315 fi
15316 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15317 $as_echo "$bash_cv_decl_strtoul" >&6; }
15318 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15319 if test $bash_cv_decl_strtoul = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 @%:@define $bash_tr_func 1
15322 _ACEOF
15323
15324 else
15325 cat >>confdefs.h <<_ACEOF
15326 @%:@define $bash_tr_func 0
15327 _ACEOF
15328
15329 fi
15330
15331
15332
15333
15334 { $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15335 $as_echo_n "checking for declaration of strtoull... " >&6; }
15336 if test "${bash_cv_decl_strtoull+set}" = set; then
15337 $as_echo_n "(cached) " >&6
15338 else
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345
15346 #if STDC_HEADERS
15347 # include <stdlib.h>
15348 #endif
15349 #if HAVE_INTTYPES_H
15350 # include <inttypes.h>
15351 #endif
15352
15353 int
15354 main ()
15355 {
15356 return !strtoull;
15357 ;
15358 return 0;
15359 }
15360 _ACEOF
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366 esac
15367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368 $as_echo "$ac_try_echo") >&5
15369 (eval "$ac_link") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext && {
15379 test "$cross_compiling" = yes ||
15380 $as_test_x conftest$ac_exeext
15381 }; then
15382 bash_cv_decl_strtoull=yes
15383 else
15384 $as_echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 bash_cv_decl_strtoull=no
15388 fi
15389
15390 rm -rf conftest.dSYM
15391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15392 conftest$ac_exeext conftest.$ac_ext
15393 fi
15394 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15395 $as_echo "$bash_cv_decl_strtoull" >&6; }
15396 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15397 if test $bash_cv_decl_strtoull = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 @%:@define $bash_tr_func 1
15400 _ACEOF
15401
15402 else
15403 cat >>confdefs.h <<_ACEOF
15404 @%:@define $bash_tr_func 0
15405 _ACEOF
15406
15407 fi
15408
15409
15410
15411
15412 { $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15413 $as_echo_n "checking for declaration of strtoumax... " >&6; }
15414 if test "${bash_cv_decl_strtoumax+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15416 else
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423
15424 #if STDC_HEADERS
15425 # include <stdlib.h>
15426 #endif
15427 #if HAVE_INTTYPES_H
15428 # include <inttypes.h>
15429 #endif
15430
15431 int
15432 main ()
15433 {
15434 return !strtoumax;
15435 ;
15436 return 0;
15437 }
15438 _ACEOF
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444 esac
15445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15446 $as_echo "$ac_try_echo") >&5
15447 (eval "$ac_link") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest$ac_exeext && {
15457 test "$cross_compiling" = yes ||
15458 $as_test_x conftest$ac_exeext
15459 }; then
15460 bash_cv_decl_strtoumax=yes
15461 else
15462 $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 bash_cv_decl_strtoumax=no
15466 fi
15467
15468 rm -rf conftest.dSYM
15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470 conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15473 $as_echo "$bash_cv_decl_strtoumax" >&6; }
15474 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15475 if test $bash_cv_decl_strtoumax = yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 @%:@define $bash_tr_func 1
15478 _ACEOF
15479
15480 else
15481 cat >>confdefs.h <<_ACEOF
15482 @%:@define $bash_tr_func 0
15483 _ACEOF
15484
15485 fi
15486
15487
15488
15489
15490
15491
15492 for ac_header in $ac_header_list
15493 do
15494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 $as_echo_n "checking for $ac_header... " >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 $as_echo_n "(cached) " >&6
15500 fi
15501 ac_res=`eval 'as_val=${'$as_ac_Header'}
15502 $as_echo "$as_val"'`
15503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15504 $as_echo "$ac_res" >&6; }
15505 else
15506 # Is the header compilable?
15507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15508 $as_echo_n "checking $ac_header usability... " >&6; }
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 $ac_includes_default
15516 @%:@include <$ac_header>
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (ac_try="$ac_compile"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523 esac
15524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15525 $as_echo "$ac_try_echo") >&5
15526 (eval "$ac_compile") 2>conftest.er1
15527 ac_status=$?
15528 grep -v '^ *+' conftest.er1 >conftest.err
15529 rm -f conftest.er1
15530 cat conftest.err >&5
15531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } && {
15533 test -z "$ac_c_werror_flag" ||
15534 test ! -s conftest.err
15535 } && test -s conftest.$ac_objext; then
15536 ac_header_compiler=yes
15537 else
15538 $as_echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 ac_header_compiler=no
15542 fi
15543
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 $as_echo "$ac_header_compiler" >&6; }
15547
15548 # Is the header present?
15549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550 $as_echo_n "checking $ac_header presence... " >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h. */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 @%:@include <$ac_header>
15558 _ACEOF
15559 if { (ac_try="$ac_cpp conftest.$ac_ext"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563 esac
15564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15565 $as_echo "$ac_try_echo") >&5
15566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15567 ac_status=$?
15568 grep -v '^ *+' conftest.er1 >conftest.err
15569 rm -f conftest.er1
15570 cat conftest.err >&5
15571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } >/dev/null && {
15573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15574 test ! -s conftest.err
15575 }; then
15576 ac_header_preproc=yes
15577 else
15578 $as_echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_header_preproc=no
15582 fi
15583
15584 rm -f conftest.err conftest.$ac_ext
15585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15586 $as_echo "$ac_header_preproc" >&6; }
15587
15588 # So? What about this header?
15589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15590 yes:no: )
15591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15595 ac_header_preproc=yes
15596 ;;
15597 no:yes:* )
15598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15601 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15605 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15610 ( cat <<\_ASBOX
15611 @%:@@%:@ ------------------------------- @%:@@%:@
15612 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15613 @%:@@%:@ ------------------------------- @%:@@%:@
15614 _ASBOX
15615 ) | sed "s/^/$as_me: WARNING: /" >&2
15616 ;;
15617 esac
15618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15619 $as_echo_n "checking for $ac_header... " >&6; }
15620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15621 $as_echo_n "(cached) " >&6
15622 else
15623 eval "$as_ac_Header=\$ac_header_preproc"
15624 fi
15625 ac_res=`eval 'as_val=${'$as_ac_Header'}
15626 $as_echo "$as_val"'`
15627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15628 $as_echo "$ac_res" >&6; }
15629
15630 fi
15631 as_val=`eval 'as_val=${'$as_ac_Header'}
15632 $as_echo "$as_val"'`
15633 if test "x$as_val" = x""yes; then
15634 cat >>confdefs.h <<_ACEOF
15635 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15636 _ACEOF
15637
15638 fi
15639
15640 done
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650 for ac_func in $ac_func_list
15651 do
15652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15654 $as_echo_n "checking for $ac_func... " >&6; }
15655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15656 $as_echo_n "(cached) " >&6
15657 else
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15666 #define $ac_func innocuous_$ac_func
15667
15668 /* System header to define __stub macros and hopefully few prototypes,
15669 which can conflict with char $ac_func (); below.
15670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15671 <limits.h> exists even on freestanding compilers. */
15672
15673 #ifdef __STDC__
15674 # include <limits.h>
15675 #else
15676 # include <assert.h>
15677 #endif
15678
15679 #undef $ac_func
15680
15681 /* Override any GCC internal prototype to avoid an error.
15682 Use char because int might match the return type of a GCC
15683 builtin and then its argument prototype would still apply. */
15684 #ifdef __cplusplus
15685 extern "C"
15686 #endif
15687 char $ac_func ();
15688 /* The GNU C library defines this for functions which it implements
15689 to always fail with ENOSYS. Some functions are actually named
15690 something starting with __ and the normal name is an alias. */
15691 #if defined __stub_$ac_func || defined __stub___$ac_func
15692 choke me
15693 #endif
15694
15695 int
15696 main ()
15697 {
15698 return $ac_func ();
15699 ;
15700 return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (ac_try="$ac_link"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708 esac
15709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15710 $as_echo "$ac_try_echo") >&5
15711 (eval "$ac_link") 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext && {
15721 test "$cross_compiling" = yes ||
15722 $as_test_x conftest$ac_exeext
15723 }; then
15724 eval "$as_ac_var=yes"
15725 else
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 eval "$as_ac_var=no"
15730 fi
15731
15732 rm -rf conftest.dSYM
15733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15734 conftest$ac_exeext conftest.$ac_ext
15735 fi
15736 ac_res=`eval 'as_val=${'$as_ac_var'}
15737 $as_echo "$as_val"'`
15738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15739 $as_echo "$ac_res" >&6; }
15740 as_val=`eval 'as_val=${'$as_ac_var'}
15741 $as_echo "$as_val"'`
15742 if test "x$as_val" = x""yes; then
15743 cat >>confdefs.h <<_ACEOF
15744 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15745 _ACEOF
15746
15747 fi
15748 done
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15767 $as_echo_n "checking for working mktime... " >&6; }
15768 if test "${ac_cv_func_working_mktime+set}" = set; then
15769 $as_echo_n "(cached) " >&6
15770 else
15771 if test "$cross_compiling" = yes; then
15772 ac_cv_func_working_mktime=no
15773 else
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 /* Test program from Paul Eggert and Tony Leneis. */
15781 #ifdef TIME_WITH_SYS_TIME
15782 # include <sys/time.h>
15783 # include <time.h>
15784 #else
15785 # ifdef HAVE_SYS_TIME_H
15786 # include <sys/time.h>
15787 # else
15788 # include <time.h>
15789 # endif
15790 #endif
15791
15792 #include <limits.h>
15793 #include <stdlib.h>
15794
15795 #ifdef HAVE_UNISTD_H
15796 # include <unistd.h>
15797 #endif
15798
15799 #ifndef HAVE_ALARM
15800 # define alarm(X) /* empty */
15801 #endif
15802
15803 /* Work around redefinition to rpl_putenv by other config tests. */
15804 #undef putenv
15805
15806 static time_t time_t_max;
15807 static time_t time_t_min;
15808
15809 /* Values we'll use to set the TZ environment variable. */
15810 static char *tz_strings[] = {
15811 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15812 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15813 };
15814 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15815
15816 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15817 Based on a problem report from Andreas Jaeger. */
15818 static int
15819 spring_forward_gap ()
15820 {
15821 /* glibc (up to about 1998-10-07) failed this test. */
15822 struct tm tm;
15823
15824 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15825 instead of "TZ=America/Vancouver" in order to detect the bug even
15826 on systems that don't support the Olson extension, or don't have the
15827 full zoneinfo tables installed. */
15828 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15829
15830 tm.tm_year = 98;
15831 tm.tm_mon = 3;
15832 tm.tm_mday = 5;
15833 tm.tm_hour = 2;
15834 tm.tm_min = 0;
15835 tm.tm_sec = 0;
15836 tm.tm_isdst = -1;
15837 return mktime (&tm) != (time_t) -1;
15838 }
15839
15840 static int
15841 mktime_test1 (now)
15842 time_t now;
15843 {
15844 struct tm *lt;
15845 return ! (lt = localtime (&now)) || mktime (lt) == now;
15846 }
15847
15848 static int
15849 mktime_test (now)
15850 time_t now;
15851 {
15852 return (mktime_test1 (now)
15853 && mktime_test1 ((time_t) (time_t_max - now))
15854 && mktime_test1 ((time_t) (time_t_min + now)));
15855 }
15856
15857 static int
15858 irix_6_4_bug ()
15859 {
15860 /* Based on code from Ariel Faigon. */
15861 struct tm tm;
15862 tm.tm_year = 96;
15863 tm.tm_mon = 3;
15864 tm.tm_mday = 0;
15865 tm.tm_hour = 0;
15866 tm.tm_min = 0;
15867 tm.tm_sec = 0;
15868 tm.tm_isdst = -1;
15869 mktime (&tm);
15870 return tm.tm_mon == 2 && tm.tm_mday == 31;
15871 }
15872
15873 static int
15874 bigtime_test (j)
15875 int j;
15876 {
15877 struct tm tm;
15878 time_t now;
15879 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15880 now = mktime (&tm);
15881 if (now != (time_t) -1)
15882 {
15883 struct tm *lt = localtime (&now);
15884 if (! (lt
15885 && lt->tm_year == tm.tm_year
15886 && lt->tm_mon == tm.tm_mon
15887 && lt->tm_mday == tm.tm_mday
15888 && lt->tm_hour == tm.tm_hour
15889 && lt->tm_min == tm.tm_min
15890 && lt->tm_sec == tm.tm_sec
15891 && lt->tm_yday == tm.tm_yday
15892 && lt->tm_wday == tm.tm_wday
15893 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15894 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15895 return 0;
15896 }
15897 return 1;
15898 }
15899
15900 static int
15901 year_2050_test ()
15902 {
15903 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15904 ignoring leap seconds. */
15905 unsigned long int answer = 2527315200UL;
15906
15907 struct tm tm;
15908 time_t t;
15909 tm.tm_year = 2050 - 1900;
15910 tm.tm_mon = 2 - 1;
15911 tm.tm_mday = 1;
15912 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15913 tm.tm_isdst = -1;
15914
15915 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15916 instead of "TZ=America/Vancouver" in order to detect the bug even
15917 on systems that don't support the Olson extension, or don't have the
15918 full zoneinfo tables installed. */
15919 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15920
15921 t = mktime (&tm);
15922
15923 /* Check that the result is either a failure, or close enough
15924 to the correct answer that we can assume the discrepancy is
15925 due to leap seconds. */
15926 return (t == (time_t) -1
15927 || (0 < t && answer - 120 <= t && t <= answer + 120));
15928 }
15929
15930 int
15931 main ()
15932 {
15933 time_t t, delta;
15934 int i, j;
15935
15936 /* This test makes some buggy mktime implementations loop.
15937 Give up after 60 seconds; a mktime slower than that
15938 isn't worth using anyway. */
15939 alarm (60);
15940
15941 for (;;)
15942 {
15943 t = (time_t_max << 1) + 1;
15944 if (t <= time_t_max)
15945 break;
15946 time_t_max = t;
15947 }
15948 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15949
15950 delta = time_t_max / 997; /* a suitable prime number */
15951 for (i = 0; i < N_STRINGS; i++)
15952 {
15953 if (tz_strings[i])
15954 putenv (tz_strings[i]);
15955
15956 for (t = 0; t <= time_t_max - delta; t += delta)
15957 if (! mktime_test (t))
15958 return 1;
15959 if (! (mktime_test ((time_t) 1)
15960 && mktime_test ((time_t) (60 * 60))
15961 && mktime_test ((time_t) (60 * 60 * 24))))
15962 return 1;
15963
15964 for (j = 1; ; j <<= 1)
15965 if (! bigtime_test (j))
15966 return 1;
15967 else if (INT_MAX / 2 < j)
15968 break;
15969 if (! bigtime_test (INT_MAX))
15970 return 1;
15971 }
15972 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15973 }
15974 _ACEOF
15975 rm -f conftest$ac_exeext
15976 if { (ac_try="$ac_link"
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_link") 2>&5
15984 ac_status=$?
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15987 { (case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15990 esac
15991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992 $as_echo "$ac_try_echo") >&5
15993 (eval "$ac_try") 2>&5
15994 ac_status=$?
15995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_cv_func_working_mktime=yes
15998 else
15999 $as_echo "$as_me: program exited with status $ac_status" >&5
16000 $as_echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ( exit $ac_status )
16004 ac_cv_func_working_mktime=no
16005 fi
16006 rm -rf conftest.dSYM
16007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16008 fi
16009
16010
16011 fi
16012 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16013 $as_echo "$ac_cv_func_working_mktime" >&6; }
16014 if test $ac_cv_func_working_mktime = no; then
16015 case " $LIB@&t@OBJS " in
16016 *" mktime.$ac_objext "* ) ;;
16017 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext"
16018 ;;
16019 esac
16020
16021 fi
16022
16023
16024
16025
16026
16027
16028
16029
16030 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
16031 do
16032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16035 $as_echo_n "checking for $ac_header... " >&6; }
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 $as_echo_n "(cached) " >&6
16038 fi
16039 ac_res=`eval 'as_val=${'$as_ac_Header'}
16040 $as_echo "$as_val"'`
16041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16042 $as_echo "$ac_res" >&6; }
16043 else
16044 # Is the header compilable?
16045 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16046 $as_echo_n "checking $ac_header usability... " >&6; }
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 @%:@include <$ac_header>
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061 esac
16062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16063 $as_echo "$ac_try_echo") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.$ac_objext; then
16074 ac_header_compiler=yes
16075 else
16076 $as_echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079 ac_header_compiler=no
16080 fi
16081
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16084 $as_echo "$ac_header_compiler" >&6; }
16085
16086 # Is the header present?
16087 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16088 $as_echo_n "checking $ac_header presence... " >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 @%:@include <$ac_header>
16096 _ACEOF
16097 if { (ac_try="$ac_cpp conftest.$ac_ext"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101 esac
16102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16103 $as_echo "$ac_try_echo") >&5
16104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } >/dev/null && {
16111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16112 test ! -s conftest.err
16113 }; then
16114 ac_header_preproc=yes
16115 else
16116 $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119 ac_header_preproc=no
16120 fi
16121
16122 rm -f conftest.err conftest.$ac_ext
16123 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16124 $as_echo "$ac_header_preproc" >&6; }
16125
16126 # So? What about this header?
16127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128 yes:no: )
16129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16130 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16132 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16133 ac_header_preproc=yes
16134 ;;
16135 no:yes:* )
16136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16141 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16143 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16145 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16147 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16148 ( cat <<\_ASBOX
16149 @%:@@%:@ ------------------------------- @%:@@%:@
16150 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16151 @%:@@%:@ ------------------------------- @%:@@%:@
16152 _ASBOX
16153 ) | sed "s/^/$as_me: WARNING: /" >&2
16154 ;;
16155 esac
16156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 $as_echo_n "checking for $ac_header... " >&6; }
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 $as_echo_n "(cached) " >&6
16160 else
16161 eval "$as_ac_Header=\$ac_header_preproc"
16162 fi
16163 ac_res=`eval 'as_val=${'$as_ac_Header'}
16164 $as_echo "$as_val"'`
16165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16166 $as_echo "$ac_res" >&6; }
16167
16168 fi
16169 as_val=`eval 'as_val=${'$as_ac_Header'}
16170 $as_echo "$as_val"'`
16171 if test "x$as_val" = x""yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 _ACEOF
16175
16176 fi
16177
16178 done
16179
16180
16181
16182
16183 for ac_header in stdlib.h unistd.h
16184 do
16185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 $as_echo_n "checking for $ac_header... " >&6; }
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 $as_echo_n "(cached) " >&6
16191 fi
16192 ac_res=`eval 'as_val=${'$as_ac_Header'}
16193 $as_echo "$as_val"'`
16194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16195 $as_echo "$ac_res" >&6; }
16196 else
16197 # Is the header compilable?
16198 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16199 $as_echo_n "checking $ac_header usability... " >&6; }
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h. */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 $ac_includes_default
16207 @%:@include <$ac_header>
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214 esac
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217 (eval "$ac_compile") 2>conftest.er1
16218 ac_status=$?
16219 grep -v '^ *+' conftest.er1 >conftest.err
16220 rm -f conftest.er1
16221 cat conftest.err >&5
16222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest.$ac_objext; then
16227 ac_header_compiler=yes
16228 else
16229 $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232 ac_header_compiler=no
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 $as_echo "$ac_header_compiler" >&6; }
16238
16239 # Is the header present?
16240 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 $as_echo_n "checking $ac_header presence... " >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 @%:@include <$ac_header>
16249 _ACEOF
16250 if { (ac_try="$ac_cpp conftest.$ac_ext"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254 esac
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } >/dev/null && {
16264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 }; then
16267 ac_header_preproc=yes
16268 else
16269 $as_echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16271
16272 ac_header_preproc=no
16273 fi
16274
16275 rm -f conftest.err conftest.$ac_ext
16276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16277 $as_echo "$ac_header_preproc" >&6; }
16278
16279 # So? What about this header?
16280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16281 yes:no: )
16282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16283 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16286 ac_header_preproc=yes
16287 ;;
16288 no:yes:* )
16289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16290 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16292 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16294 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16296 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16300 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16301 ( cat <<\_ASBOX
16302 @%:@@%:@ ------------------------------- @%:@@%:@
16303 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16304 @%:@@%:@ ------------------------------- @%:@@%:@
16305 _ASBOX
16306 ) | sed "s/^/$as_me: WARNING: /" >&2
16307 ;;
16308 esac
16309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16310 $as_echo_n "checking for $ac_header... " >&6; }
16311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16312 $as_echo_n "(cached) " >&6
16313 else
16314 eval "$as_ac_Header=\$ac_header_preproc"
16315 fi
16316 ac_res=`eval 'as_val=${'$as_ac_Header'}
16317 $as_echo "$as_val"'`
16318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16319 $as_echo "$ac_res" >&6; }
16320
16321 fi
16322 as_val=`eval 'as_val=${'$as_ac_Header'}
16323 $as_echo "$as_val"'`
16324 if test "x$as_val" = x""yes; then
16325 cat >>confdefs.h <<_ACEOF
16326 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16327 _ACEOF
16328
16329 fi
16330
16331 done
16332
16333
16334 for ac_func in getpagesize
16335 do
16336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 $as_echo_n "checking for $ac_func... " >&6; }
16339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16340 $as_echo_n "(cached) " >&6
16341 else
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h. */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16350 #define $ac_func innocuous_$ac_func
16351
16352 /* System header to define __stub macros and hopefully few prototypes,
16353 which can conflict with char $ac_func (); below.
16354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16355 <limits.h> exists even on freestanding compilers. */
16356
16357 #ifdef __STDC__
16358 # include <limits.h>
16359 #else
16360 # include <assert.h>
16361 #endif
16362
16363 #undef $ac_func
16364
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16368 #ifdef __cplusplus
16369 extern "C"
16370 #endif
16371 char $ac_func ();
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined __stub_$ac_func || defined __stub___$ac_func
16376 choke me
16377 #endif
16378
16379 int
16380 main ()
16381 {
16382 return $ac_func ();
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (ac_try="$ac_link"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16392 esac
16393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16394 $as_echo "$ac_try_echo") >&5
16395 (eval "$ac_link") 2>conftest.er1
16396 ac_status=$?
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
16400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } && {
16402 test -z "$ac_c_werror_flag" ||
16403 test ! -s conftest.err
16404 } && test -s conftest$ac_exeext && {
16405 test "$cross_compiling" = yes ||
16406 $as_test_x conftest$ac_exeext
16407 }; then
16408 eval "$as_ac_var=yes"
16409 else
16410 $as_echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 eval "$as_ac_var=no"
16414 fi
16415
16416 rm -rf conftest.dSYM
16417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16418 conftest$ac_exeext conftest.$ac_ext
16419 fi
16420 ac_res=`eval 'as_val=${'$as_ac_var'}
16421 $as_echo "$as_val"'`
16422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16423 $as_echo "$ac_res" >&6; }
16424 as_val=`eval 'as_val=${'$as_ac_var'}
16425 $as_echo "$as_val"'`
16426 if test "x$as_val" = x""yes; then
16427 cat >>confdefs.h <<_ACEOF
16428 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16429 _ACEOF
16430
16431 fi
16432 done
16433
16434 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16435 $as_echo_n "checking for working mmap... " >&6; }
16436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16437 $as_echo_n "(cached) " >&6
16438 else
16439 if test "$cross_compiling" = yes; then
16440 ac_cv_func_mmap_fixed_mapped=no
16441 else
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 $ac_includes_default
16449 /* malloc might have been renamed as rpl_malloc. */
16450 #undef malloc
16451
16452 /* Thanks to Mike Haertel and Jim Avera for this test.
16453 Here is a matrix of mmap possibilities:
16454 mmap private not fixed
16455 mmap private fixed at somewhere currently unmapped
16456 mmap private fixed at somewhere already mapped
16457 mmap shared not fixed
16458 mmap shared fixed at somewhere currently unmapped
16459 mmap shared fixed at somewhere already mapped
16460 For private mappings, we should verify that changes cannot be read()
16461 back from the file, nor mmap's back from the file at a different
16462 address. (There have been systems where private was not correctly
16463 implemented like the infamous i386 svr4.0, and systems where the
16464 VM page cache was not coherent with the file system buffer cache
16465 like early versions of FreeBSD and possibly contemporary NetBSD.)
16466 For shared mappings, we should conversely verify that changes get
16467 propagated back to all the places they're supposed to be.
16468
16469 Grep wants private fixed already mapped.
16470 The main things grep needs to know about mmap are:
16471 * does it exist and is it safe to write into the mmap'd area
16472 * how to use it (BSD variants) */
16473
16474 #include <fcntl.h>
16475 #include <sys/mman.h>
16476
16477 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16478 char *malloc ();
16479 #endif
16480
16481 /* This mess was copied from the GNU getpagesize.h. */
16482 #ifndef HAVE_GETPAGESIZE
16483 /* Assume that all systems that can run configure have sys/param.h. */
16484 # ifndef HAVE_SYS_PARAM_H
16485 # define HAVE_SYS_PARAM_H 1
16486 # endif
16487
16488 # ifdef _SC_PAGESIZE
16489 # define getpagesize() sysconf(_SC_PAGESIZE)
16490 # else /* no _SC_PAGESIZE */
16491 # ifdef HAVE_SYS_PARAM_H
16492 # include <sys/param.h>
16493 # ifdef EXEC_PAGESIZE
16494 # define getpagesize() EXEC_PAGESIZE
16495 # else /* no EXEC_PAGESIZE */
16496 # ifdef NBPG
16497 # define getpagesize() NBPG * CLSIZE
16498 # ifndef CLSIZE
16499 # define CLSIZE 1
16500 # endif /* no CLSIZE */
16501 # else /* no NBPG */
16502 # ifdef NBPC
16503 # define getpagesize() NBPC
16504 # else /* no NBPC */
16505 # ifdef PAGESIZE
16506 # define getpagesize() PAGESIZE
16507 # endif /* PAGESIZE */
16508 # endif /* no NBPC */
16509 # endif /* no NBPG */
16510 # endif /* no EXEC_PAGESIZE */
16511 # else /* no HAVE_SYS_PARAM_H */
16512 # define getpagesize() 8192 /* punt totally */
16513 # endif /* no HAVE_SYS_PARAM_H */
16514 # endif /* no _SC_PAGESIZE */
16515
16516 #endif /* no HAVE_GETPAGESIZE */
16517
16518 int
16519 main ()
16520 {
16521 char *data, *data2, *data3;
16522 int i, pagesize;
16523 int fd;
16524
16525 pagesize = getpagesize ();
16526
16527 /* First, make a file with some known garbage in it. */
16528 data = (char *) malloc (pagesize);
16529 if (!data)
16530 return 1;
16531 for (i = 0; i < pagesize; ++i)
16532 *(data + i) = rand ();
16533 umask (0);
16534 fd = creat ("conftest.mmap", 0600);
16535 if (fd < 0)
16536 return 1;
16537 if (write (fd, data, pagesize) != pagesize)
16538 return 1;
16539 close (fd);
16540
16541 /* Next, try to mmap the file at a fixed address which already has
16542 something else allocated at it. If we can, also make sure that
16543 we see the same garbage. */
16544 fd = open ("conftest.mmap", O_RDWR);
16545 if (fd < 0)
16546 return 1;
16547 data2 = (char *) malloc (2 * pagesize);
16548 if (!data2)
16549 return 1;
16550 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16553 return 1;
16554 for (i = 0; i < pagesize; ++i)
16555 if (*(data + i) != *(data2 + i))
16556 return 1;
16557
16558 /* Finally, make sure that changes to the mapped area do not
16559 percolate back to the file as seen by read(). (This is a bug on
16560 some variants of i386 svr4.0.) */
16561 for (i = 0; i < pagesize; ++i)
16562 *(data2 + i) = *(data2 + i) + 1;
16563 data3 = (char *) malloc (pagesize);
16564 if (!data3)
16565 return 1;
16566 if (read (fd, data3, pagesize) != pagesize)
16567 return 1;
16568 for (i = 0; i < pagesize; ++i)
16569 if (*(data + i) != *(data3 + i))
16570 return 1;
16571 close (fd);
16572 return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580 esac
16581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16582 $as_echo "$ac_try_echo") >&5
16583 (eval "$ac_link") 2>&5
16584 ac_status=$?
16585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16587 { (case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16590 esac
16591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16592 $as_echo "$ac_try_echo") >&5
16593 (eval "$ac_try") 2>&5
16594 ac_status=$?
16595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_func_mmap_fixed_mapped=yes
16598 else
16599 $as_echo "$as_me: program exited with status $ac_status" >&5
16600 $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603 ( exit $ac_status )
16604 ac_cv_func_mmap_fixed_mapped=no
16605 fi
16606 rm -rf conftest.dSYM
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16608 fi
16609
16610
16611 fi
16612 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16613 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16614 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16615
16616 cat >>confdefs.h <<\_ACEOF
16617 @%:@define HAVE_MMAP 1
16618 _ACEOF
16619
16620 fi
16621 rm -f conftest.mmap
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16633 munmap stpcpy strcspn strdup
16634 do
16635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 $as_echo_n "checking for $ac_func... " >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639 $as_echo_n "(cached) " >&6
16640 else
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16649 #define $ac_func innocuous_$ac_func
16650
16651 /* System header to define __stub macros and hopefully few prototypes,
16652 which can conflict with char $ac_func (); below.
16653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654 <limits.h> exists even on freestanding compilers. */
16655
16656 #ifdef __STDC__
16657 # include <limits.h>
16658 #else
16659 # include <assert.h>
16660 #endif
16661
16662 #undef $ac_func
16663
16664 /* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
16667 #ifdef __cplusplus
16668 extern "C"
16669 #endif
16670 char $ac_func ();
16671 /* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16675 choke me
16676 #endif
16677
16678 int
16679 main ()
16680 {
16681 return $ac_func ();
16682 ;
16683 return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691 esac
16692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16693 $as_echo "$ac_try_echo") >&5
16694 (eval "$ac_link") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } && {
16701 test -z "$ac_c_werror_flag" ||
16702 test ! -s conftest.err
16703 } && test -s conftest$ac_exeext && {
16704 test "$cross_compiling" = yes ||
16705 $as_test_x conftest$ac_exeext
16706 }; then
16707 eval "$as_ac_var=yes"
16708 else
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 eval "$as_ac_var=no"
16713 fi
16714
16715 rm -rf conftest.dSYM
16716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16717 conftest$ac_exeext conftest.$ac_ext
16718 fi
16719 ac_res=`eval 'as_val=${'$as_ac_var'}
16720 $as_echo "$as_val"'`
16721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16722 $as_echo "$ac_res" >&6; }
16723 as_val=`eval 'as_val=${'$as_ac_var'}
16724 $as_echo "$as_val"'`
16725 if test "x$as_val" = x""yes; then
16726 cat >>confdefs.h <<_ACEOF
16727 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16728 _ACEOF
16729
16730 fi
16731 done
16732
16733
16734 INTL_DEP= INTL_INC= LIBINTL_H=
16735 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16736 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16737 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16738 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16739 fi
16740
16741
16742
16743
16744
16745
16746
16747 for ac_header in wctype.h
16748 do
16749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 $as_echo_n "checking for $ac_header... " >&6; }
16753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16754 $as_echo_n "(cached) " >&6
16755 fi
16756 ac_res=`eval 'as_val=${'$as_ac_Header'}
16757 $as_echo "$as_val"'`
16758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16759 $as_echo "$ac_res" >&6; }
16760 else
16761 # Is the header compilable?
16762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16763 $as_echo_n "checking $ac_header usability... " >&6; }
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 $ac_includes_default
16771 @%:@include <$ac_header>
16772 _ACEOF
16773 rm -f conftest.$ac_objext
16774 if { (ac_try="$ac_compile"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778 esac
16779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16780 $as_echo "$ac_try_echo") >&5
16781 (eval "$ac_compile") 2>conftest.er1
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } && {
16788 test -z "$ac_c_werror_flag" ||
16789 test ! -s conftest.err
16790 } && test -s conftest.$ac_objext; then
16791 ac_header_compiler=yes
16792 else
16793 $as_echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16795
16796 ac_header_compiler=no
16797 fi
16798
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16801 $as_echo "$ac_header_compiler" >&6; }
16802
16803 # Is the header present?
16804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16805 $as_echo_n "checking $ac_header presence... " >&6; }
16806 cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h. */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 @%:@include <$ac_header>
16813 _ACEOF
16814 if { (ac_try="$ac_cpp conftest.$ac_ext"
16815 case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818 esac
16819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820 $as_echo "$ac_try_echo") >&5
16821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } >/dev/null && {
16828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 }; then
16831 ac_header_preproc=yes
16832 else
16833 $as_echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836 ac_header_preproc=no
16837 fi
16838
16839 rm -f conftest.err conftest.$ac_ext
16840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16841 $as_echo "$ac_header_preproc" >&6; }
16842
16843 # So? What about this header?
16844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16845 yes:no: )
16846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16850 ac_header_preproc=yes
16851 ;;
16852 no:yes:* )
16853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16865 ( cat <<\_ASBOX
16866 @%:@@%:@ ------------------------------- @%:@@%:@
16867 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
16868 @%:@@%:@ ------------------------------- @%:@@%:@
16869 _ASBOX
16870 ) | sed "s/^/$as_me: WARNING: /" >&2
16871 ;;
16872 esac
16873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16874 $as_echo_n "checking for $ac_header... " >&6; }
16875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16876 $as_echo_n "(cached) " >&6
16877 else
16878 eval "$as_ac_Header=\$ac_header_preproc"
16879 fi
16880 ac_res=`eval 'as_val=${'$as_ac_Header'}
16881 $as_echo "$as_val"'`
16882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16883 $as_echo "$ac_res" >&6; }
16884
16885 fi
16886 as_val=`eval 'as_val=${'$as_ac_Header'}
16887 $as_echo "$as_val"'`
16888 if test "x$as_val" = x""yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16891 _ACEOF
16892
16893 fi
16894
16895 done
16896
16897
16898 for ac_header in wchar.h
16899 do
16900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16903 $as_echo_n "checking for $ac_header... " >&6; }
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905 $as_echo_n "(cached) " >&6
16906 fi
16907 ac_res=`eval 'as_val=${'$as_ac_Header'}
16908 $as_echo "$as_val"'`
16909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16910 $as_echo "$ac_res" >&6; }
16911 else
16912 # Is the header compilable?
16913 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16914 $as_echo_n "checking $ac_header usability... " >&6; }
16915 cat >conftest.$ac_ext <<_ACEOF
16916 /* confdefs.h. */
16917 _ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 $ac_includes_default
16922 @%:@include <$ac_header>
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (ac_try="$ac_compile"
16926 case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16929 esac
16930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16931 $as_echo "$ac_try_echo") >&5
16932 (eval "$ac_compile") 2>conftest.er1
16933 ac_status=$?
16934 grep -v '^ *+' conftest.er1 >conftest.err
16935 rm -f conftest.er1
16936 cat conftest.err >&5
16937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } && {
16939 test -z "$ac_c_werror_flag" ||
16940 test ! -s conftest.err
16941 } && test -s conftest.$ac_objext; then
16942 ac_header_compiler=yes
16943 else
16944 $as_echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16946
16947 ac_header_compiler=no
16948 fi
16949
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16952 $as_echo "$ac_header_compiler" >&6; }
16953
16954 # Is the header present?
16955 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16956 $as_echo_n "checking $ac_header presence... " >&6; }
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h. */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 @%:@include <$ac_header>
16964 _ACEOF
16965 if { (ac_try="$ac_cpp conftest.$ac_ext"
16966 case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969 esac
16970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16971 $as_echo "$ac_try_echo") >&5
16972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } >/dev/null && {
16979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 }; then
16982 ac_header_preproc=yes
16983 else
16984 $as_echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 ac_header_preproc=no
16988 fi
16989
16990 rm -f conftest.err conftest.$ac_ext
16991 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16992 $as_echo "$ac_header_preproc" >&6; }
16993
16994 # So? What about this header?
16995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16996 yes:no: )
16997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16998 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17001 ac_header_preproc=yes
17002 ;;
17003 no:yes:* )
17004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17005 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17007 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17009 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17011 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17015 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17016 ( cat <<\_ASBOX
17017 @%:@@%:@ ------------------------------- @%:@@%:@
17018 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17019 @%:@@%:@ ------------------------------- @%:@@%:@
17020 _ASBOX
17021 ) | sed "s/^/$as_me: WARNING: /" >&2
17022 ;;
17023 esac
17024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17025 $as_echo_n "checking for $ac_header... " >&6; }
17026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17027 $as_echo_n "(cached) " >&6
17028 else
17029 eval "$as_ac_Header=\$ac_header_preproc"
17030 fi
17031 ac_res=`eval 'as_val=${'$as_ac_Header'}
17032 $as_echo "$as_val"'`
17033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17034 $as_echo "$ac_res" >&6; }
17035
17036 fi
17037 as_val=`eval 'as_val=${'$as_ac_Header'}
17038 $as_echo "$as_val"'`
17039 if test "x$as_val" = x""yes; then
17040 cat >>confdefs.h <<_ACEOF
17041 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17042 _ACEOF
17043
17044 fi
17045
17046 done
17047
17048
17049 for ac_header in langinfo.h
17050 do
17051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17054 $as_echo_n "checking for $ac_header... " >&6; }
17055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056 $as_echo_n "(cached) " >&6
17057 fi
17058 ac_res=`eval 'as_val=${'$as_ac_Header'}
17059 $as_echo "$as_val"'`
17060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17061 $as_echo "$ac_res" >&6; }
17062 else
17063 # Is the header compilable?
17064 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17065 $as_echo_n "checking $ac_header usability... " >&6; }
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 $ac_includes_default
17073 @%:@include <$ac_header>
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (ac_try="$ac_compile"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080 esac
17081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17082 $as_echo "$ac_try_echo") >&5
17083 (eval "$ac_compile") 2>conftest.er1
17084 ac_status=$?
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
17088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest.$ac_objext; then
17093 ac_header_compiler=yes
17094 else
17095 $as_echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 ac_header_compiler=no
17099 fi
17100
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17103 $as_echo "$ac_header_compiler" >&6; }
17104
17105 # Is the header present?
17106 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17107 $as_echo_n "checking $ac_header presence... " >&6; }
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 @%:@include <$ac_header>
17115 _ACEOF
17116 if { (ac_try="$ac_cpp conftest.$ac_ext"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120 esac
17121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17122 $as_echo "$ac_try_echo") >&5
17123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } >/dev/null && {
17130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17131 test ! -s conftest.err
17132 }; then
17133 ac_header_preproc=yes
17134 else
17135 $as_echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138 ac_header_preproc=no
17139 fi
17140
17141 rm -f conftest.err conftest.$ac_ext
17142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17143 $as_echo "$ac_header_preproc" >&6; }
17144
17145 # So? What about this header?
17146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17147 yes:no: )
17148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17149 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17152 ac_header_preproc=yes
17153 ;;
17154 no:yes:* )
17155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17156 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17158 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17160 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17162 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17166 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17167 ( cat <<\_ASBOX
17168 @%:@@%:@ ------------------------------- @%:@@%:@
17169 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
17170 @%:@@%:@ ------------------------------- @%:@@%:@
17171 _ASBOX
17172 ) | sed "s/^/$as_me: WARNING: /" >&2
17173 ;;
17174 esac
17175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17176 $as_echo_n "checking for $ac_header... " >&6; }
17177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17178 $as_echo_n "(cached) " >&6
17179 else
17180 eval "$as_ac_Header=\$ac_header_preproc"
17181 fi
17182 ac_res=`eval 'as_val=${'$as_ac_Header'}
17183 $as_echo "$as_val"'`
17184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17185 $as_echo "$ac_res" >&6; }
17186
17187 fi
17188 as_val=`eval 'as_val=${'$as_ac_Header'}
17189 $as_echo "$as_val"'`
17190 if test "x$as_val" = x""yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17193 _ACEOF
17194
17195 fi
17196
17197 done
17198
17199
17200 { $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17201 $as_echo_n "checking for mbrlen... " >&6; }
17202 if test "${ac_cv_func_mbrlen+set}" = set; then
17203 $as_echo_n "(cached) " >&6
17204 else
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17213 #define mbrlen innocuous_mbrlen
17214
17215 /* System header to define __stub macros and hopefully few prototypes,
17216 which can conflict with char mbrlen (); below.
17217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17218 <limits.h> exists even on freestanding compilers. */
17219
17220 #ifdef __STDC__
17221 # include <limits.h>
17222 #else
17223 # include <assert.h>
17224 #endif
17225
17226 #undef mbrlen
17227
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17231 #ifdef __cplusplus
17232 extern "C"
17233 #endif
17234 char mbrlen ();
17235 /* The GNU C library defines this for functions which it implements
17236 to always fail with ENOSYS. Some functions are actually named
17237 something starting with __ and the normal name is an alias. */
17238 #if defined __stub_mbrlen || defined __stub___mbrlen
17239 choke me
17240 #endif
17241
17242 int
17243 main ()
17244 {
17245 return mbrlen ();
17246 ;
17247 return 0;
17248 }
17249 _ACEOF
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17257 $as_echo "$ac_try_echo") >&5
17258 (eval "$ac_link") 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && {
17265 test -z "$ac_c_werror_flag" ||
17266 test ! -s conftest.err
17267 } && test -s conftest$ac_exeext && {
17268 test "$cross_compiling" = yes ||
17269 $as_test_x conftest$ac_exeext
17270 }; then
17271 ac_cv_func_mbrlen=yes
17272 else
17273 $as_echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ac_cv_func_mbrlen=no
17277 fi
17278
17279 rm -rf conftest.dSYM
17280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17281 conftest$ac_exeext conftest.$ac_ext
17282 fi
17283 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17284 $as_echo "$ac_cv_func_mbrlen" >&6; }
17285 if test "x$ac_cv_func_mbrlen" = x""yes; then
17286 cat >>confdefs.h <<\_ACEOF
17287 @%:@define HAVE_MBRLEN 1
17288 _ACEOF
17289
17290 fi
17291
17292 { $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17293 $as_echo_n "checking for mbscasecmp... " >&6; }
17294 if test "${ac_cv_func_mbscasecmp+set}" = set; then
17295 $as_echo_n "(cached) " >&6
17296 else
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 /* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17305 #define mbscasecmp innocuous_mbscasecmp
17306
17307 /* System header to define __stub macros and hopefully few prototypes,
17308 which can conflict with char mbscasecmp (); below.
17309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17310 <limits.h> exists even on freestanding compilers. */
17311
17312 #ifdef __STDC__
17313 # include <limits.h>
17314 #else
17315 # include <assert.h>
17316 #endif
17317
17318 #undef mbscasecmp
17319
17320 /* Override any GCC internal prototype to avoid an error.
17321 Use char because int might match the return type of a GCC
17322 builtin and then its argument prototype would still apply. */
17323 #ifdef __cplusplus
17324 extern "C"
17325 #endif
17326 char mbscasecmp ();
17327 /* The GNU C library defines this for functions which it implements
17328 to always fail with ENOSYS. Some functions are actually named
17329 something starting with __ and the normal name is an alias. */
17330 #if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17331 choke me
17332 #endif
17333
17334 int
17335 main ()
17336 {
17337 return mbscasecmp ();
17338 ;
17339 return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (ac_try="$ac_link"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347 esac
17348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17349 $as_echo "$ac_try_echo") >&5
17350 (eval "$ac_link") 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext && {
17360 test "$cross_compiling" = yes ||
17361 $as_test_x conftest$ac_exeext
17362 }; then
17363 ac_cv_func_mbscasecmp=yes
17364 else
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 ac_cv_func_mbscasecmp=no
17369 fi
17370
17371 rm -rf conftest.dSYM
17372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17373 conftest$ac_exeext conftest.$ac_ext
17374 fi
17375 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17376 $as_echo "$ac_cv_func_mbscasecmp" >&6; }
17377 if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17378 cat >>confdefs.h <<\_ACEOF
17379 @%:@define HAVE_MBSCMP 1
17380 _ACEOF
17381
17382 fi
17383
17384 { $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17385 $as_echo_n "checking for mbscmp... " >&6; }
17386 if test "${ac_cv_func_mbscmp+set}" = set; then
17387 $as_echo_n "(cached) " >&6
17388 else
17389 cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 /* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397 #define mbscmp innocuous_mbscmp
17398
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char mbscmp (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17403
17404 #ifdef __STDC__
17405 # include <limits.h>
17406 #else
17407 # include <assert.h>
17408 #endif
17409
17410 #undef mbscmp
17411
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 char mbscmp ();
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined __stub_mbscmp || defined __stub___mbscmp
17423 choke me
17424 #endif
17425
17426 int
17427 main ()
17428 {
17429 return mbscmp ();
17430 ;
17431 return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439 esac
17440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_link") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext && {
17452 test "$cross_compiling" = yes ||
17453 $as_test_x conftest$ac_exeext
17454 }; then
17455 ac_cv_func_mbscmp=yes
17456 else
17457 $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 ac_cv_func_mbscmp=no
17461 fi
17462
17463 rm -rf conftest.dSYM
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17466 fi
17467 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17468 $as_echo "$ac_cv_func_mbscmp" >&6; }
17469 if test "x$ac_cv_func_mbscmp" = x""yes; then
17470 cat >>confdefs.h <<\_ACEOF
17471 @%:@define HAVE_MBSCMP 1
17472 _ACEOF
17473
17474 fi
17475
17476 { $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17477 $as_echo_n "checking for mbsnrtowcs... " >&6; }
17478 if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17479 $as_echo_n "(cached) " >&6
17480 else
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 /* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17489 #define mbsnrtowcs innocuous_mbsnrtowcs
17490
17491 /* System header to define __stub macros and hopefully few prototypes,
17492 which can conflict with char mbsnrtowcs (); below.
17493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17494 <limits.h> exists even on freestanding compilers. */
17495
17496 #ifdef __STDC__
17497 # include <limits.h>
17498 #else
17499 # include <assert.h>
17500 #endif
17501
17502 #undef mbsnrtowcs
17503
17504 /* Override any GCC internal prototype to avoid an error.
17505 Use char because int might match the return type of a GCC
17506 builtin and then its argument prototype would still apply. */
17507 #ifdef __cplusplus
17508 extern "C"
17509 #endif
17510 char mbsnrtowcs ();
17511 /* The GNU C library defines this for functions which it implements
17512 to always fail with ENOSYS. Some functions are actually named
17513 something starting with __ and the normal name is an alias. */
17514 #if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17515 choke me
17516 #endif
17517
17518 int
17519 main ()
17520 {
17521 return mbsnrtowcs ();
17522 ;
17523 return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17531 esac
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534 (eval "$ac_link") 2>conftest.er1
17535 ac_status=$?
17536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
17539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } && {
17541 test -z "$ac_c_werror_flag" ||
17542 test ! -s conftest.err
17543 } && test -s conftest$ac_exeext && {
17544 test "$cross_compiling" = yes ||
17545 $as_test_x conftest$ac_exeext
17546 }; then
17547 ac_cv_func_mbsnrtowcs=yes
17548 else
17549 $as_echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ac_cv_func_mbsnrtowcs=no
17553 fi
17554
17555 rm -rf conftest.dSYM
17556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17557 conftest$ac_exeext conftest.$ac_ext
17558 fi
17559 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17560 $as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17561 if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
17562 cat >>confdefs.h <<\_ACEOF
17563 @%:@define HAVE_MBSNRTOWCS 1
17564 _ACEOF
17565
17566 fi
17567
17568 { $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17569 $as_echo_n "checking for mbsrtowcs... " >&6; }
17570 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17571 $as_echo_n "(cached) " >&6
17572 else
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17581 #define mbsrtowcs innocuous_mbsrtowcs
17582
17583 /* System header to define __stub macros and hopefully few prototypes,
17584 which can conflict with char mbsrtowcs (); below.
17585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586 <limits.h> exists even on freestanding compilers. */
17587
17588 #ifdef __STDC__
17589 # include <limits.h>
17590 #else
17591 # include <assert.h>
17592 #endif
17593
17594 #undef mbsrtowcs
17595
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 char mbsrtowcs ();
17603 /* The GNU C library defines this for functions which it implements
17604 to always fail with ENOSYS. Some functions are actually named
17605 something starting with __ and the normal name is an alias. */
17606 #if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17607 choke me
17608 #endif
17609
17610 int
17611 main ()
17612 {
17613 return mbsrtowcs ();
17614 ;
17615 return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (ac_try="$ac_link"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623 esac
17624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17625 $as_echo "$ac_try_echo") >&5
17626 (eval "$ac_link") 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest$ac_exeext && {
17636 test "$cross_compiling" = yes ||
17637 $as_test_x conftest$ac_exeext
17638 }; then
17639 ac_cv_func_mbsrtowcs=yes
17640 else
17641 $as_echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_func_mbsrtowcs=no
17645 fi
17646
17647 rm -rf conftest.dSYM
17648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17649 conftest$ac_exeext conftest.$ac_ext
17650 fi
17651 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17652 $as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17653 if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17654 cat >>confdefs.h <<\_ACEOF
17655 @%:@define HAVE_MBSRTOWCS 1
17656 _ACEOF
17657
17658 fi
17659
17660
17661
17662
17663 for ac_func in mbschr
17664 do
17665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17666 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17667 $as_echo_n "checking for $ac_func... " >&6; }
17668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17669 $as_echo_n "(cached) " >&6
17670 else
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17679 #define $ac_func innocuous_$ac_func
17680
17681 /* System header to define __stub macros and hopefully few prototypes,
17682 which can conflict with char $ac_func (); below.
17683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17684 <limits.h> exists even on freestanding compilers. */
17685
17686 #ifdef __STDC__
17687 # include <limits.h>
17688 #else
17689 # include <assert.h>
17690 #endif
17691
17692 #undef $ac_func
17693
17694 /* Override any GCC internal prototype to avoid an error.
17695 Use char because int might match the return type of a GCC
17696 builtin and then its argument prototype would still apply. */
17697 #ifdef __cplusplus
17698 extern "C"
17699 #endif
17700 char $ac_func ();
17701 /* The GNU C library defines this for functions which it implements
17702 to always fail with ENOSYS. Some functions are actually named
17703 something starting with __ and the normal name is an alias. */
17704 #if defined __stub_$ac_func || defined __stub___$ac_func
17705 choke me
17706 #endif
17707
17708 int
17709 main ()
17710 {
17711 return $ac_func ();
17712 ;
17713 return 0;
17714 }
17715 _ACEOF
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (ac_try="$ac_link"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17721 esac
17722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17723 $as_echo "$ac_try_echo") >&5
17724 (eval "$ac_link") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext && {
17734 test "$cross_compiling" = yes ||
17735 $as_test_x conftest$ac_exeext
17736 }; then
17737 eval "$as_ac_var=yes"
17738 else
17739 $as_echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 eval "$as_ac_var=no"
17743 fi
17744
17745 rm -rf conftest.dSYM
17746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17747 conftest$ac_exeext conftest.$ac_ext
17748 fi
17749 ac_res=`eval 'as_val=${'$as_ac_var'}
17750 $as_echo "$as_val"'`
17751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17752 $as_echo "$ac_res" >&6; }
17753 as_val=`eval 'as_val=${'$as_ac_var'}
17754 $as_echo "$as_val"'`
17755 if test "x$as_val" = x""yes; then
17756 cat >>confdefs.h <<_ACEOF
17757 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17758 _ACEOF
17759
17760 else
17761 case " $LIB@&t@OBJS " in
17762 *" $ac_func.$ac_objext "* ) ;;
17763 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
17764 ;;
17765 esac
17766
17767 fi
17768 done
17769
17770
17771
17772 { $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17773 $as_echo_n "checking for wcrtomb... " >&6; }
17774 if test "${ac_cv_func_wcrtomb+set}" = set; then
17775 $as_echo_n "(cached) " >&6
17776 else
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define wcrtomb innocuous_wcrtomb
17786
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char wcrtomb (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17791
17792 #ifdef __STDC__
17793 # include <limits.h>
17794 #else
17795 # include <assert.h>
17796 #endif
17797
17798 #undef wcrtomb
17799
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17803 #ifdef __cplusplus
17804 extern "C"
17805 #endif
17806 char wcrtomb ();
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined __stub_wcrtomb || defined __stub___wcrtomb
17811 choke me
17812 #endif
17813
17814 int
17815 main ()
17816 {
17817 return wcrtomb ();
17818 ;
17819 return 0;
17820 }
17821 _ACEOF
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (ac_try="$ac_link"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17829 $as_echo "$ac_try_echo") >&5
17830 (eval "$ac_link") 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext && {
17840 test "$cross_compiling" = yes ||
17841 $as_test_x conftest$ac_exeext
17842 }; then
17843 ac_cv_func_wcrtomb=yes
17844 else
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848 ac_cv_func_wcrtomb=no
17849 fi
17850
17851 rm -rf conftest.dSYM
17852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 conftest$ac_exeext conftest.$ac_ext
17854 fi
17855 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17856 $as_echo "$ac_cv_func_wcrtomb" >&6; }
17857 if test "x$ac_cv_func_wcrtomb" = x""yes; then
17858 cat >>confdefs.h <<\_ACEOF
17859 @%:@define HAVE_WCRTOMB 1
17860 _ACEOF
17861
17862 fi
17863
17864 { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17865 $as_echo_n "checking for wcscoll... " >&6; }
17866 if test "${ac_cv_func_wcscoll+set}" = set; then
17867 $as_echo_n "(cached) " >&6
17868 else
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875 /* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17877 #define wcscoll innocuous_wcscoll
17878
17879 /* System header to define __stub macros and hopefully few prototypes,
17880 which can conflict with char wcscoll (); below.
17881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17882 <limits.h> exists even on freestanding compilers. */
17883
17884 #ifdef __STDC__
17885 # include <limits.h>
17886 #else
17887 # include <assert.h>
17888 #endif
17889
17890 #undef wcscoll
17891
17892 /* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17895 #ifdef __cplusplus
17896 extern "C"
17897 #endif
17898 char wcscoll ();
17899 /* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902 #if defined __stub_wcscoll || defined __stub___wcscoll
17903 choke me
17904 #endif
17905
17906 int
17907 main ()
17908 {
17909 return wcscoll ();
17910 ;
17911 return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest.$ac_objext conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919 esac
17920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921 $as_echo "$ac_try_echo") >&5
17922 (eval "$ac_link") 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } && {
17929 test -z "$ac_c_werror_flag" ||
17930 test ! -s conftest.err
17931 } && test -s conftest$ac_exeext && {
17932 test "$cross_compiling" = yes ||
17933 $as_test_x conftest$ac_exeext
17934 }; then
17935 ac_cv_func_wcscoll=yes
17936 else
17937 $as_echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_cv_func_wcscoll=no
17941 fi
17942
17943 rm -rf conftest.dSYM
17944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17945 conftest$ac_exeext conftest.$ac_ext
17946 fi
17947 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17948 $as_echo "$ac_cv_func_wcscoll" >&6; }
17949 if test "x$ac_cv_func_wcscoll" = x""yes; then
17950 cat >>confdefs.h <<\_ACEOF
17951 @%:@define HAVE_WCSCOLL 1
17952 _ACEOF
17953
17954 fi
17955
17956 { $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17957 $as_echo_n "checking for wcsdup... " >&6; }
17958 if test "${ac_cv_func_wcsdup+set}" = set; then
17959 $as_echo_n "(cached) " >&6
17960 else
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17969 #define wcsdup innocuous_wcsdup
17970
17971 /* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char wcsdup (); below.
17973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17974 <limits.h> exists even on freestanding compilers. */
17975
17976 #ifdef __STDC__
17977 # include <limits.h>
17978 #else
17979 # include <assert.h>
17980 #endif
17981
17982 #undef wcsdup
17983
17984 /* Override any GCC internal prototype to avoid an error.
17985 Use char because int might match the return type of a GCC
17986 builtin and then its argument prototype would still apply. */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 char wcsdup ();
17991 /* The GNU C library defines this for functions which it implements
17992 to always fail with ENOSYS. Some functions are actually named
17993 something starting with __ and the normal name is an alias. */
17994 #if defined __stub_wcsdup || defined __stub___wcsdup
17995 choke me
17996 #endif
17997
17998 int
17999 main ()
18000 {
18001 return wcsdup ();
18002 ;
18003 return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011 esac
18012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18013 $as_echo "$ac_try_echo") >&5
18014 (eval "$ac_link") 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } && {
18021 test -z "$ac_c_werror_flag" ||
18022 test ! -s conftest.err
18023 } && test -s conftest$ac_exeext && {
18024 test "$cross_compiling" = yes ||
18025 $as_test_x conftest$ac_exeext
18026 }; then
18027 ac_cv_func_wcsdup=yes
18028 else
18029 $as_echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032 ac_cv_func_wcsdup=no
18033 fi
18034
18035 rm -rf conftest.dSYM
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18038 fi
18039 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
18040 $as_echo "$ac_cv_func_wcsdup" >&6; }
18041 if test "x$ac_cv_func_wcsdup" = x""yes; then
18042 cat >>confdefs.h <<\_ACEOF
18043 @%:@define HAVE_WCSDUP 1
18044 _ACEOF
18045
18046 fi
18047
18048 { $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
18049 $as_echo_n "checking for wcwidth... " >&6; }
18050 if test "${ac_cv_func_wcwidth+set}" = set; then
18051 $as_echo_n "(cached) " >&6
18052 else
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
18060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18061 #define wcwidth innocuous_wcwidth
18062
18063 /* System header to define __stub macros and hopefully few prototypes,
18064 which can conflict with char wcwidth (); below.
18065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066 <limits.h> exists even on freestanding compilers. */
18067
18068 #ifdef __STDC__
18069 # include <limits.h>
18070 #else
18071 # include <assert.h>
18072 #endif
18073
18074 #undef wcwidth
18075
18076 /* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18079 #ifdef __cplusplus
18080 extern "C"
18081 #endif
18082 char wcwidth ();
18083 /* The GNU C library defines this for functions which it implements
18084 to always fail with ENOSYS. Some functions are actually named
18085 something starting with __ and the normal name is an alias. */
18086 #if defined __stub_wcwidth || defined __stub___wcwidth
18087 choke me
18088 #endif
18089
18090 int
18091 main ()
18092 {
18093 return wcwidth ();
18094 ;
18095 return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106 (eval "$ac_link") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } && {
18113 test -z "$ac_c_werror_flag" ||
18114 test ! -s conftest.err
18115 } && test -s conftest$ac_exeext && {
18116 test "$cross_compiling" = yes ||
18117 $as_test_x conftest$ac_exeext
18118 }; then
18119 ac_cv_func_wcwidth=yes
18120 else
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124 ac_cv_func_wcwidth=no
18125 fi
18126
18127 rm -rf conftest.dSYM
18128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18129 conftest$ac_exeext conftest.$ac_ext
18130 fi
18131 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18132 $as_echo "$ac_cv_func_wcwidth" >&6; }
18133 if test "x$ac_cv_func_wcwidth" = x""yes; then
18134 cat >>confdefs.h <<\_ACEOF
18135 @%:@define HAVE_WCWIDTH 1
18136 _ACEOF
18137
18138 fi
18139
18140 { $as_echo "$as_me:$LINENO: checking for wctype" >&5
18141 $as_echo_n "checking for wctype... " >&6; }
18142 if test "${ac_cv_func_wctype+set}" = set; then
18143 $as_echo_n "(cached) " >&6
18144 else
18145 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h. */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18153 #define wctype innocuous_wctype
18154
18155 /* System header to define __stub macros and hopefully few prototypes,
18156 which can conflict with char wctype (); below.
18157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18158 <limits.h> exists even on freestanding compilers. */
18159
18160 #ifdef __STDC__
18161 # include <limits.h>
18162 #else
18163 # include <assert.h>
18164 #endif
18165
18166 #undef wctype
18167
18168 /* Override any GCC internal prototype to avoid an error.
18169 Use char because int might match the return type of a GCC
18170 builtin and then its argument prototype would still apply. */
18171 #ifdef __cplusplus
18172 extern "C"
18173 #endif
18174 char wctype ();
18175 /* The GNU C library defines this for functions which it implements
18176 to always fail with ENOSYS. Some functions are actually named
18177 something starting with __ and the normal name is an alias. */
18178 #if defined __stub_wctype || defined __stub___wctype
18179 choke me
18180 #endif
18181
18182 int
18183 main ()
18184 {
18185 return wctype ();
18186 ;
18187 return 0;
18188 }
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195 esac
18196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18197 $as_echo "$ac_try_echo") >&5
18198 (eval "$ac_link") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest$ac_exeext && {
18208 test "$cross_compiling" = yes ||
18209 $as_test_x conftest$ac_exeext
18210 }; then
18211 ac_cv_func_wctype=yes
18212 else
18213 $as_echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 ac_cv_func_wctype=no
18217 fi
18218
18219 rm -rf conftest.dSYM
18220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18221 conftest$ac_exeext conftest.$ac_ext
18222 fi
18223 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18224 $as_echo "$ac_cv_func_wctype" >&6; }
18225 if test "x$ac_cv_func_wctype" = x""yes; then
18226 cat >>confdefs.h <<\_ACEOF
18227 @%:@define HAVE_WCTYPE 1
18228 _ACEOF
18229
18230 fi
18231
18232
18233
18234 for ac_func in wcswidth
18235 do
18236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18238 $as_echo_n "checking for $ac_func... " >&6; }
18239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18240 $as_echo_n "(cached) " >&6
18241 else
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18250 #define $ac_func innocuous_$ac_func
18251
18252 /* System header to define __stub macros and hopefully few prototypes,
18253 which can conflict with char $ac_func (); below.
18254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18255 <limits.h> exists even on freestanding compilers. */
18256
18257 #ifdef __STDC__
18258 # include <limits.h>
18259 #else
18260 # include <assert.h>
18261 #endif
18262
18263 #undef $ac_func
18264
18265 /* Override any GCC internal prototype to avoid an error.
18266 Use char because int might match the return type of a GCC
18267 builtin and then its argument prototype would still apply. */
18268 #ifdef __cplusplus
18269 extern "C"
18270 #endif
18271 char $ac_func ();
18272 /* The GNU C library defines this for functions which it implements
18273 to always fail with ENOSYS. Some functions are actually named
18274 something starting with __ and the normal name is an alias. */
18275 #if defined __stub_$ac_func || defined __stub___$ac_func
18276 choke me
18277 #endif
18278
18279 int
18280 main ()
18281 {
18282 return $ac_func ();
18283 ;
18284 return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18292 esac
18293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18294 $as_echo "$ac_try_echo") >&5
18295 (eval "$ac_link") 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && {
18302 test -z "$ac_c_werror_flag" ||
18303 test ! -s conftest.err
18304 } && test -s conftest$ac_exeext && {
18305 test "$cross_compiling" = yes ||
18306 $as_test_x conftest$ac_exeext
18307 }; then
18308 eval "$as_ac_var=yes"
18309 else
18310 $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313 eval "$as_ac_var=no"
18314 fi
18315
18316 rm -rf conftest.dSYM
18317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18318 conftest$ac_exeext conftest.$ac_ext
18319 fi
18320 ac_res=`eval 'as_val=${'$as_ac_var'}
18321 $as_echo "$as_val"'`
18322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18323 $as_echo "$ac_res" >&6; }
18324 as_val=`eval 'as_val=${'$as_ac_var'}
18325 $as_echo "$as_val"'`
18326 if test "x$as_val" = x""yes; then
18327 cat >>confdefs.h <<_ACEOF
18328 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18329 _ACEOF
18330
18331 else
18332 case " $LIB@&t@OBJS " in
18333 *" $ac_func.$ac_objext "* ) ;;
18334 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
18335 ;;
18336 esac
18337
18338 fi
18339 done
18340
18341
18342
18343
18344 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18345 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18346 if test "${ac_cv_func_mbrtowc+set}" = set; then
18347 $as_echo_n "(cached) " >&6
18348 else
18349 cat >conftest.$ac_ext <<_ACEOF
18350 /* confdefs.h. */
18351 _ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h. */
18355 @%:@include <wchar.h>
18356 int
18357 main ()
18358 {
18359 wchar_t wc;
18360 char const s[] = "";
18361 size_t n = 1;
18362 mbstate_t state;
18363 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18364 ;
18365 return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18375 $as_echo "$ac_try_echo") >&5
18376 (eval "$ac_link") 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } && {
18383 test -z "$ac_c_werror_flag" ||
18384 test ! -s conftest.err
18385 } && test -s conftest$ac_exeext && {
18386 test "$cross_compiling" = yes ||
18387 $as_test_x conftest$ac_exeext
18388 }; then
18389 ac_cv_func_mbrtowc=yes
18390 else
18391 $as_echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ac_cv_func_mbrtowc=no
18395 fi
18396
18397 rm -rf conftest.dSYM
18398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18399 conftest$ac_exeext conftest.$ac_ext
18400 fi
18401 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18402 $as_echo "$ac_cv_func_mbrtowc" >&6; }
18403 if test $ac_cv_func_mbrtowc = yes; then
18404
18405 cat >>confdefs.h <<\_ACEOF
18406 @%:@define HAVE_MBRTOWC 1
18407 _ACEOF
18408
18409 fi
18410
18411 if test $ac_cv_func_mbrtowc = yes; then
18412 cat >>confdefs.h <<\_ACEOF
18413 @%:@define HAVE_MBSTATE_T 1
18414 _ACEOF
18415
18416 fi
18417
18418
18419
18420
18421
18422
18423 for ac_func in iswlower iswupper towlower towupper iswctype
18424 do
18425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18427 $as_echo_n "checking for $ac_func... " >&6; }
18428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18429 $as_echo_n "(cached) " >&6
18430 else
18431 cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h. */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18439 #define $ac_func innocuous_$ac_func
18440
18441 /* System header to define __stub macros and hopefully few prototypes,
18442 which can conflict with char $ac_func (); below.
18443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18444 <limits.h> exists even on freestanding compilers. */
18445
18446 #ifdef __STDC__
18447 # include <limits.h>
18448 #else
18449 # include <assert.h>
18450 #endif
18451
18452 #undef $ac_func
18453
18454 /* Override any GCC internal prototype to avoid an error.
18455 Use char because int might match the return type of a GCC
18456 builtin and then its argument prototype would still apply. */
18457 #ifdef __cplusplus
18458 extern "C"
18459 #endif
18460 char $ac_func ();
18461 /* The GNU C library defines this for functions which it implements
18462 to always fail with ENOSYS. Some functions are actually named
18463 something starting with __ and the normal name is an alias. */
18464 #if defined __stub_$ac_func || defined __stub___$ac_func
18465 choke me
18466 #endif
18467
18468 int
18469 main ()
18470 {
18471 return $ac_func ();
18472 ;
18473 return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext conftest$ac_exeext
18477 if { (ac_try="$ac_link"
18478 case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481 esac
18482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18483 $as_echo "$ac_try_echo") >&5
18484 (eval "$ac_link") 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest$ac_exeext && {
18494 test "$cross_compiling" = yes ||
18495 $as_test_x conftest$ac_exeext
18496 }; then
18497 eval "$as_ac_var=yes"
18498 else
18499 $as_echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 eval "$as_ac_var=no"
18503 fi
18504
18505 rm -rf conftest.dSYM
18506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18507 conftest$ac_exeext conftest.$ac_ext
18508 fi
18509 ac_res=`eval 'as_val=${'$as_ac_var'}
18510 $as_echo "$as_val"'`
18511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18512 $as_echo "$ac_res" >&6; }
18513 as_val=`eval 'as_val=${'$as_ac_var'}
18514 $as_echo "$as_val"'`
18515 if test "x$as_val" = x""yes; then
18516 cat >>confdefs.h <<_ACEOF
18517 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18518 _ACEOF
18519
18520 fi
18521 done
18522
18523
18524 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18525 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18526 if test "${bash_cv_langinfo_codeset+set}" = set; then
18527 $as_echo_n "(cached) " >&6
18528 else
18529 cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h. */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 #include <langinfo.h>
18536 int
18537 main ()
18538 {
18539 char* cs = nl_langinfo(CODESET);
18540 ;
18541 return 0;
18542 }
18543 _ACEOF
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18551 $as_echo "$ac_try_echo") >&5
18552 (eval "$ac_link") 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest$ac_exeext && {
18562 test "$cross_compiling" = yes ||
18563 $as_test_x conftest$ac_exeext
18564 }; then
18565 bash_cv_langinfo_codeset=yes
18566 else
18567 $as_echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 bash_cv_langinfo_codeset=no
18571 fi
18572
18573 rm -rf conftest.dSYM
18574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18575 conftest$ac_exeext conftest.$ac_ext
18576 fi
18577 { $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18578 $as_echo "$bash_cv_langinfo_codeset" >&6; }
18579 if test $bash_cv_langinfo_codeset = yes; then
18580 cat >>confdefs.h <<\_ACEOF
18581 @%:@define HAVE_LANGINFO_CODESET 1
18582 _ACEOF
18583
18584 fi
18585
18586 { $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18587 $as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18588 if test "${bash_cv_type_wchar_t+set}" = set; then
18589 $as_echo_n "(cached) " >&6
18590 else
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h. */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 #include <wchar.h>
18598
18599 int
18600 main ()
18601 {
18602
18603 wchar_t foo;
18604 foo = 0;
18605
18606 ;
18607 return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615 esac
18616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18617 $as_echo "$ac_try_echo") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest.$ac_objext; then
18628 bash_cv_type_wchar_t=yes
18629 else
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633 bash_cv_type_wchar_t=no
18634 fi
18635
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637 fi
18638 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18639 $as_echo "$bash_cv_type_wchar_t" >&6; }
18640 if test $bash_cv_type_wchar_t = yes; then
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 @%:@define HAVE_WCHAR_T 1
18644 _ACEOF
18645
18646 fi
18647
18648 { $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18649 $as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18650 if test "${bash_cv_type_wctype_t+set}" = set; then
18651 $as_echo_n "(cached) " >&6
18652 else
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <wctype.h>
18660 int
18661 main ()
18662 {
18663
18664 wctype_t foo;
18665 foo = 0;
18666
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676 esac
18677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_compile") 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest.$ac_objext; then
18689 bash_cv_type_wctype_t=yes
18690 else
18691 $as_echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694 bash_cv_type_wctype_t=no
18695 fi
18696
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 fi
18699 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18700 $as_echo "$bash_cv_type_wctype_t" >&6; }
18701 if test $bash_cv_type_wctype_t = yes; then
18702
18703 cat >>confdefs.h <<\_ACEOF
18704 @%:@define HAVE_WCTYPE_T 1
18705 _ACEOF
18706
18707 fi
18708
18709 { $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18710 $as_echo_n "checking for wint_t in wctype.h... " >&6; }
18711 if test "${bash_cv_type_wint_t+set}" = set; then
18712 $as_echo_n "(cached) " >&6
18713 else
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <wctype.h>
18721 int
18722 main ()
18723 {
18724
18725 wint_t foo;
18726 foo = 0;
18727
18728 ;
18729 return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737 esac
18738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18739 $as_echo "$ac_try_echo") >&5
18740 (eval "$ac_compile") 2>conftest.er1
18741 ac_status=$?
18742 grep -v '^ *+' conftest.er1 >conftest.err
18743 rm -f conftest.er1
18744 cat conftest.err >&5
18745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest.$ac_objext; then
18750 bash_cv_type_wint_t=yes
18751 else
18752 $as_echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 bash_cv_type_wint_t=no
18756 fi
18757
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759 fi
18760 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18761 $as_echo "$bash_cv_type_wint_t" >&6; }
18762 if test $bash_cv_type_wint_t = yes; then
18763
18764 cat >>confdefs.h <<\_ACEOF
18765 @%:@define HAVE_WINT_T 1
18766 _ACEOF
18767
18768 fi
18769
18770 if test "$am_cv_func_iconv" = yes; then
18771 OLDLIBS="$LIBS"
18772 LIBS="$LIBS $LIBICONV"
18773
18774 for ac_func in locale_charset
18775 do
18776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18778 $as_echo_n "checking for $ac_func... " >&6; }
18779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18780 $as_echo_n "(cached) " >&6
18781 else
18782 cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h. */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18790 #define $ac_func innocuous_$ac_func
18791
18792 /* System header to define __stub macros and hopefully few prototypes,
18793 which can conflict with char $ac_func (); below.
18794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18795 <limits.h> exists even on freestanding compilers. */
18796
18797 #ifdef __STDC__
18798 # include <limits.h>
18799 #else
18800 # include <assert.h>
18801 #endif
18802
18803 #undef $ac_func
18804
18805 /* Override any GCC internal prototype to avoid an error.
18806 Use char because int might match the return type of a GCC
18807 builtin and then its argument prototype would still apply. */
18808 #ifdef __cplusplus
18809 extern "C"
18810 #endif
18811 char $ac_func ();
18812 /* The GNU C library defines this for functions which it implements
18813 to always fail with ENOSYS. Some functions are actually named
18814 something starting with __ and the normal name is an alias. */
18815 #if defined __stub_$ac_func || defined __stub___$ac_func
18816 choke me
18817 #endif
18818
18819 int
18820 main ()
18821 {
18822 return $ac_func ();
18823 ;
18824 return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (ac_try="$ac_link"
18829 case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832 esac
18833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18834 $as_echo "$ac_try_echo") >&5
18835 (eval "$ac_link") 2>conftest.er1
18836 ac_status=$?
18837 grep -v '^ *+' conftest.er1 >conftest.err
18838 rm -f conftest.er1
18839 cat conftest.err >&5
18840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); } && {
18842 test -z "$ac_c_werror_flag" ||
18843 test ! -s conftest.err
18844 } && test -s conftest$ac_exeext && {
18845 test "$cross_compiling" = yes ||
18846 $as_test_x conftest$ac_exeext
18847 }; then
18848 eval "$as_ac_var=yes"
18849 else
18850 $as_echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18852
18853 eval "$as_ac_var=no"
18854 fi
18855
18856 rm -rf conftest.dSYM
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18859 fi
18860 ac_res=`eval 'as_val=${'$as_ac_var'}
18861 $as_echo "$as_val"'`
18862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18863 $as_echo "$ac_res" >&6; }
18864 as_val=`eval 'as_val=${'$as_ac_var'}
18865 $as_echo "$as_val"'`
18866 if test "x$as_val" = x""yes; then
18867 cat >>confdefs.h <<_ACEOF
18868 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18869 _ACEOF
18870
18871 fi
18872 done
18873
18874 LIBS="$OLDLIBS"
18875 fi
18876
18877
18878
18879 if test "$opt_static_link" != yes; then
18880
18881 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18884 $as_echo_n "(cached) " >&6
18885 else
18886 ac_check_lib_save_LIBS=$LIBS
18887 LIBS="-ldl $LIBS"
18888 cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h. */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894
18895 /* Override any GCC internal prototype to avoid an error.
18896 Use char because int might match the return type of a GCC
18897 builtin and then its argument prototype would still apply. */
18898 #ifdef __cplusplus
18899 extern "C"
18900 #endif
18901 char dlopen ();
18902 int
18903 main ()
18904 {
18905 return dlopen ();
18906 ;
18907 return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (ac_try="$ac_link"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915 esac
18916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_link") 2>conftest.er1
18919 ac_status=$?
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext && {
18928 test "$cross_compiling" = yes ||
18929 $as_test_x conftest$ac_exeext
18930 }; then
18931 ac_cv_lib_dl_dlopen=yes
18932 else
18933 $as_echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 ac_cv_lib_dl_dlopen=no
18937 fi
18938
18939 rm -rf conftest.dSYM
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18942 LIBS=$ac_check_lib_save_LIBS
18943 fi
18944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18946 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 @%:@define HAVE_LIBDL 1
18949 _ACEOF
18950
18951 LIBS="-ldl $LIBS"
18952
18953 fi
18954
18955
18956
18957
18958 for ac_func in dlopen dlclose dlsym
18959 do
18960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18962 $as_echo_n "checking for $ac_func... " >&6; }
18963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18964 $as_echo_n "(cached) " >&6
18965 else
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define $ac_func innocuous_$ac_func
18975
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char $ac_func (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18980
18981 #ifdef __STDC__
18982 # include <limits.h>
18983 #else
18984 # include <assert.h>
18985 #endif
18986
18987 #undef $ac_func
18988
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18992 #ifdef __cplusplus
18993 extern "C"
18994 #endif
18995 char $ac_func ();
18996 /* The GNU C library defines this for functions which it implements
18997 to always fail with ENOSYS. Some functions are actually named
18998 something starting with __ and the normal name is an alias. */
18999 #if defined __stub_$ac_func || defined __stub___$ac_func
19000 choke me
19001 #endif
19002
19003 int
19004 main ()
19005 {
19006 return $ac_func ();
19007 ;
19008 return 0;
19009 }
19010 _ACEOF
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_link") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest$ac_exeext && {
19029 test "$cross_compiling" = yes ||
19030 $as_test_x conftest$ac_exeext
19031 }; then
19032 eval "$as_ac_var=yes"
19033 else
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 eval "$as_ac_var=no"
19038 fi
19039
19040 rm -rf conftest.dSYM
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042 conftest$ac_exeext conftest.$ac_ext
19043 fi
19044 ac_res=`eval 'as_val=${'$as_ac_var'}
19045 $as_echo "$as_val"'`
19046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19047 $as_echo "$ac_res" >&6; }
19048 as_val=`eval 'as_val=${'$as_ac_var'}
19049 $as_echo "$as_val"'`
19050 if test "x$as_val" = x""yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19053 _ACEOF
19054
19055 fi
19056 done
19057
19058 fi
19059
19060 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19061 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19062 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19063 $as_echo_n "(cached) " >&6
19064 else
19065 cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h. */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 #include <signal.h>
19072 /* NetBSD declares sys_siglist in unistd.h. */
19073 #ifdef HAVE_UNISTD_H
19074 # include <unistd.h>
19075 #endif
19076
19077
19078 int
19079 main ()
19080 {
19081 #ifndef sys_siglist
19082 (void) sys_siglist;
19083 #endif
19084
19085 ;
19086 return 0;
19087 }
19088 _ACEOF
19089 rm -f conftest.$ac_objext
19090 if { (ac_try="$ac_compile"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19096 $as_echo "$ac_try_echo") >&5
19097 (eval "$ac_compile") 2>conftest.er1
19098 ac_status=$?
19099 grep -v '^ *+' conftest.er1 >conftest.err
19100 rm -f conftest.er1
19101 cat conftest.err >&5
19102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } && {
19104 test -z "$ac_c_werror_flag" ||
19105 test ! -s conftest.err
19106 } && test -s conftest.$ac_objext; then
19107 ac_cv_have_decl_sys_siglist=yes
19108 else
19109 $as_echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_have_decl_sys_siglist=no
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 fi
19117 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19118 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19119 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19120
19121 cat >>confdefs.h <<_ACEOF
19122 @%:@define HAVE_DECL_SYS_SIGLIST 1
19123 _ACEOF
19124
19125
19126 else
19127 cat >>confdefs.h <<_ACEOF
19128 @%:@define HAVE_DECL_SYS_SIGLIST 0
19129 _ACEOF
19130
19131
19132 fi
19133
19134
19135
19136
19137 if test "$ac_cv_func_inet_aton" != 'yes'; then
19138
19139 { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19140 $as_echo_n "checking for inet_aton... " >&6; }
19141 if test "${bash_cv_func_inet_aton+set}" = set; then
19142 $as_echo_n "(cached) " >&6
19143 else
19144 cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h. */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150
19151 #include <sys/types.h>
19152 #include <netinet/in.h>
19153 #include <arpa/inet.h>
19154 struct in_addr ap;
19155 int
19156 main ()
19157 {
19158 inet_aton("127.0.0.1", &ap);
19159 ;
19160 return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171 (eval "$ac_link") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } && {
19178 test -z "$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19180 } && test -s conftest$ac_exeext && {
19181 test "$cross_compiling" = yes ||
19182 $as_test_x conftest$ac_exeext
19183 }; then
19184 bash_cv_func_inet_aton=yes
19185 else
19186 $as_echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
19189 bash_cv_func_inet_aton=no
19190 fi
19191
19192 rm -rf conftest.dSYM
19193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19194 conftest$ac_exeext conftest.$ac_ext
19195 fi
19196 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19197 $as_echo "$bash_cv_func_inet_aton" >&6; }
19198 if test $bash_cv_func_inet_aton = yes; then
19199 cat >>confdefs.h <<\_ACEOF
19200 @%:@define HAVE_INET_ATON 1
19201 _ACEOF
19202
19203 else
19204 case " $LIB@&t@OBJS " in
19205 *" inet_aton.$ac_objext "* ) ;;
19206 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext"
19207 ;;
19208 esac
19209
19210 fi
19211
19212 fi
19213
19214 case "$host_os" in
19215 irix4*)
19216 { $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19217 $as_echo_n "checking for getpwent in -lsun... " >&6; }
19218 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19219 $as_echo_n "(cached) " >&6
19220 else
19221 ac_check_lib_save_LIBS=$LIBS
19222 LIBS="-lsun $LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19233 #ifdef __cplusplus
19234 extern "C"
19235 #endif
19236 char getpwent ();
19237 int
19238 main ()
19239 {
19240 return getpwent ();
19241 ;
19242 return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250 esac
19251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19252 $as_echo "$ac_try_echo") >&5
19253 (eval "$ac_link") 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest$ac_exeext && {
19263 test "$cross_compiling" = yes ||
19264 $as_test_x conftest$ac_exeext
19265 }; then
19266 ac_cv_lib_sun_getpwent=yes
19267 else
19268 $as_echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ac_cv_lib_sun_getpwent=no
19272 fi
19273
19274 rm -rf conftest.dSYM
19275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19276 conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19278 fi
19279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19280 $as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19281 if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19282 cat >>confdefs.h <<_ACEOF
19283 @%:@define HAVE_LIBSUN 1
19284 _ACEOF
19285
19286 LIBS="-lsun $LIBS"
19287
19288 fi
19289 ;;
19290 esac
19291
19292 if test "$ac_cv_func_getpeername" = no; then
19293
19294 if test "X$bash_cv_have_socklib" = "X"; then
19295 _bash_needmsg=
19296 else
19297 { $as_echo "$as_me:$LINENO: checking for socket library" >&5
19298 $as_echo_n "checking for socket library... " >&6; }
19299 _bash_needmsg=yes
19300 fi
19301 if test "${bash_cv_have_socklib+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19303 else
19304 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19305 $as_echo_n "checking for getpeername in -lsocket... " >&6; }
19306 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19307 $as_echo_n "(cached) " >&6
19308 else
19309 ac_check_lib_save_LIBS=$LIBS
19310 LIBS="-lsocket -lnsl $LIBS"
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h. */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char getpeername ();
19325 int
19326 main ()
19327 {
19328 return getpeername ();
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338 esac
19339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19340 $as_echo "$ac_try_echo") >&5
19341 (eval "$ac_link") 2>conftest.er1
19342 ac_status=$?
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
19346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && {
19348 test -z "$ac_c_werror_flag" ||
19349 test ! -s conftest.err
19350 } && test -s conftest$ac_exeext && {
19351 test "$cross_compiling" = yes ||
19352 $as_test_x conftest$ac_exeext
19353 }; then
19354 ac_cv_lib_socket_getpeername=yes
19355 else
19356 $as_echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359 ac_cv_lib_socket_getpeername=no
19360 fi
19361
19362 rm -rf conftest.dSYM
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19366 fi
19367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19368 $as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19369 if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19370 bash_cv_have_socklib=yes
19371 else
19372 bash_cv_have_socklib=no
19373 fi
19374
19375 fi
19376
19377 if test "X$_bash_needmsg" = Xyes; then
19378 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19379 $as_echo "$bash_cv_have_socklib" >&6; }
19380 _bash_needmsg=
19381 fi
19382 if test $bash_cv_have_socklib = yes; then
19383 # check for libnsl, add it to LIBS if present
19384 if test "X$bash_cv_have_libnsl" = "X"; then
19385 _bash_needmsg=
19386 else
19387 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19388 $as_echo_n "checking for libnsl... " >&6; }
19389 _bash_needmsg=yes
19390 fi
19391 if test "${bash_cv_have_libnsl+set}" = set; then
19392 $as_echo_n "(cached) " >&6
19393 else
19394 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19395 $as_echo_n "checking for t_open in -lnsl... " >&6; }
19396 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19397 $as_echo_n "(cached) " >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lnsl $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19411 #ifdef __cplusplus
19412 extern "C"
19413 #endif
19414 char t_open ();
19415 int
19416 main ()
19417 {
19418 return t_open ();
19419 ;
19420 return 0;
19421 }
19422 _ACEOF
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430 $as_echo "$ac_try_echo") >&5
19431 (eval "$ac_link") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext && {
19441 test "$cross_compiling" = yes ||
19442 $as_test_x conftest$ac_exeext
19443 }; then
19444 ac_cv_lib_nsl_t_open=yes
19445 else
19446 $as_echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_lib_nsl_t_open=no
19450 fi
19451
19452 rm -rf conftest.dSYM
19453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454 conftest$ac_exeext conftest.$ac_ext
19455 LIBS=$ac_check_lib_save_LIBS
19456 fi
19457 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19458 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19459 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19460 bash_cv_have_libnsl=yes
19461 else
19462 bash_cv_have_libnsl=no
19463 fi
19464
19465 fi
19466
19467 if test "X$_bash_needmsg" = Xyes; then
19468 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19469 $as_echo "$bash_cv_have_libnsl" >&6; }
19470 _bash_needmsg=
19471 fi
19472 if test $bash_cv_have_libnsl = yes; then
19473 LIBS="-lsocket -lnsl $LIBS"
19474 else
19475 LIBS="-lsocket $LIBS"
19476 fi
19477 cat >>confdefs.h <<\_ACEOF
19478 @%:@define HAVE_LIBSOCKET 1
19479 _ACEOF
19480
19481 cat >>confdefs.h <<\_ACEOF
19482 @%:@define HAVE_GETPEERNAME 1
19483 _ACEOF
19484
19485 fi
19486
19487 fi
19488 if test "$ac_cv_func_gethostbyname" = no; then
19489 if test "X$bash_cv_have_gethostbyname" = "X"; then
19490 _bash_needmsg=yes
19491 else
19492 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19493 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19494 _bash_needmsg=
19495 fi
19496 if test "${bash_cv_have_gethostbyname+set}" = set; then
19497 $as_echo_n "(cached) " >&6
19498 else
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 #include <netdb.h>
19506 int
19507 main ()
19508 {
19509 struct hostent *hp;
19510 hp = gethostbyname("localhost");
19511
19512 ;
19513 return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19521 esac
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524 (eval "$ac_link") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext && {
19534 test "$cross_compiling" = yes ||
19535 $as_test_x conftest$ac_exeext
19536 }; then
19537 bash_cv_have_gethostbyname=yes
19538 else
19539 $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 bash_cv_have_gethostbyname=no
19543 fi
19544
19545 rm -rf conftest.dSYM
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547 conftest$ac_exeext conftest.$ac_ext
19548
19549 fi
19550
19551 if test "X$_bash_needmsg" = Xyes; then
19552 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19553 $as_echo_n "checking for gethostbyname in socket library... " >&6; }
19554 fi
19555 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19556 $as_echo "$bash_cv_have_gethostbyname" >&6; }
19557 if test "$bash_cv_have_gethostbyname" = yes; then
19558 cat >>confdefs.h <<\_ACEOF
19559 @%:@define HAVE_GETHOSTBYNAME 1
19560 _ACEOF
19561
19562 fi
19563
19564 fi
19565
19566 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19567 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19568 if test "${ac_cv_type_uid_t+set}" = set; then
19569 $as_echo_n "(cached) " >&6
19570 else
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h. */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 #include <sys/types.h>
19578
19579 _ACEOF
19580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19581 $EGREP "uid_t" >/dev/null 2>&1; then
19582 ac_cv_type_uid_t=yes
19583 else
19584 ac_cv_type_uid_t=no
19585 fi
19586 rm -f conftest*
19587
19588 fi
19589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19590 $as_echo "$ac_cv_type_uid_t" >&6; }
19591 if test $ac_cv_type_uid_t = no; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 @%:@define uid_t int
19595 _ACEOF
19596
19597
19598 cat >>confdefs.h <<\_ACEOF
19599 @%:@define gid_t int
19600 _ACEOF
19601
19602 fi
19603
19604 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19605 $as_echo_n "checking type of array argument to getgroups... " >&6; }
19606 if test "${ac_cv_type_getgroups+set}" = set; then
19607 $as_echo_n "(cached) " >&6
19608 else
19609 if test "$cross_compiling" = yes; then
19610 ac_cv_type_getgroups=cross
19611 else
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h. */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 /* Thanks to Mike Rendell for this test. */
19619 $ac_includes_default
19620 #define NGID 256
19621 #undef MAX
19622 #define MAX(x, y) ((x) > (y) ? (x) : (y))
19623
19624 int
19625 main ()
19626 {
19627 gid_t gidset[NGID];
19628 int i, n;
19629 union { gid_t gval; long int lval; } val;
19630
19631 val.lval = -1;
19632 for (i = 0; i < NGID; i++)
19633 gidset[i] = val.gval;
19634 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19635 gidset);
19636 /* Exit non-zero if getgroups seems to require an array of ints. This
19637 happens when gid_t is short int but getgroups modifies an array
19638 of ints. */
19639 return n > 0 && gidset[n] != val.gval;
19640 }
19641 _ACEOF
19642 rm -f conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647 esac
19648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19649 $as_echo "$ac_try_echo") >&5
19650 (eval "$ac_link") 2>&5
19651 ac_status=$?
19652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19654 { (case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19659 $as_echo "$ac_try_echo") >&5
19660 (eval "$ac_try") 2>&5
19661 ac_status=$?
19662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_type_getgroups=gid_t
19665 else
19666 $as_echo "$as_me: program exited with status $ac_status" >&5
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ( exit $ac_status )
19671 ac_cv_type_getgroups=int
19672 fi
19673 rm -rf conftest.dSYM
19674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19675 fi
19676
19677
19678 if test $ac_cv_type_getgroups = cross; then
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <unistd.h>
19686
19687 _ACEOF
19688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19689 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19690 ac_cv_type_getgroups=gid_t
19691 else
19692 ac_cv_type_getgroups=int
19693 fi
19694 rm -f conftest*
19695
19696 fi
19697 fi
19698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19699 $as_echo "$ac_cv_type_getgroups" >&6; }
19700
19701 cat >>confdefs.h <<_ACEOF
19702 @%:@define GETGROUPS_T $ac_cv_type_getgroups
19703 _ACEOF
19704
19705
19706 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
19707 $as_echo_n "checking for off_t... " >&6; }
19708 if test "${ac_cv_type_off_t+set}" = set; then
19709 $as_echo_n "(cached) " >&6
19710 else
19711 ac_cv_type_off_t=no
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h. */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 $ac_includes_default
19719 int
19720 main ()
19721 {
19722 if (sizeof (off_t))
19723 return 0;
19724 ;
19725 return 0;
19726 }
19727 _ACEOF
19728 rm -f conftest.$ac_objext
19729 if { (ac_try="$ac_compile"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19735 $as_echo "$ac_try_echo") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && {
19743 test -z "$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 } && test -s conftest.$ac_objext; then
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h. */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19753 int
19754 main ()
19755 {
19756 if (sizeof ((off_t)))
19757 return 0;
19758 ;
19759 return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767 esac
19768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19769 $as_echo "$ac_try_echo") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest.$ac_objext; then
19780 :
19781 else
19782 $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785 ac_cv_type_off_t=yes
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19789 else
19790 $as_echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793
19794 fi
19795
19796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 fi
19798 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19799 $as_echo "$ac_cv_type_off_t" >&6; }
19800 if test "x$ac_cv_type_off_t" = x""yes; then
19801 :
19802 else
19803
19804 cat >>confdefs.h <<_ACEOF
19805 @%:@define off_t long int
19806 _ACEOF
19807
19808 fi
19809
19810 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19811 $as_echo_n "checking for mode_t... " >&6; }
19812 if test "${ac_cv_type_mode_t+set}" = set; then
19813 $as_echo_n "(cached) " >&6
19814 else
19815 ac_cv_type_mode_t=no
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 $ac_includes_default
19823 int
19824 main ()
19825 {
19826 if (sizeof (mode_t))
19827 return 0;
19828 ;
19829 return 0;
19830 }
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837 esac
19838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19839 $as_echo "$ac_try_echo") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest.$ac_objext; then
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h. */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19857 int
19858 main ()
19859 {
19860 if (sizeof ((mode_t)))
19861 return 0;
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19873 $as_echo "$ac_try_echo") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19884 :
19885 else
19886 $as_echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_type_mode_t=yes
19890 fi
19891
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893 else
19894 $as_echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897
19898 fi
19899
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 fi
19902 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19903 $as_echo "$ac_cv_type_mode_t" >&6; }
19904 if test "x$ac_cv_type_mode_t" = x""yes; then
19905 :
19906 else
19907
19908 cat >>confdefs.h <<_ACEOF
19909 @%:@define mode_t int
19910 _ACEOF
19911
19912 fi
19913
19914 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19915 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19916 if test "${ac_cv_type_uid_t+set}" = set; then
19917 $as_echo_n "(cached) " >&6
19918 else
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h. */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <sys/types.h>
19926
19927 _ACEOF
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929 $EGREP "uid_t" >/dev/null 2>&1; then
19930 ac_cv_type_uid_t=yes
19931 else
19932 ac_cv_type_uid_t=no
19933 fi
19934 rm -f conftest*
19935
19936 fi
19937 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19938 $as_echo "$ac_cv_type_uid_t" >&6; }
19939 if test $ac_cv_type_uid_t = no; then
19940
19941 cat >>confdefs.h <<\_ACEOF
19942 @%:@define uid_t int
19943 _ACEOF
19944
19945
19946 cat >>confdefs.h <<\_ACEOF
19947 @%:@define gid_t int
19948 _ACEOF
19949
19950 fi
19951
19952 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19953 $as_echo_n "checking for pid_t... " >&6; }
19954 if test "${ac_cv_type_pid_t+set}" = set; then
19955 $as_echo_n "(cached) " >&6
19956 else
19957 ac_cv_type_pid_t=no
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 $ac_includes_default
19965 int
19966 main ()
19967 {
19968 if (sizeof (pid_t))
19969 return 0;
19970 ;
19971 return 0;
19972 }
19973 _ACEOF
19974 rm -f conftest.$ac_objext
19975 if { (ac_try="$ac_compile"
19976 case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19979 esac
19980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19981 $as_echo "$ac_try_echo") >&5
19982 (eval "$ac_compile") 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest.$ac_objext; then
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
19999 int
20000 main ()
20001 {
20002 if (sizeof ((pid_t)))
20003 return 0;
20004 ;
20005 return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext
20009 if { (ac_try="$ac_compile"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013 esac
20014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015 $as_echo "$ac_try_echo") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 :
20027 else
20028 $as_echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 ac_cv_type_pid_t=yes
20032 fi
20033
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 else
20036 $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039
20040 fi
20041
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043 fi
20044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20045 $as_echo "$ac_cv_type_pid_t" >&6; }
20046 if test "x$ac_cv_type_pid_t" = x""yes; then
20047 :
20048 else
20049
20050 cat >>confdefs.h <<_ACEOF
20051 @%:@define pid_t int
20052 _ACEOF
20053
20054 fi
20055
20056 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20057 $as_echo_n "checking for size_t... " >&6; }
20058 if test "${ac_cv_type_size_t+set}" = set; then
20059 $as_echo_n "(cached) " >&6
20060 else
20061 ac_cv_type_size_t=no
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 $ac_includes_default
20069 int
20070 main ()
20071 {
20072 if (sizeof (size_t))
20073 return 0;
20074 ;
20075 return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext
20079 if { (ac_try="$ac_compile"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20085 $as_echo "$ac_try_echo") >&5
20086 (eval "$ac_compile") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest.$ac_objext; then
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 $ac_includes_default
20103 int
20104 main ()
20105 {
20106 if (sizeof ((size_t)))
20107 return 0;
20108 ;
20109 return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (ac_try="$ac_compile"
20114 case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20117 esac
20118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20119 $as_echo "$ac_try_echo") >&5
20120 (eval "$ac_compile") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest.$ac_objext; then
20130 :
20131 else
20132 $as_echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20134
20135 ac_cv_type_size_t=yes
20136 fi
20137
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139 else
20140 $as_echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143
20144 fi
20145
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 fi
20148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20149 $as_echo "$ac_cv_type_size_t" >&6; }
20150 if test "x$ac_cv_type_size_t" = x""yes; then
20151 :
20152 else
20153
20154 cat >>confdefs.h <<_ACEOF
20155 @%:@define size_t unsigned int
20156 _ACEOF
20157
20158 fi
20159
20160 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20161 $as_echo_n "checking for ssize_t... " >&6; }
20162 if test "${ac_cv_type_ssize_t+set}" = set; then
20163 $as_echo_n "(cached) " >&6
20164 else
20165 ac_cv_type_ssize_t=no
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h. */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20173 int
20174 main ()
20175 {
20176 if (sizeof (ssize_t))
20177 return 0;
20178 ;
20179 return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20189 $as_echo "$ac_try_echo") >&5
20190 (eval "$ac_compile") 2>conftest.er1
20191 ac_status=$?
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
20195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest.$ac_objext; then
20200 cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h. */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20206 $ac_includes_default
20207 int
20208 main ()
20209 {
20210 if (sizeof ((ssize_t)))
20211 return 0;
20212 ;
20213 return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20223 $as_echo "$ac_try_echo") >&5
20224 (eval "$ac_compile") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && {
20231 test -z "$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 } && test -s conftest.$ac_objext; then
20234 :
20235 else
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 ac_cv_type_ssize_t=yes
20240 fi
20241
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 else
20244 $as_echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247
20248 fi
20249
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 fi
20252 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20253 $as_echo "$ac_cv_type_ssize_t" >&6; }
20254 if test "x$ac_cv_type_ssize_t" = x""yes; then
20255 :
20256 else
20257
20258 cat >>confdefs.h <<_ACEOF
20259 @%:@define ssize_t int
20260 _ACEOF
20261
20262 fi
20263
20264 { $as_echo "$as_me:$LINENO: checking for time_t" >&5
20265 $as_echo_n "checking for time_t... " >&6; }
20266 if test "${ac_cv_type_time_t+set}" = set; then
20267 $as_echo_n "(cached) " >&6
20268 else
20269 ac_cv_type_time_t=no
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 $ac_includes_default
20277 int
20278 main ()
20279 {
20280 if (sizeof (time_t))
20281 return 0;
20282 ;
20283 return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291 esac
20292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20293 $as_echo "$ac_try_echo") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest.$ac_objext; then
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20311 int
20312 main ()
20313 {
20314 if (sizeof ((time_t)))
20315 return 0;
20316 ;
20317 return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325 esac
20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20327 $as_echo "$ac_try_echo") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest.$ac_objext; then
20338 :
20339 else
20340 $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 ac_cv_type_time_t=yes
20344 fi
20345
20346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20347 else
20348 $as_echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351
20352 fi
20353
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355 fi
20356 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20357 $as_echo "$ac_cv_type_time_t" >&6; }
20358 if test "x$ac_cv_type_time_t" = x""yes; then
20359 :
20360 else
20361
20362 cat >>confdefs.h <<_ACEOF
20363 @%:@define time_t long
20364 _ACEOF
20365
20366 fi
20367
20368
20369
20370 { $as_echo "$as_me:$LINENO: checking for long long" >&5
20371 $as_echo_n "checking for long long... " >&6; }
20372 if test "${bash_cv_type_long_long+set}" = set; then
20373 $as_echo_n "(cached) " >&6
20374 else
20375 cat >conftest.$ac_ext <<_ACEOF
20376 /* confdefs.h. */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381
20382 long long ll = 1; int i = 63;
20383 int
20384 main ()
20385 {
20386
20387 long long llm = (long long) -1;
20388 return ll << i | ll >> i | llm / ll | llm % ll;
20389
20390 ;
20391 return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20399 esac
20400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20401 $as_echo "$ac_try_echo") >&5
20402 (eval "$ac_link") 2>conftest.er1
20403 ac_status=$?
20404 grep -v '^ *+' conftest.er1 >conftest.err
20405 rm -f conftest.er1
20406 cat conftest.err >&5
20407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest$ac_exeext && {
20412 test "$cross_compiling" = yes ||
20413 $as_test_x conftest$ac_exeext
20414 }; then
20415 bash_cv_type_long_long='long long'
20416 else
20417 $as_echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420 bash_cv_type_long_long='long'
20421 fi
20422
20423 rm -rf conftest.dSYM
20424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20425 conftest$ac_exeext conftest.$ac_ext
20426 fi
20427 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20428 $as_echo "$bash_cv_type_long_long" >&6; }
20429 if test "$bash_cv_type_long_long" = 'long long'; then
20430 cat >>confdefs.h <<\_ACEOF
20431 @%:@define HAVE_LONG_LONG 1
20432 _ACEOF
20433
20434 fi
20435
20436
20437 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20438 $as_echo_n "checking for unsigned long long... " >&6; }
20439 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
20440 $as_echo_n "(cached) " >&6
20441 else
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448
20449 unsigned long long ull = 1; int i = 63;
20450 int
20451 main ()
20452 {
20453
20454 unsigned long long ullmax = (unsigned long long) -1;
20455 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20456
20457 ;
20458 return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20466 esac
20467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20468 $as_echo "$ac_try_echo") >&5
20469 (eval "$ac_link") 2>conftest.er1
20470 ac_status=$?
20471 grep -v '^ *+' conftest.er1 >conftest.err
20472 rm -f conftest.er1
20473 cat conftest.err >&5
20474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && {
20476 test -z "$ac_c_werror_flag" ||
20477 test ! -s conftest.err
20478 } && test -s conftest$ac_exeext && {
20479 test "$cross_compiling" = yes ||
20480 $as_test_x conftest$ac_exeext
20481 }; then
20482 bash_cv_type_unsigned_long_long='unsigned long long'
20483 else
20484 $as_echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 bash_cv_type_unsigned_long_long='unsigned long'
20488 fi
20489
20490 rm -rf conftest.dSYM
20491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20492 conftest$ac_exeext conftest.$ac_ext
20493 fi
20494 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20495 $as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20496 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20497 cat >>confdefs.h <<\_ACEOF
20498 @%:@define HAVE_UNSIGNED_LONG_LONG 1
20499 _ACEOF
20500
20501 fi
20502
20503
20504 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20505 $as_echo_n "checking return type of signal handlers... " >&6; }
20506 if test "${ac_cv_type_signal+set}" = set; then
20507 $as_echo_n "(cached) " >&6
20508 else
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #include <sys/types.h>
20516 #include <signal.h>
20517
20518 int
20519 main ()
20520 {
20521 return *(signal (0, 0)) (0) == 1;
20522 ;
20523 return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20533 $as_echo "$ac_try_echo") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 ac_cv_type_signal=int
20545 else
20546 $as_echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv_type_signal=void
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553 fi
20554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20555 $as_echo "$ac_cv_type_signal" >&6; }
20556
20557 cat >>confdefs.h <<_ACEOF
20558 @%:@define RETSIGTYPE $ac_cv_type_signal
20559 _ACEOF
20560
20561
20562 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20563 $as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20564 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20565 $as_echo_n "(cached) " >&6
20566 else
20567 cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573
20574 #include <signal.h>
20575
20576 int
20577 main ()
20578 {
20579 sig_atomic_t x;
20580 ;
20581 return 0;
20582 }
20583 _ACEOF
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (ac_try="$ac_link"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20591 $as_echo "$ac_try_echo") >&5
20592 (eval "$ac_link") 2>conftest.er1
20593 ac_status=$?
20594 grep -v '^ *+' conftest.er1 >conftest.err
20595 rm -f conftest.er1
20596 cat conftest.err >&5
20597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest$ac_exeext && {
20602 test "$cross_compiling" = yes ||
20603 $as_test_x conftest$ac_exeext
20604 }; then
20605 ac_cv_have_sig_atomic_t=yes
20606 else
20607 $as_echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 ac_cv_have_sig_atomic_t=no
20611 fi
20612
20613 rm -rf conftest.dSYM
20614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20615 conftest$ac_exeext conftest.$ac_ext
20616 fi
20617 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20618 $as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20619 if test "$ac_cv_have_sig_atomic_t" = "no"
20620 then
20621 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20622 $as_echo_n "checking for sig_atomic_t... " >&6; }
20623 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20624 $as_echo_n "(cached) " >&6
20625 else
20626 ac_cv_type_sig_atomic_t=no
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h. */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 $ac_includes_default
20634 int
20635 main ()
20636 {
20637 if (sizeof (sig_atomic_t))
20638 return 0;
20639 ;
20640 return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651 (eval "$ac_compile") 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest.$ac_objext; then
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h. */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 $ac_includes_default
20668 int
20669 main ()
20670 {
20671 if (sizeof ((sig_atomic_t)))
20672 return 0;
20673 ;
20674 return 0;
20675 }
20676 _ACEOF
20677 rm -f conftest.$ac_objext
20678 if { (ac_try="$ac_compile"
20679 case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682 esac
20683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20684 $as_echo "$ac_try_echo") >&5
20685 (eval "$ac_compile") 2>conftest.er1
20686 ac_status=$?
20687 grep -v '^ *+' conftest.er1 >conftest.err
20688 rm -f conftest.er1
20689 cat conftest.err >&5
20690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } && {
20692 test -z "$ac_c_werror_flag" ||
20693 test ! -s conftest.err
20694 } && test -s conftest.$ac_objext; then
20695 :
20696 else
20697 $as_echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 ac_cv_type_sig_atomic_t=yes
20701 fi
20702
20703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 else
20705 $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708
20709 fi
20710
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712 fi
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20714 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20715 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20716 :
20717 else
20718
20719 cat >>confdefs.h <<_ACEOF
20720 @%:@define sig_atomic_t int
20721 _ACEOF
20722
20723 fi
20724
20725 fi
20726
20727
20728 # The cast to long int works around a bug in the HP C Compiler
20729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20731 # This bug is HP SR number 8606223364.
20732 { $as_echo "$as_me:$LINENO: checking size of char" >&5
20733 $as_echo_n "checking size of char... " >&6; }
20734 if test "${ac_cv_sizeof_char+set}" = set; then
20735 $as_echo_n "(cached) " >&6
20736 else
20737 if test "$cross_compiling" = yes; then
20738 # Depending upon the size, compute the lo and hi bounds.
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h. */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 $ac_includes_default
20746 int
20747 main ()
20748 {
20749 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= 0)@:>@;
20750 test_array @<:@0@:>@ = 0
20751
20752 ;
20753 return 0;
20754 }
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (ac_try="$ac_compile"
20758 case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761 esac
20762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20763 $as_echo "$ac_try_echo") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20774 ac_lo=0 ac_mid=0
20775 while :; do
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h. */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 $ac_includes_default
20783 int
20784 main ()
20785 {
20786 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@;
20787 test_array @<:@0@:>@ = 0
20788
20789 ;
20790 return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_compile") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest.$ac_objext; then
20811 ac_hi=$ac_mid; break
20812 else
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ac_lo=`expr $ac_mid + 1`
20817 if test $ac_lo -le $ac_mid; then
20818 ac_lo= ac_hi=
20819 break
20820 fi
20821 ac_mid=`expr 2 '*' $ac_mid + 1`
20822 fi
20823
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825 done
20826 else
20827 $as_echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20837 int
20838 main ()
20839 {
20840 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) < 0)@:>@;
20841 test_array @<:@0@:>@ = 0
20842
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852 esac
20853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20854 $as_echo "$ac_try_echo") >&5
20855 (eval "$ac_compile") 2>conftest.er1
20856 ac_status=$?
20857 grep -v '^ *+' conftest.er1 >conftest.err
20858 rm -f conftest.er1
20859 cat conftest.err >&5
20860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest.$ac_objext; then
20865 ac_hi=-1 ac_mid=-1
20866 while :; do
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 int
20875 main ()
20876 {
20877 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)@:>@;
20878 test_array @<:@0@:>@ = 0
20879
20880 ;
20881 return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (ac_try="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20889 esac
20890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20891 $as_echo "$ac_try_echo") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20902 ac_lo=$ac_mid; break
20903 else
20904 $as_echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 ac_hi=`expr '(' $ac_mid ')' - 1`
20908 if test $ac_mid -le $ac_hi; then
20909 ac_lo= ac_hi=
20910 break
20911 fi
20912 ac_mid=`expr 2 '*' $ac_mid`
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 done
20917 else
20918 $as_echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 ac_lo= ac_hi=
20922 fi
20923
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925 fi
20926
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 # Binary search between lo and hi bounds.
20929 while test "x$ac_lo" != "x$ac_hi"; do
20930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20938 int
20939 main ()
20940 {
20941 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@;
20942 test_array @<:@0@:>@ = 0
20943
20944 ;
20945 return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 ac_hi=$ac_mid
20967 else
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 ac_lo=`expr '(' $ac_mid ')' + 1`
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 done
20976 case $ac_lo in
20977 ?*) ac_cv_sizeof_char=$ac_lo;;
20978 '') if test "$ac_cv_type_char" = yes; then
20979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20981 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20982 See \`config.log' for more details." >&5
20983 $as_echo "$as_me: error: cannot compute sizeof (char)
20984 See \`config.log' for more details." >&2;}
20985 { (exit 77); exit 77; }; }; }
20986 else
20987 ac_cv_sizeof_char=0
20988 fi ;;
20989 esac
20990 else
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h. */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 $ac_includes_default
20998 static long int longval () { return (long int) (sizeof (char)); }
20999 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
21000 @%:@include <stdio.h>
21001 @%:@include <stdlib.h>
21002 int
21003 main ()
21004 {
21005
21006 FILE *f = fopen ("conftest.val", "w");
21007 if (! f)
21008 return 1;
21009 if (((long int) (sizeof (char))) < 0)
21010 {
21011 long int i = longval ();
21012 if (i != ((long int) (sizeof (char))))
21013 return 1;
21014 fprintf (f, "%ld", i);
21015 }
21016 else
21017 {
21018 unsigned long int i = ulongval ();
21019 if (i != ((long int) (sizeof (char))))
21020 return 1;
21021 fprintf (f, "%lu", i);
21022 }
21023 /* Do not output a trailing newline, as this causes \r\n confusion
21024 on some platforms. */
21025 return ferror (f) || fclose (f) != 0;
21026
21027 ;
21028 return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036 esac
21037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21038 $as_echo "$ac_try_echo") >&5
21039 (eval "$ac_link") 2>&5
21040 ac_status=$?
21041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046 esac
21047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21048 $as_echo "$ac_try_echo") >&5
21049 (eval "$ac_try") 2>&5
21050 ac_status=$?
21051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_sizeof_char=`cat conftest.val`
21054 else
21055 $as_echo "$as_me: program exited with status $ac_status" >&5
21056 $as_echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ( exit $ac_status )
21060 if test "$ac_cv_type_char" = yes; then
21061 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21063 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21064 See \`config.log' for more details." >&5
21065 $as_echo "$as_me: error: cannot compute sizeof (char)
21066 See \`config.log' for more details." >&2;}
21067 { (exit 77); exit 77; }; }; }
21068 else
21069 ac_cv_sizeof_char=0
21070 fi
21071 fi
21072 rm -rf conftest.dSYM
21073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21074 fi
21075 rm -f conftest.val
21076 fi
21077 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21078 $as_echo "$ac_cv_sizeof_char" >&6; }
21079
21080
21081
21082 cat >>confdefs.h <<_ACEOF
21083 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
21084 _ACEOF
21085
21086
21087 # The cast to long int works around a bug in the HP C Compiler
21088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21090 # This bug is HP SR number 8606223364.
21091 { $as_echo "$as_me:$LINENO: checking size of short" >&5
21092 $as_echo_n "checking size of short... " >&6; }
21093 if test "${ac_cv_sizeof_short+set}" = set; then
21094 $as_echo_n "(cached) " >&6
21095 else
21096 if test "$cross_compiling" = yes; then
21097 # Depending upon the size, compute the lo and hi bounds.
21098 cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h. */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 $ac_includes_default
21105 int
21106 main ()
21107 {
21108 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= 0)@:>@;
21109 test_array @<:@0@:>@ = 0
21110
21111 ;
21112 return 0;
21113 }
21114 _ACEOF
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120 esac
21121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21122 $as_echo "$ac_try_echo") >&5
21123 (eval "$ac_compile") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && {
21130 test -z "$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 } && test -s conftest.$ac_objext; then
21133 ac_lo=0 ac_mid=0
21134 while :; do
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h. */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 $ac_includes_default
21142 int
21143 main ()
21144 {
21145 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
21146 test_array @<:@0@:>@ = 0
21147
21148 ;
21149 return 0;
21150 }
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21157 esac
21158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21159 $as_echo "$ac_try_echo") >&5
21160 (eval "$ac_compile") 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } && {
21167 test -z "$ac_c_werror_flag" ||
21168 test ! -s conftest.err
21169 } && test -s conftest.$ac_objext; then
21170 ac_hi=$ac_mid; break
21171 else
21172 $as_echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_lo=`expr $ac_mid + 1`
21176 if test $ac_lo -le $ac_mid; then
21177 ac_lo= ac_hi=
21178 break
21179 fi
21180 ac_mid=`expr 2 '*' $ac_mid + 1`
21181 fi
21182
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184 done
21185 else
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h. */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 $ac_includes_default
21196 int
21197 main ()
21198 {
21199 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) < 0)@:>@;
21200 test_array @<:@0@:>@ = 0
21201
21202 ;
21203 return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21213 $as_echo "$ac_try_echo") >&5
21214 (eval "$ac_compile") 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && {
21221 test -z "$ac_c_werror_flag" ||
21222 test ! -s conftest.err
21223 } && test -s conftest.$ac_objext; then
21224 ac_hi=-1 ac_mid=-1
21225 while :; do
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 int
21234 main ()
21235 {
21236 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)@:>@;
21237 test_array @<:@0@:>@ = 0
21238
21239 ;
21240 return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21248 esac
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_lo=$ac_mid; break
21262 else
21263 $as_echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266 ac_hi=`expr '(' $ac_mid ')' - 1`
21267 if test $ac_mid -le $ac_hi; then
21268 ac_lo= ac_hi=
21269 break
21270 fi
21271 ac_mid=`expr 2 '*' $ac_mid`
21272 fi
21273
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 done
21276 else
21277 $as_echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280 ac_lo= ac_hi=
21281 fi
21282
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 fi
21285
21286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 # Binary search between lo and hi bounds.
21288 while test "x$ac_lo" != "x$ac_hi"; do
21289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21297 int
21298 main ()
21299 {
21300 static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
21301 test_array @<:@0@:>@ = 0
21302
21303 ;
21304 return 0;
21305 }
21306 _ACEOF
21307 rm -f conftest.$ac_objext
21308 if { (ac_try="$ac_compile"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312 esac
21313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_hi=$ac_mid
21326 else
21327 $as_echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_lo=`expr '(' $ac_mid ')' + 1`
21331 fi
21332
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 done
21335 case $ac_lo in
21336 ?*) ac_cv_sizeof_short=$ac_lo;;
21337 '') if test "$ac_cv_type_short" = yes; then
21338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21340 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21341 See \`config.log' for more details." >&5
21342 $as_echo "$as_me: error: cannot compute sizeof (short)
21343 See \`config.log' for more details." >&2;}
21344 { (exit 77); exit 77; }; }; }
21345 else
21346 ac_cv_sizeof_short=0
21347 fi ;;
21348 esac
21349 else
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h. */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 $ac_includes_default
21357 static long int longval () { return (long int) (sizeof (short)); }
21358 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21359 @%:@include <stdio.h>
21360 @%:@include <stdlib.h>
21361 int
21362 main ()
21363 {
21364
21365 FILE *f = fopen ("conftest.val", "w");
21366 if (! f)
21367 return 1;
21368 if (((long int) (sizeof (short))) < 0)
21369 {
21370 long int i = longval ();
21371 if (i != ((long int) (sizeof (short))))
21372 return 1;
21373 fprintf (f, "%ld", i);
21374 }
21375 else
21376 {
21377 unsigned long int i = ulongval ();
21378 if (i != ((long int) (sizeof (short))))
21379 return 1;
21380 fprintf (f, "%lu", i);
21381 }
21382 /* Do not output a trailing newline, as this causes \r\n confusion
21383 on some platforms. */
21384 return ferror (f) || fclose (f) != 0;
21385
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest$ac_exeext
21391 if { (ac_try="$ac_link"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21395 esac
21396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21397 $as_echo "$ac_try_echo") >&5
21398 (eval "$ac_link") 2>&5
21399 ac_status=$?
21400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21402 { (case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21405 esac
21406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21407 $as_echo "$ac_try_echo") >&5
21408 (eval "$ac_try") 2>&5
21409 ac_status=$?
21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ac_cv_sizeof_short=`cat conftest.val`
21413 else
21414 $as_echo "$as_me: program exited with status $ac_status" >&5
21415 $as_echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418 ( exit $ac_status )
21419 if test "$ac_cv_type_short" = yes; then
21420 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21422 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21423 See \`config.log' for more details." >&5
21424 $as_echo "$as_me: error: cannot compute sizeof (short)
21425 See \`config.log' for more details." >&2;}
21426 { (exit 77); exit 77; }; }; }
21427 else
21428 ac_cv_sizeof_short=0
21429 fi
21430 fi
21431 rm -rf conftest.dSYM
21432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21433 fi
21434 rm -f conftest.val
21435 fi
21436 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21437 $as_echo "$ac_cv_sizeof_short" >&6; }
21438
21439
21440
21441 cat >>confdefs.h <<_ACEOF
21442 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
21443 _ACEOF
21444
21445
21446 # The cast to long int works around a bug in the HP C Compiler
21447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21449 # This bug is HP SR number 8606223364.
21450 { $as_echo "$as_me:$LINENO: checking size of int" >&5
21451 $as_echo_n "checking size of int... " >&6; }
21452 if test "${ac_cv_sizeof_int+set}" = set; then
21453 $as_echo_n "(cached) " >&6
21454 else
21455 if test "$cross_compiling" = yes; then
21456 # Depending upon the size, compute the lo and hi bounds.
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h. */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 $ac_includes_default
21464 int
21465 main ()
21466 {
21467 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
21468 test_array @<:@0@:>@ = 0
21469
21470 ;
21471 return 0;
21472 }
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21481 $as_echo "$ac_try_echo") >&5
21482 (eval "$ac_compile") 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } && {
21489 test -z "$ac_c_werror_flag" ||
21490 test ! -s conftest.err
21491 } && test -s conftest.$ac_objext; then
21492 ac_lo=0 ac_mid=0
21493 while :; do
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h. */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 $ac_includes_default
21501 int
21502 main ()
21503 {
21504 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
21505 test_array @<:@0@:>@ = 0
21506
21507 ;
21508 return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext
21512 if { (ac_try="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516 esac
21517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21518 $as_echo "$ac_try_echo") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21520 ac_status=$?
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
21524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.$ac_objext; then
21529 ac_hi=$ac_mid; break
21530 else
21531 $as_echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534 ac_lo=`expr $ac_mid + 1`
21535 if test $ac_lo -le $ac_mid; then
21536 ac_lo= ac_hi=
21537 break
21538 fi
21539 ac_mid=`expr 2 '*' $ac_mid + 1`
21540 fi
21541
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 done
21544 else
21545 $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h. */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 $ac_includes_default
21555 int
21556 main ()
21557 {
21558 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
21559 test_array @<:@0@:>@ = 0
21560
21561 ;
21562 return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21570 esac
21571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21572 $as_echo "$ac_try_echo") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21583 ac_hi=-1 ac_mid=-1
21584 while :; do
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h. */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21592 int
21593 main ()
21594 {
21595 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
21596 test_array @<:@0@:>@ = 0
21597
21598 ;
21599 return 0;
21600 }
21601 _ACEOF
21602 rm -f conftest.$ac_objext
21603 if { (ac_try="$ac_compile"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21609 $as_echo "$ac_try_echo") >&5
21610 (eval "$ac_compile") 2>conftest.er1
21611 ac_status=$?
21612 grep -v '^ *+' conftest.er1 >conftest.err
21613 rm -f conftest.er1
21614 cat conftest.err >&5
21615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest.$ac_objext; then
21620 ac_lo=$ac_mid; break
21621 else
21622 $as_echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 ac_hi=`expr '(' $ac_mid ')' - 1`
21626 if test $ac_mid -le $ac_hi; then
21627 ac_lo= ac_hi=
21628 break
21629 fi
21630 ac_mid=`expr 2 '*' $ac_mid`
21631 fi
21632
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 done
21635 else
21636 $as_echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ac_lo= ac_hi=
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 fi
21644
21645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21646 # Binary search between lo and hi bounds.
21647 while test "x$ac_lo" != "x$ac_hi"; do
21648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 int
21657 main ()
21658 {
21659 static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
21660 test_array @<:@0@:>@ = 0
21661
21662 ;
21663 return 0;
21664 }
21665 _ACEOF
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671 esac
21672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21673 $as_echo "$ac_try_echo") >&5
21674 (eval "$ac_compile") 2>conftest.er1
21675 ac_status=$?
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
21679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } && {
21681 test -z "$ac_c_werror_flag" ||
21682 test ! -s conftest.err
21683 } && test -s conftest.$ac_objext; then
21684 ac_hi=$ac_mid
21685 else
21686 $as_echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 ac_lo=`expr '(' $ac_mid ')' + 1`
21690 fi
21691
21692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21693 done
21694 case $ac_lo in
21695 ?*) ac_cv_sizeof_int=$ac_lo;;
21696 '') if test "$ac_cv_type_int" = yes; then
21697 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21699 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21700 See \`config.log' for more details." >&5
21701 $as_echo "$as_me: error: cannot compute sizeof (int)
21702 See \`config.log' for more details." >&2;}
21703 { (exit 77); exit 77; }; }; }
21704 else
21705 ac_cv_sizeof_int=0
21706 fi ;;
21707 esac
21708 else
21709 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 $ac_includes_default
21716 static long int longval () { return (long int) (sizeof (int)); }
21717 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21718 @%:@include <stdio.h>
21719 @%:@include <stdlib.h>
21720 int
21721 main ()
21722 {
21723
21724 FILE *f = fopen ("conftest.val", "w");
21725 if (! f)
21726 return 1;
21727 if (((long int) (sizeof (int))) < 0)
21728 {
21729 long int i = longval ();
21730 if (i != ((long int) (sizeof (int))))
21731 return 1;
21732 fprintf (f, "%ld", i);
21733 }
21734 else
21735 {
21736 unsigned long int i = ulongval ();
21737 if (i != ((long int) (sizeof (int))))
21738 return 1;
21739 fprintf (f, "%lu", i);
21740 }
21741 /* Do not output a trailing newline, as this causes \r\n confusion
21742 on some platforms. */
21743 return ferror (f) || fclose (f) != 0;
21744
21745 ;
21746 return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754 esac
21755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21756 $as_echo "$ac_try_echo") >&5
21757 (eval "$ac_link") 2>&5
21758 ac_status=$?
21759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761 { (case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21764 esac
21765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767 (eval "$ac_try") 2>&5
21768 ac_status=$?
21769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_cv_sizeof_int=`cat conftest.val`
21772 else
21773 $as_echo "$as_me: program exited with status $ac_status" >&5
21774 $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 ( exit $ac_status )
21778 if test "$ac_cv_type_int" = yes; then
21779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21781 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21782 See \`config.log' for more details." >&5
21783 $as_echo "$as_me: error: cannot compute sizeof (int)
21784 See \`config.log' for more details." >&2;}
21785 { (exit 77); exit 77; }; }; }
21786 else
21787 ac_cv_sizeof_int=0
21788 fi
21789 fi
21790 rm -rf conftest.dSYM
21791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21792 fi
21793 rm -f conftest.val
21794 fi
21795 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21796 $as_echo "$ac_cv_sizeof_int" >&6; }
21797
21798
21799
21800 cat >>confdefs.h <<_ACEOF
21801 @%:@define SIZEOF_INT $ac_cv_sizeof_int
21802 _ACEOF
21803
21804
21805 # The cast to long int works around a bug in the HP C Compiler
21806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21808 # This bug is HP SR number 8606223364.
21809 { $as_echo "$as_me:$LINENO: checking size of long" >&5
21810 $as_echo_n "checking size of long... " >&6; }
21811 if test "${ac_cv_sizeof_long+set}" = set; then
21812 $as_echo_n "(cached) " >&6
21813 else
21814 if test "$cross_compiling" = yes; then
21815 # Depending upon the size, compute the lo and hi bounds.
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h. */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21823 int
21824 main ()
21825 {
21826 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
21827 test_array @<:@0@:>@ = 0
21828
21829 ;
21830 return 0;
21831 }
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838 esac
21839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21840 $as_echo "$ac_try_echo") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_lo=0 ac_mid=0
21852 while :; do
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21860 int
21861 main ()
21862 {
21863 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
21864 test_array @<:@0@:>@ = 0
21865
21866 ;
21867 return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21875 esac
21876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21877 $as_echo "$ac_try_echo") >&5
21878 (eval "$ac_compile") 2>conftest.er1
21879 ac_status=$?
21880 grep -v '^ *+' conftest.er1 >conftest.err
21881 rm -f conftest.er1
21882 cat conftest.err >&5
21883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } && {
21885 test -z "$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21887 } && test -s conftest.$ac_objext; then
21888 ac_hi=$ac_mid; break
21889 else
21890 $as_echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 ac_lo=`expr $ac_mid + 1`
21894 if test $ac_lo -le $ac_mid; then
21895 ac_lo= ac_hi=
21896 break
21897 fi
21898 ac_mid=`expr 2 '*' $ac_mid + 1`
21899 fi
21900
21901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21902 done
21903 else
21904 $as_echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h. */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 $ac_includes_default
21914 int
21915 main ()
21916 {
21917 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
21918 test_array @<:@0@:>@ = 0
21919
21920 ;
21921 return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21929 esac
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_compile") 2>conftest.er1
21933 ac_status=$?
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && {
21939 test -z "$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 } && test -s conftest.$ac_objext; then
21942 ac_hi=-1 ac_mid=-1
21943 while :; do
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h. */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21951 int
21952 main ()
21953 {
21954 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
21955 test_array @<:@0@:>@ = 0
21956
21957 ;
21958 return 0;
21959 }
21960 _ACEOF
21961 rm -f conftest.$ac_objext
21962 if { (ac_try="$ac_compile"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21968 $as_echo "$ac_try_echo") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21970 ac_status=$?
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
21974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21979 ac_lo=$ac_mid; break
21980 else
21981 $as_echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 ac_hi=`expr '(' $ac_mid ')' - 1`
21985 if test $ac_mid -le $ac_hi; then
21986 ac_lo= ac_hi=
21987 break
21988 fi
21989 ac_mid=`expr 2 '*' $ac_mid`
21990 fi
21991
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993 done
21994 else
21995 $as_echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998 ac_lo= ac_hi=
21999 fi
22000
22001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22002 fi
22003
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 # Binary search between lo and hi bounds.
22006 while test "x$ac_lo" != "x$ac_hi"; do
22007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22008 cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h. */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22014 $ac_includes_default
22015 int
22016 main ()
22017 {
22018 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
22019 test_array @<:@0@:>@ = 0
22020
22021 ;
22022 return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_hi=$ac_mid
22044 else
22045 $as_echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048 ac_lo=`expr '(' $ac_mid ')' + 1`
22049 fi
22050
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 done
22053 case $ac_lo in
22054 ?*) ac_cv_sizeof_long=$ac_lo;;
22055 '') if test "$ac_cv_type_long" = yes; then
22056 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22058 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22059 See \`config.log' for more details." >&5
22060 $as_echo "$as_me: error: cannot compute sizeof (long)
22061 See \`config.log' for more details." >&2;}
22062 { (exit 77); exit 77; }; }; }
22063 else
22064 ac_cv_sizeof_long=0
22065 fi ;;
22066 esac
22067 else
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h. */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 static long int longval () { return (long int) (sizeof (long)); }
22076 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
22077 @%:@include <stdio.h>
22078 @%:@include <stdlib.h>
22079 int
22080 main ()
22081 {
22082
22083 FILE *f = fopen ("conftest.val", "w");
22084 if (! f)
22085 return 1;
22086 if (((long int) (sizeof (long))) < 0)
22087 {
22088 long int i = longval ();
22089 if (i != ((long int) (sizeof (long))))
22090 return 1;
22091 fprintf (f, "%ld", i);
22092 }
22093 else
22094 {
22095 unsigned long int i = ulongval ();
22096 if (i != ((long int) (sizeof (long))))
22097 return 1;
22098 fprintf (f, "%lu", i);
22099 }
22100 /* Do not output a trailing newline, as this causes \r\n confusion
22101 on some platforms. */
22102 return ferror (f) || fclose (f) != 0;
22103
22104 ;
22105 return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22115 $as_echo "$ac_try_echo") >&5
22116 (eval "$ac_link") 2>&5
22117 ac_status=$?
22118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22120 { (case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22125 $as_echo "$ac_try_echo") >&5
22126 (eval "$ac_try") 2>&5
22127 ac_status=$?
22128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_sizeof_long=`cat conftest.val`
22131 else
22132 $as_echo "$as_me: program exited with status $ac_status" >&5
22133 $as_echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136 ( exit $ac_status )
22137 if test "$ac_cv_type_long" = yes; then
22138 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22140 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22141 See \`config.log' for more details." >&5
22142 $as_echo "$as_me: error: cannot compute sizeof (long)
22143 See \`config.log' for more details." >&2;}
22144 { (exit 77); exit 77; }; }; }
22145 else
22146 ac_cv_sizeof_long=0
22147 fi
22148 fi
22149 rm -rf conftest.dSYM
22150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22151 fi
22152 rm -f conftest.val
22153 fi
22154 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22155 $as_echo "$ac_cv_sizeof_long" >&6; }
22156
22157
22158
22159 cat >>confdefs.h <<_ACEOF
22160 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
22161 _ACEOF
22162
22163
22164 # The cast to long int works around a bug in the HP C Compiler
22165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22167 # This bug is HP SR number 8606223364.
22168 { $as_echo "$as_me:$LINENO: checking size of char *" >&5
22169 $as_echo_n "checking size of char *... " >&6; }
22170 if test "${ac_cv_sizeof_char_p+set}" = set; then
22171 $as_echo_n "(cached) " >&6
22172 else
22173 if test "$cross_compiling" = yes; then
22174 # Depending upon the size, compute the lo and hi bounds.
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h. */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 $ac_includes_default
22182 int
22183 main ()
22184 {
22185 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= 0)@:>@;
22186 test_array @<:@0@:>@ = 0
22187
22188 ;
22189 return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22197 esac
22198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22199 $as_echo "$ac_try_echo") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 ac_lo=0 ac_mid=0
22211 while :; do
22212 cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h. */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 $ac_includes_default
22219 int
22220 main ()
22221 {
22222 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@;
22223 test_array @<:@0@:>@ = 0
22224
22225 ;
22226 return 0;
22227 }
22228 _ACEOF
22229 rm -f conftest.$ac_objext
22230 if { (ac_try="$ac_compile"
22231 case "(($ac_try" in
22232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22233 *) ac_try_echo=$ac_try;;
22234 esac
22235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22236 $as_echo "$ac_try_echo") >&5
22237 (eval "$ac_compile") 2>conftest.er1
22238 ac_status=$?
22239 grep -v '^ *+' conftest.er1 >conftest.err
22240 rm -f conftest.er1
22241 cat conftest.err >&5
22242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } && {
22244 test -z "$ac_c_werror_flag" ||
22245 test ! -s conftest.err
22246 } && test -s conftest.$ac_objext; then
22247 ac_hi=$ac_mid; break
22248 else
22249 $as_echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22251
22252 ac_lo=`expr $ac_mid + 1`
22253 if test $ac_lo -le $ac_mid; then
22254 ac_lo= ac_hi=
22255 break
22256 fi
22257 ac_mid=`expr 2 '*' $ac_mid + 1`
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 done
22262 else
22263 $as_echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h. */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 $ac_includes_default
22273 int
22274 main ()
22275 {
22276 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) < 0)@:>@;
22277 test_array @<:@0@:>@ = 0
22278
22279 ;
22280 return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext
22284 if { (ac_try="$ac_compile"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22290 $as_echo "$ac_try_echo") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.$ac_objext; then
22301 ac_hi=-1 ac_mid=-1
22302 while :; do
22303 cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h. */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22310 int
22311 main ()
22312 {
22313 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)@:>@;
22314 test_array @<:@0@:>@ = 0
22315
22316 ;
22317 return 0;
22318 }
22319 _ACEOF
22320 rm -f conftest.$ac_objext
22321 if { (ac_try="$ac_compile"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327 $as_echo "$ac_try_echo") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_lo=$ac_mid; break
22339 else
22340 $as_echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343 ac_hi=`expr '(' $ac_mid ')' - 1`
22344 if test $ac_mid -le $ac_hi; then
22345 ac_lo= ac_hi=
22346 break
22347 fi
22348 ac_mid=`expr 2 '*' $ac_mid`
22349 fi
22350
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 done
22353 else
22354 $as_echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 ac_lo= ac_hi=
22358 fi
22359
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 fi
22362
22363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 # Binary search between lo and hi bounds.
22365 while test "x$ac_lo" != "x$ac_hi"; do
22366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22367 cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h. */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 $ac_includes_default
22374 int
22375 main ()
22376 {
22377 static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@;
22378 test_array @<:@0@:>@ = 0
22379
22380 ;
22381 return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (ac_try="$ac_compile"
22386 case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389 esac
22390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22391 $as_echo "$ac_try_echo") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 ac_hi=$ac_mid
22403 else
22404 $as_echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_lo=`expr '(' $ac_mid ')' + 1`
22408 fi
22409
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 done
22412 case $ac_lo in
22413 ?*) ac_cv_sizeof_char_p=$ac_lo;;
22414 '') if test "$ac_cv_type_char_p" = yes; then
22415 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22417 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22418 See \`config.log' for more details." >&5
22419 $as_echo "$as_me: error: cannot compute sizeof (char *)
22420 See \`config.log' for more details." >&2;}
22421 { (exit 77); exit 77; }; }; }
22422 else
22423 ac_cv_sizeof_char_p=0
22424 fi ;;
22425 esac
22426 else
22427 cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h. */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 $ac_includes_default
22434 static long int longval () { return (long int) (sizeof (char *)); }
22435 static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22436 @%:@include <stdio.h>
22437 @%:@include <stdlib.h>
22438 int
22439 main ()
22440 {
22441
22442 FILE *f = fopen ("conftest.val", "w");
22443 if (! f)
22444 return 1;
22445 if (((long int) (sizeof (char *))) < 0)
22446 {
22447 long int i = longval ();
22448 if (i != ((long int) (sizeof (char *))))
22449 return 1;
22450 fprintf (f, "%ld", i);
22451 }
22452 else
22453 {
22454 unsigned long int i = ulongval ();
22455 if (i != ((long int) (sizeof (char *))))
22456 return 1;
22457 fprintf (f, "%lu", i);
22458 }
22459 /* Do not output a trailing newline, as this causes \r\n confusion
22460 on some platforms. */
22461 return ferror (f) || fclose (f) != 0;
22462
22463 ;
22464 return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest$ac_exeext
22468 if { (ac_try="$ac_link"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22474 $as_echo "$ac_try_echo") >&5
22475 (eval "$ac_link") 2>&5
22476 ac_status=$?
22477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22479 { (case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22482 esac
22483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22484 $as_echo "$ac_try_echo") >&5
22485 (eval "$ac_try") 2>&5
22486 ac_status=$?
22487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_sizeof_char_p=`cat conftest.val`
22490 else
22491 $as_echo "$as_me: program exited with status $ac_status" >&5
22492 $as_echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495 ( exit $ac_status )
22496 if test "$ac_cv_type_char_p" = yes; then
22497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22499 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22500 See \`config.log' for more details." >&5
22501 $as_echo "$as_me: error: cannot compute sizeof (char *)
22502 See \`config.log' for more details." >&2;}
22503 { (exit 77); exit 77; }; }; }
22504 else
22505 ac_cv_sizeof_char_p=0
22506 fi
22507 fi
22508 rm -rf conftest.dSYM
22509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22510 fi
22511 rm -f conftest.val
22512 fi
22513 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22514 $as_echo "$ac_cv_sizeof_char_p" >&6; }
22515
22516
22517
22518 cat >>confdefs.h <<_ACEOF
22519 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
22520 _ACEOF
22521
22522
22523 # The cast to long int works around a bug in the HP C Compiler
22524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22526 # This bug is HP SR number 8606223364.
22527 { $as_echo "$as_me:$LINENO: checking size of double" >&5
22528 $as_echo_n "checking size of double... " >&6; }
22529 if test "${ac_cv_sizeof_double+set}" = set; then
22530 $as_echo_n "(cached) " >&6
22531 else
22532 if test "$cross_compiling" = yes; then
22533 # Depending upon the size, compute the lo and hi bounds.
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 int
22542 main ()
22543 {
22544 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) >= 0)@:>@;
22545 test_array @<:@0@:>@ = 0
22546
22547 ;
22548 return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22556 esac
22557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22569 ac_lo=0 ac_mid=0
22570 while :; do
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 $ac_includes_default
22578 int
22579 main ()
22580 {
22581 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)@:>@;
22582 test_array @<:@0@:>@ = 0
22583
22584 ;
22585 return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22593 esac
22594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22595 $as_echo "$ac_try_echo") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest.$ac_objext; then
22606 ac_hi=$ac_mid; break
22607 else
22608 $as_echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22610
22611 ac_lo=`expr $ac_mid + 1`
22612 if test $ac_lo -le $ac_mid; then
22613 ac_lo= ac_hi=
22614 break
22615 fi
22616 ac_mid=`expr 2 '*' $ac_mid + 1`
22617 fi
22618
22619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22620 done
22621 else
22622 $as_echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h. */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 $ac_includes_default
22632 int
22633 main ()
22634 {
22635 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) < 0)@:>@;
22636 test_array @<:@0@:>@ = 0
22637
22638 ;
22639 return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22647 esac
22648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22649 $as_echo "$ac_try_echo") >&5
22650 (eval "$ac_compile") 2>conftest.er1
22651 ac_status=$?
22652 grep -v '^ *+' conftest.er1 >conftest.err
22653 rm -f conftest.er1
22654 cat conftest.err >&5
22655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest.$ac_objext; then
22660 ac_hi=-1 ac_mid=-1
22661 while :; do
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h. */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22669 int
22670 main ()
22671 {
22672 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)@:>@;
22673 test_array @<:@0@:>@ = 0
22674
22675 ;
22676 return 0;
22677 }
22678 _ACEOF
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22684 esac
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_lo=$ac_mid; break
22698 else
22699 $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702 ac_hi=`expr '(' $ac_mid ')' - 1`
22703 if test $ac_mid -le $ac_hi; then
22704 ac_lo= ac_hi=
22705 break
22706 fi
22707 ac_mid=`expr 2 '*' $ac_mid`
22708 fi
22709
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 done
22712 else
22713 $as_echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716 ac_lo= ac_hi=
22717 fi
22718
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 # Binary search between lo and hi bounds.
22724 while test "x$ac_lo" != "x$ac_hi"; do
22725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22726 cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h. */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h. */
22732 $ac_includes_default
22733 int
22734 main ()
22735 {
22736 static int test_array @<:@1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)@:>@;
22737 test_array @<:@0@:>@ = 0
22738
22739 ;
22740 return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748 esac
22749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22750 $as_echo "$ac_try_echo") >&5
22751 (eval "$ac_compile") 2>conftest.er1
22752 ac_status=$?
22753 grep -v '^ *+' conftest.er1 >conftest.err
22754 rm -f conftest.er1
22755 cat conftest.err >&5
22756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } && {
22758 test -z "$ac_c_werror_flag" ||
22759 test ! -s conftest.err
22760 } && test -s conftest.$ac_objext; then
22761 ac_hi=$ac_mid
22762 else
22763 $as_echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766 ac_lo=`expr '(' $ac_mid ')' + 1`
22767 fi
22768
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770 done
22771 case $ac_lo in
22772 ?*) ac_cv_sizeof_double=$ac_lo;;
22773 '') if test "$ac_cv_type_double" = yes; then
22774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22776 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22777 See \`config.log' for more details." >&5
22778 $as_echo "$as_me: error: cannot compute sizeof (double)
22779 See \`config.log' for more details." >&2;}
22780 { (exit 77); exit 77; }; }; }
22781 else
22782 ac_cv_sizeof_double=0
22783 fi ;;
22784 esac
22785 else
22786 cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h. */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 $ac_includes_default
22793 static long int longval () { return (long int) (sizeof (double)); }
22794 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22795 @%:@include <stdio.h>
22796 @%:@include <stdlib.h>
22797 int
22798 main ()
22799 {
22800
22801 FILE *f = fopen ("conftest.val", "w");
22802 if (! f)
22803 return 1;
22804 if (((long int) (sizeof (double))) < 0)
22805 {
22806 long int i = longval ();
22807 if (i != ((long int) (sizeof (double))))
22808 return 1;
22809 fprintf (f, "%ld", i);
22810 }
22811 else
22812 {
22813 unsigned long int i = ulongval ();
22814 if (i != ((long int) (sizeof (double))))
22815 return 1;
22816 fprintf (f, "%lu", i);
22817 }
22818 /* Do not output a trailing newline, as this causes \r\n confusion
22819 on some platforms. */
22820 return ferror (f) || fclose (f) != 0;
22821
22822 ;
22823 return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest$ac_exeext
22827 if { (ac_try="$ac_link"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831 esac
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834 (eval "$ac_link") 2>&5
22835 ac_status=$?
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22838 { (case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22841 esac
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844 (eval "$ac_try") 2>&5
22845 ac_status=$?
22846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_cv_sizeof_double=`cat conftest.val`
22849 else
22850 $as_echo "$as_me: program exited with status $ac_status" >&5
22851 $as_echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22853
22854 ( exit $ac_status )
22855 if test "$ac_cv_type_double" = yes; then
22856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22858 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22859 See \`config.log' for more details." >&5
22860 $as_echo "$as_me: error: cannot compute sizeof (double)
22861 See \`config.log' for more details." >&2;}
22862 { (exit 77); exit 77; }; }; }
22863 else
22864 ac_cv_sizeof_double=0
22865 fi
22866 fi
22867 rm -rf conftest.dSYM
22868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22869 fi
22870 rm -f conftest.val
22871 fi
22872 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22873 $as_echo "$ac_cv_sizeof_double" >&6; }
22874
22875
22876
22877 cat >>confdefs.h <<_ACEOF
22878 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
22879 _ACEOF
22880
22881
22882 # The cast to long int works around a bug in the HP C Compiler
22883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22885 # This bug is HP SR number 8606223364.
22886 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
22887 $as_echo_n "checking size of long long... " >&6; }
22888 if test "${ac_cv_sizeof_long_long+set}" = set; then
22889 $as_echo_n "(cached) " >&6
22890 else
22891 if test "$cross_compiling" = yes; then
22892 # Depending upon the size, compute the lo and hi bounds.
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22900 int
22901 main ()
22902 {
22903 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@;
22904 test_array @<:@0@:>@ = 0
22905
22906 ;
22907 return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22915 esac
22916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22917 $as_echo "$ac_try_echo") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22928 ac_lo=0 ac_mid=0
22929 while :; do
22930 cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h. */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22936 $ac_includes_default
22937 int
22938 main ()
22939 {
22940 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
22941 test_array @<:@0@:>@ = 0
22942
22943 ;
22944 return 0;
22945 }
22946 _ACEOF
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22952 esac
22953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22954 $as_echo "$ac_try_echo") >&5
22955 (eval "$ac_compile") 2>conftest.er1
22956 ac_status=$?
22957 grep -v '^ *+' conftest.er1 >conftest.err
22958 rm -f conftest.er1
22959 cat conftest.err >&5
22960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } && {
22962 test -z "$ac_c_werror_flag" ||
22963 test ! -s conftest.err
22964 } && test -s conftest.$ac_objext; then
22965 ac_hi=$ac_mid; break
22966 else
22967 $as_echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970 ac_lo=`expr $ac_mid + 1`
22971 if test $ac_lo -le $ac_mid; then
22972 ac_lo= ac_hi=
22973 break
22974 fi
22975 ac_mid=`expr 2 '*' $ac_mid + 1`
22976 fi
22977
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 done
22980 else
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984 cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h. */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 $ac_includes_default
22991 int
22992 main ()
22993 {
22994 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@;
22995 test_array @<:@0@:>@ = 0
22996
22997 ;
22998 return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23006 esac
23007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_compile") 2>conftest.er1
23010 ac_status=$?
23011 grep -v '^ *+' conftest.er1 >conftest.err
23012 rm -f conftest.er1
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest.$ac_objext; then
23019 ac_hi=-1 ac_mid=-1
23020 while :; do
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h. */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23028 int
23029 main ()
23030 {
23031 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@;
23032 test_array @<:@0@:>@ = 0
23033
23034 ;
23035 return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest.$ac_objext
23039 if { (ac_try="$ac_compile"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043 esac
23044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23045 $as_echo "$ac_try_echo") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23047 ac_status=$?
23048 grep -v '^ *+' conftest.er1 >conftest.err
23049 rm -f conftest.er1
23050 cat conftest.err >&5
23051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_lo=$ac_mid; break
23057 else
23058 $as_echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061 ac_hi=`expr '(' $ac_mid ')' - 1`
23062 if test $ac_mid -le $ac_hi; then
23063 ac_lo= ac_hi=
23064 break
23065 fi
23066 ac_mid=`expr 2 '*' $ac_mid`
23067 fi
23068
23069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23070 done
23071 else
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075 ac_lo= ac_hi=
23076 fi
23077
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 # Binary search between lo and hi bounds.
23083 while test "x$ac_lo" != "x$ac_hi"; do
23084 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 $ac_includes_default
23092 int
23093 main ()
23094 {
23095 static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
23096 test_array @<:@0@:>@ = 0
23097
23098 ;
23099 return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107 esac
23108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23109 $as_echo "$ac_try_echo") >&5
23110 (eval "$ac_compile") 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && {
23117 test -z "$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 } && test -s conftest.$ac_objext; then
23120 ac_hi=$ac_mid
23121 else
23122 $as_echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 ac_lo=`expr '(' $ac_mid ')' + 1`
23126 fi
23127
23128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 done
23130 case $ac_lo in
23131 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23132 '') if test "$ac_cv_type_long_long" = yes; then
23133 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23135 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23136 See \`config.log' for more details." >&5
23137 $as_echo "$as_me: error: cannot compute sizeof (long long)
23138 See \`config.log' for more details." >&2;}
23139 { (exit 77); exit 77; }; }; }
23140 else
23141 ac_cv_sizeof_long_long=0
23142 fi ;;
23143 esac
23144 else
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h. */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23152 static long int longval () { return (long int) (sizeof (long long)); }
23153 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23154 @%:@include <stdio.h>
23155 @%:@include <stdlib.h>
23156 int
23157 main ()
23158 {
23159
23160 FILE *f = fopen ("conftest.val", "w");
23161 if (! f)
23162 return 1;
23163 if (((long int) (sizeof (long long))) < 0)
23164 {
23165 long int i = longval ();
23166 if (i != ((long int) (sizeof (long long))))
23167 return 1;
23168 fprintf (f, "%ld", i);
23169 }
23170 else
23171 {
23172 unsigned long int i = ulongval ();
23173 if (i != ((long int) (sizeof (long long))))
23174 return 1;
23175 fprintf (f, "%lu", i);
23176 }
23177 /* Do not output a trailing newline, as this causes \r\n confusion
23178 on some platforms. */
23179 return ferror (f) || fclose (f) != 0;
23180
23181 ;
23182 return 0;
23183 }
23184 _ACEOF
23185 rm -f conftest$ac_exeext
23186 if { (ac_try="$ac_link"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23190 esac
23191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23192 $as_echo "$ac_try_echo") >&5
23193 (eval "$ac_link") 2>&5
23194 ac_status=$?
23195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23197 { (case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23202 $as_echo "$ac_try_echo") >&5
23203 (eval "$ac_try") 2>&5
23204 ac_status=$?
23205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23207 ac_cv_sizeof_long_long=`cat conftest.val`
23208 else
23209 $as_echo "$as_me: program exited with status $ac_status" >&5
23210 $as_echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213 ( exit $ac_status )
23214 if test "$ac_cv_type_long_long" = yes; then
23215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23217 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23218 See \`config.log' for more details." >&5
23219 $as_echo "$as_me: error: cannot compute sizeof (long long)
23220 See \`config.log' for more details." >&2;}
23221 { (exit 77); exit 77; }; }; }
23222 else
23223 ac_cv_sizeof_long_long=0
23224 fi
23225 fi
23226 rm -rf conftest.dSYM
23227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23228 fi
23229 rm -f conftest.val
23230 fi
23231 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23232 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23233
23234
23235
23236 cat >>confdefs.h <<_ACEOF
23237 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23238 _ACEOF
23239
23240
23241
23242 { $as_echo "$as_me:$LINENO: checking for u_int" >&5
23243 $as_echo_n "checking for u_int... " >&6; }
23244 if test "${ac_cv_type_u_int+set}" = set; then
23245 $as_echo_n "(cached) " >&6
23246 else
23247 ac_cv_type_u_int=no
23248 cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h. */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 $ac_includes_default
23255 int
23256 main ()
23257 {
23258 if (sizeof (u_int))
23259 return 0;
23260 ;
23261 return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext
23265 if { (ac_try="$ac_compile"
23266 case "(($ac_try" in
23267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268 *) ac_try_echo=$ac_try;;
23269 esac
23270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23271 $as_echo "$ac_try_echo") >&5
23272 (eval "$ac_compile") 2>conftest.er1
23273 ac_status=$?
23274 grep -v '^ *+' conftest.er1 >conftest.err
23275 rm -f conftest.er1
23276 cat conftest.err >&5
23277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest.$ac_objext; then
23282 cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h. */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 $ac_includes_default
23289 int
23290 main ()
23291 {
23292 if (sizeof ((u_int)))
23293 return 0;
23294 ;
23295 return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23303 esac
23304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23305 $as_echo "$ac_try_echo") >&5
23306 (eval "$ac_compile") 2>conftest.er1
23307 ac_status=$?
23308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
23311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_c_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest.$ac_objext; then
23316 :
23317 else
23318 $as_echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23320
23321 ac_cv_type_u_int=yes
23322 fi
23323
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23325 else
23326 $as_echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329
23330 fi
23331
23332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23333 fi
23334 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23335 $as_echo "$ac_cv_type_u_int" >&6; }
23336 if test "x$ac_cv_type_u_int" = x""yes; then
23337 :
23338 else
23339
23340 cat >>confdefs.h <<_ACEOF
23341 @%:@define u_int unsigned int
23342 _ACEOF
23343
23344 fi
23345
23346 { $as_echo "$as_me:$LINENO: checking for u_long" >&5
23347 $as_echo_n "checking for u_long... " >&6; }
23348 if test "${ac_cv_type_u_long+set}" = set; then
23349 $as_echo_n "(cached) " >&6
23350 else
23351 ac_cv_type_u_long=no
23352 cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h. */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 $ac_includes_default
23359 int
23360 main ()
23361 {
23362 if (sizeof (u_long))
23363 return 0;
23364 ;
23365 return 0;
23366 }
23367 _ACEOF
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373 esac
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376 (eval "$ac_compile") 2>conftest.er1
23377 ac_status=$?
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && {
23383 test -z "$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23385 } && test -s conftest.$ac_objext; then
23386 cat >conftest.$ac_ext <<_ACEOF
23387 /* confdefs.h. */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 $ac_includes_default
23393 int
23394 main ()
23395 {
23396 if (sizeof ((u_long)))
23397 return 0;
23398 ;
23399 return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (ac_try="$ac_compile"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23407 esac
23408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23409 $as_echo "$ac_try_echo") >&5
23410 (eval "$ac_compile") 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest.$ac_objext; then
23420 :
23421 else
23422 $as_echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23424
23425 ac_cv_type_u_long=yes
23426 fi
23427
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 else
23430 $as_echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433
23434 fi
23435
23436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23437 fi
23438 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23439 $as_echo "$ac_cv_type_u_long" >&6; }
23440 if test "x$ac_cv_type_u_long" = x""yes; then
23441 :
23442 else
23443
23444 cat >>confdefs.h <<_ACEOF
23445 @%:@define u_long unsigned long
23446 _ACEOF
23447
23448 fi
23449
23450
23451
23452 if test "$ac_cv_sizeof_short" = 2; then
23453 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23454 $as_echo_n "checking for bits16_t... " >&6; }
23455 if test "${ac_cv_type_bits16_t+set}" = set; then
23456 $as_echo_n "(cached) " >&6
23457 else
23458 ac_cv_type_bits16_t=no
23459 cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h. */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 $ac_includes_default
23466 int
23467 main ()
23468 {
23469 if (sizeof (bits16_t))
23470 return 0;
23471 ;
23472 return 0;
23473 }
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23480 esac
23481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23482 $as_echo "$ac_try_echo") >&5
23483 (eval "$ac_compile") 2>conftest.er1
23484 ac_status=$?
23485 grep -v '^ *+' conftest.er1 >conftest.err
23486 rm -f conftest.er1
23487 cat conftest.err >&5
23488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } && {
23490 test -z "$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23492 } && test -s conftest.$ac_objext; then
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h. */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 $ac_includes_default
23500 int
23501 main ()
23502 {
23503 if (sizeof ((bits16_t)))
23504 return 0;
23505 ;
23506 return 0;
23507 }
23508 _ACEOF
23509 rm -f conftest.$ac_objext
23510 if { (ac_try="$ac_compile"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23514 esac
23515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517 (eval "$ac_compile") 2>conftest.er1
23518 ac_status=$?
23519 grep -v '^ *+' conftest.er1 >conftest.err
23520 rm -f conftest.er1
23521 cat conftest.err >&5
23522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && {
23524 test -z "$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 } && test -s conftest.$ac_objext; then
23527 :
23528 else
23529 $as_echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 ac_cv_type_bits16_t=yes
23533 fi
23534
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 else
23537 $as_echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 fi
23545 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23546 $as_echo "$ac_cv_type_bits16_t" >&6; }
23547 if test "x$ac_cv_type_bits16_t" = x""yes; then
23548 :
23549 else
23550
23551 cat >>confdefs.h <<_ACEOF
23552 @%:@define bits16_t short
23553 _ACEOF
23554
23555 fi
23556
23557 elif test "$ac_cv_sizeof_char" = 2; then
23558 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23559 $as_echo_n "checking for bits16_t... " >&6; }
23560 if test "${ac_cv_type_bits16_t+set}" = set; then
23561 $as_echo_n "(cached) " >&6
23562 else
23563 ac_cv_type_bits16_t=no
23564 cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h. */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 $ac_includes_default
23571 int
23572 main ()
23573 {
23574 if (sizeof (bits16_t))
23575 return 0;
23576 ;
23577 return 0;
23578 }
23579 _ACEOF
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23585 esac
23586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23587 $as_echo "$ac_try_echo") >&5
23588 (eval "$ac_compile") 2>conftest.er1
23589 ac_status=$?
23590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
23593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest.$ac_objext; then
23598 cat >conftest.$ac_ext <<_ACEOF
23599 /* confdefs.h. */
23600 _ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h. */
23604 $ac_includes_default
23605 int
23606 main ()
23607 {
23608 if (sizeof ((bits16_t)))
23609 return 0;
23610 ;
23611 return 0;
23612 }
23613 _ACEOF
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
23616 case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23619 esac
23620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23621 $as_echo "$ac_try_echo") >&5
23622 (eval "$ac_compile") 2>conftest.er1
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest.$ac_objext; then
23632 :
23633 else
23634 $as_echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23636
23637 ac_cv_type_bits16_t=yes
23638 fi
23639
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23641 else
23642 $as_echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645
23646 fi
23647
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23649 fi
23650 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23651 $as_echo "$ac_cv_type_bits16_t" >&6; }
23652 if test "x$ac_cv_type_bits16_t" = x""yes; then
23653 :
23654 else
23655
23656 cat >>confdefs.h <<_ACEOF
23657 @%:@define bits16_t char
23658 _ACEOF
23659
23660 fi
23661
23662 else
23663 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23664 $as_echo_n "checking for bits16_t... " >&6; }
23665 if test "${ac_cv_type_bits16_t+set}" = set; then
23666 $as_echo_n "(cached) " >&6
23667 else
23668 ac_cv_type_bits16_t=no
23669 cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h. */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23675 $ac_includes_default
23676 int
23677 main ()
23678 {
23679 if (sizeof (bits16_t))
23680 return 0;
23681 ;
23682 return 0;
23683 }
23684 _ACEOF
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690 esac
23691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23692 $as_echo "$ac_try_echo") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23694 ac_status=$?
23695 grep -v '^ *+' conftest.er1 >conftest.err
23696 rm -f conftest.er1
23697 cat conftest.err >&5
23698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 $ac_includes_default
23710 int
23711 main ()
23712 {
23713 if (sizeof ((bits16_t)))
23714 return 0;
23715 ;
23716 return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext
23720 if { (ac_try="$ac_compile"
23721 case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23724 esac
23725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23726 $as_echo "$ac_try_echo") >&5
23727 (eval "$ac_compile") 2>conftest.er1
23728 ac_status=$?
23729 grep -v '^ *+' conftest.er1 >conftest.err
23730 rm -f conftest.er1
23731 cat conftest.err >&5
23732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } && {
23734 test -z "$ac_c_werror_flag" ||
23735 test ! -s conftest.err
23736 } && test -s conftest.$ac_objext; then
23737 :
23738 else
23739 $as_echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23741
23742 ac_cv_type_bits16_t=yes
23743 fi
23744
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746 else
23747 $as_echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750
23751 fi
23752
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 fi
23755 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23756 $as_echo "$ac_cv_type_bits16_t" >&6; }
23757 if test "x$ac_cv_type_bits16_t" = x""yes; then
23758 :
23759 else
23760
23761 cat >>confdefs.h <<_ACEOF
23762 @%:@define bits16_t short
23763 _ACEOF
23764
23765 fi
23766
23767 fi
23768
23769
23770 if test "$ac_cv_sizeof_short" = 2; then
23771 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23772 $as_echo_n "checking for u_bits16_t... " >&6; }
23773 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23774 $as_echo_n "(cached) " >&6
23775 else
23776 ac_cv_type_u_bits16_t=no
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h. */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 $ac_includes_default
23784 int
23785 main ()
23786 {
23787 if (sizeof (u_bits16_t))
23788 return 0;
23789 ;
23790 return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23798 esac
23799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800 $as_echo "$ac_try_echo") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h. */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23817 $ac_includes_default
23818 int
23819 main ()
23820 {
23821 if (sizeof ((u_bits16_t)))
23822 return 0;
23823 ;
23824 return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831 *) ac_try_echo=$ac_try;;
23832 esac
23833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23834 $as_echo "$ac_try_echo") >&5
23835 (eval "$ac_compile") 2>conftest.er1
23836 ac_status=$?
23837 grep -v '^ *+' conftest.er1 >conftest.err
23838 rm -f conftest.er1
23839 cat conftest.err >&5
23840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && {
23842 test -z "$ac_c_werror_flag" ||
23843 test ! -s conftest.err
23844 } && test -s conftest.$ac_objext; then
23845 :
23846 else
23847 $as_echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850 ac_cv_type_u_bits16_t=yes
23851 fi
23852
23853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23854 else
23855 $as_echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858
23859 fi
23860
23861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 fi
23863 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23864 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23865 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23866 :
23867 else
23868
23869 cat >>confdefs.h <<_ACEOF
23870 @%:@define u_bits16_t unsigned short
23871 _ACEOF
23872
23873 fi
23874
23875 elif test "$ac_cv_sizeof_char" = 2; then
23876 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23877 $as_echo_n "checking for u_bits16_t... " >&6; }
23878 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23879 $as_echo_n "(cached) " >&6
23880 else
23881 ac_cv_type_u_bits16_t=no
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 $ac_includes_default
23889 int
23890 main ()
23891 {
23892 if (sizeof (u_bits16_t))
23893 return 0;
23894 ;
23895 return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23903 esac
23904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23907 ac_status=$?
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
23911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest.$ac_objext; then
23916 cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h. */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h. */
23922 $ac_includes_default
23923 int
23924 main ()
23925 {
23926 if (sizeof ((u_bits16_t)))
23927 return 0;
23928 ;
23929 return 0;
23930 }
23931 _ACEOF
23932 rm -f conftest.$ac_objext
23933 if { (ac_try="$ac_compile"
23934 case "(($ac_try" in
23935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936 *) ac_try_echo=$ac_try;;
23937 esac
23938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23939 $as_echo "$ac_try_echo") >&5
23940 (eval "$ac_compile") 2>conftest.er1
23941 ac_status=$?
23942 grep -v '^ *+' conftest.er1 >conftest.err
23943 rm -f conftest.er1
23944 cat conftest.err >&5
23945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest.$ac_objext; then
23950 :
23951 else
23952 $as_echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23954
23955 ac_cv_type_u_bits16_t=yes
23956 fi
23957
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 else
23960 $as_echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963
23964 fi
23965
23966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23967 fi
23968 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23969 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
23970 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23971 :
23972 else
23973
23974 cat >>confdefs.h <<_ACEOF
23975 @%:@define u_bits16_t unsigned char
23976 _ACEOF
23977
23978 fi
23979
23980 else
23981 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23982 $as_echo_n "checking for u_bits16_t... " >&6; }
23983 if test "${ac_cv_type_u_bits16_t+set}" = set; then
23984 $as_echo_n "(cached) " >&6
23985 else
23986 ac_cv_type_u_bits16_t=no
23987 cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h. */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 $ac_includes_default
23994 int
23995 main ()
23996 {
23997 if (sizeof (u_bits16_t))
23998 return 0;
23999 ;
24000 return 0;
24001 }
24002 _ACEOF
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24008 esac
24009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24010 $as_echo "$ac_try_echo") >&5
24011 (eval "$ac_compile") 2>conftest.er1
24012 ac_status=$?
24013 grep -v '^ *+' conftest.er1 >conftest.err
24014 rm -f conftest.er1
24015 cat conftest.err >&5
24016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest.$ac_objext; then
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 $ac_includes_default
24028 int
24029 main ()
24030 {
24031 if (sizeof ((u_bits16_t)))
24032 return 0;
24033 ;
24034 return 0;
24035 }
24036 _ACEOF
24037 rm -f conftest.$ac_objext
24038 if { (ac_try="$ac_compile"
24039 case "(($ac_try" in
24040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24042 esac
24043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24044 $as_echo "$ac_try_echo") >&5
24045 (eval "$ac_compile") 2>conftest.er1
24046 ac_status=$?
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
24050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } && {
24052 test -z "$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 } && test -s conftest.$ac_objext; then
24055 :
24056 else
24057 $as_echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24059
24060 ac_cv_type_u_bits16_t=yes
24061 fi
24062
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24064 else
24065 $as_echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 fi
24073 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24074 $as_echo "$ac_cv_type_u_bits16_t" >&6; }
24075 if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24076 :
24077 else
24078
24079 cat >>confdefs.h <<_ACEOF
24080 @%:@define u_bits16_t unsigned short
24081 _ACEOF
24082
24083 fi
24084
24085 fi
24086
24087
24088 if test "$ac_cv_sizeof_int" = 4; then
24089 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24090 $as_echo_n "checking for bits32_t... " >&6; }
24091 if test "${ac_cv_type_bits32_t+set}" = set; then
24092 $as_echo_n "(cached) " >&6
24093 else
24094 ac_cv_type_bits32_t=no
24095 cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h. */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h. */
24101 $ac_includes_default
24102 int
24103 main ()
24104 {
24105 if (sizeof (bits32_t))
24106 return 0;
24107 ;
24108 return 0;
24109 }
24110 _ACEOF
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24116 esac
24117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24118 $as_echo "$ac_try_echo") >&5
24119 (eval "$ac_compile") 2>conftest.er1
24120 ac_status=$?
24121 grep -v '^ *+' conftest.er1 >conftest.err
24122 rm -f conftest.er1
24123 cat conftest.err >&5
24124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest.$ac_objext; then
24129 cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h. */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24135 $ac_includes_default
24136 int
24137 main ()
24138 {
24139 if (sizeof ((bits32_t)))
24140 return 0;
24141 ;
24142 return 0;
24143 }
24144 _ACEOF
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24150 esac
24151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24152 $as_echo "$ac_try_echo") >&5
24153 (eval "$ac_compile") 2>conftest.er1
24154 ac_status=$?
24155 grep -v '^ *+' conftest.er1 >conftest.err
24156 rm -f conftest.er1
24157 cat conftest.err >&5
24158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } && {
24160 test -z "$ac_c_werror_flag" ||
24161 test ! -s conftest.err
24162 } && test -s conftest.$ac_objext; then
24163 :
24164 else
24165 $as_echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168 ac_cv_type_bits32_t=yes
24169 fi
24170
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24172 else
24173 $as_echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24175
24176
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 fi
24181 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24182 $as_echo "$ac_cv_type_bits32_t" >&6; }
24183 if test "x$ac_cv_type_bits32_t" = x""yes; then
24184 :
24185 else
24186
24187 cat >>confdefs.h <<_ACEOF
24188 @%:@define bits32_t int
24189 _ACEOF
24190
24191 fi
24192
24193 elif test "$ac_cv_sizeof_long" = 4; then
24194 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24195 $as_echo_n "checking for bits32_t... " >&6; }
24196 if test "${ac_cv_type_bits32_t+set}" = set; then
24197 $as_echo_n "(cached) " >&6
24198 else
24199 ac_cv_type_bits32_t=no
24200 cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h. */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 $ac_includes_default
24207 int
24208 main ()
24209 {
24210 if (sizeof (bits32_t))
24211 return 0;
24212 ;
24213 return 0;
24214 }
24215 _ACEOF
24216 rm -f conftest.$ac_objext
24217 if { (ac_try="$ac_compile"
24218 case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24221 esac
24222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24223 $as_echo "$ac_try_echo") >&5
24224 (eval "$ac_compile") 2>conftest.er1
24225 ac_status=$?
24226 grep -v '^ *+' conftest.er1 >conftest.err
24227 rm -f conftest.er1
24228 cat conftest.err >&5
24229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); } && {
24231 test -z "$ac_c_werror_flag" ||
24232 test ! -s conftest.err
24233 } && test -s conftest.$ac_objext; then
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24241 int
24242 main ()
24243 {
24244 if (sizeof ((bits32_t)))
24245 return 0;
24246 ;
24247 return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24255 esac
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24259 ac_status=$?
24260 grep -v '^ *+' conftest.er1 >conftest.err
24261 rm -f conftest.er1
24262 cat conftest.err >&5
24263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 :
24269 else
24270 $as_echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273 ac_cv_type_bits32_t=yes
24274 fi
24275
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 else
24278 $as_echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24280
24281
24282 fi
24283
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 fi
24286 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24287 $as_echo "$ac_cv_type_bits32_t" >&6; }
24288 if test "x$ac_cv_type_bits32_t" = x""yes; then
24289 :
24290 else
24291
24292 cat >>confdefs.h <<_ACEOF
24293 @%:@define bits32_t long
24294 _ACEOF
24295
24296 fi
24297
24298 else
24299 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24300 $as_echo_n "checking for bits32_t... " >&6; }
24301 if test "${ac_cv_type_bits32_t+set}" = set; then
24302 $as_echo_n "(cached) " >&6
24303 else
24304 ac_cv_type_bits32_t=no
24305 cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h. */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 $ac_includes_default
24312 int
24313 main ()
24314 {
24315 if (sizeof (bits32_t))
24316 return 0;
24317 ;
24318 return 0;
24319 }
24320 _ACEOF
24321 rm -f conftest.$ac_objext
24322 if { (ac_try="$ac_compile"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24326 esac
24327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24328 $as_echo "$ac_try_echo") >&5
24329 (eval "$ac_compile") 2>conftest.er1
24330 ac_status=$?
24331 grep -v '^ *+' conftest.er1 >conftest.err
24332 rm -f conftest.er1
24333 cat conftest.err >&5
24334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } && {
24336 test -z "$ac_c_werror_flag" ||
24337 test ! -s conftest.err
24338 } && test -s conftest.$ac_objext; then
24339 cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h. */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24345 $ac_includes_default
24346 int
24347 main ()
24348 {
24349 if (sizeof ((bits32_t)))
24350 return 0;
24351 ;
24352 return 0;
24353 }
24354 _ACEOF
24355 rm -f conftest.$ac_objext
24356 if { (ac_try="$ac_compile"
24357 case "(($ac_try" in
24358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24360 esac
24361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24362 $as_echo "$ac_try_echo") >&5
24363 (eval "$ac_compile") 2>conftest.er1
24364 ac_status=$?
24365 grep -v '^ *+' conftest.er1 >conftest.err
24366 rm -f conftest.er1
24367 cat conftest.err >&5
24368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest.$ac_objext; then
24373 :
24374 else
24375 $as_echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378 ac_cv_type_bits32_t=yes
24379 fi
24380
24381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24382 else
24383 $as_echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386
24387 fi
24388
24389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24390 fi
24391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24392 $as_echo "$ac_cv_type_bits32_t" >&6; }
24393 if test "x$ac_cv_type_bits32_t" = x""yes; then
24394 :
24395 else
24396
24397 cat >>confdefs.h <<_ACEOF
24398 @%:@define bits32_t int
24399 _ACEOF
24400
24401 fi
24402
24403 fi
24404
24405
24406 if test "$ac_cv_sizeof_int" = 4; then
24407 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24408 $as_echo_n "checking for u_bits32_t... " >&6; }
24409 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24410 $as_echo_n "(cached) " >&6
24411 else
24412 ac_cv_type_u_bits32_t=no
24413 cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h. */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419 $ac_includes_default
24420 int
24421 main ()
24422 {
24423 if (sizeof (u_bits32_t))
24424 return 0;
24425 ;
24426 return 0;
24427 }
24428 _ACEOF
24429 rm -f conftest.$ac_objext
24430 if { (ac_try="$ac_compile"
24431 case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24434 esac
24435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24436 $as_echo "$ac_try_echo") >&5
24437 (eval "$ac_compile") 2>conftest.er1
24438 ac_status=$?
24439 grep -v '^ *+' conftest.er1 >conftest.err
24440 rm -f conftest.er1
24441 cat conftest.err >&5
24442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } && {
24444 test -z "$ac_c_werror_flag" ||
24445 test ! -s conftest.err
24446 } && test -s conftest.$ac_objext; then
24447 cat >conftest.$ac_ext <<_ACEOF
24448 /* confdefs.h. */
24449 _ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 $ac_includes_default
24454 int
24455 main ()
24456 {
24457 if (sizeof ((u_bits32_t)))
24458 return 0;
24459 ;
24460 return 0;
24461 }
24462 _ACEOF
24463 rm -f conftest.$ac_objext
24464 if { (ac_try="$ac_compile"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24468 esac
24469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24470 $as_echo "$ac_try_echo") >&5
24471 (eval "$ac_compile") 2>conftest.er1
24472 ac_status=$?
24473 grep -v '^ *+' conftest.er1 >conftest.err
24474 rm -f conftest.er1
24475 cat conftest.err >&5
24476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest.$ac_objext; then
24481 :
24482 else
24483 $as_echo "$as_me: failed program was:" >&5
24484 sed 's/^/| /' conftest.$ac_ext >&5
24485
24486 ac_cv_type_u_bits32_t=yes
24487 fi
24488
24489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24490 else
24491 $as_echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494
24495 fi
24496
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 fi
24499 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24500 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24501 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24502 :
24503 else
24504
24505 cat >>confdefs.h <<_ACEOF
24506 @%:@define u_bits32_t unsigned int
24507 _ACEOF
24508
24509 fi
24510
24511 elif test "$ac_cv_sizeof_long" = 4; then
24512 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24513 $as_echo_n "checking for u_bits32_t... " >&6; }
24514 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24515 $as_echo_n "(cached) " >&6
24516 else
24517 ac_cv_type_u_bits32_t=no
24518 cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h. */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 $ac_includes_default
24525 int
24526 main ()
24527 {
24528 if (sizeof (u_bits32_t))
24529 return 0;
24530 ;
24531 return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext
24535 if { (ac_try="$ac_compile"
24536 case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24539 esac
24540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24541 $as_echo "$ac_try_echo") >&5
24542 (eval "$ac_compile") 2>conftest.er1
24543 ac_status=$?
24544 grep -v '^ *+' conftest.er1 >conftest.err
24545 rm -f conftest.er1
24546 cat conftest.err >&5
24547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } && {
24549 test -z "$ac_c_werror_flag" ||
24550 test ! -s conftest.err
24551 } && test -s conftest.$ac_objext; then
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h. */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 $ac_includes_default
24559 int
24560 main ()
24561 {
24562 if (sizeof ((u_bits32_t)))
24563 return 0;
24564 ;
24565 return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24573 esac
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24577 ac_status=$?
24578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
24581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24586 :
24587 else
24588 $as_echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591 ac_cv_type_u_bits32_t=yes
24592 fi
24593
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 else
24596 $as_echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24598
24599
24600 fi
24601
24602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24603 fi
24604 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24605 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24606 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24607 :
24608 else
24609
24610 cat >>confdefs.h <<_ACEOF
24611 @%:@define u_bits32_t unsigned long
24612 _ACEOF
24613
24614 fi
24615
24616 else
24617 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24618 $as_echo_n "checking for u_bits32_t... " >&6; }
24619 if test "${ac_cv_type_u_bits32_t+set}" = set; then
24620 $as_echo_n "(cached) " >&6
24621 else
24622 ac_cv_type_u_bits32_t=no
24623 cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h. */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 $ac_includes_default
24630 int
24631 main ()
24632 {
24633 if (sizeof (u_bits32_t))
24634 return 0;
24635 ;
24636 return 0;
24637 }
24638 _ACEOF
24639 rm -f conftest.$ac_objext
24640 if { (ac_try="$ac_compile"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24644 esac
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647 (eval "$ac_compile") 2>conftest.er1
24648 ac_status=$?
24649 grep -v '^ *+' conftest.er1 >conftest.err
24650 rm -f conftest.er1
24651 cat conftest.err >&5
24652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest.$ac_objext; then
24657 cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h. */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 $ac_includes_default
24664 int
24665 main ()
24666 {
24667 if (sizeof ((u_bits32_t)))
24668 return 0;
24669 ;
24670 return 0;
24671 }
24672 _ACEOF
24673 rm -f conftest.$ac_objext
24674 if { (ac_try="$ac_compile"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678 esac
24679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24680 $as_echo "$ac_try_echo") >&5
24681 (eval "$ac_compile") 2>conftest.er1
24682 ac_status=$?
24683 grep -v '^ *+' conftest.er1 >conftest.err
24684 rm -f conftest.er1
24685 cat conftest.err >&5
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && {
24688 test -z "$ac_c_werror_flag" ||
24689 test ! -s conftest.err
24690 } && test -s conftest.$ac_objext; then
24691 :
24692 else
24693 $as_echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ac_cv_type_u_bits32_t=yes
24697 fi
24698
24699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24700 else
24701 $as_echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704
24705 fi
24706
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24708 fi
24709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24710 $as_echo "$ac_cv_type_u_bits32_t" >&6; }
24711 if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24712 :
24713 else
24714
24715 cat >>confdefs.h <<_ACEOF
24716 @%:@define u_bits32_t unsigned int
24717 _ACEOF
24718
24719 fi
24720
24721 fi
24722
24723
24724 if test "$ac_cv_sizeof_char_p" = 8; then
24725 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24726 $as_echo_n "checking for bits64_t... " >&6; }
24727 if test "${ac_cv_type_bits64_t+set}" = set; then
24728 $as_echo_n "(cached) " >&6
24729 else
24730 ac_cv_type_bits64_t=no
24731 cat >conftest.$ac_ext <<_ACEOF
24732 /* confdefs.h. */
24733 _ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h. */
24737 $ac_includes_default
24738 int
24739 main ()
24740 {
24741 if (sizeof (bits64_t))
24742 return 0;
24743 ;
24744 return 0;
24745 }
24746 _ACEOF
24747 rm -f conftest.$ac_objext
24748 if { (ac_try="$ac_compile"
24749 case "(($ac_try" in
24750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24751 *) ac_try_echo=$ac_try;;
24752 esac
24753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24754 $as_echo "$ac_try_echo") >&5
24755 (eval "$ac_compile") 2>conftest.er1
24756 ac_status=$?
24757 grep -v '^ *+' conftest.er1 >conftest.err
24758 rm -f conftest.er1
24759 cat conftest.err >&5
24760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } && {
24762 test -z "$ac_c_werror_flag" ||
24763 test ! -s conftest.err
24764 } && test -s conftest.$ac_objext; then
24765 cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h. */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 $ac_includes_default
24772 int
24773 main ()
24774 {
24775 if (sizeof ((bits64_t)))
24776 return 0;
24777 ;
24778 return 0;
24779 }
24780 _ACEOF
24781 rm -f conftest.$ac_objext
24782 if { (ac_try="$ac_compile"
24783 case "(($ac_try" in
24784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785 *) ac_try_echo=$ac_try;;
24786 esac
24787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24788 $as_echo "$ac_try_echo") >&5
24789 (eval "$ac_compile") 2>conftest.er1
24790 ac_status=$?
24791 grep -v '^ *+' conftest.er1 >conftest.err
24792 rm -f conftest.er1
24793 cat conftest.err >&5
24794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } && {
24796 test -z "$ac_c_werror_flag" ||
24797 test ! -s conftest.err
24798 } && test -s conftest.$ac_objext; then
24799 :
24800 else
24801 $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804 ac_cv_type_bits64_t=yes
24805 fi
24806
24807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24808 else
24809 $as_echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24811
24812
24813 fi
24814
24815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24816 fi
24817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24818 $as_echo "$ac_cv_type_bits64_t" >&6; }
24819 if test "x$ac_cv_type_bits64_t" = x""yes; then
24820 :
24821 else
24822
24823 cat >>confdefs.h <<_ACEOF
24824 @%:@define bits64_t char *
24825 _ACEOF
24826
24827 fi
24828
24829 elif test "$ac_cv_sizeof_double" = 8; then
24830 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24831 $as_echo_n "checking for bits64_t... " >&6; }
24832 if test "${ac_cv_type_bits64_t+set}" = set; then
24833 $as_echo_n "(cached) " >&6
24834 else
24835 ac_cv_type_bits64_t=no
24836 cat >conftest.$ac_ext <<_ACEOF
24837 /* confdefs.h. */
24838 _ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24842 $ac_includes_default
24843 int
24844 main ()
24845 {
24846 if (sizeof (bits64_t))
24847 return 0;
24848 ;
24849 return 0;
24850 }
24851 _ACEOF
24852 rm -f conftest.$ac_objext
24853 if { (ac_try="$ac_compile"
24854 case "(($ac_try" in
24855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24856 *) ac_try_echo=$ac_try;;
24857 esac
24858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24859 $as_echo "$ac_try_echo") >&5
24860 (eval "$ac_compile") 2>conftest.er1
24861 ac_status=$?
24862 grep -v '^ *+' conftest.er1 >conftest.err
24863 rm -f conftest.er1
24864 cat conftest.err >&5
24865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } && {
24867 test -z "$ac_c_werror_flag" ||
24868 test ! -s conftest.err
24869 } && test -s conftest.$ac_objext; then
24870 cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h. */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 $ac_includes_default
24877 int
24878 main ()
24879 {
24880 if (sizeof ((bits64_t)))
24881 return 0;
24882 ;
24883 return 0;
24884 }
24885 _ACEOF
24886 rm -f conftest.$ac_objext
24887 if { (ac_try="$ac_compile"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24891 esac
24892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24893 $as_echo "$ac_try_echo") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24895 ac_status=$?
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
24899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.$ac_objext; then
24904 :
24905 else
24906 $as_echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909 ac_cv_type_bits64_t=yes
24910 fi
24911
24912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24913 else
24914 $as_echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24916
24917
24918 fi
24919
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 fi
24922 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24923 $as_echo "$ac_cv_type_bits64_t" >&6; }
24924 if test "x$ac_cv_type_bits64_t" = x""yes; then
24925 :
24926 else
24927
24928 cat >>confdefs.h <<_ACEOF
24929 @%:@define bits64_t double
24930 _ACEOF
24931
24932 fi
24933
24934 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24935 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24936 $as_echo_n "checking for bits64_t... " >&6; }
24937 if test "${ac_cv_type_bits64_t+set}" = set; then
24938 $as_echo_n "(cached) " >&6
24939 else
24940 ac_cv_type_bits64_t=no
24941 cat >conftest.$ac_ext <<_ACEOF
24942 /* confdefs.h. */
24943 _ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24947 $ac_includes_default
24948 int
24949 main ()
24950 {
24951 if (sizeof (bits64_t))
24952 return 0;
24953 ;
24954 return 0;
24955 }
24956 _ACEOF
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961 *) ac_try_echo=$ac_try;;
24962 esac
24963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24964 $as_echo "$ac_try_echo") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24966 ac_status=$?
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
24970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.$ac_objext; then
24975 cat >conftest.$ac_ext <<_ACEOF
24976 /* confdefs.h. */
24977 _ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24982 int
24983 main ()
24984 {
24985 if (sizeof ((bits64_t)))
24986 return 0;
24987 ;
24988 return 0;
24989 }
24990 _ACEOF
24991 rm -f conftest.$ac_objext
24992 if { (ac_try="$ac_compile"
24993 case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24996 esac
24997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24998 $as_echo "$ac_try_echo") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest.$ac_objext; then
25009 :
25010 else
25011 $as_echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014 ac_cv_type_bits64_t=yes
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 else
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 fi
25027 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25028 $as_echo "$ac_cv_type_bits64_t" >&6; }
25029 if test "x$ac_cv_type_bits64_t" = x""yes; then
25030 :
25031 else
25032
25033 cat >>confdefs.h <<_ACEOF
25034 @%:@define bits64_t long long
25035 _ACEOF
25036
25037 fi
25038
25039 elif test "$ac_cv_sizeof_long" = 8; then
25040 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25041 $as_echo_n "checking for bits64_t... " >&6; }
25042 if test "${ac_cv_type_bits64_t+set}" = set; then
25043 $as_echo_n "(cached) " >&6
25044 else
25045 ac_cv_type_bits64_t=no
25046 cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h. */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 $ac_includes_default
25053 int
25054 main ()
25055 {
25056 if (sizeof (bits64_t))
25057 return 0;
25058 ;
25059 return 0;
25060 }
25061 _ACEOF
25062 rm -f conftest.$ac_objext
25063 if { (ac_try="$ac_compile"
25064 case "(($ac_try" in
25065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066 *) ac_try_echo=$ac_try;;
25067 esac
25068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25069 $as_echo "$ac_try_echo") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25071 ac_status=$?
25072 grep -v '^ *+' conftest.er1 >conftest.err
25073 rm -f conftest.er1
25074 cat conftest.err >&5
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25080 cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h. */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 $ac_includes_default
25087 int
25088 main ()
25089 {
25090 if (sizeof ((bits64_t)))
25091 return 0;
25092 ;
25093 return 0;
25094 }
25095 _ACEOF
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25101 esac
25102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25103 $as_echo "$ac_try_echo") >&5
25104 (eval "$ac_compile") 2>conftest.er1
25105 ac_status=$?
25106 grep -v '^ *+' conftest.er1 >conftest.err
25107 rm -f conftest.er1
25108 cat conftest.err >&5
25109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } && {
25111 test -z "$ac_c_werror_flag" ||
25112 test ! -s conftest.err
25113 } && test -s conftest.$ac_objext; then
25114 :
25115 else
25116 $as_echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25118
25119 ac_cv_type_bits64_t=yes
25120 fi
25121
25122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25123 else
25124 $as_echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25126
25127
25128 fi
25129
25130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25131 fi
25132 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25133 $as_echo "$ac_cv_type_bits64_t" >&6; }
25134 if test "x$ac_cv_type_bits64_t" = x""yes; then
25135 :
25136 else
25137
25138 cat >>confdefs.h <<_ACEOF
25139 @%:@define bits64_t long
25140 _ACEOF
25141
25142 fi
25143
25144 else
25145 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25146 $as_echo_n "checking for bits64_t... " >&6; }
25147 if test "${ac_cv_type_bits64_t+set}" = set; then
25148 $as_echo_n "(cached) " >&6
25149 else
25150 ac_cv_type_bits64_t=no
25151 cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h. */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25158 int
25159 main ()
25160 {
25161 if (sizeof (bits64_t))
25162 return 0;
25163 ;
25164 return 0;
25165 }
25166 _ACEOF
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25172 esac
25173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25174 $as_echo "$ac_try_echo") >&5
25175 (eval "$ac_compile") 2>conftest.er1
25176 ac_status=$?
25177 grep -v '^ *+' conftest.er1 >conftest.err
25178 rm -f conftest.er1
25179 cat conftest.err >&5
25180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && {
25182 test -z "$ac_c_werror_flag" ||
25183 test ! -s conftest.err
25184 } && test -s conftest.$ac_objext; then
25185 cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h. */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25191 $ac_includes_default
25192 int
25193 main ()
25194 {
25195 if (sizeof ((bits64_t)))
25196 return 0;
25197 ;
25198 return 0;
25199 }
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25206 esac
25207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25208 $as_echo "$ac_try_echo") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25210 ac_status=$?
25211 grep -v '^ *+' conftest.er1 >conftest.err
25212 rm -f conftest.er1
25213 cat conftest.err >&5
25214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } && {
25216 test -z "$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25218 } && test -s conftest.$ac_objext; then
25219 :
25220 else
25221 $as_echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224 ac_cv_type_bits64_t=yes
25225 fi
25226
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 else
25229 $as_echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232
25233 fi
25234
25235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25236 fi
25237 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25238 $as_echo "$ac_cv_type_bits64_t" >&6; }
25239 if test "x$ac_cv_type_bits64_t" = x""yes; then
25240 :
25241 else
25242
25243 cat >>confdefs.h <<_ACEOF
25244 @%:@define bits64_t double
25245 _ACEOF
25246
25247 fi
25248
25249 fi
25250
25251
25252
25253 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25254 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25255 $as_echo_n "checking for ptrdiff_t... " >&6; }
25256 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25257 $as_echo_n "(cached) " >&6
25258 else
25259 ac_cv_type_ptrdiff_t=no
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h. */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25267 int
25268 main ()
25269 {
25270 if (sizeof (ptrdiff_t))
25271 return 0;
25272 ;
25273 return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25281 esac
25282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25283 $as_echo "$ac_try_echo") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25285 ac_status=$?
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
25289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.$ac_objext; then
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h. */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 $ac_includes_default
25301 int
25302 main ()
25303 {
25304 if (sizeof ((ptrdiff_t)))
25305 return 0;
25306 ;
25307 return 0;
25308 }
25309 _ACEOF
25310 rm -f conftest.$ac_objext
25311 if { (ac_try="$ac_compile"
25312 case "(($ac_try" in
25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25315 esac
25316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25317 $as_echo "$ac_try_echo") >&5
25318 (eval "$ac_compile") 2>conftest.er1
25319 ac_status=$?
25320 grep -v '^ *+' conftest.er1 >conftest.err
25321 rm -f conftest.er1
25322 cat conftest.err >&5
25323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } && {
25325 test -z "$ac_c_werror_flag" ||
25326 test ! -s conftest.err
25327 } && test -s conftest.$ac_objext; then
25328 :
25329 else
25330 $as_echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25332
25333 ac_cv_type_ptrdiff_t=yes
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337 else
25338 $as_echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341
25342 fi
25343
25344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345 fi
25346 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25347 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25348 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25349 :
25350 else
25351
25352 cat >>confdefs.h <<_ACEOF
25353 @%:@define ptrdiff_t int
25354 _ACEOF
25355
25356 fi
25357
25358 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25359 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25360 $as_echo_n "checking for ptrdiff_t... " >&6; }
25361 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25362 $as_echo_n "(cached) " >&6
25363 else
25364 ac_cv_type_ptrdiff_t=no
25365 cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h. */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25372 int
25373 main ()
25374 {
25375 if (sizeof (ptrdiff_t))
25376 return 0;
25377 ;
25378 return 0;
25379 }
25380 _ACEOF
25381 rm -f conftest.$ac_objext
25382 if { (ac_try="$ac_compile"
25383 case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25386 esac
25387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25388 $as_echo "$ac_try_echo") >&5
25389 (eval "$ac_compile") 2>conftest.er1
25390 ac_status=$?
25391 grep -v '^ *+' conftest.er1 >conftest.err
25392 rm -f conftest.er1
25393 cat conftest.err >&5
25394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); } && {
25396 test -z "$ac_c_werror_flag" ||
25397 test ! -s conftest.err
25398 } && test -s conftest.$ac_objext; then
25399 cat >conftest.$ac_ext <<_ACEOF
25400 /* confdefs.h. */
25401 _ACEOF
25402 cat confdefs.h >>conftest.$ac_ext
25403 cat >>conftest.$ac_ext <<_ACEOF
25404 /* end confdefs.h. */
25405 $ac_includes_default
25406 int
25407 main ()
25408 {
25409 if (sizeof ((ptrdiff_t)))
25410 return 0;
25411 ;
25412 return 0;
25413 }
25414 _ACEOF
25415 rm -f conftest.$ac_objext
25416 if { (ac_try="$ac_compile"
25417 case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25420 esac
25421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25422 $as_echo "$ac_try_echo") >&5
25423 (eval "$ac_compile") 2>conftest.er1
25424 ac_status=$?
25425 grep -v '^ *+' conftest.er1 >conftest.err
25426 rm -f conftest.er1
25427 cat conftest.err >&5
25428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest.$ac_objext; then
25433 :
25434 else
25435 $as_echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25437
25438 ac_cv_type_ptrdiff_t=yes
25439 fi
25440
25441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25442 else
25443 $as_echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446
25447 fi
25448
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 fi
25451 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25452 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25453 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25454 :
25455 else
25456
25457 cat >>confdefs.h <<_ACEOF
25458 @%:@define ptrdiff_t long
25459 _ACEOF
25460
25461 fi
25462
25463 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25464 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25465 $as_echo_n "checking for ptrdiff_t... " >&6; }
25466 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25467 $as_echo_n "(cached) " >&6
25468 else
25469 ac_cv_type_ptrdiff_t=no
25470 cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h. */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 $ac_includes_default
25477 int
25478 main ()
25479 {
25480 if (sizeof (ptrdiff_t))
25481 return 0;
25482 ;
25483 return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25491 esac
25492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25493 $as_echo "$ac_try_echo") >&5
25494 (eval "$ac_compile") 2>conftest.er1
25495 ac_status=$?
25496 grep -v '^ *+' conftest.er1 >conftest.err
25497 rm -f conftest.er1
25498 cat conftest.err >&5
25499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } && {
25501 test -z "$ac_c_werror_flag" ||
25502 test ! -s conftest.err
25503 } && test -s conftest.$ac_objext; then
25504 cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h. */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 $ac_includes_default
25511 int
25512 main ()
25513 {
25514 if (sizeof ((ptrdiff_t)))
25515 return 0;
25516 ;
25517 return 0;
25518 }
25519 _ACEOF
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25525 esac
25526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25527 $as_echo "$ac_try_echo") >&5
25528 (eval "$ac_compile") 2>conftest.er1
25529 ac_status=$?
25530 grep -v '^ *+' conftest.er1 >conftest.err
25531 rm -f conftest.er1
25532 cat conftest.err >&5
25533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } && {
25535 test -z "$ac_c_werror_flag" ||
25536 test ! -s conftest.err
25537 } && test -s conftest.$ac_objext; then
25538 :
25539 else
25540 $as_echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25542
25543 ac_cv_type_ptrdiff_t=yes
25544 fi
25545
25546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25547 else
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551
25552 fi
25553
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 fi
25556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25557 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25558 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25559 :
25560 else
25561
25562 cat >>confdefs.h <<_ACEOF
25563 @%:@define ptrdiff_t long long
25564 _ACEOF
25565
25566 fi
25567
25568 else
25569 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25570 $as_echo_n "checking for ptrdiff_t... " >&6; }
25571 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25572 $as_echo_n "(cached) " >&6
25573 else
25574 ac_cv_type_ptrdiff_t=no
25575 cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h. */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25582 int
25583 main ()
25584 {
25585 if (sizeof (ptrdiff_t))
25586 return 0;
25587 ;
25588 return 0;
25589 }
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25596 esac
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25600 ac_status=$?
25601 grep -v '^ *+' conftest.er1 >conftest.err
25602 rm -f conftest.er1
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 cat >conftest.$ac_ext <<_ACEOF
25610 /* confdefs.h. */
25611 _ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25615 $ac_includes_default
25616 int
25617 main ()
25618 {
25619 if (sizeof ((ptrdiff_t)))
25620 return 0;
25621 ;
25622 return 0;
25623 }
25624 _ACEOF
25625 rm -f conftest.$ac_objext
25626 if { (ac_try="$ac_compile"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25630 esac
25631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25632 $as_echo "$ac_try_echo") >&5
25633 (eval "$ac_compile") 2>conftest.er1
25634 ac_status=$?
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
25638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest.$ac_objext; then
25643 :
25644 else
25645 $as_echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648 ac_cv_type_ptrdiff_t=yes
25649 fi
25650
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25652 else
25653 $as_echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25655
25656
25657 fi
25658
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660 fi
25661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25662 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25663 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25664 :
25665 else
25666
25667 cat >>confdefs.h <<_ACEOF
25668 @%:@define ptrdiff_t int
25669 _ACEOF
25670
25671 fi
25672
25673 fi
25674
25675
25676 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25677 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25678 if test "${ac_cv_header_stat_broken+set}" = set; then
25679 $as_echo_n "(cached) " >&6
25680 else
25681 cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h. */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 #include <sys/types.h>
25688 #include <sys/stat.h>
25689
25690 #if defined S_ISBLK && defined S_IFDIR
25691 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25692 #endif
25693
25694 #if defined S_ISBLK && defined S_IFCHR
25695 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25696 #endif
25697
25698 #if defined S_ISLNK && defined S_IFREG
25699 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25700 #endif
25701
25702 #if defined S_ISSOCK && defined S_IFREG
25703 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25704 #endif
25705
25706 _ACEOF
25707 rm -f conftest.$ac_objext
25708 if { (ac_try="$ac_compile"
25709 case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25712 esac
25713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25714 $as_echo "$ac_try_echo") >&5
25715 (eval "$ac_compile") 2>conftest.er1
25716 ac_status=$?
25717 grep -v '^ *+' conftest.er1 >conftest.err
25718 rm -f conftest.er1
25719 cat conftest.err >&5
25720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } && {
25722 test -z "$ac_c_werror_flag" ||
25723 test ! -s conftest.err
25724 } && test -s conftest.$ac_objext; then
25725 ac_cv_header_stat_broken=no
25726 else
25727 $as_echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25729
25730 ac_cv_header_stat_broken=yes
25731 fi
25732
25733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25734 fi
25735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25736 $as_echo "$ac_cv_header_stat_broken" >&6; }
25737 if test $ac_cv_header_stat_broken = yes; then
25738
25739 cat >>confdefs.h <<\_ACEOF
25740 @%:@define STAT_MACROS_BROKEN 1
25741 _ACEOF
25742
25743 fi
25744
25745
25746 { $as_echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
25747 $as_echo_n "checking whether @%:@! works in shell scripts... " >&6; }
25748 if test "${ac_cv_sys_interpreter+set}" = set; then
25749 $as_echo_n "(cached) " >&6
25750 else
25751 echo '#! /bin/cat
25752 exit 69
25753 ' >conftest
25754 chmod u+x conftest
25755 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25756 if test $? -ne 69; then
25757 ac_cv_sys_interpreter=yes
25758 else
25759 ac_cv_sys_interpreter=no
25760 fi
25761 rm -f conftest
25762 fi
25763 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
25764 $as_echo "$ac_cv_sys_interpreter" >&6; }
25765 interpval=$ac_cv_sys_interpreter
25766
25767 if test $ac_cv_sys_interpreter = yes; then
25768 cat >>confdefs.h <<\_ACEOF
25769 @%:@define HAVE_HASH_BANG_EXEC 1
25770 _ACEOF
25771
25772 fi
25773
25774 if test "$ac_cv_func_lstat" = "no"; then
25775 { $as_echo "$as_me:$LINENO: checking for lstat" >&5
25776 $as_echo_n "checking for lstat... " >&6; }
25777 if test "${bash_cv_func_lstat+set}" = set; then
25778 $as_echo_n "(cached) " >&6
25779 else
25780 cat >conftest.$ac_ext <<_ACEOF
25781 /* confdefs.h. */
25782 _ACEOF
25783 cat confdefs.h >>conftest.$ac_ext
25784 cat >>conftest.$ac_ext <<_ACEOF
25785 /* end confdefs.h. */
25786
25787 #include <sys/types.h>
25788 #include <sys/stat.h>
25789
25790 int
25791 main ()
25792 {
25793 lstat(".",(struct stat *)0);
25794 ;
25795 return 0;
25796 }
25797 _ACEOF
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25803 esac
25804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25805 $as_echo "$ac_try_echo") >&5
25806 (eval "$ac_link") 2>conftest.er1
25807 ac_status=$?
25808 grep -v '^ *+' conftest.er1 >conftest.err
25809 rm -f conftest.er1
25810 cat conftest.err >&5
25811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); } && {
25813 test -z "$ac_c_werror_flag" ||
25814 test ! -s conftest.err
25815 } && test -s conftest$ac_exeext && {
25816 test "$cross_compiling" = yes ||
25817 $as_test_x conftest$ac_exeext
25818 }; then
25819 bash_cv_func_lstat=yes
25820 else
25821 $as_echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25823
25824 bash_cv_func_lstat=no
25825 fi
25826
25827 rm -rf conftest.dSYM
25828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25829 conftest$ac_exeext conftest.$ac_ext
25830 fi
25831 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
25832 $as_echo "$bash_cv_func_lstat" >&6; }
25833 if test $bash_cv_func_lstat = yes; then
25834 cat >>confdefs.h <<\_ACEOF
25835 @%:@define HAVE_LSTAT 1
25836 _ACEOF
25837
25838 fi
25839
25840 fi
25841
25842
25843 { $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
25844 $as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
25845 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
25846 $as_echo_n "(cached) " >&6
25847 else
25848 if test "$cross_compiling" = yes; then
25849 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
25850 $as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25851 bash_cv_func_ctype_nonascii=no
25852
25853 else
25854 cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h. */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860
25861 #ifdef HAVE_LOCALE_H
25862 #include <locale.h>
25863 #endif
25864 #include <stdio.h>
25865 #include <ctype.h>
25866
25867 main(c, v)
25868 int c;
25869 char *v[];
25870 {
25871 char *deflocale;
25872 unsigned char x;
25873 int r1, r2;
25874
25875 #ifdef HAVE_SETLOCALE
25876 /* We take a shot here. If that locale is not known, try the
25877 system default. We try this one because '\342' (226) is
25878 known to be a printable character in that locale. */
25879 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25880 if (deflocale == 0)
25881 deflocale = setlocale(LC_ALL, "");
25882 #endif
25883
25884 x = '\342';
25885 r1 = isprint(x);
25886 x -= 128;
25887 r2 = isprint(x);
25888 exit (r1 == 0 || r2 == 0);
25889 }
25890
25891 _ACEOF
25892 rm -f conftest$ac_exeext
25893 if { (ac_try="$ac_link"
25894 case "(($ac_try" in
25895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896 *) ac_try_echo=$ac_try;;
25897 esac
25898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25899 $as_echo "$ac_try_echo") >&5
25900 (eval "$ac_link") 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25904 { (case "(($ac_try" in
25905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25906 *) ac_try_echo=$ac_try;;
25907 esac
25908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_try") 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; }; then
25914 bash_cv_func_ctype_nonascii=yes
25915 else
25916 $as_echo "$as_me: program exited with status $ac_status" >&5
25917 $as_echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25919
25920 ( exit $ac_status )
25921 bash_cv_func_ctype_nonascii=no
25922 fi
25923 rm -rf conftest.dSYM
25924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25925 fi
25926
25927
25928 fi
25929
25930 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
25931 $as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25932 if test $bash_cv_func_ctype_nonascii = yes; then
25933 cat >>confdefs.h <<\_ACEOF
25934 @%:@define CTYPE_NON_ASCII 1
25935 _ACEOF
25936
25937 fi
25938
25939 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
25940 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
25941 if test "${bash_cv_dup2_broken+set}" = set; then
25942 $as_echo_n "(cached) " >&6
25943 else
25944 if test "$cross_compiling" = yes; then
25945 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
25946 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25947 bash_cv_dup2_broken=no
25948 else
25949 cat >conftest.$ac_ext <<_ACEOF
25950 /* confdefs.h. */
25951 _ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25955
25956 #include <sys/types.h>
25957 #include <fcntl.h>
25958 main()
25959 {
25960 int fd1, fd2, fl;
25961 fd1 = open("/dev/null", 2);
25962 if (fcntl(fd1, 2, 1) < 0)
25963 exit(1);
25964 fd2 = dup2(fd1, 1);
25965 if (fd2 < 0)
25966 exit(2);
25967 fl = fcntl(fd2, 1, 0);
25968 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25969 exit(fl != 1);
25970 }
25971
25972 _ACEOF
25973 rm -f conftest$ac_exeext
25974 if { (ac_try="$ac_link"
25975 case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25978 esac
25979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25980 $as_echo "$ac_try_echo") >&5
25981 (eval "$ac_link") 2>&5
25982 ac_status=$?
25983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25985 { (case "(($ac_try" in
25986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25987 *) ac_try_echo=$ac_try;;
25988 esac
25989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25990 $as_echo "$ac_try_echo") >&5
25991 (eval "$ac_try") 2>&5
25992 ac_status=$?
25993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; }; then
25995 bash_cv_dup2_broken=yes
25996 else
25997 $as_echo "$as_me: program exited with status $ac_status" >&5
25998 $as_echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26000
26001 ( exit $ac_status )
26002 bash_cv_dup2_broken=no
26003 fi
26004 rm -rf conftest.dSYM
26005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26006 fi
26007
26008
26009
26010 fi
26011
26012 { $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
26013 $as_echo "$bash_cv_dup2_broken" >&6; }
26014 if test $bash_cv_dup2_broken = yes; then
26015 cat >>confdefs.h <<\_ACEOF
26016 @%:@define DUP2_BROKEN 1
26017 _ACEOF
26018
26019 fi
26020
26021
26022 { $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
26023 $as_echo_n "checking whether pgrps need synchronization... " >&6; }
26024 if test "${bash_cv_pgrp_pipe+set}" = set; then
26025 $as_echo_n "(cached) " >&6
26026 else
26027 if test "$cross_compiling" = yes; then
26028 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
26029 $as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26030 bash_cv_pgrp_pipe=no
26031 else
26032 cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h. */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26038
26039 #ifdef HAVE_UNISTD_H
26040 # include <unistd.h>
26041 #endif
26042 main()
26043 {
26044 # ifdef GETPGRP_VOID
26045 # define getpgID() getpgrp()
26046 # else
26047 # define getpgID() getpgrp(0)
26048 # define setpgid(x,y) setpgrp(x,y)
26049 # endif
26050 int pid1, pid2, fds[2];
26051 int status;
26052 char ok;
26053
26054 switch (pid1 = fork()) {
26055 case -1:
26056 exit(1);
26057 case 0:
26058 setpgid(0, getpid());
26059 exit(0);
26060 }
26061 setpgid(pid1, pid1);
26062
26063 sleep(2); /* let first child die */
26064
26065 if (pipe(fds) < 0)
26066 exit(2);
26067
26068 switch (pid2 = fork()) {
26069 case -1:
26070 exit(3);
26071 case 0:
26072 setpgid(0, pid1);
26073 ok = getpgID() == pid1;
26074 write(fds[1], &ok, 1);
26075 exit(0);
26076 }
26077 setpgid(pid2, pid1);
26078
26079 close(fds[1]);
26080 if (read(fds[0], &ok, 1) != 1)
26081 exit(4);
26082 wait(&status);
26083 wait(&status);
26084 exit(ok ? 0 : 5);
26085 }
26086
26087 _ACEOF
26088 rm -f conftest$ac_exeext
26089 if { (ac_try="$ac_link"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26093 esac
26094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26095 $as_echo "$ac_try_echo") >&5
26096 (eval "$ac_link") 2>&5
26097 ac_status=$?
26098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26100 { (case "(($ac_try" in
26101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102 *) ac_try_echo=$ac_try;;
26103 esac
26104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26105 $as_echo "$ac_try_echo") >&5
26106 (eval "$ac_try") 2>&5
26107 ac_status=$?
26108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; }; then
26110 bash_cv_pgrp_pipe=no
26111 else
26112 $as_echo "$as_me: program exited with status $ac_status" >&5
26113 $as_echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116 ( exit $ac_status )
26117 bash_cv_pgrp_pipe=yes
26118 fi
26119 rm -rf conftest.dSYM
26120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26121 fi
26122
26123
26124
26125 fi
26126
26127 { $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
26128 $as_echo "$bash_cv_pgrp_pipe" >&6; }
26129 if test $bash_cv_pgrp_pipe = yes; then
26130 cat >>confdefs.h <<\_ACEOF
26131 @%:@define PGRP_PIPE 1
26132 _ACEOF
26133
26134 fi
26135
26136
26137 { $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
26138 $as_echo_n "checking for type of signal functions... " >&6; }
26139 if test "${bash_cv_signal_vintage+set}" = set; then
26140 $as_echo_n "(cached) " >&6
26141 else
26142
26143 cat >conftest.$ac_ext <<_ACEOF
26144 /* confdefs.h. */
26145 _ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 #include <signal.h>
26150 int
26151 main ()
26152 {
26153
26154 sigset_t ss;
26155 struct sigaction sa;
26156 sigemptyset(&ss); sigsuspend(&ss);
26157 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26158 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26159
26160 ;
26161 return 0;
26162 }
26163 _ACEOF
26164 rm -f conftest.$ac_objext conftest$ac_exeext
26165 if { (ac_try="$ac_link"
26166 case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26169 esac
26170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171 $as_echo "$ac_try_echo") >&5
26172 (eval "$ac_link") 2>conftest.er1
26173 ac_status=$?
26174 grep -v '^ *+' conftest.er1 >conftest.err
26175 rm -f conftest.er1
26176 cat conftest.err >&5
26177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && {
26179 test -z "$ac_c_werror_flag" ||
26180 test ! -s conftest.err
26181 } && test -s conftest$ac_exeext && {
26182 test "$cross_compiling" = yes ||
26183 $as_test_x conftest$ac_exeext
26184 }; then
26185 bash_cv_signal_vintage=posix
26186 else
26187 $as_echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190
26191 cat >conftest.$ac_ext <<_ACEOF
26192 /* confdefs.h. */
26193 _ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h. */
26197 #include <signal.h>
26198 int
26199 main ()
26200 {
26201
26202 int mask = sigmask(SIGINT);
26203 sigsetmask(mask); sigblock(mask); sigpause(mask);
26204
26205 ;
26206 return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest.$ac_objext conftest$ac_exeext
26210 if { (ac_try="$ac_link"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26214 esac
26215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26216 $as_echo "$ac_try_echo") >&5
26217 (eval "$ac_link") 2>conftest.er1
26218 ac_status=$?
26219 grep -v '^ *+' conftest.er1 >conftest.err
26220 rm -f conftest.er1
26221 cat conftest.err >&5
26222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); } && {
26224 test -z "$ac_c_werror_flag" ||
26225 test ! -s conftest.err
26226 } && test -s conftest$ac_exeext && {
26227 test "$cross_compiling" = yes ||
26228 $as_test_x conftest$ac_exeext
26229 }; then
26230 bash_cv_signal_vintage=4.2bsd
26231 else
26232 $as_echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26234
26235
26236 cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h. */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26242
26243 #include <signal.h>
26244 RETSIGTYPE foo() { }
26245 int
26246 main ()
26247 {
26248
26249 int mask = sigmask(SIGINT);
26250 sigset(SIGINT, foo); sigrelse(SIGINT);
26251 sighold(SIGINT); sigpause(SIGINT);
26252
26253 ;
26254 return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext conftest$ac_exeext
26258 if { (ac_try="$ac_link"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26262 esac
26263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26264 $as_echo "$ac_try_echo") >&5
26265 (eval "$ac_link") 2>conftest.er1
26266 ac_status=$?
26267 grep -v '^ *+' conftest.er1 >conftest.err
26268 rm -f conftest.er1
26269 cat conftest.err >&5
26270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); } && {
26272 test -z "$ac_c_werror_flag" ||
26273 test ! -s conftest.err
26274 } && test -s conftest$ac_exeext && {
26275 test "$cross_compiling" = yes ||
26276 $as_test_x conftest$ac_exeext
26277 }; then
26278 bash_cv_signal_vintage=svr3
26279 else
26280 $as_echo "$as_me: failed program was:" >&5
26281 sed 's/^/| /' conftest.$ac_ext >&5
26282
26283 bash_cv_signal_vintage=v7
26284
26285 fi
26286
26287 rm -rf conftest.dSYM
26288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26289 conftest$ac_exeext conftest.$ac_ext
26290
26291 fi
26292
26293 rm -rf conftest.dSYM
26294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26295 conftest$ac_exeext conftest.$ac_ext
26296
26297 fi
26298
26299 rm -rf conftest.dSYM
26300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26301 conftest$ac_exeext conftest.$ac_ext
26302
26303 fi
26304
26305 { $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26306 $as_echo "$bash_cv_signal_vintage" >&6; }
26307 if test "$bash_cv_signal_vintage" = posix; then
26308 cat >>confdefs.h <<\_ACEOF
26309 @%:@define HAVE_POSIX_SIGNALS 1
26310 _ACEOF
26311
26312 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26313 cat >>confdefs.h <<\_ACEOF
26314 @%:@define HAVE_BSD_SIGNALS 1
26315 _ACEOF
26316
26317 elif test "$bash_cv_signal_vintage" = svr3; then
26318 cat >>confdefs.h <<\_ACEOF
26319 @%:@define HAVE_USG_SIGHOLD 1
26320 _ACEOF
26321
26322 fi
26323
26324
26325 { $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
26326 $as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
26327 if test "${bash_cv_sys_errlist+set}" = set; then
26328 $as_echo_n "(cached) " >&6
26329 else
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h. */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26336 #include <errno.h>
26337 int
26338 main ()
26339 {
26340 extern char *sys_errlist[];
26341 extern int sys_nerr;
26342 char *msg = sys_errlist[sys_nerr - 1];
26343 ;
26344 return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (ac_try="$ac_link"
26349 case "(($ac_try" in
26350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351 *) ac_try_echo=$ac_try;;
26352 esac
26353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26354 $as_echo "$ac_try_echo") >&5
26355 (eval "$ac_link") 2>conftest.er1
26356 ac_status=$?
26357 grep -v '^ *+' conftest.er1 >conftest.err
26358 rm -f conftest.er1
26359 cat conftest.err >&5
26360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } && {
26362 test -z "$ac_c_werror_flag" ||
26363 test ! -s conftest.err
26364 } && test -s conftest$ac_exeext && {
26365 test "$cross_compiling" = yes ||
26366 $as_test_x conftest$ac_exeext
26367 }; then
26368 bash_cv_sys_errlist=yes
26369 else
26370 $as_echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373 bash_cv_sys_errlist=no
26374 fi
26375
26376 rm -rf conftest.dSYM
26377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26378 conftest$ac_exeext conftest.$ac_ext
26379 fi
26380 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
26381 $as_echo "$bash_cv_sys_errlist" >&6; }
26382 if test $bash_cv_sys_errlist = yes; then
26383 cat >>confdefs.h <<\_ACEOF
26384 @%:@define HAVE_SYS_ERRLIST 1
26385 _ACEOF
26386
26387 fi
26388
26389
26390 { $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
26391 $as_echo_n "checking for sys_siglist in system C library... " >&6; }
26392 if test "${bash_cv_sys_siglist+set}" = set; then
26393 $as_echo_n "(cached) " >&6
26394 else
26395 if test "$cross_compiling" = yes; then
26396 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
26397 $as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26398 bash_cv_sys_siglist=no
26399 else
26400 cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h. */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h. */
26406
26407 #include <sys/types.h>
26408 #include <signal.h>
26409 #ifdef HAVE_UNISTD_H
26410 #include <unistd.h>
26411 #endif
26412 #if !HAVE_DECL_SYS_SIGLIST
26413 extern char *sys_siglist[];
26414 #endif
26415 main()
26416 {
26417 char *msg = sys_siglist[2];
26418 exit(msg == 0);
26419 }
26420 _ACEOF
26421 rm -f conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26426 esac
26427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26428 $as_echo "$ac_try_echo") >&5
26429 (eval "$ac_link") 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26433 { (case "(($ac_try" in
26434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26435 *) ac_try_echo=$ac_try;;
26436 esac
26437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26438 $as_echo "$ac_try_echo") >&5
26439 (eval "$ac_try") 2>&5
26440 ac_status=$?
26441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; }; then
26443 bash_cv_sys_siglist=yes
26444 else
26445 $as_echo "$as_me: program exited with status $ac_status" >&5
26446 $as_echo "$as_me: failed program was:" >&5
26447 sed 's/^/| /' conftest.$ac_ext >&5
26448
26449 ( exit $ac_status )
26450 bash_cv_sys_siglist=no
26451 fi
26452 rm -rf conftest.dSYM
26453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26454 fi
26455
26456
26457 fi
26458
26459 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
26460 $as_echo "$bash_cv_sys_siglist" >&6; }
26461 if test $bash_cv_sys_siglist = yes; then
26462 cat >>confdefs.h <<\_ACEOF
26463 @%:@define HAVE_SYS_SIGLIST 1
26464 _ACEOF
26465
26466 fi
26467
26468 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
26469 $as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
26470 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
26471 $as_echo_n "(cached) " >&6
26472 else
26473 cat >conftest.$ac_ext <<_ACEOF
26474 /* confdefs.h. */
26475 _ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h. */
26479
26480 #include <sys/types.h>
26481 #include <signal.h>
26482 #ifdef HAVE_UNISTD_H
26483 #include <unistd.h>
26484 #endif
26485 int
26486 main ()
26487 {
26488 char *msg = _sys_siglist[2];
26489 ;
26490 return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext
26494 if { (ac_try="$ac_compile"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26498 esac
26499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26500 $as_echo "$ac_try_echo") >&5
26501 (eval "$ac_compile") 2>conftest.er1
26502 ac_status=$?
26503 grep -v '^ *+' conftest.er1 >conftest.err
26504 rm -f conftest.er1
26505 cat conftest.err >&5
26506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); } && {
26508 test -z "$ac_c_werror_flag" ||
26509 test ! -s conftest.err
26510 } && test -s conftest.$ac_objext; then
26511 bash_cv_decl_under_sys_siglist=yes
26512 else
26513 $as_echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26515
26516 bash_cv_decl_under_sys_siglist=no
26517 fi
26518
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520 fi
26521 { $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
26522 $as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26523 if test $bash_cv_decl_under_sys_siglist = yes; then
26524 cat >>confdefs.h <<\_ACEOF
26525 @%:@define UNDER_SYS_SIGLIST_DECLARED 1
26526 _ACEOF
26527
26528 fi
26529
26530
26531 { $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
26532 $as_echo_n "checking for _sys_siglist in system C library... " >&6; }
26533 if test "${bash_cv_under_sys_siglist+set}" = set; then
26534 $as_echo_n "(cached) " >&6
26535 else
26536 if test "$cross_compiling" = yes; then
26537 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
26538 $as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26539 bash_cv_under_sys_siglist=no
26540 else
26541 cat >conftest.$ac_ext <<_ACEOF
26542 /* confdefs.h. */
26543 _ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h. */
26547
26548 #include <sys/types.h>
26549 #include <signal.h>
26550 #ifdef HAVE_UNISTD_H
26551 #include <unistd.h>
26552 #endif
26553 #ifndef UNDER_SYS_SIGLIST_DECLARED
26554 extern char *_sys_siglist[];
26555 #endif
26556 main()
26557 {
26558 char *msg = (char *)_sys_siglist[2];
26559 exit(msg == 0);
26560 }
26561 _ACEOF
26562 rm -f conftest$ac_exeext
26563 if { (ac_try="$ac_link"
26564 case "(($ac_try" in
26565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26566 *) ac_try_echo=$ac_try;;
26567 esac
26568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26569 $as_echo "$ac_try_echo") >&5
26570 (eval "$ac_link") 2>&5
26571 ac_status=$?
26572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26574 { (case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26579 $as_echo "$ac_try_echo") >&5
26580 (eval "$ac_try") 2>&5
26581 ac_status=$?
26582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; }; then
26584 bash_cv_under_sys_siglist=yes
26585 else
26586 $as_echo "$as_me: program exited with status $ac_status" >&5
26587 $as_echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26589
26590 ( exit $ac_status )
26591 bash_cv_under_sys_siglist=no
26592 fi
26593 rm -rf conftest.dSYM
26594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26595 fi
26596
26597
26598 fi
26599
26600 { $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
26601 $as_echo "$bash_cv_under_sys_siglist" >&6; }
26602 if test $bash_cv_under_sys_siglist = yes; then
26603 cat >>confdefs.h <<\_ACEOF
26604 @%:@define HAVE_UNDER_SYS_SIGLIST 1
26605 _ACEOF
26606
26607 fi
26608
26609
26610 { $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
26611 $as_echo_n "checking whether signal handlers are of type void... " >&6; }
26612 if test "${bash_cv_void_sighandler+set}" = set; then
26613 $as_echo_n "(cached) " >&6
26614 else
26615 cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h. */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621 #include <sys/types.h>
26622 #include <signal.h>
26623 #ifdef signal
26624 #undef signal
26625 #endif
26626 #ifdef __cplusplus
26627 extern "C"
26628 #endif
26629 void (*signal ()) ();
26630 int
26631 main ()
26632 {
26633 int i;
26634 ;
26635 return 0;
26636 }
26637 _ACEOF
26638 rm -f conftest.$ac_objext
26639 if { (ac_try="$ac_compile"
26640 case "(($ac_try" in
26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642 *) ac_try_echo=$ac_try;;
26643 esac
26644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26645 $as_echo "$ac_try_echo") >&5
26646 (eval "$ac_compile") 2>conftest.er1
26647 ac_status=$?
26648 grep -v '^ *+' conftest.er1 >conftest.err
26649 rm -f conftest.er1
26650 cat conftest.err >&5
26651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } && {
26653 test -z "$ac_c_werror_flag" ||
26654 test ! -s conftest.err
26655 } && test -s conftest.$ac_objext; then
26656 bash_cv_void_sighandler=yes
26657 else
26658 $as_echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26660
26661 bash_cv_void_sighandler=no
26662 fi
26663
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26665 fi
26666 { $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
26667 $as_echo "$bash_cv_void_sighandler" >&6; }
26668 if test $bash_cv_void_sighandler = yes; then
26669 cat >>confdefs.h <<\_ACEOF
26670 @%:@define VOID_SIGHANDLER 1
26671 _ACEOF
26672
26673 fi
26674
26675
26676
26677 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
26678 $as_echo_n "checking for clock_t... " >&6; }
26679 if test "${bash_cv_type_clock_t+set}" = set; then
26680 $as_echo_n "(cached) " >&6
26681 else
26682 cat >conftest.$ac_ext <<_ACEOF
26683 /* confdefs.h. */
26684 _ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h. */
26688 #include <sys/types.h>
26689 #if STDC_HEADERS
26690 #include <stdlib.h>
26691 #include <stddef.h>
26692 #endif
26693 #if HAVE_INTTYPES_H
26694 #include <inttypes.h>
26695 #endif
26696 #if HAVE_STDINT_H
26697 #include <stdint.h>
26698 #endif
26699 #include <sys/times.h>
26700
26701 _ACEOF
26702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26703 $EGREP "clock_t" >/dev/null 2>&1; then
26704 bash_cv_type_clock_t=yes
26705 else
26706 bash_cv_type_clock_t=no
26707 fi
26708 rm -f conftest*
26709
26710 fi
26711
26712 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
26713 $as_echo "$bash_cv_type_clock_t" >&6; }
26714
26715 if test $bash_cv_type_clock_t = no; then
26716 cat >>confdefs.h <<_ACEOF
26717 @%:@define clock_t long
26718 _ACEOF
26719
26720 fi
26721
26722
26723
26724 { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26725 $as_echo_n "checking for sigset_t... " >&6; }
26726 if test "${bash_cv_type_sigset_t+set}" = set; then
26727 $as_echo_n "(cached) " >&6
26728 else
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h. */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 #include <sys/types.h>
26736 #if STDC_HEADERS
26737 #include <stdlib.h>
26738 #include <stddef.h>
26739 #endif
26740 #if HAVE_INTTYPES_H
26741 #include <inttypes.h>
26742 #endif
26743 #if HAVE_STDINT_H
26744 #include <stdint.h>
26745 #endif
26746 #include <signal.h>
26747
26748 _ACEOF
26749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26750 $EGREP "sigset_t" >/dev/null 2>&1; then
26751 bash_cv_type_sigset_t=yes
26752 else
26753 bash_cv_type_sigset_t=no
26754 fi
26755 rm -f conftest*
26756
26757 fi
26758
26759 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26760 $as_echo "$bash_cv_type_sigset_t" >&6; }
26761
26762 if test $bash_cv_type_sigset_t = no; then
26763 cat >>confdefs.h <<_ACEOF
26764 @%:@define sigset_t int
26765 _ACEOF
26766
26767 fi
26768
26769
26770
26771 { $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26772 $as_echo_n "checking for quad_t... " >&6; }
26773 if test "${bash_cv_type_quad_t+set}" = set; then
26774 $as_echo_n "(cached) " >&6
26775 else
26776 cat >conftest.$ac_ext <<_ACEOF
26777 /* confdefs.h. */
26778 _ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <sys/types.h>
26783 #if STDC_HEADERS
26784 #include <stdlib.h>
26785 #include <stddef.h>
26786 #endif
26787 #if HAVE_INTTYPES_H
26788 #include <inttypes.h>
26789 #endif
26790 #if HAVE_STDINT_H
26791 #include <stdint.h>
26792 #endif
26793
26794
26795 _ACEOF
26796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26797 $EGREP "quad_t" >/dev/null 2>&1; then
26798 bash_cv_type_quad_t=yes
26799 else
26800 bash_cv_type_quad_t=no
26801 fi
26802 rm -f conftest*
26803
26804 fi
26805
26806 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26807 $as_echo "$bash_cv_type_quad_t" >&6; }
26808 if test $bash_cv_type_quad_t = yes; then
26809 cat >>confdefs.h <<\_ACEOF
26810 @%:@define HAVE_QUAD_T 1
26811 _ACEOF
26812
26813 fi
26814 if test $bash_cv_type_quad_t = no; then
26815 cat >>confdefs.h <<_ACEOF
26816 @%:@define quad_t long
26817 _ACEOF
26818
26819 fi
26820
26821
26822
26823 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26824 $as_echo_n "checking for intmax_t... " >&6; }
26825 if test "${bash_cv_type_intmax_t+set}" = set; then
26826 $as_echo_n "(cached) " >&6
26827 else
26828 cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h. */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 #include <sys/types.h>
26835 #if STDC_HEADERS
26836 #include <stdlib.h>
26837 #include <stddef.h>
26838 #endif
26839 #if HAVE_INTTYPES_H
26840 #include <inttypes.h>
26841 #endif
26842 #if HAVE_STDINT_H
26843 #include <stdint.h>
26844 #endif
26845
26846
26847 _ACEOF
26848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26849 $EGREP "intmax_t" >/dev/null 2>&1; then
26850 bash_cv_type_intmax_t=yes
26851 else
26852 bash_cv_type_intmax_t=no
26853 fi
26854 rm -f conftest*
26855
26856 fi
26857
26858 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26859 $as_echo "$bash_cv_type_intmax_t" >&6; }
26860
26861 if test $bash_cv_type_intmax_t = no; then
26862 cat >>confdefs.h <<_ACEOF
26863 @%:@define intmax_t $bash_cv_type_long_long
26864 _ACEOF
26865
26866 fi
26867
26868
26869
26870 { $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26871 $as_echo_n "checking for uintmax_t... " >&6; }
26872 if test "${bash_cv_type_uintmax_t+set}" = set; then
26873 $as_echo_n "(cached) " >&6
26874 else
26875 cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h. */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26881 #include <sys/types.h>
26882 #if STDC_HEADERS
26883 #include <stdlib.h>
26884 #include <stddef.h>
26885 #endif
26886 #if HAVE_INTTYPES_H
26887 #include <inttypes.h>
26888 #endif
26889 #if HAVE_STDINT_H
26890 #include <stdint.h>
26891 #endif
26892
26893
26894 _ACEOF
26895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26896 $EGREP "uintmax_t" >/dev/null 2>&1; then
26897 bash_cv_type_uintmax_t=yes
26898 else
26899 bash_cv_type_uintmax_t=no
26900 fi
26901 rm -f conftest*
26902
26903 fi
26904
26905 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26906 $as_echo "$bash_cv_type_uintmax_t" >&6; }
26907
26908 if test $bash_cv_type_uintmax_t = no; then
26909 cat >>confdefs.h <<_ACEOF
26910 @%:@define uintmax_t $bash_cv_type_unsigned_long_long
26911 _ACEOF
26912
26913 fi
26914
26915 if test "$ac_cv_header_sys_socket_h" = "yes"; then
26916
26917
26918 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26919 $as_echo_n "checking for socklen_t... " >&6; }
26920 if test "${bash_cv_type_socklen_t+set}" = set; then
26921 $as_echo_n "(cached) " >&6
26922 else
26923 cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h. */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 #include <sys/types.h>
26930 #if STDC_HEADERS
26931 #include <stdlib.h>
26932 #include <stddef.h>
26933 #endif
26934 #if HAVE_INTTYPES_H
26935 #include <inttypes.h>
26936 #endif
26937 #if HAVE_STDINT_H
26938 #include <stdint.h>
26939 #endif
26940 #include <sys/socket.h>
26941
26942 _ACEOF
26943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26944 $EGREP "socklen_t" >/dev/null 2>&1; then
26945 bash_cv_type_socklen_t=yes
26946 else
26947 bash_cv_type_socklen_t=no
26948 fi
26949 rm -f conftest*
26950
26951 fi
26952
26953 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26954 $as_echo "$bash_cv_type_socklen_t" >&6; }
26955 if test $bash_cv_type_socklen_t = yes; then
26956 cat >>confdefs.h <<\_ACEOF
26957 @%:@define HAVE_SOCKLEN_T 1
26958 _ACEOF
26959
26960 fi
26961 if test $bash_cv_type_socklen_t = no; then
26962 cat >>confdefs.h <<_ACEOF
26963 @%:@define socklen_t int
26964 _ACEOF
26965
26966 fi
26967
26968 fi
26969 { $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26970 $as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26971 if test "${bash_cv_type_rlimit+set}" = set; then
26972 $as_echo_n "(cached) " >&6
26973 else
26974 cat >conftest.$ac_ext <<_ACEOF
26975 /* confdefs.h. */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26980 #include <sys/types.h>
26981 #include <sys/resource.h>
26982 int
26983 main ()
26984 {
26985 rlim_t xxx;
26986 ;
26987 return 0;
26988 }
26989 _ACEOF
26990 rm -f conftest.$ac_objext
26991 if { (ac_try="$ac_compile"
26992 case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995 esac
26996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26997 $as_echo "$ac_try_echo") >&5
26998 (eval "$ac_compile") 2>conftest.er1
26999 ac_status=$?
27000 grep -v '^ *+' conftest.er1 >conftest.err
27001 rm -f conftest.er1
27002 cat conftest.err >&5
27003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } && {
27005 test -z "$ac_c_werror_flag" ||
27006 test ! -s conftest.err
27007 } && test -s conftest.$ac_objext; then
27008 bash_cv_type_rlimit=rlim_t
27009 else
27010 $as_echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013
27014 if test "$cross_compiling" = yes; then
27015 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27016 $as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27017 bash_cv_type_rlimit=long
27018 else
27019 cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h. */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025
27026 #include <sys/types.h>
27027 #include <sys/time.h>
27028 #include <sys/resource.h>
27029 main()
27030 {
27031 #ifdef HAVE_QUAD_T
27032 struct rlimit rl;
27033 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27034 exit(0);
27035 #endif
27036 exit(1);
27037 }
27038 _ACEOF
27039 rm -f conftest$ac_exeext
27040 if { (ac_try="$ac_link"
27041 case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27044 esac
27045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27046 $as_echo "$ac_try_echo") >&5
27047 (eval "$ac_link") 2>&5
27048 ac_status=$?
27049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27051 { (case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27054 esac
27055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27056 $as_echo "$ac_try_echo") >&5
27057 (eval "$ac_try") 2>&5
27058 ac_status=$?
27059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27061 bash_cv_type_rlimit=quad_t
27062 else
27063 $as_echo "$as_me: program exited with status $ac_status" >&5
27064 $as_echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27066
27067 ( exit $ac_status )
27068 bash_cv_type_rlimit=long
27069 fi
27070 rm -rf conftest.dSYM
27071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27072 fi
27073
27074
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078
27079 fi
27080
27081 { $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27082 $as_echo "$bash_cv_type_rlimit" >&6; }
27083 if test $bash_cv_type_rlimit = quad_t; then
27084 cat >>confdefs.h <<\_ACEOF
27085 @%:@define RLIMTYPE quad_t
27086 _ACEOF
27087
27088 elif test $bash_cv_type_rlimit = rlim_t; then
27089 cat >>confdefs.h <<\_ACEOF
27090 @%:@define RLIMTYPE rlim_t
27091 _ACEOF
27092
27093 fi
27094
27095
27096 # The cast to long int works around a bug in the HP C Compiler
27097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27099 # This bug is HP SR number 8606223364.
27100 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27101 $as_echo_n "checking size of intmax_t... " >&6; }
27102 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27103 $as_echo_n "(cached) " >&6
27104 else
27105 if test "$cross_compiling" = yes; then
27106 # Depending upon the size, compute the lo and hi bounds.
27107 cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h. */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 $ac_includes_default
27114 int
27115 main ()
27116 {
27117 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)@:>@;
27118 test_array @<:@0@:>@ = 0
27119
27120 ;
27121 return 0;
27122 }
27123 _ACEOF
27124 rm -f conftest.$ac_objext
27125 if { (ac_try="$ac_compile"
27126 case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27129 esac
27130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27131 $as_echo "$ac_try_echo") >&5
27132 (eval "$ac_compile") 2>conftest.er1
27133 ac_status=$?
27134 grep -v '^ *+' conftest.er1 >conftest.err
27135 rm -f conftest.er1
27136 cat conftest.err >&5
27137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } && {
27139 test -z "$ac_c_werror_flag" ||
27140 test ! -s conftest.err
27141 } && test -s conftest.$ac_objext; then
27142 ac_lo=0 ac_mid=0
27143 while :; do
27144 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h. */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h. */
27150 $ac_includes_default
27151 int
27152 main ()
27153 {
27154 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)@:>@;
27155 test_array @<:@0@:>@ = 0
27156
27157 ;
27158 return 0;
27159 }
27160 _ACEOF
27161 rm -f conftest.$ac_objext
27162 if { (ac_try="$ac_compile"
27163 case "(($ac_try" in
27164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27165 *) ac_try_echo=$ac_try;;
27166 esac
27167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27168 $as_echo "$ac_try_echo") >&5
27169 (eval "$ac_compile") 2>conftest.er1
27170 ac_status=$?
27171 grep -v '^ *+' conftest.er1 >conftest.err
27172 rm -f conftest.er1
27173 cat conftest.err >&5
27174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); } && {
27176 test -z "$ac_c_werror_flag" ||
27177 test ! -s conftest.err
27178 } && test -s conftest.$ac_objext; then
27179 ac_hi=$ac_mid; break
27180 else
27181 $as_echo "$as_me: failed program was:" >&5
27182 sed 's/^/| /' conftest.$ac_ext >&5
27183
27184 ac_lo=`expr $ac_mid + 1`
27185 if test $ac_lo -le $ac_mid; then
27186 ac_lo= ac_hi=
27187 break
27188 fi
27189 ac_mid=`expr 2 '*' $ac_mid + 1`
27190 fi
27191
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27193 done
27194 else
27195 $as_echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 cat >conftest.$ac_ext <<_ACEOF
27199 /* confdefs.h. */
27200 _ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27204 $ac_includes_default
27205 int
27206 main ()
27207 {
27208 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)@:>@;
27209 test_array @<:@0@:>@ = 0
27210
27211 ;
27212 return 0;
27213 }
27214 _ACEOF
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219 *) ac_try_echo=$ac_try;;
27220 esac
27221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27222 $as_echo "$ac_try_echo") >&5
27223 (eval "$ac_compile") 2>conftest.er1
27224 ac_status=$?
27225 grep -v '^ *+' conftest.er1 >conftest.err
27226 rm -f conftest.er1
27227 cat conftest.err >&5
27228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } && {
27230 test -z "$ac_c_werror_flag" ||
27231 test ! -s conftest.err
27232 } && test -s conftest.$ac_objext; then
27233 ac_hi=-1 ac_mid=-1
27234 while :; do
27235 cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h. */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27241 $ac_includes_default
27242 int
27243 main ()
27244 {
27245 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)@:>@;
27246 test_array @<:@0@:>@ = 0
27247
27248 ;
27249 return 0;
27250 }
27251 _ACEOF
27252 rm -f conftest.$ac_objext
27253 if { (ac_try="$ac_compile"
27254 case "(($ac_try" in
27255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256 *) ac_try_echo=$ac_try;;
27257 esac
27258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27259 $as_echo "$ac_try_echo") >&5
27260 (eval "$ac_compile") 2>conftest.er1
27261 ac_status=$?
27262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
27265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } && {
27267 test -z "$ac_c_werror_flag" ||
27268 test ! -s conftest.err
27269 } && test -s conftest.$ac_objext; then
27270 ac_lo=$ac_mid; break
27271 else
27272 $as_echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275 ac_hi=`expr '(' $ac_mid ')' - 1`
27276 if test $ac_mid -le $ac_hi; then
27277 ac_lo= ac_hi=
27278 break
27279 fi
27280 ac_mid=`expr 2 '*' $ac_mid`
27281 fi
27282
27283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284 done
27285 else
27286 $as_echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27288
27289 ac_lo= ac_hi=
27290 fi
27291
27292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27293 fi
27294
27295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27296 # Binary search between lo and hi bounds.
27297 while test "x$ac_lo" != "x$ac_hi"; do
27298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27299 cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h. */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 $ac_includes_default
27306 int
27307 main ()
27308 {
27309 static int test_array @<:@1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)@:>@;
27310 test_array @<:@0@:>@ = 0
27311
27312 ;
27313 return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext
27317 if { (ac_try="$ac_compile"
27318 case "(($ac_try" in
27319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320 *) ac_try_echo=$ac_try;;
27321 esac
27322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27323 $as_echo "$ac_try_echo") >&5
27324 (eval "$ac_compile") 2>conftest.er1
27325 ac_status=$?
27326 grep -v '^ *+' conftest.er1 >conftest.err
27327 rm -f conftest.er1
27328 cat conftest.err >&5
27329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } && {
27331 test -z "$ac_c_werror_flag" ||
27332 test ! -s conftest.err
27333 } && test -s conftest.$ac_objext; then
27334 ac_hi=$ac_mid
27335 else
27336 $as_echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27338
27339 ac_lo=`expr '(' $ac_mid ')' + 1`
27340 fi
27341
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343 done
27344 case $ac_lo in
27345 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27346 '') if test "$ac_cv_type_intmax_t" = yes; then
27347 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27349 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27350 See \`config.log' for more details." >&5
27351 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27352 See \`config.log' for more details." >&2;}
27353 { (exit 77); exit 77; }; }; }
27354 else
27355 ac_cv_sizeof_intmax_t=0
27356 fi ;;
27357 esac
27358 else
27359 cat >conftest.$ac_ext <<_ACEOF
27360 /* confdefs.h. */
27361 _ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27365 $ac_includes_default
27366 static long int longval () { return (long int) (sizeof (intmax_t)); }
27367 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27368 @%:@include <stdio.h>
27369 @%:@include <stdlib.h>
27370 int
27371 main ()
27372 {
27373
27374 FILE *f = fopen ("conftest.val", "w");
27375 if (! f)
27376 return 1;
27377 if (((long int) (sizeof (intmax_t))) < 0)
27378 {
27379 long int i = longval ();
27380 if (i != ((long int) (sizeof (intmax_t))))
27381 return 1;
27382 fprintf (f, "%ld", i);
27383 }
27384 else
27385 {
27386 unsigned long int i = ulongval ();
27387 if (i != ((long int) (sizeof (intmax_t))))
27388 return 1;
27389 fprintf (f, "%lu", i);
27390 }
27391 /* Do not output a trailing newline, as this causes \r\n confusion
27392 on some platforms. */
27393 return ferror (f) || fclose (f) != 0;
27394
27395 ;
27396 return 0;
27397 }
27398 _ACEOF
27399 rm -f conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27404 esac
27405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27406 $as_echo "$ac_try_echo") >&5
27407 (eval "$ac_link") 2>&5
27408 ac_status=$?
27409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27411 { (case "(($ac_try" in
27412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27414 esac
27415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27416 $as_echo "$ac_try_echo") >&5
27417 (eval "$ac_try") 2>&5
27418 ac_status=$?
27419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); }; }; then
27421 ac_cv_sizeof_intmax_t=`cat conftest.val`
27422 else
27423 $as_echo "$as_me: program exited with status $ac_status" >&5
27424 $as_echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27426
27427 ( exit $ac_status )
27428 if test "$ac_cv_type_intmax_t" = yes; then
27429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27431 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27432 See \`config.log' for more details." >&5
27433 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27434 See \`config.log' for more details." >&2;}
27435 { (exit 77); exit 77; }; }; }
27436 else
27437 ac_cv_sizeof_intmax_t=0
27438 fi
27439 fi
27440 rm -rf conftest.dSYM
27441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27442 fi
27443 rm -f conftest.val
27444 fi
27445 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
27446 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
27447
27448
27449
27450 cat >>confdefs.h <<_ACEOF
27451 @%:@define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
27452 _ACEOF
27453
27454
27455
27456
27457 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27458 $as_echo_n "checking for struct termios.c_line... " >&6; }
27459 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
27460 $as_echo_n "(cached) " >&6
27461 else
27462 cat >conftest.$ac_ext <<_ACEOF
27463 /* confdefs.h. */
27464 _ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27468
27469 #include <sys/types.h>
27470 #include <termios.h>
27471
27472
27473 int
27474 main ()
27475 {
27476 static struct termios ac_aggr;
27477 if (ac_aggr.c_line)
27478 return 0;
27479 ;
27480 return 0;
27481 }
27482 _ACEOF
27483 rm -f conftest.$ac_objext
27484 if { (ac_try="$ac_compile"
27485 case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27488 esac
27489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27490 $as_echo "$ac_try_echo") >&5
27491 (eval "$ac_compile") 2>conftest.er1
27492 ac_status=$?
27493 grep -v '^ *+' conftest.er1 >conftest.err
27494 rm -f conftest.er1
27495 cat conftest.err >&5
27496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); } && {
27498 test -z "$ac_c_werror_flag" ||
27499 test ! -s conftest.err
27500 } && test -s conftest.$ac_objext; then
27501 ac_cv_member_struct_termios_c_line=yes
27502 else
27503 $as_echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27505
27506 cat >conftest.$ac_ext <<_ACEOF
27507 /* confdefs.h. */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27512
27513 #include <sys/types.h>
27514 #include <termios.h>
27515
27516
27517 int
27518 main ()
27519 {
27520 static struct termios ac_aggr;
27521 if (sizeof ac_aggr.c_line)
27522 return 0;
27523 ;
27524 return 0;
27525 }
27526 _ACEOF
27527 rm -f conftest.$ac_objext
27528 if { (ac_try="$ac_compile"
27529 case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27532 esac
27533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27534 $as_echo "$ac_try_echo") >&5
27535 (eval "$ac_compile") 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } && {
27542 test -z "$ac_c_werror_flag" ||
27543 test ! -s conftest.err
27544 } && test -s conftest.$ac_objext; then
27545 ac_cv_member_struct_termios_c_line=yes
27546 else
27547 $as_echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550 ac_cv_member_struct_termios_c_line=no
27551 fi
27552
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 fi
27555
27556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27557 fi
27558 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27559 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27560 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
27561 cat >>confdefs.h <<\_ACEOF
27562 @%:@define TERMIOS_LDISC 1
27563 _ACEOF
27564
27565 fi
27566
27567
27568
27569 { $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27570 $as_echo_n "checking for struct termio.c_line... " >&6; }
27571 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27572 $as_echo_n "(cached) " >&6
27573 else
27574 cat >conftest.$ac_ext <<_ACEOF
27575 /* confdefs.h. */
27576 _ACEOF
27577 cat confdefs.h >>conftest.$ac_ext
27578 cat >>conftest.$ac_ext <<_ACEOF
27579 /* end confdefs.h. */
27580
27581 #include <sys/types.h>
27582 #include <termio.h>
27583
27584
27585 int
27586 main ()
27587 {
27588 static struct termio ac_aggr;
27589 if (ac_aggr.c_line)
27590 return 0;
27591 ;
27592 return 0;
27593 }
27594 _ACEOF
27595 rm -f conftest.$ac_objext
27596 if { (ac_try="$ac_compile"
27597 case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27600 esac
27601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27602 $as_echo "$ac_try_echo") >&5
27603 (eval "$ac_compile") 2>conftest.er1
27604 ac_status=$?
27605 grep -v '^ *+' conftest.er1 >conftest.err
27606 rm -f conftest.er1
27607 cat conftest.err >&5
27608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } && {
27610 test -z "$ac_c_werror_flag" ||
27611 test ! -s conftest.err
27612 } && test -s conftest.$ac_objext; then
27613 ac_cv_member_struct_termio_c_line=yes
27614 else
27615 $as_echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618 cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h. */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624
27625 #include <sys/types.h>
27626 #include <termio.h>
27627
27628
27629 int
27630 main ()
27631 {
27632 static struct termio ac_aggr;
27633 if (sizeof ac_aggr.c_line)
27634 return 0;
27635 ;
27636 return 0;
27637 }
27638 _ACEOF
27639 rm -f conftest.$ac_objext
27640 if { (ac_try="$ac_compile"
27641 case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27644 esac
27645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27646 $as_echo "$ac_try_echo") >&5
27647 (eval "$ac_compile") 2>conftest.er1
27648 ac_status=$?
27649 grep -v '^ *+' conftest.er1 >conftest.err
27650 rm -f conftest.er1
27651 cat conftest.err >&5
27652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); } && {
27654 test -z "$ac_c_werror_flag" ||
27655 test ! -s conftest.err
27656 } && test -s conftest.$ac_objext; then
27657 ac_cv_member_struct_termio_c_line=yes
27658 else
27659 $as_echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662 ac_cv_member_struct_termio_c_line=no
27663 fi
27664
27665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27666 fi
27667
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669 fi
27670 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27671 $as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27672 if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27673 cat >>confdefs.h <<\_ACEOF
27674 @%:@define TERMIO_LDISC 1
27675 _ACEOF
27676
27677 fi
27678
27679
27680
27681 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
27682 $as_echo_n "checking for struct dirent.d_ino... " >&6; }
27683 if test "${bash_cv_dirent_has_dino+set}" = set; then
27684 $as_echo_n "(cached) " >&6
27685 else
27686 cat >conftest.$ac_ext <<_ACEOF
27687 /* confdefs.h. */
27688 _ACEOF
27689 cat confdefs.h >>conftest.$ac_ext
27690 cat >>conftest.$ac_ext <<_ACEOF
27691 /* end confdefs.h. */
27692
27693 #include <stdio.h>
27694 #include <sys/types.h>
27695 #ifdef HAVE_UNISTD_H
27696 # include <unistd.h>
27697 #endif /* HAVE_UNISTD_H */
27698 #if defined(HAVE_DIRENT_H)
27699 # include <dirent.h>
27700 #else
27701 # define dirent direct
27702 # ifdef HAVE_SYS_NDIR_H
27703 # include <sys/ndir.h>
27704 # endif /* SYSNDIR */
27705 # ifdef HAVE_SYS_DIR_H
27706 # include <sys/dir.h>
27707 # endif /* SYSDIR */
27708 # ifdef HAVE_NDIR_H
27709 # include <ndir.h>
27710 # endif
27711 #endif /* HAVE_DIRENT_H */
27712
27713 int
27714 main ()
27715 {
27716
27717 struct dirent d; int z; z = d.d_ino;
27718
27719 ;
27720 return 0;
27721 }
27722 _ACEOF
27723 rm -f conftest.$ac_objext
27724 if { (ac_try="$ac_compile"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27728 esac
27729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27730 $as_echo "$ac_try_echo") >&5
27731 (eval "$ac_compile") 2>conftest.er1
27732 ac_status=$?
27733 grep -v '^ *+' conftest.er1 >conftest.err
27734 rm -f conftest.er1
27735 cat conftest.err >&5
27736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } && {
27738 test -z "$ac_c_werror_flag" ||
27739 test ! -s conftest.err
27740 } && test -s conftest.$ac_objext; then
27741 bash_cv_dirent_has_dino=yes
27742 else
27743 $as_echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27745
27746 bash_cv_dirent_has_dino=no
27747 fi
27748
27749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27750 fi
27751
27752 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
27753 $as_echo "$bash_cv_dirent_has_dino" >&6; }
27754 if test $bash_cv_dirent_has_dino = yes; then
27755 cat >>confdefs.h <<\_ACEOF
27756 @%:@define HAVE_STRUCT_DIRENT_D_INO 1
27757 _ACEOF
27758
27759 fi
27760
27761
27762 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
27763 $as_echo_n "checking for struct dirent.d_fileno... " >&6; }
27764 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
27765 $as_echo_n "(cached) " >&6
27766 else
27767 cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h. */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773
27774 #include <stdio.h>
27775 #include <sys/types.h>
27776 #ifdef HAVE_UNISTD_H
27777 # include <unistd.h>
27778 #endif /* HAVE_UNISTD_H */
27779 #if defined(HAVE_DIRENT_H)
27780 # include <dirent.h>
27781 #else
27782 # define dirent direct
27783 # ifdef HAVE_SYS_NDIR_H
27784 # include <sys/ndir.h>
27785 # endif /* SYSNDIR */
27786 # ifdef HAVE_SYS_DIR_H
27787 # include <sys/dir.h>
27788 # endif /* SYSDIR */
27789 # ifdef HAVE_NDIR_H
27790 # include <ndir.h>
27791 # endif
27792 #endif /* HAVE_DIRENT_H */
27793
27794 int
27795 main ()
27796 {
27797
27798 struct dirent d; int z; z = d.d_fileno;
27799
27800 ;
27801 return 0;
27802 }
27803 _ACEOF
27804 rm -f conftest.$ac_objext
27805 if { (ac_try="$ac_compile"
27806 case "(($ac_try" in
27807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808 *) ac_try_echo=$ac_try;;
27809 esac
27810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27811 $as_echo "$ac_try_echo") >&5
27812 (eval "$ac_compile") 2>conftest.er1
27813 ac_status=$?
27814 grep -v '^ *+' conftest.er1 >conftest.err
27815 rm -f conftest.er1
27816 cat conftest.err >&5
27817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } && {
27819 test -z "$ac_c_werror_flag" ||
27820 test ! -s conftest.err
27821 } && test -s conftest.$ac_objext; then
27822 bash_cv_dirent_has_d_fileno=yes
27823 else
27824 $as_echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27826
27827 bash_cv_dirent_has_d_fileno=no
27828 fi
27829
27830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27831 fi
27832
27833 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
27834 $as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
27835 if test $bash_cv_dirent_has_d_fileno = yes; then
27836 cat >>confdefs.h <<\_ACEOF
27837 @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1
27838 _ACEOF
27839
27840 fi
27841
27842
27843 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
27844 $as_echo_n "checking for struct dirent.d_namlen... " >&6; }
27845 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
27846 $as_echo_n "(cached) " >&6
27847 else
27848 cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h. */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27854
27855 #include <stdio.h>
27856 #include <sys/types.h>
27857 #ifdef HAVE_UNISTD_H
27858 # include <unistd.h>
27859 #endif /* HAVE_UNISTD_H */
27860 #if defined(HAVE_DIRENT_H)
27861 # include <dirent.h>
27862 #else
27863 # define dirent direct
27864 # ifdef HAVE_SYS_NDIR_H
27865 # include <sys/ndir.h>
27866 # endif /* SYSNDIR */
27867 # ifdef HAVE_SYS_DIR_H
27868 # include <sys/dir.h>
27869 # endif /* SYSDIR */
27870 # ifdef HAVE_NDIR_H
27871 # include <ndir.h>
27872 # endif
27873 #endif /* HAVE_DIRENT_H */
27874
27875 int
27876 main ()
27877 {
27878
27879 struct dirent d; int z; z = d.d_namlen;
27880
27881 ;
27882 return 0;
27883 }
27884 _ACEOF
27885 rm -f conftest.$ac_objext
27886 if { (ac_try="$ac_compile"
27887 case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27890 esac
27891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27892 $as_echo "$ac_try_echo") >&5
27893 (eval "$ac_compile") 2>conftest.er1
27894 ac_status=$?
27895 grep -v '^ *+' conftest.er1 >conftest.err
27896 rm -f conftest.er1
27897 cat conftest.err >&5
27898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } && {
27900 test -z "$ac_c_werror_flag" ||
27901 test ! -s conftest.err
27902 } && test -s conftest.$ac_objext; then
27903 bash_cv_dirent_has_d_namlen=yes
27904 else
27905 $as_echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27907
27908 bash_cv_dirent_has_d_namlen=no
27909 fi
27910
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912 fi
27913
27914 { $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
27915 $as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
27916 if test $bash_cv_dirent_has_d_namlen = yes; then
27917 cat >>confdefs.h <<\_ACEOF
27918 @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27919 _ACEOF
27920
27921 fi
27922
27923 { $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
27924 $as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
27925 if test "${bash_cv_struct_winsize_header+set}" = set; then
27926 $as_echo_n "(cached) " >&6
27927 else
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h. */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 #include <sys/types.h>
27935 #include <sys/ioctl.h>
27936 int
27937 main ()
27938 {
27939 struct winsize x;
27940 ;
27941 return 0;
27942 }
27943 _ACEOF
27944 rm -f conftest.$ac_objext
27945 if { (ac_try="$ac_compile"
27946 case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27949 esac
27950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27951 $as_echo "$ac_try_echo") >&5
27952 (eval "$ac_compile") 2>conftest.er1
27953 ac_status=$?
27954 grep -v '^ *+' conftest.er1 >conftest.err
27955 rm -f conftest.er1
27956 cat conftest.err >&5
27957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } && {
27959 test -z "$ac_c_werror_flag" ||
27960 test ! -s conftest.err
27961 } && test -s conftest.$ac_objext; then
27962 bash_cv_struct_winsize_header=ioctl_h
27963 else
27964 $as_echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967 cat >conftest.$ac_ext <<_ACEOF
27968 /* confdefs.h. */
27969 _ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h. */
27973 #include <sys/types.h>
27974 #include <termios.h>
27975 int
27976 main ()
27977 {
27978 struct winsize x;
27979 ;
27980 return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27988 esac
27989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27990 $as_echo "$ac_try_echo") >&5
27991 (eval "$ac_compile") 2>conftest.er1
27992 ac_status=$?
27993 grep -v '^ *+' conftest.er1 >conftest.err
27994 rm -f conftest.er1
27995 cat conftest.err >&5
27996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); } && {
27998 test -z "$ac_c_werror_flag" ||
27999 test ! -s conftest.err
28000 } && test -s conftest.$ac_objext; then
28001 bash_cv_struct_winsize_header=termios_h
28002 else
28003 $as_echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28005
28006 bash_cv_struct_winsize_header=other
28007 fi
28008
28009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28010
28011 fi
28012
28013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28014 fi
28015
28016 if test $bash_cv_struct_winsize_header = ioctl_h; then
28017 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
28018 $as_echo "sys/ioctl.h" >&6; }
28019 cat >>confdefs.h <<\_ACEOF
28020 @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28021 _ACEOF
28022
28023 elif test $bash_cv_struct_winsize_header = termios_h; then
28024 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
28025 $as_echo "termios.h" >&6; }
28026 cat >>confdefs.h <<\_ACEOF
28027 @%:@define STRUCT_WINSIZE_IN_TERMIOS 1
28028 _ACEOF
28029
28030 else
28031 { $as_echo "$as_me:$LINENO: result: not found" >&5
28032 $as_echo "not found" >&6; }
28033 fi
28034
28035 { $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
28036 $as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
28037 if test "${bash_cv_struct_timeval+set}" = set; then
28038 $as_echo_n "(cached) " >&6
28039 else
28040
28041 cat >conftest.$ac_ext <<_ACEOF
28042 /* confdefs.h. */
28043 _ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28047 #include <sys/time.h>
28048
28049 _ACEOF
28050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28051 $EGREP "struct timeval" >/dev/null 2>&1; then
28052 bash_cv_struct_timeval=yes
28053 else
28054 cat >conftest.$ac_ext <<_ACEOF
28055 /* confdefs.h. */
28056 _ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h. */
28060 #include <time.h>
28061
28062 _ACEOF
28063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28064 $EGREP "struct timeval" >/dev/null 2>&1; then
28065 bash_cv_struct_timeval=yes
28066 else
28067 bash_cv_struct_timeval=no
28068 fi
28069 rm -f conftest*
28070
28071 fi
28072 rm -f conftest*
28073
28074
28075 fi
28076
28077 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
28078 $as_echo "$bash_cv_struct_timeval" >&6; }
28079 if test $bash_cv_struct_timeval = yes; then
28080 cat >>confdefs.h <<\_ACEOF
28081 @%:@define HAVE_TIMEVAL 1
28082 _ACEOF
28083
28084 fi
28085
28086 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28087 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
28088 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28089 $as_echo_n "(cached) " >&6
28090 else
28091 cat >conftest.$ac_ext <<_ACEOF
28092 /* confdefs.h. */
28093 _ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28097 $ac_includes_default
28098 int
28099 main ()
28100 {
28101 static struct stat ac_aggr;
28102 if (ac_aggr.st_blocks)
28103 return 0;
28104 ;
28105 return 0;
28106 }
28107 _ACEOF
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28113 esac
28114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28115 $as_echo "$ac_try_echo") >&5
28116 (eval "$ac_compile") 2>conftest.er1
28117 ac_status=$?
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
28121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } && {
28123 test -z "$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 } && test -s conftest.$ac_objext; then
28126 ac_cv_member_struct_stat_st_blocks=yes
28127 else
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28130
28131 cat >conftest.$ac_ext <<_ACEOF
28132 /* confdefs.h. */
28133 _ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h. */
28137 $ac_includes_default
28138 int
28139 main ()
28140 {
28141 static struct stat ac_aggr;
28142 if (sizeof ac_aggr.st_blocks)
28143 return 0;
28144 ;
28145 return 0;
28146 }
28147 _ACEOF
28148 rm -f conftest.$ac_objext
28149 if { (ac_try="$ac_compile"
28150 case "(($ac_try" in
28151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28152 *) ac_try_echo=$ac_try;;
28153 esac
28154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28155 $as_echo "$ac_try_echo") >&5
28156 (eval "$ac_compile") 2>conftest.er1
28157 ac_status=$?
28158 grep -v '^ *+' conftest.er1 >conftest.err
28159 rm -f conftest.er1
28160 cat conftest.err >&5
28161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } && {
28163 test -z "$ac_c_werror_flag" ||
28164 test ! -s conftest.err
28165 } && test -s conftest.$ac_objext; then
28166 ac_cv_member_struct_stat_st_blocks=yes
28167 else
28168 $as_echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28170
28171 ac_cv_member_struct_stat_st_blocks=no
28172 fi
28173
28174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 fi
28176
28177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28178 fi
28179 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28180 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28181 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
28182
28183 cat >>confdefs.h <<_ACEOF
28184 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
28185 _ACEOF
28186
28187
28188 fi
28189
28190 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28191 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
28192 if test "${ac_cv_struct_tm+set}" = set; then
28193 $as_echo_n "(cached) " >&6
28194 else
28195 cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h. */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 #include <sys/types.h>
28202 #include <time.h>
28203
28204 int
28205 main ()
28206 {
28207 struct tm tm;
28208 int *p = &tm.tm_sec;
28209 return !p;
28210 ;
28211 return 0;
28212 }
28213 _ACEOF
28214 rm -f conftest.$ac_objext
28215 if { (ac_try="$ac_compile"
28216 case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28219 esac
28220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28221 $as_echo "$ac_try_echo") >&5
28222 (eval "$ac_compile") 2>conftest.er1
28223 ac_status=$?
28224 grep -v '^ *+' conftest.er1 >conftest.err
28225 rm -f conftest.er1
28226 cat conftest.err >&5
28227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } && {
28229 test -z "$ac_c_werror_flag" ||
28230 test ! -s conftest.err
28231 } && test -s conftest.$ac_objext; then
28232 ac_cv_struct_tm=time.h
28233 else
28234 $as_echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28236
28237 ac_cv_struct_tm=sys/time.h
28238 fi
28239
28240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241 fi
28242 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28243 $as_echo "$ac_cv_struct_tm" >&6; }
28244 if test $ac_cv_struct_tm = sys/time.h; then
28245
28246 cat >>confdefs.h <<\_ACEOF
28247 @%:@define TM_IN_SYS_TIME 1
28248 _ACEOF
28249
28250 fi
28251
28252 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28253 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
28254 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28255 $as_echo_n "(cached) " >&6
28256 else
28257 cat >conftest.$ac_ext <<_ACEOF
28258 /* confdefs.h. */
28259 _ACEOF
28260 cat confdefs.h >>conftest.$ac_ext
28261 cat >>conftest.$ac_ext <<_ACEOF
28262 /* end confdefs.h. */
28263 #include <sys/types.h>
28264 #include <$ac_cv_struct_tm>
28265
28266
28267 int
28268 main ()
28269 {
28270 static struct tm ac_aggr;
28271 if (ac_aggr.tm_zone)
28272 return 0;
28273 ;
28274 return 0;
28275 }
28276 _ACEOF
28277 rm -f conftest.$ac_objext
28278 if { (ac_try="$ac_compile"
28279 case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282 esac
28283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28284 $as_echo "$ac_try_echo") >&5
28285 (eval "$ac_compile") 2>conftest.er1
28286 ac_status=$?
28287 grep -v '^ *+' conftest.er1 >conftest.err
28288 rm -f conftest.er1
28289 cat conftest.err >&5
28290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); } && {
28292 test -z "$ac_c_werror_flag" ||
28293 test ! -s conftest.err
28294 } && test -s conftest.$ac_objext; then
28295 ac_cv_member_struct_tm_tm_zone=yes
28296 else
28297 $as_echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28299
28300 cat >conftest.$ac_ext <<_ACEOF
28301 /* confdefs.h. */
28302 _ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h. */
28306 #include <sys/types.h>
28307 #include <$ac_cv_struct_tm>
28308
28309
28310 int
28311 main ()
28312 {
28313 static struct tm ac_aggr;
28314 if (sizeof ac_aggr.tm_zone)
28315 return 0;
28316 ;
28317 return 0;
28318 }
28319 _ACEOF
28320 rm -f conftest.$ac_objext
28321 if { (ac_try="$ac_compile"
28322 case "(($ac_try" in
28323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28324 *) ac_try_echo=$ac_try;;
28325 esac
28326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28327 $as_echo "$ac_try_echo") >&5
28328 (eval "$ac_compile") 2>conftest.er1
28329 ac_status=$?
28330 grep -v '^ *+' conftest.er1 >conftest.err
28331 rm -f conftest.er1
28332 cat conftest.err >&5
28333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); } && {
28335 test -z "$ac_c_werror_flag" ||
28336 test ! -s conftest.err
28337 } && test -s conftest.$ac_objext; then
28338 ac_cv_member_struct_tm_tm_zone=yes
28339 else
28340 $as_echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28342
28343 ac_cv_member_struct_tm_tm_zone=no
28344 fi
28345
28346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347 fi
28348
28349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28350 fi
28351 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28352 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28353 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
28354
28355 cat >>confdefs.h <<_ACEOF
28356 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
28357 _ACEOF
28358
28359
28360 fi
28361
28362 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28363
28364 cat >>confdefs.h <<\_ACEOF
28365 @%:@define HAVE_TM_ZONE 1
28366 _ACEOF
28367
28368 else
28369 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28370 $as_echo_n "checking whether tzname is declared... " >&6; }
28371 if test "${ac_cv_have_decl_tzname+set}" = set; then
28372 $as_echo_n "(cached) " >&6
28373 else
28374 cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h. */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 #include <time.h>
28381
28382 int
28383 main ()
28384 {
28385 #ifndef tzname
28386 (void) tzname;
28387 #endif
28388
28389 ;
28390 return 0;
28391 }
28392 _ACEOF
28393 rm -f conftest.$ac_objext
28394 if { (ac_try="$ac_compile"
28395 case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28398 esac
28399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28400 $as_echo "$ac_try_echo") >&5
28401 (eval "$ac_compile") 2>conftest.er1
28402 ac_status=$?
28403 grep -v '^ *+' conftest.er1 >conftest.err
28404 rm -f conftest.er1
28405 cat conftest.err >&5
28406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } && {
28408 test -z "$ac_c_werror_flag" ||
28409 test ! -s conftest.err
28410 } && test -s conftest.$ac_objext; then
28411 ac_cv_have_decl_tzname=yes
28412 else
28413 $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28415
28416 ac_cv_have_decl_tzname=no
28417 fi
28418
28419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28420 fi
28421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
28422 $as_echo "$ac_cv_have_decl_tzname" >&6; }
28423 if test "x$ac_cv_have_decl_tzname" = x""yes; then
28424
28425 cat >>confdefs.h <<_ACEOF
28426 @%:@define HAVE_DECL_TZNAME 1
28427 _ACEOF
28428
28429
28430 else
28431 cat >>confdefs.h <<_ACEOF
28432 @%:@define HAVE_DECL_TZNAME 0
28433 _ACEOF
28434
28435
28436 fi
28437
28438
28439 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
28440 $as_echo_n "checking for tzname... " >&6; }
28441 if test "${ac_cv_var_tzname+set}" = set; then
28442 $as_echo_n "(cached) " >&6
28443 else
28444 cat >conftest.$ac_ext <<_ACEOF
28445 /* confdefs.h. */
28446 _ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h. */
28450 #include <time.h>
28451 #if !HAVE_DECL_TZNAME
28452 extern char *tzname[];
28453 #endif
28454
28455 int
28456 main ()
28457 {
28458 return tzname[0][0];
28459 ;
28460 return 0;
28461 }
28462 _ACEOF
28463 rm -f conftest.$ac_objext conftest$ac_exeext
28464 if { (ac_try="$ac_link"
28465 case "(($ac_try" in
28466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28467 *) ac_try_echo=$ac_try;;
28468 esac
28469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28470 $as_echo "$ac_try_echo") >&5
28471 (eval "$ac_link") 2>conftest.er1
28472 ac_status=$?
28473 grep -v '^ *+' conftest.er1 >conftest.err
28474 rm -f conftest.er1
28475 cat conftest.err >&5
28476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } && {
28478 test -z "$ac_c_werror_flag" ||
28479 test ! -s conftest.err
28480 } && test -s conftest$ac_exeext && {
28481 test "$cross_compiling" = yes ||
28482 $as_test_x conftest$ac_exeext
28483 }; then
28484 ac_cv_var_tzname=yes
28485 else
28486 $as_echo "$as_me: failed program was:" >&5
28487 sed 's/^/| /' conftest.$ac_ext >&5
28488
28489 ac_cv_var_tzname=no
28490 fi
28491
28492 rm -rf conftest.dSYM
28493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28494 conftest$ac_exeext conftest.$ac_ext
28495 fi
28496 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
28497 $as_echo "$ac_cv_var_tzname" >&6; }
28498 if test $ac_cv_var_tzname = yes; then
28499
28500 cat >>confdefs.h <<\_ACEOF
28501 @%:@define HAVE_TZNAME 1
28502 _ACEOF
28503
28504 fi
28505 fi
28506
28507 { $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
28508 $as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
28509 if test "${bash_cv_struct_timezone+set}" = set; then
28510 $as_echo_n "(cached) " >&6
28511 else
28512
28513 cat >conftest.$ac_ext <<_ACEOF
28514 /* confdefs.h. */
28515 _ACEOF
28516 cat confdefs.h >>conftest.$ac_ext
28517 cat >>conftest.$ac_ext <<_ACEOF
28518 /* end confdefs.h. */
28519 #include <sys/time.h>
28520
28521 _ACEOF
28522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28523 $EGREP "struct timezone" >/dev/null 2>&1; then
28524 bash_cv_struct_timezone=yes
28525 else
28526 cat >conftest.$ac_ext <<_ACEOF
28527 /* confdefs.h. */
28528 _ACEOF
28529 cat confdefs.h >>conftest.$ac_ext
28530 cat >>conftest.$ac_ext <<_ACEOF
28531 /* end confdefs.h. */
28532 #include <time.h>
28533
28534 _ACEOF
28535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28536 $EGREP "struct timezone" >/dev/null 2>&1; then
28537 bash_cv_struct_timezone=yes
28538 else
28539 bash_cv_struct_timezone=no
28540 fi
28541 rm -f conftest*
28542
28543 fi
28544 rm -f conftest*
28545
28546
28547 fi
28548
28549 { $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
28550 $as_echo "$bash_cv_struct_timezone" >&6; }
28551 if test $bash_cv_struct_timezone = yes; then
28552 cat >>confdefs.h <<\_ACEOF
28553 @%:@define HAVE_STRUCT_TIMEZONE 1
28554 _ACEOF
28555
28556 fi
28557
28558
28559 { $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
28560 $as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
28561 if test "${bash_cv_wexitstatus_offset+set}" = set; then
28562 $as_echo_n "(cached) " >&6
28563 else
28564 if test "$cross_compiling" = yes; then
28565 { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
28566 $as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
28567 bash_cv_wexitstatus_offset=0
28568
28569 else
28570 cat >conftest.$ac_ext <<_ACEOF
28571
28572 #include <stdlib.h>
28573 #include <unistd.h>
28574
28575 #include <sys/wait.h>
28576
28577 main(c, v)
28578 int c;
28579 char **v;
28580 {
28581 pid_t pid, p;
28582 int s, i, n;
28583
28584 s = 0;
28585 pid = fork();
28586 if (pid == 0)
28587 exit (42);
28588
28589 /* wait for the process */
28590 p = wait(&s);
28591 if (p != pid)
28592 exit (255);
28593
28594 /* crack s */
28595 for (i = 0; i < (sizeof(s) - 8); i++)
28596 {
28597 n = (s >> i) & 0xff;
28598 if (n == 42)
28599 exit (i);
28600 }
28601
28602 exit (254);
28603 }
28604
28605 _ACEOF
28606 rm -f conftest$ac_exeext
28607 if { (ac_try="$ac_link"
28608 case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611 esac
28612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28613 $as_echo "$ac_try_echo") >&5
28614 (eval "$ac_link") 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621 esac
28622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28623 $as_echo "$ac_try_echo") >&5
28624 (eval "$ac_try") 2>&5
28625 ac_status=$?
28626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 bash_cv_wexitstatus_offset=0
28629 else
28630 $as_echo "$as_me: program exited with status $ac_status" >&5
28631 $as_echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634 ( exit $ac_status )
28635 bash_cv_wexitstatus_offset=$?
28636 fi
28637 rm -rf conftest.dSYM
28638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28639 fi
28640
28641
28642 fi
28643
28644 if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
28645 { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
28646 $as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
28647 bash_cv_wexitstatus_offset=0
28648 fi
28649 { $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
28650 $as_echo "$bash_cv_wexitstatus_offset" >&6; }
28651
28652 cat >>confdefs.h <<_ACEOF
28653 @%:@define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28654 _ACEOF
28655
28656
28657
28658 { $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
28659 $as_echo_n "checking for the existence of strsignal... " >&6; }
28660 if test "${bash_cv_have_strsignal+set}" = set; then
28661 $as_echo_n "(cached) " >&6
28662 else
28663 cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h. */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 #include <sys/types.h>
28670 #include <signal.h>
28671 int
28672 main ()
28673 {
28674 char *s = (char *)strsignal(2);
28675 ;
28676 return 0;
28677 }
28678 _ACEOF
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (ac_try="$ac_link"
28681 case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28684 esac
28685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28686 $as_echo "$ac_try_echo") >&5
28687 (eval "$ac_link") 2>conftest.er1
28688 ac_status=$?
28689 grep -v '^ *+' conftest.er1 >conftest.err
28690 rm -f conftest.er1
28691 cat conftest.err >&5
28692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } && {
28694 test -z "$ac_c_werror_flag" ||
28695 test ! -s conftest.err
28696 } && test -s conftest$ac_exeext && {
28697 test "$cross_compiling" = yes ||
28698 $as_test_x conftest$ac_exeext
28699 }; then
28700 bash_cv_have_strsignal=yes
28701 else
28702 $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 bash_cv_have_strsignal=no
28706 fi
28707
28708 rm -rf conftest.dSYM
28709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710 conftest$ac_exeext conftest.$ac_ext
28711 fi
28712
28713 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
28714 $as_echo "$bash_cv_have_strsignal" >&6; }
28715 if test $bash_cv_have_strsignal = yes; then
28716 cat >>confdefs.h <<\_ACEOF
28717 @%:@define HAVE_STRSIGNAL 1
28718 _ACEOF
28719
28720 fi
28721
28722 { $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
28723 $as_echo_n "checking if opendir() opens non-directories... " >&6; }
28724 if test "${bash_cv_opendir_not_robust+set}" = set; then
28725 $as_echo_n "(cached) " >&6
28726 else
28727 if test "$cross_compiling" = yes; then
28728 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
28729 $as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
28730 bash_cv_opendir_not_robust=no
28731
28732 else
28733 cat >conftest.$ac_ext <<_ACEOF
28734 /* confdefs.h. */
28735 _ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h. */
28739
28740 #include <stdio.h>
28741 #include <sys/types.h>
28742 #include <fcntl.h>
28743 #ifdef HAVE_UNISTD_H
28744 # include <unistd.h>
28745 #endif /* HAVE_UNISTD_H */
28746 #if defined(HAVE_DIRENT_H)
28747 # include <dirent.h>
28748 #else
28749 # define dirent direct
28750 # ifdef HAVE_SYS_NDIR_H
28751 # include <sys/ndir.h>
28752 # endif /* SYSNDIR */
28753 # ifdef HAVE_SYS_DIR_H
28754 # include <sys/dir.h>
28755 # endif /* SYSDIR */
28756 # ifdef HAVE_NDIR_H
28757 # include <ndir.h>
28758 # endif
28759 #endif /* HAVE_DIRENT_H */
28760 main()
28761 {
28762 DIR *dir;
28763 int fd, err;
28764 err = mkdir("bash-aclocal", 0700);
28765 if (err < 0) {
28766 perror("mkdir");
28767 exit(1);
28768 }
28769 unlink("bash-aclocal/not_a_directory");
28770 fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
28771 write(fd, "\n", 1);
28772 close(fd);
28773 dir = opendir("bash-aclocal/not_a_directory");
28774 unlink("bash-aclocal/not_a_directory");
28775 rmdir("bash-aclocal");
28776 exit (dir == 0);
28777 }
28778 _ACEOF
28779 rm -f conftest$ac_exeext
28780 if { (ac_try="$ac_link"
28781 case "(($ac_try" in
28782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28783 *) ac_try_echo=$ac_try;;
28784 esac
28785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28786 $as_echo "$ac_try_echo") >&5
28787 (eval "$ac_link") 2>&5
28788 ac_status=$?
28789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28791 { (case "(($ac_try" in
28792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793 *) ac_try_echo=$ac_try;;
28794 esac
28795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28796 $as_echo "$ac_try_echo") >&5
28797 (eval "$ac_try") 2>&5
28798 ac_status=$?
28799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; }; then
28801 bash_cv_opendir_not_robust=yes
28802 else
28803 $as_echo "$as_me: program exited with status $ac_status" >&5
28804 $as_echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28806
28807 ( exit $ac_status )
28808 bash_cv_opendir_not_robust=no
28809 fi
28810 rm -rf conftest.dSYM
28811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28812 fi
28813
28814
28815 fi
28816
28817 { $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
28818 $as_echo "$bash_cv_opendir_not_robust" >&6; }
28819 if test $bash_cv_opendir_not_robust = yes; then
28820 cat >>confdefs.h <<\_ACEOF
28821 @%:@define OPENDIR_NOT_ROBUST 1
28822 _ACEOF
28823
28824 fi
28825
28826 { $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
28827 $as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
28828 if test "${bash_cv_ulimit_maxfds+set}" = set; then
28829 $as_echo_n "(cached) " >&6
28830 else
28831 if test "$cross_compiling" = yes; then
28832 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
28833 $as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
28834 bash_cv_ulimit_maxfds=no
28835
28836 else
28837 cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h. */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843
28844 main()
28845 {
28846 long maxfds = ulimit(4, 0L);
28847 exit (maxfds == -1L);
28848 }
28849
28850 _ACEOF
28851 rm -f conftest$ac_exeext
28852 if { (ac_try="$ac_link"
28853 case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28856 esac
28857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28858 $as_echo "$ac_try_echo") >&5
28859 (eval "$ac_link") 2>&5
28860 ac_status=$?
28861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866 esac
28867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28868 $as_echo "$ac_try_echo") >&5
28869 (eval "$ac_try") 2>&5
28870 ac_status=$?
28871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28873 bash_cv_ulimit_maxfds=yes
28874 else
28875 $as_echo "$as_me: program exited with status $ac_status" >&5
28876 $as_echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879 ( exit $ac_status )
28880 bash_cv_ulimit_maxfds=no
28881 fi
28882 rm -rf conftest.dSYM
28883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28884 fi
28885
28886
28887 fi
28888
28889 { $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
28890 $as_echo "$bash_cv_ulimit_maxfds" >&6; }
28891 if test $bash_cv_ulimit_maxfds = yes; then
28892 cat >>confdefs.h <<\_ACEOF
28893 @%:@define ULIMIT_MAXFDS 1
28894 _ACEOF
28895
28896 fi
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28916 $as_echo_n "checking whether fpurge is declared... " >&6; }
28917 if test "${ac_cv_have_decl_fpurge+set}" = set; then
28918 $as_echo_n "(cached) " >&6
28919 else
28920 cat >conftest.$ac_ext <<_ACEOF
28921 /* confdefs.h. */
28922 _ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h. */
28926 #include <stdio.h>
28927
28928 int
28929 main ()
28930 {
28931 #ifndef fpurge
28932 (void) fpurge;
28933 #endif
28934
28935 ;
28936 return 0;
28937 }
28938 _ACEOF
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28944 esac
28945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28946 $as_echo "$ac_try_echo") >&5
28947 (eval "$ac_compile") 2>conftest.er1
28948 ac_status=$?
28949 grep -v '^ *+' conftest.er1 >conftest.err
28950 rm -f conftest.er1
28951 cat conftest.err >&5
28952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } && {
28954 test -z "$ac_c_werror_flag" ||
28955 test ! -s conftest.err
28956 } && test -s conftest.$ac_objext; then
28957 ac_cv_have_decl_fpurge=yes
28958 else
28959 $as_echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28961
28962 ac_cv_have_decl_fpurge=no
28963 fi
28964
28965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966 fi
28967 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28968 $as_echo "$ac_cv_have_decl_fpurge" >&6; }
28969 if test "x$ac_cv_have_decl_fpurge" = x""yes; then
28970
28971 cat >>confdefs.h <<_ACEOF
28972 @%:@define HAVE_DECL_FPURGE 1
28973 _ACEOF
28974
28975
28976 else
28977 cat >>confdefs.h <<_ACEOF
28978 @%:@define HAVE_DECL_FPURGE 0
28979 _ACEOF
28980
28981
28982 fi
28983
28984
28985
28986 { $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
28987 $as_echo_n "checking to see if getenv can be redefined... " >&6; }
28988 if test "${bash_cv_getenv_redef+set}" = set; then
28989 $as_echo_n "(cached) " >&6
28990 else
28991 if test "$cross_compiling" = yes; then
28992 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
28993 $as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
28994 bash_cv_getenv_redef=yes
28995
28996 else
28997 cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h. */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29003
29004 #ifdef HAVE_UNISTD_H
29005 # include <unistd.h>
29006 #endif
29007 #ifndef __STDC__
29008 # ifndef const
29009 # define const
29010 # endif
29011 #endif
29012 char *
29013 getenv (name)
29014 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
29015 const char *name;
29016 #else
29017 char const *name;
29018 #endif /* !__linux__ && !__bsdi__ && !convex */
29019 {
29020 return "42";
29021 }
29022 main()
29023 {
29024 char *s;
29025 /* The next allows this program to run, but does not allow bash to link
29026 when it redefines getenv. I'm not really interested in figuring out
29027 why not. */
29028 #if defined (NeXT)
29029 exit(1);
29030 #endif
29031 s = getenv("ABCDE");
29032 exit(s == 0); /* force optimizer to leave getenv in */
29033 }
29034
29035 _ACEOF
29036 rm -f conftest$ac_exeext
29037 if { (ac_try="$ac_link"
29038 case "(($ac_try" in
29039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040 *) ac_try_echo=$ac_try;;
29041 esac
29042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29043 $as_echo "$ac_try_echo") >&5
29044 (eval "$ac_link") 2>&5
29045 ac_status=$?
29046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29048 { (case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29051 esac
29052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29053 $as_echo "$ac_try_echo") >&5
29054 (eval "$ac_try") 2>&5
29055 ac_status=$?
29056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; }; then
29058 bash_cv_getenv_redef=yes
29059 else
29060 $as_echo "$as_me: program exited with status $ac_status" >&5
29061 $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064 ( exit $ac_status )
29065 bash_cv_getenv_redef=no
29066 fi
29067 rm -rf conftest.dSYM
29068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29069 fi
29070
29071
29072 fi
29073
29074 { $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
29075 $as_echo "$bash_cv_getenv_redef" >&6; }
29076 if test $bash_cv_getenv_redef = yes; then
29077 cat >>confdefs.h <<\_ACEOF
29078 @%:@define CAN_REDEFINE_GETENV 1
29079 _ACEOF
29080
29081 fi
29082
29083 if test "$ac_cv_func_getcwd" = "yes"; then
29084 { $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
29085 $as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
29086 if test "${bash_cv_getcwd_malloc+set}" = set; then
29087 $as_echo_n "(cached) " >&6
29088 else
29089 if test "$cross_compiling" = yes; then
29090 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
29091 $as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
29092 bash_cv_getcwd_malloc=no
29093
29094 else
29095 cat >conftest.$ac_ext <<_ACEOF
29096 /* confdefs.h. */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h. */
29101
29102 #include <stdio.h>
29103 #ifdef HAVE_UNISTD_H
29104 #include <unistd.h>
29105 #endif
29106
29107 main()
29108 {
29109 char *xpwd;
29110 xpwd = getcwd(0, 0);
29111 exit (xpwd == 0);
29112 }
29113
29114 _ACEOF
29115 rm -f conftest$ac_exeext
29116 if { (ac_try="$ac_link"
29117 case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29120 esac
29121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29122 $as_echo "$ac_try_echo") >&5
29123 (eval "$ac_link") 2>&5
29124 ac_status=$?
29125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29127 { (case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29130 esac
29131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29132 $as_echo "$ac_try_echo") >&5
29133 (eval "$ac_try") 2>&5
29134 ac_status=$?
29135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 bash_cv_getcwd_malloc=yes
29138 else
29139 $as_echo "$as_me: program exited with status $ac_status" >&5
29140 $as_echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29142
29143 ( exit $ac_status )
29144 bash_cv_getcwd_malloc=no
29145 fi
29146 rm -rf conftest.dSYM
29147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29148 fi
29149
29150
29151 fi
29152
29153 { $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
29154 $as_echo "$bash_cv_getcwd_malloc" >&6; }
29155 if test $bash_cv_getcwd_malloc = no; then
29156 cat >>confdefs.h <<\_ACEOF
29157 @%:@define GETCWD_BROKEN 1
29158 _ACEOF
29159
29160 case " $LIB@&t@OBJS " in
29161 *" getcwd.$ac_objext "* ) ;;
29162 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext"
29163 ;;
29164 esac
29165
29166 fi
29167
29168 fi
29169
29170 { $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
29171 $as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
29172 if test "${bash_cv_func_sigsetjmp+set}" = set; then
29173 $as_echo_n "(cached) " >&6
29174 else
29175 if test "$cross_compiling" = yes; then
29176 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
29177 $as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
29178 bash_cv_func_sigsetjmp=missing
29179
29180 else
29181 cat >conftest.$ac_ext <<_ACEOF
29182 /* confdefs.h. */
29183 _ACEOF
29184 cat confdefs.h >>conftest.$ac_ext
29185 cat >>conftest.$ac_ext <<_ACEOF
29186 /* end confdefs.h. */
29187
29188 #ifdef HAVE_UNISTD_H
29189 #include <unistd.h>
29190 #endif
29191 #include <sys/types.h>
29192 #include <signal.h>
29193 #include <setjmp.h>
29194
29195 main()
29196 {
29197 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29198 exit (1);
29199 #else
29200
29201 int code;
29202 sigset_t set, oset;
29203 sigjmp_buf xx;
29204
29205 /* get the mask */
29206 sigemptyset(&set);
29207 sigemptyset(&oset);
29208 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29209 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29210
29211 /* save it */
29212 code = sigsetjmp(xx, 1);
29213 if (code)
29214 exit(0); /* could get sigmask and compare to oset here. */
29215
29216 /* change it */
29217 sigaddset(&set, SIGINT);
29218 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29219
29220 /* and siglongjmp */
29221 siglongjmp(xx, 10);
29222 exit(1);
29223 #endif
29224 }
29225 _ACEOF
29226 rm -f conftest$ac_exeext
29227 if { (ac_try="$ac_link"
29228 case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29231 esac
29232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29233 $as_echo "$ac_try_echo") >&5
29234 (eval "$ac_link") 2>&5
29235 ac_status=$?
29236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29238 { (case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241 esac
29242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29243 $as_echo "$ac_try_echo") >&5
29244 (eval "$ac_try") 2>&5
29245 ac_status=$?
29246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
29248 bash_cv_func_sigsetjmp=present
29249 else
29250 $as_echo "$as_me: program exited with status $ac_status" >&5
29251 $as_echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29253
29254 ( exit $ac_status )
29255 bash_cv_func_sigsetjmp=missing
29256 fi
29257 rm -rf conftest.dSYM
29258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29259 fi
29260
29261
29262 fi
29263
29264 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
29265 $as_echo "$bash_cv_func_sigsetjmp" >&6; }
29266 if test $bash_cv_func_sigsetjmp = present; then
29267 cat >>confdefs.h <<\_ACEOF
29268 @%:@define HAVE_POSIX_SIGSETJMP 1
29269 _ACEOF
29270
29271 fi
29272
29273
29274 { $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
29275 $as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
29276 if test "${bash_cv_func_strcoll_broken+set}" = set; then
29277 $as_echo_n "(cached) " >&6
29278 else
29279 if test "$cross_compiling" = yes; then
29280 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
29281 $as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
29282 bash_cv_func_strcoll_broken=no
29283
29284 else
29285 cat >conftest.$ac_ext <<_ACEOF
29286 /* confdefs.h. */
29287 _ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h. */
29291
29292 #include <stdio.h>
29293 #if defined (HAVE_LOCALE_H)
29294 #include <locale.h>
29295 #endif
29296
29297 main(c, v)
29298 int c;
29299 char *v[];
29300 {
29301 int r1, r2;
29302 char *deflocale, *defcoll;
29303
29304 #ifdef HAVE_SETLOCALE
29305 deflocale = setlocale(LC_ALL, "");
29306 defcoll = setlocale(LC_COLLATE, "");
29307 #endif
29308
29309 #ifdef HAVE_STRCOLL
29310 /* These two values are taken from tests/glob-test. */
29311 r1 = strcoll("abd", "aXd");
29312 #else
29313 r1 = 0;
29314 #endif
29315 r2 = strcmp("abd", "aXd");
29316
29317 /* These two should both be greater than 0. It is permissible for
29318 a system to return different values, as long as the sign is the
29319 same. */
29320
29321 /* Exit with 1 (failure) if these two values are both > 0, since
29322 this tests whether strcoll(3) is broken with respect to strcmp(3)
29323 in the default locale. */
29324 exit (r1 > 0 && r2 > 0);
29325 }
29326
29327 _ACEOF
29328 rm -f conftest$ac_exeext
29329 if { (ac_try="$ac_link"
29330 case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29333 esac
29334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29335 $as_echo "$ac_try_echo") >&5
29336 (eval "$ac_link") 2>&5
29337 ac_status=$?
29338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29340 { (case "(($ac_try" in
29341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342 *) ac_try_echo=$ac_try;;
29343 esac
29344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29345 $as_echo "$ac_try_echo") >&5
29346 (eval "$ac_try") 2>&5
29347 ac_status=$?
29348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
29350 bash_cv_func_strcoll_broken=yes
29351 else
29352 $as_echo "$as_me: program exited with status $ac_status" >&5
29353 $as_echo "$as_me: failed program was:" >&5
29354 sed 's/^/| /' conftest.$ac_ext >&5
29355
29356 ( exit $ac_status )
29357 bash_cv_func_strcoll_broken=no
29358 fi
29359 rm -rf conftest.dSYM
29360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29361 fi
29362
29363
29364 fi
29365
29366 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
29367 $as_echo "$bash_cv_func_strcoll_broken" >&6; }
29368 if test $bash_cv_func_strcoll_broken = yes; then
29369 cat >>confdefs.h <<\_ACEOF
29370 @%:@define STRCOLL_BROKEN 1
29371 _ACEOF
29372
29373 fi
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384 if test X$ac_cv_func_snprintf = Xyes; then
29385 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
29386 $as_echo_n "checking for standard-conformant snprintf... " >&6; }
29387 if test "${bash_cv_func_snprintf+set}" = set; then
29388 $as_echo_n "(cached) " >&6
29389 else
29390 if test "$cross_compiling" = yes; then
29391 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
29392 $as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
29393 bash_cv_func_snprintf=yes
29394
29395 else
29396 cat >conftest.$ac_ext <<_ACEOF
29397 /* confdefs.h. */
29398 _ACEOF
29399 cat confdefs.h >>conftest.$ac_ext
29400 cat >>conftest.$ac_ext <<_ACEOF
29401 /* end confdefs.h. */
29402
29403 #include <stdio.h>
29404
29405 main()
29406 {
29407 int n;
29408 n = snprintf (0, 0, "%s", "0123456");
29409 exit(n != 7);
29410 }
29411
29412 _ACEOF
29413 rm -f conftest$ac_exeext
29414 if { (ac_try="$ac_link"
29415 case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29418 esac
29419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29420 $as_echo "$ac_try_echo") >&5
29421 (eval "$ac_link") 2>&5
29422 ac_status=$?
29423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29425 { (case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428 esac
29429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29430 $as_echo "$ac_try_echo") >&5
29431 (eval "$ac_try") 2>&5
29432 ac_status=$?
29433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; }; then
29435 bash_cv_func_snprintf=yes
29436 else
29437 $as_echo "$as_me: program exited with status $ac_status" >&5
29438 $as_echo "$as_me: failed program was:" >&5
29439 sed 's/^/| /' conftest.$ac_ext >&5
29440
29441 ( exit $ac_status )
29442 bash_cv_func_snprintf=no
29443 fi
29444 rm -rf conftest.dSYM
29445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29446 fi
29447
29448
29449 fi
29450 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
29451 $as_echo "$bash_cv_func_snprintf" >&6; }
29452 if test $bash_cv_func_snprintf = no; then
29453 ac_cv_func_snprintf=no
29454 fi
29455 fi
29456 if test $ac_cv_func_snprintf = no; then
29457
29458 cat >>confdefs.h <<\_ACEOF
29459 @%:@define HAVE_SNPRINTF 0
29460 _ACEOF
29461
29462 fi
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473 if test X$ac_cv_func_vsnprintf = Xyes; then
29474 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
29475 $as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
29476 if test "${bash_cv_func_vsnprintf+set}" = set; then
29477 $as_echo_n "(cached) " >&6
29478 else
29479 if test "$cross_compiling" = yes; then
29480 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
29481 $as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
29482 bash_cv_func_vsnprintf=yes
29483
29484 else
29485 cat >conftest.$ac_ext <<_ACEOF
29486 /* confdefs.h. */
29487 _ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h. */
29491
29492 #if HAVE_STDARG_H
29493 #include <stdarg.h>
29494 #else
29495 #include <varargs.h>
29496 #endif
29497 #include <stdio.h>
29498 #include <stdlib.h>
29499
29500 static int
29501 #if HAVE_STDARG_H
29502 foo(const char *fmt, ...)
29503 #else
29504 foo(format, va_alist)
29505 const char *format;
29506 va_dcl
29507 #endif
29508 {
29509 va_list args;
29510 int n;
29511
29512 #if HAVE_STDARG_H
29513 va_start(args, fmt);
29514 #else
29515 va_start(args);
29516 #endif
29517 n = vsnprintf(0, 0, fmt, args);
29518 va_end (args);
29519 return n;
29520 }
29521
29522 main()
29523 {
29524 int n;
29525 n = foo("%s", "0123456");
29526 exit(n != 7);
29527 }
29528
29529 _ACEOF
29530 rm -f conftest$ac_exeext
29531 if { (ac_try="$ac_link"
29532 case "(($ac_try" in
29533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29534 *) ac_try_echo=$ac_try;;
29535 esac
29536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29537 $as_echo "$ac_try_echo") >&5
29538 (eval "$ac_link") 2>&5
29539 ac_status=$?
29540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29542 { (case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29545 esac
29546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29547 $as_echo "$ac_try_echo") >&5
29548 (eval "$ac_try") 2>&5
29549 ac_status=$?
29550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; }; then
29552 bash_cv_func_vsnprintf=yes
29553 else
29554 $as_echo "$as_me: program exited with status $ac_status" >&5
29555 $as_echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29557
29558 ( exit $ac_status )
29559 bash_cv_func_vsnprintf=no
29560 fi
29561 rm -rf conftest.dSYM
29562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29563 fi
29564
29565
29566 fi
29567 { $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
29568 $as_echo "$bash_cv_func_vsnprintf" >&6; }
29569 if test $bash_cv_func_vsnprintf = no; then
29570 ac_cv_func_vsnprintf=no
29571 fi
29572 fi
29573 if test $ac_cv_func_vsnprintf = no; then
29574
29575 cat >>confdefs.h <<\_ACEOF
29576 @%:@define HAVE_VSNPRINTF 0
29577 _ACEOF
29578
29579 fi
29580
29581
29582
29583 if test "$ac_cv_func_putenv" = "yes"; then
29584
29585
29586
29587 { $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
29588 $as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
29589 if test "${bash_cv_std_putenv+set}" = set; then
29590 $as_echo_n "(cached) " >&6
29591 else
29592 cat >conftest.$ac_ext <<_ACEOF
29593 /* confdefs.h. */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h. */
29598
29599 #if STDC_HEADERS
29600 #include <stdlib.h>
29601 #include <stddef.h>
29602 #endif
29603 #ifndef __STDC__
29604 # ifndef const
29605 # define const
29606 # endif
29607 #endif
29608 #ifdef PROTOTYPES
29609 extern int putenv (char *);
29610 #else
29611 extern int putenv ();
29612 #endif
29613
29614 int
29615 main ()
29616 {
29617 return (putenv == 0);
29618 ;
29619 return 0;
29620 }
29621 _ACEOF
29622 rm -f conftest.$ac_objext conftest$ac_exeext
29623 if { (ac_try="$ac_link"
29624 case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29627 esac
29628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29629 $as_echo "$ac_try_echo") >&5
29630 (eval "$ac_link") 2>conftest.er1
29631 ac_status=$?
29632 grep -v '^ *+' conftest.er1 >conftest.err
29633 rm -f conftest.er1
29634 cat conftest.err >&5
29635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); } && {
29637 test -z "$ac_c_werror_flag" ||
29638 test ! -s conftest.err
29639 } && test -s conftest$ac_exeext && {
29640 test "$cross_compiling" = yes ||
29641 $as_test_x conftest$ac_exeext
29642 }; then
29643 bash_cv_std_putenv=yes
29644 else
29645 $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 bash_cv_std_putenv=no
29649
29650 fi
29651
29652 rm -rf conftest.dSYM
29653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29654 conftest$ac_exeext conftest.$ac_ext
29655 fi
29656 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
29657 $as_echo "$bash_cv_std_putenv" >&6; }
29658 if test $bash_cv_std_putenv = yes; then
29659 cat >>confdefs.h <<\_ACEOF
29660 @%:@define HAVE_STD_PUTENV 1
29661 _ACEOF
29662
29663 fi
29664
29665 else
29666 cat >>confdefs.h <<\_ACEOF
29667 @%:@define HAVE_STD_PUTENV 1
29668 _ACEOF
29669
29670 fi
29671 if test "$ac_cv_func_unsetenv" = "yes"; then
29672
29673
29674
29675 { $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
29676 $as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
29677 if test "${bash_cv_std_unsetenv+set}" = set; then
29678 $as_echo_n "(cached) " >&6
29679 else
29680 cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h. */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h. */
29686
29687 #if STDC_HEADERS
29688 #include <stdlib.h>
29689 #include <stddef.h>
29690 #endif
29691 #ifndef __STDC__
29692 # ifndef const
29693 # define const
29694 # endif
29695 #endif
29696 #ifdef PROTOTYPES
29697 extern int unsetenv (const char *);
29698 #else
29699 extern int unsetenv ();
29700 #endif
29701
29702 int
29703 main ()
29704 {
29705 return (unsetenv == 0);
29706 ;
29707 return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (ac_try="$ac_link"
29712 case "(($ac_try" in
29713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714 *) ac_try_echo=$ac_try;;
29715 esac
29716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29717 $as_echo "$ac_try_echo") >&5
29718 (eval "$ac_link") 2>conftest.er1
29719 ac_status=$?
29720 grep -v '^ *+' conftest.er1 >conftest.err
29721 rm -f conftest.er1
29722 cat conftest.err >&5
29723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } && {
29725 test -z "$ac_c_werror_flag" ||
29726 test ! -s conftest.err
29727 } && test -s conftest$ac_exeext && {
29728 test "$cross_compiling" = yes ||
29729 $as_test_x conftest$ac_exeext
29730 }; then
29731 bash_cv_std_unsetenv=yes
29732 else
29733 $as_echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29735
29736 bash_cv_std_unsetenv=no
29737
29738 fi
29739
29740 rm -rf conftest.dSYM
29741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29742 conftest$ac_exeext conftest.$ac_ext
29743 fi
29744 { $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
29745 $as_echo "$bash_cv_std_unsetenv" >&6; }
29746 if test $bash_cv_std_unsetenv = yes; then
29747 cat >>confdefs.h <<\_ACEOF
29748 @%:@define HAVE_STD_UNSETENV 1
29749 _ACEOF
29750
29751 fi
29752
29753 else
29754 cat >>confdefs.h <<\_ACEOF
29755 @%:@define HAVE_STD_UNSETENV 1
29756 _ACEOF
29757
29758 fi
29759
29760 { $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
29761 $as_echo_n "checking for printf floating point output in hex notation... " >&6; }
29762 if test "${bash_cv_printf_a_format+set}" = set; then
29763 $as_echo_n "(cached) " >&6
29764 else
29765 if test "$cross_compiling" = yes; then
29766 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
29767 $as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
29768 bash_cv_printf_a_format=no
29769
29770 else
29771 cat >conftest.$ac_ext <<_ACEOF
29772 /* confdefs.h. */
29773 _ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h. */
29777
29778 #include <stdio.h>
29779 #include <string.h>
29780
29781 int
29782 main()
29783 {
29784 double y = 0.0;
29785 char abuf[1024];
29786
29787 sprintf(abuf, "%A", y);
29788 exit(strchr(abuf, 'P') == (char *)0);
29789 }
29790
29791 _ACEOF
29792 rm -f conftest$ac_exeext
29793 if { (ac_try="$ac_link"
29794 case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29797 esac
29798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29799 $as_echo "$ac_try_echo") >&5
29800 (eval "$ac_link") 2>&5
29801 ac_status=$?
29802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29804 { (case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29807 esac
29808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29809 $as_echo "$ac_try_echo") >&5
29810 (eval "$ac_try") 2>&5
29811 ac_status=$?
29812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; }; then
29814 bash_cv_printf_a_format=yes
29815 else
29816 $as_echo "$as_me: program exited with status $ac_status" >&5
29817 $as_echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29819
29820 ( exit $ac_status )
29821 bash_cv_printf_a_format=no
29822 fi
29823 rm -rf conftest.dSYM
29824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29825 fi
29826
29827
29828 fi
29829
29830 { $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
29831 $as_echo "$bash_cv_printf_a_format" >&6; }
29832 if test $bash_cv_printf_a_format = yes; then
29833 cat >>confdefs.h <<\_ACEOF
29834 @%:@define HAVE_PRINTF_A_FORMAT 1
29835 _ACEOF
29836
29837 fi
29838
29839
29840
29841
29842 { $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
29843 $as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
29844 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
29845 $as_echo_n "(cached) " >&6
29846 else
29847 if test "$cross_compiling" = yes; then
29848 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
29849 $as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
29850 bash_cv_must_reinstall_sighandlers=no
29851
29852 else
29853 cat >conftest.$ac_ext <<_ACEOF
29854 /* confdefs.h. */
29855 _ACEOF
29856 cat confdefs.h >>conftest.$ac_ext
29857 cat >>conftest.$ac_ext <<_ACEOF
29858 /* end confdefs.h. */
29859
29860 #include <signal.h>
29861 #ifdef HAVE_UNISTD_H
29862 #include <unistd.h>
29863 #endif
29864
29865 typedef RETSIGTYPE sigfunc();
29866
29867 int nsigint;
29868
29869 #ifdef HAVE_POSIX_SIGNALS
29870 sigfunc *
29871 set_signal_handler(sig, handler)
29872 int sig;
29873 sigfunc *handler;
29874 {
29875 struct sigaction act, oact;
29876 act.sa_handler = handler;
29877 act.sa_flags = 0;
29878 sigemptyset (&act.sa_mask);
29879 sigemptyset (&oact.sa_mask);
29880 sigaction (sig, &act, &oact);
29881 return (oact.sa_handler);
29882 }
29883 #else
29884 #define set_signal_handler(s, h) signal(s, h)
29885 #endif
29886
29887 RETSIGTYPE
29888 sigint(s)
29889 int s;
29890 {
29891 nsigint++;
29892 }
29893
29894 main()
29895 {
29896 nsigint = 0;
29897 set_signal_handler(SIGINT, sigint);
29898 kill((int)getpid(), SIGINT);
29899 kill((int)getpid(), SIGINT);
29900 exit(nsigint != 2);
29901 }
29902
29903 _ACEOF
29904 rm -f conftest$ac_exeext
29905 if { (ac_try="$ac_link"
29906 case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29909 esac
29910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29911 $as_echo "$ac_try_echo") >&5
29912 (eval "$ac_link") 2>&5
29913 ac_status=$?
29914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29916 { (case "(($ac_try" in
29917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29918 *) ac_try_echo=$ac_try;;
29919 esac
29920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29921 $as_echo "$ac_try_echo") >&5
29922 (eval "$ac_try") 2>&5
29923 ac_status=$?
29924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; }; then
29926 bash_cv_must_reinstall_sighandlers=no
29927 else
29928 $as_echo "$as_me: program exited with status $ac_status" >&5
29929 $as_echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29931
29932 ( exit $ac_status )
29933 bash_cv_must_reinstall_sighandlers=yes
29934 fi
29935 rm -rf conftest.dSYM
29936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29937 fi
29938
29939
29940 fi
29941
29942 { $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
29943 $as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
29944 if test $bash_cv_must_reinstall_sighandlers = yes; then
29945 cat >>confdefs.h <<\_ACEOF
29946 @%:@define MUST_REINSTALL_SIGHANDLERS 1
29947 _ACEOF
29948
29949 fi
29950
29951
29952 { $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
29953 $as_echo_n "checking for presence of necessary job control definitions... " >&6; }
29954 if test "${bash_cv_job_control_missing+set}" = set; then
29955 $as_echo_n "(cached) " >&6
29956 else
29957 if test "$cross_compiling" = yes; then
29958 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
29959 $as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
29960 bash_cv_job_control_missing=missing
29961
29962 else
29963 cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h. */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969
29970 #include <sys/types.h>
29971 #ifdef HAVE_SYS_WAIT_H
29972 #include <sys/wait.h>
29973 #endif
29974 #ifdef HAVE_UNISTD_H
29975 #include <unistd.h>
29976 #endif
29977 #include <signal.h>
29978
29979 /* Add more tests in here as appropriate. */
29980 main()
29981 {
29982 /* signal type */
29983 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29984 exit(1);
29985 #endif
29986
29987 /* signals and tty control. */
29988 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
29989 exit (1);
29990 #endif
29991
29992 /* process control */
29993 #if !defined (WNOHANG) || !defined (WUNTRACED)
29994 exit(1);
29995 #endif
29996
29997 /* Posix systems have tcgetpgrp and waitpid. */
29998 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
29999 exit(1);
30000 #endif
30001
30002 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30003 exit(1);
30004 #endif
30005
30006 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30007 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30008 exit(1);
30009 #endif
30010
30011 exit(0);
30012 }
30013 _ACEOF
30014 rm -f conftest$ac_exeext
30015 if { (ac_try="$ac_link"
30016 case "(($ac_try" in
30017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018 *) ac_try_echo=$ac_try;;
30019 esac
30020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30021 $as_echo "$ac_try_echo") >&5
30022 (eval "$ac_link") 2>&5
30023 ac_status=$?
30024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30026 { (case "(($ac_try" in
30027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30028 *) ac_try_echo=$ac_try;;
30029 esac
30030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30031 $as_echo "$ac_try_echo") >&5
30032 (eval "$ac_try") 2>&5
30033 ac_status=$?
30034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; }; then
30036 bash_cv_job_control_missing=present
30037 else
30038 $as_echo "$as_me: program exited with status $ac_status" >&5
30039 $as_echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042 ( exit $ac_status )
30043 bash_cv_job_control_missing=missing
30044 fi
30045 rm -rf conftest.dSYM
30046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30047 fi
30048
30049
30050 fi
30051
30052 { $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
30053 $as_echo "$bash_cv_job_control_missing" >&6; }
30054 if test $bash_cv_job_control_missing = missing; then
30055 cat >>confdefs.h <<\_ACEOF
30056 @%:@define JOB_CONTROL_MISSING 1
30057 _ACEOF
30058
30059 fi
30060
30061 { $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
30062 $as_echo_n "checking for presence of named pipes... " >&6; }
30063 if test "${bash_cv_sys_named_pipes+set}" = set; then
30064 $as_echo_n "(cached) " >&6
30065 else
30066 if test "$cross_compiling" = yes; then
30067 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
30068 $as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
30069 bash_cv_sys_named_pipes=missing
30070
30071 else
30072 cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h. */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30078
30079 #include <sys/types.h>
30080 #include <sys/stat.h>
30081 #ifdef HAVE_UNISTD_H
30082 #include <unistd.h>
30083 #endif
30084
30085 /* Add more tests in here as appropriate. */
30086 main()
30087 {
30088 int fd, err;
30089
30090 #if defined (HAVE_MKFIFO)
30091 exit (0);
30092 #endif
30093
30094 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30095 exit (1);
30096 #endif
30097
30098 #if defined (NeXT)
30099 exit (1);
30100 #endif
30101 err = mkdir("bash-aclocal", 0700);
30102 if (err < 0) {
30103 perror ("mkdir");
30104 exit(1);
30105 }
30106 fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
30107 if (fd == -1) {
30108 rmdir ("bash-aclocal");
30109 exit (1);
30110 }
30111 close(fd);
30112 unlink ("bash-aclocal/sh-np-autoconf");
30113 rmdir ("bash-aclocal");
30114 exit(0);
30115 }
30116 _ACEOF
30117 rm -f conftest$ac_exeext
30118 if { (ac_try="$ac_link"
30119 case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30122 esac
30123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30124 $as_echo "$ac_try_echo") >&5
30125 (eval "$ac_link") 2>&5
30126 ac_status=$?
30127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30129 { (case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30132 esac
30133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30134 $as_echo "$ac_try_echo") >&5
30135 (eval "$ac_try") 2>&5
30136 ac_status=$?
30137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 bash_cv_sys_named_pipes=present
30140 else
30141 $as_echo "$as_me: program exited with status $ac_status" >&5
30142 $as_echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30144
30145 ( exit $ac_status )
30146 bash_cv_sys_named_pipes=missing
30147 fi
30148 rm -rf conftest.dSYM
30149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30150 fi
30151
30152
30153 fi
30154
30155 { $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
30156 $as_echo "$bash_cv_sys_named_pipes" >&6; }
30157 if test $bash_cv_sys_named_pipes = missing; then
30158 cat >>confdefs.h <<\_ACEOF
30159 @%:@define NAMED_PIPES_MISSING 1
30160 _ACEOF
30161
30162 fi
30163
30164
30165 { $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
30166 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
30167 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
30168 $as_echo_n "(cached) " >&6
30169 else
30170 cat >conftest.$ac_ext <<_ACEOF
30171 /* confdefs.h. */
30172 _ACEOF
30173 cat confdefs.h >>conftest.$ac_ext
30174 cat >>conftest.$ac_ext <<_ACEOF
30175 /* end confdefs.h. */
30176 #include <sys/types.h>
30177 #include <termios.h>
30178 #ifdef TIOCGWINSZ
30179 yes
30180 #endif
30181
30182 _ACEOF
30183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30184 $EGREP "yes" >/dev/null 2>&1; then
30185 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30186 else
30187 ac_cv_sys_tiocgwinsz_in_termios_h=no
30188 fi
30189 rm -f conftest*
30190
30191 fi
30192 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
30193 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
30194
30195 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
30196 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
30197 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
30198 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
30199 $as_echo_n "(cached) " >&6
30200 else
30201 cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h. */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h. */
30207 #include <sys/types.h>
30208 #include <sys/ioctl.h>
30209 #ifdef TIOCGWINSZ
30210 yes
30211 #endif
30212
30213 _ACEOF
30214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30215 $EGREP "yes" >/dev/null 2>&1; then
30216 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
30217 else
30218 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
30219 fi
30220 rm -f conftest*
30221
30222 fi
30223 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
30224 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
30225
30226 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
30227
30228 cat >>confdefs.h <<\_ACEOF
30229 @%:@define GWINSZ_IN_SYS_IOCTL 1
30230 _ACEOF
30231
30232 fi
30233 fi
30234
30235 { $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
30236 $as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
30237 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
30238 $as_echo_n "(cached) " >&6
30239 else
30240 cat >conftest.$ac_ext <<_ACEOF
30241 /* confdefs.h. */
30242 _ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h. */
30246 #include <sys/types.h>
30247 #include <sys/ioctl.h>
30248 int
30249 main ()
30250 {
30251 int x = TIOCSTAT;
30252 ;
30253 return 0;
30254 }
30255 _ACEOF
30256 rm -f conftest.$ac_objext
30257 if { (ac_try="$ac_compile"
30258 case "(($ac_try" in
30259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260 *) ac_try_echo=$ac_try;;
30261 esac
30262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30263 $as_echo "$ac_try_echo") >&5
30264 (eval "$ac_compile") 2>conftest.er1
30265 ac_status=$?
30266 grep -v '^ *+' conftest.er1 >conftest.err
30267 rm -f conftest.er1
30268 cat conftest.err >&5
30269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270 (exit $ac_status); } && {
30271 test -z "$ac_c_werror_flag" ||
30272 test ! -s conftest.err
30273 } && test -s conftest.$ac_objext; then
30274 bash_cv_tiocstat_in_ioctl=yes
30275 else
30276 $as_echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30278
30279 bash_cv_tiocstat_in_ioctl=no
30280 fi
30281
30282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30283 fi
30284
30285 { $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
30286 $as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
30287 if test $bash_cv_tiocstat_in_ioctl = yes; then
30288 cat >>confdefs.h <<\_ACEOF
30289 @%:@define TIOCSTAT_IN_SYS_IOCTL 1
30290 _ACEOF
30291
30292 fi
30293
30294 { $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
30295 $as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
30296 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
30297 $as_echo_n "(cached) " >&6
30298 else
30299 cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h. */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30305 #include <sys/types.h>
30306 #include <sys/ioctl.h>
30307 int
30308 main ()
30309 {
30310 int x = FIONREAD;
30311 ;
30312 return 0;
30313 }
30314 _ACEOF
30315 rm -f conftest.$ac_objext
30316 if { (ac_try="$ac_compile"
30317 case "(($ac_try" in
30318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30319 *) ac_try_echo=$ac_try;;
30320 esac
30321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30322 $as_echo "$ac_try_echo") >&5
30323 (eval "$ac_compile") 2>conftest.er1
30324 ac_status=$?
30325 grep -v '^ *+' conftest.er1 >conftest.err
30326 rm -f conftest.er1
30327 cat conftest.err >&5
30328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); } && {
30330 test -z "$ac_c_werror_flag" ||
30331 test ! -s conftest.err
30332 } && test -s conftest.$ac_objext; then
30333 bash_cv_fionread_in_ioctl=yes
30334 else
30335 $as_echo "$as_me: failed program was:" >&5
30336 sed 's/^/| /' conftest.$ac_ext >&5
30337
30338 bash_cv_fionread_in_ioctl=no
30339 fi
30340
30341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30342 fi
30343
30344 { $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
30345 $as_echo "$bash_cv_fionread_in_ioctl" >&6; }
30346 if test $bash_cv_fionread_in_ioctl = yes; then
30347 cat >>confdefs.h <<\_ACEOF
30348 @%:@define FIONREAD_IN_SYS_IOCTL 1
30349 _ACEOF
30350
30351 fi
30352
30353
30354
30355 { $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
30356 $as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
30357 if test "${bash_cv_wcontinued_broken+set}" = set; then
30358 $as_echo_n "(cached) " >&6
30359 else
30360 if test "$cross_compiling" = yes; then
30361 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
30362 $as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
30363 bash_cv_wcontinued_broken=no
30364
30365 else
30366 cat >conftest.$ac_ext <<_ACEOF
30367 /* confdefs.h. */
30368 _ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h. */
30372
30373 #include <sys/types.h>
30374 #include <sys/wait.h>
30375 #include <unistd.h>
30376 #include <errno.h>
30377
30378 #ifndef errno
30379 extern int errno;
30380 #endif
30381 main()
30382 {
30383 int x;
30384
30385 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30386 if (x == -1 && errno == EINVAL)
30387 exit (1);
30388 else
30389 exit (0);
30390 }
30391
30392 _ACEOF
30393 rm -f conftest$ac_exeext
30394 if { (ac_try="$ac_link"
30395 case "(($ac_try" in
30396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30397 *) ac_try_echo=$ac_try;;
30398 esac
30399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30400 $as_echo "$ac_try_echo") >&5
30401 (eval "$ac_link") 2>&5
30402 ac_status=$?
30403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30405 { (case "(($ac_try" in
30406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407 *) ac_try_echo=$ac_try;;
30408 esac
30409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30410 $as_echo "$ac_try_echo") >&5
30411 (eval "$ac_try") 2>&5
30412 ac_status=$?
30413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); }; }; then
30415 bash_cv_wcontinued_broken=no
30416 else
30417 $as_echo "$as_me: program exited with status $ac_status" >&5
30418 $as_echo "$as_me: failed program was:" >&5
30419 sed 's/^/| /' conftest.$ac_ext >&5
30420
30421 ( exit $ac_status )
30422 bash_cv_wcontinued_broken=yes
30423 fi
30424 rm -rf conftest.dSYM
30425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30426 fi
30427
30428
30429 fi
30430
30431 { $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
30432 $as_echo "$bash_cv_wcontinued_broken" >&6; }
30433 if test $bash_cv_wcontinued_broken = yes; then
30434 cat >>confdefs.h <<\_ACEOF
30435 @%:@define WCONTINUED_BROKEN 1
30436 _ACEOF
30437
30438 fi
30439
30440
30441 { $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
30442 $as_echo_n "checking for speed_t in sys/types.h... " >&6; }
30443 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
30444 $as_echo_n "(cached) " >&6
30445 else
30446 cat >conftest.$ac_ext <<_ACEOF
30447 /* confdefs.h. */
30448 _ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h. */
30452 #include <sys/types.h>
30453 int
30454 main ()
30455 {
30456 speed_t x;
30457 ;
30458 return 0;
30459 }
30460 _ACEOF
30461 rm -f conftest.$ac_objext
30462 if { (ac_try="$ac_compile"
30463 case "(($ac_try" in
30464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30465 *) ac_try_echo=$ac_try;;
30466 esac
30467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30468 $as_echo "$ac_try_echo") >&5
30469 (eval "$ac_compile") 2>conftest.er1
30470 ac_status=$?
30471 grep -v '^ *+' conftest.er1 >conftest.err
30472 rm -f conftest.er1
30473 cat conftest.err >&5
30474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); } && {
30476 test -z "$ac_c_werror_flag" ||
30477 test ! -s conftest.err
30478 } && test -s conftest.$ac_objext; then
30479 bash_cv_speed_t_in_sys_types=yes
30480 else
30481 $as_echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30483
30484 bash_cv_speed_t_in_sys_types=no
30485 fi
30486
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30488 fi
30489
30490 { $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
30491 $as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
30492 if test $bash_cv_speed_t_in_sys_types = yes; then
30493 cat >>confdefs.h <<\_ACEOF
30494 @%:@define SPEED_T_IN_SYS_TYPES 1
30495 _ACEOF
30496
30497 fi
30498
30499 { $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
30500 $as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
30501 if test "${bash_cv_getpw_declared+set}" = set; then
30502 $as_echo_n "(cached) " >&6
30503 else
30504 cat >conftest.$ac_ext <<_ACEOF
30505 /* confdefs.h. */
30506 _ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h. */
30510
30511 #include <sys/types.h>
30512 #ifdef HAVE_UNISTD_H
30513 # include <unistd.h>
30514 #endif
30515 #include <pwd.h>
30516
30517 _ACEOF
30518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30519 $EGREP "getpwuid" >/dev/null 2>&1; then
30520 bash_cv_getpw_declared=yes
30521 else
30522 bash_cv_getpw_declared=no
30523 fi
30524 rm -f conftest*
30525
30526 fi
30527
30528 { $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
30529 $as_echo "$bash_cv_getpw_declared" >&6; }
30530 if test $bash_cv_getpw_declared = yes; then
30531 cat >>confdefs.h <<\_ACEOF
30532 @%:@define HAVE_GETPW_DECLS 1
30533 _ACEOF
30534
30535 fi
30536
30537 { $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
30538 $as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
30539 if test "${bash_cv_unusable_rtsigs+set}" = set; then
30540 $as_echo_n "(cached) " >&6
30541 else
30542 if test "$cross_compiling" = yes; then
30543 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
30544 $as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
30545 bash_cv_unusable_rtsigs=yes
30546
30547 else
30548 cat >conftest.$ac_ext <<_ACEOF
30549 /* confdefs.h. */
30550 _ACEOF
30551 cat confdefs.h >>conftest.$ac_ext
30552 cat >>conftest.$ac_ext <<_ACEOF
30553 /* end confdefs.h. */
30554
30555 #include <sys/types.h>
30556 #include <signal.h>
30557
30558 #ifndef NSIG
30559 # define NSIG 64
30560 #endif
30561
30562 main ()
30563 {
30564 int n_sigs = 2 * NSIG;
30565 #ifdef SIGRTMIN
30566 int rtmin = SIGRTMIN;
30567 #else
30568 int rtmin = 0;
30569 #endif
30570
30571 exit(rtmin < n_sigs);
30572 }
30573 _ACEOF
30574 rm -f conftest$ac_exeext
30575 if { (ac_try="$ac_link"
30576 case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30579 esac
30580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30581 $as_echo "$ac_try_echo") >&5
30582 (eval "$ac_link") 2>&5
30583 ac_status=$?
30584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30586 { (case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589 esac
30590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30591 $as_echo "$ac_try_echo") >&5
30592 (eval "$ac_try") 2>&5
30593 ac_status=$?
30594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 bash_cv_unusable_rtsigs=yes
30597 else
30598 $as_echo "$as_me: program exited with status $ac_status" >&5
30599 $as_echo "$as_me: failed program was:" >&5
30600 sed 's/^/| /' conftest.$ac_ext >&5
30601
30602 ( exit $ac_status )
30603 bash_cv_unusable_rtsigs=no
30604 fi
30605 rm -rf conftest.dSYM
30606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30607 fi
30608
30609
30610 fi
30611
30612 { $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
30613 $as_echo "$bash_cv_unusable_rtsigs" >&6; }
30614 if test $bash_cv_unusable_rtsigs = yes; then
30615 cat >>confdefs.h <<\_ACEOF
30616 @%:@define UNUSABLE_RT_SIGNALS 1
30617 _ACEOF
30618
30619 fi
30620
30621
30622
30623
30624
30625 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30626 SIGLIST_O=siglist.o
30627 else
30628 SIGLIST_O=
30629 fi
30630
30631
30632
30633 case "$host_os" in
30634 hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
30635 $as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
30636 if test "${bash_cv_kernel_rlimit+set}" = set; then
30637 $as_echo_n "(cached) " >&6
30638 else
30639 cat >conftest.$ac_ext <<_ACEOF
30640 /* confdefs.h. */
30641 _ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h. */
30645
30646 #include <sys/types.h>
30647 #include <sys/resource.h>
30648
30649 int
30650 main ()
30651 {
30652
30653 int f;
30654 f = RLIMIT_DATA;
30655
30656 ;
30657 return 0;
30658 }
30659 _ACEOF
30660 rm -f conftest.$ac_objext
30661 if { (ac_try="$ac_compile"
30662 case "(($ac_try" in
30663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664 *) ac_try_echo=$ac_try;;
30665 esac
30666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30667 $as_echo "$ac_try_echo") >&5
30668 (eval "$ac_compile") 2>conftest.er1
30669 ac_status=$?
30670 grep -v '^ *+' conftest.er1 >conftest.err
30671 rm -f conftest.er1
30672 cat conftest.err >&5
30673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); } && {
30675 test -z "$ac_c_werror_flag" ||
30676 test ! -s conftest.err
30677 } && test -s conftest.$ac_objext; then
30678 bash_cv_kernel_rlimit=no
30679 else
30680 $as_echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30682
30683 cat >conftest.$ac_ext <<_ACEOF
30684 /* confdefs.h. */
30685 _ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30689
30690 #include <sys/types.h>
30691 #define _KERNEL
30692 #include <sys/resource.h>
30693 #undef _KERNEL
30694
30695 int
30696 main ()
30697 {
30698
30699 int f;
30700 f = RLIMIT_DATA;
30701
30702 ;
30703 return 0;
30704 }
30705 _ACEOF
30706 rm -f conftest.$ac_objext
30707 if { (ac_try="$ac_compile"
30708 case "(($ac_try" in
30709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710 *) ac_try_echo=$ac_try;;
30711 esac
30712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30713 $as_echo "$ac_try_echo") >&5
30714 (eval "$ac_compile") 2>conftest.er1
30715 ac_status=$?
30716 grep -v '^ *+' conftest.er1 >conftest.err
30717 rm -f conftest.er1
30718 cat conftest.err >&5
30719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); } && {
30721 test -z "$ac_c_werror_flag" ||
30722 test ! -s conftest.err
30723 } && test -s conftest.$ac_objext; then
30724 bash_cv_kernel_rlimit=yes
30725 else
30726 $as_echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30728
30729 bash_cv_kernel_rlimit=no
30730 fi
30731
30732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30733
30734 fi
30735
30736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30737 fi
30738
30739 { $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
30740 $as_echo "$bash_cv_kernel_rlimit" >&6; }
30741 if test $bash_cv_kernel_rlimit = yes; then
30742 cat >>confdefs.h <<\_ACEOF
30743 @%:@define RLIMIT_NEEDS_KERNEL 1
30744 _ACEOF
30745
30746 fi
30747 ;;
30748 esac
30749
30750 if test "$opt_readline" = yes; then
30751 case "$host_os" in
30752 aix*) prefer_curses=yes ;;
30753 esac
30754
30755 if test "X$bash_cv_termcap_lib" = "X"; then
30756 _bash_needmsg=yes
30757 else
30758 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
30759 $as_echo_n "checking which library has the termcap functions... " >&6; }
30760 _bash_needmsg=
30761 fi
30762 if test "${bash_cv_termcap_lib+set}" = set; then
30763 $as_echo_n "(cached) " >&6
30764 else
30765 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30766 $as_echo_n "checking for tgetent... " >&6; }
30767 if test "${ac_cv_func_tgetent+set}" = set; then
30768 $as_echo_n "(cached) " >&6
30769 else
30770 cat >conftest.$ac_ext <<_ACEOF
30771 /* confdefs.h. */
30772 _ACEOF
30773 cat confdefs.h >>conftest.$ac_ext
30774 cat >>conftest.$ac_ext <<_ACEOF
30775 /* end confdefs.h. */
30776 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30778 #define tgetent innocuous_tgetent
30779
30780 /* System header to define __stub macros and hopefully few prototypes,
30781 which can conflict with char tgetent (); below.
30782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30783 <limits.h> exists even on freestanding compilers. */
30784
30785 #ifdef __STDC__
30786 # include <limits.h>
30787 #else
30788 # include <assert.h>
30789 #endif
30790
30791 #undef tgetent
30792
30793 /* Override any GCC internal prototype to avoid an error.
30794 Use char because int might match the return type of a GCC
30795 builtin and then its argument prototype would still apply. */
30796 #ifdef __cplusplus
30797 extern "C"
30798 #endif
30799 char tgetent ();
30800 /* The GNU C library defines this for functions which it implements
30801 to always fail with ENOSYS. Some functions are actually named
30802 something starting with __ and the normal name is an alias. */
30803 #if defined __stub_tgetent || defined __stub___tgetent
30804 choke me
30805 #endif
30806
30807 int
30808 main ()
30809 {
30810 return tgetent ();
30811 ;
30812 return 0;
30813 }
30814 _ACEOF
30815 rm -f conftest.$ac_objext conftest$ac_exeext
30816 if { (ac_try="$ac_link"
30817 case "(($ac_try" in
30818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30819 *) ac_try_echo=$ac_try;;
30820 esac
30821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30822 $as_echo "$ac_try_echo") >&5
30823 (eval "$ac_link") 2>conftest.er1
30824 ac_status=$?
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
30828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } && {
30830 test -z "$ac_c_werror_flag" ||
30831 test ! -s conftest.err
30832 } && test -s conftest$ac_exeext && {
30833 test "$cross_compiling" = yes ||
30834 $as_test_x conftest$ac_exeext
30835 }; then
30836 ac_cv_func_tgetent=yes
30837 else
30838 $as_echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841 ac_cv_func_tgetent=no
30842 fi
30843
30844 rm -rf conftest.dSYM
30845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30846 conftest$ac_exeext conftest.$ac_ext
30847 fi
30848 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30849 $as_echo "$ac_cv_func_tgetent" >&6; }
30850 if test "x$ac_cv_func_tgetent" = x""yes; then
30851 bash_cv_termcap_lib=libc
30852 else
30853 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30854 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
30855 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30856 $as_echo_n "(cached) " >&6
30857 else
30858 ac_check_lib_save_LIBS=$LIBS
30859 LIBS="-ltermcap $LIBS"
30860 cat >conftest.$ac_ext <<_ACEOF
30861 /* confdefs.h. */
30862 _ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h. */
30866
30867 /* Override any GCC internal prototype to avoid an error.
30868 Use char because int might match the return type of a GCC
30869 builtin and then its argument prototype would still apply. */
30870 #ifdef __cplusplus
30871 extern "C"
30872 #endif
30873 char tgetent ();
30874 int
30875 main ()
30876 {
30877 return tgetent ();
30878 ;
30879 return 0;
30880 }
30881 _ACEOF
30882 rm -f conftest.$ac_objext conftest$ac_exeext
30883 if { (ac_try="$ac_link"
30884 case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30887 esac
30888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30889 $as_echo "$ac_try_echo") >&5
30890 (eval "$ac_link") 2>conftest.er1
30891 ac_status=$?
30892 grep -v '^ *+' conftest.er1 >conftest.err
30893 rm -f conftest.er1
30894 cat conftest.err >&5
30895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } && {
30897 test -z "$ac_c_werror_flag" ||
30898 test ! -s conftest.err
30899 } && test -s conftest$ac_exeext && {
30900 test "$cross_compiling" = yes ||
30901 $as_test_x conftest$ac_exeext
30902 }; then
30903 ac_cv_lib_termcap_tgetent=yes
30904 else
30905 $as_echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30907
30908 ac_cv_lib_termcap_tgetent=no
30909 fi
30910
30911 rm -rf conftest.dSYM
30912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30913 conftest$ac_exeext conftest.$ac_ext
30914 LIBS=$ac_check_lib_save_LIBS
30915 fi
30916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30917 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
30918 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
30919 bash_cv_termcap_lib=libtermcap
30920 else
30921 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
30922 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
30923 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
30924 $as_echo_n "(cached) " >&6
30925 else
30926 ac_check_lib_save_LIBS=$LIBS
30927 LIBS="-ltinfo $LIBS"
30928 cat >conftest.$ac_ext <<_ACEOF
30929 /* confdefs.h. */
30930 _ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h. */
30934
30935 /* Override any GCC internal prototype to avoid an error.
30936 Use char because int might match the return type of a GCC
30937 builtin and then its argument prototype would still apply. */
30938 #ifdef __cplusplus
30939 extern "C"
30940 #endif
30941 char tgetent ();
30942 int
30943 main ()
30944 {
30945 return tgetent ();
30946 ;
30947 return 0;
30948 }
30949 _ACEOF
30950 rm -f conftest.$ac_objext conftest$ac_exeext
30951 if { (ac_try="$ac_link"
30952 case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30955 esac
30956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30957 $as_echo "$ac_try_echo") >&5
30958 (eval "$ac_link") 2>conftest.er1
30959 ac_status=$?
30960 grep -v '^ *+' conftest.er1 >conftest.err
30961 rm -f conftest.er1
30962 cat conftest.err >&5
30963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); } && {
30965 test -z "$ac_c_werror_flag" ||
30966 test ! -s conftest.err
30967 } && test -s conftest$ac_exeext && {
30968 test "$cross_compiling" = yes ||
30969 $as_test_x conftest$ac_exeext
30970 }; then
30971 ac_cv_lib_tinfo_tgetent=yes
30972 else
30973 $as_echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976 ac_cv_lib_tinfo_tgetent=no
30977 fi
30978
30979 rm -rf conftest.dSYM
30980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30981 conftest$ac_exeext conftest.$ac_ext
30982 LIBS=$ac_check_lib_save_LIBS
30983 fi
30984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
30985 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
30986 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
30987 bash_cv_termcap_lib=libtinfo
30988 else
30989 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30990 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
30991 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30992 $as_echo_n "(cached) " >&6
30993 else
30994 ac_check_lib_save_LIBS=$LIBS
30995 LIBS="-lcurses $LIBS"
30996 cat >conftest.$ac_ext <<_ACEOF
30997 /* confdefs.h. */
30998 _ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h. */
31002
31003 /* Override any GCC internal prototype to avoid an error.
31004 Use char because int might match the return type of a GCC
31005 builtin and then its argument prototype would still apply. */
31006 #ifdef __cplusplus
31007 extern "C"
31008 #endif
31009 char tgetent ();
31010 int
31011 main ()
31012 {
31013 return tgetent ();
31014 ;
31015 return 0;
31016 }
31017 _ACEOF
31018 rm -f conftest.$ac_objext conftest$ac_exeext
31019 if { (ac_try="$ac_link"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023 esac
31024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31025 $as_echo "$ac_try_echo") >&5
31026 (eval "$ac_link") 2>conftest.er1
31027 ac_status=$?
31028 grep -v '^ *+' conftest.er1 >conftest.err
31029 rm -f conftest.er1
31030 cat conftest.err >&5
31031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } && {
31033 test -z "$ac_c_werror_flag" ||
31034 test ! -s conftest.err
31035 } && test -s conftest$ac_exeext && {
31036 test "$cross_compiling" = yes ||
31037 $as_test_x conftest$ac_exeext
31038 }; then
31039 ac_cv_lib_curses_tgetent=yes
31040 else
31041 $as_echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31043
31044 ac_cv_lib_curses_tgetent=no
31045 fi
31046
31047 rm -rf conftest.dSYM
31048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31049 conftest$ac_exeext conftest.$ac_ext
31050 LIBS=$ac_check_lib_save_LIBS
31051 fi
31052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
31053 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
31054 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
31055 bash_cv_termcap_lib=libcurses
31056 else
31057 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
31058 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
31059 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
31060 $as_echo_n "(cached) " >&6
31061 else
31062 ac_check_lib_save_LIBS=$LIBS
31063 LIBS="-lncurses $LIBS"
31064 cat >conftest.$ac_ext <<_ACEOF
31065 /* confdefs.h. */
31066 _ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31070
31071 /* Override any GCC internal prototype to avoid an error.
31072 Use char because int might match the return type of a GCC
31073 builtin and then its argument prototype would still apply. */
31074 #ifdef __cplusplus
31075 extern "C"
31076 #endif
31077 char tgetent ();
31078 int
31079 main ()
31080 {
31081 return tgetent ();
31082 ;
31083 return 0;
31084 }
31085 _ACEOF
31086 rm -f conftest.$ac_objext conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31091 esac
31092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31093 $as_echo "$ac_try_echo") >&5
31094 (eval "$ac_link") 2>conftest.er1
31095 ac_status=$?
31096 grep -v '^ *+' conftest.er1 >conftest.err
31097 rm -f conftest.er1
31098 cat conftest.err >&5
31099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } && {
31101 test -z "$ac_c_werror_flag" ||
31102 test ! -s conftest.err
31103 } && test -s conftest$ac_exeext && {
31104 test "$cross_compiling" = yes ||
31105 $as_test_x conftest$ac_exeext
31106 }; then
31107 ac_cv_lib_ncurses_tgetent=yes
31108 else
31109 $as_echo "$as_me: failed program was:" >&5
31110 sed 's/^/| /' conftest.$ac_ext >&5
31111
31112 ac_cv_lib_ncurses_tgetent=no
31113 fi
31114
31115 rm -rf conftest.dSYM
31116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31117 conftest$ac_exeext conftest.$ac_ext
31118 LIBS=$ac_check_lib_save_LIBS
31119 fi
31120 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
31121 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
31122 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
31123 bash_cv_termcap_lib=libncurses
31124 else
31125 bash_cv_termcap_lib=gnutermcap
31126 fi
31127
31128 fi
31129
31130 fi
31131
31132 fi
31133
31134 fi
31135
31136 fi
31137
31138 if test "X$_bash_needmsg" = "Xyes"; then
31139 { $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
31140 $as_echo_n "checking which library has the termcap functions... " >&6; }
31141 fi
31142 { $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
31143 $as_echo "using $bash_cv_termcap_lib" >&6; }
31144 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
31145 LDFLAGS="$LDFLAGS -L./lib/termcap"
31146 TERMCAP_LIB="./lib/termcap/libtermcap.a"
31147 TERMCAP_DEP="./lib/termcap/libtermcap.a"
31148 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
31149 TERMCAP_LIB=-ltermcap
31150 TERMCAP_DEP=
31151 elif test $bash_cv_termcap_lib = libtinfo; then
31152 TERMCAP_LIB=-ltinfo
31153 TERMCAP_DEP=
31154 elif test $bash_cv_termcap_lib = libncurses; then
31155 TERMCAP_LIB=-lncurses
31156 TERMCAP_DEP=
31157 elif test $bash_cv_termcap_lib = libc; then
31158 TERMCAP_LIB=
31159 TERMCAP_DEP=
31160 else
31161 TERMCAP_LIB=-lcurses
31162 TERMCAP_DEP=
31163 fi
31164
31165 fi
31166
31167
31168
31169 { $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
31170 $as_echo_n "checking whether /dev/fd is available... " >&6; }
31171 if test "${bash_cv_dev_fd+set}" = set; then
31172 $as_echo_n "(cached) " >&6
31173 else
31174 bash_cv_dev_fd=""
31175 if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
31176 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
31177 if (exec test -r /dev/fd/3 3</dev/null) ; then
31178 bash_cv_dev_fd=standard
31179 else
31180 bash_cv_dev_fd=absent
31181 fi
31182 fi
31183 if test -z "$bash_cv_dev_fd" ; then
31184 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31185 bash_cv_dev_fd=whacky
31186 else
31187 bash_cv_dev_fd=absent
31188 fi
31189 fi
31190
31191 fi
31192
31193 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
31194 $as_echo "$bash_cv_dev_fd" >&6; }
31195 if test $bash_cv_dev_fd = "standard"; then
31196 cat >>confdefs.h <<\_ACEOF
31197 @%:@define HAVE_DEV_FD 1
31198 _ACEOF
31199
31200 cat >>confdefs.h <<\_ACEOF
31201 @%:@define DEV_FD_PREFIX "/dev/fd/"
31202 _ACEOF
31203
31204 elif test $bash_cv_dev_fd = "whacky"; then
31205 cat >>confdefs.h <<\_ACEOF
31206 @%:@define HAVE_DEV_FD 1
31207 _ACEOF
31208
31209 cat >>confdefs.h <<\_ACEOF
31210 @%:@define DEV_FD_PREFIX "/proc/self/fd/"
31211 _ACEOF
31212
31213 fi
31214
31215 { $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
31216 $as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
31217 if test "${bash_cv_dev_stdin+set}" = set; then
31218 $as_echo_n "(cached) " >&6
31219 else
31220 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
31221 bash_cv_dev_stdin=present
31222 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
31223 bash_cv_dev_stdin=present
31224 else
31225 bash_cv_dev_stdin=absent
31226 fi
31227
31228 fi
31229
31230 { $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
31231 $as_echo "$bash_cv_dev_stdin" >&6; }
31232 if test $bash_cv_dev_stdin = "present"; then
31233 cat >>confdefs.h <<\_ACEOF
31234 @%:@define HAVE_DEV_STDIN 1
31235 _ACEOF
31236
31237 fi
31238
31239 { $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
31240 $as_echo_n "checking for default mail directory... " >&6; }
31241 if test "${bash_cv_mail_dir+set}" = set; then
31242 $as_echo_n "(cached) " >&6
31243 else
31244 if test -d /var/mail; then
31245 bash_cv_mail_dir=/var/mail
31246 elif test -d /var/spool/mail; then
31247 bash_cv_mail_dir=/var/spool/mail
31248 elif test -d /usr/mail; then
31249 bash_cv_mail_dir=/usr/mail
31250 elif test -d /usr/spool/mail; then
31251 bash_cv_mail_dir=/usr/spool/mail
31252 else
31253 bash_cv_mail_dir=unknown
31254 fi
31255
31256 fi
31257
31258 { $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
31259 $as_echo "$bash_cv_mail_dir" >&6; }
31260 cat >>confdefs.h <<_ACEOF
31261 @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
31262 _ACEOF
31263
31264
31265
31266 if test "$bash_cv_job_control_missing" = missing; then
31267 opt_job_control=no
31268 fi
31269
31270 if test "$opt_job_control" = yes; then
31271 cat >>confdefs.h <<\_ACEOF
31272 @%:@define JOB_CONTROL 1
31273 _ACEOF
31274
31275 JOBS_O=jobs.o
31276 else
31277 JOBS_O=nojobs.o
31278 fi
31279
31280
31281
31282
31283 LOCAL_DEFS=-DSHELL
31284
31285
31286 case "${host_os}" in
31287 sysv4.2*) cat >>confdefs.h <<\_ACEOF
31288 @%:@define SVR4_2 1
31289 _ACEOF
31290
31291 cat >>confdefs.h <<\_ACEOF
31292 @%:@define SVR4 1
31293 _ACEOF
31294 ;;
31295 sysv4*) cat >>confdefs.h <<\_ACEOF
31296 @%:@define SVR4 1
31297 _ACEOF
31298 ;;
31299 sysv5*) cat >>confdefs.h <<\_ACEOF
31300 @%:@define SVR5 1
31301 _ACEOF
31302 ;;
31303 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
31304 hpux*) LOCAL_CFLAGS=-DHPUX ;;
31305 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
31306 isc*) LOCAL_CFLAGS=-Disc386 ;;
31307 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
31308 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
31309 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31310 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
31311 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
31312 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
31313 solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
31314 solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31315 solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31316 solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
31317 solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
31318 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31319 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31320 case "`uname -r`" in
31321 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31322 @%:@define PGRP_PIPE 1
31323 _ACEOF
31324 ;;
31325 esac ;;
31326 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
31327 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
31328 powerux*) LOCAL_LIBS="-lgen" ;;
31329 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
31330 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
31331 esac
31332
31333 case "${host_os}-${CC}" in
31334 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31335 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31336 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
31337 esac
31338
31339 case "${host_os}" in
31340 freebsd[3-9]*)
31341 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
31342 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31343 fi ;;
31344 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31345 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
31346 esac
31347
31348 case "$host_cpu" in
31349 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31350 esac
31351
31352 case "$host_cpu-$host_os" in
31353 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31354 esac
31355
31356 case "$host_cpu-$host_vendor-$host_os" in
31357 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31358 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31359 esac
31360
31361 #
31362 # Shared object configuration section. These values are generated by
31363 # ${srcdir}/support/shobj-conf
31364 #
31365 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31366 then
31367 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
31368 $as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
31369 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
31370
31371
31372
31373
31374
31375
31376
31377 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
31378 $as_echo "$SHOBJ_STATUS" >&6; }
31379 fi
31380
31381 # try to create a directory tree if the source is elsewhere
31382 # this should be packaged into a script accessible via ${srcdir}/support
31383 case "$srcdir" in
31384 .) ;;
31385 *) for d in doc tests support lib examples; do # dirs
31386 test -d $d || mkdir $d
31387 done
31388 for ld in readline glob tilde malloc sh termcap; do # libdirs
31389 test -d lib/$ld || mkdir lib/$ld
31390 done
31391 test -d examples/loadables || mkdir examples/loadables # loadable builtins
31392 test -d examples/loadables/perl || mkdir examples/loadables/perl
31393 ;;
31394 esac
31395
31396 BUILD_DIR=`pwd`
31397 case "$BUILD_DIR" in
31398 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31399 *) ;;
31400 esac
31401
31402 if test -z "$localedir"; then
31403 localedir='${datarootdir}/locale'
31404 fi
31405 if test -z "$datarootdir"; then
31406 datarootdir='${prefix}/share'
31407 fi
31408
31409
31410
31411
31412
31413
31414 # Some versions of autoconf don't substitute these automatically
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436 #AC_SUBST(ALLOCA_SOURCE)
31437 #AC_SUBST(ALLOCA_OBJECT)
31438
31439 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile"
31440
31441 ac_config_commands="$ac_config_commands default"
31442
31443 cat >confcache <<\_ACEOF
31444 # This file is a shell script that caches the results of configure
31445 # tests run on this system so they can be shared between configure
31446 # scripts and configure runs, see configure's option --config-cache.
31447 # It is not useful on other systems. If it contains results you don't
31448 # want to keep, you may remove or edit it.
31449 #
31450 # config.status only pays attention to the cache file if you give it
31451 # the --recheck option to rerun configure.
31452 #
31453 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31455 # following values.
31456
31457 _ACEOF
31458
31459 # The following way of writing the cache mishandles newlines in values,
31460 # but we know of no workaround that is simple, portable, and efficient.
31461 # So, we kill variables containing newlines.
31462 # Ultrix sh set writes to stderr and can't be redirected directly,
31463 # and sets the high bit in the cache file unless we assign to the vars.
31464 (
31465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31466 eval ac_val=\$$ac_var
31467 case $ac_val in #(
31468 *${as_nl}*)
31469 case $ac_var in #(
31470 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
31471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31472 esac
31473 case $ac_var in #(
31474 _ | IFS | as_nl) ;; #(
31475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31476 *) $as_unset $ac_var ;;
31477 esac ;;
31478 esac
31479 done
31480
31481 (set) 2>&1 |
31482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31483 *${as_nl}ac_space=\ *)
31484 # `set' does not quote correctly, so add quotes (double-quote
31485 # substitution turns \\\\ into \\, and sed turns \\ into \).
31486 sed -n \
31487 "s/'/'\\\\''/g;
31488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31489 ;; #(
31490 *)
31491 # `set' quotes correctly as required by POSIX, so do not add quotes.
31492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31493 ;;
31494 esac |
31495 sort
31496 ) |
31497 sed '
31498 /^ac_cv_env_/b end
31499 t clear
31500 :clear
31501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31502 t end
31503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31504 :end' >>confcache
31505 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31506 if test -w "$cache_file"; then
31507 test "x$cache_file" != "x/dev/null" &&
31508 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31509 $as_echo "$as_me: updating cache $cache_file" >&6;}
31510 cat confcache >$cache_file
31511 else
31512 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31514 fi
31515 fi
31516 rm -f confcache
31517
31518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31519 # Let make expand exec_prefix.
31520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31521
31522 DEFS=-DHAVE_CONFIG_H
31523
31524 ac_libobjs=
31525 ac_ltlibobjs=
31526 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
31527 # 1. Remove the extension, and $U if already installed.
31528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31531 # will be set to the directory where LIBOBJS objects are built.
31532 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31533 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31534 done
31535 LIB@&t@OBJS=$ac_libobjs
31536
31537 LTLIBOBJS=$ac_ltlibobjs
31538
31539
31540
31541
31542 : ${CONFIG_STATUS=./config.status}
31543 ac_write_fail=0
31544 ac_clean_files_save=$ac_clean_files
31545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31546 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31547 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31548 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31549 #! $SHELL
31550 # Generated by $as_me.
31551 # Run this file to recreate the current configuration.
31552 # Compiler output produced by configure, useful for debugging
31553 # configure, is in config.log if it exists.
31554
31555 debug=false
31556 ac_cs_recheck=false
31557 ac_cs_silent=false
31558 SHELL=\${CONFIG_SHELL-$SHELL}
31559 _ACEOF
31560
31561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31562 ## --------------------- ##
31563 ## M4sh Initialization. ##
31564 ## --------------------- ##
31565
31566 # Be more Bourne compatible
31567 DUALCASE=1; export DUALCASE # for MKS sh
31568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31569 emulate sh
31570 NULLCMD=:
31571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31572 # is contrary to our usage. Disable this feature.
31573 alias -g '${1+"$@"}'='"$@"'
31574 setopt NO_GLOB_SUBST
31575 else
31576 case `(set -o) 2>/dev/null` in
31577 *posix*) set -o posix ;;
31578 esac
31579
31580 fi
31581
31582
31583
31584
31585 # PATH needs CR
31586 # Avoid depending upon Character Ranges.
31587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31590 as_cr_digits='0123456789'
31591 as_cr_alnum=$as_cr_Letters$as_cr_digits
31592
31593 as_nl='
31594 '
31595 export as_nl
31596 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31597 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31598 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31599 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31600 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31601 as_echo='printf %s\n'
31602 as_echo_n='printf %s'
31603 else
31604 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31605 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31606 as_echo_n='/usr/ucb/echo -n'
31607 else
31608 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31609 as_echo_n_body='eval
31610 arg=$1;
31611 case $arg in
31612 *"$as_nl"*)
31613 expr "X$arg" : "X\\(.*\\)$as_nl";
31614 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31615 esac;
31616 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31617 '
31618 export as_echo_n_body
31619 as_echo_n='sh -c $as_echo_n_body as_echo'
31620 fi
31621 export as_echo_body
31622 as_echo='sh -c $as_echo_body as_echo'
31623 fi
31624
31625 # The user is always right.
31626 if test "${PATH_SEPARATOR+set}" != set; then
31627 PATH_SEPARATOR=:
31628 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31629 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31630 PATH_SEPARATOR=';'
31631 }
31632 fi
31633
31634 # Support unset when possible.
31635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31636 as_unset=unset
31637 else
31638 as_unset=false
31639 fi
31640
31641
31642 # IFS
31643 # We need space, tab and new line, in precisely that order. Quoting is
31644 # there to prevent editors from complaining about space-tab.
31645 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31646 # splitting by setting IFS to empty value.)
31647 IFS=" "" $as_nl"
31648
31649 # Find who we are. Look in the path if we contain no directory separator.
31650 case $0 in
31651 *[\\/]* ) as_myself=$0 ;;
31652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31653 for as_dir in $PATH
31654 do
31655 IFS=$as_save_IFS
31656 test -z "$as_dir" && as_dir=.
31657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31658 done
31659 IFS=$as_save_IFS
31660
31661 ;;
31662 esac
31663 # We did not find ourselves, most probably we were run as `sh COMMAND'
31664 # in which case we are not to be found in the path.
31665 if test "x$as_myself" = x; then
31666 as_myself=$0
31667 fi
31668 if test ! -f "$as_myself"; then
31669 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31670 { (exit 1); exit 1; }
31671 fi
31672
31673 # Work around bugs in pre-3.0 UWIN ksh.
31674 for as_var in ENV MAIL MAILPATH
31675 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31676 done
31677 PS1='$ '
31678 PS2='> '
31679 PS4='+ '
31680
31681 # NLS nuisances.
31682 LC_ALL=C
31683 export LC_ALL
31684 LANGUAGE=C
31685 export LANGUAGE
31686
31687 # Required to use basename.
31688 if expr a : '\(a\)' >/dev/null 2>&1 &&
31689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31690 as_expr=expr
31691 else
31692 as_expr=false
31693 fi
31694
31695 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31696 as_basename=basename
31697 else
31698 as_basename=false
31699 fi
31700
31701
31702 # Name of the executable.
31703 as_me=`$as_basename -- "$0" ||
31704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31705 X"$0" : 'X\(//\)$' \| \
31706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31707 $as_echo X/"$0" |
31708 sed '/^.*\/\([^/][^/]*\)\/*$/{
31709 s//\1/
31710 q
31711 }
31712 /^X\/\(\/\/\)$/{
31713 s//\1/
31714 q
31715 }
31716 /^X\/\(\/\).*/{
31717 s//\1/
31718 q
31719 }
31720 s/.*/./; q'`
31721
31722 # CDPATH.
31723 $as_unset CDPATH
31724
31725
31726
31727 as_lineno_1=$LINENO
31728 as_lineno_2=$LINENO
31729 test "x$as_lineno_1" != "x$as_lineno_2" &&
31730 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31731
31732 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31733 # uniformly replaced by the line number. The first 'sed' inserts a
31734 # line-number line after each line using $LINENO; the second 'sed'
31735 # does the real work. The second script uses 'N' to pair each
31736 # line-number line with the line containing $LINENO, and appends
31737 # trailing '-' during substitution so that $LINENO is not a special
31738 # case at line end.
31739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31740 # scripts with optimization help from Paolo Bonzini. Blame Lee
31741 # E. McMahon (1931-1989) for sed's syntax. :-)
31742 sed -n '
31743 p
31744 /[$]LINENO/=
31745 ' <$as_myself |
31746 sed '
31747 s/[$]LINENO.*/&-/
31748 t lineno
31749 b
31750 :lineno
31751 N
31752 :loop
31753 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31754 t loop
31755 s/-\n.*//
31756 ' >$as_me.lineno &&
31757 chmod +x "$as_me.lineno" ||
31758 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31759 { (exit 1); exit 1; }; }
31760
31761 # Don't try to exec as it changes $[0], causing all sort of problems
31762 # (the dirname of $[0] is not the place where we might find the
31763 # original and so on. Autoconf is especially sensitive to this).
31764 . "./$as_me.lineno"
31765 # Exit status is that of the last command.
31766 exit
31767 }
31768
31769
31770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31771 as_dirname=dirname
31772 else
31773 as_dirname=false
31774 fi
31775
31776 ECHO_C= ECHO_N= ECHO_T=
31777 case `echo -n x` in
31778 -n*)
31779 case `echo 'x\c'` in
31780 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31781 *) ECHO_C='\c';;
31782 esac;;
31783 *)
31784 ECHO_N='-n';;
31785 esac
31786 if expr a : '\(a\)' >/dev/null 2>&1 &&
31787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31788 as_expr=expr
31789 else
31790 as_expr=false
31791 fi
31792
31793 rm -f conf$$ conf$$.exe conf$$.file
31794 if test -d conf$$.dir; then
31795 rm -f conf$$.dir/conf$$.file
31796 else
31797 rm -f conf$$.dir
31798 mkdir conf$$.dir 2>/dev/null
31799 fi
31800 if (echo >conf$$.file) 2>/dev/null; then
31801 if ln -s conf$$.file conf$$ 2>/dev/null; then
31802 as_ln_s='ln -s'
31803 # ... but there are two gotchas:
31804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31806 # In both cases, we have to default to `cp -p'.
31807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31808 as_ln_s='cp -p'
31809 elif ln conf$$.file conf$$ 2>/dev/null; then
31810 as_ln_s=ln
31811 else
31812 as_ln_s='cp -p'
31813 fi
31814 else
31815 as_ln_s='cp -p'
31816 fi
31817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31818 rmdir conf$$.dir 2>/dev/null
31819
31820 if mkdir -p . 2>/dev/null; then
31821 as_mkdir_p=:
31822 else
31823 test -d ./-p && rmdir ./-p
31824 as_mkdir_p=false
31825 fi
31826
31827 if test -x / >/dev/null 2>&1; then
31828 as_test_x='test -x'
31829 else
31830 if ls -dL / >/dev/null 2>&1; then
31831 as_ls_L_option=L
31832 else
31833 as_ls_L_option=
31834 fi
31835 as_test_x='
31836 eval sh -c '\''
31837 if test -d "$1"; then
31838 test -d "$1/.";
31839 else
31840 case $1 in
31841 -*)set "./$1";;
31842 esac;
31843 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31844 ???[sx]*):;;*)false;;esac;fi
31845 '\'' sh
31846 '
31847 fi
31848 as_executable_p=$as_test_x
31849
31850 # Sed expression to map a string onto a valid CPP name.
31851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31852
31853 # Sed expression to map a string onto a valid variable name.
31854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31855
31856
31857 exec 6>&1
31858
31859 # Save the log message, to keep $[0] and so on meaningful, and to
31860 # report actual input values of CONFIG_FILES etc. instead of their
31861 # values after options handling.
31862 ac_log="
31863 This file was extended by bash $as_me 4.2-alpha, which was
31864 generated by GNU Autoconf 2.63. Invocation command line was
31865
31866 CONFIG_FILES = $CONFIG_FILES
31867 CONFIG_HEADERS = $CONFIG_HEADERS
31868 CONFIG_LINKS = $CONFIG_LINKS
31869 CONFIG_COMMANDS = $CONFIG_COMMANDS
31870 $ $0 $@
31871
31872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31873 "
31874
31875 _ACEOF
31876
31877 case $ac_config_files in *"
31878 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31879 esac
31880
31881 case $ac_config_headers in *"
31882 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31883 esac
31884
31885
31886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31887 # Files that config.status was made for.
31888 config_files="$ac_config_files"
31889 config_headers="$ac_config_headers"
31890 config_commands="$ac_config_commands"
31891
31892 _ACEOF
31893
31894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31895 ac_cs_usage="\
31896 \`$as_me' instantiates files from templates according to the
31897 current configuration.
31898
31899 Usage: $0 [OPTION]... [FILE]...
31900
31901 -h, --help print this help, then exit
31902 -V, --version print version number and configuration settings, then exit
31903 -q, --quiet, --silent
31904 do not print progress messages
31905 -d, --debug don't remove temporary files
31906 --recheck update $as_me by reconfiguring in the same conditions
31907 --file=FILE[:TEMPLATE]
31908 instantiate the configuration file FILE
31909 --header=FILE[:TEMPLATE]
31910 instantiate the configuration header FILE
31911
31912 Configuration files:
31913 $config_files
31914
31915 Configuration headers:
31916 $config_headers
31917
31918 Configuration commands:
31919 $config_commands
31920
31921 Report bugs to <bug-autoconf@gnu.org>."
31922
31923 _ACEOF
31924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31925 ac_cs_version="\\
31926 bash config.status 4.2-alpha
31927 configured by $0, generated by GNU Autoconf 2.63,
31928 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31929
31930 Copyright (C) 2008 Free Software Foundation, Inc.
31931 This config.status script is free software; the Free Software Foundation
31932 gives unlimited permission to copy, distribute and modify it."
31933
31934 ac_pwd='$ac_pwd'
31935 srcdir='$srcdir'
31936 INSTALL='$INSTALL'
31937 test -n "\$AWK" || AWK=awk
31938 _ACEOF
31939
31940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31941 # The default lists apply if the user does not specify any file.
31942 ac_need_defaults=:
31943 while test $# != 0
31944 do
31945 case $1 in
31946 --*=*)
31947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31949 ac_shift=:
31950 ;;
31951 *)
31952 ac_option=$1
31953 ac_optarg=$2
31954 ac_shift=shift
31955 ;;
31956 esac
31957
31958 case $ac_option in
31959 # Handling of the options.
31960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31961 ac_cs_recheck=: ;;
31962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31963 $as_echo "$ac_cs_version"; exit ;;
31964 --debug | --debu | --deb | --de | --d | -d )
31965 debug=: ;;
31966 --file | --fil | --fi | --f )
31967 $ac_shift
31968 case $ac_optarg in
31969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31970 esac
31971 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31972 ac_need_defaults=false;;
31973 --header | --heade | --head | --hea )
31974 $ac_shift
31975 case $ac_optarg in
31976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31977 esac
31978 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31979 ac_need_defaults=false;;
31980 --he | --h)
31981 # Conflict between --help and --header
31982 { $as_echo "$as_me: error: ambiguous option: $1
31983 Try \`$0 --help' for more information." >&2
31984 { (exit 1); exit 1; }; };;
31985 --help | --hel | -h )
31986 $as_echo "$ac_cs_usage"; exit ;;
31987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31988 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31989 ac_cs_silent=: ;;
31990
31991 # This is an error.
31992 -*) { $as_echo "$as_me: error: unrecognized option: $1
31993 Try \`$0 --help' for more information." >&2
31994 { (exit 1); exit 1; }; } ;;
31995
31996 *) ac_config_targets="$ac_config_targets $1"
31997 ac_need_defaults=false ;;
31998
31999 esac
32000 shift
32001 done
32002
32003 ac_configure_extra_args=
32004
32005 if $ac_cs_silent; then
32006 exec 6>/dev/null
32007 ac_configure_extra_args="$ac_configure_extra_args --silent"
32008 fi
32009
32010 _ACEOF
32011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32012 if \$ac_cs_recheck; then
32013 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32014 shift
32015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32016 CONFIG_SHELL='$SHELL'
32017 export CONFIG_SHELL
32018 exec "\$@"
32019 fi
32020
32021 _ACEOF
32022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32023 exec 5>>config.log
32024 {
32025 echo
32026 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
32027 @%:@@%:@ Running $as_me. @%:@@%:@
32028 _ASBOX
32029 $as_echo "$ac_log"
32030 } >&5
32031
32032 _ACEOF
32033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32034 #
32035 # INIT-COMMANDS
32036 #
32037 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32038 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32039 # from automake.
32040 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32041 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32042 LINGUAS="${LINGUAS-%UNSET%}"
32043
32044
32045 _ACEOF
32046
32047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32048
32049 # Handling of arguments.
32050 for ac_config_target in $ac_config_targets
32051 do
32052 case $ac_config_target in
32053 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32054 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32056 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32057 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32058 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32059 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32060 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32061 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32062 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32063 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32064 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32065 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32066 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32067 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32068 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32069 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32070
32071 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32072 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32073 { (exit 1); exit 1; }; };;
32074 esac
32075 done
32076
32077
32078 # If the user did not use the arguments to specify the items to instantiate,
32079 # then the envvar interface is used. Set only those that are not.
32080 # We use the long form for the default assignment because of an extremely
32081 # bizarre bug on SunOS 4.1.3.
32082 if $ac_need_defaults; then
32083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32086 fi
32087
32088 # Have a temporary directory for convenience. Make it in the build tree
32089 # simply because there is no reason against having it here, and in addition,
32090 # creating and moving files from /tmp can sometimes cause problems.
32091 # Hook for its removal unless debugging.
32092 # Note that there is a small window in which the directory will not be cleaned:
32093 # after its creation but before its name has been assigned to `$tmp'.
32094 $debug ||
32095 {
32096 tmp=
32097 trap 'exit_status=$?
32098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32099 ' 0
32100 trap '{ (exit 1); exit 1; }' 1 2 13 15
32101 }
32102 # Create a (secure) tmp directory for tmp files.
32103
32104 {
32105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32106 test -n "$tmp" && test -d "$tmp"
32107 } ||
32108 {
32109 tmp=./conf$$-$RANDOM
32110 (umask 077 && mkdir "$tmp")
32111 } ||
32112 {
32113 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32114 { (exit 1); exit 1; }
32115 }
32116
32117 # Set up the scripts for CONFIG_FILES section.
32118 # No need to generate them if there are no CONFIG_FILES.
32119 # This happens for instance with `./config.status config.h'.
32120 if test -n "$CONFIG_FILES"; then
32121
32122
32123 ac_cr=' '
32124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32126 ac_cs_awk_cr='\\r'
32127 else
32128 ac_cs_awk_cr=$ac_cr
32129 fi
32130
32131 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32132 _ACEOF
32133
32134
32135 {
32136 echo "cat >conf$$subs.awk <<_ACEOF" &&
32137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32138 echo "_ACEOF"
32139 } >conf$$subs.sh ||
32140 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32141 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32142 { (exit 1); exit 1; }; }
32143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32144 ac_delim='%!_!# '
32145 for ac_last_try in false false false false false :; do
32146 . ./conf$$subs.sh ||
32147 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32148 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32149 { (exit 1); exit 1; }; }
32150
32151 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32152 if test $ac_delim_n = $ac_delim_num; then
32153 break
32154 elif $ac_last_try; then
32155 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32156 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32157 { (exit 1); exit 1; }; }
32158 else
32159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32160 fi
32161 done
32162 rm -f conf$$subs.sh
32163
32164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32165 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32166 _ACEOF
32167 sed -n '
32168 h
32169 s/^/S["/; s/!.*/"]=/
32170 p
32171 g
32172 s/^[^!]*!//
32173 :repl
32174 t repl
32175 s/'"$ac_delim"'$//
32176 t delim
32177 :nl
32178 h
32179 s/\(.\{148\}\).*/\1/
32180 t more1
32181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32182 p
32183 n
32184 b repl
32185 :more1
32186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32187 p
32188 g
32189 s/.\{148\}//
32190 t nl
32191 :delim
32192 h
32193 s/\(.\{148\}\).*/\1/
32194 t more2
32195 s/["\\]/\\&/g; s/^/"/; s/$/"/
32196 p
32197 b
32198 :more2
32199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32200 p
32201 g
32202 s/.\{148\}//
32203 t delim
32204 ' <conf$$subs.awk | sed '
32205 /^[^""]/{
32206 N
32207 s/\n//
32208 }
32209 ' >>$CONFIG_STATUS || ac_write_fail=1
32210 rm -f conf$$subs.awk
32211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32212 _ACAWK
32213 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32214 for (key in S) S_is_set[key] = 1
32215 FS = "\a"
32216
32217 }
32218 {
32219 line = $ 0
32220 nfields = split(line, field, "@")
32221 substed = 0
32222 len = length(field[1])
32223 for (i = 2; i < nfields; i++) {
32224 key = field[i]
32225 keylen = length(key)
32226 if (S_is_set[key]) {
32227 value = S[key]
32228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32229 len += length(value) + length(field[++i])
32230 substed = 1
32231 } else
32232 len += 1 + keylen
32233 }
32234
32235 print line
32236 }
32237
32238 _ACAWK
32239 _ACEOF
32240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32243 else
32244 cat
32245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32246 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32247 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
32248 { (exit 1); exit 1; }; }
32249 _ACEOF
32250
32251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32253 # trailing colons and then remove the whole line if VPATH becomes empty
32254 # (actually we leave an empty line to preserve line numbers).
32255 if test "x$srcdir" = x.; then
32256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32257 s/:*\$(srcdir):*/:/
32258 s/:*\${srcdir}:*/:/
32259 s/:*@srcdir@:*/:/
32260 s/^\([^=]*=[ ]*\):*/\1/
32261 s/:*$//
32262 s/^[^=]*=[ ]*$//
32263 }'
32264 fi
32265
32266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32267 fi # test -n "$CONFIG_FILES"
32268
32269 # Set up the scripts for CONFIG_HEADERS section.
32270 # No need to generate them if there are no CONFIG_HEADERS.
32271 # This happens for instance with `./config.status Makefile'.
32272 if test -n "$CONFIG_HEADERS"; then
32273 cat >"$tmp/defines.awk" <<\_ACAWK ||
32274 BEGIN {
32275 _ACEOF
32276
32277 # Transform confdefs.h into an awk script `defines.awk', embedded as
32278 # here-document in config.status, that substitutes the proper values into
32279 # config.h.in to produce config.h.
32280
32281 # Create a delimiter string that does not exist in confdefs.h, to ease
32282 # handling of long lines.
32283 ac_delim='%!_!# '
32284 for ac_last_try in false false :; do
32285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32286 if test -z "$ac_t"; then
32287 break
32288 elif $ac_last_try; then
32289 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32290 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32291 { (exit 1); exit 1; }; }
32292 else
32293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32294 fi
32295 done
32296
32297 # For the awk script, D is an array of macro values keyed by name,
32298 # likewise P contains macro parameters if any. Preserve backslash
32299 # newline sequences.
32300
32301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32302 sed -n '
32303 s/.\{148\}/&'"$ac_delim"'/g
32304 t rset
32305 :rset
32306 s/^[ ]*#[ ]*define[ ][ ]*/ /
32307 t def
32308 d
32309 :def
32310 s/\\$//
32311 t bsnl
32312 s/["\\]/\\&/g
32313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32314 D["\1"]=" \3"/p
32315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32316 d
32317 :bsnl
32318 s/["\\]/\\&/g
32319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32320 D["\1"]=" \3\\\\\\n"\\/p
32321 t cont
32322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32323 t cont
32324 d
32325 :cont
32326 n
32327 s/.\{148\}/&'"$ac_delim"'/g
32328 t clear
32329 :clear
32330 s/\\$//
32331 t bsnlc
32332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32333 d
32334 :bsnlc
32335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32336 b cont
32337 ' <confdefs.h | sed '
32338 s/'"$ac_delim"'/"\\\
32339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32340
32341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32342 for (key in D) D_is_set[key] = 1
32343 FS = "\a"
32344 }
32345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32346 line = \$ 0
32347 split(line, arg, " ")
32348 if (arg[1] == "#") {
32349 defundef = arg[2]
32350 mac1 = arg[3]
32351 } else {
32352 defundef = substr(arg[1], 2)
32353 mac1 = arg[2]
32354 }
32355 split(mac1, mac2, "(") #)
32356 macro = mac2[1]
32357 prefix = substr(line, 1, index(line, defundef) - 1)
32358 if (D_is_set[macro]) {
32359 # Preserve the white space surrounding the "#".
32360 print prefix "define", macro P[macro] D[macro]
32361 next
32362 } else {
32363 # Replace #undef with comments. This is necessary, for example,
32364 # in the case of _POSIX_SOURCE, which is predefined and required
32365 # on some systems where configure will not decide to define it.
32366 if (defundef == "undef") {
32367 print "/*", prefix defundef, macro, "*/"
32368 next
32369 }
32370 }
32371 }
32372 { print }
32373 _ACAWK
32374 _ACEOF
32375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32376 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32377 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32378 { (exit 1); exit 1; }; }
32379 fi # test -n "$CONFIG_HEADERS"
32380
32381
32382 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32383 shift
32384 for ac_tag
32385 do
32386 case $ac_tag in
32387 :[FHLC]) ac_mode=$ac_tag; continue;;
32388 esac
32389 case $ac_mode$ac_tag in
32390 :[FHL]*:*);;
32391 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32392 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32393 { (exit 1); exit 1; }; };;
32394 :[FH]-) ac_tag=-:-;;
32395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32396 esac
32397 ac_save_IFS=$IFS
32398 IFS=:
32399 set x $ac_tag
32400 IFS=$ac_save_IFS
32401 shift
32402 ac_file=$1
32403 shift
32404
32405 case $ac_mode in
32406 :L) ac_source=$1;;
32407 :[FH])
32408 ac_file_inputs=
32409 for ac_f
32410 do
32411 case $ac_f in
32412 -) ac_f="$tmp/stdin";;
32413 *) # Look for the file first in the build tree, then in the source tree
32414 # (if the path is not absolute). The absolute path cannot be DOS-style,
32415 # because $ac_f cannot contain `:'.
32416 test -f "$ac_f" ||
32417 case $ac_f in
32418 [\\/$]*) false;;
32419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32420 esac ||
32421 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32422 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32423 { (exit 1); exit 1; }; };;
32424 esac
32425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32426 ac_file_inputs="$ac_file_inputs '$ac_f'"
32427 done
32428
32429 # Let's still pretend it is `configure' which instantiates (i.e., don't
32430 # use $as_me), people would be surprised to read:
32431 # /* config.h. Generated by config.status. */
32432 configure_input='Generated from '`
32433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32434 `' by configure.'
32435 if test x"$ac_file" != x-; then
32436 configure_input="$ac_file. $configure_input"
32437 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32438 $as_echo "$as_me: creating $ac_file" >&6;}
32439 fi
32440 # Neutralize special characters interpreted by sed in replacement strings.
32441 case $configure_input in #(
32442 *\&* | *\|* | *\\* )
32443 ac_sed_conf_input=`$as_echo "$configure_input" |
32444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32445 *) ac_sed_conf_input=$configure_input;;
32446 esac
32447
32448 case $ac_tag in
32449 *:-:* | *:-) cat >"$tmp/stdin" \
32450 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32451 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32452 { (exit 1); exit 1; }; } ;;
32453 esac
32454 ;;
32455 esac
32456
32457 ac_dir=`$as_dirname -- "$ac_file" ||
32458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32459 X"$ac_file" : 'X\(//\)[^/]' \| \
32460 X"$ac_file" : 'X\(//\)$' \| \
32461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32462 $as_echo X"$ac_file" |
32463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32464 s//\1/
32465 q
32466 }
32467 /^X\(\/\/\)[^/].*/{
32468 s//\1/
32469 q
32470 }
32471 /^X\(\/\/\)$/{
32472 s//\1/
32473 q
32474 }
32475 /^X\(\/\).*/{
32476 s//\1/
32477 q
32478 }
32479 s/.*/./; q'`
32480 { as_dir="$ac_dir"
32481 case $as_dir in #(
32482 -*) as_dir=./$as_dir;;
32483 esac
32484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32485 as_dirs=
32486 while :; do
32487 case $as_dir in #(
32488 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32489 *) as_qdir=$as_dir;;
32490 esac
32491 as_dirs="'$as_qdir' $as_dirs"
32492 as_dir=`$as_dirname -- "$as_dir" ||
32493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32494 X"$as_dir" : 'X\(//\)[^/]' \| \
32495 X"$as_dir" : 'X\(//\)$' \| \
32496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32497 $as_echo X"$as_dir" |
32498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32499 s//\1/
32500 q
32501 }
32502 /^X\(\/\/\)[^/].*/{
32503 s//\1/
32504 q
32505 }
32506 /^X\(\/\/\)$/{
32507 s//\1/
32508 q
32509 }
32510 /^X\(\/\).*/{
32511 s//\1/
32512 q
32513 }
32514 s/.*/./; q'`
32515 test -d "$as_dir" && break
32516 done
32517 test -z "$as_dirs" || eval "mkdir $as_dirs"
32518 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32519 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32520 { (exit 1); exit 1; }; }; }
32521 ac_builddir=.
32522
32523 case "$ac_dir" in
32524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32525 *)
32526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32527 # A ".." for each directory in $ac_dir_suffix.
32528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32529 case $ac_top_builddir_sub in
32530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32532 esac ;;
32533 esac
32534 ac_abs_top_builddir=$ac_pwd
32535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32536 # for backward compatibility:
32537 ac_top_builddir=$ac_top_build_prefix
32538
32539 case $srcdir in
32540 .) # We are building in place.
32541 ac_srcdir=.
32542 ac_top_srcdir=$ac_top_builddir_sub
32543 ac_abs_top_srcdir=$ac_pwd ;;
32544 [\\/]* | ?:[\\/]* ) # Absolute name.
32545 ac_srcdir=$srcdir$ac_dir_suffix;
32546 ac_top_srcdir=$srcdir
32547 ac_abs_top_srcdir=$srcdir ;;
32548 *) # Relative name.
32549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32550 ac_top_srcdir=$ac_top_build_prefix$srcdir
32551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32552 esac
32553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32554
32555
32556 case $ac_mode in
32557 :F)
32558 #
32559 # CONFIG_FILE
32560 #
32561
32562 case $INSTALL in
32563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32565 esac
32566 _ACEOF
32567
32568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32569 # If the template does not know about datarootdir, expand it.
32570 # FIXME: This hack should be removed a few years after 2.60.
32571 ac_datarootdir_hack=; ac_datarootdir_seen=
32572
32573 ac_sed_dataroot='
32574 /datarootdir/ {
32575 p
32576 q
32577 }
32578 /@datadir@/p
32579 /@docdir@/p
32580 /@infodir@/p
32581 /@localedir@/p
32582 /@mandir@/p
32583 '
32584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32585 *datarootdir*) ac_datarootdir_seen=yes;;
32586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32587 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32589 _ACEOF
32590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32591 ac_datarootdir_hack='
32592 s&@datadir@&$datadir&g
32593 s&@docdir@&$docdir&g
32594 s&@infodir@&$infodir&g
32595 s&@localedir@&$localedir&g
32596 s&@mandir@&$mandir&g
32597 s&\\\${datarootdir}&$datarootdir&g' ;;
32598 esac
32599 _ACEOF
32600
32601 # Neutralize VPATH when `$srcdir' = `.'.
32602 # Shell code in configure.ac might set extrasub.
32603 # FIXME: do we really want to maintain this feature?
32604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32605 ac_sed_extra="$ac_vpsub
32606 $extrasub
32607 _ACEOF
32608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32609 :t
32610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32611 s|@configure_input@|$ac_sed_conf_input|;t t
32612 s&@top_builddir@&$ac_top_builddir_sub&;t t
32613 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32614 s&@srcdir@&$ac_srcdir&;t t
32615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32616 s&@top_srcdir@&$ac_top_srcdir&;t t
32617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32618 s&@builddir@&$ac_builddir&;t t
32619 s&@abs_builddir@&$ac_abs_builddir&;t t
32620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32621 s&@INSTALL@&$ac_INSTALL&;t t
32622 $ac_datarootdir_hack
32623 "
32624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32625 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32626 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32627 { (exit 1); exit 1; }; }
32628
32629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32630 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32632 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32633 which seems to be undefined. Please make sure it is defined." >&5
32634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32635 which seems to be undefined. Please make sure it is defined." >&2;}
32636
32637 rm -f "$tmp/stdin"
32638 case $ac_file in
32639 -) cat "$tmp/out" && rm -f "$tmp/out";;
32640 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32641 esac \
32642 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32643 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32644 { (exit 1); exit 1; }; }
32645 ;;
32646 :H)
32647 #
32648 # CONFIG_HEADER
32649 #
32650 if test x"$ac_file" != x-; then
32651 {
32652 $as_echo "/* $configure_input */" \
32653 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32654 } >"$tmp/config.h" \
32655 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32656 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32657 { (exit 1); exit 1; }; }
32658 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32659 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32660 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32661 else
32662 rm -f "$ac_file"
32663 mv "$tmp/config.h" "$ac_file" \
32664 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32665 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32666 { (exit 1); exit 1; }; }
32667 fi
32668 else
32669 $as_echo "/* $configure_input */" \
32670 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32671 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32672 $as_echo "$as_me: error: could not create -" >&2;}
32673 { (exit 1); exit 1; }; }
32674 fi
32675 ;;
32676
32677 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32678 $as_echo "$as_me: executing $ac_file commands" >&6;}
32679 ;;
32680 esac
32681
32682
32683 case $ac_file$ac_mode in
32684 "default-1":C)
32685 for ac_file in $CONFIG_FILES; do
32686 # Support "outfile[:infile[:infile...]]"
32687 case "$ac_file" in
32688 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32689 esac
32690 # PO directories have a Makefile.in generated from Makefile.in.in.
32691 case "$ac_file" in */Makefile.in)
32692 # Adjust a relative srcdir.
32693 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32694 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32695 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32696 # In autoconf-2.13 it is called $ac_given_srcdir.
32697 # In autoconf-2.50 it is called $srcdir.
32698 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32699 case "$ac_given_srcdir" in
32700 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32701 /*) top_srcdir="$ac_given_srcdir" ;;
32702 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32703 esac
32704 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32705 rm -f "$ac_dir/POTFILES"
32706 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32707 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32708 POMAKEFILEDEPS="POTFILES.in"
32709 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32710 # on $ac_dir but don't depend on user-specified configuration
32711 # parameters.
32712 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32713 # The LINGUAS file contains the set of available languages.
32714 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32715 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32716 fi
32717 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32718 # Hide the ALL_LINGUAS assigment from automake.
32719 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32720 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32721 else
32722 # The set of available languages was given in configure.in.
32723 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32724 fi
32725 case "$ac_given_srcdir" in
32726 .) srcdirpre= ;;
32727 *) srcdirpre='$(srcdir)/' ;;
32728 esac
32729 POFILES=
32730 GMOFILES=
32731 UPDATEPOFILES=
32732 DUMMYPOFILES=
32733 for lang in $ALL_LINGUAS; do
32734 POFILES="$POFILES $srcdirpre$lang.po"
32735 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32736 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32737 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32738 done
32739 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32740 # environment variable.
32741 INST_LINGUAS=
32742 if test -n "$ALL_LINGUAS"; then
32743 for presentlang in $ALL_LINGUAS; do
32744 useit=no
32745 if test "%UNSET%" != "$LINGUAS"; then
32746 desiredlanguages="$LINGUAS"
32747 else
32748 desiredlanguages="$ALL_LINGUAS"
32749 fi
32750 for desiredlang in $desiredlanguages; do
32751 # Use the presentlang catalog if desiredlang is
32752 # a. equal to presentlang, or
32753 # b. a variant of presentlang (because in this case,
32754 # presentlang can be used as a fallback for messages
32755 # which are not translated in the desiredlang catalog).
32756 case "$desiredlang" in
32757 "$presentlang"*) useit=yes;;
32758 esac
32759 done
32760 if test $useit = yes; then
32761 INST_LINGUAS="$INST_LINGUAS $presentlang"
32762 fi
32763 done
32764 fi
32765 CATALOGS=
32766 if test -n "$INST_LINGUAS"; then
32767 for lang in $INST_LINGUAS; do
32768 CATALOGS="$CATALOGS $lang.gmo"
32769 done
32770 fi
32771 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32772 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32773 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32774 if test -f "$f"; then
32775 case "$f" in
32776 *.orig | *.bak | *~) ;;
32777 *) cat "$f" >> "$ac_dir/Makefile" ;;
32778 esac
32779 fi
32780 done
32781 fi
32782 ;;
32783 esac
32784 done ;;
32785 "default":C)
32786 # Makefile uses this timestamp file to record whether config.h is up to date.
32787 echo timestamp > stamp-h
32788 ;;
32789
32790 esac
32791 done # for ac_tag
32792
32793
32794 { (exit 0); exit 0; }
32795 _ACEOF
32796 chmod +x $CONFIG_STATUS
32797 ac_clean_files=$ac_clean_files_save
32798
32799 test $ac_write_fail = 0 ||
32800 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32801 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32802 { (exit 1); exit 1; }; }
32803
32804
32805 # configure is writing to config.log, and then calls config.status.
32806 # config.status does its own redirection, appending to config.log.
32807 # Unfortunately, on DOS this fails, as config.log is still kept open
32808 # by configure, so config.status won't be able to write to it; its
32809 # output is simply discarded. So we exec the FD to /dev/null,
32810 # effectively closing config.log, so it can be properly (re)opened and
32811 # appended to by config.status. When coming back to configure, we
32812 # need to make the FD available again.
32813 if test "$no_create" != yes; then
32814 ac_cs_success=:
32815 ac_config_status_args=
32816 test "$silent" = yes &&
32817 ac_config_status_args="$ac_config_status_args --quiet"
32818 exec 5>/dev/null
32819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32820 exec 5>>config.log
32821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32822 # would make configure fail if this is the last instruction.
32823 $ac_cs_success || { (exit 1); exit 1; }
32824 fi
32825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32826 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32828 fi
32829