]> git.ipfire.org Git - thirdparty/bash.git/blame - configure
commit bash-20120204 snapshot
[thirdparty/bash.git] / configure
CommitLineData
ccc6cda3 1#! /bin/sh
abe2eb5b 2# From configure.in for Bash 4.2, version 4.046.
f73dda09 3# Guess values for system-dependent variables and create Makefiles.
abe2eb5b 4# Generated by GNU Autoconf 2.63 for bash 4.2-maint.
f73dda09
JA
5#
6# Report bugs to <bug-bash@gnu.org>.
7#
b709b946 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
abe2eb5b 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
f73dda09
JA
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
abe2eb5b
CR
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
ccc6cda3 15
dd4f3dd8
CR
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
abe2eb5b 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
a82a04b3
CR
19 emulate sh
20 NULLCMD=:
dd4f3dd8 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5e4a95c7
CR
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
b709b946
CR
24 setopt NO_GLOB_SUBST
25else
abe2eb5b
CR
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
dd4f3dd8 28esac
abe2eb5b 29
a82a04b3 30fi
dd4f3dd8
CR
31
32
abe2eb5b
CR
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
dd4f3dd8
CR
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
abe2eb5b 50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
dd4f3dd8
CR
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
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'
b709b946 57 else
dd4f3dd8
CR
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
abe2eb5b 61 case $arg in
dd4f3dd8
CR
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'
b709b946 70 fi
dd4f3dd8
CR
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if 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 }
b709b946
CR
82fi
83
abe2eb5b
CR
84# Support unset when possible.
85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87else
88 as_unset=false
89fi
90
5e4a95c7 91
b709b946
CR
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.)
b709b946
CR
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
abe2eb5b 100case $0 in
b709b946
CR
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
abe2eb5b
CR
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
b709b946
CR
109IFS=$as_save_IFS
110
111 ;;
112esac
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.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
dd4f3dd8 119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
abe2eb5b 120 { (exit 1); exit 1; }
b709b946
CR
121fi
122
abe2eb5b
CR
123# Work around bugs in pre-3.0 UWIN ksh.
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b709b946 126done
5e4a95c7
CR
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
dd4f3dd8
CR
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
5e4a95c7 136
abe2eb5b 137# Required to use basename.
b709b946
CR
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5e4a95c7
CR
140 as_expr=expr
141else
142 as_expr=false
143fi
144
b709b946 145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5e4a95c7
CR
146 as_basename=basename
147else
148 as_basename=false
149fi
a82a04b3
CR
150
151
abe2eb5b 152# Name of the executable.
b709b946 153as_me=`$as_basename -- "$0" ||
a82a04b3
CR
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
b709b946 156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
dd4f3dd8 157$as_echo X/"$0" |
b709b946
CR
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'`
9d6e5e30 171
abe2eb5b
CR
172# CDPATH.
173$as_unset CDPATH
9d6e5e30 174
9d6e5e30 175
abe2eb5b
CR
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
181fi
b709b946 182
abe2eb5b
CR
183 if test $as_have_required = yes && (eval ":
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
b709b946
CR
198}
199
abe2eb5b
CR
200exitcode=0
201if as_func_success; then
202 :
2dead0c4 203else
abe2eb5b
CR
204 exitcode=1
205 echo as_func_success failed.
b709b946 206fi
abe2eb5b
CR
207
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
7610e0c5
CR
211fi
212
abe2eb5b
CR
213if as_func_ret_success; then
214 :
2dead0c4 215else
abe2eb5b
CR
216 exitcode=1
217 echo as_func_ret_success failed.
e3db237e
CR
218fi
219
abe2eb5b
CR
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
b709b946 227else
abe2eb5b
CR
228 exitcode=1
229 echo positional parameters were not saved.
b709b946
CR
230fi
231
abe2eb5b 232test \$exitcode = 0) || { (exit 1); exit 1; }
b709b946 233
abe2eb5b
CR
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 :
241else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
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
254done
255IFS=$as_save_IFS
b709b946
CR
256
257
abe2eb5b
CR
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
262if 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
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
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
283if 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
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $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
358fi
359
360fi
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+"$@"}
370fi
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; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$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
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
494
495ECHO_C= ECHO_N= ECHO_T=
496case `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';;
504esac
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508else
509 as_expr=false
510fi
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (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
533else
534 as_ln_s='cp -p'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
545
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
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 '
566fi
567as_executable_p=$as_test_x
568
569# Sed expression to map a string onto a valid CPP name.
570as_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.
573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577exec 7<&0 </dev/null 6>&1
f73dda09
JA
578
579# Name of the host.
abe2eb5b 580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
f73dda09
JA
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
726f6388 584#
f73dda09
JA
585# Initializations.
586#
ccc6cda3 587ac_default_prefix=/usr/local
b709b946 588ac_clean_files=
5e4a95c7 589ac_config_libobj_dir=.
b709b946 590LIBOBJS=
f73dda09
JA
591cross_compiling=no
592subdirs=
a82a04b3
CR
593MFLAGS=
594MAKEFLAGS=
abe2eb5b 595SHELL=${CONFIG_SHELL-/bin/sh}
f73dda09 596
a82a04b3
CR
597# Identity of this package.
598PACKAGE_NAME='bash'
599PACKAGE_TARNAME='bash'
e192f341
CR
600PACKAGE_VERSION='4.2-maint'
601PACKAGE_STRING='bash 4.2-maint'
a82a04b3
CR
602PACKAGE_BUGREPORT='bug-bash@gnu.org'
603
f73dda09
JA
604ac_unique_file="shell.h"
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
dd4f3dd8 608#ifdef HAVE_SYS_TYPES_H
f73dda09
JA
609# include <sys/types.h>
610#endif
dd4f3dd8 611#ifdef HAVE_SYS_STAT_H
f73dda09
JA
612# include <sys/stat.h>
613#endif
dd4f3dd8 614#ifdef STDC_HEADERS
f73dda09
JA
615# include <stdlib.h>
616# include <stddef.h>
617#else
dd4f3dd8 618# ifdef HAVE_STDLIB_H
f73dda09
JA
619# include <stdlib.h>
620# endif
621#endif
dd4f3dd8
CR
622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f73dda09
JA
624# include <memory.h>
625# endif
626# include <string.h>
627#endif
dd4f3dd8 628#ifdef HAVE_STRINGS_H
f73dda09
JA
629# include <strings.h>
630#endif
dd4f3dd8 631#ifdef HAVE_INTTYPES_H
f73dda09 632# include <inttypes.h>
b709b946 633#endif
dd4f3dd8 634#ifdef HAVE_STDINT_H
b709b946 635# include <stdint.h>
f73dda09 636#endif
dd4f3dd8 637#ifdef HAVE_UNISTD_H
f73dda09
JA
638# include <unistd.h>
639#endif"
ccc6cda3 640
dd4f3dd8 641ac_header_list=
53ac45a3 642ac_func_list=
af98a2a6 643ac_subst_vars='LTLIBOBJS
691aebcb 644LOCAL_DEFS
af98a2a6
CR
645LOCAL_LDFLAGS
646LOCAL_CFLAGS
647LOCAL_LIBS
648MALLOC_DEBUG
649DEBUG
650RELSTATUS
651BASHVERS
652ARFLAGS
653BUILD_DIR
654incdir
655PROFILE_FLAGS
656SHOBJ_STATUS
657SHOBJ_LIBS
658SHOBJ_XLDFLAGS
659SHOBJ_LDFLAGS
660SHOBJ_LD
661SHOBJ_CFLAGS
662SHOBJ_CC
663JOBS_O
664TERMCAP_DEP
665TERMCAP_LIB
666SIGLIST_O
667LIBINTL_H
668INTL_INC
669INTL_DEP
670LIBOBJS
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
683INTLBISON
684LTLIBICONV
685LIBICONV
686GLIBC21
687ALLOCA
688MSGMERGE
689XGETTEXT
690GMSGFMT
691MSGFMT
692USE_NLS
693MKINSTALLDIRS
694SIZE
695MAKE_SHELL
696SET_MAKE
697YFLAGS
698YACC
699RANLIB
700AR
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704TILDE_LIB
705HIST_LIBDIR
706HISTORY_DEP
707HISTORY_LIB
708RL_INCLUDE
709RL_INCLUDEDIR
710RL_LIBDIR
711READLINE_DEP
712READLINE_LIB
713RL_MINOR
714RL_MAJOR
715RL_VERSION
7610e0c5 716LIBS_FOR_BUILD
af98a2a6 717STATIC_LD
af98a2a6
CR
718SIGNAMES_O
719SIGNAMES_H
720CROSS_COMPILE
721EGREP
722GREP
723CPP
724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731HELPSTRINGS
abe2eb5b 732HELPFILES_TARGET
af98a2a6
CR
733HELPINSTALL
734HELPDIRDEFINE
735HELPDIR
736MALLOC_DEP
737MALLOC_LDFLAGS
738MALLOC_LIBRARY
739MALLOC_LIB
740MALLOC_SRC
741MALLOC_TARGET
742PURIFY
743TESTSCRIPT
7610e0c5
CR
744CPPFLAGS_FOR_BUILD
745LDFLAGS_FOR_BUILD
746CFLAGS_FOR_BUILD
747CC_FOR_BUILD
af98a2a6 748DEBUGGER_START_FILE
af98a2a6
CR
749host_os
750host_vendor
751host_cpu
752host
753build_os
754build_vendor
755build_cpu
756build
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_BUGREPORT
788PACKAGE_STRING
789PACKAGE_VERSION
790PACKAGE_TARNAME
791PACKAGE_NAME
792PATH_SEPARATOR
793SHELL'
5e4a95c7 794ac_subst_files=''
dd4f3dd8
CR
795ac_user_opts='
796enable_option_checking
dd4f3dd8
CR
797with_afs
798with_bash_malloc
799with_curses
800with_gnu_malloc
801with_installed_readline
802with_purecov
803with_purify
804enable_minimal_config
805enable_alias
806enable_arith_for_command
807enable_array_variables
808enable_bang_history
809enable_brace_expansion
810enable_casemod_attributes
811enable_casemod_expansions
812enable_command_timing
813enable_cond_command
814enable_cond_regexp
815enable_coprocesses
816enable_debugger
817enable_directory_stack
818enable_disabled_builtins
819enable_dparen_arithmetic
820enable_extended_glob
691aebcb 821enable_extended_glob_default
dd4f3dd8
CR
822enable_help_builtin
823enable_history
824enable_job_control
825enable_multibyte
826enable_net_redirections
827enable_process_substitution
828enable_progcomp
829enable_prompt_string_decoding
830enable_readline
831enable_restricted
832enable_select
833enable_separate_helpfiles
834enable_single_help_strings
835enable_strict_posix_default
836enable_usg_echo_default
837enable_xpg_echo_default
838enable_mem_scramble
839enable_profiling
840enable_static_link
841enable_largefile
842enable_nls
843with_gnu_ld
844enable_rpath
845with_libiconv_prefix
846with_included_gettext
847with_libintl_prefix
848'
b709b946
CR
849 ac_precious_vars='build_alias
850host_alias
851target_alias
852DEBUGGER_START_FILE
7610e0c5
CR
853CC_FOR_BUILD
854CFLAGS_FOR_BUILD
855LDFLAGS_FOR_BUILD
856CPPFLAGS_FOR_BUILD
b709b946
CR
857CC
858CFLAGS
859LDFLAGS
dd4f3dd8 860LIBS
b709b946
CR
861CPPFLAGS
862CPP
863YACC
864YFLAGS'
865
a82a04b3 866
ccc6cda3 867# Initialize some variables set by options.
f73dda09
JA
868ac_init_help=
869ac_init_version=false
dd4f3dd8
CR
870ac_unrecognized_opts=
871ac_unrecognized_sep=
ccc6cda3
JA
872# The variables have the same names as the options, with
873# dashes changed to underlines.
f73dda09 874cache_file=/dev/null
ccc6cda3 875exec_prefix=NONE
ccc6cda3 876no_create=
ccc6cda3
JA
877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
ccc6cda3
JA
885verbose=
886x_includes=NONE
887x_libraries=NONE
f73dda09
JA
888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
b709b946 894# (The list follows the same order as the GNU Coding Standards.)
ccc6cda3
JA
895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
b709b946
CR
898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
ccc6cda3
JA
900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
ccc6cda3
JA
903includedir='${prefix}/include'
904oldincludedir='/usr/include'
b709b946
CR
905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
ccc6cda3 914
ccc6cda3 915ac_prev=
b709b946 916ac_dashdash=
ccc6cda3
JA
917for ac_option
918do
ccc6cda3
JA
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
b709b946 921 eval $ac_prev=\$ac_option
ccc6cda3
JA
922 ac_prev=
923 continue
924 fi
925
b709b946 926 case $ac_option in
abe2eb5b
CR
927 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *) ac_optarg=yes ;;
b709b946 929 esac
ccc6cda3
JA
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
b709b946
CR
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
ccc6cda3
JA
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f73dda09 940 bindir=$ac_optarg ;;
ccc6cda3
JA
941
942 -build | --build | --buil | --bui | --bu)
f73dda09 943 ac_prev=build_alias ;;
ccc6cda3 944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f73dda09 945 build_alias=$ac_optarg ;;
ccc6cda3
JA
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f73dda09
JA
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
ccc6cda3 956
b709b946 957 -datadir | --datadir | --datadi | --datad)
ccc6cda3 958 ac_prev=datadir ;;
b709b946 959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f73dda09 960 datadir=$ac_optarg ;;
ccc6cda3 961
b709b946
CR
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
ccc6cda3 969 -disable-* | --disable-*)
dd4f3dd8 970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ccc6cda3 971 # Reject names that are not valid shell variable names.
dd4f3dd8 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
abe2eb5b
CR
973 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
974 { (exit 1); exit 1; }; }
dd4f3dd8
CR
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
b709b946
CR
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
ccc6cda3
JA
995
996 -enable-* | --enable-*)
dd4f3dd8 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ccc6cda3 998 # Reject names that are not valid shell variable names.
dd4f3dd8 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
abe2eb5b
CR
1000 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1001 { (exit 1); exit 1; }; }
dd4f3dd8
CR
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006"enable_$ac_useropt"
1007"*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=\$ac_optarg ;;
ccc6cda3
JA
1012
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
f73dda09 1020 exec_prefix=$ac_optarg ;;
ccc6cda3
JA
1021
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1024 with_gas=yes ;;
1025
f73dda09
JA
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
ccc6cda3
JA
1032
1033 -host | --host | --hos | --ho)
f73dda09 1034 ac_prev=host_alias ;;
ccc6cda3 1035 -host=* | --host=* | --hos=* | --ho=*)
f73dda09 1036 host_alias=$ac_optarg ;;
ccc6cda3 1037
b709b946
CR
1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 ac_prev=htmldir ;;
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 | --ht=*)
1042 htmldir=$ac_optarg ;;
1043
ccc6cda3
JA
1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
f73dda09 1049 includedir=$ac_optarg ;;
ccc6cda3
JA
1050
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 ac_prev=infodir ;;
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f73dda09 1054 infodir=$ac_optarg ;;
ccc6cda3
JA
1055
1056 -libdir | --libdir | --libdi | --libd)
1057 ac_prev=libdir ;;
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f73dda09 1059 libdir=$ac_optarg ;;
ccc6cda3
JA
1060
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
f73dda09 1066 libexecdir=$ac_optarg ;;
ccc6cda3 1067
b709b946
CR
1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1072
ccc6cda3 1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
b709b946 1074 | --localstate | --localstat | --localsta | --localst | --locals)
ccc6cda3
JA
1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b709b946 1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f73dda09 1078 localstatedir=$ac_optarg ;;
ccc6cda3
JA
1079
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 ac_prev=mandir ;;
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f73dda09 1083 mandir=$ac_optarg ;;
ccc6cda3
JA
1084
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1087 with_fp=no ;;
1088
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a82a04b3 1090 | --no-cr | --no-c | -n)
ccc6cda3
JA
1091 no_create=yes ;;
1092
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 no_recursion=yes ;;
1096
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f73dda09 1104 oldincludedir=$ac_optarg ;;
ccc6cda3
JA
1105
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 ac_prev=prefix ;;
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f73dda09 1109 prefix=$ac_optarg ;;
ccc6cda3
JA
1110
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f73dda09 1116 program_prefix=$ac_optarg ;;
ccc6cda3
JA
1117
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f73dda09 1123 program_suffix=$ac_optarg ;;
ccc6cda3
JA
1124
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
f73dda09 1140 program_transform_name=$ac_optarg ;;
ccc6cda3 1141
b709b946
CR
1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 ac_prev=pdfdir ;;
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1146
1147 -psdir | --psdir | --psdi | --psd | --ps)
1148 ac_prev=psdir ;;
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 psdir=$ac_optarg ;;
1151
ccc6cda3
JA
1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1154 silent=yes ;;
1155
1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 ac_prev=sbindir ;;
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 | --sbi=* | --sb=*)
f73dda09 1160 sbindir=$ac_optarg ;;
ccc6cda3
JA
1161
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1165 | --sha | --sh)
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 | --sha=* | --sh=*)
f73dda09 1171 sharedstatedir=$ac_optarg ;;
ccc6cda3
JA
1172
1173 -site | --site | --sit)
1174 ac_prev=site ;;
1175 -site=* | --site=* | --sit=*)
f73dda09 1176 site=$ac_optarg ;;
ccc6cda3
JA
1177
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 ac_prev=srcdir ;;
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f73dda09 1181 srcdir=$ac_optarg ;;
ccc6cda3
JA
1182
1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f73dda09 1188 sysconfdir=$ac_optarg ;;
ccc6cda3
JA
1189
1190 -target | --target | --targe | --targ | --tar | --ta | --t)
f73dda09 1191 ac_prev=target_alias ;;
ccc6cda3 1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f73dda09 1193 target_alias=$ac_optarg ;;
ccc6cda3
JA
1194
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 verbose=yes ;;
1197
f73dda09
JA
1198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
ccc6cda3
JA
1200
1201 -with-* | --with-*)
dd4f3dd8 1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ccc6cda3 1203 # Reject names that are not valid shell variable names.
dd4f3dd8 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
abe2eb5b
CR
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1206 { (exit 1); exit 1; }; }
dd4f3dd8
CR
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211"with_$ac_useropt"
1212"*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
ccc6cda3
JA
1217
1218 -without-* | --without-*)
dd4f3dd8 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ccc6cda3 1220 # Reject names that are not valid shell variable names.
dd4f3dd8 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
abe2eb5b
CR
1222 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223 { (exit 1); exit 1; }; }
dd4f3dd8
CR
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
ccc6cda3
JA
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f73dda09 1244 x_includes=$ac_optarg ;;
ccc6cda3
JA
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f73dda09 1251 x_libraries=$ac_optarg ;;
ccc6cda3 1252
abe2eb5b
CR
1253 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1254Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
ccc6cda3
JA
1256 ;;
1257
f73dda09
JA
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
abe2eb5b
CR
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
b709b946 1264 eval $ac_envvar=\$ac_optarg
f73dda09
JA
1265 export $ac_envvar ;;
1266
ccc6cda3 1267 *)
f73dda09 1268 # FIXME: should be removed in autoconf 3.0.
dd4f3dd8 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
f73dda09 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
dd4f3dd8 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
abe2eb5b 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ccc6cda3
JA
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
f73dda09 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
abe2eb5b
CR
1280 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
ccc6cda3 1282fi
ccc6cda3 1283
dd4f3dd8
CR
1284if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1286 no) ;;
abe2eb5b
CR
1287 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1288 { (exit 1); exit 1; }; } ;;
af98a2a6 1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dd4f3dd8
CR
1290 esac
1291fi
1292
1293# Check all directory arguments for consistency.
b709b946
CR
1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
c184f645 1298do
b709b946 1299 eval ac_val=\$$ac_var
dd4f3dd8
CR
1300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
c184f645 1307 case $ac_val in
b709b946
CR
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
ccc6cda3 1310 esac
abe2eb5b
CR
1311 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
ccc6cda3
JA
1313done
1314
f73dda09
JA
1315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
a82a04b3 1317# FIXME: To remove some day.
f73dda09
JA
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
1321
a82a04b3 1322# FIXME: To remove some day.
f73dda09
JA
1323if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
abe2eb5b
CR
1326 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
f73dda09
JA
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331fi
ccc6cda3 1332
f73dda09
JA
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
ccc6cda3 1335
f73dda09 1336test "$silent" = yes && exec 6>/dev/null
ccc6cda3 1337
a82a04b3 1338
b709b946
CR
1339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
abe2eb5b
CR
1342 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
b709b946 1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
abe2eb5b
CR
1345 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
b709b946
CR
1347
1348
ccc6cda3
JA
1349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
b709b946 1352 # Try the directory containing this script, then the parent directory.
dd4f3dd8
CR
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358$as_echo X"$as_myself" |
b709b946
CR
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
ccc6cda3 1376 srcdir=$ac_confdir
b709b946 1377 if test ! -r "$srcdir/$ac_unique_file"; then
ccc6cda3
JA
1378 srcdir=..
1379 fi
1380else
1381 ac_srcdir_defaulted=no
1382fi
b709b946
CR
1383if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
abe2eb5b
CR
1385 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
c184f645 1387fi
b709b946
CR
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
abe2eb5b
CR
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
b709b946
CR
1392 pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
ccc6cda3 1409
f73dda09
JA
1410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
a82a04b3 1416 cat <<_ACEOF
e192f341 1417\`configure' configures bash 4.2-maint to adapt to many kinds of systems.
ccc6cda3 1418
f73dda09 1419Usage: $0 [OPTION]... [VAR=VALUE]...
ccc6cda3 1420
f73dda09
JA
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
ccc6cda3 1425
f73dda09
JA
1426Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
abe2eb5b 1431 -q, --quiet, --silent do not print \`checking...' messages
f73dda09
JA
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
ccc6cda3 1436
f73dda09
JA
1437Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
dd4f3dd8 1439 [$ac_default_prefix]
f73dda09 1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
dd4f3dd8 1441 [PREFIX]
ccc6cda3 1442
f73dda09
JA
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
ccc6cda3 1447
f73dda09 1448For better control, use the options below.
ccc6cda3 1449
f73dda09 1450Fine tuning of the installation directories:
dd4f3dd8
CR
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
a82a04b3 1470_ACEOF
f73dda09 1471
a82a04b3 1472 cat <<\_ACEOF
f73dda09
JA
1473
1474System types:
1475 --build=BUILD configure for building on BUILD [guessed]
a82a04b3
CR
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477_ACEOF
ccc6cda3 1478fi
ccc6cda3 1479
f73dda09
JA
1480if test -n "$ac_init_help"; then
1481 case $ac_init_help in
e192f341 1482 short | recursive ) echo "Configuration of bash 4.2-maint:";;
f73dda09 1483 esac
a82a04b3 1484 cat <<\_ACEOF
ccc6cda3 1485
f73dda09 1486Optional Features:
dd4f3dd8 1487 --disable-option-checking ignore unrecognized --enable/--with options
f73dda09
JA
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7117c2d2
JA
1490 --enable-minimal-config a minimal sh-like configuration
1491 --enable-alias enable shell aliases
1492 --enable-arith-for-command
1493 enable arithmetic for command
1494 --enable-array-variables
1495 include shell array variables
1496 --enable-bang-history turn on csh-style history substitution
1497 --enable-brace-expansion
1498 include brace expansion
fdf670ea
CR
1499 --enable-casemod-attributes
1500 include case-modifying variable attributes
1501 --enable-casemod-expansions
1502 include case-modifying word expansions
7117c2d2
JA
1503 --enable-command-timing enable the time reserved word and command timing
1504 --enable-cond-command enable the conditional command
35ee8ea0 1505 --enable-cond-regexp enable extended regular expression matching in
d3a24ed2 1506 conditional commands
09767ff0
CR
1507 --enable-coprocesses enable coprocess support and the coproc reserved
1508 word
d3a24ed2 1509 --enable-debugger enable support for bash debugger
7117c2d2
JA
1510 --enable-directory-stack
1511 enable builtins pushd/popd/dirs
1512 --enable-disabled-builtins
1513 allow disabled builtins to still be invoked
1514 --enable-dparen-arithmetic
1515 include ((...)) command
1516 --enable-extended-glob include ksh-style extended pattern matching
691aebcb
CR
1517 --enable-extended-glob-default
1518 force extended pattern matching to be enabled by
1519 default
7117c2d2
JA
1520 --enable-help-builtin include the help builtin
1521 --enable-history turn on command history
1522 --enable-job-control enable job control features
d3a24ed2 1523 --enable-multibyte enable multibyte characters if OS supports them
7117c2d2
JA
1524 --enable-net-redirections
1525 enable /dev/tcp/host/port redirection
1526 --enable-process-substitution
1527 enable process substitution
1528 --enable-progcomp enable programmable completion and the complete
1529 builtin
1530 --enable-prompt-string-decoding
1531 turn on escape character decoding in prompts
1532 --enable-readline turn on command line editing
1533 --enable-restricted enable a restricted shell
1534 --enable-select include select command
1535 --enable-separate-helpfiles
1536 use external files for help builtin documentation
01ed5ba4
CR
1537 --enable-single-help-strings
1538 store help documentation as a single string to ease
1539 translation
7790f917
CR
1540 --enable-strict-posix-default
1541 configure bash to be posix-conformant by default
7117c2d2
JA
1542 --enable-usg-echo-default
1543 a synonym for --enable-xpg-echo-default
1544 --enable-xpg-echo-default
1545 make the echo builtin expand escape sequences by
1546 default
1547 --enable-mem-scramble scramble memory on calls to malloc and free
1548 --enable-profiling allow profiling with gprof
1549 --enable-static-link link bash statically, for use as a root shell
f73dda09 1550 --disable-largefile omit support for large files
5e13499c
CR
1551 --disable-nls do not use Native Language Support
1552 --disable-rpath do not hardcode runtime library paths
f73dda09
JA
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
7117c2d2
JA
1557 --with-afs if you are running AFS
1558 --with-bash-malloc use the Bash version of malloc
1559 --with-curses use the curses library instead of the termcap
1560 library
1561 --with-gnu-malloc synonym for --with-bash-malloc
1562 --with-installed-readline
1563 use a version of the readline library that is
1564 already installed
1565 --with-purecov configure to postprocess with pure coverage
1566 --with-purify configure to postprocess with purify
5e13499c
CR
1567 --with-gnu-ld assume the C compiler uses GNU ld default=no
1568 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1569 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1570 --with-included-gettext use the GNU gettext library included here
1571 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1572 --without-libintl-prefix don't search for libintl in includedir and libdir
f73dda09
JA
1573
1574Some influential environment variables:
d3a24ed2
CR
1575 DEBUGGER_START_FILE
1576 location of bash debugger initialization file
7610e0c5
CR
1577 CC_FOR_BUILD
1578 C compiler used when compiling binaries used only at build time
1579 CFLAGS_FOR_BUILD
1580 Compliation options (CFLAGS) used when compiling binaries used
1581 only at build time
1582 LDFLAGS_FOR_BUILD
1583 Linker options (LDFLAGS) used when compiling binaries used only
1584 at build time
1585 CPPFLAGS_FOR_BUILD
1586 C preprocessor options (CPPFLAGS) used when compiling binaries
1587 used only at build time
f73dda09
JA
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
dd4f3dd8 1592 LIBS libraries to pass to the linker, e.g. -l<library>
abe2eb5b 1593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
b709b946 1594 you have headers in a nonstandard directory <include dir>
f73dda09 1595 CPP C preprocessor
abe2eb5b
CR
1596 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1597 the first program found out of: `bison -y', `byacc', `yacc'.
b709b946
CR
1598 YFLAGS The list of arguments that will be passed by default to $YACC.
1599 This script will default YFLAGS to the empty string to avoid a
1600 default value of `-d' given by some make applications.
f73dda09
JA
1601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to <bug-bash@gnu.org>.
a82a04b3 1606_ACEOF
b709b946 1607ac_status=$?
f73dda09
JA
1608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
a82a04b3 1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd4f3dd8
CR
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
a82a04b3
CR
1616 ac_builddir=.
1617
b709b946
CR
1618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
dd4f3dd8 1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b709b946 1622 # A ".." for each directory in $ac_dir_suffix.
dd4f3dd8 1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b709b946
CR
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
a82a04b3
CR
1633
1634case $srcdir in
b709b946 1635 .) # We are building in place.
a82a04b3 1636 ac_srcdir=.
b709b946
CR
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
a82a04b3 1640 ac_srcdir=$srcdir$ac_dir_suffix;
b709b946
CR
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5e4a95c7 1647esac
b709b946
CR
1648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
f73dda09 1658 else
dd4f3dd8 1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b709b946
CR
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
f73dda09
JA
1662 done
1663fi
ccc6cda3 1664
b709b946 1665test -n "$ac_init_help" && exit $ac_status
f73dda09 1666if $ac_init_version; then
a82a04b3 1667 cat <<\_ACEOF
e192f341 1668bash configure 4.2-maint
abe2eb5b 1669generated by GNU Autoconf 2.63
ccc6cda3 1670
abe2eb5b
CR
1671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16722002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
f73dda09
JA
1673This configure script is free software; the Free Software Foundation
1674gives unlimited permission to copy, distribute and modify it.
a82a04b3 1675_ACEOF
b709b946 1676 exit
f73dda09 1677fi
abe2eb5b
CR
1678cat >config.log <<_ACEOF
1679This file contains any messages produced by compilers while
1680running configure, to aid debugging if configure makes a mistake.
ccc6cda3 1681
abe2eb5b
CR
1682It was created by bash $as_me 4.2-maint, which was
1683generated by GNU Autoconf 2.63. Invocation command line was
2dead0c4 1684
abe2eb5b 1685 $ $0 $@
2dead0c4 1686
abe2eb5b
CR
1687_ACEOF
1688exec 5>>config.log
71412226 1689{
abe2eb5b
CR
1690cat <<_ASUNAME
1691## --------- ##
1692## Platform. ##
1693## --------- ##
bb70624e 1694
abe2eb5b
CR
1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699uname -v = `(uname -v) 2>/dev/null || echo unknown`
71412226 1700
abe2eb5b
CR
1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
71412226 1703
abe2eb5b
CR
1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
f73dda09 1711
abe2eb5b 1712_ASUNAME
a82a04b3 1713
abe2eb5b
CR
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 $as_echo "PATH: $as_dir"
1720done
1721IFS=$as_save_IFS
a82a04b3 1722
abe2eb5b 1723} >&5
a82a04b3 1724
abe2eb5b 1725cat >&5 <<_ACEOF
a82a04b3 1726
a82a04b3 1727
abe2eb5b
CR
1728## ----------- ##
1729## Core tests. ##
1730## ----------- ##
a82a04b3 1731
abe2eb5b 1732_ACEOF
c920c360 1733
a82a04b3 1734
abe2eb5b
CR
1735# Keep a trace of the command line.
1736# Strip out --no-create and --no-recursion so they do not pile up.
1737# Strip out --silent because we don't want to record it for future runs.
1738# Also quote any args containing shell meta-characters.
1739# Make two passes to allow for proper duplicate-argument suppression.
1740ac_configure_args=
1741ac_configure_args0=
1742ac_configure_args1=
1743ac_must_keep_next=false
1744for ac_pass in 1 2
1745do
1746 for ac_arg
1747 do
1748 case $ac_arg in
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1752 continue ;;
1753 *\'*)
1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 esac
1756 case $ac_pass in
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 2)
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
1761 ac_must_keep_next=false # Got value, back to normal.
1762 else
1763 case $ac_arg in
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 esac
1771 ;;
1772 -* ) ac_must_keep_next=true ;;
1773 esac
1774 fi
1775 ac_configure_args="$ac_configure_args '$ac_arg'"
1776 ;;
1777 esac
1778 done
1779done
1780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
a82a04b3 1782
abe2eb5b
CR
1783# When interrupted or exit'd, cleanup temporary files, and complete
1784# config.log. We remove comments because anyway the quotes in there
1785# would cause problems or look ugly.
1786# WARNING: Use '\'' to represent an apostrophe within the trap.
1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1790 {
1791 echo
a82a04b3 1792
abe2eb5b
CR
1793 cat <<\_ASBOX
1794## ---------------- ##
1795## Cache variables. ##
1796## ---------------- ##
1797_ASBOX
1798 echo
1799 # The following way of writing the cache mishandles newlines in values,
1800(
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in #(
1804 *${as_nl}*)
1805 case $ac_var in #(
1806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1807$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1808 esac
1809 case $ac_var in #(
1810 _ | IFS | as_nl) ;; #(
1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1812 *) $as_unset $ac_var ;;
1813 esac ;;
1814 esac
1815 done
1816 (set) 2>&1 |
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1819 sed -n \
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 ;; #(
1823 *)
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825 ;;
1826 esac |
1827 sort
1828)
1829 echo
a82a04b3 1830
abe2eb5b
CR
1831 cat <<\_ASBOX
1832## ----------------- ##
1833## Output variables. ##
1834## ----------------- ##
1835_ASBOX
1836 echo
1837 for ac_var in $ac_subst_vars
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
a82a04b3 1846
abe2eb5b
CR
1847 if test -n "$ac_subst_files"; then
1848 cat <<\_ASBOX
1849## ------------------- ##
1850## File substitutions. ##
1851## ------------------- ##
1852_ASBOX
1853 echo
1854 for ac_var in $ac_subst_files
1855 do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 $as_echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1863 fi
bb70624e 1864
abe2eb5b
CR
1865 if test -s confdefs.h; then
1866 cat <<\_ASBOX
1867## ----------- ##
1868## confdefs.h. ##
1869## ----------- ##
1870_ASBOX
1871 echo
1872 cat confdefs.h
1873 echo
1874 fi
1875 test "$ac_signal" != 0 &&
1876 $as_echo "$as_me: caught signal $ac_signal"
1877 $as_echo "$as_me: exit $exit_status"
1878 } >&5
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881 exit $exit_status
1882' 0
1883for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885done
1886ac_signal=0
b709b946 1887
abe2eb5b
CR
1888# confdefs.h avoids OS command line length limits that DEFS can exceed.
1889rm -f -r conftest* confdefs.h
ccc6cda3 1890
abe2eb5b 1891# Predefined preprocessor variables.
d166f048 1892
abe2eb5b
CR
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_NAME "$PACKAGE_NAME"
2dead0c4 1895_ACEOF
b709b946 1896
d166f048 1897
abe2eb5b
CR
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2dead0c4 1900_ACEOF
a82a04b3 1901
ccc6cda3 1902
abe2eb5b
CR
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_VERSION "$PACKAGE_VERSION"
2dead0c4 1905_ACEOF
ccc6cda3 1906
71412226 1907
abe2eb5b
CR
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_STRING "$PACKAGE_STRING"
2dead0c4 1910_ACEOF
ccc6cda3 1911
71412226 1912
abe2eb5b
CR
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2dead0c4 1915_ACEOF
ccc6cda3 1916
71412226 1917
abe2eb5b
CR
1918# Let the site file select an alternate cache file if it wants to.
1919# Prefer an explicitly selected file to automatically selected ones.
1920ac_site_file1=NONE
1921ac_site_file2=NONE
1922if test -n "$CONFIG_SITE"; then
1923 ac_site_file1=$CONFIG_SITE
1924elif test "x$prefix" != xNONE; then
1925 ac_site_file1=$prefix/share/config.site
1926 ac_site_file2=$prefix/etc/config.site
2dead0c4 1927else
abe2eb5b
CR
1928 ac_site_file1=$ac_default_prefix/share/config.site
1929 ac_site_file2=$ac_default_prefix/etc/config.site
2dead0c4 1930fi
abe2eb5b
CR
1931for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1932do
1933 test "x$ac_site_file" = xNONE && continue
1934 if test -r "$ac_site_file"; then
1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1938 . "$ac_site_file"
1939 fi
2dead0c4 1940done
71412226 1941
abe2eb5b
CR
1942if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947$as_echo "$as_me: loading cache $cache_file" >&6;}
1948 case $cache_file in
1949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
1951 esac
1952 fi
2dead0c4 1953else
abe2eb5b
CR
1954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955$as_echo "$as_me: creating cache $cache_file" >&6;}
1956 >$cache_file
2dead0c4 1957fi
71412226 1958
abe2eb5b
CR
1959ac_header_list="$ac_header_list sys/time.h"
1960ac_header_list="$ac_header_list unistd.h"
1961ac_func_list="$ac_func_list alarm"
1962ac_func_list="$ac_func_list fpurge"
1963ac_func_list="$ac_func_list __fpurge"
1964ac_func_list="$ac_func_list snprintf"
1965ac_func_list="$ac_func_list vsnprintf"
1966# Check that the precious variables saved in the cache have kept the same
1967# value.
1968ac_cache_corrupted=false
1969for ac_var in $ac_precious_vars; do
1970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1971 eval ac_new_set=\$ac_env_${ac_var}_set
1972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1973 eval ac_new_val=\$ac_env_${ac_var}_value
1974 case $ac_old_set,$ac_new_set in
1975 set,)
1976 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1977$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1978 ac_cache_corrupted=: ;;
1979 ,set)
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1981$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,);;
1984 *)
1985 if test "x$ac_old_val" != "x$ac_new_val"; then
1986 # differences in whitespace do not lead to failure.
1987 ac_old_val_w=`echo x $ac_old_val`
1988 ac_new_val_w=`echo x $ac_new_val`
1989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1990 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1991$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1992 ac_cache_corrupted=:
1993 else
1994 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1995$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1996 eval $ac_var=\$ac_old_val
1997 fi
1998 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1999$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2000 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2001$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2002 fi;;
2003 esac
2004 # Pass precious variables to config.status.
2005 if test "$ac_new_set" = set; then
2006 case $ac_new_val in
2007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2008 *) ac_arg=$ac_var=$ac_new_val ;;
2009 esac
2010 case " $ac_configure_args " in
2011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2012 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 esac
2dead0c4 2014 fi
abe2eb5b
CR
2015done
2016if $ac_cache_corrupted; then
2017 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2019 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023 { (exit 1); exit 1; }; }
2024fi
71412226 2025
71412226 2026
71412226
CR
2027
2028
7610e0c5
CR
2029
2030
2031
2032
c920c360 2033
7610e0c5 2034
71412226 2035
c920c360 2036
71412226 2037
c920c360 2038
c920c360 2039
c920c360 2040
c920c360 2041
c920c360 2042
71412226 2043
c920c360 2044
71412226 2045
71412226 2046
71412226 2047
71412226 2048
c920c360 2049
abe2eb5b
CR
2050ac_ext=c
2051ac_cpp='$CPP $CPPFLAGS'
2052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054ac_compiler_gnu=$ac_cv_c_compiler_gnu
c920c360 2055
c920c360 2056
71412226 2057
c920c360 2058
71412226 2059
71412226 2060
abe2eb5b
CR
2061ac_aux_dir=
2062for ac_dir in ./support "$srcdir"/./support; do
2063 if test -f "$ac_dir/install-sh"; then
2064 ac_aux_dir=$ac_dir
2065 ac_install_sh="$ac_aux_dir/install-sh -c"
2066 break
2067 elif test -f "$ac_dir/install.sh"; then
2068 ac_aux_dir=$ac_dir
2069 ac_install_sh="$ac_aux_dir/install.sh -c"
2070 break
2071 elif test -f "$ac_dir/shtool"; then
2072 ac_aux_dir=$ac_dir
2073 ac_install_sh="$ac_aux_dir/shtool install -c"
2074 break
2075 fi
2076done
2077if test -z "$ac_aux_dir"; then
2078 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2079$as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
2080 { (exit 1); exit 1; }; }
2081fi
71412226 2082
abe2eb5b
CR
2083# These three variables are undocumented and unsupported,
2084# and are intended to be withdrawn in a future Autoconf release.
2085# They can cause serious problems if a builder's source tree is in a directory
2086# whose full name contains unusual characters.
2087ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
71412226 2090
71412226 2091
abe2eb5b 2092ac_config_headers="$ac_config_headers config.h"
71412226 2093
71412226 2094
2dead0c4
CR
2095BASHVERS=4.2
2096RELSTATUS=maint
71412226 2097
2dead0c4
CR
2098case "$RELSTATUS" in
2099alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
2100*) DEBUG= MALLOC_DEBUG= ;;
2101esac
c920c360 2102
2dead0c4
CR
2103# Make sure we can run config.sub.
2104$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
abe2eb5b
CR
2105 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2106$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2107 { (exit 1); exit 1; }; }
c920c360 2108
abe2eb5b 2109{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2dead0c4 2110$as_echo_n "checking build system type... " >&6; }
abe2eb5b 2111if test "${ac_cv_build+set}" = set; then
2dead0c4
CR
2112 $as_echo_n "(cached) " >&6
2113else
2114 ac_build_alias=$build_alias
2115test "x$ac_build_alias" = x &&
2116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2117test "x$ac_build_alias" = x &&
abe2eb5b
CR
2118 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2119$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2120 { (exit 1); exit 1; }; }
2dead0c4 2121ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
abe2eb5b
CR
2122 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2123$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2124 { (exit 1); exit 1; }; }
c920c360 2125
c920c360 2126fi
abe2eb5b 2127{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2dead0c4
CR
2128$as_echo "$ac_cv_build" >&6; }
2129case $ac_cv_build in
2130*-*-*) ;;
abe2eb5b
CR
2131*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2132$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2133 { (exit 1); exit 1; }; };;
2dead0c4
CR
2134esac
2135build=$ac_cv_build
2136ac_save_IFS=$IFS; IFS='-'
2137set x $ac_cv_build
2138shift
2139build_cpu=$1
2140build_vendor=$2
2141shift; shift
2142# Remember, the first character of IFS is used to create $*,
2143# except with old shells:
2144build_os=$*
2145IFS=$ac_save_IFS
2146case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
c920c360 2147
c920c360 2148
abe2eb5b 2149{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2dead0c4 2150$as_echo_n "checking host system type... " >&6; }
abe2eb5b 2151if test "${ac_cv_host+set}" = set; then
2dead0c4
CR
2152 $as_echo_n "(cached) " >&6
2153else
2154 if test "x$host_alias" = x; then
2155 ac_cv_host=$ac_cv_build
2156else
2157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
abe2eb5b
CR
2158 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
c920c360
CR
2161fi
2162
c920c360 2163fi
abe2eb5b 2164{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2dead0c4
CR
2165$as_echo "$ac_cv_host" >&6; }
2166case $ac_cv_host in
2167*-*-*) ;;
abe2eb5b
CR
2168*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2170 { (exit 1); exit 1; }; };;
2dead0c4
CR
2171esac
2172host=$ac_cv_host
2173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_host
2175shift
2176host_cpu=$1
2177host_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181host_os=$*
2182IFS=$ac_save_IFS
2183case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c920c360 2184
c920c360 2185
c920c360 2186
2dead0c4
CR
2187opt_bash_malloc=yes
2188opt_purify=no
2189opt_purecov=no
2190opt_afs=no
2191opt_curses=no
2192opt_with_installed_readline=no
c920c360 2193
2dead0c4 2194#htmldir=
c920c360 2195
2dead0c4
CR
2196case "${host_cpu}-${host_os}" in
2197alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2198*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2199*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2200sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2201sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
2202mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2203m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2204sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
2205#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
2206#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
2207*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
2208*-aix*) opt_bash_malloc=no ;; # AIX machines
2209*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
2210*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2211*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2212*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
2213*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
2214*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
2215*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2216*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2217*-beos*) opt_bash_malloc=no ;; # they say it's suitable
2218*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2219*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
2220esac
c920c360 2221
2dead0c4
CR
2222# memory scrambling on free()
2223case "${host_os}" in
2224sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2225*) opt_memscramble=yes ;;
2226esac
c920c360
CR
2227
2228
c920c360 2229
c920c360 2230
2dead0c4 2231# Check whether --with-afs was given.
abe2eb5b 2232if test "${with_afs+set}" = set; then
2dead0c4 2233 withval=$with_afs; opt_afs=$withval
c920c360
CR
2234fi
2235
2236
2dead0c4 2237# Check whether --with-bash-malloc was given.
abe2eb5b 2238if test "${with_bash_malloc+set}" = set; then
2dead0c4
CR
2239 withval=$with_bash_malloc; opt_bash_malloc=$withval
2240fi
c920c360
CR
2241
2242
2dead0c4 2243# Check whether --with-curses was given.
abe2eb5b 2244if test "${with_curses+set}" = set; then
2dead0c4
CR
2245 withval=$with_curses; opt_curses=$withval
2246fi
c920c360
CR
2247
2248
2dead0c4 2249# Check whether --with-gnu-malloc was given.
abe2eb5b 2250if test "${with_gnu_malloc+set}" = set; then
2dead0c4
CR
2251 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2252fi
c920c360
CR
2253
2254
2dead0c4 2255# Check whether --with-installed-readline was given.
abe2eb5b 2256if test "${with_installed_readline+set}" = set; then
2dead0c4
CR
2257 withval=$with_installed_readline; opt_with_installed_readline=$withval
2258fi
2259
c920c360 2260
2dead0c4 2261# Check whether --with-purecov was given.
abe2eb5b 2262if test "${with_purecov+set}" = set; then
2dead0c4 2263 withval=$with_purecov; opt_purecov=$withval
c920c360 2264fi
c920c360 2265
2dead0c4
CR
2266
2267# Check whether --with-purify was given.
abe2eb5b 2268if test "${with_purify+set}" = set; then
2dead0c4 2269 withval=$with_purify; opt_purify=$withval
c920c360 2270fi
c920c360 2271
2dead0c4
CR
2272
2273if test "$opt_bash_malloc" = yes; then
2274 MALLOC_TARGET=malloc
2275 MALLOC_SRC=malloc.c
2276
2277 MALLOC_LIB='-lmalloc'
2278 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2279 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2280 MALLOC_DEP='$(MALLOC_LIBRARY)'
2281
abe2eb5b
CR
2282 cat >>confdefs.h <<\_ACEOF
2283#define USING_BASH_MALLOC 1
2284_ACEOF
2dead0c4
CR
2285
2286else
2287 MALLOC_LIB=
2288 MALLOC_LIBRARY=
2289 MALLOC_LDFLAGS=
2290 MALLOC_DEP=
c920c360 2291fi
c920c360 2292
2dead0c4
CR
2293if test "$opt_purify" = yes; then
2294 PURIFY="purify "
abe2eb5b
CR
2295 cat >>confdefs.h <<\_ACEOF
2296#define DISABLE_MALLOC_WRAPPERS 1
2297_ACEOF
2dead0c4
CR
2298
2299else
2300 PURIFY=
c920c360 2301fi
c920c360 2302
2dead0c4
CR
2303if test "$opt_purecov" = yes; then
2304 PURIFY="${PURIFY}purecov"
c920c360 2305fi
2dead0c4
CR
2306
2307if test "$opt_afs" = yes; then
abe2eb5b
CR
2308 cat >>confdefs.h <<\_ACEOF
2309#define AFS 1
2310_ACEOF
c920c360
CR
2311
2312fi
c920c360 2313
2dead0c4
CR
2314if test "$opt_curses" = yes; then
2315 prefer_curses=yes
c920c360 2316fi
c920c360 2317
2dead0c4
CR
2318if test -z "${DEBUGGER_START_FILE}"; then
2319 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
c920c360 2320fi
c920c360 2321
2dead0c4
CR
2322opt_minimal_config=no
2323
2324opt_job_control=yes
2325opt_alias=yes
2326opt_readline=yes
2327opt_history=yes
2328opt_bang_history=yes
2329opt_dirstack=yes
2330opt_restricted=yes
2331opt_process_subst=yes
2332opt_prompt_decoding=yes
2333opt_select=yes
2334opt_help=yes
2335opt_array_variables=yes
2336opt_dparen_arith=yes
2337opt_extended_glob=yes
2338opt_brace_expansion=yes
2339opt_disabled_builtins=no
2340opt_command_timing=yes
2341opt_xpg_echo=no
2342opt_strict_posix=no
2343opt_cond_command=yes
2344opt_cond_regexp=yes
2345opt_coproc=yes
2346opt_arith_for_command=yes
2347opt_net_redirs=yes
2348opt_progcomp=yes
2349opt_separate_help=no
2350opt_multibyte=yes
2351opt_debugger=yes
2352opt_single_longdoc_strings=yes
2353opt_casemod_attrs=yes
2354opt_casemod_expansions=yes
2355opt_extglob_default=no
2356
2357opt_static_link=no
2358opt_profiling=no
2359
2360# Check whether --enable-minimal-config was given.
abe2eb5b 2361if test "${enable_minimal_config+set}" = set; then
2dead0c4 2362 enableval=$enable_minimal_config; opt_minimal_config=$enableval
c920c360 2363fi
c920c360 2364
2dead0c4
CR
2365
2366if test $opt_minimal_config = yes; then
2367 opt_job_control=no opt_alias=no opt_readline=no
2368 opt_history=no opt_bang_history=no opt_dirstack=no
2369 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2370 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2371 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
2372 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
2373 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
2374 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2375 opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no
c920c360 2376fi
c920c360 2377
2dead0c4 2378# Check whether --enable-alias was given.
abe2eb5b 2379if test "${enable_alias+set}" = set; then
2dead0c4 2380 enableval=$enable_alias; opt_alias=$enableval
c920c360 2381fi
c920c360 2382
2dead0c4 2383# Check whether --enable-arith-for-command was given.
abe2eb5b 2384if test "${enable_arith_for_command+set}" = set; then
2dead0c4 2385 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
c920c360 2386fi
c920c360 2387
2dead0c4 2388# Check whether --enable-array-variables was given.
abe2eb5b 2389if test "${enable_array_variables+set}" = set; then
2dead0c4 2390 enableval=$enable_array_variables; opt_array_variables=$enableval
c920c360 2391fi
c920c360 2392
2dead0c4 2393# Check whether --enable-bang-history was given.
abe2eb5b 2394if test "${enable_bang_history+set}" = set; then
2dead0c4 2395 enableval=$enable_bang_history; opt_bang_history=$enableval
c920c360 2396fi
c920c360 2397
2dead0c4 2398# Check whether --enable-brace-expansion was given.
abe2eb5b 2399if test "${enable_brace_expansion+set}" = set; then
2dead0c4 2400 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
c920c360 2401fi
c920c360 2402
2dead0c4 2403# Check whether --enable-casemod-attributes was given.
abe2eb5b 2404if test "${enable_casemod_attributes+set}" = set; then
2dead0c4
CR
2405 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2406fi
c920c360 2407
2dead0c4 2408# Check whether --enable-casemod-expansions was given.
abe2eb5b 2409if test "${enable_casemod_expansions+set}" = set; then
2dead0c4 2410 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
c920c360 2411fi
c920c360 2412
2dead0c4 2413# Check whether --enable-command-timing was given.
abe2eb5b 2414if test "${enable_command_timing+set}" = set; then
2dead0c4 2415 enableval=$enable_command_timing; opt_command_timing=$enableval
c920c360 2416fi
c920c360 2417
2dead0c4 2418# Check whether --enable-cond-command was given.
abe2eb5b 2419if test "${enable_cond_command+set}" = set; then
2dead0c4 2420 enableval=$enable_cond_command; opt_cond_command=$enableval
c920c360 2421fi
c920c360 2422
2dead0c4 2423# Check whether --enable-cond-regexp was given.
abe2eb5b 2424if test "${enable_cond_regexp+set}" = set; then
2dead0c4 2425 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
c920c360 2426fi
c920c360 2427
2dead0c4 2428# Check whether --enable-coprocesses was given.
abe2eb5b 2429if test "${enable_coprocesses+set}" = set; then
2dead0c4 2430 enableval=$enable_coprocesses; opt_coproc=$enableval
c920c360 2431fi
c920c360 2432
2dead0c4 2433# Check whether --enable-debugger was given.
abe2eb5b 2434if test "${enable_debugger+set}" = set; then
2dead0c4 2435 enableval=$enable_debugger; opt_debugger=$enableval
c920c360 2436fi
c920c360 2437
2dead0c4 2438# Check whether --enable-directory-stack was given.
abe2eb5b 2439if test "${enable_directory_stack+set}" = set; then
2dead0c4 2440 enableval=$enable_directory_stack; opt_dirstack=$enableval
c920c360 2441fi
c920c360 2442
2dead0c4 2443# Check whether --enable-disabled-builtins was given.
abe2eb5b 2444if test "${enable_disabled_builtins+set}" = set; then
2dead0c4 2445 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
c920c360 2446fi
c920c360 2447
2dead0c4 2448# Check whether --enable-dparen-arithmetic was given.
abe2eb5b 2449if test "${enable_dparen_arithmetic+set}" = set; then
2dead0c4 2450 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
c920c360 2451fi
c920c360 2452
2dead0c4 2453# Check whether --enable-extended-glob was given.
abe2eb5b 2454if test "${enable_extended_glob+set}" = set; then
2dead0c4 2455 enableval=$enable_extended_glob; opt_extended_glob=$enableval
c920c360 2456fi
c920c360 2457
2dead0c4 2458# Check whether --enable-extended-glob-default was given.
abe2eb5b 2459if test "${enable_extended_glob_default+set}" = set; then
2dead0c4 2460 enableval=$enable_extended_glob_default; opt_extglob_default=$enableval
c920c360
CR
2461fi
2462
2dead0c4 2463# Check whether --enable-help-builtin was given.
abe2eb5b 2464if test "${enable_help_builtin+set}" = set; then
2dead0c4
CR
2465 enableval=$enable_help_builtin; opt_help=$enableval
2466fi
c920c360 2467
2dead0c4 2468# Check whether --enable-history was given.
abe2eb5b 2469if test "${enable_history+set}" = set; then
2dead0c4 2470 enableval=$enable_history; opt_history=$enableval
c920c360
CR
2471fi
2472
2dead0c4 2473# Check whether --enable-job-control was given.
abe2eb5b 2474if test "${enable_job_control+set}" = set; then
2dead0c4 2475 enableval=$enable_job_control; opt_job_control=$enableval
c920c360
CR
2476fi
2477
2dead0c4 2478# Check whether --enable-multibyte was given.
abe2eb5b 2479if test "${enable_multibyte+set}" = set; then
2dead0c4 2480 enableval=$enable_multibyte; opt_multibyte=$enableval
c920c360 2481fi
2dead0c4
CR
2482
2483# Check whether --enable-net-redirections was given.
abe2eb5b 2484if test "${enable_net_redirections+set}" = set; then
2dead0c4
CR
2485 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2486fi
2487
2488# Check whether --enable-process-substitution was given.
abe2eb5b 2489if test "${enable_process_substitution+set}" = set; then
2dead0c4
CR
2490 enableval=$enable_process_substitution; opt_process_subst=$enableval
2491fi
2492
2493# Check whether --enable-progcomp was given.
abe2eb5b 2494if test "${enable_progcomp+set}" = set; then
2dead0c4
CR
2495 enableval=$enable_progcomp; opt_progcomp=$enableval
2496fi
2497
2498# Check whether --enable-prompt-string-decoding was given.
abe2eb5b 2499if test "${enable_prompt_string_decoding+set}" = set; then
2dead0c4
CR
2500 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2501fi
2502
2503# Check whether --enable-readline was given.
abe2eb5b 2504if test "${enable_readline+set}" = set; then
2dead0c4
CR
2505 enableval=$enable_readline; opt_readline=$enableval
2506fi
2507
2508# Check whether --enable-restricted was given.
abe2eb5b 2509if test "${enable_restricted+set}" = set; then
2dead0c4
CR
2510 enableval=$enable_restricted; opt_restricted=$enableval
2511fi
2512
2513# Check whether --enable-select was given.
abe2eb5b 2514if test "${enable_select+set}" = set; then
2dead0c4
CR
2515 enableval=$enable_select; opt_select=$enableval
2516fi
2517
2518# Check whether --enable-separate-helpfiles was given.
abe2eb5b 2519if test "${enable_separate_helpfiles+set}" = set; then
2dead0c4
CR
2520 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2521fi
2522
2523# Check whether --enable-single-help-strings was given.
abe2eb5b 2524if test "${enable_single_help_strings+set}" = set; then
2dead0c4
CR
2525 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2526fi
2527
2528# Check whether --enable-strict-posix-default was given.
abe2eb5b 2529if test "${enable_strict_posix_default+set}" = set; then
2dead0c4
CR
2530 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2531fi
2532
2533# Check whether --enable-usg-echo-default was given.
abe2eb5b 2534if test "${enable_usg_echo_default+set}" = set; then
2dead0c4
CR
2535 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2536fi
2537
2538# Check whether --enable-xpg-echo-default was given.
abe2eb5b 2539if test "${enable_xpg_echo_default+set}" = set; then
2dead0c4
CR
2540 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2541fi
2542
2543
2544# Check whether --enable-mem-scramble was given.
abe2eb5b 2545if test "${enable_mem_scramble+set}" = set; then
2dead0c4
CR
2546 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2547fi
2548
2549# Check whether --enable-profiling was given.
abe2eb5b 2550if test "${enable_profiling+set}" = set; then
2dead0c4
CR
2551 enableval=$enable_profiling; opt_profiling=$enableval
2552fi
2553
2554# Check whether --enable-static-link was given.
abe2eb5b 2555if test "${enable_static_link+set}" = set; then
2dead0c4
CR
2556 enableval=$enable_static_link; opt_static_link=$enableval
2557fi
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567if test $opt_alias = yes; then
abe2eb5b
CR
2568cat >>confdefs.h <<\_ACEOF
2569#define ALIAS 1
2570_ACEOF
2dead0c4
CR
2571
2572fi
2573if test $opt_dirstack = yes; then
abe2eb5b
CR
2574cat >>confdefs.h <<\_ACEOF
2575#define PUSHD_AND_POPD 1
2576_ACEOF
2dead0c4
CR
2577
2578fi
2579if test $opt_restricted = yes; then
abe2eb5b
CR
2580cat >>confdefs.h <<\_ACEOF
2581#define RESTRICTED_SHELL 1
2582_ACEOF
2dead0c4
CR
2583
2584fi
2585if test $opt_process_subst = yes; then
abe2eb5b
CR
2586cat >>confdefs.h <<\_ACEOF
2587#define PROCESS_SUBSTITUTION 1
2588_ACEOF
2dead0c4
CR
2589
2590fi
2591if test $opt_prompt_decoding = yes; then
abe2eb5b
CR
2592cat >>confdefs.h <<\_ACEOF
2593#define PROMPT_STRING_DECODE 1
2594_ACEOF
2dead0c4
CR
2595
2596fi
2597if test $opt_select = yes; then
abe2eb5b
CR
2598cat >>confdefs.h <<\_ACEOF
2599#define SELECT_COMMAND 1
2600_ACEOF
2dead0c4
CR
2601
2602fi
2603if test $opt_help = yes; then
abe2eb5b
CR
2604cat >>confdefs.h <<\_ACEOF
2605#define HELP_BUILTIN 1
2606_ACEOF
2dead0c4
CR
2607
2608fi
2609if test $opt_array_variables = yes; then
abe2eb5b
CR
2610cat >>confdefs.h <<\_ACEOF
2611#define ARRAY_VARS 1
2612_ACEOF
2dead0c4
CR
2613
2614fi
2615if test $opt_dparen_arith = yes; then
abe2eb5b
CR
2616cat >>confdefs.h <<\_ACEOF
2617#define DPAREN_ARITHMETIC 1
2618_ACEOF
2dead0c4
CR
2619
2620fi
2621if test $opt_brace_expansion = yes; then
abe2eb5b
CR
2622cat >>confdefs.h <<\_ACEOF
2623#define BRACE_EXPANSION 1
2624_ACEOF
2dead0c4
CR
2625
2626fi
2627if test $opt_disabled_builtins = yes; then
abe2eb5b
CR
2628cat >>confdefs.h <<\_ACEOF
2629#define DISABLED_BUILTINS 1
2630_ACEOF
2dead0c4
CR
2631
2632fi
2633if test $opt_command_timing = yes; then
abe2eb5b
CR
2634cat >>confdefs.h <<\_ACEOF
2635#define COMMAND_TIMING 1
2636_ACEOF
2dead0c4
CR
2637
2638fi
2639if test $opt_xpg_echo = yes ; then
abe2eb5b
CR
2640cat >>confdefs.h <<\_ACEOF
2641#define DEFAULT_ECHO_TO_XPG 1
2642_ACEOF
2dead0c4
CR
2643
2644fi
2645if test $opt_strict_posix = yes; then
abe2eb5b
CR
2646cat >>confdefs.h <<\_ACEOF
2647#define STRICT_POSIX 1
2648_ACEOF
2dead0c4
CR
2649
2650fi
2651if test $opt_extended_glob = yes ; then
abe2eb5b
CR
2652cat >>confdefs.h <<\_ACEOF
2653#define EXTENDED_GLOB 1
2654_ACEOF
2dead0c4
CR
2655
2656fi
2657if test $opt_extglob_default = yes; then
abe2eb5b
CR
2658cat >>confdefs.h <<\_ACEOF
2659#define EXTGLOB_DEFAULT 1
2660_ACEOF
2dead0c4
CR
2661
2662else
abe2eb5b
CR
2663cat >>confdefs.h <<\_ACEOF
2664#define EXTGLOB_DEFAULT 0
2665_ACEOF
2dead0c4
CR
2666
2667fi
2668if test $opt_cond_command = yes ; then
abe2eb5b
CR
2669cat >>confdefs.h <<\_ACEOF
2670#define COND_COMMAND 1
2671_ACEOF
2dead0c4
CR
2672
2673fi
2674if test $opt_cond_regexp = yes ; then
abe2eb5b
CR
2675cat >>confdefs.h <<\_ACEOF
2676#define COND_REGEXP 1
2677_ACEOF
2dead0c4
CR
2678
2679fi
2680if test $opt_coproc = yes; then
abe2eb5b
CR
2681cat >>confdefs.h <<\_ACEOF
2682#define COPROCESS_SUPPORT 1
2683_ACEOF
2dead0c4
CR
2684
2685fi
2686if test $opt_arith_for_command = yes; then
abe2eb5b
CR
2687cat >>confdefs.h <<\_ACEOF
2688#define ARITH_FOR_COMMAND 1
2689_ACEOF
2dead0c4
CR
2690
2691fi
2692if test $opt_net_redirs = yes; then
abe2eb5b
CR
2693cat >>confdefs.h <<\_ACEOF
2694#define NETWORK_REDIRECTIONS 1
2695_ACEOF
2dead0c4
CR
2696
2697fi
2698if test $opt_progcomp = yes; then
abe2eb5b
CR
2699cat >>confdefs.h <<\_ACEOF
2700#define PROGRAMMABLE_COMPLETION 1
2701_ACEOF
2dead0c4
CR
2702
2703fi
2704if test $opt_multibyte = no; then
abe2eb5b
CR
2705cat >>confdefs.h <<\_ACEOF
2706#define NO_MULTIBYTE_SUPPORT 1
2707_ACEOF
2dead0c4
CR
2708
2709fi
2710if test $opt_debugger = yes; then
abe2eb5b
CR
2711cat >>confdefs.h <<\_ACEOF
2712#define DEBUGGER 1
2713_ACEOF
2dead0c4
CR
2714
2715fi
2716if test $opt_casemod_attrs = yes; then
abe2eb5b
CR
2717cat >>confdefs.h <<\_ACEOF
2718#define CASEMOD_ATTRS 1
2719_ACEOF
2dead0c4
CR
2720
2721fi
2722if test $opt_casemod_expansions = yes; then
abe2eb5b
CR
2723cat >>confdefs.h <<\_ACEOF
2724#define CASEMOD_EXPANSIONS 1
2725_ACEOF
2dead0c4
CR
2726
2727fi
2728
2729if test $opt_memscramble = yes; then
abe2eb5b
CR
2730cat >>confdefs.h <<\_ACEOF
2731#define MEMSCRAMBLE 1
2732_ACEOF
2dead0c4
CR
2733
2734fi
2735
2736if test "$opt_minimal_config" = yes; then
2737 TESTSCRIPT=run-minimal
2738else
2739 TESTSCRIPT=run-all
2740fi
2741
abe2eb5b 2742HELPDIR= HELPDIRDEFINE= HELPINSTALL= HELPFILES_TARGET=
2dead0c4
CR
2743if test "$opt_separate_help" != no; then
2744 if test "$opt_separate_help" = "yes" ; then
2745 HELPDIR='${datadir}/bash'
2746 else
2747 HELPDIR=$opt_separate_help
2748 fi
2749 HELPDIRDEFINE='-H ${HELPDIR}'
2750 HELPINSTALL='install-help'
abe2eb5b 2751 HELPFILES_TARGET='helpdoc'
2dead0c4
CR
2752fi
2753HELPSTRINGS=
2754if test "$opt_single_longdoc_strings" != "yes"; then
2755 HELPSTRINGS='-S'
71412226
CR
2756fi
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
abe2eb5b 2775
71412226 2776echo ""
7117c2d2 2777echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
f73dda09 2778echo ""
d166f048 2779
f73dda09
JA
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2787set dummy ${ac_tool_prefix}gcc; ac_word=$2
abe2eb5b 2788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 2789$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 2790if test "${ac_cv_prog_CC+set}" = set; then
dd4f3dd8 2791 $as_echo_n "(cached) " >&6
f73dda09
JA
2792else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
a82a04b3
CR
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
abe2eb5b 2801 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 2803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
abe2eb5b 2804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
2805 break 2
2806 fi
2807done
abe2eb5b 2808done
b709b946 2809IFS=$as_save_IFS
ccc6cda3 2810
f73dda09
JA
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
abe2eb5b 2815 { $as_echo "$as_me:$LINENO: result: $CC" >&5
dd4f3dd8 2816$as_echo "$CC" >&6; }
f73dda09 2817else
abe2eb5b 2818 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 2819$as_echo "no" >&6; }
f73dda09 2820fi
ccc6cda3 2821
b709b946 2822
f73dda09
JA
2823fi
2824if test -z "$ac_cv_prog_CC"; then
2825 ac_ct_CC=$CC
2826 # Extract the first word of "gcc", so it can be a program name with args.
2827set dummy gcc; ac_word=$2
abe2eb5b 2828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 2829$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 2830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
dd4f3dd8 2831 $as_echo_n "(cached) " >&6
f73dda09
JA
2832else
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835else
a82a04b3
CR
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
abe2eb5b 2841 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 2843 ac_cv_prog_ac_ct_CC="gcc"
abe2eb5b 2844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
2845 break 2
2846 fi
2847done
abe2eb5b 2848done
b709b946 2849IFS=$as_save_IFS
ccc6cda3 2850
f73dda09
JA
2851fi
2852fi
2853ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854if test -n "$ac_ct_CC"; then
abe2eb5b 2855 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
dd4f3dd8 2856$as_echo "$ac_ct_CC" >&6; }
f73dda09 2857else
abe2eb5b 2858 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 2859$as_echo "no" >&6; }
f73dda09 2860fi
ccc6cda3 2861
b709b946
CR
2862 if test "x$ac_ct_CC" = x; then
2863 CC=""
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866yes:)
abe2eb5b 2867{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
af98a2a6 2868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b709b946
CR
2869ac_tool_warned=yes ;;
2870esac
2871 CC=$ac_ct_CC
2872 fi
f73dda09
JA
2873else
2874 CC="$ac_cv_prog_CC"
2875fi
bb70624e 2876
f73dda09 2877if test -z "$CC"; then
b709b946
CR
2878 if test -n "$ac_tool_prefix"; then
2879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f73dda09 2880set dummy ${ac_tool_prefix}cc; ac_word=$2
abe2eb5b 2881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 2882$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 2883if test "${ac_cv_prog_CC+set}" = set; then
dd4f3dd8 2884 $as_echo_n "(cached) " >&6
ccc6cda3
JA
2885else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
a82a04b3
CR
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
abe2eb5b 2894 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 2896 ac_cv_prog_CC="${ac_tool_prefix}cc"
abe2eb5b 2897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
2898 break 2
2899 fi
2900done
abe2eb5b 2901done
b709b946 2902IFS=$as_save_IFS
f73dda09 2903
ccc6cda3
JA
2904fi
2905fi
f73dda09 2906CC=$ac_cv_prog_CC
ccc6cda3 2907if test -n "$CC"; then
abe2eb5b 2908 { $as_echo "$as_me:$LINENO: result: $CC" >&5
dd4f3dd8 2909$as_echo "$CC" >&6; }
c184f645 2910else
abe2eb5b 2911 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 2912$as_echo "no" >&6; }
c184f645
CR
2913fi
2914
c184f645 2915
b709b946 2916 fi
f73dda09 2917fi
ccc6cda3
JA
2918if test -z "$CC"; then
2919 # Extract the first word of "cc", so it can be a program name with args.
2920set dummy cc; ac_word=$2
abe2eb5b 2921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 2922$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 2923if test "${ac_cv_prog_CC+set}" = set; then
dd4f3dd8 2924 $as_echo_n "(cached) " >&6
ccc6cda3
JA
2925else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928else
ccc6cda3 2929 ac_prog_rejected=no
a82a04b3
CR
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
abe2eb5b 2935 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3
CR
2937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2938 ac_prog_rejected=yes
2939 continue
2940 fi
2941 ac_cv_prog_CC="cc"
abe2eb5b 2942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
2943 break 2
2944 fi
2945done
abe2eb5b 2946done
b709b946 2947IFS=$as_save_IFS
f73dda09 2948
ccc6cda3
JA
2949if test $ac_prog_rejected = yes; then
2950 # We found a bogon in the path, so make sure we never use it.
2951 set dummy $ac_cv_prog_CC
2952 shift
f73dda09 2953 if test $# != 0; then
ccc6cda3
JA
2954 # We chose a different compiler from the bogus one.
2955 # However, it has the same basename, so the bogon will be chosen
2956 # first if we set CC to just the basename; use the full file name.
2957 shift
5e4a95c7 2958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ccc6cda3
JA
2959 fi
2960fi
2961fi
2962fi
f73dda09 2963CC=$ac_cv_prog_CC
ccc6cda3 2964if test -n "$CC"; then
abe2eb5b 2965 { $as_echo "$as_me:$LINENO: result: $CC" >&5
dd4f3dd8 2966$as_echo "$CC" >&6; }
ccc6cda3 2967else
abe2eb5b 2968 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 2969$as_echo "no" >&6; }
ccc6cda3
JA
2970fi
2971
b709b946 2972
f73dda09
JA
2973fi
2974if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
b709b946 2976 for ac_prog in cl.exe
f73dda09
JA
2977 do
2978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
abe2eb5b 2980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 2981$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 2982if test "${ac_cv_prog_CC+set}" = set; then
dd4f3dd8 2983 $as_echo_n "(cached) " >&6
bb70624e
JA
2984else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
a82a04b3
CR
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
abe2eb5b 2993 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 2995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
abe2eb5b 2996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
2997 break 2
2998 fi
2999done
abe2eb5b 3000done
b709b946 3001IFS=$as_save_IFS
f73dda09 3002
bb70624e
JA
3003fi
3004fi
f73dda09 3005CC=$ac_cv_prog_CC
bb70624e 3006if test -n "$CC"; then
abe2eb5b 3007 { $as_echo "$as_me:$LINENO: result: $CC" >&5
dd4f3dd8 3008$as_echo "$CC" >&6; }
bb70624e 3009else
abe2eb5b 3010 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 3011$as_echo "no" >&6; }
bb70624e 3012fi
ccc6cda3 3013
b709b946 3014
f73dda09
JA
3015 test -n "$CC" && break
3016 done
ccc6cda3 3017fi
f73dda09
JA
3018if test -z "$CC"; then
3019 ac_ct_CC=$CC
b709b946 3020 for ac_prog in cl.exe
f73dda09
JA
3021do
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023set dummy $ac_prog; ac_word=$2
abe2eb5b 3024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 3025$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 3026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
dd4f3dd8 3027 $as_echo_n "(cached) " >&6
f73dda09
JA
3028else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031else
a82a04b3
CR
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
abe2eb5b 3037 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 3039 ac_cv_prog_ac_ct_CC="$ac_prog"
abe2eb5b 3040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
3041 break 2
3042 fi
3043done
abe2eb5b 3044done
b709b946 3045IFS=$as_save_IFS
ccc6cda3 3046
ccc6cda3 3047fi
ccc6cda3 3048fi
f73dda09
JA
3049ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050if test -n "$ac_ct_CC"; then
abe2eb5b 3051 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
dd4f3dd8 3052$as_echo "$ac_ct_CC" >&6; }
f73dda09 3053else
abe2eb5b 3054 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 3055$as_echo "no" >&6; }
ccc6cda3
JA
3056fi
3057
b709b946 3058
f73dda09
JA
3059 test -n "$ac_ct_CC" && break
3060done
ccc6cda3 3061
b709b946
CR
3062 if test "x$ac_ct_CC" = x; then
3063 CC=""
3064 else
3065 case $cross_compiling:$ac_tool_warned in
3066yes:)
abe2eb5b 3067{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
af98a2a6 3068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b709b946
CR
3069ac_tool_warned=yes ;;
3070esac
3071 CC=$ac_ct_CC
3072 fi
bb70624e
JA
3073fi
3074
f73dda09
JA
3075fi
3076
a82a04b3 3077
abe2eb5b 3078test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
af98a2a6 3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
abe2eb5b
CR
3080{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3081See \`config.log' for more details." >&5
3082$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3083See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }; }
f73dda09
JA
3085
3086# Provide some information about the compiler.
abe2eb5b 3087$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
dd4f3dd8
CR
3088set X $ac_compile
3089ac_compiler=$2
abe2eb5b 3090{ (ac_try="$ac_compiler --version >&5"
e3db237e
CR
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
abe2eb5b
CR
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
3097 (eval "$ac_compiler --version >&5") 2>&5
e3db237e 3098 ac_status=$?
abe2eb5b
CR
3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
3101{ (ac_try="$ac_compiler -v >&5"
3102case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107$as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compiler -v >&5") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }
3112{ (ac_try="$ac_compiler -V >&5"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118$as_echo "$ac_try_echo") >&5
3119 (eval "$ac_compiler -V >&5") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }
f73dda09 3123
abe2eb5b
CR
3124cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3129/* end confdefs.h. */
f73dda09
JA
3130
3131int
3132main ()
3133{
3134
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139ac_clean_files_save=$ac_clean_files
dd4f3dd8 3140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
f73dda09
JA
3141# Try to create an executable without -o first, disregard a.out.
3142# It will help us diagnose broken compilers, and finding out an intuition
3143# of exeext.
abe2eb5b
CR
3144{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3145$as_echo_n "checking for C compiler default output file name... " >&6; }
dd4f3dd8
CR
3146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3147
3148# The possible output files:
3149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150
b709b946
CR
3151ac_rmfiles=
3152for ac_file in $ac_files
3153do
3154 case $ac_file in
dd4f3dd8 3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b709b946
CR
3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3157 esac
3158done
3159rm -f $ac_rmfiles
3160
abe2eb5b 3161if { (ac_try="$ac_link_default"
b709b946
CR
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
abe2eb5b
CR
3166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167$as_echo "$ac_try_echo") >&5
b709b946 3168 (eval "$ac_link_default") 2>&5
f73dda09 3169 ac_status=$?
abe2eb5b
CR
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; then
b709b946
CR
3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3174# in a Makefile. We should not override ac_cv_exeext if it was cached,
3175# so that the user can short-circuit this test for compilers unknown to
3176# Autoconf.
dd4f3dd8 3177for ac_file in $ac_files ''
5e4a95c7
CR
3178do
3179 test -f "$ac_file" || continue
f73dda09 3180 case $ac_file in
dd4f3dd8 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5e4a95c7
CR
3182 ;;
3183 [ab].out )
3184 # We found the default executable, but exeext='' is most
3185 # certainly right.
3186 break;;
3187 *.* )
abe2eb5b 3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
b709b946
CR
3189 then :; else
3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191 fi
3192 # We set ac_cv_exeext here because the later test for it is not
3193 # safe: cross compilers may not add the suffix if given an `-o'
3194 # argument, so we may need to know it at that point already.
3195 # Even if this section looks crufty: it has the advantage of
3196 # actually working.
5e4a95c7
CR
3197 break;;
3198 * )
3199 break;;
f73dda09
JA
3200 esac
3201done
b709b946
CR
3202test "$ac_cv_exeext" = no && ac_cv_exeext=
3203
ccc6cda3 3204else
dd4f3dd8
CR
3205 ac_file=''
3206fi
abe2eb5b
CR
3207
3208{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3209$as_echo "$ac_file" >&6; }
3210if test -z "$ac_file"; then
3211 $as_echo "$as_me: failed program was:" >&5
5e4a95c7
CR
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
abe2eb5b 3214{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
af98a2a6 3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
abe2eb5b
CR
3216{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3217See \`config.log' for more details." >&5
3218$as_echo "$as_me: error: C compiler cannot create executables
3219See \`config.log' for more details." >&2;}
3220 { (exit 77); exit 77; }; }; }
f73dda09 3221fi
abe2eb5b 3222
f73dda09 3223ac_exeext=$ac_cv_exeext
f73dda09 3224
abe2eb5b
CR
3225# Check that the compiler produces executables we can run. If not, either
3226# the compiler is broken, or we cross compile.
3227{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3228$as_echo_n "checking whether the C compiler works... " >&6; }
3229# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3230# If not cross compiling, check that we can run a simple program.
3231if test "$cross_compiling" != yes; then
3232 if { ac_try='./$ac_file'
3233 { (case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236esac
3237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3238$as_echo "$ac_try_echo") >&5
3239 (eval "$ac_try") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 cross_compiling=no
3244 else
3245 if test "$cross_compiling" = maybe; then
3246 cross_compiling=yes
3247 else
3248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3251If you meant to cross compile, use \`--host'.
3252See \`config.log' for more details." >&5
3253$as_echo "$as_me: error: cannot run C compiled programs.
3254If you meant to cross compile, use \`--host'.
3255See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }; }
3257 fi
3258 fi
3259fi
3260{ $as_echo "$as_me:$LINENO: result: yes" >&5
3261$as_echo "yes" >&6; }
3262
dd4f3dd8 3263rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
f73dda09 3264ac_clean_files=$ac_clean_files_save
abe2eb5b
CR
3265# Check that the compiler produces executables we can run. If not, either
3266# the compiler is broken, or we cross compile.
3267{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3268$as_echo_n "checking whether we are cross compiling... " >&6; }
3269{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3270$as_echo "$cross_compiling" >&6; }
3271
3272{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
dd4f3dd8 3273$as_echo_n "checking for suffix of executables... " >&6; }
abe2eb5b 3274if { (ac_try="$ac_link"
b709b946
CR
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
abe2eb5b
CR
3279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3280$as_echo "$ac_try_echo") >&5
b709b946 3281 (eval "$ac_link") 2>&5
f73dda09 3282 ac_status=$?
abe2eb5b
CR
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; then
f73dda09
JA
3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3287# work properly (i.e., refer to `conftest.exe'), while it won't with
3288# `rm'.
5e4a95c7
CR
3289for ac_file in conftest.exe conftest conftest.*; do
3290 test -f "$ac_file" || continue
f73dda09 3291 case $ac_file in
dd4f3dd8 3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
f73dda09 3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5e4a95c7 3294 break;;
f73dda09
JA
3295 * ) break;;
3296 esac
3297done
ccc6cda3 3298else
abe2eb5b 3299 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
af98a2a6 3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
abe2eb5b
CR
3301{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3302See \`config.log' for more details." >&5
3303$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3304See \`config.log' for more details." >&2;}
3305 { (exit 1); exit 1; }; }; }
f73dda09 3306fi
abe2eb5b
CR
3307
3308rm -f conftest$ac_cv_exeext
3309{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
dd4f3dd8 3310$as_echo "$ac_cv_exeext" >&6; }
f73dda09
JA
3311
3312rm -f conftest.$ac_ext
3313EXEEXT=$ac_cv_exeext
3314ac_exeext=$EXEEXT
abe2eb5b 3315{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
7610e0c5 3316$as_echo_n "checking for suffix of object files... " >&6; }
abe2eb5b 3317if test "${ac_cv_objext+set}" = set; then
7610e0c5
CR
3318 $as_echo_n "(cached) " >&6
3319else
abe2eb5b
CR
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
71412226 3325/* end confdefs.h. */
7610e0c5 3326
71412226
CR
3327int
3328main ()
3329{
71412226
CR
3330
3331 ;
3332 return 0;
3333}
3334_ACEOF
7610e0c5 3335rm -f conftest.o conftest.obj
abe2eb5b 3336if { (ac_try="$ac_compile"
71412226
CR
3337case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
abe2eb5b
CR
3341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3342$as_echo "$ac_try_echo") >&5
7610e0c5 3343 (eval "$ac_compile") 2>&5
71412226 3344 ac_status=$?
abe2eb5b
CR
3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; then
7610e0c5
CR
3347 for ac_file in conftest.o conftest.obj conftest.*; do
3348 test -f "$ac_file" || continue;
3349 case $ac_file in
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352 break;;
3353 esac
3354done
3355else
3356 $as_echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
abe2eb5b 3359{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
71412226 3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
abe2eb5b
CR
3361{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3362See \`config.log' for more details." >&5
3363$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3364See \`config.log' for more details." >&2;}
3365 { (exit 1); exit 1; }; }; }
71412226 3366fi
abe2eb5b 3367
f73dda09 3368rm -f conftest.$ac_cv_objext conftest.$ac_ext
ccc6cda3 3369fi
abe2eb5b 3370{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
dd4f3dd8 3371$as_echo "$ac_cv_objext" >&6; }
f73dda09
JA
3372OBJEXT=$ac_cv_objext
3373ac_objext=$OBJEXT
abe2eb5b 3374{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
dd4f3dd8 3375$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
abe2eb5b 3376if test "${ac_cv_c_compiler_gnu+set}" = set; then
dd4f3dd8 3377 $as_echo_n "(cached) " >&6
f73dda09 3378else
abe2eb5b
CR
3379 cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3384/* end confdefs.h. */
f73dda09
JA
3385
3386int
3387main ()
3388{
3389#ifndef __GNUC__
3390 choke me
3391#endif
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
abe2eb5b
CR
3397rm -f conftest.$ac_objext
3398if { (ac_try="$ac_compile"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404$as_echo "$ac_try_echo") >&5
3405 (eval "$ac_compile") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } && {
3412 test -z "$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 } && test -s conftest.$ac_objext; then
f73dda09
JA
3415 ac_compiler_gnu=yes
3416else
abe2eb5b
CR
3417 $as_echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 ac_compiler_gnu=no
f73dda09 3421fi
abe2eb5b 3422
b709b946 3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3424ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425
3426fi
abe2eb5b 3427{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
dd4f3dd8
CR
3428$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3429if test $ac_compiler_gnu = yes; then
3430 GCC=yes
3431else
3432 GCC=
3433fi
f73dda09
JA
3434ac_test_CFLAGS=${CFLAGS+set}
3435ac_save_CFLAGS=$CFLAGS
abe2eb5b 3436{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
dd4f3dd8 3437$as_echo_n "checking whether $CC accepts -g... " >&6; }
abe2eb5b 3438if test "${ac_cv_prog_cc_g+set}" = set; then
dd4f3dd8 3439 $as_echo_n "(cached) " >&6
f73dda09 3440else
b709b946
CR
3441 ac_save_c_werror_flag=$ac_c_werror_flag
3442 ac_c_werror_flag=yes
3443 ac_cv_prog_cc_g=no
3444 CFLAGS="-g"
abe2eb5b
CR
3445 cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h. */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3450/* end confdefs.h. */
f73dda09
JA
3451
3452int
3453main ()
3454{
ccc6cda3 3455
f73dda09
JA
3456 ;
3457 return 0;
3458}
3459_ACEOF
abe2eb5b
CR
3460rm -f conftest.$ac_objext
3461if { (ac_try="$ac_compile"
3462case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3467$as_echo "$ac_try_echo") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
f73dda09
JA
3478 ac_cv_prog_cc_g=yes
3479else
abe2eb5b
CR
3480 $as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 CFLAGS=""
3484 cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h. */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h. */
c184f645 3490
c184f645
CR
3491int
3492main ()
3493{
b709b946 3494
c184f645
CR
3495 ;
3496 return 0;
3497}
3498_ACEOF
abe2eb5b
CR
3499rm -f conftest.$ac_objext
3500if { (ac_try="$ac_compile"
3501case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504esac
3505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3506$as_echo "$ac_try_echo") >&5
3507 (eval "$ac_compile") 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } && {
3514 test -z "$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3516 } && test -s conftest.$ac_objext; then
3517 :
2dead0c4 3518else
abe2eb5b
CR
3519 $as_echo "$as_me: failed program was:" >&5
3520sed 's/^/| /' conftest.$ac_ext >&5
3521
3522 ac_c_werror_flag=$ac_save_c_werror_flag
b709b946 3523 CFLAGS="-g"
abe2eb5b
CR
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3529/* end confdefs.h. */
b709b946 3530
f73dda09
JA
3531int
3532main ()
3533{
b709b946 3534
f73dda09
JA
3535 ;
3536 return 0;
3537}
3538_ACEOF
abe2eb5b
CR
3539rm -f conftest.$ac_objext
3540if { (ac_try="$ac_compile"
3541case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546$as_echo "$ac_try_echo") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
b709b946 3557 ac_cv_prog_cc_g=yes
abe2eb5b
CR
3558else
3559 $as_echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
d3ad40de 3563fi
abe2eb5b 3564
b709b946
CR
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
abe2eb5b 3567
b709b946
CR
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569fi
abe2eb5b 3570
b709b946
CR
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_c_werror_flag=$ac_save_c_werror_flag
3573fi
abe2eb5b 3574{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
dd4f3dd8 3575$as_echo "$ac_cv_prog_cc_g" >&6; }
b709b946
CR
3576if test "$ac_test_CFLAGS" = set; then
3577 CFLAGS=$ac_save_CFLAGS
3578elif test $ac_cv_prog_cc_g = yes; then
3579 if test "$GCC" = yes; then
3580 CFLAGS="-g -O2"
3581 else
3582 CFLAGS="-g"
3583 fi
3584else
3585 if test "$GCC" = yes; then
3586 CFLAGS="-O2"
3587 else
3588 CFLAGS=
3589 fi
3590fi
abe2eb5b 3591{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
dd4f3dd8 3592$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
abe2eb5b 3593if test "${ac_cv_prog_cc_c89+set}" = set; then
dd4f3dd8 3594 $as_echo_n "(cached) " >&6
b709b946
CR
3595else
3596 ac_cv_prog_cc_c89=no
3597ac_save_CC=$CC
abe2eb5b
CR
3598cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h. */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3603/* end confdefs.h. */
b709b946
CR
3604#include <stdarg.h>
3605#include <stdio.h>
3606#include <sys/types.h>
3607#include <sys/stat.h>
3608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609struct buf { int x; };
3610FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611static char *e (p, i)
3612 char **p;
3613 int i;
3614{
3615 return p[i];
3616}
3617static char *f (char * (*g) (char **, int), char **p, ...)
3618{
3619 char *s;
3620 va_list v;
3621 va_start (v,p);
3622 s = g (p, va_arg (v,int));
3623 va_end (v);
3624 return s;
3625}
3626
3627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
3630 as 'x'. The following induces an error, until -std is added to get
3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
3633 that's true only with -std. */
3634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635
3636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3638#define FOO(x) 'x'
3639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640
3641int test (int i, double x);
3642struct s1 {int (*f) (int a);};
3643struct s2 {int (*f) (double a);};
3644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645int argc;
3646char **argv;
f73dda09
JA
3647int
3648main ()
3649{
b709b946 3650return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
f73dda09
JA
3651 ;
3652 return 0;
3653}
3654_ACEOF
b709b946
CR
3655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657do
3658 CC="$ac_save_CC $ac_arg"
abe2eb5b
CR
3659 rm -f conftest.$ac_objext
3660if { (ac_try="$ac_compile"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666$as_echo "$ac_try_echo") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
b709b946 3677 ac_cv_prog_cc_c89=$ac_arg
abe2eb5b
CR
3678else
3679 $as_echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
f73dda09 3683fi
abe2eb5b 3684
b709b946
CR
3685rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
cce855bc 3687done
b709b946
CR
3688rm -f conftest.$ac_ext
3689CC=$ac_save_CC
3690
f73dda09 3691fi
b709b946
CR
3692# AC_CACHE_VAL
3693case "x$ac_cv_prog_cc_c89" in
3694 x)
abe2eb5b 3695 { $as_echo "$as_me:$LINENO: result: none needed" >&5
dd4f3dd8 3696$as_echo "none needed" >&6; } ;;
b709b946 3697 xno)
abe2eb5b 3698 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
dd4f3dd8 3699$as_echo "unsupported" >&6; } ;;
b709b946
CR
3700 *)
3701 CC="$CC $ac_cv_prog_cc_c89"
abe2eb5b 3702 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
dd4f3dd8 3703$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b709b946 3704esac
cce855bc 3705
5e4a95c7 3706
f73dda09
JA
3707ac_ext=c
3708ac_cpp='$CPP $CPPFLAGS'
3709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_c_compiler_gnu
bb70624e 3712
a82a04b3
CR
3713
3714
3715
abe2eb5b 3716 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
dd4f3dd8 3717$as_echo_n "checking for strerror in -lcposix... " >&6; }
abe2eb5b 3718if test "${ac_cv_lib_cposix_strerror+set}" = set; then
dd4f3dd8 3719 $as_echo_n "(cached) " >&6
5e13499c
CR
3720else
3721 ac_check_lib_save_LIBS=$LIBS
3722LIBS="-lcposix $LIBS"
abe2eb5b
CR
3723cat >conftest.$ac_ext <<_ACEOF
3724/* confdefs.h. */
3725_ACEOF
3726cat confdefs.h >>conftest.$ac_ext
3727cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3728/* end confdefs.h. */
ccc6cda3 3729
b709b946
CR
3730/* Override any GCC internal prototype to avoid an error.
3731 Use char because int might match the return type of a GCC
3732 builtin and then its argument prototype would still apply. */
5e13499c
CR
3733#ifdef __cplusplus
3734extern "C"
3735#endif
5e13499c
CR
3736char strerror ();
3737int
3738main ()
3739{
b709b946 3740return strerror ();
5e13499c
CR
3741 ;
3742 return 0;
3743}
3744_ACEOF
abe2eb5b
CR
3745rm -f conftest.$ac_objext conftest$ac_exeext
3746if { (ac_try="$ac_link"
3747case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750esac
3751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3752$as_echo "$ac_try_echo") >&5
3753 (eval "$ac_link") 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } && {
3760 test -z "$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3762 } && test -s conftest$ac_exeext && {
3763 test "$cross_compiling" = yes ||
3764 $as_test_x conftest$ac_exeext
3765 }; then
5e13499c 3766 ac_cv_lib_cposix_strerror=yes
ccc6cda3 3767else
abe2eb5b
CR
3768 $as_echo "$as_me: failed program was:" >&5
3769sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 ac_cv_lib_cposix_strerror=no
5e13499c 3772fi
abe2eb5b
CR
3773
3774rm -rf conftest.dSYM
3775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3776 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
3777LIBS=$ac_check_lib_save_LIBS
3778fi
abe2eb5b 3779{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
dd4f3dd8 3780$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
abe2eb5b 3781if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
5e13499c 3782 LIBS="$LIBS -lcposix"
ccc6cda3
JA
3783fi
3784
a82a04b3
CR
3785
3786
f73dda09
JA
3787ac_ext=c
3788ac_cpp='$CPP $CPPFLAGS'
3789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791ac_compiler_gnu=$ac_cv_c_compiler_gnu
abe2eb5b 3792{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
dd4f3dd8 3793$as_echo_n "checking how to run the C preprocessor... " >&6; }
ccc6cda3
JA
3794# On Suns, sometimes $CPP names a directory.
3795if test -n "$CPP" && test -d "$CPP"; then
3796 CPP=
3797fi
3798if test -z "$CPP"; then
abe2eb5b 3799 if test "${ac_cv_prog_CPP+set}" = set; then
dd4f3dd8 3800 $as_echo_n "(cached) " >&6
f73dda09
JA
3801else
3802 # Double quotes because CPP needs to be expanded
3803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3804 do
3805 ac_preproc_ok=false
3806for ac_c_preproc_warn_flag in '' yes
3807do
3808 # Use a header file that comes with gcc, so configuring glibc
3809 # with a fresh cross-compiler works.
5e4a95c7
CR
3810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3811 # <limits.h> exists even on freestanding compilers.
ccc6cda3 3812 # On the NeXT, cc -E runs the code through the compiler's parser,
f73dda09 3813 # not just through cpp. "Syntax error" is here to catch this case.
abe2eb5b
CR
3814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7
CR
3819/* end confdefs.h. */
3820#ifdef __STDC__
3821# include <limits.h>
3822#else
3823# include <assert.h>
3824#endif
3825 Syntax error
f73dda09 3826_ACEOF
abe2eb5b
CR
3827if { (ac_try="$ac_cpp conftest.$ac_ext"
3828case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831esac
3832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3833$as_echo "$ac_try_echo") >&5
3834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null && {
3841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 }; then
3844 :
2dead0c4 3845else
abe2eb5b
CR
3846 $as_echo "$as_me: failed program was:" >&5
3847sed 's/^/| /' conftest.$ac_ext >&5
3848
f73dda09
JA
3849 # Broken: fails on valid input.
3850continue
3851fi
abe2eb5b
CR
3852
3853rm -f conftest.err conftest.$ac_ext
f73dda09 3854
b709b946 3855 # OK, works on sane cases. Now check whether nonexistent headers
f73dda09 3856 # can be detected and how.
abe2eb5b
CR
3857 cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3862/* end confdefs.h. */
f73dda09
JA
3863#include <ac_nonexistent.h>
3864_ACEOF
abe2eb5b
CR
3865if { (ac_try="$ac_cpp conftest.$ac_ext"
3866case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869esac
3870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3871$as_echo "$ac_try_echo") >&5
3872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev/null && {
3879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 }; then
f73dda09
JA
3882 # Broken: success on invalid input.
3883continue
bb70624e 3884else
abe2eb5b
CR
3885 $as_echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
f73dda09
JA
3888 # Passes both tests.
3889ac_preproc_ok=:
3890break
3891fi
abe2eb5b
CR
3892
3893rm -f conftest.err conftest.$ac_ext
f73dda09
JA
3894
3895done
3896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
abe2eb5b
CR
3897rm -f conftest.err conftest.$ac_ext
3898if $ac_preproc_ok; then
f73dda09
JA
3899 break
3900fi
3901
3902 done
3903 ac_cv_prog_CPP=$CPP
3904
3905fi
3906 CPP=$ac_cv_prog_CPP
3907else
3908 ac_cv_prog_CPP=$CPP
3909fi
abe2eb5b 3910{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
dd4f3dd8 3911$as_echo "$CPP" >&6; }
f73dda09
JA
3912ac_preproc_ok=false
3913for ac_c_preproc_warn_flag in '' yes
3914do
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
5e4a95c7
CR
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
f73dda09
JA
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error" is here to catch this case.
abe2eb5b
CR
3921 cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7
CR
3926/* end confdefs.h. */
3927#ifdef __STDC__
3928# include <limits.h>
3929#else
3930# include <assert.h>
3931#endif
3932 Syntax error
f73dda09 3933_ACEOF
abe2eb5b
CR
3934if { (ac_try="$ac_cpp conftest.$ac_ext"
3935case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940$as_echo "$ac_try_echo") >&5
3941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null && {
3948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 }; then
3951 :
2dead0c4 3952else
abe2eb5b
CR
3953 $as_echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
f73dda09
JA
3956 # Broken: fails on valid input.
3957continue
3958fi
abe2eb5b
CR
3959
3960rm -f conftest.err conftest.$ac_ext
f73dda09 3961
b709b946 3962 # OK, works on sane cases. Now check whether nonexistent headers
f73dda09 3963 # can be detected and how.
abe2eb5b
CR
3964 cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h. */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 3969/* end confdefs.h. */
f73dda09
JA
3970#include <ac_nonexistent.h>
3971_ACEOF
abe2eb5b
CR
3972if { (ac_try="$ac_cpp conftest.$ac_ext"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3978$as_echo "$ac_try_echo") >&5
3979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null && {
3986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987 test ! -s conftest.err
3988 }; then
f73dda09
JA
3989 # Broken: success on invalid input.
3990continue
3991else
abe2eb5b
CR
3992 $as_echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
3994
f73dda09
JA
3995 # Passes both tests.
3996ac_preproc_ok=:
3997break
ccc6cda3 3998fi
abe2eb5b
CR
3999
4000rm -f conftest.err conftest.$ac_ext
f73dda09
JA
4001
4002done
4003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
abe2eb5b
CR
4004rm -f conftest.err conftest.$ac_ext
4005if $ac_preproc_ok; then
4006 :
ccc6cda3 4007else
abe2eb5b 4008 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
af98a2a6 4009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
abe2eb5b
CR
4010{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4011See \`config.log' for more details." >&5
4012$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4013See \`config.log' for more details." >&2;}
4014 { (exit 1); exit 1; }; }; }
ccc6cda3 4015fi
ccc6cda3 4016
f73dda09
JA
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
a82a04b3 4023
abe2eb5b 4024{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
dd4f3dd8 4025$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
abe2eb5b 4026if test "${ac_cv_path_GREP+set}" = set; then
dd4f3dd8 4027 $as_echo_n "(cached) " >&6
b709b946 4028else
dd4f3dd8 4029 if test -z "$GREP"; then
b709b946 4030 ac_path_GREP_found=false
dd4f3dd8
CR
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b709b946
CR
4033for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
abe2eb5b 4037 for ac_prog in grep ggrep; do
dd4f3dd8
CR
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041# Check for GNU ac_path_GREP and select it if it is found.
b709b946
CR
4042 # Check for GNU $ac_path_GREP
4043case `"$ac_path_GREP" --version 2>&1` in
4044*GNU*)
4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046*)
4047 ac_count=0
dd4f3dd8 4048 $as_echo_n 0123456789 >"conftest.in"
b709b946
CR
4049 while :
4050 do
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
dd4f3dd8 4054 $as_echo 'GREP' >> "conftest.nl"
b709b946
CR
4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
abe2eb5b 4057 ac_count=`expr $ac_count + 1`
b709b946
CR
4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_GREP="$ac_path_GREP"
4061 ac_path_GREP_max=$ac_count
4062 fi
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4065 done
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067esac
4068
dd4f3dd8
CR
4069 $ac_path_GREP_found && break 3
4070 done
b709b946 4071 done
abe2eb5b 4072done
b709b946 4073IFS=$as_save_IFS
dd4f3dd8 4074 if test -z "$ac_cv_path_GREP"; then
abe2eb5b
CR
4075 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4076$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4077 { (exit 1); exit 1; }; }
dd4f3dd8 4078 fi
b709b946
CR
4079else
4080 ac_cv_path_GREP=$GREP
4081fi
4082
b709b946 4083fi
abe2eb5b 4084{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
dd4f3dd8 4085$as_echo "$ac_cv_path_GREP" >&6; }
b709b946
CR
4086 GREP="$ac_cv_path_GREP"
4087
4088
abe2eb5b 4089{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
dd4f3dd8 4090$as_echo_n "checking for egrep... " >&6; }
abe2eb5b 4091if test "${ac_cv_path_EGREP+set}" = set; then
dd4f3dd8 4092 $as_echo_n "(cached) " >&6
b709b946
CR
4093else
4094 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4095 then ac_cv_path_EGREP="$GREP -E"
4096 else
dd4f3dd8 4097 if test -z "$EGREP"; then
b709b946 4098 ac_path_EGREP_found=false
dd4f3dd8
CR
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b709b946
CR
4101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
abe2eb5b 4105 for ac_prog in egrep; do
dd4f3dd8
CR
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4109# Check for GNU ac_path_EGREP and select it if it is found.
b709b946
CR
4110 # Check for GNU $ac_path_EGREP
4111case `"$ac_path_EGREP" --version 2>&1` in
4112*GNU*)
4113 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4114*)
4115 ac_count=0
dd4f3dd8 4116 $as_echo_n 0123456789 >"conftest.in"
b709b946
CR
4117 while :
4118 do
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
dd4f3dd8 4122 $as_echo 'EGREP' >> "conftest.nl"
b709b946
CR
4123 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
abe2eb5b 4125 ac_count=`expr $ac_count + 1`
b709b946
CR
4126 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_EGREP="$ac_path_EGREP"
4129 ac_path_EGREP_max=$ac_count
5e4a95c7 4130 fi
b709b946
CR
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4133 done
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135esac
4136
dd4f3dd8
CR
4137 $ac_path_EGREP_found && break 3
4138 done
b709b946 4139 done
abe2eb5b 4140done
b709b946 4141IFS=$as_save_IFS
dd4f3dd8 4142 if test -z "$ac_cv_path_EGREP"; then
abe2eb5b
CR
4143 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4144$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4145 { (exit 1); exit 1; }; }
dd4f3dd8 4146 fi
b709b946
CR
4147else
4148 ac_cv_path_EGREP=$EGREP
4149fi
4150
b709b946 4151 fi
d3ad40de 4152fi
abe2eb5b 4153{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
dd4f3dd8 4154$as_echo "$ac_cv_path_EGREP" >&6; }
b709b946 4155 EGREP="$ac_cv_path_EGREP"
d3ad40de 4156
9d6e5e30 4157
abe2eb5b 4158{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
dd4f3dd8 4159$as_echo_n "checking for ANSI C header files... " >&6; }
abe2eb5b 4160if test "${ac_cv_header_stdc+set}" = set; then
dd4f3dd8 4161 $as_echo_n "(cached) " >&6
ccc6cda3 4162else
abe2eb5b
CR
4163 cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4168/* end confdefs.h. */
a82a04b3
CR
4169#include <stdlib.h>
4170#include <stdarg.h>
4171#include <string.h>
4172#include <float.h>
4173
5e4a95c7
CR
4174int
4175main ()
4176{
4177
4178 ;
4179 return 0;
4180}
a82a04b3 4181_ACEOF
abe2eb5b
CR
4182rm -f conftest.$ac_objext
4183if { (ac_try="$ac_compile"
4184case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4189$as_echo "$ac_try_echo") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && {
4197 test -z "$ac_c_werror_flag" ||
4198 test ! -s conftest.err
4199 } && test -s conftest.$ac_objext; then
a82a04b3 4200 ac_cv_header_stdc=yes
f73dda09 4201else
abe2eb5b
CR
4202 $as_echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 ac_cv_header_stdc=no
a82a04b3 4206fi
abe2eb5b 4207
b709b946 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a82a04b3
CR
4209
4210if test $ac_cv_header_stdc = yes; then
4211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
abe2eb5b
CR
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4217/* end confdefs.h. */
a82a04b3
CR
4218#include <string.h>
4219
4220_ACEOF
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b
CR
4222 $EGREP "memchr" >/dev/null 2>&1; then
4223 :
a82a04b3
CR
4224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
abe2eb5b
CR
4233 cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h. */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4238/* end confdefs.h. */
a82a04b3
CR
4239#include <stdlib.h>
4240
4241_ACEOF
4242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b
CR
4243 $EGREP "free" >/dev/null 2>&1; then
4244 :
a82a04b3
CR
4245else
4246 ac_cv_header_stdc=no
4247fi
4248rm -f conftest*
4249
4250fi
4251
4252if test $ac_cv_header_stdc = yes; then
4253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
abe2eb5b 4254 if test "$cross_compiling" = yes; then
a82a04b3
CR
4255 :
4256else
abe2eb5b
CR
4257 cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4262/* end confdefs.h. */
a82a04b3 4263#include <ctype.h>
b709b946 4264#include <stdlib.h>
a82a04b3
CR
4265#if ((' ' & 0x0FF) == 0x020)
4266# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4267# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4268#else
5e4a95c7
CR
4269# define ISLOWER(c) \
4270 (('a' <= (c) && (c) <= 'i') \
4271 || ('j' <= (c) && (c) <= 'r') \
4272 || ('s' <= (c) && (c) <= 'z'))
a82a04b3
CR
4273# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4274#endif
4275
4276#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4277int
4278main ()
4279{
4280 int i;
4281 for (i = 0; i < 256; i++)
4282 if (XOR (islower (i), ISLOWER (i))
5e4a95c7 4283 || toupper (i) != TOUPPER (i))
b709b946
CR
4284 return 2;
4285 return 0;
a82a04b3
CR
4286}
4287_ACEOF
abe2eb5b
CR
4288rm -f conftest$ac_exeext
4289if { (ac_try="$ac_link"
4290case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293esac
4294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295$as_echo "$ac_try_echo") >&5
4296 (eval "$ac_link") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4305$as_echo "$ac_try_echo") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 :
2dead0c4 4311else
abe2eb5b
CR
4312 $as_echo "$as_me: program exited with status $ac_status" >&5
4313$as_echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316( exit $ac_status )
4317ac_cv_header_stdc=no
a82a04b3 4318fi
abe2eb5b
CR
4319rm -rf conftest.dSYM
4320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a82a04b3 4321fi
b709b946 4322
abe2eb5b 4323
a82a04b3
CR
4324fi
4325fi
abe2eb5b 4326{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
dd4f3dd8 4327$as_echo "$ac_cv_header_stdc" >&6; }
a82a04b3
CR
4328if test $ac_cv_header_stdc = yes; then
4329
abe2eb5b
CR
4330cat >>confdefs.h <<\_ACEOF
4331#define STDC_HEADERS 1
2dead0c4
CR
4332_ACEOF
4333
4334fi
4335
abe2eb5b 4336# On IRIX 5.3, sys/types and inttypes.h are conflicting.
71412226 4337
c920c360 4338
c920c360 4339
c920c360
CR
4340
4341
2dead0c4 4342
2dead0c4 4343
2dead0c4
CR
4344
4345
abe2eb5b
CR
4346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4347 inttypes.h stdint.h unistd.h
4348do
4349as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4351$as_echo_n "checking for $ac_header... " >&6; }
4352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
dd4f3dd8 4353 $as_echo_n "(cached) " >&6
a82a04b3 4354else
abe2eb5b
CR
4355 cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4360/* end confdefs.h. */
abe2eb5b 4361$ac_includes_default
a82a04b3 4362
abe2eb5b 4363#include <$ac_header>
a82a04b3 4364_ACEOF
abe2eb5b
CR
4365rm -f conftest.$ac_objext
4366if { (ac_try="$ac_compile"
4367case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4372$as_echo "$ac_try_echo") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && {
4380 test -z "$ac_c_werror_flag" ||
4381 test ! -s conftest.err
4382 } && test -s conftest.$ac_objext; then
4383 eval "$as_ac_Header=yes"
7610e0c5 4384else
abe2eb5b
CR
4385 $as_echo "$as_me: failed program was:" >&5
4386sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 eval "$as_ac_Header=no"
7610e0c5 4389fi
abe2eb5b 4390
7610e0c5
CR
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392fi
abe2eb5b
CR
4393ac_res=`eval 'as_val=${'$as_ac_Header'}
4394 $as_echo "$as_val"'`
4395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4396$as_echo "$ac_res" >&6; }
4397as_val=`eval 'as_val=${'$as_ac_Header'}
4398 $as_echo "$as_val"'`
4399 if test "x$as_val" = x""yes; then
4400 cat >>confdefs.h <<_ACEOF
4401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4402_ACEOF
7610e0c5 4403
abe2eb5b 4404fi
2dead0c4 4405
abe2eb5b 4406done
7610e0c5 4407
7610e0c5 4408
c920c360 4409
abe2eb5b
CR
4410 if test "${ac_cv_header_minix_config_h+set}" = set; then
4411 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4412$as_echo_n "checking for minix/config.h... " >&6; }
4413if test "${ac_cv_header_minix_config_h+set}" = set; then
4414 $as_echo_n "(cached) " >&6
4415fi
4416{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4417$as_echo "$ac_cv_header_minix_config_h" >&6; }
4418else
4419 # Is the header compilable?
4420{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4421$as_echo_n "checking minix/config.h usability... " >&6; }
4422cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4428$ac_includes_default
4429#include <minix/config.h>
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (ac_try="$ac_compile"
4433case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436esac
4437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4438$as_echo "$ac_try_echo") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } && {
4446 test -z "$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4448 } && test -s conftest.$ac_objext; then
4449 ac_header_compiler=yes
4450else
4451 $as_echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 4453
abe2eb5b 4454 ac_header_compiler=no
7610e0c5
CR
4455fi
4456
abe2eb5b
CR
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459$as_echo "$ac_header_compiler" >&6; }
7610e0c5 4460
abe2eb5b
CR
4461# Is the header present?
4462{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4463$as_echo_n "checking minix/config.h presence... " >&6; }
4464cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
e3db237e 4469/* end confdefs.h. */
abe2eb5b
CR
4470#include <minix/config.h>
4471_ACEOF
4472if { (ac_try="$ac_cpp conftest.$ac_ext"
4473case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476esac
4477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478$as_echo "$ac_try_echo") >&5
4479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev/null && {
4486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 }; then
4489 ac_header_preproc=yes
4490else
4491 $as_echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 ac_header_preproc=no
4495fi
4496
4497rm -f conftest.err conftest.$ac_ext
4498{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4499$as_echo "$ac_header_preproc" >&6; }
4500
4501# So? What about this header?
4502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4503 yes:no: )
4504 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4505$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4506 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4507$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4508 ac_header_preproc=yes
4509 ;;
4510 no:yes:* )
4511 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4512$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4513 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4514$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4515 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4516$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4517 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4518$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4519 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4520$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4521 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4522$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4523 ( cat <<\_ASBOX
4524## ------------------------------- ##
4525## Report this to bug-bash@gnu.org ##
4526## ------------------------------- ##
4527_ASBOX
4528 ) | sed "s/^/$as_me: WARNING: /" >&2
4529 ;;
4530esac
4531{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4532$as_echo_n "checking for minix/config.h... " >&6; }
4533if test "${ac_cv_header_minix_config_h+set}" = set; then
4534 $as_echo_n "(cached) " >&6
4535else
4536 ac_cv_header_minix_config_h=$ac_header_preproc
4537fi
4538{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4539$as_echo "$ac_cv_header_minix_config_h" >&6; }
4540
4541fi
4542if test "x$ac_cv_header_minix_config_h" = x""yes; then
4543 MINIX=yes
4544else
4545 MINIX=
4546fi
4547
4548
4549 if test "$MINIX" = yes; then
4550
4551cat >>confdefs.h <<\_ACEOF
4552#define _POSIX_SOURCE 1
4553_ACEOF
4554
4555
4556cat >>confdefs.h <<\_ACEOF
4557#define _POSIX_1_SOURCE 2
4558_ACEOF
4559
4560
4561cat >>confdefs.h <<\_ACEOF
4562#define _MINIX 1
4563_ACEOF
4564
4565 fi
4566
4567
4568
4569 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4570$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4571if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4573else
4574 cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h. */
4580
4581# define __EXTENSIONS__ 1
4582 $ac_includes_default
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext
4592if { (ac_try="$ac_compile"
4593case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
4597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598$as_echo "$ac_try_echo") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } && {
4606 test -z "$ac_c_werror_flag" ||
4607 test ! -s conftest.err
4608 } && test -s conftest.$ac_objext; then
4609 ac_cv_safe_to_define___extensions__=yes
4610else
4611 $as_echo "$as_me: failed program was:" >&5
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 ac_cv_safe_to_define___extensions__=no
4615fi
4616
4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618fi
4619{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4620$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4621 test $ac_cv_safe_to_define___extensions__ = yes &&
4622 cat >>confdefs.h <<\_ACEOF
4623#define __EXTENSIONS__ 1
4624_ACEOF
4625
4626 cat >>confdefs.h <<\_ACEOF
4627#define _ALL_SOURCE 1
4628_ACEOF
4629
4630 cat >>confdefs.h <<\_ACEOF
4631#define _GNU_SOURCE 1
4632_ACEOF
4633
4634 cat >>confdefs.h <<\_ACEOF
4635#define _POSIX_PTHREAD_SEMANTICS 1
4636_ACEOF
4637
4638 cat >>confdefs.h <<\_ACEOF
4639#define _TANDEM_SOURCE 1
4640_ACEOF
4641
4642
4643
4644# Check whether --enable-largefile was given.
4645if test "${enable_largefile+set}" = set; then
4646 enableval=$enable_largefile;
4647fi
4648
4649if test "$enable_largefile" != no; then
4650
4651 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4652$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4653if test "${ac_cv_sys_largefile_CC+set}" = set; then
4654 $as_echo_n "(cached) " >&6
4655else
4656 ac_cv_sys_largefile_CC=no
4657 if test "$GCC" != yes; then
4658 ac_save_CC=$CC
4659 while :; do
4660 # IRIX 6.2 and later do not support large files by default,
4661 # so use the C compiler's -n32 option if that helps.
4662 cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
4668#include <sys/types.h>
4669 /* Check that off_t can represent 2**63 - 1 correctly.
e3db237e
CR
4670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4671 since some C++ compilers masquerading as C compilers
4672 incorrectly reject 9223372036854775807. */
f73dda09
JA
4673#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4675 && LARGE_OFF_T % 2147483647 == 1)
4676 ? 1 : -1];
4677int
4678main ()
4679{
bb70624e 4680
f73dda09
JA
4681 ;
4682 return 0;
4683}
4684_ACEOF
abe2eb5b
CR
4685 rm -f conftest.$ac_objext
4686if { (ac_try="$ac_compile"
4687case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690esac
4691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692$as_echo "$ac_try_echo") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
f73dda09 4703 break
abe2eb5b
CR
4704else
4705 $as_echo "$as_me: failed program was:" >&5
4706sed 's/^/| /' conftest.$ac_ext >&5
4707
4708
f73dda09 4709fi
abe2eb5b 4710
b709b946
CR
4711rm -f core conftest.err conftest.$ac_objext
4712 CC="$CC -n32"
abe2eb5b
CR
4713 rm -f conftest.$ac_objext
4714if { (ac_try="$ac_compile"
4715case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718esac
4719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4720$as_echo "$ac_try_echo") >&5
4721 (eval "$ac_compile") 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && {
4728 test -z "$ac_c_werror_flag" ||
4729 test ! -s conftest.err
4730 } && test -s conftest.$ac_objext; then
f73dda09 4731 ac_cv_sys_largefile_CC=' -n32'; break
abe2eb5b
CR
4732else
4733 $as_echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736
f73dda09 4737fi
abe2eb5b 4738
b709b946 4739rm -f core conftest.err conftest.$ac_objext
5e4a95c7 4740 break
f73dda09
JA
4741 done
4742 CC=$ac_save_CC
4743 rm -f conftest.$ac_ext
4744 fi
bb70624e 4745fi
abe2eb5b 4746{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
dd4f3dd8 4747$as_echo "$ac_cv_sys_largefile_CC" >&6; }
f73dda09
JA
4748 if test "$ac_cv_sys_largefile_CC" != no; then
4749 CC=$CC$ac_cv_sys_largefile_CC
4750 fi
bb70624e 4751
abe2eb5b 4752 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
dd4f3dd8 4753$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
abe2eb5b 4754if test "${ac_cv_sys_file_offset_bits+set}" = set; then
dd4f3dd8 4755 $as_echo_n "(cached) " >&6
bb70624e 4756else
f73dda09 4757 while :; do
abe2eb5b
CR
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4763/* end confdefs.h. */
f73dda09
JA
4764#include <sys/types.h>
4765 /* Check that off_t can represent 2**63 - 1 correctly.
4766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4767 since some C++ compilers masquerading as C compilers
4768 incorrectly reject 9223372036854775807. */
4769#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4771 && LARGE_OFF_T % 2147483647 == 1)
4772 ? 1 : -1];
4773int
4774main ()
4775{
bb70624e 4776
f73dda09
JA
4777 ;
4778 return 0;
4779}
4780_ACEOF
abe2eb5b
CR
4781rm -f conftest.$ac_objext
4782if { (ac_try="$ac_compile"
4783case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786esac
4787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4788$as_echo "$ac_try_echo") >&5
4789 (eval "$ac_compile") 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
dd4f3dd8 4799 ac_cv_sys_file_offset_bits=no; break
abe2eb5b
CR
4800else
4801 $as_echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804
2e4498b3 4805fi
abe2eb5b 4806
2e4498b3 4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
abe2eb5b
CR
4808 cat >conftest.$ac_ext <<_ACEOF
4809/* confdefs.h. */
4810_ACEOF
4811cat confdefs.h >>conftest.$ac_ext
4812cat >>conftest.$ac_ext <<_ACEOF
2e4498b3 4813/* end confdefs.h. */
f73dda09
JA
4814#define _FILE_OFFSET_BITS 64
4815#include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4823 ? 1 : -1];
4824int
4825main ()
4826{
bb70624e 4827
f73dda09
JA
4828 ;
4829 return 0;
4830}
4831_ACEOF
abe2eb5b
CR
4832rm -f conftest.$ac_objext
4833if { (ac_try="$ac_compile"
4834case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837esac
4838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839$as_echo "$ac_try_echo") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
f73dda09 4850 ac_cv_sys_file_offset_bits=64; break
abe2eb5b
CR
4851else
4852 $as_echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855
f73dda09 4856fi
abe2eb5b 4857
b709b946 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dd4f3dd8 4859 ac_cv_sys_file_offset_bits=unknown
f73dda09
JA
4860 break
4861done
4862fi
abe2eb5b 4863{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
dd4f3dd8
CR
4864$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4865case $ac_cv_sys_file_offset_bits in #(
4866 no | unknown) ;;
4867 *)
a82a04b3 4868cat >>confdefs.h <<_ACEOF
f73dda09 4869#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a82a04b3 4870_ACEOF
dd4f3dd8
CR
4871;;
4872esac
4873rm -rf conftest*
4874 if test $ac_cv_sys_file_offset_bits = unknown; then
abe2eb5b 4875 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
dd4f3dd8 4876$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
abe2eb5b 4877if test "${ac_cv_sys_large_files+set}" = set; then
dd4f3dd8 4878 $as_echo_n "(cached) " >&6
bb70624e 4879else
f73dda09 4880 while :; do
abe2eb5b
CR
4881 cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4886/* end confdefs.h. */
f73dda09
JA
4887#include <sys/types.h>
4888 /* Check that off_t can represent 2**63 - 1 correctly.
4889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4890 since some C++ compilers masquerading as C compilers
4891 incorrectly reject 9223372036854775807. */
4892#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4894 && LARGE_OFF_T % 2147483647 == 1)
4895 ? 1 : -1];
4896int
4897main ()
4898{
4899
4900 ;
4901 return 0;
4902}
4903_ACEOF
abe2eb5b
CR
4904rm -f conftest.$ac_objext
4905if { (ac_try="$ac_compile"
4906case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909esac
4910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911$as_echo "$ac_try_echo") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
dd4f3dd8 4922 ac_cv_sys_large_files=no; break
abe2eb5b
CR
4923else
4924 $as_echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927
bb70624e 4928fi
abe2eb5b 4929
b709b946 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
abe2eb5b
CR
4931 cat >conftest.$ac_ext <<_ACEOF
4932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 4936/* end confdefs.h. */
f73dda09
JA
4937#define _LARGE_FILES 1
4938#include <sys/types.h>
4939 /* Check that off_t can represent 2**63 - 1 correctly.
4940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4941 since some C++ compilers masquerading as C compilers
4942 incorrectly reject 9223372036854775807. */
4943#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4945 && LARGE_OFF_T % 2147483647 == 1)
4946 ? 1 : -1];
4947int
4948main ()
4949{
bb70624e 4950
f73dda09
JA
4951 ;
4952 return 0;
4953}
4954_ACEOF
abe2eb5b
CR
4955rm -f conftest.$ac_objext
4956if { (ac_try="$ac_compile"
4957case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960esac
4961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4962$as_echo "$ac_try_echo") >&5
4963 (eval "$ac_compile") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest.$ac_objext; then
f73dda09 4973 ac_cv_sys_large_files=1; break
abe2eb5b
CR
4974else
4975 $as_echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978
f73dda09 4979fi
abe2eb5b 4980
b709b946 4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dd4f3dd8 4982 ac_cv_sys_large_files=unknown
f73dda09
JA
4983 break
4984done
4985fi
abe2eb5b 4986{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
dd4f3dd8
CR
4987$as_echo "$ac_cv_sys_large_files" >&6; }
4988case $ac_cv_sys_large_files in #(
4989 no | unknown) ;;
4990 *)
a82a04b3 4991cat >>confdefs.h <<_ACEOF
f73dda09 4992#define _LARGE_FILES $ac_cv_sys_large_files
a82a04b3 4993_ACEOF
dd4f3dd8
CR
4994;;
4995esac
4996rm -rf conftest*
4997 fi
f73dda09 4998fi
cce855bc 4999
a82a04b3
CR
5000
5001
dc8fbaf9 5002SIGNAMES_O=
b72432fd
JA
5003SIGNAMES_H=lsignames.h
5004
a82a04b3
CR
5005
5006
d3ad40de 5007CROSS_COMPILE=
cce855bc
JA
5008if test "x$cross_compiling" = "xyes"; then
5009 case "${host}" in
28ef6c31 5010 *-cygwin*)
cce855bc 5011 cross_cache=${srcdir}/cross-build/cygwin32.cache
cce855bc 5012 ;;
9607141c
CR
5013 *-mingw*)
5014 cross_cache=${srcdir}/cross-build/cygwin32.cache
5015 ;;
b72432fd
JA
5016 i[3456]86-*-beos*)
5017 cross_cache=${srcdir}/cross-build/x86-beos.cache
b72432fd
JA
5018 ;;
5019 *) echo "configure: cross-compiling for $host is not supported" >&2
cce855bc
JA
5020 ;;
5021 esac
b72432fd
JA
5022 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5023 echo "loading cross-build cache file ${cross_cache}"
5024 . ${cross_cache}
5025 fi
5026 unset cross_cache
dc8fbaf9 5027 SIGNAMES_O='signames.o'
9607141c
CR
5028 CROSS_COMPILE='-DCROSS_COMPILING'
5029
cce855bc
JA
5030fi
5031
a82a04b3 5032
dc8fbaf9 5033
a82a04b3 5034
7610e0c5
CR
5035if test -z "$CFLAGS"; then
5036 AUTO_CFLAGS="-g ${GCC+-O2}"
5037 AUTO_LDFLAGS="-g ${GCC+-O2}"
5038else
5039 AUTO_CFLAGS= AUTO_LDFLAGS=
5040fi
ccc6cda3 5041
7610e0c5
CR
5042CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
5043# LDFLAGS=${LDFLAGS="$AUTO_LDFLAGS"} # XXX
ccc6cda3 5044
cce855bc
JA
5045if test "$opt_profiling" = "yes"; then
5046 PROFILE_FLAGS=-pg
b72432fd
JA
5047 case "$host_os" in
5048 solaris2*) ;;
5049 *) opt_static_link=yes ;;
5050 esac
7117c2d2 5051 DEBUG= MALLOC_DEBUG=
cce855bc
JA
5052fi
5053
f4f5e1c2
CR
5054prefer_shared=yes
5055prefer_static=no
5056
cce855bc 5057if test "$opt_static_link" = yes; then
f4f5e1c2
CR
5058 prefer_static=yes
5059 prefer_shared=no
f73dda09
JA
5060 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5061 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
b72432fd 5062 STATIC_LD="-static"
f73dda09
JA
5063 case "$host_os" in
5064 solaris2*) ;;
5065 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5066 esac
cce855bc
JA
5067 fi
5068fi
5069
7610e0c5
CR
5070# set the appropriate make variables for building the "build tools"
5071
da5b17cd 5072if test "X$cross_compiling" = "Xno"; then
7610e0c5
CR
5073 CC_FOR_BUILD=${CC_FOR_BUILD-'$(CC)'}
5074 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"} # XXX - should it be '$(CPPFLAGS)'
da5b17cd 5075 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
7610e0c5
CR
5076 # CFLAGS set above to default value if not passed in environment
5077 CFLAGS_FOR_BUILD=${CFLAGS-'$(CFLAGS)'}
5078 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-'$(LIBS)'}
da5b17cd 5079else
7610e0c5 5080 CC_FOR_BUILD=${CC_FOR_BUILD-"gcc"}
da5b17cd
CR
5081 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5082 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
7610e0c5
CR
5083 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD="-g"}
5084 LIBS_FOR_BUILD=${LIBS_FOR_BUILD-""}
da5b17cd
CR
5085fi
5086
7610e0c5 5087
7117c2d2 5088
a82a04b3
CR
5089
5090
5091
5092
5093
5094
5095
5096
5097
f73dda09 5098if test $ac_cv_c_compiler_gnu = yes; then
abe2eb5b 5099 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
dd4f3dd8 5100$as_echo_n "checking whether $CC needs -traditional... " >&6; }
abe2eb5b 5101if test "${ac_cv_prog_gcc_traditional+set}" = set; then
dd4f3dd8 5102 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5103else
5104 ac_pattern="Autoconf.*'x'"
abe2eb5b
CR
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 5110/* end confdefs.h. */
ccc6cda3
JA
5111#include <sgtty.h>
5112Autoconf TIOCGETP
f73dda09 5113_ACEOF
ccc6cda3 5114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 5115 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
5116 ac_cv_prog_gcc_traditional=yes
5117else
ccc6cda3
JA
5118 ac_cv_prog_gcc_traditional=no
5119fi
5120rm -f conftest*
5121
a82a04b3 5122
ccc6cda3 5123 if test $ac_cv_prog_gcc_traditional = no; then
abe2eb5b
CR
5124 cat >conftest.$ac_ext <<_ACEOF
5125/* confdefs.h. */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 5129/* end confdefs.h. */
ccc6cda3
JA
5130#include <termio.h>
5131Autoconf TCGETA
f73dda09 5132_ACEOF
ccc6cda3 5133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 5134 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
5135 ac_cv_prog_gcc_traditional=yes
5136fi
5137rm -f conftest*
5138
5139 fi
5140fi
abe2eb5b 5141{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
dd4f3dd8 5142$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
ccc6cda3
JA
5143 if test $ac_cv_prog_gcc_traditional = yes; then
5144 CC="$CC -traditional"
5145 fi
5146fi
5147
a82a04b3
CR
5148
5149
f73dda09 5150if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
b72432fd 5151then
f73dda09
JA
5152 # If the user specified --with-installed-readline=PREFIX and PREFIX
5153 # is not `yes', set ac_cv_rl_prefix to PREFIX
5154 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
b72432fd 5155
a82a04b3 5156
bb70624e
JA
5157if test "X$bash_cv_termcap_lib" = "X"; then
5158_bash_needmsg=yes
5159else
abe2eb5b 5160{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
dd4f3dd8 5161$as_echo_n "checking which library has the termcap functions... " >&6; }
bb70624e
JA
5162_bash_needmsg=
5163fi
abe2eb5b 5164if test "${bash_cv_termcap_lib+set}" = set; then
dd4f3dd8 5165 $as_echo_n "(cached) " >&6
bb70624e 5166else
abe2eb5b
CR
5167 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5168$as_echo_n "checking for tgetent... " >&6; }
5169if test "${ac_cv_func_tgetent+set}" = set; then
dd4f3dd8 5170 $as_echo_n "(cached) " >&6
bb70624e 5171else
abe2eb5b
CR
5172 cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h. */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 5177/* end confdefs.h. */
abe2eb5b
CR
5178/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5180#define tgetent innocuous_tgetent
5181
5182/* System header to define __stub macros and hopefully few prototypes,
5183 which can conflict with char tgetent (); below.
5184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5185 <limits.h> exists even on freestanding compilers. */
5186
5187#ifdef __STDC__
5188# include <limits.h>
5189#else
5190# include <assert.h>
5191#endif
5192
5193#undef tgetent
f73dda09 5194
b709b946
CR
5195/* Override any GCC internal prototype to avoid an error.
5196 Use char because int might match the return type of a GCC
5197 builtin and then its argument prototype would still apply. */
f73dda09
JA
5198#ifdef __cplusplus
5199extern "C"
5200#endif
f73dda09 5201char tgetent ();
abe2eb5b
CR
5202/* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205#if defined __stub_tgetent || defined __stub___tgetent
5206choke me
5207#endif
5208
f73dda09
JA
5209int
5210main ()
5211{
b709b946 5212return tgetent ();
f73dda09
JA
5213 ;
5214 return 0;
5215}
5216_ACEOF
abe2eb5b
CR
5217rm -f conftest.$ac_objext conftest$ac_exeext
5218if { (ac_try="$ac_link"
5219case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222esac
5223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5224$as_echo "$ac_try_echo") >&5
5225 (eval "$ac_link") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && {
5232 test -z "$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 } && test -s conftest$ac_exeext && {
5235 test "$cross_compiling" = yes ||
5236 $as_test_x conftest$ac_exeext
5237 }; then
5238 ac_cv_func_tgetent=yes
e3db237e 5239else
abe2eb5b
CR
5240 $as_echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 ac_cv_func_tgetent=no
e3db237e 5244fi
abe2eb5b
CR
5245
5246rm -rf conftest.dSYM
5247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5248 conftest$ac_exeext conftest.$ac_ext
e3db237e 5249fi
abe2eb5b
CR
5250{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5251$as_echo "$ac_cv_func_tgetent" >&6; }
5252if test "x$ac_cv_func_tgetent" = x""yes; then
5253 bash_cv_termcap_lib=libc
e3db237e 5254else
abe2eb5b
CR
5255 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5256$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
5257if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
e3db237e
CR
5258 $as_echo_n "(cached) " >&6
5259else
5260 ac_check_lib_save_LIBS=$LIBS
abe2eb5b
CR
5261LIBS="-ltermcap $LIBS"
5262cat >conftest.$ac_ext <<_ACEOF
5263/* confdefs.h. */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
e3db237e
CR
5267/* end confdefs.h. */
5268
5269/* Override any GCC internal prototype to avoid an error.
5270 Use char because int might match the return type of a GCC
5271 builtin and then its argument prototype would still apply. */
5272#ifdef __cplusplus
5273extern "C"
5274#endif
5275char tgetent ();
5276int
5277main ()
5278{
5279return tgetent ();
5280 ;
5281 return 0;
5282}
5283_ACEOF
abe2eb5b
CR
5284rm -f conftest.$ac_objext conftest$ac_exeext
5285if { (ac_try="$ac_link"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5291$as_echo "$ac_try_echo") >&5
5292 (eval "$ac_link") 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } && {
5299 test -z "$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5301 } && test -s conftest$ac_exeext && {
5302 test "$cross_compiling" = yes ||
5303 $as_test_x conftest$ac_exeext
5304 }; then
5305 ac_cv_lib_termcap_tgetent=yes
5306else
5307 $as_echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310 ac_cv_lib_termcap_tgetent=no
5311fi
5312
5313rm -rf conftest.dSYM
5314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5315 conftest$ac_exeext conftest.$ac_ext
5316LIBS=$ac_check_lib_save_LIBS
5317fi
5318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5319$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5320if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
5321 bash_cv_termcap_lib=libtermcap
5322else
5323 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5324$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
5325if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5326 $as_echo_n "(cached) " >&6
5327else
5328 ac_check_lib_save_LIBS=$LIBS
5329LIBS="-ltinfo $LIBS"
5330cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336
5337/* Override any GCC internal prototype to avoid an error.
5338 Use char because int might match the return type of a GCC
5339 builtin and then its argument prototype would still apply. */
5340#ifdef __cplusplus
5341extern "C"
5342#endif
5343char tgetent ();
5344int
5345main ()
5346{
5347return tgetent ();
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352rm -f conftest.$ac_objext conftest$ac_exeext
5353if { (ac_try="$ac_link"
5354case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5359$as_echo "$ac_try_echo") >&5
5360 (eval "$ac_link") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext && {
5370 test "$cross_compiling" = yes ||
5371 $as_test_x conftest$ac_exeext
5372 }; then
5373 ac_cv_lib_tinfo_tgetent=yes
5374else
5375 $as_echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_cv_lib_tinfo_tgetent=no
5379fi
5380
5381rm -rf conftest.dSYM
5382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5383 conftest$ac_exeext conftest.$ac_ext
5384LIBS=$ac_check_lib_save_LIBS
5385fi
5386{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5387$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5388if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
5389 bash_cv_termcap_lib=libtinfo
bb70624e 5390else
abe2eb5b 5391 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
dd4f3dd8 5392$as_echo_n "checking for tgetent in -lcurses... " >&6; }
abe2eb5b 5393if test "${ac_cv_lib_curses_tgetent+set}" = set; then
dd4f3dd8 5394 $as_echo_n "(cached) " >&6
f73dda09
JA
5395else
5396 ac_check_lib_save_LIBS=$LIBS
5397LIBS="-lcurses $LIBS"
abe2eb5b
CR
5398cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h. */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 5403/* end confdefs.h. */
b72432fd 5404
b709b946
CR
5405/* Override any GCC internal prototype to avoid an error.
5406 Use char because int might match the return type of a GCC
5407 builtin and then its argument prototype would still apply. */
f73dda09
JA
5408#ifdef __cplusplus
5409extern "C"
5410#endif
f73dda09
JA
5411char tgetent ();
5412int
5413main ()
5414{
b709b946 5415return tgetent ();
f73dda09
JA
5416 ;
5417 return 0;
5418}
5419_ACEOF
abe2eb5b
CR
5420rm -f conftest.$ac_objext conftest$ac_exeext
5421if { (ac_try="$ac_link"
5422case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425esac
5426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427$as_echo "$ac_try_echo") >&5
5428 (eval "$ac_link") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_c_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest$ac_exeext && {
5438 test "$cross_compiling" = yes ||
5439 $as_test_x conftest$ac_exeext
5440 }; then
f73dda09
JA
5441 ac_cv_lib_curses_tgetent=yes
5442else
abe2eb5b
CR
5443 $as_echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_cv_lib_curses_tgetent=no
f73dda09 5447fi
abe2eb5b
CR
5448
5449rm -rf conftest.dSYM
5450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5451 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5452LIBS=$ac_check_lib_save_LIBS
5453fi
abe2eb5b 5454{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
dd4f3dd8 5455$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
abe2eb5b 5456if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
bb70624e
JA
5457 bash_cv_termcap_lib=libcurses
5458else
abe2eb5b 5459 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
dd4f3dd8 5460$as_echo_n "checking for tgetent in -lncurses... " >&6; }
abe2eb5b 5461if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
dd4f3dd8 5462 $as_echo_n "(cached) " >&6
bb70624e 5463else
f73dda09 5464 ac_check_lib_save_LIBS=$LIBS
bb70624e 5465LIBS="-lncurses $LIBS"
abe2eb5b
CR
5466cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h. */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 5471/* end confdefs.h. */
f73dda09 5472
b709b946
CR
5473/* Override any GCC internal prototype to avoid an error.
5474 Use char because int might match the return type of a GCC
5475 builtin and then its argument prototype would still apply. */
f73dda09
JA
5476#ifdef __cplusplus
5477extern "C"
5478#endif
f73dda09
JA
5479char tgetent ();
5480int
5481main ()
5482{
b709b946 5483return tgetent ();
f73dda09
JA
5484 ;
5485 return 0;
5486}
5487_ACEOF
abe2eb5b
CR
5488rm -f conftest.$ac_objext conftest$ac_exeext
5489if { (ac_try="$ac_link"
5490case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5495$as_echo "$ac_try_echo") >&5
5496 (eval "$ac_link") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest$ac_exeext && {
5506 test "$cross_compiling" = yes ||
5507 $as_test_x conftest$ac_exeext
5508 }; then
f73dda09
JA
5509 ac_cv_lib_ncurses_tgetent=yes
5510else
abe2eb5b
CR
5511 $as_echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514 ac_cv_lib_ncurses_tgetent=no
f73dda09 5515fi
abe2eb5b
CR
5516
5517rm -rf conftest.dSYM
5518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5519 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5520LIBS=$ac_check_lib_save_LIBS
5521fi
abe2eb5b 5522{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
dd4f3dd8 5523$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
abe2eb5b 5524if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
f73dda09 5525 bash_cv_termcap_lib=libncurses
bb70624e 5526else
f73dda09 5527 bash_cv_termcap_lib=gnutermcap
bb70624e 5528fi
bb70624e 5529
bb70624e
JA
5530fi
5531
5532fi
5533
5534fi
5535
5536fi
5537
d3a24ed2
CR
5538fi
5539
bb70624e 5540if test "X$_bash_needmsg" = "Xyes"; then
abe2eb5b 5541{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
dd4f3dd8 5542$as_echo_n "checking which library has the termcap functions... " >&6; }
bb70624e 5543fi
abe2eb5b 5544{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
dd4f3dd8 5545$as_echo "using $bash_cv_termcap_lib" >&6; }
bb70624e
JA
5546if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5547LDFLAGS="$LDFLAGS -L./lib/termcap"
5548TERMCAP_LIB="./lib/termcap/libtermcap.a"
5549TERMCAP_DEP="./lib/termcap/libtermcap.a"
5550elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5551TERMCAP_LIB=-ltermcap
5552TERMCAP_DEP=
f73dda09
JA
5553elif test $bash_cv_termcap_lib = libtinfo; then
5554TERMCAP_LIB=-ltinfo
5555TERMCAP_DEP=
bb70624e
JA
5556elif test $bash_cv_termcap_lib = libncurses; then
5557TERMCAP_LIB=-lncurses
5558TERMCAP_DEP=
d3a24ed2
CR
5559elif test $bash_cv_termcap_lib = libc; then
5560TERMCAP_LIB=
5561TERMCAP_DEP=
bb70624e
JA
5562else
5563TERMCAP_LIB=-lcurses
5564TERMCAP_DEP=
5565fi
5566
a82a04b3
CR
5567
5568
5569
abe2eb5b 5570{ $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
dd4f3dd8 5571$as_echo_n "checking version of installed readline library... " >&6; }
f73dda09
JA
5572
5573# What a pain in the ass this is.
5574
5575# save cpp and ld options
5576_save_CFLAGS="$CFLAGS"
5577_save_LDFLAGS="$LDFLAGS"
5578_save_LIBS="$LIBS"
5579
5580# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5581# allows the caller to do something like $_rl_prefix=$withval if the user
5582# specifies --with-installed-readline=PREFIX as an argument to configure
5583
5584if test -z "$ac_cv_rl_prefix"; then
5585test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5586fi
5587
5588eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5589eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5590
5591LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5592CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5593LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5594
abe2eb5b 5595if test "${ac_cv_rl_version+set}" = set; then
dd4f3dd8 5596 $as_echo_n "(cached) " >&6
d3a24ed2 5597else
abe2eb5b 5598 if test "$cross_compiling" = yes; then
f73dda09
JA
5599 ac_cv_rl_version='4.2'
5600else
abe2eb5b
CR
5601 cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 5606/* end confdefs.h. */
f73dda09
JA
5607
5608#include <stdio.h>
5609#include <readline/readline.h>
5610
798a67db
CR
5611extern int rl_gnu_readline_p;
5612
f73dda09
JA
5613main()
5614{
5615 FILE *fp;
5616 fp = fopen("conftest.rlv", "w");
798a67db
CR
5617 if (fp == 0)
5618 exit(1);
5619 if (rl_gnu_readline_p != 1)
5620 fprintf(fp, "0.0\n");
5621 else
5622 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
f73dda09
JA
5623 fclose(fp);
5624 exit(0);
5625}
5626
5627_ACEOF
abe2eb5b
CR
5628rm -f conftest$ac_exeext
5629if { (ac_try="$ac_link"
5630case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633esac
5634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5635$as_echo "$ac_try_echo") >&5
5636 (eval "$ac_link") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640 { (case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5645$as_echo "$ac_try_echo") >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
f73dda09
JA
5650 ac_cv_rl_version=`cat conftest.rlv`
5651else
abe2eb5b
CR
5652 $as_echo "$as_me: program exited with status $ac_status" >&5
5653$as_echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656( exit $ac_status )
5657ac_cv_rl_version='0.0'
f73dda09 5658fi
abe2eb5b
CR
5659rm -rf conftest.dSYM
5660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 5661fi
b709b946 5662
abe2eb5b 5663
d3a24ed2 5664fi
f73dda09 5665
a82a04b3 5666
f73dda09
JA
5667CFLAGS="$_save_CFLAGS"
5668LDFLAGS="$_save_LDFLAGS"
5669LIBS="$_save_LIBS"
5670
5671RL_MAJOR=0
5672RL_MINOR=0
5673
5674# (
5675case "$ac_cv_rl_version" in
56762*|3*|4*|5*|6*|7*|8*|9*)
5677 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
7117c2d2 5678 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
f73dda09
JA
5679 ;;
5680esac
5681
5682# (((
5683case $RL_MAJOR in
5684[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5685[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5686*) _RL_MAJOR=00 ;;
5687esac
5688
5689# (((
5690case $RL_MINOR in
5691[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5692[0-9]) _RL_MINOR=0$RL_MINOR ;;
5693*) _RL_MINOR=00 ;;
5694esac
5695
5696RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5697
5698# Readline versions greater than 4.2 have these defines in readline.h
5699
5700if test $ac_cv_rl_version = '0.0' ; then
abe2eb5b 5701 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
dd4f3dd8 5702$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
f73dda09
JA
5703elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5704 # set these for use by the caller
5705 RL_PREFIX=$ac_cv_rl_prefix
5706 RL_LIBDIR=$ac_cv_rl_libdir
5707 RL_INCLUDEDIR=$ac_cv_rl_includedir
abe2eb5b 5708 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
dd4f3dd8 5709$as_echo "$ac_cv_rl_version" >&6; }
f73dda09
JA
5710else
5711
a82a04b3
CR
5712
5713cat >>confdefs.h <<_ACEOF
f73dda09 5714#define RL_READLINE_VERSION $RL_VERSION
a82a04b3 5715_ACEOF
f73dda09 5716
a82a04b3
CR
5717
5718cat >>confdefs.h <<_ACEOF
f73dda09 5719#define RL_VERSION_MAJOR $RL_MAJOR
a82a04b3 5720_ACEOF
f73dda09 5721
a82a04b3
CR
5722
5723cat >>confdefs.h <<_ACEOF
f73dda09 5724#define RL_VERSION_MINOR $RL_MINOR
a82a04b3
CR
5725_ACEOF
5726
5727
5728
5729
5730
545f34cf
CR
5731
5732# set these for use by the caller
5733RL_PREFIX=$ac_cv_rl_prefix
5734RL_LIBDIR=$ac_cv_rl_libdir
5735RL_INCLUDEDIR=$ac_cv_rl_includedir
5736
abe2eb5b 5737{ $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
dd4f3dd8 5738$as_echo "$ac_cv_rl_version" >&6; }
bb70624e 5739
f73dda09 5740fi
bb70624e 5741
a82a04b3 5742
f73dda09 5743 case "$ac_cv_rl_version" in
d3a24ed2 5744 5*|6*|7*|8*|9*) ;;
f73dda09 5745 *) opt_with_installed_readline=no
abe2eb5b 5746 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
dd4f3dd8 5747$as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
abe2eb5b 5748 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
dd4f3dd8 5749$as_echo "$as_me: WARNING: using private bash version" >&2;}
bb70624e
JA
5750 ;;
5751 esac
bb70624e
JA
5752fi
5753
fd3925f1 5754TILDE_LIB=-ltilde
bb70624e 5755if test $opt_readline = yes; then
abe2eb5b
CR
5756 cat >>confdefs.h <<\_ACEOF
5757#define READLINE 1
5758_ACEOF
bb70624e 5759
f73dda09 5760 if test "$opt_with_installed_readline" != "no" ; then
d3a24ed2
CR
5761 case "$opt_with_installed_readline" in
5762 yes) RL_INCLUDE= ;;
5763 *) case "$RL_INCLUDEDIR" in
5764 /usr/include) ;;
5765 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5766 esac
5767 ;;
f73dda09 5768 esac
bb70624e 5769 READLINE_DEP=
233564d2 5770 READLINE_LIB=-lreadline
fd3925f1
CR
5771 # section for OS versions that don't allow unresolved symbols
5772 # to be compiled into dynamic libraries.
5773 case "$host_os" in
5774 cygwin*) TILDE_LIB= ;;
5775 esac
bb70624e
JA
5776 else
5777 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5778 READLINE_DEP='$(READLINE_LIBRARY)'
fd3925f1 5779 # section for OS versions that ship an older/broken version of
233564d2
CR
5780 # readline as a standard dynamic library and don't allow a
5781 # static version specified as -llibname to override the
5782 # dynamic version
5783 case "${host_os}" in
82a5df63 5784 darwin[89]*|darwin10*) READLINE_LIB='${READLINE_LIBRARY}' ;;
233564d2
CR
5785 *) READLINE_LIB=-lreadline ;;
5786 esac
bb70624e
JA
5787 fi
5788else
5789 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5790 READLINE_LIB= READLINE_DEP=
5791fi
5792if test $opt_history = yes || test $opt_bang_history = yes; then
5793 if test $opt_history = yes; then
abe2eb5b
CR
5794 cat >>confdefs.h <<\_ACEOF
5795#define HISTORY 1
5796_ACEOF
bb70624e
JA
5797
5798 fi
5799 if test $opt_bang_history = yes; then
abe2eb5b
CR
5800 cat >>confdefs.h <<\_ACEOF
5801#define BANG_HISTORY 1
5802_ACEOF
b72432fd
JA
5803
5804 fi
f73dda09
JA
5805 if test "$opt_with_installed_readline" != "no"; then
5806 HIST_LIBDIR=$RL_LIBDIR
b72432fd 5807 HISTORY_DEP=
233564d2 5808 HISTORY_LIB=-lhistory
d3a24ed2
CR
5809 case "$opt_with_installed_readline" in
5810 yes) RL_INCLUDE= ;;
5811 *) case "$RL_INCLUDEDIR" in
5812 /usr/include) ;;
5813 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5814 esac
5815 ;;
f73dda09 5816 esac
b72432fd
JA
5817 else
5818 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5819 HISTORY_DEP='$(HISTORY_LIBRARY)'
233564d2
CR
5820 # section for OS versions that ship an older version of
5821 # readline as a standard dynamic library and don't allow a
5822 # static version specified as -llibname to override the
5823 # dynamic version
5824 case "${host_os}" in
82a5df63 5825 darwin[89]*|darwin10*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
233564d2
CR
5826 *) HISTORY_LIB=-lhistory ;;
5827 esac
b72432fd
JA
5828 fi
5829else
5830 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5831 HISTORY_LIB= HISTORY_DEP=
5832fi
5833
a82a04b3
CR
5834
5835
5836
5837
5838
5839
5840
5841
5842
fd3925f1 5843
ccc6cda3
JA
5844# Find a good install program. We prefer a C program (faster),
5845# so one script is as good as another. But avoid the broken or
5846# incompatible versions:
5847# SysV /etc/install, /usr/sbin/install
5848# SunOS /usr/etc/install
5849# IRIX /sbin/install
5850# AIX /bin/install
f73dda09 5851# AmigaOS /C/install, which installs bootblocks on floppy discs
bb70624e 5852# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccc6cda3
JA
5853# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5854# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5e4a95c7 5855# OS/2's system install, which has a completely different semantic
ccc6cda3 5856# ./install, which can be erroneously created by make from ./install.sh.
dd4f3dd8 5857# Reject install programs that cannot install multiple files.
abe2eb5b 5858{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
dd4f3dd8 5859$as_echo_n "checking for a BSD-compatible install... " >&6; }
ccc6cda3 5860if test -z "$INSTALL"; then
abe2eb5b 5861if test "${ac_cv_path_install+set}" = set; then
dd4f3dd8 5862 $as_echo_n "(cached) " >&6
ccc6cda3 5863else
a82a04b3
CR
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
abe2eb5b
CR
5869 # Account for people who put trailing slashes in PATH elements.
5870case $as_dir/ in
5871 ./ | .// | /cC/* | \
a82a04b3 5872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
abe2eb5b 5873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a82a04b3
CR
5874 /usr/ucb/* ) ;;
5875 *)
5876 # OSF1 and SCO ODT 3.0 have their own names for install.
5877 # Don't use installbsd from OSF since it installs stuff as root
5878 # by default.
5879 for ac_prog in ginstall scoinst install; do
5880 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 5881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5e4a95c7
CR
5882 if test $ac_prog = install &&
5883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5884 # AIX install. It has an incompatible calling convention.
5885 :
5886 elif test $ac_prog = install &&
5887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5888 # program-specific install script used by HP pwplus--don't use.
5889 :
5890 else
dd4f3dd8
CR
5891 rm -rf conftest.one conftest.two conftest.dir
5892 echo one > conftest.one
5893 echo two > conftest.two
5894 mkdir conftest.dir
5895 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5896 test -s conftest.one && test -s conftest.two &&
5897 test -s conftest.dir/conftest.one &&
5898 test -s conftest.dir/conftest.two
5899 then
5900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5901 break 3
5902 fi
5e4a95c7
CR
5903 fi
5904 fi
ccc6cda3 5905 done
a82a04b3
CR
5906 done
5907 ;;
5908esac
dd4f3dd8 5909
abe2eb5b 5910done
b709b946 5911IFS=$as_save_IFS
a82a04b3 5912
dd4f3dd8 5913rm -rf conftest.one conftest.two conftest.dir
ccc6cda3
JA
5914
5915fi
5916 if test "${ac_cv_path_install+set}" = set; then
f73dda09 5917 INSTALL=$ac_cv_path_install
ccc6cda3 5918 else
b709b946
CR
5919 # As a last resort, use the slow shell script. Don't cache a
5920 # value for INSTALL within a source directory, because that will
ccc6cda3 5921 # break other packages using the cache if that directory is
b709b946 5922 # removed, or if the value is a relative name.
f73dda09 5923 INSTALL=$ac_install_sh
ccc6cda3
JA
5924 fi
5925fi
abe2eb5b 5926{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
dd4f3dd8 5927$as_echo "$INSTALL" >&6; }
ccc6cda3
JA
5928
5929# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5930# It thinks the first close brace ends the variable substitution.
5931test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5932
f73dda09 5933test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
bb70624e 5934
ccc6cda3
JA
5935test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5936
5937# Extract the first word of "ar", so it can be a program name with args.
5938set dummy ar; ac_word=$2
abe2eb5b 5939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 5940$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 5941if test "${ac_cv_prog_AR+set}" = set; then
dd4f3dd8 5942 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5943else
5944 if test -n "$AR"; then
5945 ac_cv_prog_AR="$AR" # Let the user override the test.
5946else
a82a04b3
CR
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
abe2eb5b 5952 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 5954 ac_cv_prog_AR=""
abe2eb5b 5955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
5956 break 2
5957 fi
5958done
abe2eb5b 5959done
b709b946 5960IFS=$as_save_IFS
f73dda09
JA
5961
5962 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
ccc6cda3
JA
5963fi
5964fi
f73dda09 5965AR=$ac_cv_prog_AR
ccc6cda3 5966if test -n "$AR"; then
abe2eb5b 5967 { $as_echo "$as_me:$LINENO: result: $AR" >&5
dd4f3dd8 5968$as_echo "$AR" >&6; }
ccc6cda3 5969else
abe2eb5b 5970 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 5971$as_echo "no" >&6; }
ccc6cda3
JA
5972fi
5973
b709b946 5974
b72432fd 5975test -n "$ARFLAGS" || ARFLAGS="cr"
f73dda09
JA
5976if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978set dummy ${ac_tool_prefix}ranlib; ac_word=$2
abe2eb5b 5979{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 5980$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 5981if test "${ac_cv_prog_RANLIB+set}" = set; then
dd4f3dd8 5982 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5983else
5984 if test -n "$RANLIB"; then
5985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5986else
a82a04b3
CR
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
abe2eb5b 5992 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 5994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
abe2eb5b 5995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
5996 break 2
5997 fi
5998done
abe2eb5b 5999done
b709b946 6000IFS=$as_save_IFS
f73dda09 6001
ccc6cda3
JA
6002fi
6003fi
f73dda09 6004RANLIB=$ac_cv_prog_RANLIB
ccc6cda3 6005if test -n "$RANLIB"; then
abe2eb5b 6006 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
dd4f3dd8 6007$as_echo "$RANLIB" >&6; }
f73dda09 6008else
abe2eb5b 6009 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 6010$as_echo "no" >&6; }
f73dda09
JA
6011fi
6012
b709b946 6013
f73dda09
JA
6014fi
6015if test -z "$ac_cv_prog_RANLIB"; then
6016 ac_ct_RANLIB=$RANLIB
6017 # Extract the first word of "ranlib", so it can be a program name with args.
6018set dummy ranlib; ac_word=$2
abe2eb5b 6019{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 6020$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 6021if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
dd4f3dd8 6022 $as_echo_n "(cached) " >&6
f73dda09
JA
6023else
6024 if test -n "$ac_ct_RANLIB"; then
6025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6026else
a82a04b3
CR
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
abe2eb5b 6032 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 6034 ac_cv_prog_ac_ct_RANLIB="ranlib"
abe2eb5b 6035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
6036 break 2
6037 fi
6038done
abe2eb5b 6039done
b709b946 6040IFS=$as_save_IFS
f73dda09 6041
f73dda09
JA
6042fi
6043fi
6044ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6045if test -n "$ac_ct_RANLIB"; then
abe2eb5b 6046 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
dd4f3dd8 6047$as_echo "$ac_ct_RANLIB" >&6; }
ccc6cda3 6048else
abe2eb5b 6049 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 6050$as_echo "no" >&6; }
f73dda09
JA
6051fi
6052
b709b946
CR
6053 if test "x$ac_ct_RANLIB" = x; then
6054 RANLIB=":"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057yes:)
abe2eb5b 6058{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
af98a2a6 6059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b709b946
CR
6060ac_tool_warned=yes ;;
6061esac
6062 RANLIB=$ac_ct_RANLIB
6063 fi
f73dda09
JA
6064else
6065 RANLIB="$ac_cv_prog_RANLIB"
ccc6cda3
JA
6066fi
6067
6068for ac_prog in 'bison -y' byacc
6069do
f73dda09 6070 # Extract the first word of "$ac_prog", so it can be a program name with args.
ccc6cda3 6071set dummy $ac_prog; ac_word=$2
abe2eb5b 6072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 6073$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 6074if test "${ac_cv_prog_YACC+set}" = set; then
dd4f3dd8 6075 $as_echo_n "(cached) " >&6
ccc6cda3
JA
6076else
6077 if test -n "$YACC"; then
6078 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6079else
a82a04b3
CR
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
abe2eb5b 6085 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 6087 ac_cv_prog_YACC="$ac_prog"
abe2eb5b 6088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
6089 break 2
6090 fi
6091done
abe2eb5b 6092done
b709b946 6093IFS=$as_save_IFS
f73dda09 6094
ccc6cda3
JA
6095fi
6096fi
f73dda09 6097YACC=$ac_cv_prog_YACC
ccc6cda3 6098if test -n "$YACC"; then
abe2eb5b 6099 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
dd4f3dd8 6100$as_echo "$YACC" >&6; }
ccc6cda3 6101else
abe2eb5b 6102 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 6103$as_echo "no" >&6; }
ccc6cda3
JA
6104fi
6105
b709b946 6106
f73dda09 6107 test -n "$YACC" && break
ccc6cda3
JA
6108done
6109test -n "$YACC" || YACC="yacc"
6110
abe2eb5b 6111{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
dd4f3dd8
CR
6112$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6113set x ${MAKE-make}
6114ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
abe2eb5b 6115if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
dd4f3dd8 6116 $as_echo_n "(cached) " >&6
ccc6cda3 6117else
a82a04b3 6118 cat >conftest.make <<\_ACEOF
b709b946 6119SHELL = /bin/sh
ccc6cda3 6120all:
b709b946 6121 @echo '@@@%%%=$(MAKE)=@@@%%%'
a82a04b3 6122_ACEOF
abe2eb5b 6123# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b709b946
CR
6124case `${MAKE-make} -f conftest.make 2>/dev/null` in
6125 *@@@%%%=?*=@@@%%%*)
6126 eval ac_cv_prog_make_${ac_make}_set=yes;;
6127 *)
6128 eval ac_cv_prog_make_${ac_make}_set=no;;
6129esac
f73dda09 6130rm -f conftest.make
ccc6cda3 6131fi
b709b946 6132if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
abe2eb5b 6133 { $as_echo "$as_me:$LINENO: result: yes" >&5
dd4f3dd8 6134$as_echo "yes" >&6; }
ccc6cda3
JA
6135 SET_MAKE=
6136else
abe2eb5b 6137 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 6138$as_echo "no" >&6; }
ccc6cda3
JA
6139 SET_MAKE="MAKE=${MAKE-make}"
6140fi
6141
a82a04b3 6142
b72432fd 6143case "$host_os" in
bb70624e 6144opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
b72432fd
JA
6145*) MAKE_SHELL=/bin/sh ;;
6146esac
6147
a82a04b3 6148
10590446
CR
6149if test x$SIZE = x; then
6150 if test x$ac_tool_prefix = x; then
6151 SIZE=size
6152 else
6153 SIZE=${ac_tool_prefix}size
6154 save_IFS=$IFS ; IFS=:
6155 size_found=0
6156 for dir in $PATH; do
6157 if test -x $dir/$SIZE ; then
6158 size_found=1
6159 break
6160 fi
6161 done
6162 if test $size_found -eq 0; then
233564d2 6163 SIZE=:
10590446
CR
6164 fi
6165 IFS=$save_IFS
6166 fi
6167fi
6168
e624d0f7 6169
abe2eb5b
CR
6170cat >>confdefs.h <<\_ACEOF
6171#define _GNU_SOURCE 1
6172_ACEOF
ccc6cda3 6173
e624d0f7 6174
abe2eb5b 6175{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
dd4f3dd8 6176$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
abe2eb5b 6177if test "${ac_cv_c_const+set}" = set; then
dd4f3dd8 6178 $as_echo_n "(cached) " >&6
ccc6cda3 6179else
abe2eb5b
CR
6180 cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h. */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7
CR
6185/* end confdefs.h. */
6186
6187int
6188main ()
5c26afb8
CR
6189{
6190/* FIXME: Include the comments suggested by Paul. */
6191#ifndef __cplusplus
6192 /* Ultrix mips cc rejects this. */
6193 typedef int charset[2];
dd4f3dd8 6194 const charset cs;
5c26afb8 6195 /* SunOS 4.1.1 cc rejects this. */
dd4f3dd8
CR
6196 char const *const *pcpcc;
6197 char **ppc;
5c26afb8
CR
6198 /* NEC SVR4.0.2 mips cc rejects this. */
6199 struct point {int x, y;};
6200 static struct point const zero = {0,0};
6201 /* AIX XL C 1.02.0.0 rejects this.
6202 It does not let you subtract one const X* pointer from another in
6203 an arm of an if-expression whose if-part is not a constant
6204 expression */
f73dda09 6205 const char *g = "string";
dd4f3dd8 6206 pcpcc = &g + (g ? g-g : 0);
f73dda09 6207 /* HPUX 7.0 cc rejects these. */
dd4f3dd8
CR
6208 ++pcpcc;
6209 ppc = (char**) pcpcc;
6210 pcpcc = (char const *const *) ppc;
f73dda09
JA
6211 { /* SCO 3.2v4 cc rejects this. */
6212 char *t;
6213 char const *s = 0 ? (char *) 0 : (char const *) 0;
6214
6215 *t++ = 0;
b709b946 6216 if (s) return 0;
f73dda09
JA
6217 }
6218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6219 int x[] = {25, 17};
6220 const int *foo = &x[0];
6221 ++foo;
6222 }
6223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6224 typedef const int *iptr;
6225 iptr p = 0;
6226 ++p;
6227 }
6228 { /* AIX XL C 1.02.0.0 rejects this saying
6229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6230 struct s { int j; const int *ap[3]; };
6231 struct s *b; b->j = 5;
6232 }
6233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6234 const int foo = 10;
b709b946 6235 if (!foo) return 0;
f73dda09 6236 }
dd4f3dd8 6237 return !cs[0] && !zero.x;
ccc6cda3
JA
6238#endif
6239
f73dda09
JA
6240 ;
6241 return 0;
6242}
6243_ACEOF
abe2eb5b
CR
6244rm -f conftest.$ac_objext
6245if { (ac_try="$ac_compile"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6251$as_echo "$ac_try_echo") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.$ac_objext; then
f73dda09
JA
6262 ac_cv_c_const=yes
6263else
abe2eb5b
CR
6264 $as_echo "$as_me: failed program was:" >&5
6265sed 's/^/| /' conftest.$ac_ext >&5
6266
6267 ac_cv_c_const=no
f73dda09 6268fi
abe2eb5b 6269
b709b946 6270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 6271fi
abe2eb5b 6272{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
dd4f3dd8 6273$as_echo "$ac_cv_c_const" >&6; }
f73dda09
JA
6274if test $ac_cv_c_const = no; then
6275
abe2eb5b
CR
6276cat >>confdefs.h <<\_ACEOF
6277#define const /**/
6278_ACEOF
ccc6cda3
JA
6279
6280fi
6281
abe2eb5b 6282{ $as_echo "$as_me:$LINENO: checking for inline" >&5
dd4f3dd8 6283$as_echo_n "checking for inline... " >&6; }
abe2eb5b 6284if test "${ac_cv_c_inline+set}" = set; then
dd4f3dd8 6285 $as_echo_n "(cached) " >&6
ccc6cda3 6286else
f73dda09
JA
6287 ac_cv_c_inline=no
6288for ac_kw in inline __inline__ __inline; do
abe2eb5b
CR
6289 cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h. */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6294/* end confdefs.h. */
f73dda09 6295#ifndef __cplusplus
5e4a95c7
CR
6296typedef int foo_t;
6297static $ac_kw foo_t static_foo () {return 0; }
6298$ac_kw foo_t foo () {return 0; }
ccc6cda3
JA
6299#endif
6300
f73dda09 6301_ACEOF
abe2eb5b
CR
6302rm -f conftest.$ac_objext
6303if { (ac_try="$ac_compile"
6304case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6309$as_echo "$ac_try_echo") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
b709b946 6320 ac_cv_c_inline=$ac_kw
abe2eb5b
CR
6321else
6322 $as_echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325
f73dda09 6326fi
abe2eb5b 6327
b709b946
CR
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 test "$ac_cv_c_inline" != no && break
f73dda09 6330done
ccc6cda3
JA
6331
6332fi
abe2eb5b 6333{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
dd4f3dd8 6334$as_echo "$ac_cv_c_inline" >&6; }
5e4a95c7 6335
abe2eb5b 6336
f73dda09
JA
6337case $ac_cv_c_inline in
6338 inline | yes) ;;
5e4a95c7
CR
6339 *)
6340 case $ac_cv_c_inline in
6341 no) ac_val=;;
6342 *) ac_val=$ac_cv_c_inline;;
6343 esac
6344 cat >>confdefs.h <<_ACEOF
6345#ifndef __cplusplus
6346#define inline $ac_val
6347#endif
5c26afb8 6348_ACEOF
5e4a95c7 6349 ;;
f73dda09 6350esac
ccc6cda3 6351
abe2eb5b
CR
6352
6353 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
dd4f3dd8 6354$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
abe2eb5b 6355if test "${ac_cv_c_bigendian+set}" = set; then
dd4f3dd8 6356 $as_echo_n "(cached) " >&6
ccc6cda3 6357else
dd4f3dd8 6358 ac_cv_c_bigendian=unknown
af98a2a6 6359 # See if we're dealing with a universal compiler.
abe2eb5b
CR
6360 cat >conftest.$ac_ext <<_ACEOF
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6365/* end confdefs.h. */
af98a2a6
CR
6366#ifndef __APPLE_CC__
6367 not a universal capable compiler
dd4f3dd8
CR
6368 #endif
6369 typedef int dummy;
ccc6cda3 6370
f73dda09 6371_ACEOF
abe2eb5b
CR
6372rm -f conftest.$ac_objext
6373if { (ac_try="$ac_compile"
6374case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377esac
6378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6379$as_echo "$ac_try_echo") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
af98a2a6
CR
6390
6391 # Check for potential -arch flags. It is not universal unless
abe2eb5b
CR
6392 # there are some -arch flags. Note that *ppc* also matches
6393 # ppc64. This check is also rather less than ideal.
6394 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6395 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6396 esac
6397else
6398 $as_echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401
dd4f3dd8 6402fi
abe2eb5b 6403
dd4f3dd8
CR
6404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 if test $ac_cv_c_bigendian = unknown; then
6406 # See if sys/param.h defines the BYTE_ORDER macro.
abe2eb5b
CR
6407 cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
dd4f3dd8
CR
6412/* end confdefs.h. */
6413#include <sys/types.h>
6414 #include <sys/param.h>
6415
6416int
6417main ()
6418{
6419#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6420 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6421 && LITTLE_ENDIAN)
6422 bogus endian macros
6423 #endif
6424
6425 ;
6426 return 0;
6427}
6428_ACEOF
abe2eb5b
CR
6429rm -f conftest.$ac_objext
6430if { (ac_try="$ac_compile"
6431case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434esac
6435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6436$as_echo "$ac_try_echo") >&5
6437 (eval "$ac_compile") 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && {
6444 test -z "$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6446 } && test -s conftest.$ac_objext; then
f73dda09 6447 # It does; now see whether it defined to BIG_ENDIAN or not.
abe2eb5b
CR
6448 cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6453/* end confdefs.h. */
f73dda09 6454#include <sys/types.h>
dd4f3dd8 6455 #include <sys/param.h>
ccc6cda3 6456
f73dda09
JA
6457int
6458main ()
6459{
6460#if BYTE_ORDER != BIG_ENDIAN
dd4f3dd8
CR
6461 not big endian
6462 #endif
ccc6cda3 6463
f73dda09
JA
6464 ;
6465 return 0;
6466}
6467_ACEOF
abe2eb5b
CR
6468rm -f conftest.$ac_objext
6469if { (ac_try="$ac_compile"
6470case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6475$as_echo "$ac_try_echo") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.$ac_objext; then
f73dda09 6486 ac_cv_c_bigendian=yes
ccc6cda3 6487else
abe2eb5b
CR
6488 $as_echo "$as_me: failed program was:" >&5
6489sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 ac_cv_c_bigendian=no
ccc6cda3 6492fi
abe2eb5b 6493
b709b946 6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
abe2eb5b
CR
6495else
6496 $as_echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499
dd4f3dd8 6500fi
abe2eb5b 6501
dd4f3dd8
CR
6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 if test $ac_cv_c_bigendian = unknown; then
6505 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
abe2eb5b
CR
6506 cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h. */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6511/* end confdefs.h. */
dd4f3dd8
CR
6512#include <limits.h>
6513
a82a04b3
CR
6514int
6515main ()
6516{
dd4f3dd8
CR
6517#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6518 bogus endian macros
6519 #endif
6520
a82a04b3
CR
6521 ;
6522 return 0;
6523}
6524_ACEOF
abe2eb5b
CR
6525rm -f conftest.$ac_objext
6526if { (ac_try="$ac_compile"
6527case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530esac
6531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532$as_echo "$ac_try_echo") >&5
6533 (eval "$ac_compile") 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } && {
6540 test -z "$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 } && test -s conftest.$ac_objext; then
dd4f3dd8 6543 # It does; now see whether it defined to _BIG_ENDIAN or not.
abe2eb5b
CR
6544 cat >conftest.$ac_ext <<_ACEOF
6545/* confdefs.h. */
6546_ACEOF
6547cat confdefs.h >>conftest.$ac_ext
6548cat >>conftest.$ac_ext <<_ACEOF
dd4f3dd8
CR
6549/* end confdefs.h. */
6550#include <limits.h>
6551
6552int
6553main ()
6554{
6555#ifndef _BIG_ENDIAN
6556 not big endian
6557 #endif
6558
6559 ;
6560 return 0;
6561}
6562_ACEOF
abe2eb5b
CR
6563rm -f conftest.$ac_objext
6564if { (ac_try="$ac_compile"
6565case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6568esac
6569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6570$as_echo "$ac_try_echo") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && {
6578 test -z "$ac_c_werror_flag" ||
6579 test ! -s conftest.err
6580 } && test -s conftest.$ac_objext; then
dd4f3dd8
CR
6581 ac_cv_c_bigendian=yes
6582else
abe2eb5b
CR
6583 $as_echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_cv_c_bigendian=no
dd4f3dd8 6587fi
abe2eb5b 6588
dd4f3dd8 6589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
abe2eb5b
CR
6590else
6591 $as_echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594
dd4f3dd8 6595fi
abe2eb5b 6596
dd4f3dd8
CR
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 if test $ac_cv_c_bigendian = unknown; then
6600 # Compile a test program.
abe2eb5b 6601 if test "$cross_compiling" = yes; then
dd4f3dd8 6602 # Try to guess by grepping values from an object file.
abe2eb5b
CR
6603 cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
dd4f3dd8
CR
6608/* end confdefs.h. */
6609short int ascii_mm[] =
6610 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6611 short int ascii_ii[] =
6612 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6613 int use_ascii (int i) {
6614 return ascii_mm[i] + ascii_ii[i];
6615 }
6616 short int ebcdic_ii[] =
6617 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6618 short int ebcdic_mm[] =
6619 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6620 int use_ebcdic (int i) {
6621 return ebcdic_mm[i] + ebcdic_ii[i];
6622 }
6623 extern int foo;
6624
6625int
6626main ()
6627{
6628return use_ascii (foo) == use_ebcdic (foo);
6629 ;
6630 return 0;
6631}
6632_ACEOF
abe2eb5b
CR
6633rm -f conftest.$ac_objext
6634if { (ac_try="$ac_compile"
6635case "(($ac_try" in
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6638esac
6639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6640$as_echo "$ac_try_echo") >&5
6641 (eval "$ac_compile") 2>conftest.er1
6642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } && {
6648 test -z "$ac_c_werror_flag" ||
6649 test ! -s conftest.err
6650 } && test -s conftest.$ac_objext; then
dd4f3dd8
CR
6651 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6652 ac_cv_c_bigendian=yes
6653 fi
6654 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6655 if test "$ac_cv_c_bigendian" = unknown; then
6656 ac_cv_c_bigendian=no
6657 else
6658 # finding both strings is unlikely to happen, but who knows?
6659 ac_cv_c_bigendian=unknown
6660 fi
6661 fi
abe2eb5b
CR
6662else
6663 $as_echo "$as_me: failed program was:" >&5
6664sed 's/^/| /' conftest.$ac_ext >&5
6665
6666
7610e0c5 6667fi
abe2eb5b 6668
7610e0c5
CR
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670else
abe2eb5b
CR
6671 cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h. */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 6676/* end confdefs.h. */
b709b946 6677$ac_includes_default
f73dda09
JA
6678int
6679main ()
ccc6cda3 6680{
b709b946 6681
dd4f3dd8
CR
6682 /* Are we little or big endian? From Harbison&Steele. */
6683 union
6684 {
6685 long int l;
6686 char c[sizeof (long int)];
6687 } u;
6688 u.l = 1;
6689 return u.c[sizeof (long int) - 1] == 1;
b709b946
CR
6690
6691 ;
6692 return 0;
ccc6cda3 6693}
f73dda09 6694_ACEOF
abe2eb5b
CR
6695rm -f conftest$ac_exeext
6696if { (ac_try="$ac_link"
6697case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6700esac
6701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6702$as_echo "$ac_try_echo") >&5
6703 (eval "$ac_link") 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6707 { (case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6712$as_echo "$ac_try_echo") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_cv_c_bigendian=no
6718else
6719 $as_echo "$as_me: program exited with status $ac_status" >&5
6720$as_echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723( exit $ac_status )
6724ac_cv_c_bigendian=yes
6725fi
6726rm -rf conftest.dSYM
6727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6728fi
6729
6730
6731 fi
6732fi
6733{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6734$as_echo "$ac_cv_c_bigendian" >&6; }
6735 case $ac_cv_c_bigendian in #(
dd4f3dd8 6736 yes)
abe2eb5b
CR
6737 cat >>confdefs.h <<\_ACEOF
6738#define WORDS_BIGENDIAN 1
6739_ACEOF
dd4f3dd8
CR
6740;; #(
6741 no)
6742 ;; #(
6743 universal)
af98a2a6 6744
abe2eb5b
CR
6745cat >>confdefs.h <<\_ACEOF
6746#define AC_APPLE_UNIVERSAL_BUILD 1
6747_ACEOF
af98a2a6
CR
6748
6749 ;; #(
dd4f3dd8 6750 *)
abe2eb5b
CR
6751 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6752 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6753$as_echo "$as_me: error: unknown endianness
6754 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6755 { (exit 1); exit 1; }; } ;;
dd4f3dd8 6756 esac
ccc6cda3 6757
abe2eb5b 6758{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
dd4f3dd8 6759$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
abe2eb5b 6760if test "${ac_cv_c_stringize+set}" = set; then
dd4f3dd8 6761 $as_echo_n "(cached) " >&6
ccc6cda3 6762else
abe2eb5b
CR
6763 cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6768/* end confdefs.h. */
f73dda09 6769#define x(y) #y
ccc6cda3 6770
f73dda09
JA
6771char *s = x(teststring);
6772_ACEOF
6773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 6774 $EGREP "#teststring" >/dev/null 2>&1; then
f73dda09 6775 ac_cv_c_stringize=no
ccc6cda3 6776else
f73dda09 6777 ac_cv_c_stringize=yes
ccc6cda3 6778fi
f73dda09 6779rm -f conftest*
ccc6cda3
JA
6780
6781fi
abe2eb5b 6782{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
dd4f3dd8 6783$as_echo "$ac_cv_c_stringize" >&6; }
f73dda09 6784if test $ac_cv_c_stringize = yes; then
ccc6cda3 6785
abe2eb5b
CR
6786cat >>confdefs.h <<\_ACEOF
6787#define HAVE_STRINGIZE 1
6788_ACEOF
ccc6cda3
JA
6789
6790fi
6791
b709b946
CR
6792
6793
abe2eb5b 6794 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
dd4f3dd8 6795$as_echo_n "checking for long double with more range or precision than double... " >&6; }
abe2eb5b 6796if test "${ac_cv_type_long_double_wider+set}" = set; then
dd4f3dd8 6797 $as_echo_n "(cached) " >&6
ccc6cda3 6798else
abe2eb5b
CR
6799 cat >conftest.$ac_ext <<_ACEOF
6800/* confdefs.h. */
6801_ACEOF
6802cat confdefs.h >>conftest.$ac_ext
6803cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6804/* end confdefs.h. */
a82a04b3 6805#include <float.h>
b709b946
CR
6806 long double const a[] =
6807 {
6808 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6809 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6810 };
6811 long double
6812 f (long double x)
6813 {
6814 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6815 + (x ? f (x) : 'c'));
6816 }
6817
f73dda09
JA
6818int
6819main ()
6820{
b709b946
CR
6821static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6822 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6823 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6824 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6825 && (int) LDBL_EPSILON == 0
6826 )];
a82a04b3
CR
6827test_array [0] = 0
6828
6829 ;
6830 return 0;
ccc6cda3 6831}
f73dda09 6832_ACEOF
abe2eb5b
CR
6833rm -f conftest.$ac_objext
6834if { (ac_try="$ac_compile"
6835case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838esac
6839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840$as_echo "$ac_try_echo") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
b709b946 6851 ac_cv_type_long_double_wider=yes
ccc6cda3 6852else
abe2eb5b
CR
6853 $as_echo "$as_me: failed program was:" >&5
6854sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 ac_cv_type_long_double_wider=no
f73dda09 6857fi
abe2eb5b 6858
b709b946 6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e624d0f7 6860fi
abe2eb5b 6861{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
dd4f3dd8 6862$as_echo "$ac_cv_type_long_double_wider" >&6; }
b709b946
CR
6863 if test $ac_cv_type_long_double_wider = yes; then
6864
abe2eb5b
CR
6865cat >>confdefs.h <<\_ACEOF
6866#define HAVE_LONG_DOUBLE_WIDER 1
6867_ACEOF
b709b946
CR
6868
6869 fi
6870
6871 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6872 if test $ac_cv_c_long_double = yes; then
ccc6cda3 6873
abe2eb5b
CR
6874cat >>confdefs.h <<\_ACEOF
6875#define HAVE_LONG_DOUBLE 1
6876_ACEOF
ccc6cda3 6877
b709b946 6878 fi
ccc6cda3 6879
abe2eb5b 6880{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
dd4f3dd8 6881$as_echo_n "checking for function prototypes... " >&6; }
b709b946 6882if test "$ac_cv_prog_cc_c89" != no; then
abe2eb5b 6883 { $as_echo "$as_me:$LINENO: result: yes" >&5
dd4f3dd8 6884$as_echo "yes" >&6; }
ccc6cda3 6885
abe2eb5b
CR
6886cat >>confdefs.h <<\_ACEOF
6887#define PROTOTYPES 1
6888_ACEOF
ccc6cda3 6889
545f34cf 6890
abe2eb5b
CR
6891cat >>confdefs.h <<\_ACEOF
6892#define __PROTOTYPES 1
6893_ACEOF
e624d0f7 6894
e624d0f7 6895else
abe2eb5b 6896 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 6897$as_echo "no" >&6; }
e624d0f7 6898fi
e624d0f7 6899
abe2eb5b
CR
6900
6901{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
dd4f3dd8 6902$as_echo_n "checking whether char is unsigned... " >&6; }
abe2eb5b 6903if test "${ac_cv_c_char_unsigned+set}" = set; then
dd4f3dd8 6904 $as_echo_n "(cached) " >&6
ccc6cda3 6905else
abe2eb5b
CR
6906 cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h. */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 6911/* end confdefs.h. */
545f34cf
CR
6912$ac_includes_default
6913int
6914main ()
6915{
a82a04b3
CR
6916static int test_array [1 - 2 * !(((char) -1) < 0)];
6917test_array [0] = 0
6918
545f34cf
CR
6919 ;
6920 return 0;
6921}
f73dda09 6922_ACEOF
abe2eb5b
CR
6923rm -f conftest.$ac_objext
6924if { (ac_try="$ac_compile"
6925case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928esac
6929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930$as_echo "$ac_try_echo") >&5
6931 (eval "$ac_compile") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } && {
6938 test -z "$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 } && test -s conftest.$ac_objext; then
545f34cf 6941 ac_cv_c_char_unsigned=no
f73dda09 6942else
abe2eb5b
CR
6943 $as_echo "$as_me: failed program was:" >&5
6944sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ac_cv_c_char_unsigned=yes
5e13499c 6947fi
abe2eb5b 6948
b709b946 6949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 6950fi
abe2eb5b 6951{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
dd4f3dd8 6952$as_echo "$ac_cv_c_char_unsigned" >&6; }
5e13499c 6953if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
abe2eb5b
CR
6954 cat >>confdefs.h <<\_ACEOF
6955#define __CHAR_UNSIGNED__ 1
6956_ACEOF
5e13499c 6957
a927e029
CR
6958fi
6959
abe2eb5b 6960{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
a927e029 6961$as_echo_n "checking for working volatile... " >&6; }
abe2eb5b 6962if test "${ac_cv_c_volatile+set}" = set; then
a927e029
CR
6963 $as_echo_n "(cached) " >&6
6964else
abe2eb5b
CR
6965 cat >conftest.$ac_ext <<_ACEOF
6966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
a927e029
CR
6970/* end confdefs.h. */
6971
6972int
6973main ()
6974{
6975
6976volatile int x;
6977int * volatile y = (int *) 0;
6978return !x && !y;
6979 ;
6980 return 0;
6981}
6982_ACEOF
abe2eb5b
CR
6983rm -f conftest.$ac_objext
6984if { (ac_try="$ac_compile"
6985case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988esac
6989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990$as_echo "$ac_try_echo") >&5
6991 (eval "$ac_compile") 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest.$ac_objext; then
a927e029
CR
7001 ac_cv_c_volatile=yes
7002else
abe2eb5b
CR
7003 $as_echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006 ac_cv_c_volatile=no
a927e029 7007fi
abe2eb5b 7008
a927e029
CR
7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010fi
abe2eb5b 7011{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
a927e029
CR
7012$as_echo "$ac_cv_c_volatile" >&6; }
7013if test $ac_cv_c_volatile = no; then
7014
abe2eb5b
CR
7015cat >>confdefs.h <<\_ACEOF
7016#define volatile /**/
7017_ACEOF
a927e029 7018
5e13499c
CR
7019fi
7020
abe2eb5b 7021{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
c1d39fb8 7022$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
abe2eb5b 7023if test "${ac_cv_c_restrict+set}" = set; then
c1d39fb8
CR
7024 $as_echo_n "(cached) " >&6
7025else
7026 ac_cv_c_restrict=no
7027 # The order here caters to the fact that C++ does not require restrict.
7028 for ac_kw in __restrict __restrict__ _Restrict restrict; do
abe2eb5b
CR
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
c1d39fb8
CR
7034/* end confdefs.h. */
7035typedef int * int_ptr;
7036 int foo (int_ptr $ac_kw ip) {
7037 return ip[0];
7038 }
7039int
7040main ()
7041{
7042int s[1];
7043 int * $ac_kw t = s;
7044 t[0] = 0;
7045 return foo(t)
7046 ;
7047 return 0;
7048}
7049_ACEOF
abe2eb5b
CR
7050rm -f conftest.$ac_objext
7051if { (ac_try="$ac_compile"
7052case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055esac
7056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7057$as_echo "$ac_try_echo") >&5
7058 (eval "$ac_compile") 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest.$ac_objext; then
c1d39fb8 7068 ac_cv_c_restrict=$ac_kw
abe2eb5b
CR
7069else
7070 $as_echo "$as_me: failed program was:" >&5
7071sed 's/^/| /' conftest.$ac_ext >&5
7072
7073
c1d39fb8 7074fi
abe2eb5b 7075
c1d39fb8
CR
7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 test "$ac_cv_c_restrict" != no && break
7078 done
7079
7080fi
abe2eb5b 7081{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
c1d39fb8
CR
7082$as_echo "$ac_cv_c_restrict" >&6; }
7083
abe2eb5b 7084
c1d39fb8
CR
7085 case $ac_cv_c_restrict in
7086 restrict) ;;
abe2eb5b
CR
7087 no) cat >>confdefs.h <<\_ACEOF
7088#define restrict /**/
7089_ACEOF
c1d39fb8
CR
7090 ;;
7091 *) cat >>confdefs.h <<_ACEOF
7092#define restrict $ac_cv_c_restrict
7093_ACEOF
7094 ;;
7095 esac
7096
a82a04b3
CR
7097
7098
5e13499c
CR
7099 MKINSTALLDIRS=
7100 if test -n "$ac_aux_dir"; then
7101 case "$ac_aux_dir" in
7102 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7103 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7104 esac
7105 fi
7106 if test -z "$MKINSTALLDIRS"; then
7107 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7108 fi
7109
a82a04b3
CR
7110
7111
abe2eb5b 7112 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
dd4f3dd8 7113$as_echo_n "checking whether NLS is requested... " >&6; }
b709b946 7114 # Check whether --enable-nls was given.
abe2eb5b 7115if test "${enable_nls+set}" = set; then
b709b946 7116 enableval=$enable_nls; USE_NLS=$enableval
5e13499c
CR
7117else
7118 USE_NLS=yes
b709b946
CR
7119fi
7120
abe2eb5b 7121 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
dd4f3dd8 7122$as_echo "$USE_NLS" >&6; }
5e13499c 7123
a82a04b3
CR
7124
7125
7126
7127
7128
5e13499c
CR
7129# Prepare PATH_SEPARATOR.
7130# The user is always right.
7131if test "${PATH_SEPARATOR+set}" != set; then
7132 echo "#! /bin/sh" >conf$$.sh
7133 echo "exit 0" >>conf$$.sh
7134 chmod +x conf$$.sh
7135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7136 PATH_SEPARATOR=';'
7137 else
7138 PATH_SEPARATOR=:
7139 fi
7140 rm -f conf$$.sh
7141fi
7142
7143# Find out how to test for executable files. Don't use a zero-byte file,
7144# as systems may use methods other than mode bits to determine executability.
7145cat >conf$$.file <<_ASEOF
7146#! /bin/sh
7147exit 0
7148_ASEOF
7149chmod +x conf$$.file
7150if test -x conf$$.file >/dev/null 2>&1; then
7151 ac_executable_p="test -x"
7152else
7153 ac_executable_p="test -f"
7154fi
7155rm -f conf$$.file
7156
7157# Extract the first word of "msgfmt", so it can be a program name with args.
7158set dummy msgfmt; ac_word=$2
abe2eb5b 7159{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 7160$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 7161if test "${ac_cv_path_MSGFMT+set}" = set; then
dd4f3dd8 7162 $as_echo_n "(cached) " >&6
5e13499c
CR
7163else
7164 case "$MSGFMT" in
7165 [\\/]* | ?:[\\/]*)
7166 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7167 ;;
7168 *)
7169 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7170 for ac_dir in $PATH; do
7171 IFS="$ac_save_IFS"
7172 test -z "$ac_dir" && ac_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7175 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7176 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7177 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7178 break 2
7179 fi
7180 fi
7181 done
7182 done
7183 IFS="$ac_save_IFS"
7184 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7185 ;;
7186esac
7187fi
7188MSGFMT="$ac_cv_path_MSGFMT"
7189if test "$MSGFMT" != ":"; then
abe2eb5b 7190 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
dd4f3dd8 7191$as_echo "$MSGFMT" >&6; }
5e13499c 7192else
abe2eb5b 7193 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 7194$as_echo "no" >&6; }
5e13499c
CR
7195fi
7196
7197 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7198set dummy gmsgfmt; ac_word=$2
abe2eb5b 7199{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 7200$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 7201if test "${ac_cv_path_GMSGFMT+set}" = set; then
dd4f3dd8 7202 $as_echo_n "(cached) " >&6
5e13499c
CR
7203else
7204 case $GMSGFMT in
7205 [\\/]* | ?:[\\/]*)
7206 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7207 ;;
7208 *)
a82a04b3
CR
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
abe2eb5b 7214 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 7216 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
abe2eb5b 7217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
7218 break 2
7219 fi
7220done
abe2eb5b 7221done
b709b946 7222IFS=$as_save_IFS
5e13499c
CR
7223
7224 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7225 ;;
7226esac
7227fi
7228GMSGFMT=$ac_cv_path_GMSGFMT
5e13499c 7229if test -n "$GMSGFMT"; then
abe2eb5b 7230 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
dd4f3dd8 7231$as_echo "$GMSGFMT" >&6; }
5e13499c 7232else
abe2eb5b 7233 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 7234$as_echo "no" >&6; }
5e13499c
CR
7235fi
7236
a82a04b3
CR
7237
7238
b709b946 7239
5e13499c
CR
7240# Prepare PATH_SEPARATOR.
7241# The user is always right.
7242if test "${PATH_SEPARATOR+set}" != set; then
7243 echo "#! /bin/sh" >conf$$.sh
7244 echo "exit 0" >>conf$$.sh
7245 chmod +x conf$$.sh
7246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7247 PATH_SEPARATOR=';'
7248 else
7249 PATH_SEPARATOR=:
7250 fi
7251 rm -f conf$$.sh
7252fi
7253
7254# Find out how to test for executable files. Don't use a zero-byte file,
7255# as systems may use methods other than mode bits to determine executability.
7256cat >conf$$.file <<_ASEOF
7257#! /bin/sh
7258exit 0
7259_ASEOF
7260chmod +x conf$$.file
7261if test -x conf$$.file >/dev/null 2>&1; then
7262 ac_executable_p="test -x"
7263else
7264 ac_executable_p="test -f"
7265fi
7266rm -f conf$$.file
7267
7268# Extract the first word of "xgettext", so it can be a program name with args.
7269set dummy xgettext; ac_word=$2
abe2eb5b 7270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 7271$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 7272if test "${ac_cv_path_XGETTEXT+set}" = set; then
dd4f3dd8 7273 $as_echo_n "(cached) " >&6
5e13499c
CR
7274else
7275 case "$XGETTEXT" in
7276 [\\/]* | ?:[\\/]*)
7277 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7278 ;;
7279 *)
7280 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7281 for ac_dir in $PATH; do
7282 IFS="$ac_save_IFS"
7283 test -z "$ac_dir" && ac_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7286 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7287 (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
7288 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7289 break 2
7290 fi
7291 fi
7292 done
7293 done
7294 IFS="$ac_save_IFS"
7295 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7296 ;;
7297esac
7298fi
7299XGETTEXT="$ac_cv_path_XGETTEXT"
7300if test "$XGETTEXT" != ":"; then
abe2eb5b 7301 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
dd4f3dd8 7302$as_echo "$XGETTEXT" >&6; }
5e13499c 7303else
abe2eb5b 7304 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 7305$as_echo "no" >&6; }
5e13499c
CR
7306fi
7307
7308 rm -f messages.po
7309
a82a04b3 7310
5e13499c
CR
7311# Prepare PATH_SEPARATOR.
7312# The user is always right.
7313if test "${PATH_SEPARATOR+set}" != set; then
7314 echo "#! /bin/sh" >conf$$.sh
7315 echo "exit 0" >>conf$$.sh
7316 chmod +x conf$$.sh
7317 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7318 PATH_SEPARATOR=';'
7319 else
7320 PATH_SEPARATOR=:
7321 fi
7322 rm -f conf$$.sh
7323fi
7324
7325# Find out how to test for executable files. Don't use a zero-byte file,
7326# as systems may use methods other than mode bits to determine executability.
7327cat >conf$$.file <<_ASEOF
7328#! /bin/sh
7329exit 0
7330_ASEOF
7331chmod +x conf$$.file
7332if test -x conf$$.file >/dev/null 2>&1; then
7333 ac_executable_p="test -x"
7334else
7335 ac_executable_p="test -f"
7336fi
7337rm -f conf$$.file
7338
7339# Extract the first word of "msgmerge", so it can be a program name with args.
7340set dummy msgmerge; ac_word=$2
abe2eb5b 7341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 7342$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 7343if test "${ac_cv_path_MSGMERGE+set}" = set; then
dd4f3dd8 7344 $as_echo_n "(cached) " >&6
5e13499c
CR
7345else
7346 case "$MSGMERGE" in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7349 ;;
7350 *)
7351 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7352 for ac_dir in $PATH; do
7353 IFS="$ac_save_IFS"
7354 test -z "$ac_dir" && ac_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7357 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7358 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7359 break 2
7360 fi
7361 fi
7362 done
7363 done
7364 IFS="$ac_save_IFS"
7365 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7366 ;;
7367esac
7368fi
7369MSGMERGE="$ac_cv_path_MSGMERGE"
7370if test "$MSGMERGE" != ":"; then
abe2eb5b 7371 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
dd4f3dd8 7372$as_echo "$MSGMERGE" >&6; }
5e13499c 7373else
abe2eb5b 7374 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 7375$as_echo "no" >&6; }
5e13499c
CR
7376fi
7377
a82a04b3 7378
5e13499c
CR
7379 if test "$GMSGFMT" != ":"; then
7380 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7381 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7382 : ;
7383 else
7384 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
abe2eb5b 7385 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
dd4f3dd8 7386$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5e13499c
CR
7387 GMSGFMT=":"
7388 fi
7389 fi
7390
7391 if test "$XGETTEXT" != ":"; then
7392 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7393 (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
7394 : ;
7395 else
abe2eb5b 7396 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
dd4f3dd8 7397$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5e13499c
CR
7398 XGETTEXT=":"
7399 fi
7400 rm -f messages.po
7401 fi
7402
b709b946 7403 ac_config_commands="$ac_config_commands default-1"
a82a04b3 7404
5e13499c 7405
abe2eb5b
CR
7406{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
7407$as_echo_n "checking for off_t... " >&6; }
7408if test "${ac_cv_type_off_t+set}" = set; then
7409 $as_echo_n "(cached) " >&6
7410else
7411 ac_cv_type_off_t=no
7412cat >conftest.$ac_ext <<_ACEOF
7413/* confdefs.h. */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h. */
7418$ac_includes_default
7419int
7420main ()
7421{
7422if (sizeof (off_t))
7423 return 0;
7424 ;
7425 return 0;
7426}
7427_ACEOF
7428rm -f conftest.$ac_objext
7429if { (ac_try="$ac_compile"
7430case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433esac
7434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435$as_echo "$ac_try_echo") >&5
7436 (eval "$ac_compile") 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.$ac_objext; then
7446 cat >conftest.$ac_ext <<_ACEOF
7447/* confdefs.h. */
7448_ACEOF
7449cat confdefs.h >>conftest.$ac_ext
7450cat >>conftest.$ac_ext <<_ACEOF
7451/* end confdefs.h. */
7452$ac_includes_default
7453int
7454main ()
7455{
7456if (sizeof ((off_t)))
7457 return 0;
7458 ;
7459 return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext
7463if { (ac_try="$ac_compile"
7464case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467esac
7468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7469$as_echo "$ac_try_echo") >&5
7470 (eval "$ac_compile") 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
7480 :
7481else
7482 $as_echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485 ac_cv_type_off_t=yes
7486fi
7487
7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489else
7490 $as_echo "$as_me: failed program was:" >&5
7491sed 's/^/| /' conftest.$ac_ext >&5
7492
7493
7494fi
e3db237e 7495
abe2eb5b
CR
7496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497fi
7498{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7499$as_echo "$ac_cv_type_off_t" >&6; }
7500if test "x$ac_cv_type_off_t" = x""yes; then
7501 :
5e13499c
CR
7502else
7503
a82a04b3 7504cat >>confdefs.h <<_ACEOF
b709b946 7505#define off_t long int
a82a04b3 7506_ACEOF
5e13499c
CR
7507
7508fi
7509
abe2eb5b
CR
7510{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
7511$as_echo_n "checking for size_t... " >&6; }
7512if test "${ac_cv_type_size_t+set}" = set; then
7513 $as_echo_n "(cached) " >&6
7514else
7515 ac_cv_type_size_t=no
7516cat >conftest.$ac_ext <<_ACEOF
7517/* confdefs.h. */
7518_ACEOF
7519cat confdefs.h >>conftest.$ac_ext
7520cat >>conftest.$ac_ext <<_ACEOF
7521/* end confdefs.h. */
7522$ac_includes_default
7523int
7524main ()
7525{
7526if (sizeof (size_t))
7527 return 0;
7528 ;
7529 return 0;
7530}
7531_ACEOF
7532rm -f conftest.$ac_objext
7533if { (ac_try="$ac_compile"
7534case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7539$as_echo "$ac_try_echo") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7550 cat >conftest.$ac_ext <<_ACEOF
7551/* confdefs.h. */
7552_ACEOF
7553cat confdefs.h >>conftest.$ac_ext
7554cat >>conftest.$ac_ext <<_ACEOF
7555/* end confdefs.h. */
7556$ac_includes_default
7557int
7558main ()
7559{
7560if (sizeof ((size_t)))
7561 return 0;
7562 ;
7563 return 0;
7564}
7565_ACEOF
7566rm -f conftest.$ac_objext
7567if { (ac_try="$ac_compile"
7568case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571esac
7572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7573$as_echo "$ac_try_echo") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 :
7585else
7586 $as_echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ac_cv_type_size_t=yes
7590fi
7591
7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593else
7594 $as_echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
e3db237e 7597
abe2eb5b
CR
7598fi
7599
7600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601fi
7602{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7603$as_echo "$ac_cv_type_size_t" >&6; }
7604if test "x$ac_cv_type_size_t" = x""yes; then
7605 :
5e13499c
CR
7606else
7607
a82a04b3 7608cat >>confdefs.h <<_ACEOF
b709b946 7609#define size_t unsigned int
a82a04b3 7610_ACEOF
5e13499c
CR
7611
7612fi
7613
7614# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7615# for constant arguments. Useless!
abe2eb5b 7616{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
dd4f3dd8 7617$as_echo_n "checking for working alloca.h... " >&6; }
abe2eb5b 7618if test "${ac_cv_working_alloca_h+set}" = set; then
dd4f3dd8 7619 $as_echo_n "(cached) " >&6
5e13499c 7620else
abe2eb5b
CR
7621 cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 7626/* end confdefs.h. */
5e13499c
CR
7627#include <alloca.h>
7628int
7629main ()
7630{
7631char *p = (char *) alloca (2 * sizeof (int));
b709b946 7632 if (p) return 0;
5e13499c
CR
7633 ;
7634 return 0;
7635}
7636_ACEOF
abe2eb5b
CR
7637rm -f conftest.$ac_objext conftest$ac_exeext
7638if { (ac_try="$ac_link"
7639case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642esac
7643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7644$as_echo "$ac_try_echo") >&5
7645 (eval "$ac_link") 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest$ac_exeext && {
7655 test "$cross_compiling" = yes ||
7656 $as_test_x conftest$ac_exeext
7657 }; then
5e13499c
CR
7658 ac_cv_working_alloca_h=yes
7659else
abe2eb5b
CR
7660 $as_echo "$as_me: failed program was:" >&5
7661sed 's/^/| /' conftest.$ac_ext >&5
7662
7663 ac_cv_working_alloca_h=no
5e13499c 7664fi
abe2eb5b
CR
7665
7666rm -rf conftest.dSYM
7667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7668 conftest$ac_exeext conftest.$ac_ext
5e13499c 7669fi
abe2eb5b 7670{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
dd4f3dd8 7671$as_echo "$ac_cv_working_alloca_h" >&6; }
5e13499c
CR
7672if test $ac_cv_working_alloca_h = yes; then
7673
abe2eb5b
CR
7674cat >>confdefs.h <<\_ACEOF
7675#define HAVE_ALLOCA_H 1
7676_ACEOF
5e13499c
CR
7677
7678fi
7679
abe2eb5b 7680{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
dd4f3dd8 7681$as_echo_n "checking for alloca... " >&6; }
abe2eb5b 7682if test "${ac_cv_func_alloca_works+set}" = set; then
dd4f3dd8 7683 $as_echo_n "(cached) " >&6
5e13499c 7684else
abe2eb5b
CR
7685 cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 7690/* end confdefs.h. */
5e13499c
CR
7691#ifdef __GNUC__
7692# define alloca __builtin_alloca
7693#else
7694# ifdef _MSC_VER
7695# include <malloc.h>
7696# define alloca _alloca
7697# else
dd4f3dd8 7698# ifdef HAVE_ALLOCA_H
5e13499c
CR
7699# include <alloca.h>
7700# else
7701# ifdef _AIX
7702 #pragma alloca
7703# else
7704# ifndef alloca /* predefined by HP cc +Olibcalls */
abe2eb5b 7705char *alloca ();
5e13499c
CR
7706# endif
7707# endif
7708# endif
7709# endif
7710#endif
7711
7712int
7713main ()
7714{
7715char *p = (char *) alloca (1);
b709b946 7716 if (p) return 0;
5e13499c
CR
7717 ;
7718 return 0;
7719}
7720_ACEOF
abe2eb5b
CR
7721rm -f conftest.$ac_objext conftest$ac_exeext
7722if { (ac_try="$ac_link"
7723case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726esac
7727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728$as_echo "$ac_try_echo") >&5
7729 (eval "$ac_link") 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest$ac_exeext && {
7739 test "$cross_compiling" = yes ||
7740 $as_test_x conftest$ac_exeext
7741 }; then
5e13499c
CR
7742 ac_cv_func_alloca_works=yes
7743else
abe2eb5b
CR
7744 $as_echo "$as_me: failed program was:" >&5
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 ac_cv_func_alloca_works=no
5e13499c 7748fi
abe2eb5b
CR
7749
7750rm -rf conftest.dSYM
7751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7752 conftest$ac_exeext conftest.$ac_ext
5e13499c 7753fi
abe2eb5b 7754{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
dd4f3dd8 7755$as_echo "$ac_cv_func_alloca_works" >&6; }
5e13499c
CR
7756
7757if test $ac_cv_func_alloca_works = yes; then
7758
abe2eb5b
CR
7759cat >>confdefs.h <<\_ACEOF
7760#define HAVE_ALLOCA 1
7761_ACEOF
5e13499c
CR
7762
7763else
7764 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7765# that cause trouble. Some versions do not even contain alloca or
7766# contain a buggy version. If you still want to use their alloca,
7767# use ar to extract alloca.o from them instead of compiling alloca.c.
7768
b709b946 7769ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5e13499c 7770
abe2eb5b
CR
7771cat >>confdefs.h <<\_ACEOF
7772#define C_ALLOCA 1
7773_ACEOF
a82a04b3 7774
545f34cf 7775
abe2eb5b 7776{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
dd4f3dd8 7777$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
abe2eb5b 7778if test "${ac_cv_os_cray+set}" = set; then
dd4f3dd8 7779 $as_echo_n "(cached) " >&6
5e13499c 7780else
abe2eb5b
CR
7781 cat >conftest.$ac_ext <<_ACEOF
7782/* confdefs.h. */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 7786/* end confdefs.h. */
b709b946 7787#if defined CRAY && ! defined CRAY2
5e13499c
CR
7788webecray
7789#else
7790wenotbecray
7791#endif
7792
7793_ACEOF
7794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 7795 $EGREP "webecray" >/dev/null 2>&1; then
5e13499c
CR
7796 ac_cv_os_cray=yes
7797else
7798 ac_cv_os_cray=no
7799fi
7800rm -f conftest*
7801
7802fi
abe2eb5b 7803{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
dd4f3dd8 7804$as_echo "$ac_cv_os_cray" >&6; }
5e13499c
CR
7805if test $ac_cv_os_cray = yes; then
7806 for ac_func in _getb67 GETB67 getb67; do
dd4f3dd8 7807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
abe2eb5b
CR
7808{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7809$as_echo_n "checking for $ac_func... " >&6; }
7810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7811 $as_echo_n "(cached) " >&6
7812else
7813 cat >conftest.$ac_ext <<_ACEOF
7814/* confdefs.h. */
e3db237e 7815_ACEOF
abe2eb5b
CR
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
7818/* end confdefs.h. */
7819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7821#define $ac_func innocuous_$ac_func
e3db237e 7822
abe2eb5b
CR
7823/* System header to define __stub macros and hopefully few prototypes,
7824 which can conflict with char $ac_func (); below.
7825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7826 <limits.h> exists even on freestanding compilers. */
e3db237e 7827
abe2eb5b
CR
7828#ifdef __STDC__
7829# include <limits.h>
7830#else
7831# include <assert.h>
7832#endif
e3db237e 7833
abe2eb5b
CR
7834#undef $ac_func
7835
7836/* Override any GCC internal prototype to avoid an error.
7837 Use char because int might match the return type of a GCC
7838 builtin and then its argument prototype would still apply. */
7839#ifdef __cplusplus
7840extern "C"
7841#endif
7842char $ac_func ();
7843/* The GNU C library defines this for functions which it implements
7844 to always fail with ENOSYS. Some functions are actually named
7845 something starting with __ and the normal name is an alias. */
7846#if defined __stub_$ac_func || defined __stub___$ac_func
7847choke me
7848#endif
7849
7850int
7851main ()
7852{
7853return $ac_func ();
7854 ;
7855 return 0;
7856}
7857_ACEOF
7858rm -f conftest.$ac_objext conftest$ac_exeext
7859if { (ac_try="$ac_link"
7860case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863esac
7864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7865$as_echo "$ac_try_echo") >&5
7866 (eval "$ac_link") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest$ac_exeext && {
7876 test "$cross_compiling" = yes ||
7877 $as_test_x conftest$ac_exeext
7878 }; then
7879 eval "$as_ac_var=yes"
7880else
7881 $as_echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
7884 eval "$as_ac_var=no"
7885fi
7886
7887rm -rf conftest.dSYM
7888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7889 conftest$ac_exeext conftest.$ac_ext
7890fi
7891ac_res=`eval 'as_val=${'$as_ac_var'}
7892 $as_echo "$as_val"'`
7893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7894$as_echo "$ac_res" >&6; }
7895as_val=`eval 'as_val=${'$as_ac_var'}
7896 $as_echo "$as_val"'`
7897 if test "x$as_val" = x""yes; then
7898
7899cat >>confdefs.h <<_ACEOF
7900#define CRAY_STACKSEG_END $ac_func
7901_ACEOF
7902
7903 break
7904fi
7905
7906 done
7907fi
7908
7909{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7910$as_echo_n "checking stack direction for C alloca... " >&6; }
7911if test "${ac_cv_c_stack_direction+set}" = set; then
7912 $as_echo_n "(cached) " >&6
7913else
7914 if test "$cross_compiling" = yes; then
7915 ac_cv_c_stack_direction=0
7916else
7917 cat >conftest.$ac_ext <<_ACEOF
7918/* confdefs.h. */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h. */
e3db237e
CR
7923$ac_includes_default
7924int
7925find_stack_direction ()
7926{
7927 static char *addr = 0;
7928 auto char dummy;
7929 if (addr == 0)
5e13499c
CR
7930 {
7931 addr = &dummy;
7932 return find_stack_direction ();
7933 }
7934 else
7935 return (&dummy > addr) ? 1 : -1;
7936}
7937
7938int
7939main ()
7940{
b709b946 7941 return find_stack_direction () < 0;
5e13499c
CR
7942}
7943_ACEOF
abe2eb5b
CR
7944rm -f conftest$ac_exeext
7945if { (ac_try="$ac_link"
7946case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7951$as_echo "$ac_try_echo") >&5
7952 (eval "$ac_link") 2>&5
7953 ac_status=$?
7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7956 { (case "(($ac_try" in
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7959esac
7960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7961$as_echo "$ac_try_echo") >&5
7962 (eval "$ac_try") 2>&5
7963 ac_status=$?
7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
5e13499c
CR
7966 ac_cv_c_stack_direction=1
7967else
abe2eb5b
CR
7968 $as_echo "$as_me: program exited with status $ac_status" >&5
7969$as_echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972( exit $ac_status )
7973ac_cv_c_stack_direction=-1
5e13499c 7974fi
abe2eb5b
CR
7975rm -rf conftest.dSYM
7976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e13499c 7977fi
b709b946 7978
abe2eb5b 7979
5e13499c 7980fi
abe2eb5b 7981{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
dd4f3dd8 7982$as_echo "$ac_cv_c_stack_direction" >&6; }
abe2eb5b 7983
a82a04b3 7984cat >>confdefs.h <<_ACEOF
5e13499c 7985#define STACK_DIRECTION $ac_cv_c_stack_direction
a82a04b3
CR
7986_ACEOF
7987
5e13499c
CR
7988
7989fi
7990
a82a04b3
CR
7991
7992
abe2eb5b
CR
7993for ac_header in stdlib.h unistd.h
7994do
7995as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7997 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7998$as_echo_n "checking for $ac_header... " >&6; }
7999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8000 $as_echo_n "(cached) " >&6
8001fi
8002ac_res=`eval 'as_val=${'$as_ac_Header'}
8003 $as_echo "$as_val"'`
8004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8005$as_echo "$ac_res" >&6; }
8006else
8007 # Is the header compilable?
8008{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8009$as_echo_n "checking $ac_header usability... " >&6; }
8010cat >conftest.$ac_ext <<_ACEOF
8011/* confdefs.h. */
8012_ACEOF
8013cat confdefs.h >>conftest.$ac_ext
8014cat >>conftest.$ac_ext <<_ACEOF
8015/* end confdefs.h. */
8016$ac_includes_default
8017#include <$ac_header>
8018_ACEOF
8019rm -f conftest.$ac_objext
8020if { (ac_try="$ac_compile"
8021case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024esac
8025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8026$as_echo "$ac_try_echo") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_header_compiler=yes
8038else
8039 $as_echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 8041
abe2eb5b
CR
8042 ac_header_compiler=no
8043fi
8044
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8047$as_echo "$ac_header_compiler" >&6; }
8048
8049# Is the header present?
8050{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8051$as_echo_n "checking $ac_header presence... " >&6; }
8052cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8058#include <$ac_header>
8059_ACEOF
8060if { (ac_try="$ac_cpp conftest.$ac_ext"
8061case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064esac
8065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066$as_echo "$ac_try_echo") >&5
8067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } >/dev/null && {
8074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 }; then
8077 ac_header_preproc=yes
8078else
8079 $as_echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_header_preproc=no
8083fi
8084
8085rm -f conftest.err conftest.$ac_ext
8086{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8087$as_echo "$ac_header_preproc" >&6; }
8088
8089# So? What about this header?
8090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8091 yes:no: )
8092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8093$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8095$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8096 ac_header_preproc=yes
8097 ;;
8098 no:yes:* )
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8100$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8102$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8104$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8106$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8108$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8110$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8111 ( cat <<\_ASBOX
8112## ------------------------------- ##
8113## Report this to bug-bash@gnu.org ##
8114## ------------------------------- ##
8115_ASBOX
8116 ) | sed "s/^/$as_me: WARNING: /" >&2
8117 ;;
8118esac
8119{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8120$as_echo_n "checking for $ac_header... " >&6; }
8121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8122 $as_echo_n "(cached) " >&6
8123else
8124 eval "$as_ac_Header=\$ac_header_preproc"
8125fi
8126ac_res=`eval 'as_val=${'$as_ac_Header'}
8127 $as_echo "$as_val"'`
8128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8129$as_echo "$ac_res" >&6; }
8130
8131fi
8132as_val=`eval 'as_val=${'$as_ac_Header'}
8133 $as_echo "$as_val"'`
8134 if test "x$as_val" = x""yes; then
2dead0c4
CR
8135 cat >>confdefs.h <<_ACEOF
8136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8137_ACEOF
8138
e3db237e 8139fi
2dead0c4
CR
8140
8141done
8142
8143
abe2eb5b
CR
8144for ac_func in getpagesize
8145do
8146as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8147{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8148$as_echo_n "checking for $ac_func... " >&6; }
8149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8150 $as_echo_n "(cached) " >&6
8151else
8152 cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8160#define $ac_func innocuous_$ac_func
8161
8162/* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char $ac_func (); below.
8164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165 <limits.h> exists even on freestanding compilers. */
2dead0c4 8166
abe2eb5b
CR
8167#ifdef __STDC__
8168# include <limits.h>
8169#else
8170# include <assert.h>
8171#endif
2dead0c4 8172
abe2eb5b 8173#undef $ac_func
2dead0c4 8174
abe2eb5b
CR
8175/* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply. */
8178#ifdef __cplusplus
8179extern "C"
8180#endif
8181char $ac_func ();
8182/* The GNU C library defines this for functions which it implements
8183 to always fail with ENOSYS. Some functions are actually named
8184 something starting with __ and the normal name is an alias. */
8185#if defined __stub_$ac_func || defined __stub___$ac_func
8186choke me
8187#endif
2dead0c4 8188
abe2eb5b
CR
8189int
8190main ()
8191{
8192return $ac_func ();
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197rm -f conftest.$ac_objext conftest$ac_exeext
8198if { (ac_try="$ac_link"
8199case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202esac
8203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8204$as_echo "$ac_try_echo") >&5
8205 (eval "$ac_link") 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } && {
8212 test -z "$ac_c_werror_flag" ||
8213 test ! -s conftest.err
8214 } && test -s conftest$ac_exeext && {
8215 test "$cross_compiling" = yes ||
8216 $as_test_x conftest$ac_exeext
8217 }; then
8218 eval "$as_ac_var=yes"
8219else
8220 $as_echo "$as_me: failed program was:" >&5
8221sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 8222
abe2eb5b
CR
8223 eval "$as_ac_var=no"
8224fi
2dead0c4 8225
abe2eb5b
CR
8226rm -rf conftest.dSYM
8227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8228 conftest$ac_exeext conftest.$ac_ext
8229fi
8230ac_res=`eval 'as_val=${'$as_ac_var'}
8231 $as_echo "$as_val"'`
8232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8233$as_echo "$ac_res" >&6; }
8234as_val=`eval 'as_val=${'$as_ac_var'}
8235 $as_echo "$as_val"'`
8236 if test "x$as_val" = x""yes; then
2dead0c4 8237 cat >>confdefs.h <<_ACEOF
abe2eb5b 8238#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 8239_ACEOF
5e13499c
CR
8240
8241fi
8242done
8243
abe2eb5b 8244{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
dd4f3dd8 8245$as_echo_n "checking for working mmap... " >&6; }
abe2eb5b 8246if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
dd4f3dd8 8247 $as_echo_n "(cached) " >&6
5e13499c 8248else
abe2eb5b 8249 if test "$cross_compiling" = yes; then
5e13499c
CR
8250 ac_cv_func_mmap_fixed_mapped=no
8251else
abe2eb5b
CR
8252 cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h. */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8257/* end confdefs.h. */
5e13499c 8258$ac_includes_default
a82a04b3
CR
8259/* malloc might have been renamed as rpl_malloc. */
8260#undef malloc
8261
5e13499c
CR
8262/* Thanks to Mike Haertel and Jim Avera for this test.
8263 Here is a matrix of mmap possibilities:
8264 mmap private not fixed
8265 mmap private fixed at somewhere currently unmapped
8266 mmap private fixed at somewhere already mapped
8267 mmap shared not fixed
8268 mmap shared fixed at somewhere currently unmapped
8269 mmap shared fixed at somewhere already mapped
8270 For private mappings, we should verify that changes cannot be read()
8271 back from the file, nor mmap's back from the file at a different
8272 address. (There have been systems where private was not correctly
8273 implemented like the infamous i386 svr4.0, and systems where the
8274 VM page cache was not coherent with the file system buffer cache
8275 like early versions of FreeBSD and possibly contemporary NetBSD.)
8276 For shared mappings, we should conversely verify that changes get
a82a04b3 8277 propagated back to all the places they're supposed to be.
5e13499c
CR
8278
8279 Grep wants private fixed already mapped.
8280 The main things grep needs to know about mmap are:
8281 * does it exist and is it safe to write into the mmap'd area
8282 * how to use it (BSD variants) */
8283
8284#include <fcntl.h>
8285#include <sys/mman.h>
8286
dd4f3dd8 8287#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5e13499c
CR
8288char *malloc ();
8289#endif
8290
8291/* This mess was copied from the GNU getpagesize.h. */
dd4f3dd8 8292#ifndef HAVE_GETPAGESIZE
abe2eb5b
CR
8293/* Assume that all systems that can run configure have sys/param.h. */
8294# ifndef HAVE_SYS_PARAM_H
8295# define HAVE_SYS_PARAM_H 1
8296# endif
8297
5e13499c
CR
8298# ifdef _SC_PAGESIZE
8299# define getpagesize() sysconf(_SC_PAGESIZE)
8300# else /* no _SC_PAGESIZE */
dd4f3dd8 8301# ifdef HAVE_SYS_PARAM_H
5e13499c
CR
8302# include <sys/param.h>
8303# ifdef EXEC_PAGESIZE
8304# define getpagesize() EXEC_PAGESIZE
8305# else /* no EXEC_PAGESIZE */
8306# ifdef NBPG
8307# define getpagesize() NBPG * CLSIZE
8308# ifndef CLSIZE
8309# define CLSIZE 1
8310# endif /* no CLSIZE */
8311# else /* no NBPG */
8312# ifdef NBPC
8313# define getpagesize() NBPC
8314# else /* no NBPC */
8315# ifdef PAGESIZE
8316# define getpagesize() PAGESIZE
8317# endif /* PAGESIZE */
8318# endif /* no NBPC */
8319# endif /* no NBPG */
8320# endif /* no EXEC_PAGESIZE */
8321# else /* no HAVE_SYS_PARAM_H */
8322# define getpagesize() 8192 /* punt totally */
8323# endif /* no HAVE_SYS_PARAM_H */
8324# endif /* no _SC_PAGESIZE */
8325
8326#endif /* no HAVE_GETPAGESIZE */
8327
8328int
8329main ()
8330{
8331 char *data, *data2, *data3;
8332 int i, pagesize;
abe2eb5b 8333 int fd;
5e13499c
CR
8334
8335 pagesize = getpagesize ();
8336
8337 /* First, make a file with some known garbage in it. */
8338 data = (char *) malloc (pagesize);
8339 if (!data)
b709b946 8340 return 1;
5e13499c
CR
8341 for (i = 0; i < pagesize; ++i)
8342 *(data + i) = rand ();
8343 umask (0);
8344 fd = creat ("conftest.mmap", 0600);
8345 if (fd < 0)
abe2eb5b 8346 return 1;
5e13499c 8347 if (write (fd, data, pagesize) != pagesize)
abe2eb5b 8348 return 1;
5e13499c
CR
8349 close (fd);
8350
8351 /* Next, try to mmap the file at a fixed address which already has
8352 something else allocated at it. If we can, also make sure that
8353 we see the same garbage. */
8354 fd = open ("conftest.mmap", O_RDWR);
8355 if (fd < 0)
abe2eb5b
CR
8356 return 1;
8357 data2 = (char *) malloc (2 * pagesize);
8358 if (!data2)
8359 return 1;
8360 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5e13499c 8361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5e4a95c7 8362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
abe2eb5b 8363 return 1;
5e13499c
CR
8364 for (i = 0; i < pagesize; ++i)
8365 if (*(data + i) != *(data2 + i))
abe2eb5b 8366 return 1;
5e13499c
CR
8367
8368 /* Finally, make sure that changes to the mapped area do not
8369 percolate back to the file as seen by read(). (This is a bug on
8370 some variants of i386 svr4.0.) */
8371 for (i = 0; i < pagesize; ++i)
8372 *(data2 + i) = *(data2 + i) + 1;
8373 data3 = (char *) malloc (pagesize);
8374 if (!data3)
abe2eb5b 8375 return 1;
5e13499c 8376 if (read (fd, data3, pagesize) != pagesize)
abe2eb5b 8377 return 1;
5e13499c
CR
8378 for (i = 0; i < pagesize; ++i)
8379 if (*(data + i) != *(data3 + i))
abe2eb5b 8380 return 1;
5e13499c 8381 close (fd);
b709b946 8382 return 0;
5e13499c
CR
8383}
8384_ACEOF
abe2eb5b
CR
8385rm -f conftest$ac_exeext
8386if { (ac_try="$ac_link"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392$as_echo "$ac_try_echo") >&5
8393 (eval "$ac_link") 2>&5
8394 ac_status=$?
8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400esac
8401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402$as_echo "$ac_try_echo") >&5
8403 (eval "$ac_try") 2>&5
8404 ac_status=$?
8405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
5e13499c
CR
8407 ac_cv_func_mmap_fixed_mapped=yes
8408else
abe2eb5b
CR
8409 $as_echo "$as_me: program exited with status $ac_status" >&5
8410$as_echo "$as_me: failed program was:" >&5
8411sed 's/^/| /' conftest.$ac_ext >&5
8412
8413( exit $ac_status )
8414ac_cv_func_mmap_fixed_mapped=no
5e13499c 8415fi
abe2eb5b
CR
8416rm -rf conftest.dSYM
8417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e13499c 8418fi
b709b946 8419
abe2eb5b 8420
5e13499c 8421fi
abe2eb5b 8422{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
dd4f3dd8 8423$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5e13499c
CR
8424if test $ac_cv_func_mmap_fixed_mapped = yes; then
8425
abe2eb5b
CR
8426cat >>confdefs.h <<\_ACEOF
8427#define HAVE_MMAP 1
8428_ACEOF
5e13499c
CR
8429
8430fi
abe2eb5b 8431rm -f conftest.mmap
5e13499c 8432
a82a04b3 8433
abe2eb5b 8434 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
dd4f3dd8 8435$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
abe2eb5b 8436if test "${ac_cv_gnu_library_2_1+set}" = set; then
dd4f3dd8 8437 $as_echo_n "(cached) " >&6
5e13499c 8438else
abe2eb5b
CR
8439 cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8444/* end confdefs.h. */
5e13499c
CR
8445
8446#include <features.h>
8447#ifdef __GNU_LIBRARY__
8448 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8449 Lucky GNU user
8450 #endif
8451#endif
8452
8453_ACEOF
8454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 8455 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5e13499c
CR
8456 ac_cv_gnu_library_2_1=yes
8457else
8458 ac_cv_gnu_library_2_1=no
8459fi
8460rm -f conftest*
8461
a82a04b3
CR
8462
8463
5e13499c 8464fi
abe2eb5b 8465{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
dd4f3dd8 8466$as_echo "$ac_cv_gnu_library_2_1" >&6; }
5e13499c
CR
8467
8468 GLIBC21="$ac_cv_gnu_library_2_1"
8469
a82a04b3
CR
8470
8471
8472
abe2eb5b 8473 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
dd4f3dd8 8474$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
abe2eb5b 8475if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
dd4f3dd8 8476 $as_echo_n "(cached) " >&6
5e13499c
CR
8477else
8478
abe2eb5b 8479 if test "$cross_compiling" = yes; then
5e13499c
CR
8480
8481 # Guess based on the CPU.
8482 case "$host_cpu" in
8483 alpha* | i3456786 | m68k | s390*)
8484 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8485 *)
8486 gt_cv_int_divbyzero_sigfpe="guessing no";;
8487 esac
8488
8489else
abe2eb5b
CR
8490 cat >conftest.$ac_ext <<_ACEOF
8491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8495/* end confdefs.h. */
5e13499c
CR
8496
8497#include <stdlib.h>
8498#include <signal.h>
8499
8500static void
8501#ifdef __cplusplus
8502sigfpe_handler (int sig)
8503#else
8504sigfpe_handler (sig) int sig;
8505#endif
8506{
8507 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8508 exit (sig != SIGFPE);
8509}
8510
8511int x = 1;
8512int y = 0;
8513int z;
8514int nan;
8515
8516int main ()
8517{
8518 signal (SIGFPE, sigfpe_handler);
8519/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8520#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8521 signal (SIGTRAP, sigfpe_handler);
8522#endif
8523/* Linux/SPARC yields signal SIGILL. */
8524#if defined (__sparc__) && defined (__linux__)
8525 signal (SIGILL, sigfpe_handler);
8526#endif
8527
8528 z = x / y;
8529 nan = y / y;
8530 exit (1);
8531}
8532
8533_ACEOF
abe2eb5b
CR
8534rm -f conftest$ac_exeext
8535if { (ac_try="$ac_link"
8536case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539esac
8540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8541$as_echo "$ac_try_echo") >&5
8542 (eval "$ac_link") 2>&5
8543 ac_status=$?
8544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8546 { (case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549esac
8550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551$as_echo "$ac_try_echo") >&5
8552 (eval "$ac_try") 2>&5
8553 ac_status=$?
8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
5e13499c
CR
8556 gt_cv_int_divbyzero_sigfpe=yes
8557else
abe2eb5b
CR
8558 $as_echo "$as_me: program exited with status $ac_status" >&5
8559$as_echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562( exit $ac_status )
8563gt_cv_int_divbyzero_sigfpe=no
5e13499c 8564fi
abe2eb5b
CR
8565rm -rf conftest.dSYM
8566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
8567fi
8568
b709b946 8569
abe2eb5b 8570
5e13499c 8571fi
abe2eb5b 8572{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
dd4f3dd8 8573$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5e13499c
CR
8574 case "$gt_cv_int_divbyzero_sigfpe" in
8575 *yes) value=1;;
8576 *) value=0;;
8577 esac
8578
a82a04b3 8579cat >>confdefs.h <<_ACEOF
5e13499c 8580#define INTDIV0_RAISES_SIGFPE $value
a82a04b3
CR
8581_ACEOF
8582
545f34cf 8583
a82a04b3 8584
abe2eb5b 8585 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
dd4f3dd8 8586$as_echo_n "checking for inttypes.h... " >&6; }
abe2eb5b 8587if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
dd4f3dd8 8588 $as_echo_n "(cached) " >&6
5e13499c 8589else
abe2eb5b
CR
8590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8595/* end confdefs.h. */
5e13499c
CR
8596#include <sys/types.h>
8597#include <inttypes.h>
8598int
8599main ()
8600{
8601uintmax_t i = (uintmax_t) -1;
8602 ;
8603 return 0;
8604}
8605_ACEOF
abe2eb5b
CR
8606rm -f conftest.$ac_objext
8607if { (ac_try="$ac_compile"
8608case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8613$as_echo "$ac_try_echo") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
5e13499c
CR
8624 jm_ac_cv_header_inttypes_h=yes
8625else
abe2eb5b
CR
8626 $as_echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 jm_ac_cv_header_inttypes_h=no
5e13499c 8630fi
abe2eb5b 8631
b709b946 8632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 8633fi
abe2eb5b 8634{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
dd4f3dd8 8635$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
5e13499c
CR
8636 if test $jm_ac_cv_header_inttypes_h = yes; then
8637
a82a04b3 8638cat >>confdefs.h <<_ACEOF
5e13499c 8639#define HAVE_INTTYPES_H_WITH_UINTMAX 1
a82a04b3 8640_ACEOF
5e13499c
CR
8641
8642 fi
8643
a82a04b3 8644
abe2eb5b 8645 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
dd4f3dd8 8646$as_echo_n "checking for stdint.h... " >&6; }
abe2eb5b 8647if test "${jm_ac_cv_header_stdint_h+set}" = set; then
dd4f3dd8 8648 $as_echo_n "(cached) " >&6
5e13499c 8649else
abe2eb5b
CR
8650 cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8655/* end confdefs.h. */
5e13499c
CR
8656#include <sys/types.h>
8657#include <stdint.h>
8658int
8659main ()
8660{
8661uintmax_t i = (uintmax_t) -1;
8662 ;
8663 return 0;
8664}
8665_ACEOF
abe2eb5b
CR
8666rm -f conftest.$ac_objext
8667if { (ac_try="$ac_compile"
8668case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671esac
8672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673$as_echo "$ac_try_echo") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 jm_ac_cv_header_stdint_h=yes
8685else
8686 $as_echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 jm_ac_cv_header_stdint_h=no
7610e0c5 8690fi
abe2eb5b
CR
8691
8692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693fi
8694{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7610e0c5 8695$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
5e13499c
CR
8696 if test $jm_ac_cv_header_stdint_h = yes; then
8697
a82a04b3 8698cat >>confdefs.h <<_ACEOF
5e13499c 8699#define HAVE_STDINT_H_WITH_UINTMAX 1
a82a04b3 8700_ACEOF
5e13499c
CR
8701
8702 fi
8703
a82a04b3 8704
abe2eb5b 8705 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
dd4f3dd8 8706$as_echo_n "checking for unsigned long long... " >&6; }
abe2eb5b 8707if test "${ac_cv_type_unsigned_long_long+set}" = set; then
dd4f3dd8 8708 $as_echo_n "(cached) " >&6
5e13499c 8709else
abe2eb5b
CR
8710 cat >conftest.$ac_ext <<_ACEOF
8711/* confdefs.h. */
8712_ACEOF
8713cat confdefs.h >>conftest.$ac_ext
8714cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8715/* end confdefs.h. */
5e13499c
CR
8716unsigned long long ull = 1; int i = 63;
8717int
8718main ()
8719{
8720unsigned long long ullmax = (unsigned long long) -1;
8721 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8722 ;
8723 return 0;
8724}
8725_ACEOF
abe2eb5b
CR
8726rm -f conftest.$ac_objext conftest$ac_exeext
8727if { (ac_try="$ac_link"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8733$as_echo "$ac_try_echo") >&5
8734 (eval "$ac_link") 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && {
8741 test -z "$ac_c_werror_flag" ||
8742 test ! -s conftest.err
8743 } && test -s conftest$ac_exeext && {
8744 test "$cross_compiling" = yes ||
8745 $as_test_x conftest$ac_exeext
8746 }; then
e3db237e 8747 ac_cv_type_unsigned_long_long=yes
5e13499c 8748else
abe2eb5b
CR
8749 $as_echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_cv_type_unsigned_long_long=no
5e13499c 8753fi
abe2eb5b
CR
8754
8755rm -rf conftest.dSYM
8756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8757 conftest$ac_exeext conftest.$ac_ext
5e13499c 8758fi
abe2eb5b 8759{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
dd4f3dd8 8760$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
5e13499c
CR
8761 if test $ac_cv_type_unsigned_long_long = yes; then
8762
abe2eb5b
CR
8763cat >>confdefs.h <<\_ACEOF
8764#define HAVE_UNSIGNED_LONG_LONG 1
8765_ACEOF
5e13499c
CR
8766
8767 fi
8768
a82a04b3
CR
8769
8770
8771
5e13499c
CR
8772 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8773
8774 test $ac_cv_type_unsigned_long_long = yes \
8775 && ac_type='unsigned long long' \
8776 || ac_type='unsigned long'
8777
a82a04b3 8778cat >>confdefs.h <<_ACEOF
5e13499c 8779#define uintmax_t $ac_type
a82a04b3 8780_ACEOF
5e13499c
CR
8781
8782 else
8783
abe2eb5b
CR
8784cat >>confdefs.h <<\_ACEOF
8785#define HAVE_UINTMAX_T 1
8786_ACEOF
5e13499c
CR
8787
8788 fi
8789
a82a04b3 8790
abe2eb5b 8791 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
dd4f3dd8 8792$as_echo_n "checking for inttypes.h... " >&6; }
abe2eb5b 8793if test "${gt_cv_header_inttypes_h+set}" = set; then
dd4f3dd8 8794 $as_echo_n "(cached) " >&6
5e13499c
CR
8795else
8796
abe2eb5b
CR
8797 cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8802/* end confdefs.h. */
5e13499c
CR
8803#include <sys/types.h>
8804#include <inttypes.h>
8805int
8806main ()
8807{
8808
8809 ;
8810 return 0;
8811}
8812_ACEOF
abe2eb5b
CR
8813rm -f conftest.$ac_objext
8814if { (ac_try="$ac_compile"
8815case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818esac
8819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8820$as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
5e13499c
CR
8831 gt_cv_header_inttypes_h=yes
8832else
abe2eb5b
CR
8833 $as_echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 gt_cv_header_inttypes_h=no
5e13499c 8837fi
abe2eb5b 8838
b709b946 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
8840
8841fi
abe2eb5b 8842{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
dd4f3dd8 8843$as_echo "$gt_cv_header_inttypes_h" >&6; }
5e13499c
CR
8844 if test $gt_cv_header_inttypes_h = yes; then
8845
a82a04b3 8846cat >>confdefs.h <<_ACEOF
5e13499c 8847#define HAVE_INTTYPES_H 1
a82a04b3 8848_ACEOF
5e13499c
CR
8849
8850 fi
8851
a82a04b3
CR
8852
8853
5e13499c 8854 if test $gt_cv_header_inttypes_h = yes; then
abe2eb5b 8855 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
dd4f3dd8 8856$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
abe2eb5b 8857if test "${gt_cv_inttypes_pri_broken+set}" = set; then
dd4f3dd8 8858 $as_echo_n "(cached) " >&6
5e13499c
CR
8859else
8860
abe2eb5b
CR
8861 cat >conftest.$ac_ext <<_ACEOF
8862/* confdefs.h. */
8863_ACEOF
8864cat confdefs.h >>conftest.$ac_ext
8865cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 8866/* end confdefs.h. */
5e13499c
CR
8867#include <inttypes.h>
8868#ifdef PRId32
8869char *p = PRId32;
8870#endif
8871
8872int
8873main ()
8874{
8875
8876 ;
8877 return 0;
8878}
8879_ACEOF
abe2eb5b
CR
8880rm -f conftest.$ac_objext
8881if { (ac_try="$ac_compile"
8882case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885esac
8886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8887$as_echo "$ac_try_echo") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.$ac_objext; then
2e4498b3
CR
8898 gt_cv_inttypes_pri_broken=no
8899else
abe2eb5b
CR
8900 $as_echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 gt_cv_inttypes_pri_broken=yes
5e13499c 8904fi
abe2eb5b 8905
b709b946 8906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
8907
8908fi
abe2eb5b 8909{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
dd4f3dd8 8910$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5e13499c
CR
8911 fi
8912 if test "$gt_cv_inttypes_pri_broken" = yes; then
8913
a82a04b3 8914cat >>confdefs.h <<_ACEOF
5e13499c 8915#define PRI_MACROS_BROKEN 1
a82a04b3 8916_ACEOF
5e13499c
CR
8917
8918 fi
8919
a82a04b3 8920
5e13499c
CR
8921 if test "X$prefix" = "XNONE"; then
8922 acl_final_prefix="$ac_default_prefix"
8923 else
8924 acl_final_prefix="$prefix"
8925 fi
8926 if test "X$exec_prefix" = "XNONE"; then
8927 acl_final_exec_prefix='${prefix}'
8928 else
8929 acl_final_exec_prefix="$exec_prefix"
8930 fi
8931 acl_save_prefix="$prefix"
8932 prefix="$acl_final_prefix"
8933 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8934 prefix="$acl_save_prefix"
8935
a82a04b3 8936
b709b946 8937# Check whether --with-gnu-ld was given.
abe2eb5b 8938if test "${with_gnu_ld+set}" = set; then
b709b946 8939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5e13499c
CR
8940else
8941 with_gnu_ld=no
b709b946
CR
8942fi
8943
5e13499c
CR
8944# Prepare PATH_SEPARATOR.
8945# The user is always right.
8946if test "${PATH_SEPARATOR+set}" != set; then
8947 echo "#! /bin/sh" >conf$$.sh
8948 echo "exit 0" >>conf$$.sh
8949 chmod +x conf$$.sh
8950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8951 PATH_SEPARATOR=';'
8952 else
8953 PATH_SEPARATOR=:
8954 fi
8955 rm -f conf$$.sh
8956fi
8957ac_prog=ld
8958if test "$GCC" = yes; then
8959 # Check if gcc -print-prog-name=ld gives a path.
abe2eb5b 8960 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
dd4f3dd8 8961$as_echo_n "checking for ld used by GCC... " >&6; }
5e13499c
CR
8962 case $host in
8963 *-*-mingw*)
8964 # gcc leaves a trailing carriage return which upsets mingw
8965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8966 *)
8967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8968 esac
8969 case $ac_prog in
8970 # Accept absolute paths.
8971 [\\/]* | [A-Za-z]:[\\/]*)
8972 re_direlt='/[^/][^/]*/\.\./'
8973 # Canonicalize the path of ld
8974 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8975 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8976 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8977 done
8978 test -z "$LD" && LD="$ac_prog"
8979 ;;
8980 "")
8981 # If it fails, then pretend we aren't using GCC.
8982 ac_prog=ld
8983 ;;
8984 *)
8985 # If it is relative, then search for the first ld in PATH.
8986 with_gnu_ld=unknown
8987 ;;
8988 esac
8989elif test "$with_gnu_ld" = yes; then
abe2eb5b 8990 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
dd4f3dd8 8991$as_echo_n "checking for GNU ld... " >&6; }
5e13499c 8992else
abe2eb5b 8993 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
dd4f3dd8 8994$as_echo_n "checking for non-GNU ld... " >&6; }
5e13499c 8995fi
abe2eb5b 8996if test "${acl_cv_path_LD+set}" = set; then
dd4f3dd8 8997 $as_echo_n "(cached) " >&6
5e13499c
CR
8998else
8999 if test -z "$LD"; then
9000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9001 for ac_dir in $PATH; do
9002 test -z "$ac_dir" && ac_dir=.
9003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9004 acl_cv_path_LD="$ac_dir/$ac_prog"
9005 # Check to see if the program is GNU ld. I'd rather use --version,
9006 # but apparently some GNU ld's only accept -v.
9007 # Break only if it was the GNU/non-GNU ld that we prefer.
9008 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9009 test "$with_gnu_ld" != no && break
9010 else
9011 test "$with_gnu_ld" != yes && break
9012 fi
9013 fi
9014 done
9015 IFS="$ac_save_ifs"
9016else
9017 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9018fi
9019fi
9020
9021LD="$acl_cv_path_LD"
9022if test -n "$LD"; then
abe2eb5b 9023 { $as_echo "$as_me:$LINENO: result: $LD" >&5
dd4f3dd8 9024$as_echo "$LD" >&6; }
5e13499c 9025else
abe2eb5b 9026 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 9027$as_echo "no" >&6; }
5e13499c 9028fi
abe2eb5b
CR
9029test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9030$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9031 { (exit 1); exit 1; }; }
9032{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
dd4f3dd8 9033$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
abe2eb5b 9034if test "${acl_cv_prog_gnu_ld+set}" = set; then
dd4f3dd8 9035 $as_echo_n "(cached) " >&6
5e13499c
CR
9036else
9037 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9038if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9039 acl_cv_prog_gnu_ld=yes
9040else
9041 acl_cv_prog_gnu_ld=no
9042fi
9043fi
abe2eb5b 9044{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
dd4f3dd8 9045$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5e13499c
CR
9046with_gnu_ld=$acl_cv_prog_gnu_ld
9047
a82a04b3
CR
9048
9049
abe2eb5b 9050 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
dd4f3dd8 9051$as_echo_n "checking for shared library run path origin... " >&6; }
abe2eb5b 9052if test "${acl_cv_rpath+set}" = set; then
dd4f3dd8 9053 $as_echo_n "(cached) " >&6
5e13499c
CR
9054else
9055
9056 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9057 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9058 . ./conftest.sh
9059 rm -f ./conftest.sh
9060 acl_cv_rpath=done
9061
9062fi
abe2eb5b 9063{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
dd4f3dd8 9064$as_echo "$acl_cv_rpath" >&6; }
5e13499c
CR
9065 wl="$acl_cv_wl"
9066 libext="$acl_cv_libext"
9067 shlibext="$acl_cv_shlibext"
9068 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9069 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9070 hardcode_direct="$acl_cv_hardcode_direct"
9071 hardcode_minus_L="$acl_cv_hardcode_minus_L"
b709b946 9072 # Check whether --enable-rpath was given.
abe2eb5b 9073if test "${enable_rpath+set}" = set; then
b709b946 9074 enableval=$enable_rpath; :
5e13499c
CR
9075else
9076 enable_rpath=yes
b709b946
CR
9077fi
9078
5e13499c 9079
a82a04b3
CR
9080
9081
9082
9083
9084
9085
5e13499c
CR
9086 use_additional=yes
9087
9088 acl_save_prefix="$prefix"
9089 prefix="$acl_final_prefix"
9090 acl_save_exec_prefix="$exec_prefix"
9091 exec_prefix="$acl_final_exec_prefix"
9092
9093 eval additional_includedir=\"$includedir\"
9094 eval additional_libdir=\"$libdir\"
9095
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9098
a82a04b3 9099
b709b946 9100# Check whether --with-libiconv-prefix was given.
abe2eb5b 9101if test "${with_libiconv_prefix+set}" = set; then
b709b946 9102 withval=$with_libiconv_prefix;
5e13499c
CR
9103 if test "X$withval" = "Xno"; then
9104 use_additional=no
9105 else
9106 if test "X$withval" = "X"; then
9107
9108 acl_save_prefix="$prefix"
9109 prefix="$acl_final_prefix"
9110 acl_save_exec_prefix="$exec_prefix"
9111 exec_prefix="$acl_final_exec_prefix"
9112
9113 eval additional_includedir=\"$includedir\"
9114 eval additional_libdir=\"$libdir\"
9115
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9118
9119 else
9120 additional_includedir="$withval/include"
9121 additional_libdir="$withval/lib"
9122 fi
9123 fi
9124
b709b946
CR
9125fi
9126
5e13499c
CR
9127 LIBICONV=
9128 LTLIBICONV=
9129 INCICONV=
9130 rpathdirs=
9131 ltrpathdirs=
9132 names_already_handled=
9133 names_next_round='iconv '
9134 while test -n "$names_next_round"; do
9135 names_this_round="$names_next_round"
9136 names_next_round=
9137 for name in $names_this_round; do
9138 already_handled=
9139 for n in $names_already_handled; do
9140 if test "$n" = "$name"; then
9141 already_handled=yes
9142 break
9143 fi
9144 done
9145 if test -z "$already_handled"; then
9146 names_already_handled="$names_already_handled $name"
9147 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9148 eval value=\"\$HAVE_LIB$uppername\"
9149 if test -n "$value"; then
9150 if test "$value" = yes; then
9151 eval value=\"\$LIB$uppername\"
9152 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9153 eval value=\"\$LTLIB$uppername\"
9154 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9155 else
9156 :
9157 fi
9158 else
9159 found_dir=
9160 found_la=
9161 found_so=
9162 found_a=
9163 if test $use_additional = yes; then
f4f5e1c2 9164 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5e13499c
CR
9165 found_dir="$additional_libdir"
9166 found_so="$additional_libdir/lib$name.$shlibext"
9167 if test -f "$additional_libdir/lib$name.la"; then
9168 found_la="$additional_libdir/lib$name.la"
9169 fi
9170 else
9171 if test -f "$additional_libdir/lib$name.$libext"; then
9172 found_dir="$additional_libdir"
9173 found_a="$additional_libdir/lib$name.$libext"
9174 if test -f "$additional_libdir/lib$name.la"; then
9175 found_la="$additional_libdir/lib$name.la"
9176 fi
9177 fi
9178 fi
9179 fi
9180 if test "X$found_dir" = "X"; then
9181 for x in $LDFLAGS $LTLIBICONV; do
9182
9183 acl_save_prefix="$prefix"
9184 prefix="$acl_final_prefix"
9185 acl_save_exec_prefix="$exec_prefix"
9186 exec_prefix="$acl_final_exec_prefix"
9187 eval x=\"$x\"
9188 exec_prefix="$acl_save_exec_prefix"
9189 prefix="$acl_save_prefix"
9190
9191 case "$x" in
9192 -L*)
9193 dir=`echo "X$x" | sed -e 's/^X-L//'`
f4f5e1c2 9194 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5e13499c
CR
9195 found_dir="$dir"
9196 found_so="$dir/lib$name.$shlibext"
9197 if test -f "$dir/lib$name.la"; then
9198 found_la="$dir/lib$name.la"
9199 fi
9200 else
9201 if test -f "$dir/lib$name.$libext"; then
9202 found_dir="$dir"
9203 found_a="$dir/lib$name.$libext"
9204 if test -f "$dir/lib$name.la"; then
9205 found_la="$dir/lib$name.la"
9206 fi
9207 fi
9208 fi
9209 ;;
9210 esac
9211 if test "X$found_dir" != "X"; then
9212 break
9213 fi
9214 done
9215 fi
9216 if test "X$found_dir" != "X"; then
9217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9218 if test "X$found_so" != "X"; then
9219 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9221 else
9222 haveit=
9223 for x in $ltrpathdirs; do
9224 if test "X$x" = "X$found_dir"; then
9225 haveit=yes
9226 break
9227 fi
9228 done
9229 if test -z "$haveit"; then
9230 ltrpathdirs="$ltrpathdirs $found_dir"
9231 fi
9232 if test "$hardcode_direct" = yes; then
9233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9234 else
9235 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9236 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9237 haveit=
9238 for x in $rpathdirs; do
9239 if test "X$x" = "X$found_dir"; then
9240 haveit=yes
9241 break
9242 fi
9243 done
9244 if test -z "$haveit"; then
9245 rpathdirs="$rpathdirs $found_dir"
9246 fi
9247 else
9248 haveit=
9249 for x in $LDFLAGS $LIBICONV; do
9250
9251 acl_save_prefix="$prefix"
9252 prefix="$acl_final_prefix"
9253 acl_save_exec_prefix="$exec_prefix"
9254 exec_prefix="$acl_final_exec_prefix"
9255 eval x=\"$x\"
9256 exec_prefix="$acl_save_exec_prefix"
9257 prefix="$acl_save_prefix"
9258
9259 if test "X$x" = "X-L$found_dir"; then
9260 haveit=yes
9261 break
9262 fi
9263 done
9264 if test -z "$haveit"; then
9265 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9266 fi
9267 if test "$hardcode_minus_L" != no; then
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9269 else
9270 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9271 fi
9272 fi
9273 fi
9274 fi
9275 else
9276 if test "X$found_a" != "X"; then
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9278 else
9279 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9280 fi
9281 fi
9282 additional_includedir=
9283 case "$found_dir" in
9284 */lib | */lib/)
9285 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9286 additional_includedir="$basedir/include"
9287 ;;
9288 esac
9289 if test "X$additional_includedir" != "X"; then
9290 if test "X$additional_includedir" != "X/usr/include"; then
9291 haveit=
9292 if test "X$additional_includedir" = "X/usr/local/include"; then
9293 if test -n "$GCC"; then
9294 case $host_os in
9295 linux*) haveit=yes;;
9296 esac
9297 fi
9298 fi
9299 if test -z "$haveit"; then
9300 for x in $CPPFLAGS $INCICONV; do
9301
9302 acl_save_prefix="$prefix"
9303 prefix="$acl_final_prefix"
9304 acl_save_exec_prefix="$exec_prefix"
9305 exec_prefix="$acl_final_exec_prefix"
9306 eval x=\"$x\"
9307 exec_prefix="$acl_save_exec_prefix"
9308 prefix="$acl_save_prefix"
9309
9310 if test "X$x" = "X-I$additional_includedir"; then
9311 haveit=yes
9312 break
9313 fi
9314 done
9315 if test -z "$haveit"; then
9316 if test -d "$additional_includedir"; then
9317 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9318 fi
9319 fi
9320 fi
9321 fi
9322 fi
9323 if test -n "$found_la"; then
9324 save_libdir="$libdir"
9325 case "$found_la" in
9326 */* | *\\*) . "$found_la" ;;
9327 *) . "./$found_la" ;;
9328 esac
9329 libdir="$save_libdir"
9330 for dep in $dependency_libs; do
9331 case "$dep" in
9332 -L*)
9333 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9334 if test "X$additional_libdir" != "X/usr/lib"; then
9335 haveit=
9336 if test "X$additional_libdir" = "X/usr/local/lib"; then
9337 if test -n "$GCC"; then
9338 case $host_os in
9339 linux*) haveit=yes;;
9340 esac
9341 fi
9342 fi
9343 if test -z "$haveit"; then
9344 haveit=
9345 for x in $LDFLAGS $LIBICONV; do
9346
9347 acl_save_prefix="$prefix"
9348 prefix="$acl_final_prefix"
9349 acl_save_exec_prefix="$exec_prefix"
9350 exec_prefix="$acl_final_exec_prefix"
9351 eval x=\"$x\"
9352 exec_prefix="$acl_save_exec_prefix"
9353 prefix="$acl_save_prefix"
9354
9355 if test "X$x" = "X-L$additional_libdir"; then
9356 haveit=yes
9357 break
9358 fi
9359 done
9360 if test -z "$haveit"; then
9361 if test -d "$additional_libdir"; then
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9363 fi
9364 fi
9365 haveit=
9366 for x in $LDFLAGS $LTLIBICONV; do
9367
9368 acl_save_prefix="$prefix"
9369 prefix="$acl_final_prefix"
9370 acl_save_exec_prefix="$exec_prefix"
9371 exec_prefix="$acl_final_exec_prefix"
9372 eval x=\"$x\"
9373 exec_prefix="$acl_save_exec_prefix"
9374 prefix="$acl_save_prefix"
9375
9376 if test "X$x" = "X-L$additional_libdir"; then
9377 haveit=yes
9378 break
9379 fi
9380 done
9381 if test -z "$haveit"; then
9382 if test -d "$additional_libdir"; then
9383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9384 fi
9385 fi
9386 fi
9387 fi
9388 ;;
9389 -R*)
9390 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9391 if test "$enable_rpath" != no; then
9392 haveit=
9393 for x in $rpathdirs; do
9394 if test "X$x" = "X$dir"; then
9395 haveit=yes
9396 break
9397 fi
9398 done
9399 if test -z "$haveit"; then
9400 rpathdirs="$rpathdirs $dir"
9401 fi
9402 haveit=
9403 for x in $ltrpathdirs; do
9404 if test "X$x" = "X$dir"; then
9405 haveit=yes
9406 break
9407 fi
9408 done
9409 if test -z "$haveit"; then
9410 ltrpathdirs="$ltrpathdirs $dir"
9411 fi
9412 fi
9413 ;;
9414 -l*)
9415 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9416 ;;
9417 *.la)
9418 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9419 ;;
9420 *)
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9423 ;;
9424 esac
9425 done
9426 fi
9427 else
9428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9429 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9430 fi
9431 fi
9432 fi
9433 done
9434 done
9435 if test "X$rpathdirs" != "X"; then
9436 if test -n "$hardcode_libdir_separator"; then
9437 alldirs=
9438 for found_dir in $rpathdirs; do
9439 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9440 done
9441 acl_save_libdir="$libdir"
9442 libdir="$alldirs"
9443 eval flag=\"$hardcode_libdir_flag_spec\"
9444 libdir="$acl_save_libdir"
9445 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9446 else
9447 for found_dir in $rpathdirs; do
9448 acl_save_libdir="$libdir"
9449 libdir="$found_dir"
9450 eval flag=\"$hardcode_libdir_flag_spec\"
9451 libdir="$acl_save_libdir"
9452 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9453 done
9454 fi
9455 fi
9456 if test "X$ltrpathdirs" != "X"; then
9457 for found_dir in $ltrpathdirs; do
9458 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9459 done
9460 fi
9461
a82a04b3
CR
9462
9463
9464
abe2eb5b
CR
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2dead0c4 9476stdlib.h string.h unistd.h sys/param.h
abe2eb5b
CR
9477do
9478as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9481$as_echo_n "checking for $ac_header... " >&6; }
9482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9483 $as_echo_n "(cached) " >&6
9484fi
9485ac_res=`eval 'as_val=${'$as_ac_Header'}
9486 $as_echo "$as_val"'`
9487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9488$as_echo "$ac_res" >&6; }
9489else
9490 # Is the header compilable?
9491{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9492$as_echo_n "checking $ac_header usability... " >&6; }
9493cat >conftest.$ac_ext <<_ACEOF
9494/* confdefs.h. */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h. */
9499$ac_includes_default
9500#include <$ac_header>
9501_ACEOF
9502rm -f conftest.$ac_objext
9503if { (ac_try="$ac_compile"
9504case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9509$as_echo "$ac_try_echo") >&5
9510 (eval "$ac_compile") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest.$ac_objext; then
9520 ac_header_compiler=yes
9521else
9522 $as_echo "$as_me: failed program was:" >&5
9523sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 ac_header_compiler=no
9526fi
9527
9528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9530$as_echo "$ac_header_compiler" >&6; }
9531
9532# Is the header present?
9533{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9534$as_echo_n "checking $ac_header presence... " >&6; }
9535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h. */
9541#include <$ac_header>
9542_ACEOF
9543if { (ac_try="$ac_cpp conftest.$ac_ext"
9544case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547esac
9548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9549$as_echo "$ac_try_echo") >&5
9550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } >/dev/null && {
9557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 }; then
9560 ac_header_preproc=yes
9561else
9562 $as_echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_header_preproc=no
9566fi
9567
9568rm -f conftest.err conftest.$ac_ext
9569{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9570$as_echo "$ac_header_preproc" >&6; }
9571
9572# So? What about this header?
9573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9574 yes:no: )
9575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9576$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9578$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9579 ac_header_preproc=yes
9580 ;;
9581 no:yes:* )
9582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9583$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9585$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9587$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9589$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9591$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9593$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9594 ( cat <<\_ASBOX
9595## ------------------------------- ##
9596## Report this to bug-bash@gnu.org ##
9597## ------------------------------- ##
9598_ASBOX
9599 ) | sed "s/^/$as_me: WARNING: /" >&2
9600 ;;
9601esac
9602{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9603$as_echo_n "checking for $ac_header... " >&6; }
9604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9605 $as_echo_n "(cached) " >&6
9606else
9607 eval "$as_ac_Header=\$ac_header_preproc"
9608fi
9609ac_res=`eval 'as_val=${'$as_ac_Header'}
9610 $as_echo "$as_val"'`
9611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9612$as_echo "$ac_res" >&6; }
9613
9614fi
9615as_val=`eval 'as_val=${'$as_ac_Header'}
9616 $as_echo "$as_val"'`
9617 if test "x$as_val" = x""yes; then
2dead0c4
CR
9618 cat >>confdefs.h <<_ACEOF
9619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9620_ACEOF
e3db237e 9621
2dead0c4 9622fi
e3db237e 9623
2dead0c4 9624done
e3db237e 9625
abe2eb5b
CR
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
2dead0c4
CR
9650geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
9651strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9652__fsetlocking
abe2eb5b
CR
9653do
9654as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9655{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9656$as_echo_n "checking for $ac_func... " >&6; }
9657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9658 $as_echo_n "(cached) " >&6
9659else
9660 cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h. */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h. */
9666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668#define $ac_func innocuous_$ac_func
9669
9670/* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char $ac_func (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
9674
9675#ifdef __STDC__
9676# include <limits.h>
9677#else
9678# include <assert.h>
9679#endif
9680
9681#undef $ac_func
9682
9683/* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686#ifdef __cplusplus
9687extern "C"
9688#endif
9689char $ac_func ();
9690/* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693#if defined __stub_$ac_func || defined __stub___$ac_func
9694choke me
9695#endif
9696
9697int
9698main ()
9699{
9700return $ac_func ();
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
9706if { (ac_try="$ac_link"
9707case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
9711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712$as_echo "$ac_try_echo") >&5
9713 (eval "$ac_link") 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && {
9720 test -z "$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 } && test -s conftest$ac_exeext && {
9723 test "$cross_compiling" = yes ||
9724 $as_test_x conftest$ac_exeext
9725 }; then
9726 eval "$as_ac_var=yes"
9727else
9728 $as_echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 eval "$as_ac_var=no"
9732fi
9733
9734rm -rf conftest.dSYM
9735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9736 conftest$ac_exeext conftest.$ac_ext
9737fi
9738ac_res=`eval 'as_val=${'$as_ac_var'}
9739 $as_echo "$as_val"'`
9740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9741$as_echo "$ac_res" >&6; }
9742as_val=`eval 'as_val=${'$as_ac_var'}
9743 $as_echo "$as_val"'`
9744 if test "x$as_val" = x""yes; then
2dead0c4
CR
9745 cat >>confdefs.h <<_ACEOF
9746#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9747_ACEOF
e3db237e 9748
2dead0c4
CR
9749fi
9750done
5e13499c 9751
a82a04b3
CR
9752
9753
9754
9755
9756
9757
5e13499c
CR
9758 am_save_CPPFLAGS="$CPPFLAGS"
9759
9760 for element in $INCICONV; do
9761 haveit=
9762 for x in $CPPFLAGS; do
9763
9764 acl_save_prefix="$prefix"
9765 prefix="$acl_final_prefix"
9766 acl_save_exec_prefix="$exec_prefix"
9767 exec_prefix="$acl_final_exec_prefix"
9768 eval x=\"$x\"
9769 exec_prefix="$acl_save_exec_prefix"
9770 prefix="$acl_save_prefix"
9771
9772 if test "X$x" = "X$element"; then
9773 haveit=yes
9774 break
9775 fi
9776 done
9777 if test -z "$haveit"; then
9778 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9779 fi
9780 done
9781
a82a04b3 9782
abe2eb5b 9783 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
dd4f3dd8 9784$as_echo_n "checking for iconv... " >&6; }
abe2eb5b 9785if test "${am_cv_func_iconv+set}" = set; then
dd4f3dd8 9786 $as_echo_n "(cached) " >&6
5e13499c
CR
9787else
9788
9789 am_cv_func_iconv="no, consider installing GNU libiconv"
9790 am_cv_lib_iconv=no
abe2eb5b
CR
9791 cat >conftest.$ac_ext <<_ACEOF
9792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 9796/* end confdefs.h. */
5e13499c
CR
9797#include <stdlib.h>
9798#include <iconv.h>
9799int
9800main ()
9801{
9802iconv_t cd = iconv_open("","");
9803 iconv(cd,NULL,NULL,NULL,NULL);
9804 iconv_close(cd);
9805 ;
9806 return 0;
9807}
9808_ACEOF
abe2eb5b
CR
9809rm -f conftest.$ac_objext conftest$ac_exeext
9810if { (ac_try="$ac_link"
9811case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814esac
9815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9816$as_echo "$ac_try_echo") >&5
9817 (eval "$ac_link") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext && {
9827 test "$cross_compiling" = yes ||
9828 $as_test_x conftest$ac_exeext
9829 }; then
5e13499c 9830 am_cv_func_iconv=yes
abe2eb5b
CR
9831else
9832 $as_echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835
5e13499c 9836fi
abe2eb5b
CR
9837
9838rm -rf conftest.dSYM
9839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9840 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
9841 if test "$am_cv_func_iconv" != yes; then
9842 am_save_LIBS="$LIBS"
9843 LIBS="$LIBS $LIBICONV"
abe2eb5b
CR
9844 cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 9849/* end confdefs.h. */
5e13499c
CR
9850#include <stdlib.h>
9851#include <iconv.h>
9852int
9853main ()
9854{
9855iconv_t cd = iconv_open("","");
9856 iconv(cd,NULL,NULL,NULL,NULL);
9857 iconv_close(cd);
9858 ;
9859 return 0;
9860}
9861_ACEOF
abe2eb5b
CR
9862rm -f conftest.$ac_objext conftest$ac_exeext
9863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869$as_echo "$ac_try_echo") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest$ac_exeext && {
9880 test "$cross_compiling" = yes ||
9881 $as_test_x conftest$ac_exeext
9882 }; then
5e13499c
CR
9883 am_cv_lib_iconv=yes
9884 am_cv_func_iconv=yes
abe2eb5b
CR
9885else
9886 $as_echo "$as_me: failed program was:" >&5
9887sed 's/^/| /' conftest.$ac_ext >&5
9888
9889
5e13499c 9890fi
abe2eb5b
CR
9891
9892rm -rf conftest.dSYM
9893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9894 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
9895 LIBS="$am_save_LIBS"
9896 fi
9897
9898fi
abe2eb5b 9899{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
dd4f3dd8 9900$as_echo "$am_cv_func_iconv" >&6; }
5e13499c
CR
9901 if test "$am_cv_func_iconv" = yes; then
9902
abe2eb5b
CR
9903cat >>confdefs.h <<\_ACEOF
9904#define HAVE_ICONV 1
9905_ACEOF
5e13499c
CR
9906
9907 fi
9908 if test "$am_cv_lib_iconv" = yes; then
abe2eb5b 9909 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
dd4f3dd8 9910$as_echo_n "checking how to link with libiconv... " >&6; }
abe2eb5b 9911 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
dd4f3dd8 9912$as_echo "$LIBICONV" >&6; }
5e13499c
CR
9913 else
9914 CPPFLAGS="$am_save_CPPFLAGS"
9915 LIBICONV=
9916 LTLIBICONV=
9917 fi
9918
a82a04b3
CR
9919
9920
5e13499c 9921 if test "$am_cv_func_iconv" = yes; then
abe2eb5b 9922 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
dd4f3dd8 9923$as_echo_n "checking for iconv declaration... " >&6; }
abe2eb5b 9924 if test "${am_cv_proto_iconv+set}" = set; then
dd4f3dd8 9925 $as_echo_n "(cached) " >&6
5e13499c
CR
9926else
9927
abe2eb5b
CR
9928 cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 9933/* end confdefs.h. */
5e13499c
CR
9934
9935#include <stdlib.h>
9936#include <iconv.h>
9937extern
9938#ifdef __cplusplus
9939"C"
9940#endif
9941#if defined(__STDC__) || defined(__cplusplus)
9942size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9943#else
9944size_t iconv();
9945#endif
9946
9947int
9948main ()
9949{
9950
9951 ;
9952 return 0;
9953}
9954_ACEOF
abe2eb5b
CR
9955rm -f conftest.$ac_objext
9956if { (ac_try="$ac_compile"
9957case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9962$as_echo "$ac_try_echo") >&5
9963 (eval "$ac_compile") 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && {
9970 test -z "$ac_c_werror_flag" ||
9971 test ! -s conftest.err
9972 } && test -s conftest.$ac_objext; then
5e13499c
CR
9973 am_cv_proto_iconv_arg1=""
9974else
abe2eb5b
CR
9975 $as_echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 am_cv_proto_iconv_arg1="const"
5e13499c 9979fi
abe2eb5b 9980
b709b946 9981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
9982 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);"
9983fi
9984
9985 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
abe2eb5b 9986 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
5e13499c 9987 }$am_cv_proto_iconv" >&5
dd4f3dd8 9988$as_echo "${ac_t:-
b709b946 9989 }$am_cv_proto_iconv" >&6; }
5e13499c 9990
a82a04b3 9991cat >>confdefs.h <<_ACEOF
5e13499c 9992#define ICONV_CONST $am_cv_proto_iconv_arg1
a82a04b3 9993_ACEOF
5e13499c
CR
9994
9995 fi
9996
a82a04b3 9997
abe2eb5b 9998 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
dd4f3dd8 9999$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
abe2eb5b 10000if test "${am_cv_langinfo_codeset+set}" = set; then
dd4f3dd8 10001 $as_echo_n "(cached) " >&6
5e13499c 10002else
abe2eb5b
CR
10003 cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h. */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 10008/* end confdefs.h. */
5e13499c
CR
10009#include <langinfo.h>
10010int
10011main ()
10012{
10013char* cs = nl_langinfo(CODESET);
10014 ;
10015 return 0;
10016}
10017_ACEOF
abe2eb5b
CR
10018rm -f conftest.$ac_objext conftest$ac_exeext
10019if { (ac_try="$ac_link"
10020case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10023esac
10024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10025$as_echo "$ac_try_echo") >&5
10026 (eval "$ac_link") 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest$ac_exeext && {
10036 test "$cross_compiling" = yes ||
10037 $as_test_x conftest$ac_exeext
10038 }; then
10039 am_cv_langinfo_codeset=yes
5e13499c 10040else
abe2eb5b
CR
10041 $as_echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 am_cv_langinfo_codeset=no
5e13499c 10045fi
abe2eb5b
CR
10046
10047rm -rf conftest.dSYM
10048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
10050
10051fi
abe2eb5b 10052{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
dd4f3dd8 10053$as_echo "$am_cv_langinfo_codeset" >&6; }
5e13499c
CR
10054 if test $am_cv_langinfo_codeset = yes; then
10055
abe2eb5b
CR
10056cat >>confdefs.h <<\_ACEOF
10057#define HAVE_LANGINFO_CODESET 1
10058_ACEOF
5e13499c
CR
10059
10060 fi
10061
10062 if test $ac_cv_header_locale_h = yes; then
10063
abe2eb5b 10064 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
dd4f3dd8 10065$as_echo_n "checking for LC_MESSAGES... " >&6; }
abe2eb5b 10066if test "${am_cv_val_LC_MESSAGES+set}" = set; then
dd4f3dd8 10067 $as_echo_n "(cached) " >&6
5e13499c 10068else
abe2eb5b
CR
10069 cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 10074/* end confdefs.h. */
5e13499c
CR
10075#include <locale.h>
10076int
10077main ()
10078{
10079return LC_MESSAGES
10080 ;
10081 return 0;
10082}
10083_ACEOF
abe2eb5b
CR
10084rm -f conftest.$ac_objext conftest$ac_exeext
10085if { (ac_try="$ac_link"
10086case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091$as_echo "$ac_try_echo") >&5
10092 (eval "$ac_link") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext && {
10102 test "$cross_compiling" = yes ||
10103 $as_test_x conftest$ac_exeext
10104 }; then
5e13499c
CR
10105 am_cv_val_LC_MESSAGES=yes
10106else
abe2eb5b
CR
10107 $as_echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 am_cv_val_LC_MESSAGES=no
5e13499c 10111fi
abe2eb5b
CR
10112
10113rm -rf conftest.dSYM
10114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 conftest$ac_exeext conftest.$ac_ext
5e13499c 10116fi
abe2eb5b 10117{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
dd4f3dd8 10118$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5e13499c
CR
10119 if test $am_cv_val_LC_MESSAGES = yes; then
10120
abe2eb5b
CR
10121cat >>confdefs.h <<\_ACEOF
10122#define HAVE_LC_MESSAGES 1
10123_ACEOF
5e13499c
CR
10124
10125 fi
10126
10127 fi
10128
10129 for ac_prog in bison
10130do
10131 # Extract the first word of "$ac_prog", so it can be a program name with args.
10132set dummy $ac_prog; ac_word=$2
abe2eb5b 10133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
dd4f3dd8 10134$as_echo_n "checking for $ac_word... " >&6; }
abe2eb5b 10135if test "${ac_cv_prog_INTLBISON+set}" = set; then
dd4f3dd8 10136 $as_echo_n "(cached) " >&6
5e13499c
CR
10137else
10138 if test -n "$INTLBISON"; then
10139 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10140else
a82a04b3
CR
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
abe2eb5b 10146 for ac_exec_ext in '' $ac_executable_extensions; do
dd4f3dd8 10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a82a04b3 10148 ac_cv_prog_INTLBISON="$ac_prog"
abe2eb5b 10149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a82a04b3
CR
10150 break 2
10151 fi
10152done
abe2eb5b 10153done
b709b946 10154IFS=$as_save_IFS
5e13499c
CR
10155
10156fi
10157fi
10158INTLBISON=$ac_cv_prog_INTLBISON
10159if test -n "$INTLBISON"; then
abe2eb5b 10160 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
dd4f3dd8 10161$as_echo "$INTLBISON" >&6; }
5e13499c 10162else
abe2eb5b 10163 { $as_echo "$as_me:$LINENO: result: no" >&5
dd4f3dd8 10164$as_echo "no" >&6; }
5e13499c
CR
10165fi
10166
b709b946 10167
5e13499c
CR
10168 test -n "$INTLBISON" && break
10169done
10170
10171 if test -z "$INTLBISON"; then
10172 ac_verc_fail=yes
10173 else
abe2eb5b 10174 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
dd4f3dd8 10175$as_echo_n "checking version of bison... " >&6; }
e624d0f7
CR
10176 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10177 case $ac_prog_version in
10178 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10179 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10180 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10181 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10182 esac
abe2eb5b 10183 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
dd4f3dd8 10184$as_echo "$ac_prog_version" >&6; }
e624d0f7
CR
10185 fi
10186 if test $ac_verc_fail = yes; then
10187 INTLBISON=:
10188 fi
545f34cf 10189
a82a04b3
CR
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
abe2eb5b 10205 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
dd4f3dd8 10206$as_echo_n "checking whether NLS is requested... " >&6; }
b709b946 10207 # Check whether --enable-nls was given.
abe2eb5b 10208if test "${enable_nls+set}" = set; then
b709b946 10209 enableval=$enable_nls; USE_NLS=$enableval
5e13499c
CR
10210else
10211 USE_NLS=yes
b709b946
CR
10212fi
10213
abe2eb5b 10214 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
dd4f3dd8 10215$as_echo "$USE_NLS" >&6; }
5e13499c 10216
a82a04b3
CR
10217
10218
10219
5e13499c
CR
10220 BUILD_INCLUDED_LIBINTL=no
10221 USE_INCLUDED_LIBINTL=no
10222
10223 LIBINTL=
10224 LTLIBINTL=
10225 POSUB=
10226
10227 if test "$USE_NLS" = "yes"; then
10228 gt_use_preinstalled_gnugettext=no
10229
abe2eb5b 10230 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
dd4f3dd8 10231$as_echo_n "checking whether included gettext is requested... " >&6; }
5e13499c 10232
b709b946 10233# Check whether --with-included-gettext was given.
abe2eb5b 10234if test "${with_included_gettext+set}" = set; then
b709b946 10235 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5e13499c
CR
10236else
10237 nls_cv_force_use_gnu_gettext=no
b709b946
CR
10238fi
10239
abe2eb5b 10240 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
dd4f3dd8 10241$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5e13499c
CR
10242
10243 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10244 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10245
a82a04b3
CR
10246
10247
10248
10249
10250
abe2eb5b 10251 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
dd4f3dd8 10252$as_echo_n "checking for GNU gettext in libc... " >&6; }
abe2eb5b 10253if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
dd4f3dd8 10254 $as_echo_n "(cached) " >&6
5e13499c 10255else
abe2eb5b
CR
10256 cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h. */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 10261/* end confdefs.h. */
5e13499c
CR
10262#include <libintl.h>
10263extern int _nl_msg_cat_cntr;
10264extern int *_nl_domain_bindings;
10265int
10266main ()
10267{
10268bindtextdomain ("", "");
10269return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
10270 ;
10271 return 0;
10272}
10273_ACEOF
abe2eb5b
CR
10274rm -f conftest.$ac_objext conftest$ac_exeext
10275if { (ac_try="$ac_link"
10276case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279esac
10280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281$as_echo "$ac_try_echo") >&5
10282 (eval "$ac_link") 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest$ac_exeext && {
10292 test "$cross_compiling" = yes ||
10293 $as_test_x conftest$ac_exeext
10294 }; then
5e13499c
CR
10295 gt_cv_func_gnugettext2_libc=yes
10296else
abe2eb5b
CR
10297 $as_echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300 gt_cv_func_gnugettext2_libc=no
5e13499c 10301fi
abe2eb5b
CR
10302
10303rm -rf conftest.dSYM
10304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10305 conftest$ac_exeext conftest.$ac_ext
5e13499c 10306fi
abe2eb5b 10307{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
dd4f3dd8 10308$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
5e13499c
CR
10309
10310 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
10311
a82a04b3
CR
10312
10313
5e13499c
CR
10314 use_additional=yes
10315
10316 acl_save_prefix="$prefix"
10317 prefix="$acl_final_prefix"
10318 acl_save_exec_prefix="$exec_prefix"
10319 exec_prefix="$acl_final_exec_prefix"
10320
10321 eval additional_includedir=\"$includedir\"
10322 eval additional_libdir=\"$libdir\"
10323
10324 exec_prefix="$acl_save_exec_prefix"
10325 prefix="$acl_save_prefix"
10326
a82a04b3 10327
b709b946 10328# Check whether --with-libintl-prefix was given.
abe2eb5b 10329if test "${with_libintl_prefix+set}" = set; then
b709b946 10330 withval=$with_libintl_prefix;
5e13499c
CR
10331 if test "X$withval" = "Xno"; then
10332 use_additional=no
10333 else
10334 if test "X$withval" = "X"; then
10335
10336 acl_save_prefix="$prefix"
10337 prefix="$acl_final_prefix"
10338 acl_save_exec_prefix="$exec_prefix"
10339 exec_prefix="$acl_final_exec_prefix"
10340
10341 eval additional_includedir=\"$includedir\"
10342 eval additional_libdir=\"$libdir\"
10343
10344 exec_prefix="$acl_save_exec_prefix"
10345 prefix="$acl_save_prefix"
10346
10347 else
10348 additional_includedir="$withval/include"
10349 additional_libdir="$withval/lib"
10350 fi
10351 fi
10352
b709b946
CR
10353fi
10354
5e13499c
CR
10355 LIBINTL=
10356 LTLIBINTL=
10357 INCINTL=
10358 rpathdirs=
10359 ltrpathdirs=
10360 names_already_handled=
10361 names_next_round='intl '
10362 while test -n "$names_next_round"; do
10363 names_this_round="$names_next_round"
10364 names_next_round=
10365 for name in $names_this_round; do
10366 already_handled=
10367 for n in $names_already_handled; do
10368 if test "$n" = "$name"; then
10369 already_handled=yes
10370 break
10371 fi
10372 done
10373 if test -z "$already_handled"; then
10374 names_already_handled="$names_already_handled $name"
10375 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10376 eval value=\"\$HAVE_LIB$uppername\"
10377 if test -n "$value"; then
10378 if test "$value" = yes; then
10379 eval value=\"\$LIB$uppername\"
10380 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10381 eval value=\"\$LTLIB$uppername\"
10382 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10383 else
10384 :
10385 fi
10386 else
10387 found_dir=
10388 found_la=
10389 found_so=
10390 found_a=
10391 if test $use_additional = yes; then
f4f5e1c2 10392 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5e13499c
CR
10393 found_dir="$additional_libdir"
10394 found_so="$additional_libdir/lib$name.$shlibext"
10395 if test -f "$additional_libdir/lib$name.la"; then
10396 found_la="$additional_libdir/lib$name.la"
10397 fi
10398 else
10399 if test -f "$additional_libdir/lib$name.$libext"; then
10400 found_dir="$additional_libdir"
10401 found_a="$additional_libdir/lib$name.$libext"
10402 if test -f "$additional_libdir/lib$name.la"; then
10403 found_la="$additional_libdir/lib$name.la"
10404 fi
10405 fi
10406 fi
10407 fi
10408 if test "X$found_dir" = "X"; then
10409 for x in $LDFLAGS $LTLIBINTL; do
10410
10411 acl_save_prefix="$prefix"
10412 prefix="$acl_final_prefix"
10413 acl_save_exec_prefix="$exec_prefix"
10414 exec_prefix="$acl_final_exec_prefix"
10415 eval x=\"$x\"
10416 exec_prefix="$acl_save_exec_prefix"
10417 prefix="$acl_save_prefix"
10418
10419 case "$x" in
10420 -L*)
10421 dir=`echo "X$x" | sed -e 's/^X-L//'`
f4f5e1c2 10422 if test "X$prefer_shared" = "Xyes" && test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5e13499c
CR
10423 found_dir="$dir"
10424 found_so="$dir/lib$name.$shlibext"
10425 if test -f "$dir/lib$name.la"; then
10426 found_la="$dir/lib$name.la"
10427 fi
10428 else
10429 if test -f "$dir/lib$name.$libext"; then
10430 found_dir="$dir"
10431 found_a="$dir/lib$name.$libext"
10432 if test -f "$dir/lib$name.la"; then
10433 found_la="$dir/lib$name.la"
10434 fi
10435 fi
10436 fi
10437 ;;
10438 esac
10439 if test "X$found_dir" != "X"; then
10440 break
10441 fi
10442 done
10443 fi
10444 if test "X$found_dir" != "X"; then
10445 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10446 if test "X$found_so" != "X"; then
10447 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10449 else
10450 haveit=
10451 for x in $ltrpathdirs; do
10452 if test "X$x" = "X$found_dir"; then
10453 haveit=yes
10454 break
10455 fi
10456 done
10457 if test -z "$haveit"; then
10458 ltrpathdirs="$ltrpathdirs $found_dir"
10459 fi
10460 if test "$hardcode_direct" = yes; then
10461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10462 else
10463 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10464 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10465 haveit=
10466 for x in $rpathdirs; do
10467 if test "X$x" = "X$found_dir"; then
10468 haveit=yes
10469 break
10470 fi
10471 done
10472 if test -z "$haveit"; then
10473 rpathdirs="$rpathdirs $found_dir"
10474 fi
10475 else
10476 haveit=
10477 for x in $LDFLAGS $LIBINTL; do
10478
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10486
10487 if test "X$x" = "X-L$found_dir"; then
10488 haveit=yes
10489 break
10490 fi
10491 done
10492 if test -z "$haveit"; then
10493 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10494 fi
10495 if test "$hardcode_minus_L" != no; then
10496 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10497 else
10498 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10499 fi
10500 fi
10501 fi
10502 fi
10503 else
10504 if test "X$found_a" != "X"; then
10505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10506 else
10507 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10508 fi
10509 fi
10510 additional_includedir=
10511 case "$found_dir" in
10512 */lib | */lib/)
10513 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10514 additional_includedir="$basedir/include"
10515 ;;
10516 esac
10517 if test "X$additional_includedir" != "X"; then
10518 if test "X$additional_includedir" != "X/usr/include"; then
10519 haveit=
10520 if test "X$additional_includedir" = "X/usr/local/include"; then
10521 if test -n "$GCC"; then
10522 case $host_os in
10523 linux*) haveit=yes;;
10524 esac
10525 fi
10526 fi
10527 if test -z "$haveit"; then
10528 for x in $CPPFLAGS $INCINTL; do
10529
10530 acl_save_prefix="$prefix"
10531 prefix="$acl_final_prefix"
10532 acl_save_exec_prefix="$exec_prefix"
10533 exec_prefix="$acl_final_exec_prefix"
10534 eval x=\"$x\"
10535 exec_prefix="$acl_save_exec_prefix"
10536 prefix="$acl_save_prefix"
10537
10538 if test "X$x" = "X-I$additional_includedir"; then
10539 haveit=yes
10540 break
10541 fi
10542 done
10543 if test -z "$haveit"; then
10544 if test -d "$additional_includedir"; then
10545 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10546 fi
10547 fi
10548 fi
10549 fi
10550 fi
10551 if test -n "$found_la"; then
10552 save_libdir="$libdir"
10553 case "$found_la" in
10554 */* | *\\*) . "$found_la" ;;
10555 *) . "./$found_la" ;;
10556 esac
10557 libdir="$save_libdir"
10558 for dep in $dependency_libs; do
10559 case "$dep" in
10560 -L*)
10561 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10562 if test "X$additional_libdir" != "X/usr/lib"; then
10563 haveit=
10564 if test "X$additional_libdir" = "X/usr/local/lib"; then
10565 if test -n "$GCC"; then
10566 case $host_os in
10567 linux*) haveit=yes;;
10568 esac
10569 fi
10570 fi
10571 if test -z "$haveit"; then
10572 haveit=
10573 for x in $LDFLAGS $LIBINTL; do
10574
10575 acl_save_prefix="$prefix"
10576 prefix="$acl_final_prefix"
10577 acl_save_exec_prefix="$exec_prefix"
10578 exec_prefix="$acl_final_exec_prefix"
10579 eval x=\"$x\"
10580 exec_prefix="$acl_save_exec_prefix"
10581 prefix="$acl_save_prefix"
10582
10583 if test "X$x" = "X-L$additional_libdir"; then
10584 haveit=yes
10585 break
10586 fi
10587 done
10588 if test -z "$haveit"; then
10589 if test -d "$additional_libdir"; then
10590 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10591 fi
10592 fi
10593 haveit=
10594 for x in $LDFLAGS $LTLIBINTL; do
10595
10596 acl_save_prefix="$prefix"
10597 prefix="$acl_final_prefix"
10598 acl_save_exec_prefix="$exec_prefix"
10599 exec_prefix="$acl_final_exec_prefix"
10600 eval x=\"$x\"
10601 exec_prefix="$acl_save_exec_prefix"
10602 prefix="$acl_save_prefix"
10603
10604 if test "X$x" = "X-L$additional_libdir"; then
10605 haveit=yes
10606 break
10607 fi
10608 done
10609 if test -z "$haveit"; then
10610 if test -d "$additional_libdir"; then
10611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10612 fi
10613 fi
10614 fi
10615 fi
10616 ;;
10617 -R*)
10618 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10619 if test "$enable_rpath" != no; then
10620 haveit=
10621 for x in $rpathdirs; do
10622 if test "X$x" = "X$dir"; then
10623 haveit=yes
10624 break
10625 fi
10626 done
10627 if test -z "$haveit"; then
10628 rpathdirs="$rpathdirs $dir"
10629 fi
10630 haveit=
10631 for x in $ltrpathdirs; do
10632 if test "X$x" = "X$dir"; then
10633 haveit=yes
10634 break
10635 fi
10636 done
10637 if test -z "$haveit"; then
10638 ltrpathdirs="$ltrpathdirs $dir"
10639 fi
10640 fi
10641 ;;
10642 -l*)
10643 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10644 ;;
10645 *.la)
10646 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10647 ;;
10648 *)
10649 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10650 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10651 ;;
10652 esac
10653 done
10654 fi
10655 else
10656 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10657 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10658 fi
10659 fi
10660 fi
10661 done
10662 done
10663 if test "X$rpathdirs" != "X"; then
10664 if test -n "$hardcode_libdir_separator"; then
10665 alldirs=
10666 for found_dir in $rpathdirs; do
10667 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10668 done
10669 acl_save_libdir="$libdir"
10670 libdir="$alldirs"
10671 eval flag=\"$hardcode_libdir_flag_spec\"
10672 libdir="$acl_save_libdir"
10673 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10674 else
10675 for found_dir in $rpathdirs; do
10676 acl_save_libdir="$libdir"
10677 libdir="$found_dir"
10678 eval flag=\"$hardcode_libdir_flag_spec\"
10679 libdir="$acl_save_libdir"
10680 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10681 done
10682 fi
2dead0c4
CR
10683 fi
10684 if test "X$ltrpathdirs" != "X"; then
10685 for found_dir in $ltrpathdirs; do
10686 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10687 done
10688 fi
10689
abe2eb5b
CR
10690 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10691$as_echo_n "checking for GNU gettext in libintl... " >&6; }
10692if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
10693 $as_echo_n "(cached) " >&6
10694else
10695 gt_save_CPPFLAGS="$CPPFLAGS"
10696 CPPFLAGS="$CPPFLAGS $INCINTL"
10697 gt_save_LIBS="$LIBS"
10698 LIBS="$LIBS $LIBINTL"
10699 cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h. */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h. */
10705#include <libintl.h>
10706extern int _nl_msg_cat_cntr;
10707extern
10708#ifdef __cplusplus
10709"C"
10710#endif
10711const char *_nl_expand_alias ();
10712int
10713main ()
10714{
10715bindtextdomain ("", "");
10716return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721rm -f conftest.$ac_objext conftest$ac_exeext
10722if { (ac_try="$ac_link"
10723case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726esac
10727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10728$as_echo "$ac_try_echo") >&5
10729 (eval "$ac_link") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext && {
10739 test "$cross_compiling" = yes ||
10740 $as_test_x conftest$ac_exeext
10741 }; then
10742 gt_cv_func_gnugettext2_libintl=yes
10743else
10744 $as_echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 gt_cv_func_gnugettext2_libintl=no
10748fi
10749
10750rm -rf conftest.dSYM
10751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10752 conftest$ac_exeext conftest.$ac_ext
10753 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10754 LIBS="$LIBS $LIBICONV"
10755 cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761#include <libintl.h>
10762extern int _nl_msg_cat_cntr;
10763extern
10764#ifdef __cplusplus
10765"C"
10766#endif
10767const char *_nl_expand_alias ();
10768int
10769main ()
10770{
10771bindtextdomain ("", "");
10772return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10773 ;
10774 return 0;
10775}
10776_ACEOF
10777rm -f conftest.$ac_objext conftest$ac_exeext
10778if { (ac_try="$ac_link"
10779case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784$as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10797 }; then
10798 LIBINTL="$LIBINTL $LIBICONV"
10799 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10800 gt_cv_func_gnugettext2_libintl=yes
10801
10802else
10803 $as_echo "$as_me: failed program was:" >&5
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
10806
10807fi
10808
10809rm -rf conftest.dSYM
10810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10811 conftest$ac_exeext conftest.$ac_ext
10812 fi
10813 CPPFLAGS="$gt_save_CPPFLAGS"
10814 LIBS="$gt_save_LIBS"
10815fi
10816{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10817$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
10818 fi
10819
10820 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10821 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10822 && test "$PACKAGE" != gettext-runtime \
10823 && test "$PACKAGE" != gettext-tools; }; then
10824 gt_use_preinstalled_gnugettext=yes
10825 else
10826 LIBINTL=
10827 LTLIBINTL=
10828 INCINTL=
10829 fi
10830
10831
10832 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10833 nls_cv_use_gnu_gettext=yes
10834 fi
10835 fi
10836
10837 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10838 BUILD_INCLUDED_LIBINTL=yes
10839 USE_INCLUDED_LIBINTL=yes
10840 LIBINTL="lib/intl/libintl.a $LIBICONV"
10841 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10842 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10843 fi
10844
10845 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10846 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10847 CATOBJEXT=.gmo
10848 fi
10849
10850
10851 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10852 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10853
10854cat >>confdefs.h <<\_ACEOF
10855#define ENABLE_NLS 1
10856_ACEOF
10857
10858 else
10859 USE_NLS=no
10860 fi
10861 fi
10862
10863 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10864$as_echo_n "checking whether to use NLS... " >&6; }
10865 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10866$as_echo "$USE_NLS" >&6; }
10867 if test "$USE_NLS" = "yes"; then
10868 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10869$as_echo_n "checking where the gettext function comes from... " >&6; }
10870 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10871 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10872 gt_source="external libintl"
10873 else
10874 gt_source="libc"
10875 fi
10876 else
10877 gt_source="included intl directory"
10878 fi
10879 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10880$as_echo "$gt_source" >&6; }
10881 fi
10882
10883 if test "$USE_NLS" = "yes"; then
10884
10885 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10886 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10887 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10888$as_echo_n "checking how to link with libintl... " >&6; }
10889 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10890$as_echo "$LIBINTL" >&6; }
10891
10892 for element in $INCINTL; do
10893 haveit=
10894 for x in $CPPFLAGS; do
10895
10896 acl_save_prefix="$prefix"
10897 prefix="$acl_final_prefix"
10898 acl_save_exec_prefix="$exec_prefix"
10899 exec_prefix="$acl_final_exec_prefix"
10900 eval x=\"$x\"
10901 exec_prefix="$acl_save_exec_prefix"
10902 prefix="$acl_save_prefix"
10903
10904 if test "X$x" = "X$element"; then
10905 haveit=yes
10906 break
10907 fi
10908 done
10909 if test -z "$haveit"; then
10910 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10911 fi
10912 done
10913
10914 fi
10915
10916
10917cat >>confdefs.h <<\_ACEOF
10918#define HAVE_GETTEXT 1
10919_ACEOF
10920
10921
10922cat >>confdefs.h <<\_ACEOF
10923#define HAVE_DCGETTEXT 1
10924_ACEOF
10925
10926 fi
10927
10928 POSUB=po
10929 fi
10930
10931
10932 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10933 BUILD_INCLUDED_LIBINTL=yes
10934 fi
10935
10936
10937
10938
10939
10940 nls_cv_header_intl=
10941 nls_cv_header_libgt=
10942
10943 DATADIRNAME=share
10944
10945
10946 INSTOBJEXT=.mo
10947
10948
10949 GENCAT=gencat
10950
10951
10952 if test "$USE_INCLUDED_LIBINTL" = yes; then
10953 INTLOBJS="\$(GETTOBJS)"
10954 fi
10955
10956
10957 INTL_LIBTOOL_SUFFIX_PREFIX=
10958
10959
10960
10961 INTLLIBS="$LIBINTL"
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974ac_header_dirent=no
10975for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10976 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10977{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10978$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980 $as_echo_n "(cached) " >&6
10981else
10982 cat >conftest.$ac_ext <<_ACEOF
10983/* confdefs.h. */
10984_ACEOF
10985cat confdefs.h >>conftest.$ac_ext
10986cat >>conftest.$ac_ext <<_ACEOF
10987/* end confdefs.h. */
10988#include <sys/types.h>
10989#include <$ac_hdr>
10990
10991int
10992main ()
10993{
10994if ((DIR *) 0)
10995return 0;
10996 ;
10997 return 0;
10998}
10999_ACEOF
11000rm -f conftest.$ac_objext
11001if { (ac_try="$ac_compile"
11002case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005esac
11006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11007$as_echo "$ac_try_echo") >&5
11008 (eval "$ac_compile") 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && {
11015 test -z "$ac_c_werror_flag" ||
11016 test ! -s conftest.err
11017 } && test -s conftest.$ac_objext; then
11018 eval "$as_ac_Header=yes"
11019else
11020 $as_echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 eval "$as_ac_Header=no"
11024fi
11025
11026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027fi
11028ac_res=`eval 'as_val=${'$as_ac_Header'}
11029 $as_echo "$as_val"'`
11030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11031$as_echo "$ac_res" >&6; }
11032as_val=`eval 'as_val=${'$as_ac_Header'}
11033 $as_echo "$as_val"'`
11034 if test "x$as_val" = x""yes; then
11035 cat >>confdefs.h <<_ACEOF
11036#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11037_ACEOF
11038
11039ac_header_dirent=$ac_hdr; break
11040fi
11041
11042done
11043# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11044if test $ac_header_dirent = dirent.h; then
11045 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11046$as_echo_n "checking for library containing opendir... " >&6; }
11047if test "${ac_cv_search_opendir+set}" = set; then
11048 $as_echo_n "(cached) " >&6
11049else
11050 ac_func_search_save_LIBS=$LIBS
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char opendir ();
11065int
11066main ()
11067{
11068return opendir ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073for ac_lib in '' dir; do
11074 if test -z "$ac_lib"; then
11075 ac_res="none required"
11076 else
11077 ac_res=-l$ac_lib
11078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11079 fi
11080 rm -f conftest.$ac_objext conftest$ac_exeext
11081if { (ac_try="$ac_link"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11087$as_echo "$ac_try_echo") >&5
11088 (eval "$ac_link") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && {
11095 test -z "$ac_c_werror_flag" ||
11096 test ! -s conftest.err
11097 } && test -s conftest$ac_exeext && {
11098 test "$cross_compiling" = yes ||
11099 $as_test_x conftest$ac_exeext
11100 }; then
11101 ac_cv_search_opendir=$ac_res
11102else
11103 $as_echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106
11107fi
11108
11109rm -rf conftest.dSYM
11110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111 conftest$ac_exeext
11112 if test "${ac_cv_search_opendir+set}" = set; then
11113 break
11114fi
11115done
11116if test "${ac_cv_search_opendir+set}" = set; then
11117 :
11118else
11119 ac_cv_search_opendir=no
11120fi
11121rm conftest.$ac_ext
11122LIBS=$ac_func_search_save_LIBS
11123fi
11124{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11125$as_echo "$ac_cv_search_opendir" >&6; }
11126ac_res=$ac_cv_search_opendir
11127if test "$ac_res" != no; then
11128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11129
11130fi
11131
11132else
11133 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11134$as_echo_n "checking for library containing opendir... " >&6; }
11135if test "${ac_cv_search_opendir+set}" = set; then
11136 $as_echo_n "(cached) " >&6
11137else
11138 ac_func_search_save_LIBS=$LIBS
11139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145
11146/* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149#ifdef __cplusplus
11150extern "C"
11151#endif
11152char opendir ();
11153int
11154main ()
11155{
11156return opendir ();
11157 ;
11158 return 0;
11159}
11160_ACEOF
11161for ac_lib in '' x; do
11162 if test -z "$ac_lib"; then
11163 ac_res="none required"
11164 else
11165 ac_res=-l$ac_lib
11166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11167 fi
11168 rm -f conftest.$ac_objext conftest$ac_exeext
11169if { (ac_try="$ac_link"
11170case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11175$as_echo "$ac_try_echo") >&5
11176 (eval "$ac_link") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext && {
11186 test "$cross_compiling" = yes ||
11187 $as_test_x conftest$ac_exeext
11188 }; then
11189 ac_cv_search_opendir=$ac_res
11190else
11191 $as_echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
11194
11195fi
11196
11197rm -rf conftest.dSYM
11198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11199 conftest$ac_exeext
11200 if test "${ac_cv_search_opendir+set}" = set; then
11201 break
11202fi
11203done
11204if test "${ac_cv_search_opendir+set}" = set; then
11205 :
11206else
11207 ac_cv_search_opendir=no
11208fi
11209rm conftest.$ac_ext
11210LIBS=$ac_func_search_save_LIBS
11211fi
11212{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11213$as_echo "$ac_cv_search_opendir" >&6; }
11214ac_res=$ac_cv_search_opendir
11215if test "$ac_res" != no; then
11216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11217
11218fi
11219
11220fi
11221
11222{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11223$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11224if test "${ac_cv_header_time+set}" = set; then
11225 $as_echo_n "(cached) " >&6
11226else
11227 cat >conftest.$ac_ext <<_ACEOF
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233#include <sys/types.h>
11234#include <sys/time.h>
11235#include <time.h>
11236
11237int
11238main ()
11239{
11240if ((struct tm *) 0)
11241return 0;
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (ac_try="$ac_compile"
11248case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251esac
11252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253$as_echo "$ac_try_echo") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest.$ac_objext; then
11264 ac_cv_header_time=yes
11265else
11266 $as_echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ac_cv_header_time=no
11270fi
11271
11272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273fi
11274{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11275$as_echo "$ac_cv_header_time" >&6; }
11276if test $ac_cv_header_time = yes; then
11277
11278cat >>confdefs.h <<\_ACEOF
11279#define TIME_WITH_SYS_TIME 1
11280_ACEOF
11281
11282fi
11283
11284
11285
11286
11287for ac_header in inttypes.h
11288do
11289as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11291 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11292$as_echo_n "checking for $ac_header... " >&6; }
11293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294 $as_echo_n "(cached) " >&6
11295fi
11296ac_res=`eval 'as_val=${'$as_ac_Header'}
11297 $as_echo "$as_val"'`
11298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11299$as_echo "$ac_res" >&6; }
11300else
11301 # Is the header compilable?
11302{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11303$as_echo_n "checking $ac_header usability... " >&6; }
11304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310$ac_includes_default
11311#include <$ac_header>
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (ac_try="$ac_compile"
11315case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11320$as_echo "$ac_try_echo") >&5
11321 (eval "$ac_compile") 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } && {
11328 test -z "$ac_c_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest.$ac_objext; then
11331 ac_header_compiler=yes
11332else
11333 $as_echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 ac_header_compiler=no
11337fi
11338
11339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11341$as_echo "$ac_header_compiler" >&6; }
11342
11343# Is the header present?
11344{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11345$as_echo_n "checking $ac_header presence... " >&6; }
11346cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352#include <$ac_header>
11353_ACEOF
11354if { (ac_try="$ac_cpp conftest.$ac_ext"
11355case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11360$as_echo "$ac_try_echo") >&5
11361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } >/dev/null && {
11368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 }; then
11371 ac_header_preproc=yes
11372else
11373 $as_echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_header_preproc=no
11377fi
11378
11379rm -f conftest.err conftest.$ac_ext
11380{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381$as_echo "$ac_header_preproc" >&6; }
11382
11383# So? What about this header?
11384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11391 ;;
11392 no:yes:* )
11393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 ( cat <<\_ASBOX
11406## ------------------------------- ##
11407## Report this to bug-bash@gnu.org ##
11408## ------------------------------- ##
11409_ASBOX
11410 ) | sed "s/^/$as_me: WARNING: /" >&2
11411 ;;
11412esac
11413{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11414$as_echo_n "checking for $ac_header... " >&6; }
11415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 $as_echo_n "(cached) " >&6
11417else
11418 eval "$as_ac_Header=\$ac_header_preproc"
11419fi
11420ac_res=`eval 'as_val=${'$as_ac_Header'}
11421 $as_echo "$as_val"'`
11422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11423$as_echo "$ac_res" >&6; }
11424
11425fi
11426as_val=`eval 'as_val=${'$as_ac_Header'}
11427 $as_echo "$as_val"'`
11428 if test "x$as_val" = x""yes; then
11429 cat >>confdefs.h <<_ACEOF
11430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431_ACEOF
11432
11433fi
11434
11435done
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11462 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
11463 stdbool.h stddef.h stdint.h netdb.h pwd.h grp.h strings.h \
11464 regex.h syslog.h ulimit.h
11465do
11466as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11469$as_echo_n "checking for $ac_header... " >&6; }
11470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 $as_echo_n "(cached) " >&6
11472fi
11473ac_res=`eval 'as_val=${'$as_ac_Header'}
11474 $as_echo "$as_val"'`
11475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11476$as_echo "$ac_res" >&6; }
11477else
11478 # Is the header compilable?
11479{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11480$as_echo_n "checking $ac_header usability... " >&6; }
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487$ac_includes_default
11488#include <$ac_header>
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (ac_try="$ac_compile"
11492case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11497$as_echo "$ac_try_echo") >&5
11498 (eval "$ac_compile") 2>conftest.er1
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } && {
11505 test -z "$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 } && test -s conftest.$ac_objext; then
11508 ac_header_compiler=yes
11509else
11510 $as_echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_header_compiler=no
11514fi
11515
11516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11518$as_echo "$ac_header_compiler" >&6; }
11519
11520# Is the header present?
11521{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11522$as_echo_n "checking $ac_header presence... " >&6; }
11523cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h. */
11529#include <$ac_header>
11530_ACEOF
11531if { (ac_try="$ac_cpp conftest.$ac_ext"
11532case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535esac
11536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537$as_echo "$ac_try_echo") >&5
11538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } >/dev/null && {
11545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 }; then
11548 ac_header_preproc=yes
11549else
11550 $as_echo "$as_me: failed program was:" >&5
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 ac_header_preproc=no
11554fi
11555
11556rm -f conftest.err conftest.$ac_ext
11557{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11558$as_echo "$ac_header_preproc" >&6; }
11559
11560# So? What about this header?
11561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11562 yes:no: )
11563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11564$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11566$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11567 ac_header_preproc=yes
11568 ;;
11569 no:yes:* )
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11571$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11573$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11575$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11577$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11579$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11581$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11582 ( cat <<\_ASBOX
11583## ------------------------------- ##
11584## Report this to bug-bash@gnu.org ##
11585## ------------------------------- ##
11586_ASBOX
11587 ) | sed "s/^/$as_me: WARNING: /" >&2
11588 ;;
11589esac
11590{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11591$as_echo_n "checking for $ac_header... " >&6; }
11592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 $as_echo_n "(cached) " >&6
11594else
11595 eval "$as_ac_Header=\$ac_header_preproc"
11596fi
11597ac_res=`eval 'as_val=${'$as_ac_Header'}
11598 $as_echo "$as_val"'`
11599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11600$as_echo "$ac_res" >&6; }
11601
11602fi
11603as_val=`eval 'as_val=${'$as_ac_Header'}
11604 $as_echo "$as_val"'`
11605 if test "x$as_val" = x""yes; then
11606 cat >>confdefs.h <<_ACEOF
11607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11608_ACEOF
11609
11610fi
11611
11612done
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
11627 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11628 sys/time.h sys/times.h sys/types.h sys/wait.h
11629do
11630as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11633$as_echo_n "checking for $ac_header... " >&6; }
11634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 $as_echo_n "(cached) " >&6
11636fi
11637ac_res=`eval 'as_val=${'$as_ac_Header'}
11638 $as_echo "$as_val"'`
11639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11640$as_echo "$ac_res" >&6; }
11641else
11642 # Is the header compilable?
11643{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644$as_echo_n "checking $ac_header usability... " >&6; }
11645cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651$ac_includes_default
11652#include <$ac_header>
11653_ACEOF
11654rm -f conftest.$ac_objext
11655if { (ac_try="$ac_compile"
11656case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659esac
11660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11661$as_echo "$ac_try_echo") >&5
11662 (eval "$ac_compile") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest.$ac_objext; then
11672 ac_header_compiler=yes
11673else
11674 $as_echo "$as_me: failed program was:" >&5
11675sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 ac_header_compiler=no
11678fi
11679
11680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11682$as_echo "$ac_header_compiler" >&6; }
11683
11684# Is the header present?
11685{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11686$as_echo_n "checking $ac_header presence... " >&6; }
11687cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693#include <$ac_header>
11694_ACEOF
11695if { (ac_try="$ac_cpp conftest.$ac_ext"
11696case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701$as_echo "$ac_try_echo") >&5
11702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } >/dev/null && {
11709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 }; then
11712 ac_header_preproc=yes
11713else
11714 $as_echo "$as_me: failed program was:" >&5
11715sed 's/^/| /' conftest.$ac_ext >&5
11716
11717 ac_header_preproc=no
11718fi
11719
11720rm -f conftest.err conftest.$ac_ext
11721{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722$as_echo "$ac_header_preproc" >&6; }
11723
11724# So? What about this header?
11725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726 yes:no: )
11727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731 ac_header_preproc=yes
11732 ;;
11733 no:yes:* )
11734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11741$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11746 ( cat <<\_ASBOX
11747## ------------------------------- ##
11748## Report this to bug-bash@gnu.org ##
11749## ------------------------------- ##
11750_ASBOX
11751 ) | sed "s/^/$as_me: WARNING: /" >&2
11752 ;;
11753esac
11754{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11755$as_echo_n "checking for $ac_header... " >&6; }
11756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757 $as_echo_n "(cached) " >&6
11758else
11759 eval "$as_ac_Header=\$ac_header_preproc"
11760fi
11761ac_res=`eval 'as_val=${'$as_ac_Header'}
11762 $as_echo "$as_val"'`
11763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11764$as_echo "$ac_res" >&6; }
11765
11766fi
11767as_val=`eval 'as_val=${'$as_ac_Header'}
11768 $as_echo "$as_val"'`
11769 if test "x$as_val" = x""yes; then
11770 cat >>confdefs.h <<_ACEOF
11771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11772_ACEOF
11773
11774fi
11775
11776done
11777
11778
11779
11780for ac_header in netinet/in.h arpa/inet.h
11781do
11782as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11785$as_echo_n "checking for $ac_header... " >&6; }
11786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11787 $as_echo_n "(cached) " >&6
11788fi
11789ac_res=`eval 'as_val=${'$as_ac_Header'}
11790 $as_echo "$as_val"'`
11791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11792$as_echo "$ac_res" >&6; }
11793else
11794 # Is the header compilable?
11795{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11796$as_echo_n "checking $ac_header usability... " >&6; }
11797cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803$ac_includes_default
11804#include <$ac_header>
11805_ACEOF
11806rm -f conftest.$ac_objext
11807if { (ac_try="$ac_compile"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11813$as_echo "$ac_try_echo") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } && {
11821 test -z "$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 } && test -s conftest.$ac_objext; then
11824 ac_header_compiler=yes
11825else
11826 $as_echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_header_compiler=no
11830fi
11831
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11834$as_echo "$ac_header_compiler" >&6; }
11835
11836# Is the header present?
11837{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11838$as_echo_n "checking $ac_header presence... " >&6; }
11839cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845#include <$ac_header>
11846_ACEOF
11847if { (ac_try="$ac_cpp conftest.$ac_ext"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853$as_echo "$ac_try_echo") >&5
11854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev/null && {
11861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 }; then
11864 ac_header_preproc=yes
11865else
11866 $as_echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 ac_header_preproc=no
11870fi
11871
11872rm -f conftest.err conftest.$ac_ext
11873{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11874$as_echo "$ac_header_preproc" >&6; }
11875
11876# So? What about this header?
11877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11878 yes:no: )
11879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11880$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11882$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11883 ac_header_preproc=yes
11884 ;;
11885 no:yes:* )
11886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11887$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11889$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11891$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11893$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11895$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11897$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11898 ( cat <<\_ASBOX
11899## ------------------------------- ##
11900## Report this to bug-bash@gnu.org ##
11901## ------------------------------- ##
11902_ASBOX
11903 ) | sed "s/^/$as_me: WARNING: /" >&2
11904 ;;
11905esac
11906{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11907$as_echo_n "checking for $ac_header... " >&6; }
11908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 $as_echo_n "(cached) " >&6
11910else
11911 eval "$as_ac_Header=\$ac_header_preproc"
11912fi
11913ac_res=`eval 'as_val=${'$as_ac_Header'}
11914 $as_echo "$as_val"'`
11915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11916$as_echo "$ac_res" >&6; }
11917
11918fi
11919as_val=`eval 'as_val=${'$as_ac_Header'}
11920 $as_echo "$as_val"'`
11921 if test "x$as_val" = x""yes; then
11922 cat >>confdefs.h <<_ACEOF
11923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11924_ACEOF
11925
11926fi
11927
11928done
11929
11930
11931{ $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11932$as_echo_n "checking for sys/ptem.h... " >&6; }
11933if test "${ac_cv_header_sys_ptem_h+set}" = set; then
11934 $as_echo_n "(cached) " >&6
11935else
11936 cat >conftest.$ac_ext <<_ACEOF
11937/* confdefs.h. */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
11942
11943#if HAVE_SYS_STREAM_H
11944# include <sys/stream.h>
11945#endif
11946
11947
11948#include <sys/ptem.h>
11949_ACEOF
11950rm -f conftest.$ac_objext
11951if { (ac_try="$ac_compile"
11952case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11957$as_echo "$ac_try_echo") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11968 ac_cv_header_sys_ptem_h=yes
11969else
11970 $as_echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_cv_header_sys_ptem_h=no
11974fi
11975
11976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977fi
11978{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11979$as_echo "$ac_cv_header_sys_ptem_h" >&6; }
11980
11981
11982
11983# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11984# for constant arguments. Useless!
11985{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11986$as_echo_n "checking for working alloca.h... " >&6; }
11987if test "${ac_cv_working_alloca_h+set}" = set; then
11988 $as_echo_n "(cached) " >&6
11989else
11990 cat >conftest.$ac_ext <<_ACEOF
11991/* confdefs.h. */
11992_ACEOF
11993cat confdefs.h >>conftest.$ac_ext
11994cat >>conftest.$ac_ext <<_ACEOF
11995/* end confdefs.h. */
11996#include <alloca.h>
11997int
11998main ()
11999{
12000char *p = (char *) alloca (2 * sizeof (int));
12001 if (p) return 0;
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006rm -f conftest.$ac_objext conftest$ac_exeext
12007if { (ac_try="$ac_link"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12013$as_echo "$ac_try_echo") >&5
12014 (eval "$ac_link") 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } && {
12021 test -z "$ac_c_werror_flag" ||
12022 test ! -s conftest.err
12023 } && test -s conftest$ac_exeext && {
12024 test "$cross_compiling" = yes ||
12025 $as_test_x conftest$ac_exeext
12026 }; then
12027 ac_cv_working_alloca_h=yes
12028else
12029 $as_echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_cv_working_alloca_h=no
12033fi
12034
12035rm -rf conftest.dSYM
12036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12037 conftest$ac_exeext conftest.$ac_ext
12038fi
12039{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12040$as_echo "$ac_cv_working_alloca_h" >&6; }
12041if test $ac_cv_working_alloca_h = yes; then
12042
12043cat >>confdefs.h <<\_ACEOF
12044#define HAVE_ALLOCA_H 1
12045_ACEOF
12046
12047fi
12048
12049{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
12050$as_echo_n "checking for alloca... " >&6; }
12051if test "${ac_cv_func_alloca_works+set}" = set; then
12052 $as_echo_n "(cached) " >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060#ifdef __GNUC__
12061# define alloca __builtin_alloca
12062#else
12063# ifdef _MSC_VER
12064# include <malloc.h>
12065# define alloca _alloca
12066# else
12067# ifdef HAVE_ALLOCA_H
12068# include <alloca.h>
12069# else
12070# ifdef _AIX
12071 #pragma alloca
12072# else
12073# ifndef alloca /* predefined by HP cc +Olibcalls */
12074char *alloca ();
12075# endif
12076# endif
12077# endif
12078# endif
12079#endif
12080
12081int
12082main ()
12083{
12084char *p = (char *) alloca (1);
12085 if (p) return 0;
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097$as_echo "$ac_try_echo") >&5
12098 (eval "$ac_link") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest$ac_exeext && {
12108 test "$cross_compiling" = yes ||
12109 $as_test_x conftest$ac_exeext
12110 }; then
12111 ac_cv_func_alloca_works=yes
12112else
12113 $as_echo "$as_me: failed program was:" >&5
12114sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 ac_cv_func_alloca_works=no
12117fi
12118
12119rm -rf conftest.dSYM
12120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12121 conftest$ac_exeext conftest.$ac_ext
12122fi
12123{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12124$as_echo "$ac_cv_func_alloca_works" >&6; }
12125
12126if test $ac_cv_func_alloca_works = yes; then
12127
12128cat >>confdefs.h <<\_ACEOF
12129#define HAVE_ALLOCA 1
12130_ACEOF
12131
12132else
12133 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12134# that cause trouble. Some versions do not even contain alloca or
12135# contain a buggy version. If you still want to use their alloca,
12136# use ar to extract alloca.o from them instead of compiling alloca.c.
12137
12138ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12139
12140cat >>confdefs.h <<\_ACEOF
12141#define C_ALLOCA 1
12142_ACEOF
12143
12144
12145{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12146$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12147if test "${ac_cv_os_cray+set}" = set; then
12148 $as_echo_n "(cached) " >&6
12149else
12150 cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156#if defined CRAY && ! defined CRAY2
12157webecray
12158#else
12159wenotbecray
12160#endif
12161
12162_ACEOF
12163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12164 $EGREP "webecray" >/dev/null 2>&1; then
12165 ac_cv_os_cray=yes
12166else
12167 ac_cv_os_cray=no
12168fi
12169rm -f conftest*
12170
12171fi
12172{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12173$as_echo "$ac_cv_os_cray" >&6; }
12174if test $ac_cv_os_cray = yes; then
12175 for ac_func in _getb67 GETB67 getb67; do
12176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12177{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12178$as_echo_n "checking for $ac_func... " >&6; }
12179if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12180 $as_echo_n "(cached) " >&6
12181else
12182 cat >conftest.$ac_ext <<_ACEOF
12183/* confdefs.h. */
12184_ACEOF
12185cat confdefs.h >>conftest.$ac_ext
12186cat >>conftest.$ac_ext <<_ACEOF
12187/* end confdefs.h. */
12188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12190#define $ac_func innocuous_$ac_func
12191
12192/* System header to define __stub macros and hopefully few prototypes,
12193 which can conflict with char $ac_func (); below.
12194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12195 <limits.h> exists even on freestanding compilers. */
12196
12197#ifdef __STDC__
12198# include <limits.h>
12199#else
12200# include <assert.h>
12201#endif
12202
12203#undef $ac_func
12204
12205/* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208#ifdef __cplusplus
12209extern "C"
12210#endif
12211char $ac_func ();
12212/* The GNU C library defines this for functions which it implements
12213 to always fail with ENOSYS. Some functions are actually named
12214 something starting with __ and the normal name is an alias. */
12215#if defined __stub_$ac_func || defined __stub___$ac_func
12216choke me
12217#endif
12218
12219int
12220main ()
12221{
12222return $ac_func ();
12223 ;
12224 return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext conftest$ac_exeext
12228if { (ac_try="$ac_link"
12229case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12234$as_echo "$ac_try_echo") >&5
12235 (eval "$ac_link") 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } && {
12242 test -z "$ac_c_werror_flag" ||
12243 test ! -s conftest.err
12244 } && test -s conftest$ac_exeext && {
12245 test "$cross_compiling" = yes ||
12246 $as_test_x conftest$ac_exeext
12247 }; then
12248 eval "$as_ac_var=yes"
12249else
12250 $as_echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 eval "$as_ac_var=no"
12254fi
12255
12256rm -rf conftest.dSYM
12257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12258 conftest$ac_exeext conftest.$ac_ext
12259fi
12260ac_res=`eval 'as_val=${'$as_ac_var'}
12261 $as_echo "$as_val"'`
12262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12263$as_echo "$ac_res" >&6; }
12264as_val=`eval 'as_val=${'$as_ac_var'}
12265 $as_echo "$as_val"'`
12266 if test "x$as_val" = x""yes; then
12267
12268cat >>confdefs.h <<_ACEOF
12269#define CRAY_STACKSEG_END $ac_func
12270_ACEOF
12271
12272 break
12273fi
12274
12275 done
12276fi
12277
12278{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12279$as_echo_n "checking stack direction for C alloca... " >&6; }
12280if test "${ac_cv_c_stack_direction+set}" = set; then
12281 $as_echo_n "(cached) " >&6
12282else
12283 if test "$cross_compiling" = yes; then
12284 ac_cv_c_stack_direction=0
12285else
12286 cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292$ac_includes_default
12293int
12294find_stack_direction ()
12295{
12296 static char *addr = 0;
12297 auto char dummy;
12298 if (addr == 0)
12299 {
12300 addr = &dummy;
12301 return find_stack_direction ();
12302 }
12303 else
12304 return (&dummy > addr) ? 1 : -1;
12305}
12306
12307int
12308main ()
12309{
12310 return find_stack_direction () < 0;
12311}
12312_ACEOF
12313rm -f conftest$ac_exeext
12314if { (ac_try="$ac_link"
12315case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318esac
12319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12320$as_echo "$ac_try_echo") >&5
12321 (eval "$ac_link") 2>&5
12322 ac_status=$?
12323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330$as_echo "$ac_try_echo") >&5
12331 (eval "$ac_try") 2>&5
12332 ac_status=$?
12333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_c_stack_direction=1
12336else
12337 $as_echo "$as_me: program exited with status $ac_status" >&5
12338$as_echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341( exit $ac_status )
12342ac_cv_c_stack_direction=-1
12343fi
12344rm -rf conftest.dSYM
12345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12346fi
12347
12348
12349fi
12350{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12351$as_echo "$ac_cv_c_stack_direction" >&6; }
12352
12353cat >>confdefs.h <<_ACEOF
12354#define STACK_DIRECTION $ac_cv_c_stack_direction
12355_ACEOF
12356
12357
12358fi
12359
12360{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12361$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12362if test "${ac_cv_func_getpgrp_void+set}" = set; then
12363 $as_echo_n "(cached) " >&6
12364else
12365 # Use it with a single arg.
12366cat >conftest.$ac_ext <<_ACEOF
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372$ac_includes_default
12373int
12374main ()
12375{
12376getpgrp (0);
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381rm -f conftest.$ac_objext
12382if { (ac_try="$ac_compile"
12383case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12388$as_echo "$ac_try_echo") >&5
12389 (eval "$ac_compile") 2>conftest.er1
12390 ac_status=$?
12391 grep -v '^ *+' conftest.er1 >conftest.err
12392 rm -f conftest.er1
12393 cat conftest.err >&5
12394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } && {
12396 test -z "$ac_c_werror_flag" ||
12397 test ! -s conftest.err
12398 } && test -s conftest.$ac_objext; then
12399 ac_cv_func_getpgrp_void=no
12400else
12401 $as_echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 ac_cv_func_getpgrp_void=yes
12405fi
12406
12407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408
12409fi
12410{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12411$as_echo "$ac_cv_func_getpgrp_void" >&6; }
12412if test $ac_cv_func_getpgrp_void = yes; then
12413
12414cat >>confdefs.h <<\_ACEOF
12415#define GETPGRP_VOID 1
12416_ACEOF
12417
12418fi
12419
12420if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12421 $as_echo_n "(cached) " >&6
12422else
12423 ac_cv_func_setvbuf_reversed=no
12424fi
12425
12426
12427
12428for ac_func in vprintf
12429do
12430as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12431{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12432$as_echo_n "checking for $ac_func... " >&6; }
12433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12434 $as_echo_n "(cached) " >&6
12435else
12436 cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12444#define $ac_func innocuous_$ac_func
12445
12446/* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below.
12448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449 <limits.h> exists even on freestanding compilers. */
12450
12451#ifdef __STDC__
12452# include <limits.h>
12453#else
12454# include <assert.h>
12455#endif
12456
12457#undef $ac_func
12458
12459/* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12462#ifdef __cplusplus
12463extern "C"
12464#endif
12465char $ac_func ();
12466/* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469#if defined __stub_$ac_func || defined __stub___$ac_func
12470choke me
12471#endif
12472
12473int
12474main ()
12475{
12476return $ac_func ();
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext conftest$ac_exeext
12482if { (ac_try="$ac_link"
12483case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488$as_echo "$ac_try_echo") >&5
12489 (eval "$ac_link") 2>conftest.er1
12490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext && {
12499 test "$cross_compiling" = yes ||
12500 $as_test_x conftest$ac_exeext
12501 }; then
12502 eval "$as_ac_var=yes"
12503else
12504 $as_echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 eval "$as_ac_var=no"
12508fi
12509
12510rm -rf conftest.dSYM
12511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513fi
12514ac_res=`eval 'as_val=${'$as_ac_var'}
12515 $as_echo "$as_val"'`
12516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12517$as_echo "$ac_res" >&6; }
12518as_val=`eval 'as_val=${'$as_ac_var'}
12519 $as_echo "$as_val"'`
12520 if test "x$as_val" = x""yes; then
12521 cat >>confdefs.h <<_ACEOF
12522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12523_ACEOF
12524
12525{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12526$as_echo_n "checking for _doprnt... " >&6; }
12527if test "${ac_cv_func__doprnt+set}" = set; then
12528 $as_echo_n "(cached) " >&6
12529else
12530 cat >conftest.$ac_ext <<_ACEOF
12531/* confdefs.h. */
12532_ACEOF
12533cat confdefs.h >>conftest.$ac_ext
12534cat >>conftest.$ac_ext <<_ACEOF
12535/* end confdefs.h. */
12536/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12538#define _doprnt innocuous__doprnt
12539
12540/* System header to define __stub macros and hopefully few prototypes,
12541 which can conflict with char _doprnt (); below.
12542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12543 <limits.h> exists even on freestanding compilers. */
12544
12545#ifdef __STDC__
12546# include <limits.h>
12547#else
12548# include <assert.h>
12549#endif
12550
12551#undef _doprnt
12552
12553/* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12556#ifdef __cplusplus
12557extern "C"
12558#endif
12559char _doprnt ();
12560/* The GNU C library defines this for functions which it implements
12561 to always fail with ENOSYS. Some functions are actually named
12562 something starting with __ and the normal name is an alias. */
12563#if defined __stub__doprnt || defined __stub____doprnt
12564choke me
12565#endif
12566
12567int
12568main ()
12569{
12570return _doprnt ();
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575rm -f conftest.$ac_objext conftest$ac_exeext
12576if { (ac_try="$ac_link"
12577case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12580esac
12581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12582$as_echo "$ac_try_echo") >&5
12583 (eval "$ac_link") 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && {
12590 test -z "$ac_c_werror_flag" ||
12591 test ! -s conftest.err
12592 } && test -s conftest$ac_exeext && {
12593 test "$cross_compiling" = yes ||
12594 $as_test_x conftest$ac_exeext
12595 }; then
12596 ac_cv_func__doprnt=yes
12597else
12598 $as_echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ac_cv_func__doprnt=no
12602fi
12603
12604rm -rf conftest.dSYM
12605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12606 conftest$ac_exeext conftest.$ac_ext
12607fi
12608{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12609$as_echo "$ac_cv_func__doprnt" >&6; }
12610if test "x$ac_cv_func__doprnt" = x""yes; then
12611
12612cat >>confdefs.h <<\_ACEOF
12613#define HAVE_DOPRNT 1
12614_ACEOF
12615
12616fi
12617
12618fi
12619done
12620
12621
12622{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12623$as_echo_n "checking for working strcoll... " >&6; }
12624if test "${ac_cv_func_strcoll_works+set}" = set; then
12625 $as_echo_n "(cached) " >&6
12626else
12627 if test "$cross_compiling" = yes; then
12628 ac_cv_func_strcoll_works=no
12629else
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636$ac_includes_default
12637int
12638main ()
12639{
12640return (strcoll ("abc", "def") >= 0 ||
12641 strcoll ("ABC", "DEF") >= 0 ||
12642 strcoll ("123", "456") >= 0)
12643 ;
12644 return 0;
12645}
12646_ACEOF
12647rm -f conftest$ac_exeext
12648if { (ac_try="$ac_link"
12649case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
12653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654$as_echo "$ac_try_echo") >&5
12655 (eval "$ac_link") 2>&5
12656 ac_status=$?
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662esac
12663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12664$as_echo "$ac_try_echo") >&5
12665 (eval "$ac_try") 2>&5
12666 ac_status=$?
12667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_func_strcoll_works=yes
12670else
12671 $as_echo "$as_me: program exited with status $ac_status" >&5
12672$as_echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675( exit $ac_status )
12676ac_cv_func_strcoll_works=no
12677fi
12678rm -rf conftest.dSYM
12679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12680fi
12681
12682
12683fi
12684{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12685$as_echo "$ac_cv_func_strcoll_works" >&6; }
12686if test $ac_cv_func_strcoll_works = yes; then
12687
12688cat >>confdefs.h <<\_ACEOF
12689#define HAVE_STRCOLL 1
12690_ACEOF
12691
12692fi
12693
12694
12695
12696if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12697 MALLOC_TARGET=alloca
12698 MALLOC_SRC=alloca.c
12699
12700 MALLOC_LIB='-lmalloc'
12701 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12702 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12703 MALLOC_DEP='$(MALLOC_LIBRARY)'
12704fi
12705
12706if test "$ac_cv_func_vprintf" = no; then
12707 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12708$as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
12709 cat >conftest.$ac_ext <<_ACEOF
12710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715#include <stdio.h>
12716
12717_ACEOF
12718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12719 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
12720 ac_cv_func_vprintf=yes
12721fi
12722rm -f conftest*
12723
12724 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12725$as_echo "$ac_cv_func_vprintf" >&6; }
12726 if test $ac_cv_func_vprintf = yes; then
12727 cat >>confdefs.h <<\_ACEOF
12728#define HAVE_VPRINTF 1
12729_ACEOF
12730
12731 fi
12732fi
12733
12734if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
12735 case " $LIBOBJS " in
12736 *" vprint.$ac_objext "* ) ;;
12737 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12738 ;;
12739esac
12740
12741fi
12742
12743{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12744$as_echo_n "checking return type of signal handlers... " >&6; }
12745if test "${ac_cv_type_signal+set}" = set; then
12746 $as_echo_n "(cached) " >&6
12747else
12748 cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754#include <sys/types.h>
12755#include <signal.h>
12756
12757int
12758main ()
12759{
12760return *(signal (0, 0)) (0) == 1;
12761 ;
12762 return 0;
12763}
12764_ACEOF
12765rm -f conftest.$ac_objext
12766if { (ac_try="$ac_compile"
12767case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770esac
12771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12772$as_echo "$ac_try_echo") >&5
12773 (eval "$ac_compile") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest.$ac_objext; then
12783 ac_cv_type_signal=int
12784else
12785 $as_echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788 ac_cv_type_signal=void
12789fi
12790
12791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792fi
12793{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12794$as_echo "$ac_cv_type_signal" >&6; }
12795
12796cat >>confdefs.h <<_ACEOF
12797#define RETSIGTYPE $ac_cv_type_signal
12798_ACEOF
12799
12800
12801
12802{ $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12803$as_echo_n "checking for __setostype... " >&6; }
12804if test "${ac_cv_func___setostype+set}" = set; then
12805 $as_echo_n "(cached) " >&6
12806else
12807 cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12815#define __setostype innocuous___setostype
12816
12817/* System header to define __stub macros and hopefully few prototypes,
12818 which can conflict with char __setostype (); below.
12819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12820 <limits.h> exists even on freestanding compilers. */
12821
12822#ifdef __STDC__
12823# include <limits.h>
12824#else
12825# include <assert.h>
12826#endif
12827
12828#undef __setostype
12829
12830/* Override any GCC internal prototype to avoid an error.
12831 Use char because int might match the return type of a GCC
12832 builtin and then its argument prototype would still apply. */
12833#ifdef __cplusplus
12834extern "C"
12835#endif
12836char __setostype ();
12837/* The GNU C library defines this for functions which it implements
12838 to always fail with ENOSYS. Some functions are actually named
12839 something starting with __ and the normal name is an alias. */
12840#if defined __stub___setostype || defined __stub_____setostype
12841choke me
12842#endif
12843
12844int
12845main ()
12846{
12847return __setostype ();
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852rm -f conftest.$ac_objext conftest$ac_exeext
12853if { (ac_try="$ac_link"
12854case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857esac
12858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12859$as_echo "$ac_try_echo") >&5
12860 (eval "$ac_link") 2>conftest.er1
12861 ac_status=$?
12862 grep -v '^ *+' conftest.er1 >conftest.err
12863 rm -f conftest.er1
12864 cat conftest.err >&5
12865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } && {
12867 test -z "$ac_c_werror_flag" ||
12868 test ! -s conftest.err
12869 } && test -s conftest$ac_exeext && {
12870 test "$cross_compiling" = yes ||
12871 $as_test_x conftest$ac_exeext
12872 }; then
12873 ac_cv_func___setostype=yes
12874else
12875 $as_echo "$as_me: failed program was:" >&5
12876sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_cv_func___setostype=no
12879fi
12880
12881rm -rf conftest.dSYM
12882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12883 conftest$ac_exeext conftest.$ac_ext
12884fi
12885{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12886$as_echo "$ac_cv_func___setostype" >&6; }
12887if test "x$ac_cv_func___setostype" = x""yes; then
12888 cat >>confdefs.h <<\_ACEOF
12889#define HAVE_SETOSTYPE 1
12890_ACEOF
12891
12892fi
12893
12894{ $as_echo "$as_me:$LINENO: checking for wait3" >&5
12895$as_echo_n "checking for wait3... " >&6; }
12896if test "${ac_cv_func_wait3+set}" = set; then
12897 $as_echo_n "(cached) " >&6
12898else
12899 cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h. */
12905/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12907#define wait3 innocuous_wait3
12908
12909/* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char wait3 (); below.
12911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 <limits.h> exists even on freestanding compilers. */
12913
12914#ifdef __STDC__
12915# include <limits.h>
12916#else
12917# include <assert.h>
12918#endif
12919
12920#undef wait3
12921
12922/* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925#ifdef __cplusplus
12926extern "C"
12927#endif
12928char wait3 ();
12929/* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932#if defined __stub_wait3 || defined __stub___wait3
12933choke me
12934#endif
12935
12936int
12937main ()
12938{
12939return wait3 ();
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext conftest$ac_exeext
12945if { (ac_try="$ac_link"
12946case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949esac
12950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12951$as_echo "$ac_try_echo") >&5
12952 (eval "$ac_link") 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && {
12959 test -z "$ac_c_werror_flag" ||
12960 test ! -s conftest.err
12961 } && test -s conftest$ac_exeext && {
12962 test "$cross_compiling" = yes ||
12963 $as_test_x conftest$ac_exeext
12964 }; then
12965 ac_cv_func_wait3=yes
12966else
12967 $as_echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970 ac_cv_func_wait3=no
12971fi
12972
12973rm -rf conftest.dSYM
12974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12975 conftest$ac_exeext conftest.$ac_ext
12976fi
12977{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12978$as_echo "$ac_cv_func_wait3" >&6; }
12979if test "x$ac_cv_func_wait3" = x""yes; then
12980 cat >>confdefs.h <<\_ACEOF
12981#define HAVE_WAIT3 1
12982_ACEOF
12983
12984fi
12985
12986
12987{ $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
12988$as_echo_n "checking for mkfifo... " >&6; }
12989if test "${ac_cv_func_mkfifo+set}" = set; then
12990 $as_echo_n "(cached) " >&6
12991else
12992 cat >conftest.$ac_ext <<_ACEOF
12993/* confdefs.h. */
12994_ACEOF
12995cat confdefs.h >>conftest.$ac_ext
12996cat >>conftest.$ac_ext <<_ACEOF
12997/* end confdefs.h. */
12998/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
12999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13000#define mkfifo innocuous_mkfifo
13001
13002/* System header to define __stub macros and hopefully few prototypes,
13003 which can conflict with char mkfifo (); below.
13004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13005 <limits.h> exists even on freestanding compilers. */
13006
13007#ifdef __STDC__
13008# include <limits.h>
13009#else
13010# include <assert.h>
13011#endif
13012
13013#undef mkfifo
13014
13015/* Override any GCC internal prototype to avoid an error.
13016 Use char because int might match the return type of a GCC
13017 builtin and then its argument prototype would still apply. */
13018#ifdef __cplusplus
13019extern "C"
13020#endif
13021char mkfifo ();
13022/* The GNU C library defines this for functions which it implements
13023 to always fail with ENOSYS. Some functions are actually named
13024 something starting with __ and the normal name is an alias. */
13025#if defined __stub_mkfifo || defined __stub___mkfifo
13026choke me
13027#endif
13028
13029int
13030main ()
13031{
13032return mkfifo ();
13033 ;
13034 return 0;
13035}
13036_ACEOF
13037rm -f conftest.$ac_objext conftest$ac_exeext
13038if { (ac_try="$ac_link"
13039case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13042esac
13043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13044$as_echo "$ac_try_echo") >&5
13045 (eval "$ac_link") 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && {
13052 test -z "$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 } && test -s conftest$ac_exeext && {
13055 test "$cross_compiling" = yes ||
13056 $as_test_x conftest$ac_exeext
13057 }; then
13058 ac_cv_func_mkfifo=yes
13059else
13060 $as_echo "$as_me: failed program was:" >&5
13061sed 's/^/| /' conftest.$ac_ext >&5
13062
13063 ac_cv_func_mkfifo=no
13064fi
13065
13066rm -rf conftest.dSYM
13067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13068 conftest$ac_exeext conftest.$ac_ext
13069fi
13070{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13071$as_echo "$ac_cv_func_mkfifo" >&6; }
13072if test "x$ac_cv_func_mkfifo" = x""yes; then
13073 cat >>confdefs.h <<\_ACEOF
13074#define HAVE_MKFIFO 1
13075_ACEOF
13076
13077else
13078 cat >>confdefs.h <<\_ACEOF
13079#define MKFIFO_MISSING 1
13080_ACEOF
13081
13082fi
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13109 getpagesize getpeername getrlimit getrusage gettimeofday \
13110 kill killpg lstat readlink sbrk select setdtablesize \
13111 setitimer tcgetpgrp uname ulimit waitpid
13112do
13113as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13114{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13115$as_echo_n "checking for $ac_func... " >&6; }
13116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13117 $as_echo_n "(cached) " >&6
13118else
13119 cat >conftest.$ac_ext <<_ACEOF
13120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
13125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13127#define $ac_func innocuous_$ac_func
13128
13129/* System header to define __stub macros and hopefully few prototypes,
13130 which can conflict with char $ac_func (); below.
13131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13132 <limits.h> exists even on freestanding compilers. */
13133
13134#ifdef __STDC__
13135# include <limits.h>
13136#else
13137# include <assert.h>
13138#endif
13139
13140#undef $ac_func
13141
13142/* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145#ifdef __cplusplus
13146extern "C"
13147#endif
13148char $ac_func ();
13149/* The GNU C library defines this for functions which it implements
13150 to always fail with ENOSYS. Some functions are actually named
13151 something starting with __ and the normal name is an alias. */
13152#if defined __stub_$ac_func || defined __stub___$ac_func
13153choke me
13154#endif
13155
13156int
13157main ()
13158{
13159return $ac_func ();
13160 ;
13161 return 0;
13162}
13163_ACEOF
13164rm -f conftest.$ac_objext conftest$ac_exeext
13165if { (ac_try="$ac_link"
13166case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169esac
13170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13171$as_echo "$ac_try_echo") >&5
13172 (eval "$ac_link") 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && {
13179 test -z "$ac_c_werror_flag" ||
13180 test ! -s conftest.err
13181 } && test -s conftest$ac_exeext && {
13182 test "$cross_compiling" = yes ||
13183 $as_test_x conftest$ac_exeext
13184 }; then
13185 eval "$as_ac_var=yes"
13186else
13187 $as_echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 eval "$as_ac_var=no"
13191fi
13192
13193rm -rf conftest.dSYM
13194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13195 conftest$ac_exeext conftest.$ac_ext
13196fi
13197ac_res=`eval 'as_val=${'$as_ac_var'}
13198 $as_echo "$as_val"'`
13199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13200$as_echo "$ac_res" >&6; }
13201as_val=`eval 'as_val=${'$as_ac_var'}
13202 $as_echo "$as_val"'`
13203 if test "x$as_val" = x""yes; then
13204 cat >>confdefs.h <<_ACEOF
13205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13206_ACEOF
13207
13208fi
13209done
13210
13211
13212for ac_func in rename
13213do
13214as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13216$as_echo_n "checking for $ac_func... " >&6; }
13217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13218 $as_echo_n "(cached) " >&6
13219else
13220 cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13228#define $ac_func innocuous_$ac_func
13229
13230/* System header to define __stub macros and hopefully few prototypes,
13231 which can conflict with char $ac_func (); below.
13232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13233 <limits.h> exists even on freestanding compilers. */
13234
13235#ifdef __STDC__
13236# include <limits.h>
13237#else
13238# include <assert.h>
13239#endif
13240
13241#undef $ac_func
13242
13243/* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13246#ifdef __cplusplus
13247extern "C"
13248#endif
13249char $ac_func ();
13250/* The GNU C library defines this for functions which it implements
13251 to always fail with ENOSYS. Some functions are actually named
13252 something starting with __ and the normal name is an alias. */
13253#if defined __stub_$ac_func || defined __stub___$ac_func
13254choke me
13255#endif
13256
13257int
13258main ()
13259{
13260return $ac_func ();
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext conftest$ac_exeext
13266if { (ac_try="$ac_link"
13267case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13272$as_echo "$ac_try_echo") >&5
13273 (eval "$ac_link") 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } && {
13280 test -z "$ac_c_werror_flag" ||
13281 test ! -s conftest.err
13282 } && test -s conftest$ac_exeext && {
13283 test "$cross_compiling" = yes ||
13284 $as_test_x conftest$ac_exeext
13285 }; then
13286 eval "$as_ac_var=yes"
13287else
13288 $as_echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 eval "$as_ac_var=no"
13292fi
13293
13294rm -rf conftest.dSYM
13295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13296 conftest$ac_exeext conftest.$ac_ext
13297fi
13298ac_res=`eval 'as_val=${'$as_ac_var'}
13299 $as_echo "$as_val"'`
13300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13301$as_echo "$ac_res" >&6; }
13302as_val=`eval 'as_val=${'$as_ac_var'}
13303 $as_echo "$as_val"'`
13304 if test "x$as_val" = x""yes; then
13305 cat >>confdefs.h <<_ACEOF
13306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13307_ACEOF
13308
13309else
13310 case " $LIBOBJS " in
13311 *" $ac_func.$ac_objext "* ) ;;
13312 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13313 ;;
13314esac
13315
13316fi
13317done
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351for ac_func in bcopy bzero confstr faccessat fnmatch \
13352 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13353 imaxdiv memmove pathconf putenv raise regcomp regexec \
13354 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13355 sysconf syslog tcgetattr times ttyname tzset unsetenv
13356do
13357as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13358{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13359$as_echo_n "checking for $ac_func... " >&6; }
13360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13361 $as_echo_n "(cached) " >&6
13362else
13363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13371#define $ac_func innocuous_$ac_func
13372
13373/* System header to define __stub macros and hopefully few prototypes,
13374 which can conflict with char $ac_func (); below.
13375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13376 <limits.h> exists even on freestanding compilers. */
13377
13378#ifdef __STDC__
13379# include <limits.h>
13380#else
13381# include <assert.h>
13382#endif
13383
13384#undef $ac_func
13385
13386/* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13389#ifdef __cplusplus
13390extern "C"
13391#endif
13392char $ac_func ();
13393/* The GNU C library defines this for functions which it implements
13394 to always fail with ENOSYS. Some functions are actually named
13395 something starting with __ and the normal name is an alias. */
13396#if defined __stub_$ac_func || defined __stub___$ac_func
13397choke me
13398#endif
13399
13400int
13401main ()
13402{
13403return $ac_func ();
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408rm -f conftest.$ac_objext conftest$ac_exeext
13409if { (ac_try="$ac_link"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415$as_echo "$ac_try_echo") >&5
13416 (eval "$ac_link") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest$ac_exeext && {
13426 test "$cross_compiling" = yes ||
13427 $as_test_x conftest$ac_exeext
13428 }; then
13429 eval "$as_ac_var=yes"
13430else
13431 $as_echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 eval "$as_ac_var=no"
13435fi
13436
13437rm -rf conftest.dSYM
13438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 conftest$ac_exeext conftest.$ac_ext
13440fi
13441ac_res=`eval 'as_val=${'$as_ac_var'}
13442 $as_echo "$as_val"'`
13443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13444$as_echo "$ac_res" >&6; }
13445as_val=`eval 'as_val=${'$as_ac_var'}
13446 $as_echo "$as_val"'`
13447 if test "x$as_val" = x""yes; then
13448 cat >>confdefs.h <<_ACEOF
13449#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13450_ACEOF
13451
13452fi
13453done
13454
13455
13456
13457
13458for ac_func in vasprintf asprintf
13459do
13460as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13461{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13462$as_echo_n "checking for $ac_func... " >&6; }
13463if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13464 $as_echo_n "(cached) " >&6
13465else
13466 cat >conftest.$ac_ext <<_ACEOF
13467/* confdefs.h. */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h. */
13472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13474#define $ac_func innocuous_$ac_func
13475
13476/* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char $ac_func (); below.
13478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13479 <limits.h> exists even on freestanding compilers. */
13480
13481#ifdef __STDC__
13482# include <limits.h>
13483#else
13484# include <assert.h>
13485#endif
13486
13487#undef $ac_func
13488
13489/* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13492#ifdef __cplusplus
13493extern "C"
13494#endif
13495char $ac_func ();
13496/* The GNU C library defines this for functions which it implements
13497 to always fail with ENOSYS. Some functions are actually named
13498 something starting with __ and the normal name is an alias. */
13499#if defined __stub_$ac_func || defined __stub___$ac_func
13500choke me
13501#endif
13502
13503int
13504main ()
13505{
13506return $ac_func ();
13507 ;
13508 return 0;
13509}
13510_ACEOF
13511rm -f conftest.$ac_objext conftest$ac_exeext
13512if { (ac_try="$ac_link"
13513case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516esac
13517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13518$as_echo "$ac_try_echo") >&5
13519 (eval "$ac_link") 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest$ac_exeext && {
13529 test "$cross_compiling" = yes ||
13530 $as_test_x conftest$ac_exeext
13531 }; then
13532 eval "$as_ac_var=yes"
13533else
13534 $as_echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 eval "$as_ac_var=no"
13538fi
13539
13540rm -rf conftest.dSYM
13541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13542 conftest$ac_exeext conftest.$ac_ext
13543fi
13544ac_res=`eval 'as_val=${'$as_ac_var'}
13545 $as_echo "$as_val"'`
13546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13547$as_echo "$ac_res" >&6; }
13548as_val=`eval 'as_val=${'$as_ac_var'}
13549 $as_echo "$as_val"'`
13550 if test "x$as_val" = x""yes; then
13551 cat >>confdefs.h <<_ACEOF
13552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13553_ACEOF
13554
13555fi
13556done
13557
13558
13559
13560
13561
13562
13563
13564for ac_func in isascii isblank isgraph isprint isspace isxdigit
13565do
13566as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13567{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13568$as_echo_n "checking for $ac_func... " >&6; }
13569if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13570 $as_echo_n "(cached) " >&6
13571else
13572 cat >conftest.$ac_ext <<_ACEOF
13573/* confdefs.h. */
13574_ACEOF
13575cat confdefs.h >>conftest.$ac_ext
13576cat >>conftest.$ac_ext <<_ACEOF
13577/* end confdefs.h. */
13578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13580#define $ac_func innocuous_$ac_func
13581
13582/* System header to define __stub macros and hopefully few prototypes,
13583 which can conflict with char $ac_func (); below.
13584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13585 <limits.h> exists even on freestanding compilers. */
13586
13587#ifdef __STDC__
13588# include <limits.h>
13589#else
13590# include <assert.h>
13591#endif
13592
13593#undef $ac_func
13594
13595/* Override any GCC internal prototype to avoid an error.
13596 Use char because int might match the return type of a GCC
13597 builtin and then its argument prototype would still apply. */
13598#ifdef __cplusplus
13599extern "C"
13600#endif
13601char $ac_func ();
13602/* The GNU C library defines this for functions which it implements
13603 to always fail with ENOSYS. Some functions are actually named
13604 something starting with __ and the normal name is an alias. */
13605#if defined __stub_$ac_func || defined __stub___$ac_func
13606choke me
13607#endif
13608
13609int
13610main ()
13611{
13612return $ac_func ();
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617rm -f conftest.$ac_objext conftest$ac_exeext
13618if { (ac_try="$ac_link"
13619case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13624$as_echo "$ac_try_echo") >&5
13625 (eval "$ac_link") 2>conftest.er1
13626 ac_status=$?
13627 grep -v '^ *+' conftest.er1 >conftest.err
13628 rm -f conftest.er1
13629 cat conftest.err >&5
13630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } && {
13632 test -z "$ac_c_werror_flag" ||
13633 test ! -s conftest.err
13634 } && test -s conftest$ac_exeext && {
13635 test "$cross_compiling" = yes ||
13636 $as_test_x conftest$ac_exeext
13637 }; then
13638 eval "$as_ac_var=yes"
13639else
13640 $as_echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 eval "$as_ac_var=no"
13644fi
13645
13646rm -rf conftest.dSYM
13647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13648 conftest$ac_exeext conftest.$ac_ext
13649fi
13650ac_res=`eval 'as_val=${'$as_ac_var'}
13651 $as_echo "$as_val"'`
13652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13653$as_echo "$ac_res" >&6; }
13654as_val=`eval 'as_val=${'$as_ac_var'}
13655 $as_echo "$as_val"'`
13656 if test "x$as_val" = x""yes; then
13657 cat >>confdefs.h <<_ACEOF
13658#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13659_ACEOF
13660
13661fi
13662done
13663
13664
13665
13666
13667for ac_func in getpwent getpwnam getpwuid
13668do
13669as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13670{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13671$as_echo_n "checking for $ac_func... " >&6; }
13672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13673 $as_echo_n "(cached) " >&6
13674else
13675 cat >conftest.$ac_ext <<_ACEOF
13676/* confdefs.h. */
13677_ACEOF
13678cat confdefs.h >>conftest.$ac_ext
13679cat >>conftest.$ac_ext <<_ACEOF
13680/* end confdefs.h. */
13681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13683#define $ac_func innocuous_$ac_func
13684
13685/* System header to define __stub macros and hopefully few prototypes,
13686 which can conflict with char $ac_func (); below.
13687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13688 <limits.h> exists even on freestanding compilers. */
13689
13690#ifdef __STDC__
13691# include <limits.h>
13692#else
13693# include <assert.h>
13694#endif
13695
13696#undef $ac_func
13697
13698/* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13701#ifdef __cplusplus
13702extern "C"
13703#endif
13704char $ac_func ();
13705/* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708#if defined __stub_$ac_func || defined __stub___$ac_func
13709choke me
13710#endif
13711
13712int
13713main ()
13714{
13715return $ac_func ();
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext conftest$ac_exeext
13721if { (ac_try="$ac_link"
13722case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725esac
13726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13727$as_echo "$ac_try_echo") >&5
13728 (eval "$ac_link") 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest$ac_exeext && {
13738 test "$cross_compiling" = yes ||
13739 $as_test_x conftest$ac_exeext
13740 }; then
13741 eval "$as_ac_var=yes"
13742else
13743 $as_echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 eval "$as_ac_var=no"
13747fi
13748
13749rm -rf conftest.dSYM
13750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13751 conftest$ac_exeext conftest.$ac_ext
13752fi
13753ac_res=`eval 'as_val=${'$as_ac_var'}
13754 $as_echo "$as_val"'`
13755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13756$as_echo "$ac_res" >&6; }
13757as_val=`eval 'as_val=${'$as_ac_var'}
13758 $as_echo "$as_val"'`
13759 if test "x$as_val" = x""yes; then
13760 cat >>confdefs.h <<_ACEOF
13761#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13762_ACEOF
13763
13764fi
13765done
13766
13767
13768
13769for ac_func in getcwd memset
13770do
13771as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13772{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13773$as_echo_n "checking for $ac_func... " >&6; }
13774if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13775 $as_echo_n "(cached) " >&6
13776else
13777 cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
13783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13785#define $ac_func innocuous_$ac_func
13786
13787/* System header to define __stub macros and hopefully few prototypes,
13788 which can conflict with char $ac_func (); below.
13789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13790 <limits.h> exists even on freestanding compilers. */
13791
13792#ifdef __STDC__
13793# include <limits.h>
13794#else
13795# include <assert.h>
13796#endif
13797
13798#undef $ac_func
13799
13800/* Override any GCC internal prototype to avoid an error.
13801 Use char because int might match the return type of a GCC
13802 builtin and then its argument prototype would still apply. */
13803#ifdef __cplusplus
13804extern "C"
13805#endif
13806char $ac_func ();
13807/* The GNU C library defines this for functions which it implements
13808 to always fail with ENOSYS. Some functions are actually named
13809 something starting with __ and the normal name is an alias. */
13810#if defined __stub_$ac_func || defined __stub___$ac_func
13811choke me
13812#endif
13813
13814int
13815main ()
13816{
13817return $ac_func ();
13818 ;
13819 return 0;
13820}
13821_ACEOF
13822rm -f conftest.$ac_objext conftest$ac_exeext
13823if { (ac_try="$ac_link"
13824case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827esac
13828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13829$as_echo "$ac_try_echo") >&5
13830 (eval "$ac_link") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && {
13837 test -z "$ac_c_werror_flag" ||
13838 test ! -s conftest.err
13839 } && test -s conftest$ac_exeext && {
13840 test "$cross_compiling" = yes ||
13841 $as_test_x conftest$ac_exeext
13842 }; then
13843 eval "$as_ac_var=yes"
13844else
13845 $as_echo "$as_me: failed program was:" >&5
13846sed 's/^/| /' conftest.$ac_ext >&5
13847
13848 eval "$as_ac_var=no"
13849fi
13850
13851rm -rf conftest.dSYM
13852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13853 conftest$ac_exeext conftest.$ac_ext
13854fi
13855ac_res=`eval 'as_val=${'$as_ac_var'}
13856 $as_echo "$as_val"'`
13857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13858$as_echo "$ac_res" >&6; }
13859as_val=`eval 'as_val=${'$as_ac_var'}
13860 $as_echo "$as_val"'`
13861 if test "x$as_val" = x""yes; then
13862 cat >>confdefs.h <<_ACEOF
13863#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13864_ACEOF
13865
13866else
13867 case " $LIBOBJS " in
13868 *" $ac_func.$ac_objext "* ) ;;
13869 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13870 ;;
13871esac
13872
13873fi
13874done
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884for ac_func in strcasecmp strcasestr strerror strftime strnlen strpbrk strstr
13885do
13886as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13887{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13888$as_echo_n "checking for $ac_func... " >&6; }
13889if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13890 $as_echo_n "(cached) " >&6
13891else
13892 cat >conftest.$ac_ext <<_ACEOF
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13900#define $ac_func innocuous_$ac_func
13901
13902/* System header to define __stub macros and hopefully few prototypes,
13903 which can conflict with char $ac_func (); below.
13904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13905 <limits.h> exists even on freestanding compilers. */
13906
13907#ifdef __STDC__
13908# include <limits.h>
13909#else
13910# include <assert.h>
13911#endif
13912
13913#undef $ac_func
13914
13915/* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13918#ifdef __cplusplus
13919extern "C"
13920#endif
13921char $ac_func ();
13922/* The GNU C library defines this for functions which it implements
13923 to always fail with ENOSYS. Some functions are actually named
13924 something starting with __ and the normal name is an alias. */
13925#if defined __stub_$ac_func || defined __stub___$ac_func
13926choke me
13927#endif
13928
13929int
13930main ()
13931{
13932return $ac_func ();
13933 ;
13934 return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext conftest$ac_exeext
13938if { (ac_try="$ac_link"
13939case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942esac
13943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13944$as_echo "$ac_try_echo") >&5
13945 (eval "$ac_link") 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } && {
13952 test -z "$ac_c_werror_flag" ||
13953 test ! -s conftest.err
13954 } && test -s conftest$ac_exeext && {
13955 test "$cross_compiling" = yes ||
13956 $as_test_x conftest$ac_exeext
13957 }; then
13958 eval "$as_ac_var=yes"
13959else
13960 $as_echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 eval "$as_ac_var=no"
13964fi
13965
13966rm -rf conftest.dSYM
13967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13968 conftest$ac_exeext conftest.$ac_ext
13969fi
13970ac_res=`eval 'as_val=${'$as_ac_var'}
13971 $as_echo "$as_val"'`
13972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13973$as_echo "$ac_res" >&6; }
13974as_val=`eval 'as_val=${'$as_ac_var'}
13975 $as_echo "$as_val"'`
13976 if test "x$as_val" = x""yes; then
13977 cat >>confdefs.h <<_ACEOF
13978#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13979_ACEOF
13980
13981else
13982 case " $LIBOBJS " in
13983 *" $ac_func.$ac_objext "* ) ;;
13984 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13985 ;;
13986esac
13987
13988fi
13989done
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
14000do
14001as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14002{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14003$as_echo_n "checking for $ac_func... " >&6; }
14004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14005 $as_echo_n "(cached) " >&6
14006else
14007 cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
14012/* end confdefs.h. */
14013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14015#define $ac_func innocuous_$ac_func
14016
14017/* System header to define __stub macros and hopefully few prototypes,
14018 which can conflict with char $ac_func (); below.
14019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14020 <limits.h> exists even on freestanding compilers. */
14021
14022#ifdef __STDC__
14023# include <limits.h>
14024#else
14025# include <assert.h>
14026#endif
14027
14028#undef $ac_func
14029
14030/* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14033#ifdef __cplusplus
14034extern "C"
14035#endif
14036char $ac_func ();
14037/* The GNU C library defines this for functions which it implements
14038 to always fail with ENOSYS. Some functions are actually named
14039 something starting with __ and the normal name is an alias. */
14040#if defined __stub_$ac_func || defined __stub___$ac_func
14041choke me
14042#endif
14043
14044int
14045main ()
14046{
14047return $ac_func ();
14048 ;
14049 return 0;
14050}
14051_ACEOF
14052rm -f conftest.$ac_objext conftest$ac_exeext
14053if { (ac_try="$ac_link"
14054case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057esac
14058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14059$as_echo "$ac_try_echo") >&5
14060 (eval "$ac_link") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest$ac_exeext && {
14070 test "$cross_compiling" = yes ||
14071 $as_test_x conftest$ac_exeext
14072 }; then
14073 eval "$as_ac_var=yes"
14074else
14075 $as_echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 eval "$as_ac_var=no"
14079fi
14080
14081rm -rf conftest.dSYM
14082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083 conftest$ac_exeext conftest.$ac_ext
14084fi
14085ac_res=`eval 'as_val=${'$as_ac_var'}
14086 $as_echo "$as_val"'`
14087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14088$as_echo "$ac_res" >&6; }
14089as_val=`eval 'as_val=${'$as_ac_var'}
14090 $as_echo "$as_val"'`
14091 if test "x$as_val" = x""yes; then
14092 cat >>confdefs.h <<_ACEOF
14093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14094_ACEOF
14095
14096else
14097 case " $LIBOBJS " in
14098 *" $ac_func.$ac_objext "* ) ;;
14099 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14100 ;;
14101esac
14102
14103fi
14104done
14105
14106
14107
14108for ac_func in dprintf
14109do
14110as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14112$as_echo_n "checking for $ac_func... " >&6; }
14113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14114 $as_echo_n "(cached) " >&6
14115else
14116 cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124#define $ac_func innocuous_$ac_func
14125
14126/* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char $ac_func (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14130
14131#ifdef __STDC__
14132# include <limits.h>
14133#else
14134# include <assert.h>
14135#endif
14136
14137#undef $ac_func
14138
14139/* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142#ifdef __cplusplus
14143extern "C"
14144#endif
14145char $ac_func ();
14146/* The GNU C library defines this for functions which it implements
14147 to always fail with ENOSYS. Some functions are actually named
14148 something starting with __ and the normal name is an alias. */
14149#if defined __stub_$ac_func || defined __stub___$ac_func
14150choke me
14151#endif
14152
14153int
14154main ()
14155{
14156return $ac_func ();
14157 ;
14158 return 0;
14159}
14160_ACEOF
14161rm -f conftest.$ac_objext conftest$ac_exeext
14162if { (ac_try="$ac_link"
14163case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168$as_echo "$ac_try_echo") >&5
14169 (eval "$ac_link") 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && {
14176 test -z "$ac_c_werror_flag" ||
14177 test ! -s conftest.err
14178 } && test -s conftest$ac_exeext && {
14179 test "$cross_compiling" = yes ||
14180 $as_test_x conftest$ac_exeext
14181 }; then
14182 eval "$as_ac_var=yes"
14183else
14184 $as_echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 eval "$as_ac_var=no"
14188fi
14189
14190rm -rf conftest.dSYM
14191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192 conftest$ac_exeext conftest.$ac_ext
14193fi
14194ac_res=`eval 'as_val=${'$as_ac_var'}
14195 $as_echo "$as_val"'`
14196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14197$as_echo "$ac_res" >&6; }
14198as_val=`eval 'as_val=${'$as_ac_var'}
14199 $as_echo "$as_val"'`
14200 if test "x$as_val" = x""yes; then
14201 cat >>confdefs.h <<_ACEOF
14202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14203_ACEOF
14204
14205else
14206 case " $LIBOBJS " in
14207 *" $ac_func.$ac_objext "* ) ;;
14208 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14209 ;;
14210esac
14211
14212fi
14213done
14214
14215
14216
14217for ac_func in strchrnul
14218do
14219as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14220{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14221$as_echo_n "checking for $ac_func... " >&6; }
14222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14223 $as_echo_n "(cached) " >&6
14224else
14225 cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14233#define $ac_func innocuous_$ac_func
14234
14235/* System header to define __stub macros and hopefully few prototypes,
14236 which can conflict with char $ac_func (); below.
14237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14238 <limits.h> exists even on freestanding compilers. */
14239
14240#ifdef __STDC__
14241# include <limits.h>
14242#else
14243# include <assert.h>
14244#endif
14245
14246#undef $ac_func
14247
14248/* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14251#ifdef __cplusplus
14252extern "C"
14253#endif
14254char $ac_func ();
14255/* The GNU C library defines this for functions which it implements
14256 to always fail with ENOSYS. Some functions are actually named
14257 something starting with __ and the normal name is an alias. */
14258#if defined __stub_$ac_func || defined __stub___$ac_func
14259choke me
14260#endif
14261
14262int
14263main ()
14264{
14265return $ac_func ();
14266 ;
14267 return 0;
14268}
14269_ACEOF
14270rm -f conftest.$ac_objext conftest$ac_exeext
14271if { (ac_try="$ac_link"
14272case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275esac
14276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14277$as_echo "$ac_try_echo") >&5
14278 (eval "$ac_link") 2>conftest.er1
14279 ac_status=$?
14280 grep -v '^ *+' conftest.er1 >conftest.err
14281 rm -f conftest.er1
14282 cat conftest.err >&5
14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } && {
14285 test -z "$ac_c_werror_flag" ||
14286 test ! -s conftest.err
14287 } && test -s conftest$ac_exeext && {
14288 test "$cross_compiling" = yes ||
14289 $as_test_x conftest$ac_exeext
14290 }; then
14291 eval "$as_ac_var=yes"
14292else
14293 $as_echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 eval "$as_ac_var=no"
14297fi
14298
14299rm -rf conftest.dSYM
14300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14301 conftest$ac_exeext conftest.$ac_ext
14302fi
14303ac_res=`eval 'as_val=${'$as_ac_var'}
14304 $as_echo "$as_val"'`
14305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14306$as_echo "$ac_res" >&6; }
14307as_val=`eval 'as_val=${'$as_ac_var'}
14308 $as_echo "$as_val"'`
14309 if test "x$as_val" = x""yes; then
14310 cat >>confdefs.h <<_ACEOF
14311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14312_ACEOF
14313
14314else
14315 case " $LIBOBJS " in
14316 *" $ac_func.$ac_objext "* ) ;;
14317 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14318 ;;
14319esac
14320
14321fi
14322done
14323
14324
14325
14326{ $as_echo "$as_me:$LINENO: checking whether AUDIT_USER_TTY is declared" >&5
14327$as_echo_n "checking whether AUDIT_USER_TTY is declared... " >&6; }
14328if test "${ac_cv_have_decl_AUDIT_USER_TTY+set}" = set; then
14329 $as_echo_n "(cached) " >&6
14330else
14331 cat >conftest.$ac_ext <<_ACEOF
14332/* confdefs.h. */
14333_ACEOF
14334cat confdefs.h >>conftest.$ac_ext
14335cat >>conftest.$ac_ext <<_ACEOF
14336/* end confdefs.h. */
14337#include <linux/audit.h>
14338
14339int
14340main ()
14341{
14342#ifndef AUDIT_USER_TTY
14343 (void) AUDIT_USER_TTY;
14344#endif
14345
14346 ;
14347 return 0;
14348}
14349_ACEOF
14350rm -f conftest.$ac_objext
14351if { (ac_try="$ac_compile"
14352case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355esac
14356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14357$as_echo "$ac_try_echo") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_cv_have_decl_AUDIT_USER_TTY=yes
14369else
14370 $as_echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_cv_have_decl_AUDIT_USER_TTY=no
14374fi
14375
14376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377fi
14378{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AUDIT_USER_TTY" >&5
14379$as_echo "$ac_cv_have_decl_AUDIT_USER_TTY" >&6; }
14380if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = x""yes; then
14381
14382cat >>confdefs.h <<_ACEOF
14383#define HAVE_DECL_AUDIT_USER_TTY 1
14384_ACEOF
14385
14386
14387else
14388 cat >>confdefs.h <<_ACEOF
14389#define HAVE_DECL_AUDIT_USER_TTY 0
14390_ACEOF
14391
14392
14393fi
14394
14395
14396
14397{ $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14398$as_echo_n "checking whether confstr is declared... " >&6; }
14399if test "${ac_cv_have_decl_confstr+set}" = set; then
14400 $as_echo_n "(cached) " >&6
14401else
14402 cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409int
14410main ()
14411{
14412#ifndef confstr
14413 (void) confstr;
14414#endif
14415
14416 ;
14417 return 0;
14418}
14419_ACEOF
14420rm -f conftest.$ac_objext
14421if { (ac_try="$ac_compile"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427$as_echo "$ac_try_echo") >&5
14428 (eval "$ac_compile") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } && {
14435 test -z "$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 } && test -s conftest.$ac_objext; then
14438 ac_cv_have_decl_confstr=yes
14439else
14440 $as_echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 ac_cv_have_decl_confstr=no
14444fi
14445
14446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447fi
14448{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14449$as_echo "$ac_cv_have_decl_confstr" >&6; }
14450if test "x$ac_cv_have_decl_confstr" = x""yes; then
14451
14452cat >>confdefs.h <<_ACEOF
14453#define HAVE_DECL_CONFSTR 1
14454_ACEOF
14455
14456
14457else
14458 cat >>confdefs.h <<_ACEOF
14459#define HAVE_DECL_CONFSTR 0
14460_ACEOF
14461
14462
14463fi
14464
14465
14466{ $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14467$as_echo_n "checking whether printf is declared... " >&6; }
14468if test "${ac_cv_have_decl_printf+set}" = set; then
14469 $as_echo_n "(cached) " >&6
14470else
14471 cat >conftest.$ac_ext <<_ACEOF
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477$ac_includes_default
14478int
14479main ()
14480{
14481#ifndef printf
14482 (void) printf;
14483#endif
14484
14485 ;
14486 return 0;
14487}
14488_ACEOF
14489rm -f conftest.$ac_objext
14490if { (ac_try="$ac_compile"
14491case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14496$as_echo "$ac_try_echo") >&5
14497 (eval "$ac_compile") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest.$ac_objext; then
14507 ac_cv_have_decl_printf=yes
14508else
14509 $as_echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 ac_cv_have_decl_printf=no
14513fi
14514
14515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516fi
14517{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14518$as_echo "$ac_cv_have_decl_printf" >&6; }
14519if test "x$ac_cv_have_decl_printf" = x""yes; then
14520
14521cat >>confdefs.h <<_ACEOF
14522#define HAVE_DECL_PRINTF 1
14523_ACEOF
14524
14525
14526else
14527 cat >>confdefs.h <<_ACEOF
14528#define HAVE_DECL_PRINTF 0
14529_ACEOF
14530
14531
14532fi
14533
14534
14535{ $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14536$as_echo_n "checking whether sbrk is declared... " >&6; }
14537if test "${ac_cv_have_decl_sbrk+set}" = set; then
14538 $as_echo_n "(cached) " >&6
14539else
14540 cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h. */
14546$ac_includes_default
14547int
14548main ()
14549{
14550#ifndef sbrk
14551 (void) sbrk;
14552#endif
14553
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (ac_try="$ac_compile"
14560case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14565$as_echo "$ac_try_echo") >&5
14566 (eval "$ac_compile") 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest.$ac_objext; then
14576 ac_cv_have_decl_sbrk=yes
14577else
14578 $as_echo "$as_me: failed program was:" >&5
14579sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 ac_cv_have_decl_sbrk=no
14582fi
14583
14584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14585fi
14586{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14587$as_echo "$ac_cv_have_decl_sbrk" >&6; }
14588if test "x$ac_cv_have_decl_sbrk" = x""yes; then
14589
14590cat >>confdefs.h <<_ACEOF
14591#define HAVE_DECL_SBRK 1
14592_ACEOF
14593
14594
14595else
14596 cat >>confdefs.h <<_ACEOF
14597#define HAVE_DECL_SBRK 0
14598_ACEOF
14599
14600
14601fi
14602
14603
14604{ $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14605$as_echo_n "checking whether setregid is declared... " >&6; }
14606if test "${ac_cv_have_decl_setregid+set}" = set; then
14607 $as_echo_n "(cached) " >&6
14608else
14609 cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
14615$ac_includes_default
14616int
14617main ()
14618{
14619#ifndef setregid
14620 (void) setregid;
14621#endif
14622
14623 ;
14624 return 0;
14625}
14626_ACEOF
14627rm -f conftest.$ac_objext
14628if { (ac_try="$ac_compile"
14629case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632esac
14633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634$as_echo "$ac_try_echo") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.$ac_objext; then
14645 ac_cv_have_decl_setregid=yes
14646else
14647 $as_echo "$as_me: failed program was:" >&5
14648sed 's/^/| /' conftest.$ac_ext >&5
14649
14650 ac_cv_have_decl_setregid=no
14651fi
14652
14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654fi
14655{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14656$as_echo "$ac_cv_have_decl_setregid" >&6; }
14657if test "x$ac_cv_have_decl_setregid" = x""yes; then
14658
14659cat >>confdefs.h <<_ACEOF
14660#define HAVE_DECL_SETREGID 1
14661_ACEOF
14662
14663
14664else
14665 cat >>confdefs.h <<_ACEOF
14666#define HAVE_DECL_SETREGID 0
14667_ACEOF
14668
14669
14670fi
14671
14672
14673{ $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14674$as_echo_n "checking whether strcpy is declared... " >&6; }
14675if test "${ac_cv_have_decl_strcpy+set}" = set; then
14676 $as_echo_n "(cached) " >&6
14677else
14678 cat >conftest.$ac_ext <<_ACEOF
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
14684$ac_includes_default
14685int
14686main ()
14687{
14688#ifndef strcpy
14689 (void) strcpy;
14690#endif
14691
14692 ;
14693 return 0;
14694}
14695_ACEOF
14696rm -f conftest.$ac_objext
14697if { (ac_try="$ac_compile"
14698case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701esac
14702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14703$as_echo "$ac_try_echo") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && {
14711 test -z "$ac_c_werror_flag" ||
14712 test ! -s conftest.err
14713 } && test -s conftest.$ac_objext; then
14714 ac_cv_have_decl_strcpy=yes
14715else
14716 $as_echo "$as_me: failed program was:" >&5
14717sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 ac_cv_have_decl_strcpy=no
14720fi
14721
14722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723fi
14724{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14725$as_echo "$ac_cv_have_decl_strcpy" >&6; }
14726if test "x$ac_cv_have_decl_strcpy" = x""yes; then
14727
14728cat >>confdefs.h <<_ACEOF
14729#define HAVE_DECL_STRCPY 1
14730_ACEOF
14731
14732
14733else
14734 cat >>confdefs.h <<_ACEOF
14735#define HAVE_DECL_STRCPY 0
14736_ACEOF
14737
14738
14739fi
14740
14741
14742{ $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14743$as_echo_n "checking whether strsignal is declared... " >&6; }
14744if test "${ac_cv_have_decl_strsignal+set}" = set; then
14745 $as_echo_n "(cached) " >&6
14746else
14747 cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
14753$ac_includes_default
14754int
14755main ()
14756{
14757#ifndef strsignal
14758 (void) strsignal;
14759#endif
14760
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765rm -f conftest.$ac_objext
14766if { (ac_try="$ac_compile"
14767case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770esac
14771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14772$as_echo "$ac_try_echo") >&5
14773 (eval "$ac_compile") 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest.$ac_objext; then
14783 ac_cv_have_decl_strsignal=yes
14784else
14785 $as_echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 ac_cv_have_decl_strsignal=no
14789fi
14790
14791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792fi
14793{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14794$as_echo "$ac_cv_have_decl_strsignal" >&6; }
14795if test "x$ac_cv_have_decl_strsignal" = x""yes; then
14796
14797cat >>confdefs.h <<_ACEOF
14798#define HAVE_DECL_STRSIGNAL 1
14799_ACEOF
14800
14801
14802else
14803 cat >>confdefs.h <<_ACEOF
14804#define HAVE_DECL_STRSIGNAL 0
14805_ACEOF
14806
14807
14808fi
14809
14810
14811
14812{ $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14813$as_echo_n "checking whether strtold is declared... " >&6; }
14814if test "${ac_cv_have_decl_strtold+set}" = set; then
14815 $as_echo_n "(cached) " >&6
14816else
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
14823$ac_includes_default
14824int
14825main ()
14826{
14827#ifndef strtold
14828 (void) strtold;
14829#endif
14830
14831 ;
14832 return 0;
14833}
14834_ACEOF
14835rm -f conftest.$ac_objext
14836if { (ac_try="$ac_compile"
14837case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840esac
14841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14842$as_echo "$ac_try_echo") >&5
14843 (eval "$ac_compile") 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest.$ac_objext; then
14853 ac_cv_have_decl_strtold=yes
14854else
14855 $as_echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_cv_have_decl_strtold=no
14859fi
14860
14861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862fi
14863{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14864$as_echo "$ac_cv_have_decl_strtold" >&6; }
14865if test "x$ac_cv_have_decl_strtold" = x""yes; then
14866
14867cat >>confdefs.h <<_ACEOF
14868#define HAVE_DECL_STRTOLD 1
14869_ACEOF
14870
14871
14872 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14873$as_echo_n "checking for broken strtold... " >&6; }
14874 if test "${bash_cv_strtold_broken+set}" = set; then
14875 $as_echo_n "(cached) " >&6
14876else
14877 cat >conftest.$ac_ext <<_ACEOF
14878/* confdefs.h. */
14879_ACEOF
14880cat confdefs.h >>conftest.$ac_ext
14881cat >>conftest.$ac_ext <<_ACEOF
14882/* end confdefs.h. */
14883#include <stdlib.h>
14884int
14885main ()
14886{
14887int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext
14893if { (ac_try="$ac_compile"
14894case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897esac
14898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899$as_echo "$ac_try_echo") >&5
14900 (eval "$ac_compile") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest.$ac_objext; then
14910 bash_cv_strtold_broken=no
14911else
14912 $as_echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 bash_cv_strtold_broken=yes
14916fi
14917
14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919
14920
14921fi
14922
14923 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14924$as_echo "$bash_cv_strtold_broken" >&6; }
14925 if test "$bash_cv_strtold_broken" = "yes" ; then
14926 cat >>confdefs.h <<\_ACEOF
14927#define STRTOLD_BROKEN 1
14928_ACEOF
14929
14930 fi
14931
14932else
14933 cat >>confdefs.h <<_ACEOF
14934#define HAVE_DECL_STRTOLD 0
14935_ACEOF
14936
14937
14938fi
14939
14940
14941
14942
14943
14944
14945{ $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14946$as_echo_n "checking for declaration of strtoimax... " >&6; }
14947if test "${bash_cv_decl_strtoimax+set}" = set; then
14948 $as_echo_n "(cached) " >&6
14949else
14950 cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956
14957#if STDC_HEADERS
14958# include <stdlib.h>
14959#endif
14960#if HAVE_INTTYPES_H
14961# include <inttypes.h>
14962#endif
14963
14964int
14965main ()
14966{
14967return !strtoimax;
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext conftest$ac_exeext
14973if { (ac_try="$ac_link"
14974case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977esac
14978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14979$as_echo "$ac_try_echo") >&5
14980 (eval "$ac_link") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest$ac_exeext && {
14990 test "$cross_compiling" = yes ||
14991 $as_test_x conftest$ac_exeext
14992 }; then
14993 bash_cv_decl_strtoimax=yes
14994else
14995 $as_echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 bash_cv_decl_strtoimax=no
14999fi
15000
15001rm -rf conftest.dSYM
15002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003 conftest$ac_exeext conftest.$ac_ext
15004fi
15005{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
15006$as_echo "$bash_cv_decl_strtoimax" >&6; }
15007bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15008if test $bash_cv_decl_strtoimax = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010#define $bash_tr_func 1
15011_ACEOF
15012
15013else
15014 cat >>confdefs.h <<_ACEOF
15015#define $bash_tr_func 0
15016_ACEOF
15017
15018fi
15019
15020
15021
15022
15023{ $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
15024$as_echo_n "checking for declaration of strtol... " >&6; }
15025if test "${bash_cv_decl_strtol+set}" = set; then
15026 $as_echo_n "(cached) " >&6
15027else
15028 cat >conftest.$ac_ext <<_ACEOF
15029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
15034
15035#if STDC_HEADERS
15036# include <stdlib.h>
15037#endif
15038#if HAVE_INTTYPES_H
15039# include <inttypes.h>
15040#endif
15041
15042int
15043main ()
15044{
15045return !strtol;
15046 ;
15047 return 0;
15048}
15049_ACEOF
15050rm -f conftest.$ac_objext conftest$ac_exeext
15051if { (ac_try="$ac_link"
15052case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055esac
15056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15057$as_echo "$ac_try_echo") >&5
15058 (eval "$ac_link") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext && {
15068 test "$cross_compiling" = yes ||
15069 $as_test_x conftest$ac_exeext
15070 }; then
15071 bash_cv_decl_strtol=yes
15072else
15073 $as_echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 bash_cv_decl_strtol=no
15077fi
15078
15079rm -rf conftest.dSYM
15080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15081 conftest$ac_exeext conftest.$ac_ext
15082fi
15083{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
15084$as_echo "$bash_cv_decl_strtol" >&6; }
15085bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15086if test $bash_cv_decl_strtol = yes; then
15087 cat >>confdefs.h <<_ACEOF
15088#define $bash_tr_func 1
15089_ACEOF
15090
15091else
15092 cat >>confdefs.h <<_ACEOF
15093#define $bash_tr_func 0
15094_ACEOF
15095
15096fi
15097
15098
15099
15100
15101{ $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
15102$as_echo_n "checking for declaration of strtoll... " >&6; }
15103if test "${bash_cv_decl_strtoll+set}" = set; then
15104 $as_echo_n "(cached) " >&6
15105else
15106 cat >conftest.$ac_ext <<_ACEOF
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
15111/* end confdefs.h. */
15112
15113#if STDC_HEADERS
15114# include <stdlib.h>
15115#endif
15116#if HAVE_INTTYPES_H
15117# include <inttypes.h>
15118#endif
15119
15120int
15121main ()
15122{
15123return !strtoll;
15124 ;
15125 return 0;
15126}
15127_ACEOF
15128rm -f conftest.$ac_objext conftest$ac_exeext
15129if { (ac_try="$ac_link"
15130case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133esac
15134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15135$as_echo "$ac_try_echo") >&5
15136 (eval "$ac_link") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest$ac_exeext && {
15146 test "$cross_compiling" = yes ||
15147 $as_test_x conftest$ac_exeext
15148 }; then
15149 bash_cv_decl_strtoll=yes
15150else
15151 $as_echo "$as_me: failed program was:" >&5
15152sed 's/^/| /' conftest.$ac_ext >&5
15153
15154 bash_cv_decl_strtoll=no
15155fi
15156
15157rm -rf conftest.dSYM
15158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159 conftest$ac_exeext conftest.$ac_ext
15160fi
15161{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
15162$as_echo "$bash_cv_decl_strtoll" >&6; }
15163bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15164if test $bash_cv_decl_strtoll = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166#define $bash_tr_func 1
15167_ACEOF
15168
15169else
15170 cat >>confdefs.h <<_ACEOF
15171#define $bash_tr_func 0
15172_ACEOF
15173
15174fi
15175
15176
15177
15178
15179{ $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
15180$as_echo_n "checking for declaration of strtoul... " >&6; }
15181if test "${bash_cv_decl_strtoul+set}" = set; then
15182 $as_echo_n "(cached) " >&6
15183else
15184 cat >conftest.$ac_ext <<_ACEOF
15185/* confdefs.h. */
15186_ACEOF
15187cat confdefs.h >>conftest.$ac_ext
15188cat >>conftest.$ac_ext <<_ACEOF
15189/* end confdefs.h. */
15190
15191#if STDC_HEADERS
15192# include <stdlib.h>
15193#endif
15194#if HAVE_INTTYPES_H
15195# include <inttypes.h>
15196#endif
15197
15198int
15199main ()
15200{
15201return !strtoul;
15202 ;
15203 return 0;
15204}
15205_ACEOF
15206rm -f conftest.$ac_objext conftest$ac_exeext
15207if { (ac_try="$ac_link"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15213$as_echo "$ac_try_echo") >&5
15214 (eval "$ac_link") 2>conftest.er1
15215 ac_status=$?
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
15219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } && {
15221 test -z "$ac_c_werror_flag" ||
15222 test ! -s conftest.err
15223 } && test -s conftest$ac_exeext && {
15224 test "$cross_compiling" = yes ||
15225 $as_test_x conftest$ac_exeext
15226 }; then
15227 bash_cv_decl_strtoul=yes
15228else
15229 $as_echo "$as_me: failed program was:" >&5
15230sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 bash_cv_decl_strtoul=no
15233fi
15234
15235rm -rf conftest.dSYM
15236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15237 conftest$ac_exeext conftest.$ac_ext
15238fi
15239{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15240$as_echo "$bash_cv_decl_strtoul" >&6; }
15241bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15242if test $bash_cv_decl_strtoul = yes; then
15243 cat >>confdefs.h <<_ACEOF
15244#define $bash_tr_func 1
15245_ACEOF
15246
15247else
15248 cat >>confdefs.h <<_ACEOF
15249#define $bash_tr_func 0
15250_ACEOF
15251
15252fi
15253
15254
15255
15256
15257{ $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15258$as_echo_n "checking for declaration of strtoull... " >&6; }
15259if test "${bash_cv_decl_strtoull+set}" = set; then
15260 $as_echo_n "(cached) " >&6
15261else
15262 cat >conftest.$ac_ext <<_ACEOF
15263/* confdefs.h. */
15264_ACEOF
15265cat confdefs.h >>conftest.$ac_ext
15266cat >>conftest.$ac_ext <<_ACEOF
15267/* end confdefs.h. */
15268
15269#if STDC_HEADERS
15270# include <stdlib.h>
15271#endif
15272#if HAVE_INTTYPES_H
15273# include <inttypes.h>
15274#endif
15275
15276int
15277main ()
15278{
15279return !strtoull;
15280 ;
15281 return 0;
15282}
15283_ACEOF
15284rm -f conftest.$ac_objext conftest$ac_exeext
15285if { (ac_try="$ac_link"
15286case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15289esac
15290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15291$as_echo "$ac_try_echo") >&5
15292 (eval "$ac_link") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest$ac_exeext && {
15302 test "$cross_compiling" = yes ||
15303 $as_test_x conftest$ac_exeext
15304 }; then
15305 bash_cv_decl_strtoull=yes
15306else
15307 $as_echo "$as_me: failed program was:" >&5
15308sed 's/^/| /' conftest.$ac_ext >&5
15309
15310 bash_cv_decl_strtoull=no
15311fi
15312
15313rm -rf conftest.dSYM
15314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15315 conftest$ac_exeext conftest.$ac_ext
15316fi
15317{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15318$as_echo "$bash_cv_decl_strtoull" >&6; }
15319bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15320if test $bash_cv_decl_strtoull = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322#define $bash_tr_func 1
15323_ACEOF
15324
15325else
15326 cat >>confdefs.h <<_ACEOF
15327#define $bash_tr_func 0
15328_ACEOF
15329
15330fi
15331
15332
15333
15334
15335{ $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15336$as_echo_n "checking for declaration of strtoumax... " >&6; }
15337if test "${bash_cv_decl_strtoumax+set}" = set; then
15338 $as_echo_n "(cached) " >&6
15339else
15340 cat >conftest.$ac_ext <<_ACEOF
15341/* confdefs.h. */
15342_ACEOF
15343cat confdefs.h >>conftest.$ac_ext
15344cat >>conftest.$ac_ext <<_ACEOF
15345/* end confdefs.h. */
15346
15347#if STDC_HEADERS
15348# include <stdlib.h>
15349#endif
15350#if HAVE_INTTYPES_H
15351# include <inttypes.h>
15352#endif
15353
15354int
15355main ()
15356{
15357return !strtoumax;
15358 ;
15359 return 0;
15360}
15361_ACEOF
15362rm -f conftest.$ac_objext conftest$ac_exeext
15363if { (ac_try="$ac_link"
15364case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15369$as_echo "$ac_try_echo") >&5
15370 (eval "$ac_link") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext && {
15380 test "$cross_compiling" = yes ||
15381 $as_test_x conftest$ac_exeext
15382 }; then
15383 bash_cv_decl_strtoumax=yes
15384else
15385 $as_echo "$as_me: failed program was:" >&5
15386sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 bash_cv_decl_strtoumax=no
15389fi
15390
15391rm -rf conftest.dSYM
15392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15393 conftest$ac_exeext conftest.$ac_ext
15394fi
15395{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15396$as_echo "$bash_cv_decl_strtoumax" >&6; }
15397bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398if test $bash_cv_decl_strtoumax = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400#define $bash_tr_func 1
15401_ACEOF
15402
15403else
15404 cat >>confdefs.h <<_ACEOF
15405#define $bash_tr_func 0
15406_ACEOF
15407
15408fi
15409
15410
15411
15412
15413
15414
15415for ac_header in $ac_header_list
15416do
15417as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15420$as_echo_n "checking for $ac_header... " >&6; }
15421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 $as_echo_n "(cached) " >&6
15423fi
15424ac_res=`eval 'as_val=${'$as_ac_Header'}
15425 $as_echo "$as_val"'`
15426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15427$as_echo "$ac_res" >&6; }
15428else
15429 # Is the header compilable?
15430{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15431$as_echo_n "checking $ac_header usability... " >&6; }
15432cat >conftest.$ac_ext <<_ACEOF
15433/* confdefs.h. */
15434_ACEOF
15435cat confdefs.h >>conftest.$ac_ext
15436cat >>conftest.$ac_ext <<_ACEOF
15437/* end confdefs.h. */
15438$ac_includes_default
15439#include <$ac_header>
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (ac_try="$ac_compile"
15443case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15448$as_echo "$ac_try_echo") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && {
15456 test -z "$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15458 } && test -s conftest.$ac_objext; then
15459 ac_header_compiler=yes
15460else
15461 $as_echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 ac_header_compiler=no
15465fi
15466
15467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15469$as_echo "$ac_header_compiler" >&6; }
15470
15471# Is the header present?
15472{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15473$as_echo_n "checking $ac_header presence... " >&6; }
15474cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h. */
15480#include <$ac_header>
15481_ACEOF
15482if { (ac_try="$ac_cpp conftest.$ac_ext"
15483case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486esac
15487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15488$as_echo "$ac_try_echo") >&5
15489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null && {
15496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 }; then
15499 ac_header_preproc=yes
15500else
15501 $as_echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
15504 ac_header_preproc=no
15505fi
15506
15507rm -f conftest.err conftest.$ac_ext
15508{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509$as_echo "$ac_header_preproc" >&6; }
15510
15511# So? What about this header?
15512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15513 yes:no: )
15514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15515$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15517$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15519 ;;
15520 no:yes:* )
15521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15522$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15524$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15526$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15528$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15530$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15532$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15533 ( cat <<\_ASBOX
15534## ------------------------------- ##
15535## Report this to bug-bash@gnu.org ##
15536## ------------------------------- ##
15537_ASBOX
15538 ) | sed "s/^/$as_me: WARNING: /" >&2
15539 ;;
15540esac
15541{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15542$as_echo_n "checking for $ac_header... " >&6; }
15543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544 $as_echo_n "(cached) " >&6
15545else
15546 eval "$as_ac_Header=\$ac_header_preproc"
15547fi
15548ac_res=`eval 'as_val=${'$as_ac_Header'}
15549 $as_echo "$as_val"'`
15550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15551$as_echo "$ac_res" >&6; }
15552
15553fi
15554as_val=`eval 'as_val=${'$as_ac_Header'}
15555 $as_echo "$as_val"'`
15556 if test "x$as_val" = x""yes; then
15557 cat >>confdefs.h <<_ACEOF
15558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15559_ACEOF
15560
15561fi
15562
15563done
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573for ac_func in $ac_func_list
15574do
15575as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15576{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15577$as_echo_n "checking for $ac_func... " >&6; }
15578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15579 $as_echo_n "(cached) " >&6
15580else
15581 cat >conftest.$ac_ext <<_ACEOF
15582/* confdefs.h. */
15583_ACEOF
15584cat confdefs.h >>conftest.$ac_ext
15585cat >>conftest.$ac_ext <<_ACEOF
15586/* end confdefs.h. */
15587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15589#define $ac_func innocuous_$ac_func
15590
15591/* System header to define __stub macros and hopefully few prototypes,
15592 which can conflict with char $ac_func (); below.
15593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15594 <limits.h> exists even on freestanding compilers. */
15595
15596#ifdef __STDC__
15597# include <limits.h>
15598#else
15599# include <assert.h>
15600#endif
15601
15602#undef $ac_func
15603
15604/* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15607#ifdef __cplusplus
15608extern "C"
15609#endif
15610char $ac_func ();
15611/* The GNU C library defines this for functions which it implements
15612 to always fail with ENOSYS. Some functions are actually named
15613 something starting with __ and the normal name is an alias. */
15614#if defined __stub_$ac_func || defined __stub___$ac_func
15615choke me
15616#endif
15617
15618int
15619main ()
15620{
15621return $ac_func ();
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext conftest$ac_exeext
15627if { (ac_try="$ac_link"
15628case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15633$as_echo "$ac_try_echo") >&5
15634 (eval "$ac_link") 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest$ac_exeext && {
15644 test "$cross_compiling" = yes ||
15645 $as_test_x conftest$ac_exeext
15646 }; then
15647 eval "$as_ac_var=yes"
15648else
15649 $as_echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 eval "$as_ac_var=no"
15653fi
15654
15655rm -rf conftest.dSYM
15656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15657 conftest$ac_exeext conftest.$ac_ext
15658fi
15659ac_res=`eval 'as_val=${'$as_ac_var'}
15660 $as_echo "$as_val"'`
15661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15662$as_echo "$ac_res" >&6; }
15663as_val=`eval 'as_val=${'$as_ac_var'}
15664 $as_echo "$as_val"'`
15665 if test "x$as_val" = x""yes; then
15666 cat >>confdefs.h <<_ACEOF
15667#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15668_ACEOF
15669
15670fi
15671done
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15690$as_echo_n "checking for working mktime... " >&6; }
15691if test "${ac_cv_func_working_mktime+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15693else
15694 if test "$cross_compiling" = yes; then
15695 ac_cv_func_working_mktime=no
15696else
15697 cat >conftest.$ac_ext <<_ACEOF
15698/* confdefs.h. */
15699_ACEOF
15700cat confdefs.h >>conftest.$ac_ext
15701cat >>conftest.$ac_ext <<_ACEOF
15702/* end confdefs.h. */
15703/* Test program from Paul Eggert and Tony Leneis. */
15704#ifdef TIME_WITH_SYS_TIME
15705# include <sys/time.h>
15706# include <time.h>
15707#else
15708# ifdef HAVE_SYS_TIME_H
15709# include <sys/time.h>
15710# else
15711# include <time.h>
15712# endif
15713#endif
15714
15715#include <limits.h>
15716#include <stdlib.h>
15717
15718#ifdef HAVE_UNISTD_H
15719# include <unistd.h>
15720#endif
15721
15722#ifndef HAVE_ALARM
15723# define alarm(X) /* empty */
15724#endif
15725
15726/* Work around redefinition to rpl_putenv by other config tests. */
15727#undef putenv
15728
15729static time_t time_t_max;
15730static time_t time_t_min;
15731
15732/* Values we'll use to set the TZ environment variable. */
15733static char *tz_strings[] = {
15734 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15735 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15736};
15737#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15738
15739/* Return 0 if mktime fails to convert a date in the spring-forward gap.
15740 Based on a problem report from Andreas Jaeger. */
15741static int
15742spring_forward_gap ()
15743{
15744 /* glibc (up to about 1998-10-07) failed this test. */
15745 struct tm tm;
15746
15747 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15748 instead of "TZ=America/Vancouver" in order to detect the bug even
15749 on systems that don't support the Olson extension, or don't have the
15750 full zoneinfo tables installed. */
15751 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15752
15753 tm.tm_year = 98;
15754 tm.tm_mon = 3;
15755 tm.tm_mday = 5;
15756 tm.tm_hour = 2;
15757 tm.tm_min = 0;
15758 tm.tm_sec = 0;
15759 tm.tm_isdst = -1;
15760 return mktime (&tm) != (time_t) -1;
15761}
15762
15763static int
15764mktime_test1 (now)
15765 time_t now;
15766{
15767 struct tm *lt;
15768 return ! (lt = localtime (&now)) || mktime (lt) == now;
15769}
15770
15771static int
15772mktime_test (now)
15773 time_t now;
15774{
15775 return (mktime_test1 (now)
15776 && mktime_test1 ((time_t) (time_t_max - now))
15777 && mktime_test1 ((time_t) (time_t_min + now)));
15778}
15779
15780static int
15781irix_6_4_bug ()
15782{
15783 /* Based on code from Ariel Faigon. */
15784 struct tm tm;
15785 tm.tm_year = 96;
15786 tm.tm_mon = 3;
15787 tm.tm_mday = 0;
15788 tm.tm_hour = 0;
15789 tm.tm_min = 0;
15790 tm.tm_sec = 0;
15791 tm.tm_isdst = -1;
15792 mktime (&tm);
15793 return tm.tm_mon == 2 && tm.tm_mday == 31;
15794}
15795
15796static int
15797bigtime_test (j)
15798 int j;
15799{
15800 struct tm tm;
15801 time_t now;
15802 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15803 now = mktime (&tm);
15804 if (now != (time_t) -1)
15805 {
15806 struct tm *lt = localtime (&now);
15807 if (! (lt
15808 && lt->tm_year == tm.tm_year
15809 && lt->tm_mon == tm.tm_mon
15810 && lt->tm_mday == tm.tm_mday
15811 && lt->tm_hour == tm.tm_hour
15812 && lt->tm_min == tm.tm_min
15813 && lt->tm_sec == tm.tm_sec
15814 && lt->tm_yday == tm.tm_yday
15815 && lt->tm_wday == tm.tm_wday
15816 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15817 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15818 return 0;
15819 }
15820 return 1;
15821}
15822
15823static int
15824year_2050_test ()
15825{
15826 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15827 ignoring leap seconds. */
15828 unsigned long int answer = 2527315200UL;
15829
15830 struct tm tm;
15831 time_t t;
15832 tm.tm_year = 2050 - 1900;
15833 tm.tm_mon = 2 - 1;
15834 tm.tm_mday = 1;
15835 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15836 tm.tm_isdst = -1;
15837
15838 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15839 instead of "TZ=America/Vancouver" in order to detect the bug even
15840 on systems that don't support the Olson extension, or don't have the
15841 full zoneinfo tables installed. */
15842 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15843
15844 t = mktime (&tm);
15845
15846 /* Check that the result is either a failure, or close enough
15847 to the correct answer that we can assume the discrepancy is
15848 due to leap seconds. */
15849 return (t == (time_t) -1
15850 || (0 < t && answer - 120 <= t && t <= answer + 120));
15851}
15852
15853int
15854main ()
15855{
15856 time_t t, delta;
15857 int i, j;
15858
15859 /* This test makes some buggy mktime implementations loop.
15860 Give up after 60 seconds; a mktime slower than that
15861 isn't worth using anyway. */
15862 alarm (60);
15863
15864 for (;;)
15865 {
15866 t = (time_t_max << 1) + 1;
15867 if (t <= time_t_max)
15868 break;
15869 time_t_max = t;
15870 }
15871 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15872
15873 delta = time_t_max / 997; /* a suitable prime number */
15874 for (i = 0; i < N_STRINGS; i++)
15875 {
15876 if (tz_strings[i])
15877 putenv (tz_strings[i]);
15878
15879 for (t = 0; t <= time_t_max - delta; t += delta)
15880 if (! mktime_test (t))
15881 return 1;
15882 if (! (mktime_test ((time_t) 1)
15883 && mktime_test ((time_t) (60 * 60))
15884 && mktime_test ((time_t) (60 * 60 * 24))))
15885 return 1;
15886
15887 for (j = 1; ; j <<= 1)
15888 if (! bigtime_test (j))
15889 return 1;
15890 else if (INT_MAX / 2 < j)
15891 break;
15892 if (! bigtime_test (INT_MAX))
15893 return 1;
15894 }
15895 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15896}
15897_ACEOF
15898rm -f conftest$ac_exeext
15899if { (ac_try="$ac_link"
15900case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15905$as_echo "$ac_try_echo") >&5
15906 (eval "$ac_link") 2>&5
15907 ac_status=$?
15908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
15914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15915$as_echo "$ac_try_echo") >&5
15916 (eval "$ac_try") 2>&5
15917 ac_status=$?
15918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_cv_func_working_mktime=yes
15921else
15922 $as_echo "$as_me: program exited with status $ac_status" >&5
15923$as_echo "$as_me: failed program was:" >&5
15924sed 's/^/| /' conftest.$ac_ext >&5
15925
15926( exit $ac_status )
15927ac_cv_func_working_mktime=no
15928fi
15929rm -rf conftest.dSYM
15930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15931fi
15932
15933
15934fi
15935{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15936$as_echo "$ac_cv_func_working_mktime" >&6; }
15937if test $ac_cv_func_working_mktime = no; then
15938 case " $LIBOBJS " in
15939 *" mktime.$ac_objext "* ) ;;
15940 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15941 ;;
15942esac
15943
15944fi
15945
15946
15947
15948
15949
15950
15951
15952
15953for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
15954do
15955as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15958$as_echo_n "checking for $ac_header... " >&6; }
15959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 $as_echo_n "(cached) " >&6
15961fi
15962ac_res=`eval 'as_val=${'$as_ac_Header'}
15963 $as_echo "$as_val"'`
15964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15965$as_echo "$ac_res" >&6; }
15966else
15967 # Is the header compilable?
15968{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969$as_echo_n "checking $ac_header usability... " >&6; }
15970cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977#include <$ac_header>
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (ac_try="$ac_compile"
15981case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984esac
15985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15986$as_echo "$ac_try_echo") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest.$ac_objext; then
15997 ac_header_compiler=yes
15998else
15999 $as_echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 ac_header_compiler=no
16003fi
16004
16005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007$as_echo "$ac_header_compiler" >&6; }
16008
16009# Is the header present?
16010{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011$as_echo_n "checking $ac_header presence... " >&6; }
16012cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018#include <$ac_header>
16019_ACEOF
16020if { (ac_try="$ac_cpp conftest.$ac_ext"
16021case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16026$as_echo "$ac_try_echo") >&5
16027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16028 ac_status=$?
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
16032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } >/dev/null && {
16034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16035 test ! -s conftest.err
16036 }; then
16037 ac_header_preproc=yes
16038else
16039 $as_echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_header_preproc=no
16043fi
16044
16045rm -f conftest.err conftest.$ac_ext
16046{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16047$as_echo "$ac_header_preproc" >&6; }
16048
16049# So? What about this header?
16050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16051 yes:no: )
16052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16053$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16055$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16056 ac_header_preproc=yes
16057 ;;
16058 no:yes:* )
16059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16060$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16062$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16064$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16066$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16070$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16071 ( cat <<\_ASBOX
16072## ------------------------------- ##
16073## Report this to bug-bash@gnu.org ##
16074## ------------------------------- ##
16075_ASBOX
16076 ) | sed "s/^/$as_me: WARNING: /" >&2
16077 ;;
16078esac
16079{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16080$as_echo_n "checking for $ac_header... " >&6; }
16081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16082 $as_echo_n "(cached) " >&6
16083else
16084 eval "$as_ac_Header=\$ac_header_preproc"
16085fi
16086ac_res=`eval 'as_val=${'$as_ac_Header'}
16087 $as_echo "$as_val"'`
16088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16089$as_echo "$ac_res" >&6; }
16090
16091fi
16092as_val=`eval 'as_val=${'$as_ac_Header'}
16093 $as_echo "$as_val"'`
16094 if test "x$as_val" = x""yes; then
16095 cat >>confdefs.h <<_ACEOF
16096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16097_ACEOF
16098
16099fi
16100
16101done
16102
16103
16104
16105
16106for ac_header in stdlib.h unistd.h
16107do
16108as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16111$as_echo_n "checking for $ac_header... " >&6; }
16112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16113 $as_echo_n "(cached) " >&6
16114fi
16115ac_res=`eval 'as_val=${'$as_ac_Header'}
16116 $as_echo "$as_val"'`
16117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16118$as_echo "$ac_res" >&6; }
16119else
16120 # Is the header compilable?
16121{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16122$as_echo_n "checking $ac_header usability... " >&6; }
16123cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129$ac_includes_default
16130#include <$ac_header>
16131_ACEOF
16132rm -f conftest.$ac_objext
16133if { (ac_try="$ac_compile"
16134case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137esac
16138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139$as_echo "$ac_try_echo") >&5
16140 (eval "$ac_compile") 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest.$ac_objext; then
16150 ac_header_compiler=yes
16151else
16152 $as_echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ac_header_compiler=no
16156fi
16157
16158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16160$as_echo "$ac_header_compiler" >&6; }
16161
16162# Is the header present?
16163{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16164$as_echo_n "checking $ac_header presence... " >&6; }
16165cat >conftest.$ac_ext <<_ACEOF
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171#include <$ac_header>
16172_ACEOF
16173if { (ac_try="$ac_cpp conftest.$ac_ext"
16174case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16179$as_echo "$ac_try_echo") >&5
16180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } >/dev/null && {
16187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16188 test ! -s conftest.err
16189 }; then
16190 ac_header_preproc=yes
16191else
16192 $as_echo "$as_me: failed program was:" >&5
16193sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ac_header_preproc=no
16196fi
16197
16198rm -f conftest.err conftest.$ac_ext
16199{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16200$as_echo "$ac_header_preproc" >&6; }
16201
16202# So? What about this header?
16203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16204 yes:no: )
16205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16206$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16208$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16209 ac_header_preproc=yes
16210 ;;
16211 no:yes:* )
16212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16213$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16215$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16217$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16219$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16221$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16223$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16224 ( cat <<\_ASBOX
16225## ------------------------------- ##
16226## Report this to bug-bash@gnu.org ##
16227## ------------------------------- ##
16228_ASBOX
16229 ) | sed "s/^/$as_me: WARNING: /" >&2
16230 ;;
16231esac
16232{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16233$as_echo_n "checking for $ac_header... " >&6; }
16234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 $as_echo_n "(cached) " >&6
16236else
16237 eval "$as_ac_Header=\$ac_header_preproc"
16238fi
16239ac_res=`eval 'as_val=${'$as_ac_Header'}
16240 $as_echo "$as_val"'`
16241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16242$as_echo "$ac_res" >&6; }
16243
16244fi
16245as_val=`eval 'as_val=${'$as_ac_Header'}
16246 $as_echo "$as_val"'`
16247 if test "x$as_val" = x""yes; then
16248 cat >>confdefs.h <<_ACEOF
16249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16250_ACEOF
16251
16252fi
16253
16254done
16255
16256
16257for ac_func in getpagesize
16258do
16259as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16261$as_echo_n "checking for $ac_func... " >&6; }
16262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16263 $as_echo_n "(cached) " >&6
16264else
16265 cat >conftest.$ac_ext <<_ACEOF
16266/* confdefs.h. */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h. */
16271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16273#define $ac_func innocuous_$ac_func
16274
16275/* System header to define __stub macros and hopefully few prototypes,
16276 which can conflict with char $ac_func (); below.
16277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278 <limits.h> exists even on freestanding compilers. */
16279
16280#ifdef __STDC__
16281# include <limits.h>
16282#else
16283# include <assert.h>
16284#endif
16285
16286#undef $ac_func
16287
16288/* Override any GCC internal prototype to avoid an error.
16289 Use char because int might match the return type of a GCC
16290 builtin and then its argument prototype would still apply. */
16291#ifdef __cplusplus
16292extern "C"
16293#endif
16294char $ac_func ();
16295/* The GNU C library defines this for functions which it implements
16296 to always fail with ENOSYS. Some functions are actually named
16297 something starting with __ and the normal name is an alias. */
16298#if defined __stub_$ac_func || defined __stub___$ac_func
16299choke me
16300#endif
16301
16302int
16303main ()
16304{
16305return $ac_func ();
16306 ;
16307 return 0;
16308}
16309_ACEOF
16310rm -f conftest.$ac_objext conftest$ac_exeext
16311if { (ac_try="$ac_link"
16312case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315esac
16316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317$as_echo "$ac_try_echo") >&5
16318 (eval "$ac_link") 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext && {
16328 test "$cross_compiling" = yes ||
16329 $as_test_x conftest$ac_exeext
16330 }; then
16331 eval "$as_ac_var=yes"
16332else
16333 $as_echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 eval "$as_ac_var=no"
16337fi
16338
16339rm -rf conftest.dSYM
16340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16341 conftest$ac_exeext conftest.$ac_ext
16342fi
16343ac_res=`eval 'as_val=${'$as_ac_var'}
16344 $as_echo "$as_val"'`
16345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16346$as_echo "$ac_res" >&6; }
16347as_val=`eval 'as_val=${'$as_ac_var'}
16348 $as_echo "$as_val"'`
16349 if test "x$as_val" = x""yes; then
16350 cat >>confdefs.h <<_ACEOF
16351#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16352_ACEOF
16353
16354fi
16355done
16356
16357{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16358$as_echo_n "checking for working mmap... " >&6; }
16359if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16360 $as_echo_n "(cached) " >&6
16361else
16362 if test "$cross_compiling" = yes; then
16363 ac_cv_func_mmap_fixed_mapped=no
16364else
16365 cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h. */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h. */
16371$ac_includes_default
16372/* malloc might have been renamed as rpl_malloc. */
16373#undef malloc
16374
16375/* Thanks to Mike Haertel and Jim Avera for this test.
16376 Here is a matrix of mmap possibilities:
16377 mmap private not fixed
16378 mmap private fixed at somewhere currently unmapped
16379 mmap private fixed at somewhere already mapped
16380 mmap shared not fixed
16381 mmap shared fixed at somewhere currently unmapped
16382 mmap shared fixed at somewhere already mapped
16383 For private mappings, we should verify that changes cannot be read()
16384 back from the file, nor mmap's back from the file at a different
16385 address. (There have been systems where private was not correctly
16386 implemented like the infamous i386 svr4.0, and systems where the
16387 VM page cache was not coherent with the file system buffer cache
16388 like early versions of FreeBSD and possibly contemporary NetBSD.)
16389 For shared mappings, we should conversely verify that changes get
16390 propagated back to all the places they're supposed to be.
16391
16392 Grep wants private fixed already mapped.
16393 The main things grep needs to know about mmap are:
16394 * does it exist and is it safe to write into the mmap'd area
16395 * how to use it (BSD variants) */
16396
16397#include <fcntl.h>
16398#include <sys/mman.h>
16399
16400#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16401char *malloc ();
16402#endif
16403
16404/* This mess was copied from the GNU getpagesize.h. */
16405#ifndef HAVE_GETPAGESIZE
16406/* Assume that all systems that can run configure have sys/param.h. */
16407# ifndef HAVE_SYS_PARAM_H
16408# define HAVE_SYS_PARAM_H 1
16409# endif
16410
16411# ifdef _SC_PAGESIZE
16412# define getpagesize() sysconf(_SC_PAGESIZE)
16413# else /* no _SC_PAGESIZE */
16414# ifdef HAVE_SYS_PARAM_H
16415# include <sys/param.h>
16416# ifdef EXEC_PAGESIZE
16417# define getpagesize() EXEC_PAGESIZE
16418# else /* no EXEC_PAGESIZE */
16419# ifdef NBPG
16420# define getpagesize() NBPG * CLSIZE
16421# ifndef CLSIZE
16422# define CLSIZE 1
16423# endif /* no CLSIZE */
16424# else /* no NBPG */
16425# ifdef NBPC
16426# define getpagesize() NBPC
16427# else /* no NBPC */
16428# ifdef PAGESIZE
16429# define getpagesize() PAGESIZE
16430# endif /* PAGESIZE */
16431# endif /* no NBPC */
16432# endif /* no NBPG */
16433# endif /* no EXEC_PAGESIZE */
16434# else /* no HAVE_SYS_PARAM_H */
16435# define getpagesize() 8192 /* punt totally */
16436# endif /* no HAVE_SYS_PARAM_H */
16437# endif /* no _SC_PAGESIZE */
16438
16439#endif /* no HAVE_GETPAGESIZE */
16440
16441int
16442main ()
16443{
16444 char *data, *data2, *data3;
16445 int i, pagesize;
16446 int fd;
16447
16448 pagesize = getpagesize ();
16449
16450 /* First, make a file with some known garbage in it. */
16451 data = (char *) malloc (pagesize);
16452 if (!data)
16453 return 1;
16454 for (i = 0; i < pagesize; ++i)
16455 *(data + i) = rand ();
16456 umask (0);
16457 fd = creat ("conftest.mmap", 0600);
16458 if (fd < 0)
16459 return 1;
16460 if (write (fd, data, pagesize) != pagesize)
16461 return 1;
16462 close (fd);
16463
16464 /* Next, try to mmap the file at a fixed address which already has
16465 something else allocated at it. If we can, also make sure that
16466 we see the same garbage. */
16467 fd = open ("conftest.mmap", O_RDWR);
16468 if (fd < 0)
16469 return 1;
16470 data2 = (char *) malloc (2 * pagesize);
16471 if (!data2)
16472 return 1;
16473 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16474 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16475 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16476 return 1;
16477 for (i = 0; i < pagesize; ++i)
16478 if (*(data + i) != *(data2 + i))
16479 return 1;
16480
16481 /* Finally, make sure that changes to the mapped area do not
16482 percolate back to the file as seen by read(). (This is a bug on
16483 some variants of i386 svr4.0.) */
16484 for (i = 0; i < pagesize; ++i)
16485 *(data2 + i) = *(data2 + i) + 1;
16486 data3 = (char *) malloc (pagesize);
16487 if (!data3)
16488 return 1;
16489 if (read (fd, data3, pagesize) != pagesize)
16490 return 1;
16491 for (i = 0; i < pagesize; ++i)
16492 if (*(data + i) != *(data3 + i))
16493 return 1;
16494 close (fd);
16495 return 0;
16496}
16497_ACEOF
16498rm -f conftest$ac_exeext
16499if { (ac_try="$ac_link"
16500case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503esac
16504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505$as_echo "$ac_try_echo") >&5
16506 (eval "$ac_link") 2>&5
16507 ac_status=$?
16508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16513esac
16514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16515$as_echo "$ac_try_echo") >&5
16516 (eval "$ac_try") 2>&5
16517 ac_status=$?
16518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_func_mmap_fixed_mapped=yes
16521else
16522 $as_echo "$as_me: program exited with status $ac_status" >&5
16523$as_echo "$as_me: failed program was:" >&5
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526( exit $ac_status )
16527ac_cv_func_mmap_fixed_mapped=no
16528fi
16529rm -rf conftest.dSYM
16530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16531fi
16532
16533
16534fi
16535{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16536$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16537if test $ac_cv_func_mmap_fixed_mapped = yes; then
16538
16539cat >>confdefs.h <<\_ACEOF
16540#define HAVE_MMAP 1
16541_ACEOF
16542
16543fi
16544rm -f conftest.mmap
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16556 munmap stpcpy strcspn strdup
16557do
16558as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16560$as_echo_n "checking for $ac_func... " >&6; }
16561if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16562 $as_echo_n "(cached) " >&6
16563else
16564 cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572#define $ac_func innocuous_$ac_func
16573
16574/* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16578
16579#ifdef __STDC__
16580# include <limits.h>
16581#else
16582# include <assert.h>
16583#endif
16584
16585#undef $ac_func
16586
16587/* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16590#ifdef __cplusplus
16591extern "C"
16592#endif
16593char $ac_func ();
16594/* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597#if defined __stub_$ac_func || defined __stub___$ac_func
16598choke me
16599#endif
16600
16601int
16602main ()
16603{
16604return $ac_func ();
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest.$ac_objext conftest$ac_exeext
16610if { (ac_try="$ac_link"
16611case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16616$as_echo "$ac_try_echo") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext && {
16627 test "$cross_compiling" = yes ||
16628 $as_test_x conftest$ac_exeext
16629 }; then
16630 eval "$as_ac_var=yes"
16631else
16632 $as_echo "$as_me: failed program was:" >&5
16633sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 eval "$as_ac_var=no"
16636fi
16637
16638rm -rf conftest.dSYM
16639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16641fi
16642ac_res=`eval 'as_val=${'$as_ac_var'}
16643 $as_echo "$as_val"'`
16644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16645$as_echo "$ac_res" >&6; }
16646as_val=`eval 'as_val=${'$as_ac_var'}
16647 $as_echo "$as_val"'`
16648 if test "x$as_val" = x""yes; then
16649 cat >>confdefs.h <<_ACEOF
16650#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651_ACEOF
16652
16653fi
16654done
16655
16656
16657INTL_DEP= INTL_INC= LIBINTL_H=
16658if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16659 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16660 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16661 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16662fi
16663
16664
16665
16666
16667
16668
16669
16670for ac_header in wctype.h
16671do
16672as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16675$as_echo_n "checking for $ac_header... " >&6; }
16676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 $as_echo_n "(cached) " >&6
16678fi
16679ac_res=`eval 'as_val=${'$as_ac_Header'}
16680 $as_echo "$as_val"'`
16681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16682$as_echo "$ac_res" >&6; }
16683else
16684 # Is the header compilable?
16685{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16686$as_echo_n "checking $ac_header usability... " >&6; }
16687cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693$ac_includes_default
16694#include <$ac_header>
16695_ACEOF
16696rm -f conftest.$ac_objext
16697if { (ac_try="$ac_compile"
16698case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701esac
16702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16703$as_echo "$ac_try_echo") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16714 ac_header_compiler=yes
16715else
16716 $as_echo "$as_me: failed program was:" >&5
16717sed 's/^/| /' conftest.$ac_ext >&5
16718
16719 ac_header_compiler=no
16720fi
16721
16722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16724$as_echo "$ac_header_compiler" >&6; }
16725
16726# Is the header present?
16727{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16728$as_echo_n "checking $ac_header presence... " >&6; }
16729cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735#include <$ac_header>
16736_ACEOF
16737if { (ac_try="$ac_cpp conftest.$ac_ext"
16738case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741esac
16742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16743$as_echo "$ac_try_echo") >&5
16744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } >/dev/null && {
16751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 }; then
16754 ac_header_preproc=yes
16755else
16756 $as_echo "$as_me: failed program was:" >&5
16757sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 ac_header_preproc=no
16760fi
16761
16762rm -f conftest.err conftest.$ac_ext
16763{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16764$as_echo "$ac_header_preproc" >&6; }
16765
16766# So? What about this header?
16767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16768 yes:no: )
16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16770$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16772$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16773 ac_header_preproc=yes
16774 ;;
16775 no:yes:* )
16776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16779$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16781$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16783$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16785$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16787$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16788 ( cat <<\_ASBOX
16789## ------------------------------- ##
16790## Report this to bug-bash@gnu.org ##
16791## ------------------------------- ##
16792_ASBOX
16793 ) | sed "s/^/$as_me: WARNING: /" >&2
16794 ;;
16795esac
16796{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16797$as_echo_n "checking for $ac_header... " >&6; }
16798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16799 $as_echo_n "(cached) " >&6
16800else
16801 eval "$as_ac_Header=\$ac_header_preproc"
16802fi
16803ac_res=`eval 'as_val=${'$as_ac_Header'}
16804 $as_echo "$as_val"'`
16805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16806$as_echo "$ac_res" >&6; }
16807
16808fi
16809as_val=`eval 'as_val=${'$as_ac_Header'}
16810 $as_echo "$as_val"'`
16811 if test "x$as_val" = x""yes; then
16812 cat >>confdefs.h <<_ACEOF
16813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16814_ACEOF
16815
16816fi
16817
16818done
16819
16820
16821for ac_header in wchar.h
16822do
16823as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16826$as_echo_n "checking for $ac_header... " >&6; }
16827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16828 $as_echo_n "(cached) " >&6
16829fi
16830ac_res=`eval 'as_val=${'$as_ac_Header'}
16831 $as_echo "$as_val"'`
16832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16833$as_echo "$ac_res" >&6; }
16834else
16835 # Is the header compilable?
16836{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16837$as_echo_n "checking $ac_header usability... " >&6; }
16838cat >conftest.$ac_ext <<_ACEOF
16839/* confdefs.h. */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h. */
16844$ac_includes_default
16845#include <$ac_header>
16846_ACEOF
16847rm -f conftest.$ac_objext
16848if { (ac_try="$ac_compile"
16849case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852esac
16853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16854$as_echo "$ac_try_echo") >&5
16855 (eval "$ac_compile") 2>conftest.er1
16856 ac_status=$?
16857 grep -v '^ *+' conftest.er1 >conftest.err
16858 rm -f conftest.er1
16859 cat conftest.err >&5
16860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest.$ac_objext; then
16865 ac_header_compiler=yes
16866else
16867 $as_echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 ac_header_compiler=no
16871fi
16872
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16875$as_echo "$ac_header_compiler" >&6; }
16876
16877# Is the header present?
16878{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16879$as_echo_n "checking $ac_header presence... " >&6; }
16880cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886#include <$ac_header>
16887_ACEOF
16888if { (ac_try="$ac_cpp conftest.$ac_ext"
16889case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892esac
16893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16894$as_echo "$ac_try_echo") >&5
16895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } >/dev/null && {
16902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16904 }; then
16905 ac_header_preproc=yes
16906else
16907 $as_echo "$as_me: failed program was:" >&5
16908sed 's/^/| /' conftest.$ac_ext >&5
16909
16910 ac_header_preproc=no
16911fi
16912
16913rm -f conftest.err conftest.$ac_ext
16914{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16915$as_echo "$ac_header_preproc" >&6; }
16916
16917# So? What about this header?
16918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16919 yes:no: )
16920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16921$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16923$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16924 ac_header_preproc=yes
16925 ;;
16926 no:yes:* )
16927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16928$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16930$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16932$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16934$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16936$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16938$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16939 ( cat <<\_ASBOX
16940## ------------------------------- ##
16941## Report this to bug-bash@gnu.org ##
16942## ------------------------------- ##
16943_ASBOX
16944 ) | sed "s/^/$as_me: WARNING: /" >&2
16945 ;;
16946esac
16947{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16948$as_echo_n "checking for $ac_header... " >&6; }
16949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16950 $as_echo_n "(cached) " >&6
16951else
16952 eval "$as_ac_Header=\$ac_header_preproc"
16953fi
16954ac_res=`eval 'as_val=${'$as_ac_Header'}
16955 $as_echo "$as_val"'`
16956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16957$as_echo "$ac_res" >&6; }
16958
16959fi
16960as_val=`eval 'as_val=${'$as_ac_Header'}
16961 $as_echo "$as_val"'`
16962 if test "x$as_val" = x""yes; then
16963 cat >>confdefs.h <<_ACEOF
16964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16965_ACEOF
16966
16967fi
16968
16969done
16970
16971
16972for ac_header in langinfo.h
16973do
16974as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16977$as_echo_n "checking for $ac_header... " >&6; }
16978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 $as_echo_n "(cached) " >&6
16980fi
16981ac_res=`eval 'as_val=${'$as_ac_Header'}
16982 $as_echo "$as_val"'`
16983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16984$as_echo "$ac_res" >&6; }
16985else
16986 # Is the header compilable?
16987{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16988$as_echo_n "checking $ac_header usability... " >&6; }
16989cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995$ac_includes_default
16996#include <$ac_header>
16997_ACEOF
16998rm -f conftest.$ac_objext
16999if { (ac_try="$ac_compile"
17000case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17005$as_echo "$ac_try_echo") >&5
17006 (eval "$ac_compile") 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } && {
17013 test -z "$ac_c_werror_flag" ||
17014 test ! -s conftest.err
17015 } && test -s conftest.$ac_objext; then
17016 ac_header_compiler=yes
17017else
17018 $as_echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ac_header_compiler=no
17022fi
17023
17024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026$as_echo "$ac_header_compiler" >&6; }
17027
17028# Is the header present?
17029{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17030$as_echo_n "checking $ac_header presence... " >&6; }
17031cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037#include <$ac_header>
17038_ACEOF
17039if { (ac_try="$ac_cpp conftest.$ac_ext"
17040case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17045$as_echo "$ac_try_echo") >&5
17046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } >/dev/null && {
17053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 }; then
17056 ac_header_preproc=yes
17057else
17058 $as_echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 ac_header_preproc=no
17062fi
17063
17064rm -f conftest.err conftest.$ac_ext
17065{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17066$as_echo "$ac_header_preproc" >&6; }
17067
17068# So? What about this header?
17069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17070 yes:no: )
17071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17072$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17074$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17075 ac_header_preproc=yes
17076 ;;
17077 no:yes:* )
17078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17079$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17081$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17083$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17085$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17087$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17089$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17090 ( cat <<\_ASBOX
17091## ------------------------------- ##
17092## Report this to bug-bash@gnu.org ##
17093## ------------------------------- ##
17094_ASBOX
17095 ) | sed "s/^/$as_me: WARNING: /" >&2
17096 ;;
17097esac
17098{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17099$as_echo_n "checking for $ac_header... " >&6; }
17100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17101 $as_echo_n "(cached) " >&6
17102else
17103 eval "$as_ac_Header=\$ac_header_preproc"
17104fi
17105ac_res=`eval 'as_val=${'$as_ac_Header'}
17106 $as_echo "$as_val"'`
17107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17108$as_echo "$ac_res" >&6; }
17109
17110fi
17111as_val=`eval 'as_val=${'$as_ac_Header'}
17112 $as_echo "$as_val"'`
17113 if test "x$as_val" = x""yes; then
17114 cat >>confdefs.h <<_ACEOF
17115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17116_ACEOF
17117
17118fi
17119
17120done
17121
17122
17123{ $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
17124$as_echo_n "checking for mbrlen... " >&6; }
17125if test "${ac_cv_func_mbrlen+set}" = set; then
17126 $as_echo_n "(cached) " >&6
17127else
17128 cat >conftest.$ac_ext <<_ACEOF
17129/* confdefs.h. */
17130_ACEOF
17131cat confdefs.h >>conftest.$ac_ext
17132cat >>conftest.$ac_ext <<_ACEOF
17133/* end confdefs.h. */
17134/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136#define mbrlen innocuous_mbrlen
17137
17138/* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char mbrlen (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
17142
17143#ifdef __STDC__
17144# include <limits.h>
17145#else
17146# include <assert.h>
17147#endif
17148
17149#undef mbrlen
17150
17151/* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17154#ifdef __cplusplus
17155extern "C"
17156#endif
17157char mbrlen ();
17158/* The GNU C library defines this for functions which it implements
17159 to always fail with ENOSYS. Some functions are actually named
17160 something starting with __ and the normal name is an alias. */
17161#if defined __stub_mbrlen || defined __stub___mbrlen
17162choke me
17163#endif
17164
17165int
17166main ()
17167{
17168return mbrlen ();
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext conftest$ac_exeext
17174if { (ac_try="$ac_link"
17175case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17180$as_echo "$ac_try_echo") >&5
17181 (eval "$ac_link") 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } && {
17188 test -z "$ac_c_werror_flag" ||
17189 test ! -s conftest.err
17190 } && test -s conftest$ac_exeext && {
17191 test "$cross_compiling" = yes ||
17192 $as_test_x conftest$ac_exeext
17193 }; then
17194 ac_cv_func_mbrlen=yes
17195else
17196 $as_echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 ac_cv_func_mbrlen=no
17200fi
17201
17202rm -rf conftest.dSYM
17203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17204 conftest$ac_exeext conftest.$ac_ext
17205fi
17206{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
17207$as_echo "$ac_cv_func_mbrlen" >&6; }
17208if test "x$ac_cv_func_mbrlen" = x""yes; then
17209 cat >>confdefs.h <<\_ACEOF
17210#define HAVE_MBRLEN 1
17211_ACEOF
17212
17213fi
17214
17215{ $as_echo "$as_me:$LINENO: checking for mbscasecmp" >&5
17216$as_echo_n "checking for mbscasecmp... " >&6; }
17217if test "${ac_cv_func_mbscasecmp+set}" = set; then
17218 $as_echo_n "(cached) " >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226/* Define mbscasecmp to an innocuous variant, in case <limits.h> declares mbscasecmp.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228#define mbscasecmp innocuous_mbscasecmp
17229
17230/* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char mbscasecmp (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17234
17235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
17240
17241#undef mbscasecmp
17242
17243/* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17246#ifdef __cplusplus
17247extern "C"
17248#endif
17249char mbscasecmp ();
17250/* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253#if defined __stub_mbscasecmp || defined __stub___mbscasecmp
17254choke me
17255#endif
17256
17257int
17258main ()
17259{
17260return mbscasecmp ();
17261 ;
17262 return 0;
17263}
17264_ACEOF
17265rm -f conftest.$ac_objext conftest$ac_exeext
17266if { (ac_try="$ac_link"
17267case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270esac
17271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17272$as_echo "$ac_try_echo") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext && {
17283 test "$cross_compiling" = yes ||
17284 $as_test_x conftest$ac_exeext
17285 }; then
17286 ac_cv_func_mbscasecmp=yes
17287else
17288 $as_echo "$as_me: failed program was:" >&5
17289sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 ac_cv_func_mbscasecmp=no
17292fi
17293
17294rm -rf conftest.dSYM
17295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17296 conftest$ac_exeext conftest.$ac_ext
17297fi
17298{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscasecmp" >&5
17299$as_echo "$ac_cv_func_mbscasecmp" >&6; }
17300if test "x$ac_cv_func_mbscasecmp" = x""yes; then
17301 cat >>confdefs.h <<\_ACEOF
17302#define HAVE_MBSCMP 1
17303_ACEOF
17304
17305fi
17306
17307{ $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
17308$as_echo_n "checking for mbscmp... " >&6; }
17309if test "${ac_cv_func_mbscmp+set}" = set; then
17310 $as_echo_n "(cached) " >&6
17311else
17312 cat >conftest.$ac_ext <<_ACEOF
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318/* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320#define mbscmp innocuous_mbscmp
17321
17322/* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char mbscmp (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17326
17327#ifdef __STDC__
17328# include <limits.h>
17329#else
17330# include <assert.h>
17331#endif
17332
17333#undef mbscmp
17334
17335/* Override any GCC internal prototype to avoid an error.
17336 Use char because int might match the return type of a GCC
17337 builtin and then its argument prototype would still apply. */
17338#ifdef __cplusplus
17339extern "C"
17340#endif
17341char mbscmp ();
17342/* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345#if defined __stub_mbscmp || defined __stub___mbscmp
17346choke me
17347#endif
17348
17349int
17350main ()
17351{
17352return mbscmp ();
17353 ;
17354 return 0;
17355}
17356_ACEOF
17357rm -f conftest.$ac_objext conftest$ac_exeext
17358if { (ac_try="$ac_link"
17359case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17364$as_echo "$ac_try_echo") >&5
17365 (eval "$ac_link") 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext && {
17375 test "$cross_compiling" = yes ||
17376 $as_test_x conftest$ac_exeext
17377 }; then
17378 ac_cv_func_mbscmp=yes
17379else
17380 $as_echo "$as_me: failed program was:" >&5
17381sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 ac_cv_func_mbscmp=no
17384fi
17385
17386rm -rf conftest.dSYM
17387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17389fi
17390{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17391$as_echo "$ac_cv_func_mbscmp" >&6; }
17392if test "x$ac_cv_func_mbscmp" = x""yes; then
17393 cat >>confdefs.h <<\_ACEOF
17394#define HAVE_MBSCMP 1
17395_ACEOF
17396
17397fi
17398
17399{ $as_echo "$as_me:$LINENO: checking for mbsnrtowcs" >&5
17400$as_echo_n "checking for mbsnrtowcs... " >&6; }
17401if test "${ac_cv_func_mbsnrtowcs+set}" = set; then
17402 $as_echo_n "(cached) " >&6
17403else
17404 cat >conftest.$ac_ext <<_ACEOF
17405/* confdefs.h. */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h. */
17410/* Define mbsnrtowcs to an innocuous variant, in case <limits.h> declares mbsnrtowcs.
17411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17412#define mbsnrtowcs innocuous_mbsnrtowcs
17413
17414/* System header to define __stub macros and hopefully few prototypes,
17415 which can conflict with char mbsnrtowcs (); below.
17416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17417 <limits.h> exists even on freestanding compilers. */
17418
17419#ifdef __STDC__
17420# include <limits.h>
17421#else
17422# include <assert.h>
17423#endif
17424
17425#undef mbsnrtowcs
17426
17427/* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17430#ifdef __cplusplus
17431extern "C"
17432#endif
17433char mbsnrtowcs ();
17434/* The GNU C library defines this for functions which it implements
17435 to always fail with ENOSYS. Some functions are actually named
17436 something starting with __ and the normal name is an alias. */
17437#if defined __stub_mbsnrtowcs || defined __stub___mbsnrtowcs
17438choke me
17439#endif
17440
17441int
17442main ()
17443{
17444return mbsnrtowcs ();
17445 ;
17446 return 0;
17447}
17448_ACEOF
17449rm -f conftest.$ac_objext conftest$ac_exeext
17450if { (ac_try="$ac_link"
17451case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454esac
17455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17456$as_echo "$ac_try_echo") >&5
17457 (eval "$ac_link") 2>conftest.er1
17458 ac_status=$?
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
17462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } && {
17464 test -z "$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 } && test -s conftest$ac_exeext && {
17467 test "$cross_compiling" = yes ||
17468 $as_test_x conftest$ac_exeext
17469 }; then
17470 ac_cv_func_mbsnrtowcs=yes
17471else
17472 $as_echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475 ac_cv_func_mbsnrtowcs=no
17476fi
17477
17478rm -rf conftest.dSYM
17479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17480 conftest$ac_exeext conftest.$ac_ext
17481fi
17482{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsnrtowcs" >&5
17483$as_echo "$ac_cv_func_mbsnrtowcs" >&6; }
17484if test "x$ac_cv_func_mbsnrtowcs" = x""yes; then
17485 cat >>confdefs.h <<\_ACEOF
17486#define HAVE_MBSNRTOWCS 1
17487_ACEOF
17488
17489fi
17490
17491{ $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17492$as_echo_n "checking for mbsrtowcs... " >&6; }
17493if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17494 $as_echo_n "(cached) " >&6
17495else
17496 cat >conftest.$ac_ext <<_ACEOF
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
17502/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17504#define mbsrtowcs innocuous_mbsrtowcs
17505
17506/* System header to define __stub macros and hopefully few prototypes,
17507 which can conflict with char mbsrtowcs (); below.
17508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17509 <limits.h> exists even on freestanding compilers. */
17510
17511#ifdef __STDC__
17512# include <limits.h>
17513#else
17514# include <assert.h>
17515#endif
17516
17517#undef mbsrtowcs
17518
17519/* Override any GCC internal prototype to avoid an error.
17520 Use char because int might match the return type of a GCC
17521 builtin and then its argument prototype would still apply. */
17522#ifdef __cplusplus
17523extern "C"
17524#endif
17525char mbsrtowcs ();
17526/* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529#if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17530choke me
17531#endif
17532
17533int
17534main ()
17535{
17536return mbsrtowcs ();
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext conftest$ac_exeext
17542if { (ac_try="$ac_link"
17543case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17548$as_echo "$ac_try_echo") >&5
17549 (eval "$ac_link") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext && {
17559 test "$cross_compiling" = yes ||
17560 $as_test_x conftest$ac_exeext
17561 }; then
17562 ac_cv_func_mbsrtowcs=yes
17563else
17564 $as_echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 ac_cv_func_mbsrtowcs=no
17568fi
17569
17570rm -rf conftest.dSYM
17571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17572 conftest$ac_exeext conftest.$ac_ext
17573fi
17574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17575$as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17576if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
17577 cat >>confdefs.h <<\_ACEOF
17578#define HAVE_MBSRTOWCS 1
17579_ACEOF
17580
17581fi
17582
17583
17584
17585for ac_func in mbschr
17586do
17587as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17588{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17589$as_echo_n "checking for $ac_func... " >&6; }
17590if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17591 $as_echo_n "(cached) " >&6
17592else
17593 cat >conftest.$ac_ext <<_ACEOF
17594/* confdefs.h. */
17595_ACEOF
17596cat confdefs.h >>conftest.$ac_ext
17597cat >>conftest.$ac_ext <<_ACEOF
17598/* end confdefs.h. */
17599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17601#define $ac_func innocuous_$ac_func
17602
17603/* System header to define __stub macros and hopefully few prototypes,
17604 which can conflict with char $ac_func (); below.
17605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606 <limits.h> exists even on freestanding compilers. */
17607
17608#ifdef __STDC__
17609# include <limits.h>
17610#else
17611# include <assert.h>
17612#endif
17613
17614#undef $ac_func
17615
17616/* Override any GCC internal prototype to avoid an error.
17617 Use char because int might match the return type of a GCC
17618 builtin and then its argument prototype would still apply. */
17619#ifdef __cplusplus
17620extern "C"
17621#endif
17622char $ac_func ();
17623/* The GNU C library defines this for functions which it implements
17624 to always fail with ENOSYS. Some functions are actually named
17625 something starting with __ and the normal name is an alias. */
17626#if defined __stub_$ac_func || defined __stub___$ac_func
17627choke me
17628#endif
17629
17630int
17631main ()
17632{
17633return $ac_func ();
17634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest.$ac_objext conftest$ac_exeext
17639if { (ac_try="$ac_link"
17640case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643esac
17644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645$as_echo "$ac_try_echo") >&5
17646 (eval "$ac_link") 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest$ac_exeext && {
17656 test "$cross_compiling" = yes ||
17657 $as_test_x conftest$ac_exeext
17658 }; then
17659 eval "$as_ac_var=yes"
17660else
17661 $as_echo "$as_me: failed program was:" >&5
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
17664 eval "$as_ac_var=no"
17665fi
17666
17667rm -rf conftest.dSYM
17668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17669 conftest$ac_exeext conftest.$ac_ext
17670fi
17671ac_res=`eval 'as_val=${'$as_ac_var'}
17672 $as_echo "$as_val"'`
17673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17674$as_echo "$ac_res" >&6; }
17675as_val=`eval 'as_val=${'$as_ac_var'}
17676 $as_echo "$as_val"'`
17677 if test "x$as_val" = x""yes; then
17678 cat >>confdefs.h <<_ACEOF
17679#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17680_ACEOF
17681
17682else
17683 case " $LIBOBJS " in
17684 *" $ac_func.$ac_objext "* ) ;;
17685 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17686 ;;
17687esac
17688
17689fi
17690done
17691
17692
17693
17694{ $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17695$as_echo_n "checking for wcrtomb... " >&6; }
17696if test "${ac_cv_func_wcrtomb+set}" = set; then
17697 $as_echo_n "(cached) " >&6
17698else
17699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707#define wcrtomb innocuous_wcrtomb
17708
17709/* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char wcrtomb (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17713
17714#ifdef __STDC__
17715# include <limits.h>
17716#else
17717# include <assert.h>
17718#endif
17719
17720#undef wcrtomb
17721
17722/* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725#ifdef __cplusplus
17726extern "C"
17727#endif
17728char wcrtomb ();
17729/* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732#if defined __stub_wcrtomb || defined __stub___wcrtomb
17733choke me
17734#endif
17735
17736int
17737main ()
17738{
17739return wcrtomb ();
17740 ;
17741 return 0;
17742}
17743_ACEOF
17744rm -f conftest.$ac_objext conftest$ac_exeext
17745if { (ac_try="$ac_link"
17746case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17751$as_echo "$ac_try_echo") >&5
17752 (eval "$ac_link") 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && {
17759 test -z "$ac_c_werror_flag" ||
17760 test ! -s conftest.err
17761 } && test -s conftest$ac_exeext && {
17762 test "$cross_compiling" = yes ||
17763 $as_test_x conftest$ac_exeext
17764 }; then
17765 ac_cv_func_wcrtomb=yes
17766else
17767 $as_echo "$as_me: failed program was:" >&5
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 ac_cv_func_wcrtomb=no
17771fi
17772
17773rm -rf conftest.dSYM
17774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17775 conftest$ac_exeext conftest.$ac_ext
17776fi
17777{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17778$as_echo "$ac_cv_func_wcrtomb" >&6; }
17779if test "x$ac_cv_func_wcrtomb" = x""yes; then
17780 cat >>confdefs.h <<\_ACEOF
17781#define HAVE_WCRTOMB 1
17782_ACEOF
17783
17784fi
17785
17786{ $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17787$as_echo_n "checking for wcscoll... " >&6; }
17788if test "${ac_cv_func_wcscoll+set}" = set; then
17789 $as_echo_n "(cached) " >&6
17790else
17791 cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17799#define wcscoll innocuous_wcscoll
17800
17801/* System header to define __stub macros and hopefully few prototypes,
17802 which can conflict with char wcscoll (); below.
17803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804 <limits.h> exists even on freestanding compilers. */
17805
17806#ifdef __STDC__
17807# include <limits.h>
17808#else
17809# include <assert.h>
17810#endif
17811
17812#undef wcscoll
17813
17814/* Override any GCC internal prototype to avoid an error.
17815 Use char because int might match the return type of a GCC
17816 builtin and then its argument prototype would still apply. */
17817#ifdef __cplusplus
17818extern "C"
17819#endif
17820char wcscoll ();
17821/* The GNU C library defines this for functions which it implements
17822 to always fail with ENOSYS. Some functions are actually named
17823 something starting with __ and the normal name is an alias. */
17824#if defined __stub_wcscoll || defined __stub___wcscoll
17825choke me
17826#endif
17827
17828int
17829main ()
17830{
17831return wcscoll ();
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext conftest$ac_exeext
17837if { (ac_try="$ac_link"
17838case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17843$as_echo "$ac_try_echo") >&5
17844 (eval "$ac_link") 2>conftest.er1
17845 ac_status=$?
17846 grep -v '^ *+' conftest.er1 >conftest.err
17847 rm -f conftest.er1
17848 cat conftest.err >&5
17849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && {
17851 test -z "$ac_c_werror_flag" ||
17852 test ! -s conftest.err
17853 } && test -s conftest$ac_exeext && {
17854 test "$cross_compiling" = yes ||
17855 $as_test_x conftest$ac_exeext
17856 }; then
17857 ac_cv_func_wcscoll=yes
17858else
17859 $as_echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_func_wcscoll=no
17863fi
17864
17865rm -rf conftest.dSYM
17866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17867 conftest$ac_exeext conftest.$ac_ext
17868fi
17869{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17870$as_echo "$ac_cv_func_wcscoll" >&6; }
17871if test "x$ac_cv_func_wcscoll" = x""yes; then
17872 cat >>confdefs.h <<\_ACEOF
17873#define HAVE_WCSCOLL 1
17874_ACEOF
17875
17876fi
17877
17878{ $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17879$as_echo_n "checking for wcsdup... " >&6; }
17880if test "${ac_cv_func_wcsdup+set}" = set; then
17881 $as_echo_n "(cached) " >&6
17882else
17883 cat >conftest.$ac_ext <<_ACEOF
17884/* confdefs.h. */
17885_ACEOF
17886cat confdefs.h >>conftest.$ac_ext
17887cat >>conftest.$ac_ext <<_ACEOF
17888/* end confdefs.h. */
17889/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17891#define wcsdup innocuous_wcsdup
17892
17893/* System header to define __stub macros and hopefully few prototypes,
17894 which can conflict with char wcsdup (); below.
17895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17896 <limits.h> exists even on freestanding compilers. */
17897
17898#ifdef __STDC__
17899# include <limits.h>
17900#else
17901# include <assert.h>
17902#endif
17903
17904#undef wcsdup
17905
17906/* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909#ifdef __cplusplus
17910extern "C"
17911#endif
17912char wcsdup ();
17913/* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916#if defined __stub_wcsdup || defined __stub___wcsdup
17917choke me
17918#endif
17919
17920int
17921main ()
17922{
17923return wcsdup ();
17924 ;
17925 return 0;
17926}
17927_ACEOF
17928rm -f conftest.$ac_objext conftest$ac_exeext
17929if { (ac_try="$ac_link"
17930case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933esac
17934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17935$as_echo "$ac_try_echo") >&5
17936 (eval "$ac_link") 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } && {
17943 test -z "$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17945 } && test -s conftest$ac_exeext && {
17946 test "$cross_compiling" = yes ||
17947 $as_test_x conftest$ac_exeext
17948 }; then
17949 ac_cv_func_wcsdup=yes
17950else
17951 $as_echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 ac_cv_func_wcsdup=no
17955fi
17956
17957rm -rf conftest.dSYM
17958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17959 conftest$ac_exeext conftest.$ac_ext
17960fi
17961{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17962$as_echo "$ac_cv_func_wcsdup" >&6; }
17963if test "x$ac_cv_func_wcsdup" = x""yes; then
17964 cat >>confdefs.h <<\_ACEOF
17965#define HAVE_WCSDUP 1
17966_ACEOF
17967
17968fi
17969
17970{ $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17971$as_echo_n "checking for wcwidth... " >&6; }
17972if test "${ac_cv_func_wcwidth+set}" = set; then
17973 $as_echo_n "(cached) " >&6
17974else
17975 cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
17981/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17983#define wcwidth innocuous_wcwidth
17984
17985/* System header to define __stub macros and hopefully few prototypes,
17986 which can conflict with char wcwidth (); below.
17987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17988 <limits.h> exists even on freestanding compilers. */
17989
17990#ifdef __STDC__
17991# include <limits.h>
17992#else
17993# include <assert.h>
17994#endif
17995
17996#undef wcwidth
17997
17998/* Override any GCC internal prototype to avoid an error.
17999 Use char because int might match the return type of a GCC
18000 builtin and then its argument prototype would still apply. */
18001#ifdef __cplusplus
18002extern "C"
18003#endif
18004char wcwidth ();
18005/* The GNU C library defines this for functions which it implements
18006 to always fail with ENOSYS. Some functions are actually named
18007 something starting with __ and the normal name is an alias. */
18008#if defined __stub_wcwidth || defined __stub___wcwidth
18009choke me
18010#endif
18011
18012int
18013main ()
18014{
18015return wcwidth ();
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020rm -f conftest.$ac_objext conftest$ac_exeext
18021if { (ac_try="$ac_link"
18022case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025esac
18026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18027$as_echo "$ac_try_echo") >&5
18028 (eval "$ac_link") 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest$ac_exeext && {
18038 test "$cross_compiling" = yes ||
18039 $as_test_x conftest$ac_exeext
18040 }; then
18041 ac_cv_func_wcwidth=yes
18042else
18043 $as_echo "$as_me: failed program was:" >&5
18044sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 ac_cv_func_wcwidth=no
18047fi
18048
18049rm -rf conftest.dSYM
18050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18051 conftest$ac_exeext conftest.$ac_ext
18052fi
18053{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
18054$as_echo "$ac_cv_func_wcwidth" >&6; }
18055if test "x$ac_cv_func_wcwidth" = x""yes; then
18056 cat >>confdefs.h <<\_ACEOF
18057#define HAVE_WCWIDTH 1
18058_ACEOF
18059
18060fi
18061
18062{ $as_echo "$as_me:$LINENO: checking for wctype" >&5
18063$as_echo_n "checking for wctype... " >&6; }
18064if test "${ac_cv_func_wctype+set}" = set; then
18065 $as_echo_n "(cached) " >&6
18066else
18067 cat >conftest.$ac_ext <<_ACEOF
18068/* confdefs.h. */
18069_ACEOF
18070cat confdefs.h >>conftest.$ac_ext
18071cat >>conftest.$ac_ext <<_ACEOF
18072/* end confdefs.h. */
18073/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
18074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18075#define wctype innocuous_wctype
18076
18077/* System header to define __stub macros and hopefully few prototypes,
18078 which can conflict with char wctype (); below.
18079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18080 <limits.h> exists even on freestanding compilers. */
18081
18082#ifdef __STDC__
18083# include <limits.h>
18084#else
18085# include <assert.h>
18086#endif
18087
18088#undef wctype
18089
18090/* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18093#ifdef __cplusplus
18094extern "C"
18095#endif
18096char wctype ();
18097/* The GNU C library defines this for functions which it implements
18098 to always fail with ENOSYS. Some functions are actually named
18099 something starting with __ and the normal name is an alias. */
18100#if defined __stub_wctype || defined __stub___wctype
18101choke me
18102#endif
18103
18104int
18105main ()
18106{
18107return wctype ();
18108 ;
18109 return 0;
18110}
18111_ACEOF
18112rm -f conftest.$ac_objext conftest$ac_exeext
18113if { (ac_try="$ac_link"
18114case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18119$as_echo "$ac_try_echo") >&5
18120 (eval "$ac_link") 2>conftest.er1
18121 ac_status=$?
18122 grep -v '^ *+' conftest.er1 >conftest.err
18123 rm -f conftest.er1
18124 cat conftest.err >&5
18125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest$ac_exeext && {
18130 test "$cross_compiling" = yes ||
18131 $as_test_x conftest$ac_exeext
18132 }; then
18133 ac_cv_func_wctype=yes
18134else
18135 $as_echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 ac_cv_func_wctype=no
18139fi
18140
18141rm -rf conftest.dSYM
18142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18143 conftest$ac_exeext conftest.$ac_ext
18144fi
18145{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
18146$as_echo "$ac_cv_func_wctype" >&6; }
18147if test "x$ac_cv_func_wctype" = x""yes; then
18148 cat >>confdefs.h <<\_ACEOF
18149#define HAVE_WCTYPE 1
18150_ACEOF
18151
18152fi
18153
18154
18155
18156for ac_func in wcswidth
18157do
18158as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18160$as_echo_n "checking for $ac_func... " >&6; }
18161if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18162 $as_echo_n "(cached) " >&6
18163else
18164 cat >conftest.$ac_ext <<_ACEOF
18165/* confdefs.h. */
18166_ACEOF
18167cat confdefs.h >>conftest.$ac_ext
18168cat >>conftest.$ac_ext <<_ACEOF
18169/* end confdefs.h. */
18170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172#define $ac_func innocuous_$ac_func
18173
18174/* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18178
18179#ifdef __STDC__
18180# include <limits.h>
18181#else
18182# include <assert.h>
18183#endif
18184
18185#undef $ac_func
18186
18187/* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190#ifdef __cplusplus
18191extern "C"
18192#endif
18193char $ac_func ();
18194/* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197#if defined __stub_$ac_func || defined __stub___$ac_func
18198choke me
18199#endif
18200
18201int
18202main ()
18203{
18204return $ac_func ();
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext conftest$ac_exeext
18210if { (ac_try="$ac_link"
18211case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
18215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18216$as_echo "$ac_try_echo") >&5
18217 (eval "$ac_link") 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } && {
18224 test -z "$ac_c_werror_flag" ||
18225 test ! -s conftest.err
18226 } && test -s conftest$ac_exeext && {
18227 test "$cross_compiling" = yes ||
18228 $as_test_x conftest$ac_exeext
18229 }; then
18230 eval "$as_ac_var=yes"
18231else
18232 $as_echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 eval "$as_ac_var=no"
18236fi
18237
18238rm -rf conftest.dSYM
18239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18240 conftest$ac_exeext conftest.$ac_ext
18241fi
18242ac_res=`eval 'as_val=${'$as_ac_var'}
18243 $as_echo "$as_val"'`
18244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18245$as_echo "$ac_res" >&6; }
18246as_val=`eval 'as_val=${'$as_ac_var'}
18247 $as_echo "$as_val"'`
18248 if test "x$as_val" = x""yes; then
18249 cat >>confdefs.h <<_ACEOF
18250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18251_ACEOF
18252
18253else
18254 case " $LIBOBJS " in
18255 *" $ac_func.$ac_objext "* ) ;;
18256 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18257 ;;
18258esac
18259
18260fi
18261done
18262
18263
18264
18265
18266 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
18267$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18268if test "${ac_cv_func_mbrtowc+set}" = set; then
18269 $as_echo_n "(cached) " >&6
18270else
18271 cat >conftest.$ac_ext <<_ACEOF
18272/* confdefs.h. */
18273_ACEOF
18274cat confdefs.h >>conftest.$ac_ext
18275cat >>conftest.$ac_ext <<_ACEOF
18276/* end confdefs.h. */
18277#include <wchar.h>
18278int
18279main ()
18280{
18281wchar_t wc;
18282 char const s[] = "";
18283 size_t n = 1;
18284 mbstate_t state;
18285 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18286 ;
18287 return 0;
18288}
18289_ACEOF
18290rm -f conftest.$ac_objext conftest$ac_exeext
18291if { (ac_try="$ac_link"
18292case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18295esac
18296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297$as_echo "$ac_try_echo") >&5
18298 (eval "$ac_link") 2>conftest.er1
18299 ac_status=$?
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
18303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest$ac_exeext && {
18308 test "$cross_compiling" = yes ||
18309 $as_test_x conftest$ac_exeext
18310 }; then
18311 ac_cv_func_mbrtowc=yes
18312else
18313 $as_echo "$as_me: failed program was:" >&5
18314sed 's/^/| /' conftest.$ac_ext >&5
18315
18316 ac_cv_func_mbrtowc=no
18317fi
18318
18319rm -rf conftest.dSYM
18320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18321 conftest$ac_exeext conftest.$ac_ext
18322fi
18323{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
18324$as_echo "$ac_cv_func_mbrtowc" >&6; }
18325 if test $ac_cv_func_mbrtowc = yes; then
18326
18327cat >>confdefs.h <<\_ACEOF
18328#define HAVE_MBRTOWC 1
18329_ACEOF
18330
18331 fi
18332
18333if test $ac_cv_func_mbrtowc = yes; then
18334 cat >>confdefs.h <<\_ACEOF
18335#define HAVE_MBSTATE_T 1
18336_ACEOF
18337
18338fi
18339
18340
18341
18342
18343
18344
18345for ac_func in iswlower iswupper towlower towupper iswctype
18346do
18347as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18348{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18349$as_echo_n "checking for $ac_func... " >&6; }
18350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18351 $as_echo_n "(cached) " >&6
18352else
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18361#define $ac_func innocuous_$ac_func
18362
18363/* System header to define __stub macros and hopefully few prototypes,
18364 which can conflict with char $ac_func (); below.
18365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18366 <limits.h> exists even on freestanding compilers. */
18367
18368#ifdef __STDC__
18369# include <limits.h>
18370#else
18371# include <assert.h>
18372#endif
18373
18374#undef $ac_func
18375
18376/* Override any GCC internal prototype to avoid an error.
18377 Use char because int might match the return type of a GCC
18378 builtin and then its argument prototype would still apply. */
18379#ifdef __cplusplus
18380extern "C"
18381#endif
18382char $ac_func ();
18383/* The GNU C library defines this for functions which it implements
18384 to always fail with ENOSYS. Some functions are actually named
18385 something starting with __ and the normal name is an alias. */
18386#if defined __stub_$ac_func || defined __stub___$ac_func
18387choke me
18388#endif
18389
18390int
18391main ()
18392{
18393return $ac_func ();
18394 ;
18395 return 0;
18396}
18397_ACEOF
18398rm -f conftest.$ac_objext conftest$ac_exeext
18399if { (ac_try="$ac_link"
18400case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403esac
18404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18405$as_echo "$ac_try_echo") >&5
18406 (eval "$ac_link") 2>conftest.er1
18407 ac_status=$?
18408 grep -v '^ *+' conftest.er1 >conftest.err
18409 rm -f conftest.er1
18410 cat conftest.err >&5
18411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && {
18413 test -z "$ac_c_werror_flag" ||
18414 test ! -s conftest.err
18415 } && test -s conftest$ac_exeext && {
18416 test "$cross_compiling" = yes ||
18417 $as_test_x conftest$ac_exeext
18418 }; then
18419 eval "$as_ac_var=yes"
18420else
18421 $as_echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 eval "$as_ac_var=no"
18425fi
18426
18427rm -rf conftest.dSYM
18428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18429 conftest$ac_exeext conftest.$ac_ext
18430fi
18431ac_res=`eval 'as_val=${'$as_ac_var'}
18432 $as_echo "$as_val"'`
18433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18434$as_echo "$ac_res" >&6; }
18435as_val=`eval 'as_val=${'$as_ac_var'}
18436 $as_echo "$as_val"'`
18437 if test "x$as_val" = x""yes; then
18438 cat >>confdefs.h <<_ACEOF
18439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18440_ACEOF
18441
18442fi
18443done
18444
18445
18446{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18447$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18448if test "${bash_cv_langinfo_codeset+set}" = set; then
18449 $as_echo_n "(cached) " >&6
18450else
18451 cat >conftest.$ac_ext <<_ACEOF
18452/* confdefs.h. */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h. */
18457#include <langinfo.h>
18458int
18459main ()
18460{
18461char* cs = nl_langinfo(CODESET);
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext conftest$ac_exeext
18467if { (ac_try="$ac_link"
18468case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471esac
18472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18473$as_echo "$ac_try_echo") >&5
18474 (eval "$ac_link") 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && {
18481 test -z "$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 } && test -s conftest$ac_exeext && {
18484 test "$cross_compiling" = yes ||
18485 $as_test_x conftest$ac_exeext
18486 }; then
18487 bash_cv_langinfo_codeset=yes
18488else
18489 $as_echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 bash_cv_langinfo_codeset=no
18493fi
18494
18495rm -rf conftest.dSYM
18496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18497 conftest$ac_exeext conftest.$ac_ext
18498fi
18499{ $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
18500$as_echo "$bash_cv_langinfo_codeset" >&6; }
18501if test $bash_cv_langinfo_codeset = yes; then
18502 cat >>confdefs.h <<\_ACEOF
18503#define HAVE_LANGINFO_CODESET 1
18504_ACEOF
18505
18506fi
18507
18508{ $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
18509$as_echo_n "checking for wchar_t in wchar.h... " >&6; }
18510if test "${bash_cv_type_wchar_t+set}" = set; then
18511 $as_echo_n "(cached) " >&6
18512else
18513 cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
18519#include <wchar.h>
18520
18521int
18522main ()
18523{
18524
18525 wchar_t foo;
18526 foo = 0;
18527
18528 ;
18529 return 0;
18530}
18531_ACEOF
18532rm -f conftest.$ac_objext
18533if { (ac_try="$ac_compile"
18534case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537esac
18538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18539$as_echo "$ac_try_echo") >&5
18540 (eval "$ac_compile") 2>conftest.er1
18541 ac_status=$?
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
18545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } && {
18547 test -z "$ac_c_werror_flag" ||
18548 test ! -s conftest.err
18549 } && test -s conftest.$ac_objext; then
18550 bash_cv_type_wchar_t=yes
18551else
18552 $as_echo "$as_me: failed program was:" >&5
18553sed 's/^/| /' conftest.$ac_ext >&5
18554
18555 bash_cv_type_wchar_t=no
18556fi
18557
18558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559fi
18560{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
18561$as_echo "$bash_cv_type_wchar_t" >&6; }
18562if test $bash_cv_type_wchar_t = yes; then
18563
18564cat >>confdefs.h <<\_ACEOF
18565#define HAVE_WCHAR_T 1
18566_ACEOF
18567
18568fi
18569
18570{ $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
18571$as_echo_n "checking for wctype_t in wctype.h... " >&6; }
18572if test "${bash_cv_type_wctype_t+set}" = set; then
18573 $as_echo_n "(cached) " >&6
18574else
18575 cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581#include <wctype.h>
18582int
18583main ()
18584{
18585
18586 wctype_t foo;
18587 foo = 0;
18588
18589 ;
18590 return 0;
18591}
18592_ACEOF
18593rm -f conftest.$ac_objext
18594if { (ac_try="$ac_compile"
18595case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598esac
18599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18600$as_echo "$ac_try_echo") >&5
18601 (eval "$ac_compile") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest.$ac_objext; then
18611 bash_cv_type_wctype_t=yes
18612else
18613 $as_echo "$as_me: failed program was:" >&5
18614sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 bash_cv_type_wctype_t=no
18617fi
18618
18619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620fi
18621{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
18622$as_echo "$bash_cv_type_wctype_t" >&6; }
18623if test $bash_cv_type_wctype_t = yes; then
18624
18625cat >>confdefs.h <<\_ACEOF
18626#define HAVE_WCTYPE_T 1
18627_ACEOF
18628
18629fi
18630
18631{ $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18632$as_echo_n "checking for wint_t in wctype.h... " >&6; }
18633if test "${bash_cv_type_wint_t+set}" = set; then
18634 $as_echo_n "(cached) " >&6
18635else
18636 cat >conftest.$ac_ext <<_ACEOF
18637/* confdefs.h. */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h. */
18642#include <wctype.h>
18643int
18644main ()
18645{
18646
18647 wint_t foo;
18648 foo = 0;
18649
18650 ;
18651 return 0;
18652}
18653_ACEOF
18654rm -f conftest.$ac_objext
18655if { (ac_try="$ac_compile"
18656case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659esac
18660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18661$as_echo "$ac_try_echo") >&5
18662 (eval "$ac_compile") 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest.$ac_objext; then
18672 bash_cv_type_wint_t=yes
18673else
18674 $as_echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
18677 bash_cv_type_wint_t=no
18678fi
18679
18680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681fi
18682{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18683$as_echo "$bash_cv_type_wint_t" >&6; }
18684if test $bash_cv_type_wint_t = yes; then
18685
18686cat >>confdefs.h <<\_ACEOF
18687#define HAVE_WINT_T 1
18688_ACEOF
18689
18690fi
18691
18692{ $as_echo "$as_me:$LINENO: checking for wcwidth broken with unicode combining characters" >&5
18693$as_echo_n "checking for wcwidth broken with unicode combining characters... " >&6; }
18694if test "${bash_cv_wcwidth_broken+set}" = set; then
18695 $as_echo_n "(cached) " >&6
18696else
18697 if test "$cross_compiling" = yes; then
18698 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18700{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18701See \`config.log' for more details." >&5
18702$as_echo "$as_me: error: cannot run test program while cross compiling
18703See \`config.log' for more details." >&2;}
18704 { (exit 1); exit 1; }; }; }
18705else
18706 cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
18712
18713#include <unistd.h>
18714#include <stdlib.h>
18715#include <stdio.h>
18716
18717#include <locale.h>
18718#include <wchar.h>
18719
18720main(c, v)
18721int c;
18722char **v;
18723{
18724 int w;
18725
18726 setlocale(LC_ALL, "en_US.UTF-8");
18727 w = wcwidth (0x0301);
18728 exit (w == 0); /* exit 0 if wcwidth broken */
18729}
18730
18731_ACEOF
18732rm -f conftest$ac_exeext
18733if { (ac_try="$ac_link"
18734case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737esac
18738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18739$as_echo "$ac_try_echo") >&5
18740 (eval "$ac_link") 2>&5
18741 ac_status=$?
18742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18744 { (case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18747esac
18748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18749$as_echo "$ac_try_echo") >&5
18750 (eval "$ac_try") 2>&5
18751 ac_status=$?
18752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 bash_cv_wcwidth_broken=yes
18755else
18756 $as_echo "$as_me: program exited with status $ac_status" >&5
18757$as_echo "$as_me: failed program was:" >&5
18758sed 's/^/| /' conftest.$ac_ext >&5
18759
18760( exit $ac_status )
18761bash_cv_wcwdith_broken=no
18762fi
18763rm -rf conftest.dSYM
18764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18765fi
18766
18767
18768fi
18769{ $as_echo "$as_me:$LINENO: result: $bash_cv_wcwidth_broken" >&5
18770$as_echo "$bash_cv_wcwidth_broken" >&6; }
18771if test $bash_cv_wcwidth_broken = yes; then
18772
18773cat >>confdefs.h <<\_ACEOF
18774#define WCWIDTH_BROKEN 1
18775_ACEOF
18776
18777fi
18778
18779if test "$am_cv_func_iconv" = yes; then
18780 OLDLIBS="$LIBS"
18781 LIBS="$LIBS $LIBICONV"
18782
18783for ac_func in locale_charset
18784do
18785as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18786{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18787$as_echo_n "checking for $ac_func... " >&6; }
18788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18789 $as_echo_n "(cached) " >&6
18790else
18791 cat >conftest.$ac_ext <<_ACEOF
18792/* confdefs.h. */
18793_ACEOF
18794cat confdefs.h >>conftest.$ac_ext
18795cat >>conftest.$ac_ext <<_ACEOF
18796/* end confdefs.h. */
18797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18799#define $ac_func innocuous_$ac_func
18800
18801/* System header to define __stub macros and hopefully few prototypes,
18802 which can conflict with char $ac_func (); below.
18803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18804 <limits.h> exists even on freestanding compilers. */
18805
18806#ifdef __STDC__
18807# include <limits.h>
18808#else
18809# include <assert.h>
18810#endif
18811
18812#undef $ac_func
18813
18814/* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18817#ifdef __cplusplus
18818extern "C"
18819#endif
18820char $ac_func ();
18821/* The GNU C library defines this for functions which it implements
18822 to always fail with ENOSYS. Some functions are actually named
18823 something starting with __ and the normal name is an alias. */
18824#if defined __stub_$ac_func || defined __stub___$ac_func
18825choke me
18826#endif
18827
18828int
18829main ()
18830{
18831return $ac_func ();
18832 ;
18833 return 0;
18834}
18835_ACEOF
18836rm -f conftest.$ac_objext conftest$ac_exeext
18837if { (ac_try="$ac_link"
18838case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841esac
18842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843$as_echo "$ac_try_echo") >&5
18844 (eval "$ac_link") 2>conftest.er1
18845 ac_status=$?
18846 grep -v '^ *+' conftest.er1 >conftest.err
18847 rm -f conftest.er1
18848 cat conftest.err >&5
18849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest$ac_exeext && {
18854 test "$cross_compiling" = yes ||
18855 $as_test_x conftest$ac_exeext
18856 }; then
18857 eval "$as_ac_var=yes"
18858else
18859 $as_echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 eval "$as_ac_var=no"
18863fi
18864
18865rm -rf conftest.dSYM
18866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18867 conftest$ac_exeext conftest.$ac_ext
18868fi
18869ac_res=`eval 'as_val=${'$as_ac_var'}
18870 $as_echo "$as_val"'`
18871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18872$as_echo "$ac_res" >&6; }
18873as_val=`eval 'as_val=${'$as_ac_var'}
18874 $as_echo "$as_val"'`
18875 if test "x$as_val" = x""yes; then
18876 cat >>confdefs.h <<_ACEOF
18877#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18878_ACEOF
18879
18880fi
18881done
18882
18883 LIBS="$OLDLIBS"
18884fi
18885
18886
18887
18888if test "$opt_static_link" != yes; then
18889
18890{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18891$as_echo_n "checking for dlopen in -ldl... " >&6; }
18892if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18893 $as_echo_n "(cached) " >&6
18894else
18895 ac_check_lib_save_LIBS=$LIBS
18896LIBS="-ldl $LIBS"
18897cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903
18904/* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18907#ifdef __cplusplus
18908extern "C"
18909#endif
18910char dlopen ();
18911int
18912main ()
18913{
18914return dlopen ();
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest.$ac_objext conftest$ac_exeext
18920if { (ac_try="$ac_link"
18921case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924esac
18925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18926$as_echo "$ac_try_echo") >&5
18927 (eval "$ac_link") 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && {
18934 test -z "$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 } && test -s conftest$ac_exeext && {
18937 test "$cross_compiling" = yes ||
18938 $as_test_x conftest$ac_exeext
18939 }; then
18940 ac_cv_lib_dl_dlopen=yes
18941else
18942 $as_echo "$as_me: failed program was:" >&5
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 ac_cv_lib_dl_dlopen=no
18946fi
18947
18948rm -rf conftest.dSYM
18949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18950 conftest$ac_exeext conftest.$ac_ext
18951LIBS=$ac_check_lib_save_LIBS
18952fi
18953{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18954$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18955if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18956 cat >>confdefs.h <<_ACEOF
18957#define HAVE_LIBDL 1
18958_ACEOF
18959
18960 LIBS="-ldl $LIBS"
18961
18962fi
18963
18964
18965
18966
18967for ac_func in dlopen dlclose dlsym
18968do
18969as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18970{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18971$as_echo_n "checking for $ac_func... " >&6; }
18972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18973 $as_echo_n "(cached) " >&6
18974else
18975 cat >conftest.$ac_ext <<_ACEOF
18976/* confdefs.h. */
18977_ACEOF
18978cat confdefs.h >>conftest.$ac_ext
18979cat >>conftest.$ac_ext <<_ACEOF
18980/* end confdefs.h. */
18981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18983#define $ac_func innocuous_$ac_func
18984
18985/* System header to define __stub macros and hopefully few prototypes,
18986 which can conflict with char $ac_func (); below.
18987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18988 <limits.h> exists even on freestanding compilers. */
18989
18990#ifdef __STDC__
18991# include <limits.h>
18992#else
18993# include <assert.h>
18994#endif
18995
18996#undef $ac_func
18997
18998/* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19001#ifdef __cplusplus
19002extern "C"
19003#endif
19004char $ac_func ();
19005/* The GNU C library defines this for functions which it implements
19006 to always fail with ENOSYS. Some functions are actually named
19007 something starting with __ and the normal name is an alias. */
19008#if defined __stub_$ac_func || defined __stub___$ac_func
19009choke me
19010#endif
19011
19012int
19013main ()
19014{
19015return $ac_func ();
19016 ;
19017 return 0;
19018}
19019_ACEOF
19020rm -f conftest.$ac_objext conftest$ac_exeext
19021if { (ac_try="$ac_link"
19022case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025esac
19026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19027$as_echo "$ac_try_echo") >&5
19028 (eval "$ac_link") 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } && {
19035 test -z "$ac_c_werror_flag" ||
19036 test ! -s conftest.err
19037 } && test -s conftest$ac_exeext && {
19038 test "$cross_compiling" = yes ||
19039 $as_test_x conftest$ac_exeext
19040 }; then
19041 eval "$as_ac_var=yes"
19042else
19043 $as_echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 eval "$as_ac_var=no"
19047fi
19048
19049rm -rf conftest.dSYM
19050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19051 conftest$ac_exeext conftest.$ac_ext
19052fi
19053ac_res=`eval 'as_val=${'$as_ac_var'}
19054 $as_echo "$as_val"'`
19055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19056$as_echo "$ac_res" >&6; }
19057as_val=`eval 'as_val=${'$as_ac_var'}
19058 $as_echo "$as_val"'`
19059 if test "x$as_val" = x""yes; then
19060 cat >>confdefs.h <<_ACEOF
19061#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19062_ACEOF
19063
19064fi
19065done
19066
19067fi
19068
19069{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19070$as_echo_n "checking whether sys_siglist is declared... " >&6; }
19071if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19072 $as_echo_n "(cached) " >&6
19073else
19074 cat >conftest.$ac_ext <<_ACEOF
19075/* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
19080#include <signal.h>
19081/* NetBSD declares sys_siglist in unistd.h. */
19082#ifdef HAVE_UNISTD_H
19083# include <unistd.h>
19084#endif
19085
19086
19087int
19088main ()
19089{
19090#ifndef sys_siglist
19091 (void) sys_siglist;
19092#endif
19093
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext
19099if { (ac_try="$ac_compile"
19100case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19105$as_echo "$ac_try_echo") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_cv_have_decl_sys_siglist=yes
19117else
19118 $as_echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_have_decl_sys_siglist=no
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125fi
19126{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19127$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19128if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19129
19130cat >>confdefs.h <<_ACEOF
19131#define HAVE_DECL_SYS_SIGLIST 1
19132_ACEOF
19133
19134
19135else
19136 cat >>confdefs.h <<_ACEOF
19137#define HAVE_DECL_SYS_SIGLIST 0
19138_ACEOF
19139
19140
19141fi
19142
19143
19144
19145
19146if test "$ac_cv_func_inet_aton" != 'yes'; then
19147
19148{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19149$as_echo_n "checking for inet_aton... " >&6; }
19150if test "${bash_cv_func_inet_aton+set}" = set; then
2dead0c4
CR
19151 $as_echo_n "(cached) " >&6
19152else
abe2eb5b
CR
19153 cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h. */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
e3db237e 19158/* end confdefs.h. */
abe2eb5b
CR
19159
19160#include <sys/types.h>
19161#include <netinet/in.h>
19162#include <arpa/inet.h>
19163struct in_addr ap;
e3db237e
CR
19164int
19165main ()
19166{
abe2eb5b 19167 inet_aton("127.0.0.1", &ap);
e3db237e
CR
19168 ;
19169 return 0;
19170}
19171_ACEOF
abe2eb5b
CR
19172rm -f conftest.$ac_objext conftest$ac_exeext
19173if { (ac_try="$ac_link"
19174case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177esac
19178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19179$as_echo "$ac_try_echo") >&5
19180 (eval "$ac_link") 2>conftest.er1
19181 ac_status=$?
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
19185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest$ac_exeext && {
19190 test "$cross_compiling" = yes ||
19191 $as_test_x conftest$ac_exeext
19192 }; then
19193 bash_cv_func_inet_aton=yes
c920c360 19194else
abe2eb5b
CR
19195 $as_echo "$as_me: failed program was:" >&5
19196sed 's/^/| /' conftest.$ac_ext >&5
19197
19198 bash_cv_func_inet_aton=no
7610e0c5 19199fi
abe2eb5b
CR
19200
19201rm -rf conftest.dSYM
19202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19203 conftest$ac_exeext conftest.$ac_ext
19204fi
19205{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
19206$as_echo "$bash_cv_func_inet_aton" >&6; }
19207if test $bash_cv_func_inet_aton = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209#define HAVE_INET_ATON 1
19210_ACEOF
19211
19212else
19213 case " $LIBOBJS " in
19214 *" inet_aton.$ac_objext "* ) ;;
19215 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19216 ;;
19217esac
19218
19219fi
19220
19221fi
19222
19223case "$host_os" in
19224irix4*)
19225{ $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
19226$as_echo_n "checking for getpwent in -lsun... " >&6; }
19227if test "${ac_cv_lib_sun_getpwent+set}" = set; then
19228 $as_echo_n "(cached) " >&6
19229else
19230 ac_check_lib_save_LIBS=$LIBS
19231LIBS="-lsun $LIBS"
19232cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
e3db237e 19237/* end confdefs.h. */
abe2eb5b
CR
19238
19239/* Override any GCC internal prototype to avoid an error.
19240 Use char because int might match the return type of a GCC
19241 builtin and then its argument prototype would still apply. */
2dead0c4 19242#ifdef __cplusplus
abe2eb5b 19243extern "C"
2dead0c4 19244#endif
abe2eb5b 19245char getpwent ();
e3db237e
CR
19246int
19247main ()
19248{
abe2eb5b 19249return getpwent ();
e3db237e
CR
19250 ;
19251 return 0;
19252}
19253_ACEOF
abe2eb5b
CR
19254rm -f conftest.$ac_objext conftest$ac_exeext
19255if { (ac_try="$ac_link"
19256case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259esac
19260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19261$as_echo "$ac_try_echo") >&5
19262 (eval "$ac_link") 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest$ac_exeext && {
19272 test "$cross_compiling" = yes ||
19273 $as_test_x conftest$ac_exeext
19274 }; then
19275 ac_cv_lib_sun_getpwent=yes
19276else
19277 $as_echo "$as_me: failed program was:" >&5
19278sed 's/^/| /' conftest.$ac_ext >&5
b709b946 19279
abe2eb5b 19280 ac_cv_lib_sun_getpwent=no
b72432fd 19281fi
c920c360 19282
abe2eb5b
CR
19283rm -rf conftest.dSYM
19284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19285 conftest$ac_exeext conftest.$ac_ext
19286LIBS=$ac_check_lib_save_LIBS
19287fi
19288{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
19289$as_echo "$ac_cv_lib_sun_getpwent" >&6; }
19290if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
19291 cat >>confdefs.h <<_ACEOF
19292#define HAVE_LIBSUN 1
19293_ACEOF
7610e0c5 19294
abe2eb5b 19295 LIBS="-lsun $LIBS"
71412226 19296
abe2eb5b
CR
19297fi
19298 ;;
19299esac
71412226 19300
abe2eb5b 19301if test "$ac_cv_func_getpeername" = no; then
71412226 19302
abe2eb5b
CR
19303if test "X$bash_cv_have_socklib" = "X"; then
19304_bash_needmsg=
19305else
19306{ $as_echo "$as_me:$LINENO: checking for socket library" >&5
19307$as_echo_n "checking for socket library... " >&6; }
19308_bash_needmsg=yes
19309fi
19310if test "${bash_cv_have_socklib+set}" = set; then
19311 $as_echo_n "(cached) " >&6
19312else
19313 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
19314$as_echo_n "checking for getpeername in -lsocket... " >&6; }
19315if test "${ac_cv_lib_socket_getpeername+set}" = set; then
19316 $as_echo_n "(cached) " >&6
19317else
19318 ac_check_lib_save_LIBS=$LIBS
19319LIBS="-lsocket -lnsl $LIBS"
19320cat >conftest.$ac_ext <<_ACEOF
19321/* confdefs.h. */
19322_ACEOF
19323cat confdefs.h >>conftest.$ac_ext
19324cat >>conftest.$ac_ext <<_ACEOF
19325/* end confdefs.h. */
e3db237e 19326
abe2eb5b
CR
19327/* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19330#ifdef __cplusplus
19331extern "C"
19332#endif
19333char getpeername ();
19334int
19335main ()
19336{
19337return getpeername ();
19338 ;
19339 return 0;
19340}
19341_ACEOF
19342rm -f conftest.$ac_objext conftest$ac_exeext
19343if { (ac_try="$ac_link"
19344case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19349$as_echo "$ac_try_echo") >&5
19350 (eval "$ac_link") 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } && {
19357 test -z "$ac_c_werror_flag" ||
19358 test ! -s conftest.err
19359 } && test -s conftest$ac_exeext && {
19360 test "$cross_compiling" = yes ||
19361 $as_test_x conftest$ac_exeext
19362 }; then
19363 ac_cv_lib_socket_getpeername=yes
19364else
19365 $as_echo "$as_me: failed program was:" >&5
19366sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 19367
abe2eb5b
CR
19368 ac_cv_lib_socket_getpeername=no
19369fi
7610e0c5 19370
abe2eb5b
CR
19371rm -rf conftest.dSYM
19372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19373 conftest$ac_exeext conftest.$ac_ext
19374LIBS=$ac_check_lib_save_LIBS
19375fi
19376{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
19377$as_echo "$ac_cv_lib_socket_getpeername" >&6; }
19378if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
19379 bash_cv_have_socklib=yes
19380else
19381 bash_cv_have_socklib=no
19382fi
7610e0c5 19383
abe2eb5b 19384fi
c920c360 19385
abe2eb5b
CR
19386if test "X$_bash_needmsg" = Xyes; then
19387 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
19388$as_echo "$bash_cv_have_socklib" >&6; }
19389 _bash_needmsg=
19390fi
19391if test $bash_cv_have_socklib = yes; then
19392 # check for libnsl, add it to LIBS if present
19393 if test "X$bash_cv_have_libnsl" = "X"; then
19394 _bash_needmsg=
19395 else
19396 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
19397$as_echo_n "checking for libnsl... " >&6; }
19398 _bash_needmsg=yes
19399 fi
19400 if test "${bash_cv_have_libnsl+set}" = set; then
19401 $as_echo_n "(cached) " >&6
19402else
19403 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
19404$as_echo_n "checking for t_open in -lnsl... " >&6; }
19405if test "${ac_cv_lib_nsl_t_open+set}" = set; then
19406 $as_echo_n "(cached) " >&6
19407else
19408 ac_check_lib_save_LIBS=$LIBS
19409LIBS="-lnsl $LIBS"
19410cat >conftest.$ac_ext <<_ACEOF
19411/* confdefs.h. */
19412_ACEOF
19413cat confdefs.h >>conftest.$ac_ext
19414cat >>conftest.$ac_ext <<_ACEOF
19415/* end confdefs.h. */
c920c360 19416
abe2eb5b
CR
19417/* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420#ifdef __cplusplus
19421extern "C"
19422#endif
19423char t_open ();
19424int
19425main ()
19426{
19427return t_open ();
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext conftest$ac_exeext
19433if { (ac_try="$ac_link"
19434case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437esac
19438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19439$as_echo "$ac_try_echo") >&5
19440 (eval "$ac_link") 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } && {
19447 test -z "$ac_c_werror_flag" ||
19448 test ! -s conftest.err
19449 } && test -s conftest$ac_exeext && {
19450 test "$cross_compiling" = yes ||
19451 $as_test_x conftest$ac_exeext
19452 }; then
19453 ac_cv_lib_nsl_t_open=yes
19454else
19455 $as_echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 19457
abe2eb5b
CR
19458 ac_cv_lib_nsl_t_open=no
19459fi
e3db237e 19460
abe2eb5b
CR
19461rm -rf conftest.dSYM
19462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463 conftest$ac_exeext conftest.$ac_ext
19464LIBS=$ac_check_lib_save_LIBS
19465fi
19466{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
19467$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
19468if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
19469 bash_cv_have_libnsl=yes
19470else
19471 bash_cv_have_libnsl=no
19472fi
c920c360 19473
abe2eb5b 19474fi
c920c360 19475
abe2eb5b
CR
19476 if test "X$_bash_needmsg" = Xyes; then
19477 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
19478$as_echo "$bash_cv_have_libnsl" >&6; }
19479 _bash_needmsg=
19480 fi
19481 if test $bash_cv_have_libnsl = yes; then
19482 LIBS="-lsocket -lnsl $LIBS"
19483 else
19484 LIBS="-lsocket $LIBS"
19485 fi
19486 cat >>confdefs.h <<\_ACEOF
19487#define HAVE_LIBSOCKET 1
19488_ACEOF
c920c360 19489
abe2eb5b
CR
19490 cat >>confdefs.h <<\_ACEOF
19491#define HAVE_GETPEERNAME 1
19492_ACEOF
c920c360 19493
abe2eb5b 19494fi
e3db237e 19495
abe2eb5b
CR
19496fi
19497if test "$ac_cv_func_gethostbyname" = no; then
19498 if test "X$bash_cv_have_gethostbyname" = "X"; then
19499_bash_needmsg=yes
19500else
19501{ $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19502$as_echo_n "checking for gethostbyname in socket library... " >&6; }
19503_bash_needmsg=
19504fi
19505if test "${bash_cv_have_gethostbyname+set}" = set; then
19506 $as_echo_n "(cached) " >&6
19507else
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514#include <netdb.h>
19515int
19516main ()
19517{
19518 struct hostent *hp;
19519 hp = gethostbyname("localhost");
7610e0c5 19520
abe2eb5b
CR
19521 ;
19522 return 0;
19523}
19524_ACEOF
19525rm -f conftest.$ac_objext conftest$ac_exeext
19526if { (ac_try="$ac_link"
19527case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530esac
19531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19532$as_echo "$ac_try_echo") >&5
19533 (eval "$ac_link") 2>conftest.er1
19534 ac_status=$?
19535 grep -v '^ *+' conftest.er1 >conftest.err
19536 rm -f conftest.er1
19537 cat conftest.err >&5
19538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } && {
19540 test -z "$ac_c_werror_flag" ||
19541 test ! -s conftest.err
19542 } && test -s conftest$ac_exeext && {
19543 test "$cross_compiling" = yes ||
19544 $as_test_x conftest$ac_exeext
19545 }; then
19546 bash_cv_have_gethostbyname=yes
19547else
19548 $as_echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
b709b946 19550
abe2eb5b
CR
19551 bash_cv_have_gethostbyname=no
19552fi
e3db237e 19553
abe2eb5b
CR
19554rm -rf conftest.dSYM
19555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19556 conftest$ac_exeext conftest.$ac_ext
e3db237e 19557
abe2eb5b 19558fi
e3db237e 19559
abe2eb5b
CR
19560if test "X$_bash_needmsg" = Xyes; then
19561 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
19562$as_echo_n "checking for gethostbyname in socket library... " >&6; }
19563fi
19564{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
19565$as_echo "$bash_cv_have_gethostbyname" >&6; }
19566if test "$bash_cv_have_gethostbyname" = yes; then
19567cat >>confdefs.h <<\_ACEOF
19568#define HAVE_GETHOSTBYNAME 1
19569_ACEOF
c920c360 19570
abe2eb5b 19571fi
c920c360 19572
abe2eb5b 19573fi
c920c360 19574
abe2eb5b
CR
19575{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19576$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19577if test "${ac_cv_type_uid_t+set}" = set; then
19578 $as_echo_n "(cached) " >&6
19579else
19580 cat >conftest.$ac_ext <<_ACEOF
19581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
19585/* end confdefs.h. */
19586#include <sys/types.h>
e3db237e 19587
abe2eb5b
CR
19588_ACEOF
19589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19590 $EGREP "uid_t" >/dev/null 2>&1; then
19591 ac_cv_type_uid_t=yes
19592else
19593 ac_cv_type_uid_t=no
19594fi
19595rm -f conftest*
c920c360 19596
abe2eb5b
CR
19597fi
19598{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19599$as_echo "$ac_cv_type_uid_t" >&6; }
19600if test $ac_cv_type_uid_t = no; then
e3db237e 19601
abe2eb5b
CR
19602cat >>confdefs.h <<\_ACEOF
19603#define uid_t int
19604_ACEOF
dd4f3dd8 19605
dd4f3dd8 19606
abe2eb5b
CR
19607cat >>confdefs.h <<\_ACEOF
19608#define gid_t int
19609_ACEOF
b709b946 19610
abe2eb5b 19611fi
c920c360 19612
abe2eb5b
CR
19613{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
19614$as_echo_n "checking type of array argument to getgroups... " >&6; }
19615if test "${ac_cv_type_getgroups+set}" = set; then
19616 $as_echo_n "(cached) " >&6
19617else
19618 if test "$cross_compiling" = yes; then
19619 ac_cv_type_getgroups=cross
19620else
19621 cat >conftest.$ac_ext <<_ACEOF
19622/* confdefs.h. */
19623_ACEOF
19624cat confdefs.h >>conftest.$ac_ext
19625cat >>conftest.$ac_ext <<_ACEOF
19626/* end confdefs.h. */
19627/* Thanks to Mike Rendell for this test. */
19628$ac_includes_default
19629#define NGID 256
19630#undef MAX
19631#define MAX(x, y) ((x) > (y) ? (x) : (y))
e3db237e 19632
abe2eb5b
CR
19633int
19634main ()
19635{
19636 gid_t gidset[NGID];
19637 int i, n;
19638 union { gid_t gval; long int lval; } val;
e3db237e 19639
abe2eb5b
CR
19640 val.lval = -1;
19641 for (i = 0; i < NGID; i++)
19642 gidset[i] = val.gval;
19643 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
19644 gidset);
19645 /* Exit non-zero if getgroups seems to require an array of ints. This
19646 happens when gid_t is short int but getgroups modifies an array
19647 of ints. */
19648 return n > 0 && gidset[n] != val.gval;
19649}
19650_ACEOF
19651rm -f conftest$ac_exeext
19652if { (ac_try="$ac_link"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658$as_echo "$ac_try_echo") >&5
19659 (eval "$ac_link") 2>&5
19660 ac_status=$?
19661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19663 { (case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666esac
19667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19668$as_echo "$ac_try_echo") >&5
19669 (eval "$ac_try") 2>&5
19670 ac_status=$?
19671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_cv_type_getgroups=gid_t
19674else
19675 $as_echo "$as_me: program exited with status $ac_status" >&5
19676$as_echo "$as_me: failed program was:" >&5
19677sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 19678
abe2eb5b
CR
19679( exit $ac_status )
19680ac_cv_type_getgroups=int
19681fi
19682rm -rf conftest.dSYM
19683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19684fi
dd4f3dd8 19685
dd4f3dd8 19686
abe2eb5b
CR
19687if test $ac_cv_type_getgroups = cross; then
19688 cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
19693/* end confdefs.h. */
19694#include <unistd.h>
71412226 19695
abe2eb5b
CR
19696_ACEOF
19697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19698 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
19699 ac_cv_type_getgroups=gid_t
19700else
19701 ac_cv_type_getgroups=int
19702fi
19703rm -f conftest*
c920c360 19704
abe2eb5b
CR
19705fi
19706fi
19707{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
19708$as_echo "$ac_cv_type_getgroups" >&6; }
2dead0c4 19709
abe2eb5b
CR
19710cat >>confdefs.h <<_ACEOF
19711#define GETGROUPS_T $ac_cv_type_getgroups
19712_ACEOF
2dead0c4
CR
19713
19714
abe2eb5b
CR
19715{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
19716$as_echo_n "checking for off_t... " >&6; }
19717if test "${ac_cv_type_off_t+set}" = set; then
2dead0c4
CR
19718 $as_echo_n "(cached) " >&6
19719else
abe2eb5b
CR
19720 ac_cv_type_off_t=no
19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 19726/* end confdefs.h. */
abe2eb5b 19727$ac_includes_default
e3db237e
CR
19728int
19729main ()
c920c360 19730{
abe2eb5b
CR
19731if (sizeof (off_t))
19732 return 0;
e3db237e
CR
19733 ;
19734 return 0;
c920c360 19735}
e3db237e 19736_ACEOF
abe2eb5b
CR
19737rm -f conftest.$ac_objext
19738if { (ac_try="$ac_compile"
19739case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742esac
19743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19744$as_echo "$ac_try_echo") >&5
19745 (eval "$ac_compile") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest.$ac_objext; then
19755 cat >conftest.$ac_ext <<_ACEOF
19756/* confdefs.h. */
2dead0c4 19757_ACEOF
abe2eb5b
CR
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
e3db237e 19760/* end confdefs.h. */
abe2eb5b 19761$ac_includes_default
7610e0c5
CR
19762int
19763main ()
19764{
abe2eb5b
CR
19765if (sizeof ((off_t)))
19766 return 0;
e3db237e
CR
19767 ;
19768 return 0;
7610e0c5 19769}
dd4f3dd8 19770_ACEOF
abe2eb5b
CR
19771rm -f conftest.$ac_objext
19772if { (ac_try="$ac_compile"
19773case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776esac
19777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19778$as_echo "$ac_try_echo") >&5
19779 (eval "$ac_compile") 2>conftest.er1
19780 ac_status=$?
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } && {
19786 test -z "$ac_c_werror_flag" ||
19787 test ! -s conftest.err
19788 } && test -s conftest.$ac_objext; then
19789 :
19790else
19791 $as_echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 ac_cv_type_off_t=yes
7610e0c5 19795fi
c920c360 19796
abe2eb5b 19797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 19798else
abe2eb5b
CR
19799 $as_echo "$as_me: failed program was:" >&5
19800sed 's/^/| /' conftest.$ac_ext >&5
19801
19802
2dead0c4 19803fi
abe2eb5b
CR
19804
19805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 19806fi
abe2eb5b
CR
19807{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19808$as_echo "$ac_cv_type_off_t" >&6; }
19809if test "x$ac_cv_type_off_t" = x""yes; then
19810 :
19811else
19812
19813cat >>confdefs.h <<_ACEOF
19814#define off_t long int
19815_ACEOF
a82a04b3 19816
2dead0c4 19817fi
71412226 19818
abe2eb5b
CR
19819{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19820$as_echo_n "checking for mode_t... " >&6; }
19821if test "${ac_cv_type_mode_t+set}" = set; then
dd4f3dd8 19822 $as_echo_n "(cached) " >&6
bb70624e 19823else
abe2eb5b
CR
19824 ac_cv_type_mode_t=no
19825cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 19830/* end confdefs.h. */
abe2eb5b 19831$ac_includes_default
e3db237e
CR
19832int
19833main ()
19834{
abe2eb5b
CR
19835if (sizeof (mode_t))
19836 return 0;
e3db237e 19837 ;
7610e0c5
CR
19838 return 0;
19839}
19840_ACEOF
abe2eb5b
CR
19841rm -f conftest.$ac_objext
19842if { (ac_try="$ac_compile"
19843case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19848$as_echo "$ac_try_echo") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865$ac_includes_default
19866int
19867main ()
19868{
19869if (sizeof ((mode_t)))
19870 return 0;
19871 ;
19872 return 0;
19873}
19874_ACEOF
19875rm -f conftest.$ac_objext
19876if { (ac_try="$ac_compile"
19877case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19882$as_echo "$ac_try_echo") >&5
19883 (eval "$ac_compile") 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest.$ac_objext; then
19893 :
19894else
19895 $as_echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
19898 ac_cv_type_mode_t=yes
2dead0c4 19899fi
2dead0c4 19900
abe2eb5b 19901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dd4f3dd8 19902else
abe2eb5b
CR
19903 $as_echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906
2dead0c4 19907fi
dd4f3dd8 19908
abe2eb5b 19909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dd4f3dd8 19910fi
abe2eb5b
CR
19911{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19912$as_echo "$ac_cv_type_mode_t" >&6; }
19913if test "x$ac_cv_type_mode_t" = x""yes; then
19914 :
19915else
19916
19917cat >>confdefs.h <<_ACEOF
19918#define mode_t int
19919_ACEOF
5e4a95c7 19920
2dead0c4 19921fi
dd4f3dd8 19922
abe2eb5b
CR
19923{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19924$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19925if test "${ac_cv_type_uid_t+set}" = set; then
2dead0c4
CR
19926 $as_echo_n "(cached) " >&6
19927else
abe2eb5b
CR
19928 cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h. */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
e3db237e 19933/* end confdefs.h. */
2dead0c4 19934#include <sys/types.h>
b709b946 19935
e3db237e 19936_ACEOF
abe2eb5b
CR
19937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19938 $EGREP "uid_t" >/dev/null 2>&1; then
19939 ac_cv_type_uid_t=yes
e3db237e 19940else
abe2eb5b 19941 ac_cv_type_uid_t=no
2dead0c4 19942fi
abe2eb5b 19943rm -f conftest*
c920c360 19944
7610e0c5 19945fi
abe2eb5b
CR
19946{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19947$as_echo "$ac_cv_type_uid_t" >&6; }
19948if test $ac_cv_type_uid_t = no; then
f73dda09 19949
abe2eb5b
CR
19950cat >>confdefs.h <<\_ACEOF
19951#define uid_t int
19952_ACEOF
c920c360 19953
2dead0c4 19954
abe2eb5b
CR
19955cat >>confdefs.h <<\_ACEOF
19956#define gid_t int
2dead0c4
CR
19957_ACEOF
19958
e3db237e 19959fi
c920c360 19960
abe2eb5b
CR
19961{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19962$as_echo_n "checking for pid_t... " >&6; }
19963if test "${ac_cv_type_pid_t+set}" = set; then
19964 $as_echo_n "(cached) " >&6
19965else
19966 ac_cv_type_pid_t=no
19967cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973$ac_includes_default
19974int
19975main ()
19976{
19977if (sizeof (pid_t))
19978 return 0;
19979 ;
19980 return 0;
19981}
19982_ACEOF
19983rm -f conftest.$ac_objext
19984if { (ac_try="$ac_compile"
19985case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19988esac
19989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19990$as_echo "$ac_try_echo") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 cat >conftest.$ac_ext <<_ACEOF
20002/* confdefs.h. */
20003_ACEOF
20004cat confdefs.h >>conftest.$ac_ext
20005cat >>conftest.$ac_ext <<_ACEOF
20006/* end confdefs.h. */
20007$ac_includes_default
20008int
20009main ()
20010{
20011if (sizeof ((pid_t)))
20012 return 0;
20013 ;
20014 return 0;
20015}
20016_ACEOF
20017rm -f conftest.$ac_objext
20018if { (ac_try="$ac_compile"
20019case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20024$as_echo "$ac_try_echo") >&5
20025 (eval "$ac_compile") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest.$ac_objext; then
20035 :
20036else
20037 $as_echo "$as_me: failed program was:" >&5
20038sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20039
abe2eb5b
CR
20040 ac_cv_type_pid_t=yes
20041fi
2dead0c4 20042
abe2eb5b
CR
20043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044else
20045 $as_echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20047
2dead0c4 20048
e3db237e 20049fi
c920c360 20050
abe2eb5b
CR
20051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052fi
20053{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20054$as_echo "$ac_cv_type_pid_t" >&6; }
20055if test "x$ac_cv_type_pid_t" = x""yes; then
20056 :
20057else
2dead0c4 20058
abe2eb5b
CR
20059cat >>confdefs.h <<_ACEOF
20060#define pid_t int
2dead0c4
CR
20061_ACEOF
20062
20063fi
20064
abe2eb5b
CR
20065{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20066$as_echo_n "checking for size_t... " >&6; }
20067if test "${ac_cv_type_size_t+set}" = set; then
20068 $as_echo_n "(cached) " >&6
20069else
20070 ac_cv_type_size_t=no
20071cat >conftest.$ac_ext <<_ACEOF
20072/* confdefs.h. */
20073_ACEOF
20074cat confdefs.h >>conftest.$ac_ext
20075cat >>conftest.$ac_ext <<_ACEOF
20076/* end confdefs.h. */
20077$ac_includes_default
20078int
20079main ()
20080{
20081if (sizeof (size_t))
20082 return 0;
20083 ;
20084 return 0;
20085}
20086_ACEOF
20087rm -f conftest.$ac_objext
20088if { (ac_try="$ac_compile"
20089case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092esac
20093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20094$as_echo "$ac_try_echo") >&5
20095 (eval "$ac_compile") 2>conftest.er1
20096 ac_status=$?
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
20100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } && {
20102 test -z "$ac_c_werror_flag" ||
20103 test ! -s conftest.err
20104 } && test -s conftest.$ac_objext; then
20105 cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h. */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h. */
20111$ac_includes_default
20112int
20113main ()
20114{
20115if (sizeof ((size_t)))
20116 return 0;
20117 ;
20118 return 0;
20119}
e3db237e 20120_ACEOF
abe2eb5b
CR
20121rm -f conftest.$ac_objext
20122if { (ac_try="$ac_compile"
20123case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126esac
20127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128$as_echo "$ac_try_echo") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20139 :
20140else
20141 $as_echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20143
abe2eb5b 20144 ac_cv_type_size_t=yes
2dead0c4
CR
20145fi
20146
abe2eb5b
CR
20147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148else
20149 $as_echo "$as_me: failed program was:" >&5
20150sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20151
2dead0c4 20152
abe2eb5b 20153fi
2dead0c4 20154
abe2eb5b 20155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 20156fi
abe2eb5b
CR
20157{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20158$as_echo "$ac_cv_type_size_t" >&6; }
20159if test "x$ac_cv_type_size_t" = x""yes; then
20160 :
20161else
2dead0c4 20162
abe2eb5b
CR
20163cat >>confdefs.h <<_ACEOF
20164#define size_t unsigned int
20165_ACEOF
2dead0c4 20166
abe2eb5b 20167fi
2dead0c4 20168
abe2eb5b
CR
20169{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
20170$as_echo_n "checking for ssize_t... " >&6; }
20171if test "${ac_cv_type_ssize_t+set}" = set; then
2dead0c4
CR
20172 $as_echo_n "(cached) " >&6
20173else
abe2eb5b
CR
20174 ac_cv_type_ssize_t=no
20175cat >conftest.$ac_ext <<_ACEOF
20176/* confdefs.h. */
20177_ACEOF
20178cat confdefs.h >>conftest.$ac_ext
20179cat >>conftest.$ac_ext <<_ACEOF
e3db237e 20180/* end confdefs.h. */
abe2eb5b 20181$ac_includes_default
e3db237e
CR
20182int
20183main ()
20184{
abe2eb5b
CR
20185if (sizeof (ssize_t))
20186 return 0;
e3db237e
CR
20187 ;
20188 return 0;
20189}
a82a04b3 20190_ACEOF
abe2eb5b
CR
20191rm -f conftest.$ac_objext
20192if { (ac_try="$ac_compile"
20193case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196esac
20197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20198$as_echo "$ac_try_echo") >&5
20199 (eval "$ac_compile") 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } && {
20206 test -z "$ac_c_werror_flag" ||
20207 test ! -s conftest.err
20208 } && test -s conftest.$ac_objext; then
20209 cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
e3db237e 20214/* end confdefs.h. */
abe2eb5b 20215$ac_includes_default
e3db237e
CR
20216int
20217main ()
20218{
abe2eb5b
CR
20219if (sizeof ((ssize_t)))
20220 return 0;
e3db237e
CR
20221 ;
20222 return 0;
20223}
c920c360 20224_ACEOF
abe2eb5b
CR
20225rm -f conftest.$ac_objext
20226if { (ac_try="$ac_compile"
20227case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230esac
20231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232$as_echo "$ac_try_echo") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 :
e3db237e 20244else
abe2eb5b
CR
20245 $as_echo "$as_me: failed program was:" >&5
20246sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20247
abe2eb5b
CR
20248 ac_cv_type_ssize_t=yes
20249fi
7610e0c5 20250
abe2eb5b 20251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 20252else
abe2eb5b
CR
20253 $as_echo "$as_me: failed program was:" >&5
20254sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20255
2dead0c4 20256
2dead0c4 20257fi
71412226 20258
abe2eb5b 20259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 20260fi
abe2eb5b
CR
20261{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20262$as_echo "$ac_cv_type_ssize_t" >&6; }
20263if test "x$ac_cv_type_ssize_t" = x""yes; then
20264 :
20265else
e3db237e
CR
20266
20267cat >>confdefs.h <<_ACEOF
abe2eb5b 20268#define ssize_t int
c920c360 20269_ACEOF
71412226 20270
2dead0c4
CR
20271fi
20272
abe2eb5b
CR
20273{ $as_echo "$as_me:$LINENO: checking for time_t" >&5
20274$as_echo_n "checking for time_t... " >&6; }
20275if test "${ac_cv_type_time_t+set}" = set; then
e3db237e
CR
20276 $as_echo_n "(cached) " >&6
20277else
abe2eb5b
CR
20278 ac_cv_type_time_t=no
20279cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
e3db237e
CR
20284/* end confdefs.h. */
20285$ac_includes_default
20286int
abe2eb5b 20287main ()
e3db237e 20288{
abe2eb5b
CR
20289if (sizeof (time_t))
20290 return 0;
20291 ;
20292 return 0;
e3db237e 20293}
abe2eb5b
CR
20294_ACEOF
20295rm -f conftest.$ac_objext
20296if { (ac_try="$ac_compile"
20297case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300esac
20301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302$as_echo "$ac_try_echo") >&5
20303 (eval "$ac_compile") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest.$ac_objext; then
20313 cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319$ac_includes_default
e3db237e
CR
20320int
20321main ()
20322{
abe2eb5b
CR
20323if (sizeof ((time_t)))
20324 return 0;
20325 ;
20326 return 0;
e3db237e
CR
20327}
20328_ACEOF
abe2eb5b
CR
20329rm -f conftest.$ac_objext
20330if { (ac_try="$ac_compile"
20331case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20334esac
20335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20336$as_echo "$ac_try_echo") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 :
e3db237e 20348else
abe2eb5b
CR
20349 $as_echo "$as_me: failed program was:" >&5
20350sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ac_cv_type_time_t=yes
2dead0c4 20353fi
abe2eb5b
CR
20354
20355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356else
20357 $as_echo "$as_me: failed program was:" >&5
20358sed 's/^/| /' conftest.$ac_ext >&5
20359
20360
2dead0c4 20361fi
dd4f3dd8 20362
abe2eb5b 20363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 20364fi
abe2eb5b
CR
20365{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
20366$as_echo "$ac_cv_type_time_t" >&6; }
20367if test "x$ac_cv_type_time_t" = x""yes; then
20368 :
20369else
20370
2dead0c4 20371cat >>confdefs.h <<_ACEOF
abe2eb5b 20372#define time_t long
2dead0c4 20373_ACEOF
b709b946 20374
2dead0c4 20375fi
e3db237e 20376
abe2eb5b
CR
20377
20378
20379{ $as_echo "$as_me:$LINENO: checking for long long" >&5
20380$as_echo_n "checking for long long... " >&6; }
20381if test "${bash_cv_type_long_long+set}" = set; then
2dead0c4
CR
20382 $as_echo_n "(cached) " >&6
20383else
abe2eb5b
CR
20384 cat >conftest.$ac_ext <<_ACEOF
20385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
e3db237e 20389/* end confdefs.h. */
abe2eb5b
CR
20390
20391long long ll = 1; int i = 63;
e3db237e
CR
20392int
20393main ()
20394{
abe2eb5b
CR
20395
20396long long llm = (long long) -1;
20397return ll << i | ll >> i | llm / ll | llm % ll;
20398
e3db237e
CR
20399 ;
20400 return 0;
20401}
20402_ACEOF
abe2eb5b
CR
20403rm -f conftest.$ac_objext conftest$ac_exeext
20404if { (ac_try="$ac_link"
20405case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408esac
20409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20410$as_echo "$ac_try_echo") >&5
20411 (eval "$ac_link") 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest$ac_exeext && {
20421 test "$cross_compiling" = yes ||
20422 $as_test_x conftest$ac_exeext
20423 }; then
20424 bash_cv_type_long_long='long long'
e3db237e 20425else
abe2eb5b
CR
20426 $as_echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
c920c360 20428
abe2eb5b 20429 bash_cv_type_long_long='long'
c920c360
CR
20430fi
20431
abe2eb5b
CR
20432rm -rf conftest.dSYM
20433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20434 conftest$ac_exeext conftest.$ac_ext
c920c360 20435fi
abe2eb5b
CR
20436{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
20437$as_echo "$bash_cv_type_long_long" >&6; }
20438if test "$bash_cv_type_long_long" = 'long long'; then
20439 cat >>confdefs.h <<\_ACEOF
20440#define HAVE_LONG_LONG 1
e3db237e 20441_ACEOF
7610e0c5 20442
2dead0c4 20443fi
2dead0c4
CR
20444
20445
abe2eb5b
CR
20446{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
20447$as_echo_n "checking for unsigned long long... " >&6; }
20448if test "${bash_cv_type_unsigned_long_long+set}" = set; then
2dead0c4 20449 $as_echo_n "(cached) " >&6
e3db237e 20450else
abe2eb5b
CR
20451 cat >conftest.$ac_ext <<_ACEOF
20452/* confdefs.h. */
20453_ACEOF
20454cat confdefs.h >>conftest.$ac_ext
20455cat >>conftest.$ac_ext <<_ACEOF
e3db237e 20456/* end confdefs.h. */
abe2eb5b
CR
20457
20458unsigned long long ull = 1; int i = 63;
e3db237e
CR
20459int
20460main ()
20461{
abe2eb5b
CR
20462
20463unsigned long long ullmax = (unsigned long long) -1;
20464return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20465
e3db237e
CR
20466 ;
20467 return 0;
20468}
20469_ACEOF
abe2eb5b
CR
20470rm -f conftest.$ac_objext conftest$ac_exeext
20471if { (ac_try="$ac_link"
20472case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20477$as_echo "$ac_try_echo") >&5
20478 (eval "$ac_link") 2>conftest.er1
20479 ac_status=$?
20480 grep -v '^ *+' conftest.er1 >conftest.err
20481 rm -f conftest.er1
20482 cat conftest.err >&5
20483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest$ac_exeext && {
20488 test "$cross_compiling" = yes ||
20489 $as_test_x conftest$ac_exeext
20490 }; then
20491 bash_cv_type_unsigned_long_long='unsigned long long'
e3db237e 20492else
abe2eb5b
CR
20493 $as_echo "$as_me: failed program was:" >&5
20494sed 's/^/| /' conftest.$ac_ext >&5
c920c360 20495
abe2eb5b 20496 bash_cv_type_unsigned_long_long='unsigned long'
2dead0c4
CR
20497fi
20498
abe2eb5b
CR
20499rm -rf conftest.dSYM
20500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20501 conftest$ac_exeext conftest.$ac_ext
2dead0c4 20502fi
abe2eb5b
CR
20503{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
20504$as_echo "$bash_cv_type_unsigned_long_long" >&6; }
20505if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
20506 cat >>confdefs.h <<\_ACEOF
20507#define HAVE_UNSIGNED_LONG_LONG 1
e3db237e 20508_ACEOF
2dead0c4 20509
2dead0c4 20510fi
f73dda09 20511
2dead0c4 20512
abe2eb5b 20513{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2dead0c4 20514$as_echo_n "checking return type of signal handlers... " >&6; }
abe2eb5b 20515if test "${ac_cv_type_signal+set}" = set; then
e3db237e
CR
20516 $as_echo_n "(cached) " >&6
20517else
abe2eb5b
CR
20518 cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h. */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
e3db237e 20523/* end confdefs.h. */
2dead0c4
CR
20524#include <sys/types.h>
20525#include <signal.h>
20526
e3db237e
CR
20527int
20528main ()
20529{
2dead0c4 20530return *(signal (0, 0)) (0) == 1;
e3db237e
CR
20531 ;
20532 return 0;
20533}
20534_ACEOF
abe2eb5b
CR
20535rm -f conftest.$ac_objext
20536if { (ac_try="$ac_compile"
20537case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20540esac
20541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20542$as_echo "$ac_try_echo") >&5
20543 (eval "$ac_compile") 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } && {
20550 test -z "$ac_c_werror_flag" ||
20551 test ! -s conftest.err
20552 } && test -s conftest.$ac_objext; then
2dead0c4
CR
20553 ac_cv_type_signal=int
20554else
abe2eb5b
CR
20555 $as_echo "$as_me: failed program was:" >&5
20556sed 's/^/| /' conftest.$ac_ext >&5
20557
20558 ac_cv_type_signal=void
2dead0c4 20559fi
abe2eb5b 20560
2dead0c4
CR
20561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562fi
abe2eb5b 20563{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
2dead0c4 20564$as_echo "$ac_cv_type_signal" >&6; }
c920c360 20565
2dead0c4
CR
20566cat >>confdefs.h <<_ACEOF
20567#define RETSIGTYPE $ac_cv_type_signal
e3db237e 20568_ACEOF
2dead0c4
CR
20569
20570
abe2eb5b
CR
20571{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
20572$as_echo_n "checking for sig_atomic_t in signal.h... " >&6; }
20573if test "${ac_cv_have_sig_atomic_t+set}" = set; then
20574 $as_echo_n "(cached) " >&6
20575else
20576 cat >conftest.$ac_ext <<_ACEOF
20577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
2dead0c4 20582
abe2eb5b 20583#include <signal.h>
2dead0c4 20584
abe2eb5b
CR
20585int
20586main ()
20587{
20588 sig_atomic_t x;
20589 ;
20590 return 0;
20591}
20592_ACEOF
20593rm -f conftest.$ac_objext conftest$ac_exeext
20594if { (ac_try="$ac_link"
20595case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20598esac
20599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20600$as_echo "$ac_try_echo") >&5
20601 (eval "$ac_link") 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } && {
20608 test -z "$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20610 } && test -s conftest$ac_exeext && {
20611 test "$cross_compiling" = yes ||
20612 $as_test_x conftest$ac_exeext
20613 }; then
20614 ac_cv_have_sig_atomic_t=yes
20615else
20616 $as_echo "$as_me: failed program was:" >&5
20617sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20618
abe2eb5b 20619 ac_cv_have_sig_atomic_t=no
2dead0c4
CR
20620fi
20621
abe2eb5b
CR
20622rm -rf conftest.dSYM
20623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20624 conftest$ac_exeext conftest.$ac_ext
20625fi
20626{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
20627$as_echo "$ac_cv_have_sig_atomic_t" >&6; }
20628if test "$ac_cv_have_sig_atomic_t" = "no"
20629then
20630 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20631$as_echo_n "checking for sig_atomic_t... " >&6; }
20632if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20633 $as_echo_n "(cached) " >&6
20634else
20635 ac_cv_type_sig_atomic_t=no
20636cat >conftest.$ac_ext <<_ACEOF
20637/* confdefs.h. */
20638_ACEOF
20639cat confdefs.h >>conftest.$ac_ext
20640cat >>conftest.$ac_ext <<_ACEOF
20641/* end confdefs.h. */
20642$ac_includes_default
20643int
20644main ()
20645{
20646if (sizeof (sig_atomic_t))
20647 return 0;
20648 ;
20649 return 0;
20650}
20651_ACEOF
20652rm -f conftest.$ac_objext
20653if { (ac_try="$ac_compile"
20654case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20657esac
20658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20659$as_echo "$ac_try_echo") >&5
20660 (eval "$ac_compile") 2>conftest.er1
20661 ac_status=$?
20662 grep -v '^ *+' conftest.er1 >conftest.err
20663 rm -f conftest.er1
20664 cat conftest.err >&5
20665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } && {
20667 test -z "$ac_c_werror_flag" ||
20668 test ! -s conftest.err
20669 } && test -s conftest.$ac_objext; then
20670 cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
20676$ac_includes_default
20677int
20678main ()
20679{
20680if (sizeof ((sig_atomic_t)))
20681 return 0;
20682 ;
20683 return 0;
20684}
20685_ACEOF
20686rm -f conftest.$ac_objext
20687if { (ac_try="$ac_compile"
20688case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691esac
20692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693$as_echo "$ac_try_echo") >&5
20694 (eval "$ac_compile") 2>conftest.er1
20695 ac_status=$?
20696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
20699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && {
20701 test -z "$ac_c_werror_flag" ||
20702 test ! -s conftest.err
20703 } && test -s conftest.$ac_objext; then
20704 :
e3db237e 20705else
abe2eb5b
CR
20706 $as_echo "$as_me: failed program was:" >&5
20707sed 's/^/| /' conftest.$ac_ext >&5
c920c360 20708
abe2eb5b 20709 ac_cv_type_sig_atomic_t=yes
c920c360
CR
20710fi
20711
abe2eb5b
CR
20712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713else
20714 $as_echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20716
2dead0c4
CR
20717
20718fi
2dead0c4 20719
abe2eb5b
CR
20720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20721fi
20722{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20723$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20724if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
20725 :
e3db237e 20726else
abe2eb5b
CR
20727
20728cat >>confdefs.h <<_ACEOF
20729#define sig_atomic_t int
20730_ACEOF
2dead0c4
CR
20731
20732fi
20733
abe2eb5b 20734fi
c920c360 20735
2dead0c4 20736
abe2eb5b
CR
20737# The cast to long int works around a bug in the HP C Compiler
20738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20740# This bug is HP SR number 8606223364.
20741{ $as_echo "$as_me:$LINENO: checking size of char" >&5
20742$as_echo_n "checking size of char... " >&6; }
20743if test "${ac_cv_sizeof_char+set}" = set; then
20744 $as_echo_n "(cached) " >&6
20745else
20746 if test "$cross_compiling" = yes; then
20747 # Depending upon the size, compute the lo and hi bounds.
20748cat >conftest.$ac_ext <<_ACEOF
20749/* confdefs.h. */
e3db237e 20750_ACEOF
abe2eb5b
CR
20751cat confdefs.h >>conftest.$ac_ext
20752cat >>conftest.$ac_ext <<_ACEOF
20753/* end confdefs.h. */
20754$ac_includes_default
20755int
20756main ()
20757{
20758static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20759test_array [0] = 0
c920c360 20760
abe2eb5b
CR
20761 ;
20762 return 0;
20763}
20764_ACEOF
20765rm -f conftest.$ac_objext
20766if { (ac_try="$ac_compile"
20767case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770esac
20771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772$as_echo "$ac_try_echo") >&5
20773 (eval "$ac_compile") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest.$ac_objext; then
20783 ac_lo=0 ac_mid=0
20784 while :; do
20785 cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h. */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
20790/* end confdefs.h. */
20791$ac_includes_default
20792int
20793main ()
20794{
20795static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20796test_array [0] = 0
2dead0c4 20797
abe2eb5b
CR
20798 ;
20799 return 0;
20800}
e3db237e 20801_ACEOF
abe2eb5b
CR
20802rm -f conftest.$ac_objext
20803if { (ac_try="$ac_compile"
20804case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807esac
20808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20809$as_echo "$ac_try_echo") >&5
20810 (eval "$ac_compile") 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && {
20817 test -z "$ac_c_werror_flag" ||
20818 test ! -s conftest.err
20819 } && test -s conftest.$ac_objext; then
20820 ac_hi=$ac_mid; break
20821else
20822 $as_echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20824
abe2eb5b
CR
20825 ac_lo=`expr $ac_mid + 1`
20826 if test $ac_lo -le $ac_mid; then
20827 ac_lo= ac_hi=
20828 break
20829 fi
20830 ac_mid=`expr 2 '*' $ac_mid + 1`
2dead0c4 20831fi
2dead0c4 20832
abe2eb5b
CR
20833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20834 done
20835else
20836 $as_echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 20838
abe2eb5b
CR
20839 cat >conftest.$ac_ext <<_ACEOF
20840/* confdefs.h. */
20841_ACEOF
20842cat confdefs.h >>conftest.$ac_ext
20843cat >>conftest.$ac_ext <<_ACEOF
20844/* end confdefs.h. */
20845$ac_includes_default
20846int
20847main ()
20848{
20849static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20850test_array [0] = 0
2dead0c4 20851
abe2eb5b
CR
20852 ;
20853 return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext
20857if { (ac_try="$ac_compile"
20858case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861esac
20862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20863$as_echo "$ac_try_echo") >&5
20864 (eval "$ac_compile") 2>conftest.er1
20865 ac_status=$?
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
20869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest.$ac_objext; then
20874 ac_hi=-1 ac_mid=-1
20875 while :; do
20876 cat >conftest.$ac_ext <<_ACEOF
20877/* confdefs.h. */
f73dda09 20878_ACEOF
abe2eb5b
CR
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h. */
20882$ac_includes_default
20883int
20884main ()
20885{
20886static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20887test_array [0] = 0
2dead0c4 20888
abe2eb5b
CR
20889 ;
20890 return 0;
20891}
20892_ACEOF
20893rm -f conftest.$ac_objext
20894if { (ac_try="$ac_compile"
20895case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
e3db237e 20898esac
abe2eb5b
CR
20899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900$as_echo "$ac_try_echo") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest.$ac_objext; then
20911 ac_lo=$ac_mid; break
dd4f3dd8 20912else
abe2eb5b
CR
20913 $as_echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
bb70624e 20915
abe2eb5b
CR
20916 ac_hi=`expr '(' $ac_mid ')' - 1`
20917 if test $ac_mid -le $ac_hi; then
20918 ac_lo= ac_hi=
20919 break
20920 fi
20921 ac_mid=`expr 2 '*' $ac_mid`
bb70624e 20922fi
f73dda09 20923
abe2eb5b
CR
20924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925 done
e3db237e 20926else
abe2eb5b
CR
20927 $as_echo "$as_me: failed program was:" >&5
20928sed 's/^/| /' conftest.$ac_ext >&5
71412226 20929
abe2eb5b 20930 ac_lo= ac_hi=
ccc6cda3 20931fi
ccc6cda3 20932
abe2eb5b 20933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e3db237e 20934fi
a82a04b3 20935
abe2eb5b
CR
20936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937# Binary search between lo and hi bounds.
20938while test "x$ac_lo" != "x$ac_hi"; do
20939 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20940 cat >conftest.$ac_ext <<_ACEOF
20941/* confdefs.h. */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h. */
20946$ac_includes_default
20947int
20948main ()
20949{
20950static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20951test_array [0] = 0
e3db237e 20952
abe2eb5b
CR
20953 ;
20954 return 0;
20955}
20956_ACEOF
20957rm -f conftest.$ac_objext
20958if { (ac_try="$ac_compile"
20959case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
e3db237e 20962esac
abe2eb5b
CR
20963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20964$as_echo "$ac_try_echo") >&5
20965 (eval "$ac_compile") 2>conftest.er1
20966 ac_status=$?
20967 grep -v '^ *+' conftest.er1 >conftest.err
20968 rm -f conftest.er1
20969 cat conftest.err >&5
20970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && {
20972 test -z "$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20974 } && test -s conftest.$ac_objext; then
20975 ac_hi=$ac_mid
c920c360 20976else
abe2eb5b
CR
20977 $as_echo "$as_me: failed program was:" >&5
20978sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 20979
abe2eb5b 20980 ac_lo=`expr '(' $ac_mid ')' + 1`
2dead0c4
CR
20981fi
20982
abe2eb5b
CR
20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984done
20985case $ac_lo in
20986?*) ac_cv_sizeof_char=$ac_lo;;
20987'') if test "$ac_cv_type_char" = yes; then
20988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20990{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20991See \`config.log' for more details." >&5
20992$as_echo "$as_me: error: cannot compute sizeof (char)
20993See \`config.log' for more details." >&2;}
20994 { (exit 77); exit 77; }; }; }
20995 else
20996 ac_cv_sizeof_char=0
20997 fi ;;
2dead0c4 20998esac
abe2eb5b
CR
20999else
21000 cat >conftest.$ac_ext <<_ACEOF
21001/* confdefs.h. */
21002_ACEOF
21003cat confdefs.h >>conftest.$ac_ext
21004cat >>conftest.$ac_ext <<_ACEOF
21005/* end confdefs.h. */
21006$ac_includes_default
21007static long int longval () { return (long int) (sizeof (char)); }
21008static unsigned long int ulongval () { return (long int) (sizeof (char)); }
21009#include <stdio.h>
21010#include <stdlib.h>
21011int
21012main ()
21013{
2dead0c4 21014
abe2eb5b
CR
21015 FILE *f = fopen ("conftest.val", "w");
21016 if (! f)
21017 return 1;
21018 if (((long int) (sizeof (char))) < 0)
21019 {
21020 long int i = longval ();
21021 if (i != ((long int) (sizeof (char))))
21022 return 1;
21023 fprintf (f, "%ld", i);
21024 }
21025 else
21026 {
21027 unsigned long int i = ulongval ();
21028 if (i != ((long int) (sizeof (char))))
21029 return 1;
21030 fprintf (f, "%lu", i);
21031 }
21032 /* Do not output a trailing newline, as this causes \r\n confusion
21033 on some platforms. */
21034 return ferror (f) || fclose (f) != 0;
2dead0c4 21035
abe2eb5b
CR
21036 ;
21037 return 0;
21038}
21039_ACEOF
21040rm -f conftest$ac_exeext
21041if { (ac_try="$ac_link"
21042case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21045esac
21046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21047$as_echo "$ac_try_echo") >&5
21048 (eval "$ac_link") 2>&5
21049 ac_status=$?
21050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
2dead0c4 21055esac
abe2eb5b
CR
21056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21057$as_echo "$ac_try_echo") >&5
21058 (eval "$ac_try") 2>&5
21059 ac_status=$?
21060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_sizeof_char=`cat conftest.val`
21063else
21064 $as_echo "$as_me: program exited with status $ac_status" >&5
21065$as_echo "$as_me: failed program was:" >&5
21066sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21067
abe2eb5b
CR
21068( exit $ac_status )
21069if test "$ac_cv_type_char" = yes; then
21070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21072{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
21073See \`config.log' for more details." >&5
21074$as_echo "$as_me: error: cannot compute sizeof (char)
21075See \`config.log' for more details." >&2;}
21076 { (exit 77); exit 77; }; }; }
21077 else
21078 ac_cv_sizeof_char=0
21079 fi
2dead0c4 21080fi
abe2eb5b
CR
21081rm -rf conftest.dSYM
21082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21083fi
21084rm -f conftest.val
21085fi
21086{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
21087$as_echo "$ac_cv_sizeof_char" >&6; }
2dead0c4 21088
c920c360 21089
c920c360 21090
abe2eb5b
CR
21091cat >>confdefs.h <<_ACEOF
21092#define SIZEOF_CHAR $ac_cv_sizeof_char
21093_ACEOF
2dead0c4 21094
2dead0c4 21095
abe2eb5b
CR
21096# The cast to long int works around a bug in the HP C Compiler
21097# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21098# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21099# This bug is HP SR number 8606223364.
21100{ $as_echo "$as_me:$LINENO: checking size of short" >&5
21101$as_echo_n "checking size of short... " >&6; }
21102if test "${ac_cv_sizeof_short+set}" = set; then
21103 $as_echo_n "(cached) " >&6
c920c360 21104else
abe2eb5b
CR
21105 if test "$cross_compiling" = yes; then
21106 # Depending upon the size, compute the lo and hi bounds.
21107cat >conftest.$ac_ext <<_ACEOF
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113$ac_includes_default
21114int
21115main ()
21116{
21117static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
21118test_array [0] = 0
c920c360 21119
abe2eb5b
CR
21120 ;
21121 return 0;
21122}
21123_ACEOF
21124rm -f conftest.$ac_objext
21125if { (ac_try="$ac_compile"
21126case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129esac
21130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131$as_echo "$ac_try_echo") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 ac_lo=0 ac_mid=0
21143 while :; do
21144 cat >conftest.$ac_ext <<_ACEOF
21145/* confdefs.h. */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h. */
21150$ac_includes_default
21151int
21152main ()
21153{
21154static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21155test_array [0] = 0
2dead0c4 21156
abe2eb5b
CR
21157 ;
21158 return 0;
21159}
21160_ACEOF
21161rm -f conftest.$ac_objext
21162if { (ac_try="$ac_compile"
21163case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
e3db237e 21166esac
abe2eb5b
CR
21167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21168$as_echo "$ac_try_echo") >&5
21169 (eval "$ac_compile") 2>conftest.er1
21170 ac_status=$?
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
21174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest.$ac_objext; then
21179 ac_hi=$ac_mid; break
21180else
21181 $as_echo "$as_me: failed program was:" >&5
21182sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21183
abe2eb5b
CR
21184 ac_lo=`expr $ac_mid + 1`
21185 if test $ac_lo -le $ac_mid; then
21186 ac_lo= ac_hi=
21187 break
21188 fi
21189 ac_mid=`expr 2 '*' $ac_mid + 1`
2dead0c4
CR
21190fi
21191
abe2eb5b
CR
21192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 done
2dead0c4 21194else
abe2eb5b
CR
21195 $as_echo "$as_me: failed program was:" >&5
21196sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21197
abe2eb5b
CR
21198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204$ac_includes_default
21205int
21206main ()
21207{
21208static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
21209test_array [0] = 0
2dead0c4 21210
abe2eb5b
CR
21211 ;
21212 return 0;
21213}
21214_ACEOF
21215rm -f conftest.$ac_objext
21216if { (ac_try="$ac_compile"
21217case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21220esac
21221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21222$as_echo "$ac_try_echo") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest.$ac_objext; then
21233 ac_hi=-1 ac_mid=-1
21234 while :; do
21235 cat >conftest.$ac_ext <<_ACEOF
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h. */
21241$ac_includes_default
21242int
21243main ()
21244{
21245static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
21246test_array [0] = 0
2dead0c4 21247
abe2eb5b
CR
21248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (ac_try="$ac_compile"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
2dead0c4 21257esac
abe2eb5b
CR
21258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21259$as_echo "$ac_try_echo") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest.$ac_objext; then
21270 ac_lo=$ac_mid; break
2dead0c4 21271else
abe2eb5b
CR
21272 $as_echo "$as_me: failed program was:" >&5
21273sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21274
abe2eb5b
CR
21275 ac_hi=`expr '(' $ac_mid ')' - 1`
21276 if test $ac_mid -le $ac_hi; then
21277 ac_lo= ac_hi=
21278 break
21279 fi
21280 ac_mid=`expr 2 '*' $ac_mid`
c920c360 21281fi
2dead0c4 21282
abe2eb5b
CR
21283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 done
2dead0c4 21285else
abe2eb5b
CR
21286 $as_echo "$as_me: failed program was:" >&5
21287sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21288
abe2eb5b 21289 ac_lo= ac_hi=
e3db237e 21290fi
c920c360 21291
abe2eb5b 21292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 21293fi
e3db237e 21294
abe2eb5b
CR
21295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296# Binary search between lo and hi bounds.
21297while test "x$ac_lo" != "x$ac_hi"; do
21298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21299 cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305$ac_includes_default
21306int
21307main ()
21308{
21309static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
21310test_array [0] = 0
e3db237e 21311
abe2eb5b
CR
21312 ;
21313 return 0;
21314}
21315_ACEOF
21316rm -f conftest.$ac_objext
21317if { (ac_try="$ac_compile"
21318case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
e3db237e 21321esac
abe2eb5b
CR
21322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21323$as_echo "$ac_try_echo") >&5
21324 (eval "$ac_compile") 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } && {
21331 test -z "$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 } && test -s conftest.$ac_objext; then
21334 ac_hi=$ac_mid
2dead0c4 21335else
abe2eb5b
CR
21336 $as_echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
c920c360 21338
abe2eb5b 21339 ac_lo=`expr '(' $ac_mid ')' + 1`
c920c360 21340fi
2dead0c4 21341
abe2eb5b
CR
21342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343done
21344case $ac_lo in
21345?*) ac_cv_sizeof_short=$ac_lo;;
21346'') if test "$ac_cv_type_short" = yes; then
21347 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21349{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21350See \`config.log' for more details." >&5
21351$as_echo "$as_me: error: cannot compute sizeof (short)
21352See \`config.log' for more details." >&2;}
21353 { (exit 77); exit 77; }; }; }
21354 else
21355 ac_cv_sizeof_short=0
21356 fi ;;
21357esac
a0350e08 21358else
abe2eb5b
CR
21359 cat >conftest.$ac_ext <<_ACEOF
21360/* confdefs.h. */
a0350e08 21361_ACEOF
abe2eb5b
CR
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h. */
21365$ac_includes_default
21366static long int longval () { return (long int) (sizeof (short)); }
21367static unsigned long int ulongval () { return (long int) (sizeof (short)); }
21368#include <stdio.h>
21369#include <stdlib.h>
21370int
21371main ()
21372{
a0350e08 21373
abe2eb5b
CR
21374 FILE *f = fopen ("conftest.val", "w");
21375 if (! f)
21376 return 1;
21377 if (((long int) (sizeof (short))) < 0)
21378 {
21379 long int i = longval ();
21380 if (i != ((long int) (sizeof (short))))
21381 return 1;
21382 fprintf (f, "%ld", i);
21383 }
21384 else
21385 {
21386 unsigned long int i = ulongval ();
21387 if (i != ((long int) (sizeof (short))))
21388 return 1;
21389 fprintf (f, "%lu", i);
21390 }
21391 /* Do not output a trailing newline, as this causes \r\n confusion
21392 on some platforms. */
21393 return ferror (f) || fclose (f) != 0;
a0350e08 21394
abe2eb5b
CR
21395 ;
21396 return 0;
21397}
c920c360 21398_ACEOF
abe2eb5b
CR
21399rm -f conftest$ac_exeext
21400if { (ac_try="$ac_link"
21401case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404esac
21405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21406$as_echo "$ac_try_echo") >&5
21407 (eval "$ac_link") 2>&5
21408 ac_status=$?
21409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21411 { (case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414esac
21415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416$as_echo "$ac_try_echo") >&5
21417 (eval "$ac_try") 2>&5
21418 ac_status=$?
21419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_cv_sizeof_short=`cat conftest.val`
2dead0c4 21422else
abe2eb5b
CR
21423 $as_echo "$as_me: program exited with status $ac_status" >&5
21424$as_echo "$as_me: failed program was:" >&5
21425sed 's/^/| /' conftest.$ac_ext >&5
71412226 21426
abe2eb5b
CR
21427( exit $ac_status )
21428if test "$ac_cv_type_short" = yes; then
21429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21431{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21432See \`config.log' for more details." >&5
21433$as_echo "$as_me: error: cannot compute sizeof (short)
21434See \`config.log' for more details." >&2;}
21435 { (exit 77); exit 77; }; }; }
21436 else
21437 ac_cv_sizeof_short=0
21438 fi
7610e0c5 21439fi
abe2eb5b
CR
21440rm -rf conftest.dSYM
21441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2dead0c4 21442fi
abe2eb5b 21443rm -f conftest.val
c920c360 21444fi
abe2eb5b
CR
21445{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21446$as_echo "$ac_cv_sizeof_short" >&6; }
d3a24ed2 21447
2dead0c4 21448
e3db237e 21449
7610e0c5 21450cat >>confdefs.h <<_ACEOF
abe2eb5b 21451#define SIZEOF_SHORT $ac_cv_sizeof_short
7610e0c5 21452_ACEOF
d3a24ed2 21453
d3a24ed2 21454
abe2eb5b
CR
21455# The cast to long int works around a bug in the HP C Compiler
21456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21458# This bug is HP SR number 8606223364.
21459{ $as_echo "$as_me:$LINENO: checking size of int" >&5
21460$as_echo_n "checking size of int... " >&6; }
21461if test "${ac_cv_sizeof_int+set}" = set; then
21462 $as_echo_n "(cached) " >&6
2dead0c4 21463else
abe2eb5b
CR
21464 if test "$cross_compiling" = yes; then
21465 # Depending upon the size, compute the lo and hi bounds.
21466cat >conftest.$ac_ext <<_ACEOF
21467/* confdefs.h. */
2dead0c4 21468_ACEOF
abe2eb5b
CR
21469cat confdefs.h >>conftest.$ac_ext
21470cat >>conftest.$ac_ext <<_ACEOF
21471/* end confdefs.h. */
21472$ac_includes_default
21473int
21474main ()
21475{
21476static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
21477test_array [0] = 0
d3a24ed2 21478
abe2eb5b
CR
21479 ;
21480 return 0;
21481}
21482_ACEOF
21483rm -f conftest.$ac_objext
21484if { (ac_try="$ac_compile"
21485case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488esac
21489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21490$as_echo "$ac_try_echo") >&5
21491 (eval "$ac_compile") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest.$ac_objext; then
21501 ac_lo=0 ac_mid=0
21502 while :; do
21503 cat >conftest.$ac_ext <<_ACEOF
21504/* confdefs.h. */
21505_ACEOF
21506cat confdefs.h >>conftest.$ac_ext
21507cat >>conftest.$ac_ext <<_ACEOF
e3db237e 21508/* end confdefs.h. */
abe2eb5b 21509$ac_includes_default
e3db237e 21510int
2dead0c4
CR
21511main ()
21512{
abe2eb5b
CR
21513static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21514test_array [0] = 0
21515
2dead0c4
CR
21516 ;
21517 return 0;
21518}
21519_ACEOF
abe2eb5b
CR
21520rm -f conftest.$ac_objext
21521if { (ac_try="$ac_compile"
21522case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21525esac
21526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21527$as_echo "$ac_try_echo") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_hi=$ac_mid; break
7610e0c5 21539else
abe2eb5b
CR
21540 $as_echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 21542
abe2eb5b
CR
21543 ac_lo=`expr $ac_mid + 1`
21544 if test $ac_lo -le $ac_mid; then
21545 ac_lo= ac_hi=
21546 break
21547 fi
21548 ac_mid=`expr 2 '*' $ac_mid + 1`
e3db237e
CR
21549fi
21550
abe2eb5b
CR
21551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 done
21553else
21554 $as_echo "$as_me: failed program was:" >&5
21555sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21556
abe2eb5b
CR
21557 cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563$ac_includes_default
21564int
21565main ()
21566{
21567static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
21568test_array [0] = 0
2dead0c4 21569
abe2eb5b
CR
21570 ;
21571 return 0;
21572}
21573_ACEOF
21574rm -f conftest.$ac_objext
21575if { (ac_try="$ac_compile"
21576case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21579esac
21580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21581$as_echo "$ac_try_echo") >&5
21582 (eval "$ac_compile") 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } && {
21589 test -z "$ac_c_werror_flag" ||
21590 test ! -s conftest.err
21591 } && test -s conftest.$ac_objext; then
21592 ac_hi=-1 ac_mid=-1
21593 while :; do
21594 cat >conftest.$ac_ext <<_ACEOF
21595/* confdefs.h. */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 21599/* end confdefs.h. */
abe2eb5b 21600$ac_includes_default
7610e0c5
CR
21601int
21602main ()
21603{
abe2eb5b
CR
21604static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
21605test_array [0] = 0
21606
7610e0c5
CR
21607 ;
21608 return 0;
21609}
21610_ACEOF
abe2eb5b
CR
21611rm -f conftest.$ac_objext
21612if { (ac_try="$ac_compile"
21613case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616esac
21617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21618$as_echo "$ac_try_echo") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21629 ac_lo=$ac_mid; break
2dead0c4 21630else
abe2eb5b
CR
21631 $as_echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634 ac_hi=`expr '(' $ac_mid ')' - 1`
21635 if test $ac_mid -le $ac_hi; then
21636 ac_lo= ac_hi=
21637 break
21638 fi
21639 ac_mid=`expr 2 '*' $ac_mid`
2dead0c4 21640fi
2dead0c4 21641
abe2eb5b
CR
21642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 done
2dead0c4 21644else
abe2eb5b
CR
21645 $as_echo "$as_me: failed program was:" >&5
21646sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21647
abe2eb5b 21648 ac_lo= ac_hi=
2dead0c4
CR
21649fi
21650
abe2eb5b
CR
21651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652fi
2dead0c4 21653
abe2eb5b
CR
21654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655# Binary search between lo and hi bounds.
21656while test "x$ac_lo" != "x$ac_hi"; do
21657 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21658 cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 21663/* end confdefs.h. */
abe2eb5b 21664$ac_includes_default
7610e0c5
CR
21665int
21666main ()
21667{
abe2eb5b
CR
21668static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
21669test_array [0] = 0
21670
7610e0c5
CR
21671 ;
21672 return 0;
21673}
a82a04b3 21674_ACEOF
abe2eb5b
CR
21675rm -f conftest.$ac_objext
21676if { (ac_try="$ac_compile"
21677case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680esac
21681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21682$as_echo "$ac_try_echo") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest.$ac_objext; then
21693 ac_hi=$ac_mid
7610e0c5 21694else
abe2eb5b
CR
21695 $as_echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 21697
abe2eb5b 21698 ac_lo=`expr '(' $ac_mid ')' + 1`
7610e0c5 21699fi
71412226 21700
abe2eb5b
CR
21701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702done
21703case $ac_lo in
21704?*) ac_cv_sizeof_int=$ac_lo;;
21705'') if test "$ac_cv_type_int" = yes; then
21706 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21708{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21709See \`config.log' for more details." >&5
21710$as_echo "$as_me: error: cannot compute sizeof (int)
21711See \`config.log' for more details." >&2;}
21712 { (exit 77); exit 77; }; }; }
21713 else
21714 ac_cv_sizeof_int=0
21715 fi ;;
21716esac
c920c360 21717else
abe2eb5b
CR
21718 cat >conftest.$ac_ext <<_ACEOF
21719/* confdefs.h. */
21720_ACEOF
21721cat confdefs.h >>conftest.$ac_ext
21722cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 21723/* end confdefs.h. */
abe2eb5b
CR
21724$ac_includes_default
21725static long int longval () { return (long int) (sizeof (int)); }
21726static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21727#include <stdio.h>
21728#include <stdlib.h>
7610e0c5
CR
21729int
21730main ()
21731{
abe2eb5b
CR
21732
21733 FILE *f = fopen ("conftest.val", "w");
21734 if (! f)
21735 return 1;
21736 if (((long int) (sizeof (int))) < 0)
21737 {
21738 long int i = longval ();
21739 if (i != ((long int) (sizeof (int))))
21740 return 1;
21741 fprintf (f, "%ld", i);
21742 }
21743 else
21744 {
21745 unsigned long int i = ulongval ();
21746 if (i != ((long int) (sizeof (int))))
21747 return 1;
21748 fprintf (f, "%lu", i);
21749 }
21750 /* Do not output a trailing newline, as this causes \r\n confusion
21751 on some platforms. */
21752 return ferror (f) || fclose (f) != 0;
21753
7610e0c5
CR
21754 ;
21755 return 0;
21756}
f73dda09 21757_ACEOF
abe2eb5b
CR
21758rm -f conftest$ac_exeext
21759if { (ac_try="$ac_link"
21760case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763esac
21764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21765$as_echo "$ac_try_echo") >&5
21766 (eval "$ac_link") 2>&5
21767 ac_status=$?
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21770 { (case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773esac
21774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21775$as_echo "$ac_try_echo") >&5
21776 (eval "$ac_try") 2>&5
21777 ac_status=$?
21778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; }; then
21780 ac_cv_sizeof_int=`cat conftest.val`
2dead0c4 21781else
abe2eb5b
CR
21782 $as_echo "$as_me: program exited with status $ac_status" >&5
21783$as_echo "$as_me: failed program was:" >&5
21784sed 's/^/| /' conftest.$ac_ext >&5
21785
21786( exit $ac_status )
21787if test "$ac_cv_type_int" = yes; then
21788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21790{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21791See \`config.log' for more details." >&5
21792$as_echo "$as_me: error: cannot compute sizeof (int)
21793See \`config.log' for more details." >&2;}
21794 { (exit 77); exit 77; }; }; }
21795 else
21796 ac_cv_sizeof_int=0
21797 fi
2dead0c4 21798fi
abe2eb5b
CR
21799rm -rf conftest.dSYM
21800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2dead0c4 21801fi
abe2eb5b 21802rm -f conftest.val
2dead0c4 21803fi
abe2eb5b
CR
21804{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21805$as_echo "$ac_cv_sizeof_int" >&6; }
2dead0c4
CR
21806
21807
21808
abe2eb5b
CR
21809cat >>confdefs.h <<_ACEOF
21810#define SIZEOF_INT $ac_cv_sizeof_int
21811_ACEOF
21812
2dead0c4 21813
abe2eb5b
CR
21814# The cast to long int works around a bug in the HP C Compiler
21815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817# This bug is HP SR number 8606223364.
21818{ $as_echo "$as_me:$LINENO: checking size of long" >&5
21819$as_echo_n "checking size of long... " >&6; }
21820if test "${ac_cv_sizeof_long+set}" = set; then
2dead0c4
CR
21821 $as_echo_n "(cached) " >&6
21822else
abe2eb5b
CR
21823 if test "$cross_compiling" = yes; then
21824 # Depending upon the size, compute the lo and hi bounds.
21825cat >conftest.$ac_ext <<_ACEOF
21826/* confdefs.h. */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
e3db237e 21830/* end confdefs.h. */
abe2eb5b 21831$ac_includes_default
e3db237e
CR
21832int
21833main ()
21834{
abe2eb5b
CR
21835static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
21836test_array [0] = 0
21837
e3db237e
CR
21838 ;
21839 return 0;
21840}
21841_ACEOF
abe2eb5b
CR
21842rm -f conftest.$ac_objext
21843if { (ac_try="$ac_compile"
21844case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847esac
21848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21849$as_echo "$ac_try_echo") >&5
21850 (eval "$ac_compile") 2>conftest.er1
21851 ac_status=$?
21852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
21855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest.$ac_objext; then
21860 ac_lo=0 ac_mid=0
21861 while :; do
21862 cat >conftest.$ac_ext <<_ACEOF
21863/* confdefs.h. */
2dead0c4 21864_ACEOF
abe2eb5b
CR
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h. */
21868$ac_includes_default
21869int
21870main ()
21871{
21872static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
21873test_array [0] = 0
71412226 21874
abe2eb5b
CR
21875 ;
21876 return 0;
21877}
e3db237e 21878_ACEOF
abe2eb5b
CR
21879rm -f conftest.$ac_objext
21880if { (ac_try="$ac_compile"
21881case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884esac
21885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21886$as_echo "$ac_try_echo") >&5
21887 (eval "$ac_compile") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest.$ac_objext; then
21897 ac_hi=$ac_mid; break
21898else
21899 $as_echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
71412226 21901
abe2eb5b
CR
21902 ac_lo=`expr $ac_mid + 1`
21903 if test $ac_lo -le $ac_mid; then
21904 ac_lo= ac_hi=
21905 break
21906 fi
21907 ac_mid=`expr 2 '*' $ac_mid + 1`
ccc6cda3 21908fi
71412226 21909
abe2eb5b
CR
21910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 done
ccc6cda3 21912else
abe2eb5b
CR
21913 $as_echo "$as_me: failed program was:" >&5
21914sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 21915
abe2eb5b
CR
21916 cat >conftest.$ac_ext <<_ACEOF
21917/* confdefs.h. */
21918_ACEOF
21919cat confdefs.h >>conftest.$ac_ext
21920cat >>conftest.$ac_ext <<_ACEOF
21921/* end confdefs.h. */
21922$ac_includes_default
7610e0c5
CR
21923int
21924main ()
21925{
abe2eb5b
CR
21926static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
21927test_array [0] = 0
21928
7610e0c5
CR
21929 ;
21930 return 0;
21931}
21932_ACEOF
abe2eb5b
CR
21933rm -f conftest.$ac_objext
21934if { (ac_try="$ac_compile"
21935case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21938esac
21939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21940$as_echo "$ac_try_echo") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.$ac_objext; then
21951 ac_hi=-1 ac_mid=-1
21952 while :; do
21953 cat >conftest.$ac_ext <<_ACEOF
21954/* confdefs.h. */
e3db237e 21955_ACEOF
abe2eb5b
CR
21956cat confdefs.h >>conftest.$ac_ext
21957cat >>conftest.$ac_ext <<_ACEOF
e3db237e 21958/* end confdefs.h. */
abe2eb5b 21959$ac_includes_default
e3db237e
CR
21960int
21961main ()
21962{
abe2eb5b
CR
21963static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
21964test_array [0] = 0
21965
e3db237e
CR
21966 ;
21967 return 0;
21968}
21969_ACEOF
abe2eb5b
CR
21970rm -f conftest.$ac_objext
21971if { (ac_try="$ac_compile"
21972case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975esac
21976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21977$as_echo "$ac_try_echo") >&5
21978 (eval "$ac_compile") 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest.$ac_objext; then
21988 ac_lo=$ac_mid; break
7610e0c5 21989else
abe2eb5b
CR
21990 $as_echo "$as_me: failed program was:" >&5
21991sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 ac_hi=`expr '(' $ac_mid ')' - 1`
21994 if test $ac_mid -le $ac_hi; then
21995 ac_lo= ac_hi=
21996 break
21997 fi
21998 ac_mid=`expr 2 '*' $ac_mid`
c920c360 21999fi
ccc6cda3 22000
abe2eb5b
CR
22001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22002 done
e3db237e 22003else
abe2eb5b
CR
22004 $as_echo "$as_me: failed program was:" >&5
22005sed 's/^/| /' conftest.$ac_ext >&5
ccc6cda3 22006
abe2eb5b 22007 ac_lo= ac_hi=
71412226 22008fi
c920c360 22009
abe2eb5b 22010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c920c360 22011fi
2dead0c4 22012
abe2eb5b
CR
22013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014# Binary search between lo and hi bounds.
22015while test "x$ac_lo" != "x$ac_hi"; do
22016 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22017 cat >conftest.$ac_ext <<_ACEOF
22018/* confdefs.h. */
22019_ACEOF
22020cat confdefs.h >>conftest.$ac_ext
22021cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 22022/* end confdefs.h. */
abe2eb5b
CR
22023$ac_includes_default
22024int
22025main ()
2dead0c4 22026{
abe2eb5b
CR
22027static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
22028test_array [0] = 0
2dead0c4 22029
abe2eb5b
CR
22030 ;
22031 return 0;
2dead0c4 22032}
abe2eb5b
CR
22033_ACEOF
22034rm -f conftest.$ac_objext
22035if { (ac_try="$ac_compile"
22036case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039esac
22040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22041$as_echo "$ac_try_echo") >&5
22042 (eval "$ac_compile") 2>conftest.er1
22043 ac_status=$?
22044 grep -v '^ *+' conftest.er1 >conftest.err
22045 rm -f conftest.er1
22046 cat conftest.err >&5
22047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } && {
22049 test -z "$ac_c_werror_flag" ||
22050 test ! -s conftest.err
22051 } && test -s conftest.$ac_objext; then
22052 ac_hi=$ac_mid
22053else
22054 $as_echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 ac_lo=`expr '(' $ac_mid ')' + 1`
22058fi
2dead0c4 22059
abe2eb5b
CR
22060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061done
22062case $ac_lo in
22063?*) ac_cv_sizeof_long=$ac_lo;;
22064'') if test "$ac_cv_type_long" = yes; then
22065 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22067{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22068See \`config.log' for more details." >&5
22069$as_echo "$as_me: error: cannot compute sizeof (long)
22070See \`config.log' for more details." >&2;}
22071 { (exit 77); exit 77; }; }; }
22072 else
22073 ac_cv_sizeof_long=0
22074 fi ;;
22075esac
22076else
22077 cat >conftest.$ac_ext <<_ACEOF
22078/* confdefs.h. */
22079_ACEOF
22080cat confdefs.h >>conftest.$ac_ext
22081cat >>conftest.$ac_ext <<_ACEOF
22082/* end confdefs.h. */
22083$ac_includes_default
22084static long int longval () { return (long int) (sizeof (long)); }
22085static unsigned long int ulongval () { return (long int) (sizeof (long)); }
22086#include <stdio.h>
22087#include <stdlib.h>
e3db237e
CR
22088int
22089main ()
22090{
2dead0c4 22091
abe2eb5b
CR
22092 FILE *f = fopen ("conftest.val", "w");
22093 if (! f)
22094 return 1;
22095 if (((long int) (sizeof (long))) < 0)
2dead0c4 22096 {
abe2eb5b
CR
22097 long int i = longval ();
22098 if (i != ((long int) (sizeof (long))))
22099 return 1;
22100 fprintf (f, "%ld", i);
2dead0c4 22101 }
abe2eb5b 22102 else
2dead0c4 22103 {
abe2eb5b
CR
22104 unsigned long int i = ulongval ();
22105 if (i != ((long int) (sizeof (long))))
2dead0c4 22106 return 1;
abe2eb5b 22107 fprintf (f, "%lu", i);
2dead0c4 22108 }
abe2eb5b
CR
22109 /* Do not output a trailing newline, as this causes \r\n confusion
22110 on some platforms. */
22111 return ferror (f) || fclose (f) != 0;
22112
22113 ;
22114 return 0;
e3db237e 22115}
71412226 22116_ACEOF
abe2eb5b
CR
22117rm -f conftest$ac_exeext
22118if { (ac_try="$ac_link"
22119case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122esac
22123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22124$as_echo "$ac_try_echo") >&5
22125 (eval "$ac_link") 2>&5
22126 ac_status=$?
22127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132esac
22133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22134$as_echo "$ac_try_echo") >&5
22135 (eval "$ac_try") 2>&5
22136 ac_status=$?
22137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_cv_sizeof_long=`cat conftest.val`
2dead0c4 22140else
abe2eb5b
CR
22141 $as_echo "$as_me: program exited with status $ac_status" >&5
22142$as_echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22144
abe2eb5b
CR
22145( exit $ac_status )
22146if test "$ac_cv_type_long" = yes; then
22147 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22149{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22150See \`config.log' for more details." >&5
22151$as_echo "$as_me: error: cannot compute sizeof (long)
22152See \`config.log' for more details." >&2;}
22153 { (exit 77); exit 77; }; }; }
22154 else
22155 ac_cv_sizeof_long=0
22156 fi
2dead0c4 22157fi
abe2eb5b
CR
22158rm -rf conftest.dSYM
22159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 22160fi
abe2eb5b 22161rm -f conftest.val
e3db237e 22162fi
abe2eb5b
CR
22163{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22164$as_echo "$ac_cv_sizeof_long" >&6; }
2dead0c4
CR
22165
22166
22167
abe2eb5b
CR
22168cat >>confdefs.h <<_ACEOF
22169#define SIZEOF_LONG $ac_cv_sizeof_long
c920c360 22170_ACEOF
f73dda09 22171
c920c360 22172
abe2eb5b
CR
22173# The cast to long int works around a bug in the HP C Compiler
22174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22176# This bug is HP SR number 8606223364.
22177{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
22178$as_echo_n "checking size of char *... " >&6; }
22179if test "${ac_cv_sizeof_char_p+set}" = set; then
7610e0c5
CR
22180 $as_echo_n "(cached) " >&6
22181else
abe2eb5b
CR
22182 if test "$cross_compiling" = yes; then
22183 # Depending upon the size, compute the lo and hi bounds.
22184cat >conftest.$ac_ext <<_ACEOF
22185/* confdefs.h. */
22186_ACEOF
22187cat confdefs.h >>conftest.$ac_ext
22188cat >>conftest.$ac_ext <<_ACEOF
e3db237e
CR
22189/* end confdefs.h. */
22190$ac_includes_default
22191int
22192main ()
22193{
abe2eb5b
CR
22194static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
22195test_array [0] = 0
2dead0c4 22196
abe2eb5b
CR
22197 ;
22198 return 0;
22199}
22200_ACEOF
22201rm -f conftest.$ac_objext
22202if { (ac_try="$ac_compile"
22203case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206esac
22207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22208$as_echo "$ac_try_echo") >&5
22209 (eval "$ac_compile") 2>conftest.er1
22210 ac_status=$?
22211 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1
22213 cat conftest.err >&5
22214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } && {
22216 test -z "$ac_c_werror_flag" ||
22217 test ! -s conftest.err
22218 } && test -s conftest.$ac_objext; then
22219 ac_lo=0 ac_mid=0
22220 while :; do
22221 cat >conftest.$ac_ext <<_ACEOF
22222/* confdefs.h. */
22223_ACEOF
22224cat confdefs.h >>conftest.$ac_ext
22225cat >>conftest.$ac_ext <<_ACEOF
22226/* end confdefs.h. */
22227$ac_includes_default
22228int
22229main ()
22230{
22231static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22232test_array [0] = 0
2dead0c4 22233
abe2eb5b 22234 ;
e3db237e
CR
22235 return 0;
22236}
22237_ACEOF
abe2eb5b
CR
22238rm -f conftest.$ac_objext
22239if { (ac_try="$ac_compile"
22240case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22243esac
22244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22245$as_echo "$ac_try_echo") >&5
22246 (eval "$ac_compile") 2>conftest.er1
22247 ac_status=$?
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
22251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest.$ac_objext; then
22256 ac_hi=$ac_mid; break
7610e0c5 22257else
abe2eb5b
CR
22258 $as_echo "$as_me: failed program was:" >&5
22259sed 's/^/| /' conftest.$ac_ext >&5
d166f048 22260
abe2eb5b
CR
22261 ac_lo=`expr $ac_mid + 1`
22262 if test $ac_lo -le $ac_mid; then
22263 ac_lo= ac_hi=
22264 break
22265 fi
22266 ac_mid=`expr 2 '*' $ac_mid + 1`
71412226 22267fi
5e4a95c7 22268
abe2eb5b
CR
22269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270 done
22271else
22272 $as_echo "$as_me: failed program was:" >&5
22273sed 's/^/| /' conftest.$ac_ext >&5
b709b946 22274
abe2eb5b
CR
22275 cat >conftest.$ac_ext <<_ACEOF
22276/* confdefs.h. */
2dead0c4 22277_ACEOF
abe2eb5b
CR
22278cat confdefs.h >>conftest.$ac_ext
22279cat >>conftest.$ac_ext <<_ACEOF
22280/* end confdefs.h. */
22281$ac_includes_default
22282int
22283main ()
22284{
22285static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
22286test_array [0] = 0
f73dda09 22287
abe2eb5b
CR
22288 ;
22289 return 0;
22290}
22291_ACEOF
22292rm -f conftest.$ac_objext
22293if { (ac_try="$ac_compile"
22294case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297esac
22298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299$as_echo "$ac_try_echo") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_hi=-1 ac_mid=-1
22311 while :; do
22312 cat >conftest.$ac_ext <<_ACEOF
22313/* confdefs.h. */
22314_ACEOF
22315cat confdefs.h >>conftest.$ac_ext
22316cat >>conftest.$ac_ext <<_ACEOF
22317/* end confdefs.h. */
22318$ac_includes_default
22319int
22320main ()
22321{
22322static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
22323test_array [0] = 0
c920c360 22324
abe2eb5b
CR
22325 ;
22326 return 0;
22327}
22328_ACEOF
22329rm -f conftest.$ac_objext
22330if { (ac_try="$ac_compile"
22331case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334esac
22335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22336$as_echo "$ac_try_echo") >&5
22337 (eval "$ac_compile") 2>conftest.er1
22338 ac_status=$?
22339 grep -v '^ *+' conftest.er1 >conftest.err
22340 rm -f conftest.er1
22341 cat conftest.err >&5
22342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest.$ac_objext; then
22347 ac_lo=$ac_mid; break
22348else
22349 $as_echo "$as_me: failed program was:" >&5
22350sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22351
abe2eb5b
CR
22352 ac_hi=`expr '(' $ac_mid ')' - 1`
22353 if test $ac_mid -le $ac_hi; then
22354 ac_lo= ac_hi=
22355 break
22356 fi
22357 ac_mid=`expr 2 '*' $ac_mid`
e3db237e 22358fi
b709b946 22359
abe2eb5b
CR
22360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 done
22362else
22363 $as_echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22365
abe2eb5b
CR
22366 ac_lo= ac_hi=
22367fi
2dead0c4 22368
abe2eb5b
CR
22369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370fi
2dead0c4 22371
abe2eb5b
CR
22372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373# Binary search between lo and hi bounds.
22374while test "x$ac_lo" != "x$ac_hi"; do
22375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22376 cat >conftest.$ac_ext <<_ACEOF
22377/* confdefs.h. */
22378_ACEOF
22379cat confdefs.h >>conftest.$ac_ext
22380cat >>conftest.$ac_ext <<_ACEOF
22381/* end confdefs.h. */
22382$ac_includes_default
22383int
22384main ()
22385{
22386static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
22387test_array [0] = 0
2dead0c4 22388
abe2eb5b
CR
22389 ;
22390 return 0;
22391}
71412226 22392_ACEOF
abe2eb5b
CR
22393rm -f conftest.$ac_objext
22394if { (ac_try="$ac_compile"
22395case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400$as_echo "$ac_try_echo") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22402 ac_status=$?
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 ac_hi=$ac_mid
22412else
22413 $as_echo "$as_me: failed program was:" >&5
22414sed 's/^/| /' conftest.$ac_ext >&5
d166f048 22415
abe2eb5b 22416 ac_lo=`expr '(' $ac_mid ')' + 1`
d166f048 22417fi
b709b946 22418
abe2eb5b 22419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 22420done
abe2eb5b
CR
22421case $ac_lo in
22422?*) ac_cv_sizeof_char_p=$ac_lo;;
22423'') if test "$ac_cv_type_char_p" = yes; then
22424 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22426{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22427See \`config.log' for more details." >&5
22428$as_echo "$as_me: error: cannot compute sizeof (char *)
22429See \`config.log' for more details." >&2;}
22430 { (exit 77); exit 77; }; }; }
22431 else
22432 ac_cv_sizeof_char_p=0
22433 fi ;;
22434esac
22435else
22436 cat >conftest.$ac_ext <<_ACEOF
22437/* confdefs.h. */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h. */
22442$ac_includes_default
22443static long int longval () { return (long int) (sizeof (char *)); }
22444static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
22445#include <stdio.h>
22446#include <stdlib.h>
22447int
22448main ()
22449{
2dead0c4 22450
abe2eb5b
CR
22451 FILE *f = fopen ("conftest.val", "w");
22452 if (! f)
22453 return 1;
22454 if (((long int) (sizeof (char *))) < 0)
22455 {
22456 long int i = longval ();
22457 if (i != ((long int) (sizeof (char *))))
22458 return 1;
22459 fprintf (f, "%ld", i);
22460 }
22461 else
22462 {
22463 unsigned long int i = ulongval ();
22464 if (i != ((long int) (sizeof (char *))))
22465 return 1;
22466 fprintf (f, "%lu", i);
22467 }
22468 /* Do not output a trailing newline, as this causes \r\n confusion
22469 on some platforms. */
22470 return ferror (f) || fclose (f) != 0;
22471
22472 ;
22473 return 0;
22474}
2dead0c4 22475_ACEOF
abe2eb5b
CR
22476rm -f conftest$ac_exeext
22477if { (ac_try="$ac_link"
22478case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22481esac
22482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22483$as_echo "$ac_try_echo") >&5
22484 (eval "$ac_link") 2>&5
22485 ac_status=$?
22486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22488 { (case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22491esac
22492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22493$as_echo "$ac_try_echo") >&5
22494 (eval "$ac_try") 2>&5
22495 ac_status=$?
22496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ac_cv_sizeof_char_p=`cat conftest.val`
22499else
22500 $as_echo "$as_me: program exited with status $ac_status" >&5
22501$as_echo "$as_me: failed program was:" >&5
22502sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22503
abe2eb5b
CR
22504( exit $ac_status )
22505if test "$ac_cv_type_char_p" = yes; then
22506 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22508{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
22509See \`config.log' for more details." >&5
22510$as_echo "$as_me: error: cannot compute sizeof (char *)
22511See \`config.log' for more details." >&2;}
22512 { (exit 77); exit 77; }; }; }
22513 else
22514 ac_cv_sizeof_char_p=0
22515 fi
22516fi
22517rm -rf conftest.dSYM
22518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22519fi
22520rm -f conftest.val
e3db237e 22521fi
abe2eb5b
CR
22522{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
22523$as_echo "$ac_cv_sizeof_char_p" >&6; }
e3db237e 22524
c920c360 22525
abe2eb5b
CR
22526
22527cat >>confdefs.h <<_ACEOF
22528#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2dead0c4 22529_ACEOF
c920c360 22530
d166f048 22531
abe2eb5b
CR
22532# The cast to long int works around a bug in the HP C Compiler
22533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22535# This bug is HP SR number 8606223364.
22536{ $as_echo "$as_me:$LINENO: checking size of double" >&5
22537$as_echo_n "checking size of double... " >&6; }
22538if test "${ac_cv_sizeof_double+set}" = set; then
22539 $as_echo_n "(cached) " >&6
22540else
22541 if test "$cross_compiling" = yes; then
22542 # Depending upon the size, compute the lo and hi bounds.
22543cat >conftest.$ac_ext <<_ACEOF
22544/* confdefs.h. */
22545_ACEOF
22546cat confdefs.h >>conftest.$ac_ext
22547cat >>conftest.$ac_ext <<_ACEOF
22548/* end confdefs.h. */
22549$ac_includes_default
22550int
22551main ()
22552{
22553static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
22554test_array [0] = 0
2dead0c4 22555
abe2eb5b
CR
22556 ;
22557 return 0;
22558}
22559_ACEOF
22560rm -f conftest.$ac_objext
22561if { (ac_try="$ac_compile"
22562case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565esac
22566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22567$as_echo "$ac_try_echo") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.$ac_objext; then
22578 ac_lo=0 ac_mid=0
22579 while :; do
22580 cat >conftest.$ac_ext <<_ACEOF
22581/* confdefs.h. */
22582_ACEOF
22583cat confdefs.h >>conftest.$ac_ext
22584cat >>conftest.$ac_ext <<_ACEOF
22585/* end confdefs.h. */
22586$ac_includes_default
22587int
22588main ()
22589{
22590static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22591test_array [0] = 0
71412226 22592
abe2eb5b
CR
22593 ;
22594 return 0;
22595}
22596_ACEOF
22597rm -f conftest.$ac_objext
22598if { (ac_try="$ac_compile"
22599case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22602esac
22603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22604$as_echo "$ac_try_echo") >&5
22605 (eval "$ac_compile") 2>conftest.er1
22606 ac_status=$?
22607 grep -v '^ *+' conftest.er1 >conftest.err
22608 rm -f conftest.er1
22609 cat conftest.err >&5
22610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } && {
22612 test -z "$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22614 } && test -s conftest.$ac_objext; then
22615 ac_hi=$ac_mid; break
22616else
22617 $as_echo "$as_me: failed program was:" >&5
22618sed 's/^/| /' conftest.$ac_ext >&5
d166f048 22619
abe2eb5b
CR
22620 ac_lo=`expr $ac_mid + 1`
22621 if test $ac_lo -le $ac_mid; then
22622 ac_lo= ac_hi=
22623 break
22624 fi
22625 ac_mid=`expr 2 '*' $ac_mid + 1`
d166f048
JA
22626fi
22627
abe2eb5b
CR
22628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629 done
22630else
22631 $as_echo "$as_me: failed program was:" >&5
22632sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22633
abe2eb5b
CR
22634 cat >conftest.$ac_ext <<_ACEOF
22635/* confdefs.h. */
22636_ACEOF
22637cat confdefs.h >>conftest.$ac_ext
22638cat >>conftest.$ac_ext <<_ACEOF
22639/* end confdefs.h. */
22640$ac_includes_default
22641int
22642main ()
22643{
22644static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
22645test_array [0] = 0
22646
22647 ;
22648 return 0;
22649}
22650_ACEOF
22651rm -f conftest.$ac_objext
22652if { (ac_try="$ac_compile"
22653case "(($ac_try" in
22654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655 *) ac_try_echo=$ac_try;;
22656esac
22657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22658$as_echo "$ac_try_echo") >&5
22659 (eval "$ac_compile") 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } && {
22666 test -z "$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 } && test -s conftest.$ac_objext; then
22669 ac_hi=-1 ac_mid=-1
22670 while :; do
22671 cat >conftest.$ac_ext <<_ACEOF
22672/* confdefs.h. */
22673_ACEOF
22674cat confdefs.h >>conftest.$ac_ext
22675cat >>conftest.$ac_ext <<_ACEOF
22676/* end confdefs.h. */
22677$ac_includes_default
22678int
22679main ()
22680{
22681static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
22682test_array [0] = 0
71412226 22683
abe2eb5b
CR
22684 ;
22685 return 0;
22686}
22687_ACEOF
22688rm -f conftest.$ac_objext
22689if { (ac_try="$ac_compile"
22690case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22693esac
22694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22695$as_echo "$ac_try_echo") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22706 ac_lo=$ac_mid; break
22707else
22708 $as_echo "$as_me: failed program was:" >&5
22709sed 's/^/| /' conftest.$ac_ext >&5
5e4a95c7 22710
abe2eb5b
CR
22711 ac_hi=`expr '(' $ac_mid ')' - 1`
22712 if test $ac_mid -le $ac_hi; then
22713 ac_lo= ac_hi=
22714 break
22715 fi
22716 ac_mid=`expr 2 '*' $ac_mid`
d166f048 22717fi
b709b946 22718
abe2eb5b
CR
22719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 done
22721else
22722 $as_echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22724
abe2eb5b 22725 ac_lo= ac_hi=
2dead0c4
CR
22726fi
22727
abe2eb5b 22728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4
CR
22729fi
22730
abe2eb5b
CR
22731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732# Binary search between lo and hi bounds.
22733while test "x$ac_lo" != "x$ac_hi"; do
22734 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22735 cat >conftest.$ac_ext <<_ACEOF
22736/* confdefs.h. */
22737_ACEOF
22738cat confdefs.h >>conftest.$ac_ext
22739cat >>conftest.$ac_ext <<_ACEOF
22740/* end confdefs.h. */
22741$ac_includes_default
22742int
22743main ()
22744{
22745static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
22746test_array [0] = 0
2dead0c4 22747
abe2eb5b
CR
22748 ;
22749 return 0;
22750}
22751_ACEOF
22752rm -f conftest.$ac_objext
22753if { (ac_try="$ac_compile"
22754case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
e3db237e 22757esac
abe2eb5b
CR
22758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22759$as_echo "$ac_try_echo") >&5
22760 (eval "$ac_compile") 2>conftest.er1
22761 ac_status=$?
22762 grep -v '^ *+' conftest.er1 >conftest.err
22763 rm -f conftest.er1
22764 cat conftest.err >&5
22765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && {
22767 test -z "$ac_c_werror_flag" ||
22768 test ! -s conftest.err
22769 } && test -s conftest.$ac_objext; then
22770 ac_hi=$ac_mid
22771else
22772 $as_echo "$as_me: failed program was:" >&5
22773sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 22774
abe2eb5b 22775 ac_lo=`expr '(' $ac_mid ')' + 1`
d166f048 22776fi
e3db237e 22777
abe2eb5b
CR
22778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22779done
22780case $ac_lo in
22781?*) ac_cv_sizeof_double=$ac_lo;;
22782'') if test "$ac_cv_type_double" = yes; then
22783 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22785{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22786See \`config.log' for more details." >&5
22787$as_echo "$as_me: error: cannot compute sizeof (double)
22788See \`config.log' for more details." >&2;}
22789 { (exit 77); exit 77; }; }; }
22790 else
22791 ac_cv_sizeof_double=0
22792 fi ;;
22793esac
22794else
22795 cat >conftest.$ac_ext <<_ACEOF
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801$ac_includes_default
22802static long int longval () { return (long int) (sizeof (double)); }
22803static unsigned long int ulongval () { return (long int) (sizeof (double)); }
22804#include <stdio.h>
22805#include <stdlib.h>
22806int
22807main ()
22808{
e3db237e 22809
abe2eb5b
CR
22810 FILE *f = fopen ("conftest.val", "w");
22811 if (! f)
22812 return 1;
22813 if (((long int) (sizeof (double))) < 0)
22814 {
22815 long int i = longval ();
22816 if (i != ((long int) (sizeof (double))))
22817 return 1;
22818 fprintf (f, "%ld", i);
22819 }
22820 else
22821 {
22822 unsigned long int i = ulongval ();
22823 if (i != ((long int) (sizeof (double))))
22824 return 1;
22825 fprintf (f, "%lu", i);
22826 }
22827 /* Do not output a trailing newline, as this causes \r\n confusion
22828 on some platforms. */
22829 return ferror (f) || fclose (f) != 0;
e3db237e 22830
abe2eb5b
CR
22831 ;
22832 return 0;
22833}
22834_ACEOF
22835rm -f conftest$ac_exeext
22836if { (ac_try="$ac_link"
22837case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840esac
22841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22842$as_echo "$ac_try_echo") >&5
22843 (eval "$ac_link") 2>&5
22844 ac_status=$?
22845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22847 { (case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850esac
22851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22852$as_echo "$ac_try_echo") >&5
22853 (eval "$ac_try") 2>&5
22854 ac_status=$?
22855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 ac_cv_sizeof_double=`cat conftest.val`
22858else
22859 $as_echo "$as_me: program exited with status $ac_status" >&5
22860$as_echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22862
abe2eb5b
CR
22863( exit $ac_status )
22864if test "$ac_cv_type_double" = yes; then
22865 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22867{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
22868See \`config.log' for more details." >&5
22869$as_echo "$as_me: error: cannot compute sizeof (double)
22870See \`config.log' for more details." >&2;}
22871 { (exit 77); exit 77; }; }; }
22872 else
22873 ac_cv_sizeof_double=0
22874 fi
7610e0c5 22875fi
abe2eb5b
CR
22876rm -rf conftest.dSYM
22877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7610e0c5 22878fi
abe2eb5b 22879rm -f conftest.val
2dead0c4 22880fi
abe2eb5b
CR
22881{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
22882$as_echo "$ac_cv_sizeof_double" >&6; }
2dead0c4 22883
2dead0c4 22884
2dead0c4 22885
abe2eb5b
CR
22886cat >>confdefs.h <<_ACEOF
22887#define SIZEOF_DOUBLE $ac_cv_sizeof_double
22888_ACEOF
d166f048 22889
d166f048 22890
abe2eb5b
CR
22891# The cast to long int works around a bug in the HP C Compiler
22892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22894# This bug is HP SR number 8606223364.
22895{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
22896$as_echo_n "checking size of long long... " >&6; }
22897if test "${ac_cv_sizeof_long_long+set}" = set; then
22898 $as_echo_n "(cached) " >&6
22899else
22900 if test "$cross_compiling" = yes; then
22901 # Depending upon the size, compute the lo and hi bounds.
22902cat >conftest.$ac_ext <<_ACEOF
22903/* confdefs.h. */
22904_ACEOF
22905cat confdefs.h >>conftest.$ac_ext
22906cat >>conftest.$ac_ext <<_ACEOF
22907/* end confdefs.h. */
22908$ac_includes_default
22909int
22910main ()
22911{
22912static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
22913test_array [0] = 0
2dead0c4 22914
abe2eb5b
CR
22915 ;
22916 return 0;
22917}
22918_ACEOF
22919rm -f conftest.$ac_objext
22920if { (ac_try="$ac_compile"
22921case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22924esac
22925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22926$as_echo "$ac_try_echo") >&5
22927 (eval "$ac_compile") 2>conftest.er1
22928 ac_status=$?
22929 grep -v '^ *+' conftest.er1 >conftest.err
22930 rm -f conftest.er1
22931 cat conftest.err >&5
22932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); } && {
22934 test -z "$ac_c_werror_flag" ||
22935 test ! -s conftest.err
22936 } && test -s conftest.$ac_objext; then
22937 ac_lo=0 ac_mid=0
22938 while :; do
22939 cat >conftest.$ac_ext <<_ACEOF
22940/* confdefs.h. */
22941_ACEOF
22942cat confdefs.h >>conftest.$ac_ext
22943cat >>conftest.$ac_ext <<_ACEOF
22944/* end confdefs.h. */
22945$ac_includes_default
22946int
22947main ()
22948{
22949static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
22950test_array [0] = 0
2dead0c4 22951
abe2eb5b
CR
22952 ;
22953 return 0;
22954}
22955_ACEOF
22956rm -f conftest.$ac_objext
22957if { (ac_try="$ac_compile"
22958case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
2dead0c4 22961esac
abe2eb5b
CR
22962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22963$as_echo "$ac_try_echo") >&5
22964 (eval "$ac_compile") 2>conftest.er1
22965 ac_status=$?
22966 grep -v '^ *+' conftest.er1 >conftest.err
22967 rm -f conftest.er1
22968 cat conftest.err >&5
22969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && {
22971 test -z "$ac_c_werror_flag" ||
22972 test ! -s conftest.err
22973 } && test -s conftest.$ac_objext; then
22974 ac_hi=$ac_mid; break
22975else
22976 $as_echo "$as_me: failed program was:" >&5
22977sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22978
abe2eb5b
CR
22979 ac_lo=`expr $ac_mid + 1`
22980 if test $ac_lo -le $ac_mid; then
22981 ac_lo= ac_hi=
22982 break
22983 fi
22984 ac_mid=`expr 2 '*' $ac_mid + 1`
2dead0c4
CR
22985fi
22986
abe2eb5b
CR
22987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 done
22989else
22990 $as_echo "$as_me: failed program was:" >&5
22991sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 22992
abe2eb5b
CR
22993 cat >conftest.$ac_ext <<_ACEOF
22994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
22999$ac_includes_default
23000int
23001main ()
23002{
23003static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
23004test_array [0] = 0
2dead0c4 23005
abe2eb5b
CR
23006 ;
23007 return 0;
23008}
23009_ACEOF
23010rm -f conftest.$ac_objext
23011if { (ac_try="$ac_compile"
23012case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23015esac
23016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23017$as_echo "$ac_try_echo") >&5
23018 (eval "$ac_compile") 2>conftest.er1
23019 ac_status=$?
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
23023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && {
23025 test -z "$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23027 } && test -s conftest.$ac_objext; then
23028 ac_hi=-1 ac_mid=-1
23029 while :; do
23030 cat >conftest.$ac_ext <<_ACEOF
23031/* confdefs.h. */
23032_ACEOF
23033cat confdefs.h >>conftest.$ac_ext
23034cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 23035/* end confdefs.h. */
abe2eb5b 23036$ac_includes_default
7610e0c5
CR
23037int
23038main ()
23039{
abe2eb5b
CR
23040static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
23041test_array [0] = 0
23042
7610e0c5
CR
23043 ;
23044 return 0;
23045}
23046_ACEOF
abe2eb5b
CR
23047rm -f conftest.$ac_objext
23048if { (ac_try="$ac_compile"
23049case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052esac
23053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23054$as_echo "$ac_try_echo") >&5
23055 (eval "$ac_compile") 2>conftest.er1
23056 ac_status=$?
23057 grep -v '^ *+' conftest.er1 >conftest.err
23058 rm -f conftest.er1
23059 cat conftest.err >&5
23060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); } && {
23062 test -z "$ac_c_werror_flag" ||
23063 test ! -s conftest.err
23064 } && test -s conftest.$ac_objext; then
23065 ac_lo=$ac_mid; break
71412226 23066else
abe2eb5b
CR
23067 $as_echo "$as_me: failed program was:" >&5
23068sed 's/^/| /' conftest.$ac_ext >&5
e8ce775d 23069
abe2eb5b
CR
23070 ac_hi=`expr '(' $ac_mid ')' - 1`
23071 if test $ac_mid -le $ac_hi; then
23072 ac_lo= ac_hi=
23073 break
23074 fi
23075 ac_mid=`expr 2 '*' $ac_mid`
e8ce775d 23076fi
71412226 23077
abe2eb5b
CR
23078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 done
23080else
23081 $as_echo "$as_me: failed program was:" >&5
23082sed 's/^/| /' conftest.$ac_ext >&5
c920c360 23083
abe2eb5b 23084 ac_lo= ac_hi=
ccc6cda3 23085fi
cce855bc 23086
abe2eb5b
CR
23087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088fi
71412226 23089
abe2eb5b
CR
23090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091# Binary search between lo and hi bounds.
23092while test "x$ac_lo" != "x$ac_hi"; do
23093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23094 cat >conftest.$ac_ext <<_ACEOF
23095/* confdefs.h. */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23099/* end confdefs.h. */
abe2eb5b 23100$ac_includes_default
e3db237e
CR
23101int
23102main ()
23103{
abe2eb5b
CR
23104static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
23105test_array [0] = 0
23106
e3db237e
CR
23107 ;
23108 return 0;
23109}
23110_ACEOF
abe2eb5b
CR
23111rm -f conftest.$ac_objext
23112if { (ac_try="$ac_compile"
23113case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116esac
23117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23118$as_echo "$ac_try_echo") >&5
23119 (eval "$ac_compile") 2>conftest.er1
23120 ac_status=$?
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
23124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } && {
23126 test -z "$ac_c_werror_flag" ||
23127 test ! -s conftest.err
23128 } && test -s conftest.$ac_objext; then
23129 ac_hi=$ac_mid
2dead0c4 23130else
abe2eb5b
CR
23131 $as_echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 23133
abe2eb5b 23134 ac_lo=`expr '(' $ac_mid ')' + 1`
2dead0c4
CR
23135fi
23136
abe2eb5b
CR
23137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138done
23139case $ac_lo in
23140?*) ac_cv_sizeof_long_long=$ac_lo;;
23141'') if test "$ac_cv_type_long_long" = yes; then
23142 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23144{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23145See \`config.log' for more details." >&5
23146$as_echo "$as_me: error: cannot compute sizeof (long long)
23147See \`config.log' for more details." >&2;}
23148 { (exit 77); exit 77; }; }; }
23149 else
23150 ac_cv_sizeof_long_long=0
23151 fi ;;
23152esac
2dead0c4 23153else
abe2eb5b
CR
23154 cat >conftest.$ac_ext <<_ACEOF
23155/* confdefs.h. */
23156_ACEOF
23157cat confdefs.h >>conftest.$ac_ext
23158cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23159/* end confdefs.h. */
abe2eb5b
CR
23160$ac_includes_default
23161static long int longval () { return (long int) (sizeof (long long)); }
23162static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
23163#include <stdio.h>
23164#include <stdlib.h>
e3db237e
CR
23165int
23166main ()
23167{
2dead0c4 23168
abe2eb5b
CR
23169 FILE *f = fopen ("conftest.val", "w");
23170 if (! f)
23171 return 1;
23172 if (((long int) (sizeof (long long))) < 0)
23173 {
23174 long int i = longval ();
23175 if (i != ((long int) (sizeof (long long))))
23176 return 1;
23177 fprintf (f, "%ld", i);
23178 }
23179 else
23180 {
23181 unsigned long int i = ulongval ();
23182 if (i != ((long int) (sizeof (long long))))
23183 return 1;
23184 fprintf (f, "%lu", i);
23185 }
23186 /* Do not output a trailing newline, as this causes \r\n confusion
23187 on some platforms. */
23188 return ferror (f) || fclose (f) != 0;
2dead0c4 23189
e3db237e
CR
23190 ;
23191 return 0;
23192}
23193_ACEOF
abe2eb5b
CR
23194rm -f conftest$ac_exeext
23195if { (ac_try="$ac_link"
23196case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23199esac
23200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23201$as_echo "$ac_try_echo") >&5
23202 (eval "$ac_link") 2>&5
23203 ac_status=$?
23204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23206 { (case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209esac
23210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23211$as_echo "$ac_try_echo") >&5
23212 (eval "$ac_try") 2>&5
23213 ac_status=$?
23214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; }; then
23216 ac_cv_sizeof_long_long=`cat conftest.val`
71412226 23217else
abe2eb5b
CR
23218 $as_echo "$as_me: program exited with status $ac_status" >&5
23219$as_echo "$as_me: failed program was:" >&5
23220sed 's/^/| /' conftest.$ac_ext >&5
23221
23222( exit $ac_status )
23223if test "$ac_cv_type_long_long" = yes; then
23224 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23226{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23227See \`config.log' for more details." >&5
23228$as_echo "$as_me: error: cannot compute sizeof (long long)
23229See \`config.log' for more details." >&2;}
23230 { (exit 77); exit 77; }; }; }
23231 else
23232 ac_cv_sizeof_long_long=0
23233 fi
2dead0c4 23234fi
abe2eb5b
CR
23235rm -rf conftest.dSYM
23236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2dead0c4 23237fi
abe2eb5b
CR
23238rm -f conftest.val
23239fi
23240{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23241$as_echo "$ac_cv_sizeof_long_long" >&6; }
2dead0c4 23242
c920c360 23243
ccc6cda3 23244
abe2eb5b
CR
23245cat >>confdefs.h <<_ACEOF
23246#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23247_ACEOF
23248
23249
23250
23251{ $as_echo "$as_me:$LINENO: checking for u_int" >&5
23252$as_echo_n "checking for u_int... " >&6; }
23253if test "${ac_cv_type_u_int+set}" = set; then
2dead0c4 23254 $as_echo_n "(cached) " >&6
ccc6cda3 23255else
abe2eb5b
CR
23256 ac_cv_type_u_int=no
23257cat >conftest.$ac_ext <<_ACEOF
23258/* confdefs.h. */
23259_ACEOF
23260cat confdefs.h >>conftest.$ac_ext
23261cat >>conftest.$ac_ext <<_ACEOF
2dead0c4 23262/* end confdefs.h. */
abe2eb5b 23263$ac_includes_default
2dead0c4
CR
23264int
23265main ()
23266{
abe2eb5b
CR
23267if (sizeof (u_int))
23268 return 0;
2dead0c4
CR
23269 ;
23270 return 0;
23271}
23272_ACEOF
abe2eb5b
CR
23273rm -f conftest.$ac_objext
23274if { (ac_try="$ac_compile"
23275case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23278esac
23279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23280$as_echo "$ac_try_echo") >&5
23281 (eval "$ac_compile") 2>conftest.er1
23282 ac_status=$?
23283 grep -v '^ *+' conftest.er1 >conftest.err
23284 rm -f conftest.er1
23285 cat conftest.err >&5
23286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } && {
23288 test -z "$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23290 } && test -s conftest.$ac_objext; then
23291 cat >conftest.$ac_ext <<_ACEOF
23292/* confdefs.h. */
23293_ACEOF
23294cat confdefs.h >>conftest.$ac_ext
23295cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23296/* end confdefs.h. */
abe2eb5b 23297$ac_includes_default
e3db237e
CR
23298int
23299main ()
23300{
abe2eb5b
CR
23301if (sizeof ((u_int)))
23302 return 0;
e3db237e
CR
23303 ;
23304 return 0;
23305}
23306_ACEOF
abe2eb5b
CR
23307rm -f conftest.$ac_objext
23308if { (ac_try="$ac_compile"
23309case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23312esac
23313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23314$as_echo "$ac_try_echo") >&5
23315 (eval "$ac_compile") 2>conftest.er1
23316 ac_status=$?
23317 grep -v '^ *+' conftest.er1 >conftest.err
23318 rm -f conftest.er1
23319 cat conftest.err >&5
23320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && {
23322 test -z "$ac_c_werror_flag" ||
23323 test ! -s conftest.err
23324 } && test -s conftest.$ac_objext; then
23325 :
2dead0c4 23326else
abe2eb5b
CR
23327 $as_echo "$as_me: failed program was:" >&5
23328sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 23329
abe2eb5b 23330 ac_cv_type_u_int=yes
2dead0c4
CR
23331fi
23332
abe2eb5b 23333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 23334else
abe2eb5b
CR
23335 $as_echo "$as_me: failed program was:" >&5
23336sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 23337
7610e0c5 23338
ccc6cda3 23339fi
2dead0c4 23340
abe2eb5b 23341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 23342fi
abe2eb5b
CR
23343{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
23344$as_echo "$ac_cv_type_u_int" >&6; }
23345if test "x$ac_cv_type_u_int" = x""yes; then
23346 :
23347else
c920c360 23348
abe2eb5b
CR
23349cat >>confdefs.h <<_ACEOF
23350#define u_int unsigned int
2dead0c4 23351_ACEOF
c920c360 23352
e3db237e 23353fi
c920c360 23354
abe2eb5b
CR
23355{ $as_echo "$as_me:$LINENO: checking for u_long" >&5
23356$as_echo_n "checking for u_long... " >&6; }
23357if test "${ac_cv_type_u_long+set}" = set; then
c920c360
CR
23358 $as_echo_n "(cached) " >&6
23359else
abe2eb5b
CR
23360 ac_cv_type_u_long=no
23361cat >conftest.$ac_ext <<_ACEOF
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23366/* end confdefs.h. */
abe2eb5b 23367$ac_includes_default
e3db237e
CR
23368int
23369main ()
23370{
abe2eb5b
CR
23371if (sizeof (u_long))
23372 return 0;
e3db237e
CR
23373 ;
23374 return 0;
23375}
23376_ACEOF
abe2eb5b
CR
23377rm -f conftest.$ac_objext
23378if { (ac_try="$ac_compile"
23379case "(($ac_try" in
23380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381 *) ac_try_echo=$ac_try;;
23382esac
23383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23384$as_echo "$ac_try_echo") >&5
23385 (eval "$ac_compile") 2>conftest.er1
23386 ac_status=$?
23387 grep -v '^ *+' conftest.er1 >conftest.err
23388 rm -f conftest.er1
23389 cat conftest.err >&5
23390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); } && {
23392 test -z "$ac_c_werror_flag" ||
23393 test ! -s conftest.err
23394 } && test -s conftest.$ac_objext; then
23395 cat >conftest.$ac_ext <<_ACEOF
23396/* confdefs.h. */
2dead0c4 23397_ACEOF
abe2eb5b
CR
23398cat confdefs.h >>conftest.$ac_ext
23399cat >>conftest.$ac_ext <<_ACEOF
23400/* end confdefs.h. */
23401$ac_includes_default
23402int
23403main ()
23404{
23405if (sizeof ((u_long)))
23406 return 0;
23407 ;
23408 return 0;
23409}
2dead0c4 23410_ACEOF
abe2eb5b
CR
23411rm -f conftest.$ac_objext
23412if { (ac_try="$ac_compile"
23413case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416esac
23417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23418$as_echo "$ac_try_echo") >&5
23419 (eval "$ac_compile") 2>conftest.er1
23420 ac_status=$?
23421 grep -v '^ *+' conftest.er1 >conftest.err
23422 rm -f conftest.er1
23423 cat conftest.err >&5
23424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } && {
23426 test -z "$ac_c_werror_flag" ||
23427 test ! -s conftest.err
23428 } && test -s conftest.$ac_objext; then
23429 :
23430else
23431 $as_echo "$as_me: failed program was:" >&5
23432sed 's/^/| /' conftest.$ac_ext >&5
c920c360 23433
abe2eb5b 23434 ac_cv_type_u_long=yes
e3db237e 23435fi
c920c360 23436
abe2eb5b
CR
23437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438else
23439 $as_echo "$as_me: failed program was:" >&5
23440sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 23441
2dead0c4 23442
2dead0c4 23443fi
71412226 23444
abe2eb5b
CR
23445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446fi
23447{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
23448$as_echo "$ac_cv_type_u_long" >&6; }
23449if test "x$ac_cv_type_u_long" = x""yes; then
23450 :
23451else
23452
e3db237e 23453cat >>confdefs.h <<_ACEOF
abe2eb5b 23454#define u_long unsigned long
e3db237e 23455_ACEOF
71412226 23456
abe2eb5b 23457fi
71412226 23458
71412226 23459
ccc6cda3 23460
abe2eb5b
CR
23461if test "$ac_cv_sizeof_short" = 2; then
23462 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23463$as_echo_n "checking for bits16_t... " >&6; }
23464if test "${ac_cv_type_bits16_t+set}" = set; then
e3db237e
CR
23465 $as_echo_n "(cached) " >&6
23466else
abe2eb5b
CR
23467 ac_cv_type_bits16_t=no
23468cat >conftest.$ac_ext <<_ACEOF
23469/* confdefs.h. */
23470_ACEOF
23471cat confdefs.h >>conftest.$ac_ext
23472cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23473/* end confdefs.h. */
abe2eb5b 23474$ac_includes_default
e3db237e
CR
23475int
23476main ()
23477{
abe2eb5b
CR
23478if (sizeof (bits16_t))
23479 return 0;
e3db237e
CR
23480 ;
23481 return 0;
23482}
f73dda09 23483_ACEOF
abe2eb5b
CR
23484rm -f conftest.$ac_objext
23485if { (ac_try="$ac_compile"
23486case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23489esac
23490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23491$as_echo "$ac_try_echo") >&5
23492 (eval "$ac_compile") 2>conftest.er1
23493 ac_status=$?
23494 grep -v '^ *+' conftest.er1 >conftest.err
23495 rm -f conftest.er1
23496 cat conftest.err >&5
23497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } && {
23499 test -z "$ac_c_werror_flag" ||
23500 test ! -s conftest.err
23501 } && test -s conftest.$ac_objext; then
23502 cat >conftest.$ac_ext <<_ACEOF
23503/* confdefs.h. */
23504_ACEOF
23505cat confdefs.h >>conftest.$ac_ext
23506cat >>conftest.$ac_ext <<_ACEOF
23507/* end confdefs.h. */
23508$ac_includes_default
23509int
23510main ()
23511{
23512if (sizeof ((bits16_t)))
23513 return 0;
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext
23519if { (ac_try="$ac_compile"
23520case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23523esac
23524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23525$as_echo "$ac_try_echo") >&5
23526 (eval "$ac_compile") 2>conftest.er1
23527 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1
23530 cat conftest.err >&5
23531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && {
23533 test -z "$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 } && test -s conftest.$ac_objext; then
23536 :
e3db237e 23537else
abe2eb5b
CR
23538 $as_echo "$as_me: failed program was:" >&5
23539sed 's/^/| /' conftest.$ac_ext >&5
23540
23541 ac_cv_type_bits16_t=yes
e3db237e 23542fi
c920c360 23543
abe2eb5b 23544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23545else
abe2eb5b
CR
23546 $as_echo "$as_me: failed program was:" >&5
23547sed 's/^/| /' conftest.$ac_ext >&5
23548
7610e0c5 23549
2dead0c4 23550fi
c920c360 23551
abe2eb5b 23552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23553fi
abe2eb5b
CR
23554{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23555$as_echo "$ac_cv_type_bits16_t" >&6; }
23556if test "x$ac_cv_type_bits16_t" = x""yes; then
23557 :
23558else
ccc6cda3 23559
abe2eb5b
CR
23560cat >>confdefs.h <<_ACEOF
23561#define bits16_t short
23562_ACEOF
23563
23564fi
23565
23566elif test "$ac_cv_sizeof_char" = 2; then
23567 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23568$as_echo_n "checking for bits16_t... " >&6; }
23569if test "${ac_cv_type_bits16_t+set}" = set; then
e3db237e 23570 $as_echo_n "(cached) " >&6
c920c360 23571else
abe2eb5b
CR
23572 ac_cv_type_bits16_t=no
23573cat >conftest.$ac_ext <<_ACEOF
23574/* confdefs.h. */
23575_ACEOF
23576cat confdefs.h >>conftest.$ac_ext
23577cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23578/* end confdefs.h. */
abe2eb5b 23579$ac_includes_default
e3db237e
CR
23580int
23581main ()
23582{
abe2eb5b
CR
23583if (sizeof (bits16_t))
23584 return 0;
e3db237e
CR
23585 ;
23586 return 0;
23587}
23588_ACEOF
abe2eb5b
CR
23589rm -f conftest.$ac_objext
23590if { (ac_try="$ac_compile"
23591case "(($ac_try" in
23592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593 *) ac_try_echo=$ac_try;;
2dead0c4 23594esac
abe2eb5b
CR
23595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23596$as_echo "$ac_try_echo") >&5
23597 (eval "$ac_compile") 2>conftest.er1
23598 ac_status=$?
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
23602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && {
23604 test -z "$ac_c_werror_flag" ||
23605 test ! -s conftest.err
23606 } && test -s conftest.$ac_objext; then
23607 cat >conftest.$ac_ext <<_ACEOF
23608/* confdefs.h. */
23609_ACEOF
23610cat confdefs.h >>conftest.$ac_ext
23611cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23612/* end confdefs.h. */
abe2eb5b 23613$ac_includes_default
e3db237e
CR
23614int
23615main ()
23616{
abe2eb5b
CR
23617if (sizeof ((bits16_t)))
23618 return 0;
e3db237e
CR
23619 ;
23620 return 0;
23621}
7610e0c5 23622_ACEOF
abe2eb5b
CR
23623rm -f conftest.$ac_objext
23624if { (ac_try="$ac_compile"
23625case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23628esac
23629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23630$as_echo "$ac_try_echo") >&5
23631 (eval "$ac_compile") 2>conftest.er1
23632 ac_status=$?
23633 grep -v '^ *+' conftest.er1 >conftest.err
23634 rm -f conftest.er1
23635 cat conftest.err >&5
23636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } && {
23638 test -z "$ac_c_werror_flag" ||
23639 test ! -s conftest.err
23640 } && test -s conftest.$ac_objext; then
23641 :
e3db237e 23642else
abe2eb5b
CR
23643 $as_echo "$as_me: failed program was:" >&5
23644sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 ac_cv_type_bits16_t=yes
2dead0c4 23647fi
abe2eb5b
CR
23648
23649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e3db237e 23650else
abe2eb5b
CR
23651 $as_echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654
e3db237e 23655fi
c920c360 23656
abe2eb5b 23657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e3db237e 23658fi
abe2eb5b
CR
23659{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23660$as_echo "$ac_cv_type_bits16_t" >&6; }
23661if test "x$ac_cv_type_bits16_t" = x""yes; then
23662 :
23663else
23664
23665cat >>confdefs.h <<_ACEOF
23666#define bits16_t char
23667_ACEOF
71412226 23668
c920c360 23669fi
abe2eb5b 23670
c920c360 23671else
abe2eb5b
CR
23672 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
23673$as_echo_n "checking for bits16_t... " >&6; }
23674if test "${ac_cv_type_bits16_t+set}" = set; then
2dead0c4
CR
23675 $as_echo_n "(cached) " >&6
23676else
abe2eb5b
CR
23677 ac_cv_type_bits16_t=no
23678cat >conftest.$ac_ext <<_ACEOF
23679/* confdefs.h. */
23680_ACEOF
23681cat confdefs.h >>conftest.$ac_ext
23682cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23683/* end confdefs.h. */
abe2eb5b 23684$ac_includes_default
e3db237e
CR
23685int
23686main ()
23687{
abe2eb5b
CR
23688if (sizeof (bits16_t))
23689 return 0;
e3db237e
CR
23690 ;
23691 return 0;
23692}
f73dda09 23693_ACEOF
abe2eb5b
CR
23694rm -f conftest.$ac_objext
23695if { (ac_try="$ac_compile"
23696case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23699esac
23700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23701$as_echo "$ac_try_echo") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 cat >conftest.$ac_ext <<_ACEOF
23713/* confdefs.h. */
23714_ACEOF
23715cat confdefs.h >>conftest.$ac_ext
23716cat >>conftest.$ac_ext <<_ACEOF
23717/* end confdefs.h. */
23718$ac_includes_default
23719int
23720main ()
23721{
23722if (sizeof ((bits16_t)))
23723 return 0;
23724 ;
23725 return 0;
23726}
23727_ACEOF
23728rm -f conftest.$ac_objext
23729if { (ac_try="$ac_compile"
23730case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23733esac
23734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23735$as_echo "$ac_try_echo") >&5
23736 (eval "$ac_compile") 2>conftest.er1
23737 ac_status=$?
23738 grep -v '^ *+' conftest.er1 >conftest.err
23739 rm -f conftest.er1
23740 cat conftest.err >&5
23741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && {
23743 test -z "$ac_c_werror_flag" ||
23744 test ! -s conftest.err
23745 } && test -s conftest.$ac_objext; then
23746 :
e3db237e 23747else
abe2eb5b
CR
23748 $as_echo "$as_me: failed program was:" >&5
23749sed 's/^/| /' conftest.$ac_ext >&5
23750
23751 ac_cv_type_bits16_t=yes
2dead0c4 23752fi
abe2eb5b
CR
23753
23754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 23755else
abe2eb5b
CR
23756 $as_echo "$as_me: failed program was:" >&5
23757sed 's/^/| /' conftest.$ac_ext >&5
23758
c920c360
CR
23759
23760fi
23761
abe2eb5b
CR
23762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23763fi
23764{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
23765$as_echo "$ac_cv_type_bits16_t" >&6; }
23766if test "x$ac_cv_type_bits16_t" = x""yes; then
23767 :
23768else
7610e0c5 23769
abe2eb5b
CR
23770cat >>confdefs.h <<_ACEOF
23771#define bits16_t short
23772_ACEOF
c920c360 23773
ccc6cda3 23774fi
c920c360 23775
ccc6cda3 23776fi
abe2eb5b
CR
23777
23778
23779if test "$ac_cv_sizeof_short" = 2; then
23780 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23781$as_echo_n "checking for u_bits16_t... " >&6; }
23782if test "${ac_cv_type_u_bits16_t+set}" = set; then
e3db237e 23783 $as_echo_n "(cached) " >&6
ccc6cda3 23784else
abe2eb5b
CR
23785 ac_cv_type_u_bits16_t=no
23786cat >conftest.$ac_ext <<_ACEOF
23787/* confdefs.h. */
23788_ACEOF
23789cat confdefs.h >>conftest.$ac_ext
23790cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23791/* end confdefs.h. */
abe2eb5b 23792$ac_includes_default
e3db237e
CR
23793int
23794main ()
23795{
abe2eb5b
CR
23796if (sizeof (u_bits16_t))
23797 return 0;
e3db237e
CR
23798 ;
23799 return 0;
23800}
23801_ACEOF
abe2eb5b
CR
23802rm -f conftest.$ac_objext
23803if { (ac_try="$ac_compile"
23804case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807esac
23808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23809$as_echo "$ac_try_echo") >&5
23810 (eval "$ac_compile") 2>conftest.er1
23811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
23815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest.$ac_objext; then
23820 cat >conftest.$ac_ext <<_ACEOF
23821/* confdefs.h. */
23822_ACEOF
23823cat confdefs.h >>conftest.$ac_ext
23824cat >>conftest.$ac_ext <<_ACEOF
23825/* end confdefs.h. */
23826$ac_includes_default
23827int
23828main ()
23829{
23830if (sizeof ((u_bits16_t)))
23831 return 0;
23832 ;
23833 return 0;
23834}
23835_ACEOF
23836rm -f conftest.$ac_objext
23837if { (ac_try="$ac_compile"
23838case "(($ac_try" in
23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23841esac
23842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23843$as_echo "$ac_try_echo") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23845 ac_status=$?
23846 grep -v '^ *+' conftest.er1 >conftest.err
23847 rm -f conftest.er1
23848 cat conftest.err >&5
23849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23854 :
e3db237e 23855else
abe2eb5b
CR
23856 $as_echo "$as_me: failed program was:" >&5
23857sed 's/^/| /' conftest.$ac_ext >&5
ccc6cda3 23858
abe2eb5b 23859 ac_cv_type_u_bits16_t=yes
2dead0c4 23860fi
a82a04b3 23861
abe2eb5b
CR
23862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863else
23864 $as_echo "$as_me: failed program was:" >&5
23865sed 's/^/| /' conftest.$ac_ext >&5
a82a04b3 23866
f73dda09 23867
c920c360 23868fi
2dead0c4 23869
abe2eb5b
CR
23870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23871fi
23872{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23873$as_echo "$ac_cv_type_u_bits16_t" >&6; }
23874if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23875 :
f73dda09 23876else
7610e0c5 23877
abe2eb5b
CR
23878cat >>confdefs.h <<_ACEOF
23879#define u_bits16_t unsigned short
c920c360 23880_ACEOF
2dead0c4
CR
23881
23882fi
23883
abe2eb5b
CR
23884elif test "$ac_cv_sizeof_char" = 2; then
23885 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23886$as_echo_n "checking for u_bits16_t... " >&6; }
23887if test "${ac_cv_type_u_bits16_t+set}" = set; then
e3db237e
CR
23888 $as_echo_n "(cached) " >&6
23889else
abe2eb5b
CR
23890 ac_cv_type_u_bits16_t=no
23891cat >conftest.$ac_ext <<_ACEOF
23892/* confdefs.h. */
23893_ACEOF
23894cat confdefs.h >>conftest.$ac_ext
23895cat >>conftest.$ac_ext <<_ACEOF
e3db237e
CR
23896/* end confdefs.h. */
23897$ac_includes_default
23898int
23899main ()
23900{
abe2eb5b
CR
23901if (sizeof (u_bits16_t))
23902 return 0;
23903 ;
23904 return 0;
e3db237e
CR
23905}
23906_ACEOF
abe2eb5b
CR
23907rm -f conftest.$ac_objext
23908if { (ac_try="$ac_compile"
23909case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912esac
23913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23914$as_echo "$ac_try_echo") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23916 ac_status=$?
23917 grep -v '^ *+' conftest.er1 >conftest.err
23918 rm -f conftest.er1
23919 cat conftest.err >&5
23920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 cat >conftest.$ac_ext <<_ACEOF
23926/* confdefs.h. */
23927_ACEOF
23928cat confdefs.h >>conftest.$ac_ext
23929cat >>conftest.$ac_ext <<_ACEOF
e3db237e 23930/* end confdefs.h. */
abe2eb5b
CR
23931$ac_includes_default
23932int
23933main ()
23934{
23935if (sizeof ((u_bits16_t)))
23936 return 0;
23937 ;
23938 return 0;
23939}
c920c360 23940_ACEOF
abe2eb5b
CR
23941rm -f conftest.$ac_objext
23942if { (ac_try="$ac_compile"
23943case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23946esac
23947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23948$as_echo "$ac_try_echo") >&5
23949 (eval "$ac_compile") 2>conftest.er1
23950 ac_status=$?
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
23954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && {
23956 test -z "$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 } && test -s conftest.$ac_objext; then
23959 :
e3db237e 23960else
abe2eb5b
CR
23961 $as_echo "$as_me: failed program was:" >&5
23962sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5 23963
abe2eb5b 23964 ac_cv_type_u_bits16_t=yes
f73dda09 23965fi
a82a04b3 23966
abe2eb5b 23967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 23968else
abe2eb5b
CR
23969 $as_echo "$as_me: failed program was:" >&5
23970sed 's/^/| /' conftest.$ac_ext >&5
71412226 23971
f73dda09 23972
c920c360 23973fi
a82a04b3 23974
abe2eb5b
CR
23975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23976fi
23977{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23978$as_echo "$ac_cv_type_u_bits16_t" >&6; }
23979if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23980 :
2dead0c4 23981else
7610e0c5 23982
2dead0c4 23983cat >>confdefs.h <<_ACEOF
abe2eb5b 23984#define u_bits16_t unsigned char
2dead0c4 23985_ACEOF
f73dda09 23986
2dead0c4
CR
23987fi
23988
abe2eb5b
CR
23989else
23990 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23991$as_echo_n "checking for u_bits16_t... " >&6; }
23992if test "${ac_cv_type_u_bits16_t+set}" = set; then
e3db237e
CR
23993 $as_echo_n "(cached) " >&6
23994else
abe2eb5b
CR
23995 ac_cv_type_u_bits16_t=no
23996cat >conftest.$ac_ext <<_ACEOF
23997/* confdefs.h. */
23998_ACEOF
23999cat confdefs.h >>conftest.$ac_ext
24000cat >>conftest.$ac_ext <<_ACEOF
e3db237e 24001/* end confdefs.h. */
abe2eb5b
CR
24002$ac_includes_default
24003int
24004main ()
24005{
24006if (sizeof (u_bits16_t))
24007 return 0;
24008 ;
24009 return 0;
24010}
e3db237e 24011_ACEOF
abe2eb5b
CR
24012rm -f conftest.$ac_objext
24013if { (ac_try="$ac_compile"
24014case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24017esac
24018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24019$as_echo "$ac_try_echo") >&5
24020 (eval "$ac_compile") 2>conftest.er1
24021 ac_status=$?
24022 grep -v '^ *+' conftest.er1 >conftest.err
24023 rm -f conftest.er1
24024 cat conftest.err >&5
24025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } && {
24027 test -z "$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 } && test -s conftest.$ac_objext; then
24030 cat >conftest.$ac_ext <<_ACEOF
24031/* confdefs.h. */
24032_ACEOF
24033cat confdefs.h >>conftest.$ac_ext
24034cat >>conftest.$ac_ext <<_ACEOF
24035/* end confdefs.h. */
24036$ac_includes_default
24037int
24038main ()
24039{
24040if (sizeof ((u_bits16_t)))
24041 return 0;
24042 ;
24043 return 0;
24044}
24045_ACEOF
24046rm -f conftest.$ac_objext
24047if { (ac_try="$ac_compile"
24048case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24051esac
24052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24053$as_echo "$ac_try_echo") >&5
24054 (eval "$ac_compile") 2>conftest.er1
24055 ac_status=$?
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
24059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest.$ac_objext; then
24064 :
e3db237e 24065else
abe2eb5b
CR
24066 $as_echo "$as_me: failed program was:" >&5
24067sed 's/^/| /' conftest.$ac_ext >&5
f73dda09 24068
abe2eb5b 24069 ac_cv_type_u_bits16_t=yes
c920c360 24070fi
7610e0c5 24071
abe2eb5b
CR
24072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24073else
24074 $as_echo "$as_me: failed program was:" >&5
24075sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5 24076
f73dda09 24077
e3db237e 24078fi
2dead0c4 24079
abe2eb5b
CR
24080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24081fi
24082{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
24083$as_echo "$ac_cv_type_u_bits16_t" >&6; }
24084if test "x$ac_cv_type_u_bits16_t" = x""yes; then
24085 :
c920c360 24086else
7610e0c5 24087
c920c360 24088cat >>confdefs.h <<_ACEOF
abe2eb5b 24089#define u_bits16_t unsigned short
c920c360 24090_ACEOF
f73dda09 24091
71412226 24092fi
7610e0c5 24093
abe2eb5b
CR
24094fi
24095
2dead0c4 24096
abe2eb5b
CR
24097if test "$ac_cv_sizeof_int" = 4; then
24098 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24099$as_echo_n "checking for bits32_t... " >&6; }
24100if test "${ac_cv_type_bits32_t+set}" = set; then
24101 $as_echo_n "(cached) " >&6
24102else
24103 ac_cv_type_bits32_t=no
24104cat >conftest.$ac_ext <<_ACEOF
24105/* confdefs.h. */
24106_ACEOF
24107cat confdefs.h >>conftest.$ac_ext
24108cat >>conftest.$ac_ext <<_ACEOF
24109/* end confdefs.h. */
24110$ac_includes_default
24111int
24112main ()
24113{
24114if (sizeof (bits32_t))
24115 return 0;
24116 ;
24117 return 0;
24118}
24119_ACEOF
24120rm -f conftest.$ac_objext
24121if { (ac_try="$ac_compile"
24122case "(($ac_try" in
24123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24125esac
24126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24127$as_echo "$ac_try_echo") >&5
24128 (eval "$ac_compile") 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && {
24135 test -z "$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 } && test -s conftest.$ac_objext; then
24138 cat >conftest.$ac_ext <<_ACEOF
24139/* confdefs.h. */
24140_ACEOF
24141cat confdefs.h >>conftest.$ac_ext
24142cat >>conftest.$ac_ext <<_ACEOF
24143/* end confdefs.h. */
24144$ac_includes_default
24145int
24146main ()
24147{
24148if (sizeof ((bits32_t)))
24149 return 0;
24150 ;
24151 return 0;
24152}
24153_ACEOF
24154rm -f conftest.$ac_objext
24155if { (ac_try="$ac_compile"
24156case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159esac
24160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24161$as_echo "$ac_try_echo") >&5
24162 (eval "$ac_compile") 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } && {
24169 test -z "$ac_c_werror_flag" ||
24170 test ! -s conftest.err
24171 } && test -s conftest.$ac_objext; then
24172 :
c920c360 24173else
abe2eb5b
CR
24174 $as_echo "$as_me: failed program was:" >&5
24175sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 24176
abe2eb5b 24177 ac_cv_type_bits32_t=yes
c920c360 24178fi
71412226 24179
abe2eb5b 24180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c920c360 24181else
abe2eb5b
CR
24182 $as_echo "$as_me: failed program was:" >&5
24183sed 's/^/| /' conftest.$ac_ext >&5
c920c360 24184
71412226 24185
f73dda09 24186fi
71412226 24187
abe2eb5b
CR
24188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24189fi
24190{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24191$as_echo "$ac_cv_type_bits32_t" >&6; }
24192if test "x$ac_cv_type_bits32_t" = x""yes; then
24193 :
ccc6cda3 24194else
c920c360
CR
24195
24196cat >>confdefs.h <<_ACEOF
abe2eb5b 24197#define bits32_t int
f73dda09 24198_ACEOF
7610e0c5 24199
71412226 24200fi
7610e0c5 24201
abe2eb5b
CR
24202elif test "$ac_cv_sizeof_long" = 4; then
24203 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24204$as_echo_n "checking for bits32_t... " >&6; }
24205if test "${ac_cv_type_bits32_t+set}" = set; then
e3db237e
CR
24206 $as_echo_n "(cached) " >&6
24207else
abe2eb5b
CR
24208 ac_cv_type_bits32_t=no
24209cat >conftest.$ac_ext <<_ACEOF
24210/* confdefs.h. */
24211_ACEOF
24212cat confdefs.h >>conftest.$ac_ext
24213cat >>conftest.$ac_ext <<_ACEOF
e3db237e 24214/* end confdefs.h. */
abe2eb5b 24215$ac_includes_default
e3db237e
CR
24216int
24217main ()
24218{
abe2eb5b
CR
24219if (sizeof (bits32_t))
24220 return 0;
e3db237e
CR
24221 ;
24222 return 0;
24223}
24224_ACEOF
abe2eb5b
CR
24225rm -f conftest.$ac_objext
24226if { (ac_try="$ac_compile"
24227case "(($ac_try" in
24228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229 *) ac_try_echo=$ac_try;;
24230esac
24231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24232$as_echo "$ac_try_echo") >&5
24233 (eval "$ac_compile") 2>conftest.er1
24234 ac_status=$?
24235 grep -v '^ *+' conftest.er1 >conftest.err
24236 rm -f conftest.er1
24237 cat conftest.err >&5
24238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } && {
24240 test -z "$ac_c_werror_flag" ||
24241 test ! -s conftest.err
24242 } && test -s conftest.$ac_objext; then
24243 cat >conftest.$ac_ext <<_ACEOF
24244/* confdefs.h. */
24245_ACEOF
24246cat confdefs.h >>conftest.$ac_ext
24247cat >>conftest.$ac_ext <<_ACEOF
e3db237e 24248/* end confdefs.h. */
abe2eb5b 24249$ac_includes_default
e3db237e
CR
24250int
24251main ()
24252{
abe2eb5b
CR
24253if (sizeof ((bits32_t)))
24254 return 0;
e3db237e
CR
24255 ;
24256 return 0;
24257}
24258_ACEOF
abe2eb5b
CR
24259rm -f conftest.$ac_objext
24260if { (ac_try="$ac_compile"
24261case "(($ac_try" in
24262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24263 *) ac_try_echo=$ac_try;;
24264esac
24265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24266$as_echo "$ac_try_echo") >&5
24267 (eval "$ac_compile") 2>conftest.er1
24268 ac_status=$?
24269 grep -v '^ *+' conftest.er1 >conftest.err
24270 rm -f conftest.er1
24271 cat conftest.err >&5
24272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); } && {
24274 test -z "$ac_c_werror_flag" ||
24275 test ! -s conftest.err
24276 } && test -s conftest.$ac_objext; then
24277 :
e3db237e 24278else
abe2eb5b
CR
24279 $as_echo "$as_me: failed program was:" >&5
24280sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 ac_cv_type_bits32_t=yes
71412226 24283fi
abe2eb5b
CR
24284
24285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286else
24287 $as_echo "$as_me: failed program was:" >&5
24288sed 's/^/| /' conftest.$ac_ext >&5
24289
24290
e3db237e 24291fi
c920c360 24292
abe2eb5b 24293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e3db237e 24294fi
abe2eb5b
CR
24295{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24296$as_echo "$ac_cv_type_bits32_t" >&6; }
24297if test "x$ac_cv_type_bits32_t" = x""yes; then
24298 :
24299else
24300
24301cat >>confdefs.h <<_ACEOF
24302#define bits32_t long
24303_ACEOF
5e4a95c7 24304
abe2eb5b 24305fi
f73dda09 24306
abe2eb5b
CR
24307else
24308 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
24309$as_echo_n "checking for bits32_t... " >&6; }
24310if test "${ac_cv_type_bits32_t+set}" = set; then
e3db237e
CR
24311 $as_echo_n "(cached) " >&6
24312else
abe2eb5b
CR
24313 ac_cv_type_bits32_t=no
24314cat >conftest.$ac_ext <<_ACEOF
24315/* confdefs.h. */
24316_ACEOF
24317cat confdefs.h >>conftest.$ac_ext
24318cat >>conftest.$ac_ext <<_ACEOF
e3db237e 24319/* end confdefs.h. */
abe2eb5b 24320$ac_includes_default
e3db237e
CR
24321int
24322main ()
24323{
abe2eb5b
CR
24324if (sizeof (bits32_t))
24325 return 0;
e3db237e
CR
24326 ;
24327 return 0;
24328}
24329_ACEOF
abe2eb5b
CR
24330rm -f conftest.$ac_objext
24331if { (ac_try="$ac_compile"
24332case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335esac
24336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24337$as_echo "$ac_try_echo") >&5
24338 (eval "$ac_compile") 2>conftest.er1
24339 ac_status=$?
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
24343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } && {
24345 test -z "$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 } && test -s conftest.$ac_objext; then
24348 cat >conftest.$ac_ext <<_ACEOF
24349/* confdefs.h. */
f73dda09 24350_ACEOF
abe2eb5b
CR
24351cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF
e3db237e 24353/* end confdefs.h. */
abe2eb5b 24354$ac_includes_default
e3db237e
CR
24355int
24356main ()
24357{
abe2eb5b
CR
24358if (sizeof ((bits32_t)))
24359 return 0;
e3db237e
CR
24360 ;
24361 return 0;
24362}
24363_ACEOF
abe2eb5b
CR
24364rm -f conftest.$ac_objext
24365if { (ac_try="$ac_compile"
24366case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24369esac
24370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24371$as_echo "$ac_try_echo") >&5
24372 (eval "$ac_compile") 2>conftest.er1
24373 ac_status=$?
24374 grep -v '^ *+' conftest.er1 >conftest.err
24375 rm -f conftest.er1
24376 cat conftest.err >&5
24377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest.$ac_objext; then
24382 :
c920c360 24383else
abe2eb5b
CR
24384 $as_echo "$as_me: failed program was:" >&5
24385sed 's/^/| /' conftest.$ac_ext >&5
24386
24387 ac_cv_type_bits32_t=yes
e3db237e 24388fi
2dead0c4 24389
abe2eb5b 24390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71412226 24391else
abe2eb5b
CR
24392 $as_echo "$as_me: failed program was:" >&5
24393sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5 24394
7610e0c5 24395
71412226 24396fi
71412226 24397
abe2eb5b 24398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71412226 24399fi
abe2eb5b
CR
24400{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
24401$as_echo "$ac_cv_type_bits32_t" >&6; }
24402if test "x$ac_cv_type_bits32_t" = x""yes; then
24403 :
2dead0c4 24404else
c920c360 24405
2dead0c4 24406cat >>confdefs.h <<_ACEOF
abe2eb5b 24407#define bits32_t int
5f8cde23 24408_ACEOF
2dead0c4 24409
71412226 24410fi
e3db237e 24411
71412226 24412fi
5f8cde23 24413
c920c360 24414
abe2eb5b
CR
24415if test "$ac_cv_sizeof_int" = 4; then
24416 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24417$as_echo_n "checking for u_bits32_t... " >&6; }
24418if test "${ac_cv_type_u_bits32_t+set}" = set; then
c920c360
CR
24419 $as_echo_n "(cached) " >&6
24420else
abe2eb5b
CR
24421 ac_cv_type_u_bits32_t=no
24422cat >conftest.$ac_ext <<_ACEOF
24423/* confdefs.h. */
24424_ACEOF
24425cat confdefs.h >>conftest.$ac_ext
24426cat >>conftest.$ac_ext <<_ACEOF
24427/* end confdefs.h. */
24428$ac_includes_default
24429int
24430main ()
24431{
24432if (sizeof (u_bits32_t))
24433 return 0;
24434 ;
24435 return 0;
24436}
24437_ACEOF
24438rm -f conftest.$ac_objext
24439if { (ac_try="$ac_compile"
24440case "(($ac_try" in
24441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24443esac
24444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445$as_echo "$ac_try_echo") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24447 ac_status=$?
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
24450 cat conftest.err >&5
24451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24456 cat >conftest.$ac_ext <<_ACEOF
24457/* confdefs.h. */
24458_ACEOF
24459cat confdefs.h >>conftest.$ac_ext
24460cat >>conftest.$ac_ext <<_ACEOF
24461/* end confdefs.h. */
24462$ac_includes_default
24463int
24464main ()
24465{
24466if (sizeof ((u_bits32_t)))
24467 return 0;
24468 ;
24469 return 0;
24470}
24471_ACEOF
24472rm -f conftest.$ac_objext
24473if { (ac_try="$ac_compile"
24474case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24477esac
24478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24479$as_echo "$ac_try_echo") >&5
24480 (eval "$ac_compile") 2>conftest.er1
24481 ac_status=$?
24482 grep -v '^ *+' conftest.er1 >conftest.err
24483 rm -f conftest.er1
24484 cat conftest.err >&5
24485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); } && {
24487 test -z "$ac_c_werror_flag" ||
24488 test ! -s conftest.err
24489 } && test -s conftest.$ac_objext; then
24490 :
c920c360 24491else
abe2eb5b
CR
24492 $as_echo "$as_me: failed program was:" >&5
24493sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 24494
abe2eb5b 24495 ac_cv_type_u_bits32_t=yes
c920c360 24496fi
5f8cde23 24497
abe2eb5b 24498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71412226 24499else
abe2eb5b
CR
24500 $as_echo "$as_me: failed program was:" >&5
24501sed 's/^/| /' conftest.$ac_ext >&5
c920c360 24502
c920c360 24503
2dead0c4 24504fi
2dead0c4 24505
abe2eb5b
CR
24506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24507fi
24508{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24509$as_echo "$ac_cv_type_u_bits32_t" >&6; }
24510if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24511 :
24512else
2dead0c4
CR
24513
24514cat >>confdefs.h <<_ACEOF
abe2eb5b 24515#define u_bits32_t unsigned int
5f8cde23 24516_ACEOF
2dead0c4 24517
abe2eb5b 24518fi
2dead0c4 24519
abe2eb5b
CR
24520elif test "$ac_cv_sizeof_long" = 4; then
24521 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24522$as_echo_n "checking for u_bits32_t... " >&6; }
24523if test "${ac_cv_type_u_bits32_t+set}" = set; then
2dead0c4 24524 $as_echo_n "(cached) " >&6
5f8cde23 24525else
abe2eb5b
CR
24526 ac_cv_type_u_bits32_t=no
24527cat >conftest.$ac_ext <<_ACEOF
24528/* confdefs.h. */
24529_ACEOF
24530cat confdefs.h >>conftest.$ac_ext
24531cat >>conftest.$ac_ext <<_ACEOF
24532/* end confdefs.h. */
24533$ac_includes_default
24534int
24535main ()
24536{
24537if (sizeof (u_bits32_t))
24538 return 0;
24539 ;
24540 return 0;
24541}
24542_ACEOF
24543rm -f conftest.$ac_objext
24544if { (ac_try="$ac_compile"
24545case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548esac
24549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550$as_echo "$ac_try_echo") >&5
24551 (eval "$ac_compile") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && {
24558 test -z "$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest.$ac_objext; then
24561 cat >conftest.$ac_ext <<_ACEOF
24562/* confdefs.h. */
24563_ACEOF
24564cat confdefs.h >>conftest.$ac_ext
24565cat >>conftest.$ac_ext <<_ACEOF
24566/* end confdefs.h. */
24567$ac_includes_default
24568int
24569main ()
24570{
24571if (sizeof ((u_bits32_t)))
24572 return 0;
24573 ;
24574 return 0;
24575}
24576_ACEOF
24577rm -f conftest.$ac_objext
24578if { (ac_try="$ac_compile"
24579case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24582esac
24583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24584$as_echo "$ac_try_echo") >&5
24585 (eval "$ac_compile") 2>conftest.er1
24586 ac_status=$?
24587 grep -v '^ *+' conftest.er1 >conftest.err
24588 rm -f conftest.er1
24589 cat conftest.err >&5
24590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } && {
24592 test -z "$ac_c_werror_flag" ||
24593 test ! -s conftest.err
24594 } && test -s conftest.$ac_objext; then
24595 :
2dead0c4 24596else
abe2eb5b
CR
24597 $as_echo "$as_me: failed program was:" >&5
24598sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 24599
abe2eb5b 24600 ac_cv_type_u_bits32_t=yes
71412226 24601fi
abe2eb5b
CR
24602
24603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604else
24605 $as_echo "$as_me: failed program was:" >&5
24606sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4
CR
24607
24608
abe2eb5b
CR
24609fi
24610
24611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612fi
24613{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24614$as_echo "$ac_cv_type_u_bits32_t" >&6; }
24615if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24616 :
24617else
2dead0c4
CR
24618
24619cat >>confdefs.h <<_ACEOF
abe2eb5b 24620#define u_bits32_t unsigned long
e3db237e 24621_ACEOF
5f8cde23 24622
abe2eb5b 24623fi
2dead0c4 24624
abe2eb5b
CR
24625else
24626 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
24627$as_echo_n "checking for u_bits32_t... " >&6; }
24628if test "${ac_cv_type_u_bits32_t+set}" = set; then
2dead0c4
CR
24629 $as_echo_n "(cached) " >&6
24630else
abe2eb5b
CR
24631 ac_cv_type_u_bits32_t=no
24632cat >conftest.$ac_ext <<_ACEOF
24633/* confdefs.h. */
24634_ACEOF
24635cat confdefs.h >>conftest.$ac_ext
24636cat >>conftest.$ac_ext <<_ACEOF
24637/* end confdefs.h. */
24638$ac_includes_default
24639int
24640main ()
24641{
24642if (sizeof (u_bits32_t))
24643 return 0;
24644 ;
24645 return 0;
24646}
24647_ACEOF
24648rm -f conftest.$ac_objext
24649if { (ac_try="$ac_compile"
24650case "(($ac_try" in
24651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652 *) ac_try_echo=$ac_try;;
24653esac
24654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24655$as_echo "$ac_try_echo") >&5
24656 (eval "$ac_compile") 2>conftest.er1
24657 ac_status=$?
24658 grep -v '^ *+' conftest.er1 >conftest.err
24659 rm -f conftest.er1
24660 cat conftest.err >&5
24661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); } && {
24663 test -z "$ac_c_werror_flag" ||
24664 test ! -s conftest.err
24665 } && test -s conftest.$ac_objext; then
24666 cat >conftest.$ac_ext <<_ACEOF
24667/* confdefs.h. */
24668_ACEOF
24669cat confdefs.h >>conftest.$ac_ext
24670cat >>conftest.$ac_ext <<_ACEOF
24671/* end confdefs.h. */
24672$ac_includes_default
24673int
24674main ()
24675{
24676if (sizeof ((u_bits32_t)))
24677 return 0;
24678 ;
24679 return 0;
24680}
24681_ACEOF
24682rm -f conftest.$ac_objext
24683if { (ac_try="$ac_compile"
24684case "(($ac_try" in
24685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686 *) ac_try_echo=$ac_try;;
24687esac
24688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24689$as_echo "$ac_try_echo") >&5
24690 (eval "$ac_compile") 2>conftest.er1
24691 ac_status=$?
24692 grep -v '^ *+' conftest.er1 >conftest.err
24693 rm -f conftest.er1
24694 cat conftest.err >&5
24695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); } && {
24697 test -z "$ac_c_werror_flag" ||
24698 test ! -s conftest.err
24699 } && test -s conftest.$ac_objext; then
24700 :
2dead0c4 24701else
abe2eb5b
CR
24702 $as_echo "$as_me: failed program was:" >&5
24703sed 's/^/| /' conftest.$ac_ext >&5
5f8cde23 24704
abe2eb5b 24705 ac_cv_type_u_bits32_t=yes
c920c360 24706fi
71412226 24707
abe2eb5b
CR
24708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709else
24710 $as_echo "$as_me: failed program was:" >&5
24711sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 24712
2dead0c4 24713
abe2eb5b 24714fi
2dead0c4 24715
abe2eb5b
CR
24716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24717fi
24718{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
24719$as_echo "$ac_cv_type_u_bits32_t" >&6; }
24720if test "x$ac_cv_type_u_bits32_t" = x""yes; then
24721 :
5f8cde23 24722else
c920c360 24723
abe2eb5b
CR
24724cat >>confdefs.h <<_ACEOF
24725#define u_bits32_t unsigned int
24726_ACEOF
c920c360 24727
2dead0c4 24728fi
c920c360 24729
abe2eb5b 24730fi
c920c360 24731
5f8cde23 24732
abe2eb5b
CR
24733if test "$ac_cv_sizeof_char_p" = 8; then
24734 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24735$as_echo_n "checking for bits64_t... " >&6; }
24736if test "${ac_cv_type_bits64_t+set}" = set; then
24737 $as_echo_n "(cached) " >&6
24738else
24739 ac_cv_type_bits64_t=no
24740cat >conftest.$ac_ext <<_ACEOF
24741/* confdefs.h. */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h. */
24746$ac_includes_default
24747int
24748main ()
24749{
24750if (sizeof (bits64_t))
24751 return 0;
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (ac_try="$ac_compile"
24758case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761esac
24762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24763$as_echo "$ac_try_echo") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24765 ac_status=$?
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 cat >conftest.$ac_ext <<_ACEOF
24775/* confdefs.h. */
24776_ACEOF
24777cat confdefs.h >>conftest.$ac_ext
24778cat >>conftest.$ac_ext <<_ACEOF
24779/* end confdefs.h. */
24780$ac_includes_default
24781int
24782main ()
24783{
24784if (sizeof ((bits64_t)))
24785 return 0;
24786 ;
24787 return 0;
24788}
71412226 24789_ACEOF
abe2eb5b
CR
24790rm -f conftest.$ac_objext
24791if { (ac_try="$ac_compile"
24792case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24795esac
24796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24797$as_echo "$ac_try_echo") >&5
24798 (eval "$ac_compile") 2>conftest.er1
24799 ac_status=$?
24800 grep -v '^ *+' conftest.er1 >conftest.err
24801 rm -f conftest.er1
24802 cat conftest.err >&5
24803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest.$ac_objext; then
24808 :
24809else
24810 $as_echo "$as_me: failed program was:" >&5
24811sed 's/^/| /' conftest.$ac_ext >&5
24812
24813 ac_cv_type_bits64_t=yes
24814fi
2dead0c4 24815
abe2eb5b
CR
24816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24817else
24818 $as_echo "$as_me: failed program was:" >&5
24819sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4
CR
24820
24821
abe2eb5b 24822fi
2dead0c4 24823
abe2eb5b
CR
24824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24825fi
24826{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24827$as_echo "$ac_cv_type_bits64_t" >&6; }
24828if test "x$ac_cv_type_bits64_t" = x""yes; then
24829 :
71412226 24830else
e3db237e 24831
2dead0c4 24832cat >>confdefs.h <<_ACEOF
abe2eb5b 24833#define bits64_t char *
2dead0c4
CR
24834_ACEOF
24835
5f8cde23
CR
24836fi
24837
abe2eb5b
CR
24838elif test "$ac_cv_sizeof_double" = 8; then
24839 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24840$as_echo_n "checking for bits64_t... " >&6; }
24841if test "${ac_cv_type_bits64_t+set}" = set; then
24842 $as_echo_n "(cached) " >&6
2dead0c4 24843else
abe2eb5b
CR
24844 ac_cv_type_bits64_t=no
24845cat >conftest.$ac_ext <<_ACEOF
24846/* confdefs.h. */
24847_ACEOF
24848cat confdefs.h >>conftest.$ac_ext
24849cat >>conftest.$ac_ext <<_ACEOF
24850/* end confdefs.h. */
24851$ac_includes_default
24852int
24853main ()
24854{
24855if (sizeof (bits64_t))
24856 return 0;
24857 ;
24858 return 0;
24859}
24860_ACEOF
24861rm -f conftest.$ac_objext
24862if { (ac_try="$ac_compile"
24863case "(($ac_try" in
24864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865 *) ac_try_echo=$ac_try;;
24866esac
24867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24868$as_echo "$ac_try_echo") >&5
24869 (eval "$ac_compile") 2>conftest.er1
24870 ac_status=$?
24871 grep -v '^ *+' conftest.er1 >conftest.err
24872 rm -f conftest.er1
24873 cat conftest.err >&5
24874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); } && {
24876 test -z "$ac_c_werror_flag" ||
24877 test ! -s conftest.err
24878 } && test -s conftest.$ac_objext; then
24879 cat >conftest.$ac_ext <<_ACEOF
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885$ac_includes_default
24886int
24887main ()
24888{
24889if (sizeof ((bits64_t)))
24890 return 0;
24891 ;
24892 return 0;
24893}
e3db237e 24894_ACEOF
abe2eb5b
CR
24895rm -f conftest.$ac_objext
24896if { (ac_try="$ac_compile"
24897case "(($ac_try" in
24898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899 *) ac_try_echo=$ac_try;;
24900esac
24901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24902$as_echo "$ac_try_echo") >&5
24903 (eval "$ac_compile") 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } && {
24910 test -z "$ac_c_werror_flag" ||
24911 test ! -s conftest.err
24912 } && test -s conftest.$ac_objext; then
24913 :
24914else
24915 $as_echo "$as_me: failed program was:" >&5
24916sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5 24917
abe2eb5b 24918 ac_cv_type_bits64_t=yes
c920c360 24919fi
7610e0c5 24920
abe2eb5b
CR
24921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922else
24923 $as_echo "$as_me: failed program was:" >&5
24924sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4
CR
24925
24926
abe2eb5b 24927fi
2dead0c4 24928
abe2eb5b
CR
24929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24930fi
24931{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24932$as_echo "$ac_cv_type_bits64_t" >&6; }
24933if test "x$ac_cv_type_bits64_t" = x""yes; then
24934 :
c920c360 24935else
2dead0c4
CR
24936
24937cat >>confdefs.h <<_ACEOF
abe2eb5b 24938#define bits64_t double
e3db237e 24939_ACEOF
c920c360 24940
2dead0c4
CR
24941fi
24942
abe2eb5b
CR
24943elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
24944 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24945$as_echo_n "checking for bits64_t... " >&6; }
24946if test "${ac_cv_type_bits64_t+set}" = set; then
24947 $as_echo_n "(cached) " >&6
2dead0c4 24948else
abe2eb5b
CR
24949 ac_cv_type_bits64_t=no
24950cat >conftest.$ac_ext <<_ACEOF
24951/* confdefs.h. */
24952_ACEOF
24953cat confdefs.h >>conftest.$ac_ext
24954cat >>conftest.$ac_ext <<_ACEOF
24955/* end confdefs.h. */
24956$ac_includes_default
24957int
24958main ()
24959{
24960if (sizeof (bits64_t))
24961 return 0;
24962 ;
24963 return 0;
24964}
24965_ACEOF
24966rm -f conftest.$ac_objext
24967if { (ac_try="$ac_compile"
24968case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24971esac
24972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24973$as_echo "$ac_try_echo") >&5
24974 (eval "$ac_compile") 2>conftest.er1
24975 ac_status=$?
24976 grep -v '^ *+' conftest.er1 >conftest.err
24977 rm -f conftest.er1
24978 cat conftest.err >&5
24979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } && {
24981 test -z "$ac_c_werror_flag" ||
24982 test ! -s conftest.err
24983 } && test -s conftest.$ac_objext; then
24984 cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h. */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h. */
24990$ac_includes_default
24991int
24992main ()
24993{
24994if (sizeof ((bits64_t)))
24995 return 0;
24996 ;
24997 return 0;
24998}
7610e0c5 24999_ACEOF
abe2eb5b
CR
25000rm -f conftest.$ac_objext
25001if { (ac_try="$ac_compile"
25002case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25005esac
25006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25007$as_echo "$ac_try_echo") >&5
25008 (eval "$ac_compile") 2>conftest.er1
25009 ac_status=$?
25010 grep -v '^ *+' conftest.er1 >conftest.err
25011 rm -f conftest.er1
25012 cat conftest.err >&5
25013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } && {
25015 test -z "$ac_c_werror_flag" ||
25016 test ! -s conftest.err
25017 } && test -s conftest.$ac_objext; then
25018 :
25019else
25020 $as_echo "$as_me: failed program was:" >&5
25021sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 25022
abe2eb5b 25023 ac_cv_type_bits64_t=yes
2dead0c4
CR
25024fi
25025
abe2eb5b 25026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25027else
abe2eb5b
CR
25028 $as_echo "$as_me: failed program was:" >&5
25029sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 25030
2dead0c4 25031
7610e0c5 25032fi
2dead0c4 25033
abe2eb5b 25034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610e0c5 25035fi
abe2eb5b
CR
25036{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25037$as_echo "$ac_cv_type_bits64_t" >&6; }
25038if test "x$ac_cv_type_bits64_t" = x""yes; then
25039 :
2dead0c4 25040else
7610e0c5 25041
2dead0c4 25042cat >>confdefs.h <<_ACEOF
abe2eb5b 25043#define bits64_t long long
e3db237e 25044_ACEOF
c920c360
CR
25045
25046fi
7610e0c5 25047
abe2eb5b
CR
25048elif test "$ac_cv_sizeof_long" = 8; then
25049 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25050$as_echo_n "checking for bits64_t... " >&6; }
25051if test "${ac_cv_type_bits64_t+set}" = set; then
25052 $as_echo_n "(cached) " >&6
7610e0c5 25053else
abe2eb5b
CR
25054 ac_cv_type_bits64_t=no
25055cat >conftest.$ac_ext <<_ACEOF
25056/* confdefs.h. */
25057_ACEOF
25058cat confdefs.h >>conftest.$ac_ext
25059cat >>conftest.$ac_ext <<_ACEOF
25060/* end confdefs.h. */
25061$ac_includes_default
25062int
25063main ()
25064{
25065if (sizeof (bits64_t))
25066 return 0;
25067 ;
25068 return 0;
25069}
25070_ACEOF
25071rm -f conftest.$ac_objext
25072if { (ac_try="$ac_compile"
25073case "(($ac_try" in
25074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25075 *) ac_try_echo=$ac_try;;
25076esac
25077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25078$as_echo "$ac_try_echo") >&5
25079 (eval "$ac_compile") 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest.$ac_objext; then
25089 cat >conftest.$ac_ext <<_ACEOF
25090/* confdefs.h. */
e3db237e 25091_ACEOF
abe2eb5b
CR
25092cat confdefs.h >>conftest.$ac_ext
25093cat >>conftest.$ac_ext <<_ACEOF
25094/* end confdefs.h. */
25095$ac_includes_default
25096int
25097main ()
25098{
25099if (sizeof ((bits64_t)))
25100 return 0;
25101 ;
25102 return 0;
25103}
25104_ACEOF
25105rm -f conftest.$ac_objext
25106if { (ac_try="$ac_compile"
25107case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25110esac
25111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112$as_echo "$ac_try_echo") >&5
25113 (eval "$ac_compile") 2>conftest.er1
25114 ac_status=$?
25115 grep -v '^ *+' conftest.er1 >conftest.err
25116 rm -f conftest.er1
25117 cat conftest.err >&5
25118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } && {
25120 test -z "$ac_c_werror_flag" ||
25121 test ! -s conftest.err
25122 } && test -s conftest.$ac_objext; then
25123 :
25124else
25125 $as_echo "$as_me: failed program was:" >&5
25126sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5 25127
abe2eb5b 25128 ac_cv_type_bits64_t=yes
2dead0c4 25129fi
7610e0c5 25130
abe2eb5b 25131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25132else
abe2eb5b
CR
25133 $as_echo "$as_me: failed program was:" >&5
25134sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5
CR
25135
25136
2dead0c4 25137fi
7610e0c5 25138
abe2eb5b 25139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25140fi
abe2eb5b
CR
25141{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25142$as_echo "$ac_cv_type_bits64_t" >&6; }
25143if test "x$ac_cv_type_bits64_t" = x""yes; then
25144 :
7610e0c5 25145else
e3db237e 25146
2dead0c4 25147cat >>confdefs.h <<_ACEOF
abe2eb5b 25148#define bits64_t long
2dead0c4
CR
25149_ACEOF
25150
7610e0c5
CR
25151fi
25152
2dead0c4 25153else
abe2eb5b
CR
25154 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
25155$as_echo_n "checking for bits64_t... " >&6; }
25156if test "${ac_cv_type_bits64_t+set}" = set; then
25157 $as_echo_n "(cached) " >&6
25158else
25159 ac_cv_type_bits64_t=no
25160cat >conftest.$ac_ext <<_ACEOF
25161/* confdefs.h. */
25162_ACEOF
25163cat confdefs.h >>conftest.$ac_ext
25164cat >>conftest.$ac_ext <<_ACEOF
25165/* end confdefs.h. */
25166$ac_includes_default
25167int
25168main ()
25169{
25170if (sizeof (bits64_t))
25171 return 0;
25172 ;
25173 return 0;
25174}
25175_ACEOF
25176rm -f conftest.$ac_objext
25177if { (ac_try="$ac_compile"
25178case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25181esac
25182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25183$as_echo "$ac_try_echo") >&5
25184 (eval "$ac_compile") 2>conftest.er1
25185 ac_status=$?
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
25189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } && {
25191 test -z "$ac_c_werror_flag" ||
25192 test ! -s conftest.err
25193 } && test -s conftest.$ac_objext; then
25194 cat >conftest.$ac_ext <<_ACEOF
25195/* confdefs.h. */
25196_ACEOF
25197cat confdefs.h >>conftest.$ac_ext
25198cat >>conftest.$ac_ext <<_ACEOF
25199/* end confdefs.h. */
25200$ac_includes_default
25201int
25202main ()
25203{
25204if (sizeof ((bits64_t)))
25205 return 0;
25206 ;
25207 return 0;
25208}
2dead0c4 25209_ACEOF
abe2eb5b
CR
25210rm -f conftest.$ac_objext
25211if { (ac_try="$ac_compile"
25212case "(($ac_try" in
25213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25215esac
25216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25217$as_echo "$ac_try_echo") >&5
25218 (eval "$ac_compile") 2>conftest.er1
25219 ac_status=$?
25220 grep -v '^ *+' conftest.er1 >conftest.err
25221 rm -f conftest.er1
25222 cat conftest.err >&5
25223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } && {
25225 test -z "$ac_c_werror_flag" ||
25226 test ! -s conftest.err
25227 } && test -s conftest.$ac_objext; then
25228 :
25229else
25230 $as_echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 25232
abe2eb5b 25233 ac_cv_type_bits64_t=yes
71412226
CR
25234fi
25235
abe2eb5b 25236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25237else
abe2eb5b
CR
25238 $as_echo "$as_me: failed program was:" >&5
25239sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 25240
c920c360
CR
25241
25242fi
71412226 25243
abe2eb5b 25244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25245fi
abe2eb5b
CR
25246{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
25247$as_echo "$ac_cv_type_bits64_t" >&6; }
25248if test "x$ac_cv_type_bits64_t" = x""yes; then
25249 :
71412226 25250else
c920c360 25251
2dead0c4 25252cat >>confdefs.h <<_ACEOF
abe2eb5b 25253#define bits64_t double
e3db237e 25254_ACEOF
7610e0c5 25255
2dead0c4 25256fi
5f8cde23 25257
2dead0c4 25258fi
71412226 25259
e3db237e 25260
71412226 25261
abe2eb5b
CR
25262if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
25263 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25264$as_echo_n "checking for ptrdiff_t... " >&6; }
25265if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25266 $as_echo_n "(cached) " >&6
25267else
25268 ac_cv_type_ptrdiff_t=no
25269cat >conftest.$ac_ext <<_ACEOF
25270/* confdefs.h. */
e3db237e 25271_ACEOF
abe2eb5b
CR
25272cat confdefs.h >>conftest.$ac_ext
25273cat >>conftest.$ac_ext <<_ACEOF
25274/* end confdefs.h. */
25275$ac_includes_default
25276int
25277main ()
25278{
25279if (sizeof (ptrdiff_t))
25280 return 0;
25281 ;
25282 return 0;
25283}
25284_ACEOF
25285rm -f conftest.$ac_objext
25286if { (ac_try="$ac_compile"
25287case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25290esac
25291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25292$as_echo "$ac_try_echo") >&5
25293 (eval "$ac_compile") 2>conftest.er1
25294 ac_status=$?
25295 grep -v '^ *+' conftest.er1 >conftest.err
25296 rm -f conftest.er1
25297 cat conftest.err >&5
25298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } && {
25300 test -z "$ac_c_werror_flag" ||
25301 test ! -s conftest.err
25302 } && test -s conftest.$ac_objext; then
25303 cat >conftest.$ac_ext <<_ACEOF
25304/* confdefs.h. */
25305_ACEOF
25306cat confdefs.h >>conftest.$ac_ext
25307cat >>conftest.$ac_ext <<_ACEOF
25308/* end confdefs.h. */
25309$ac_includes_default
25310int
25311main ()
25312{
25313if (sizeof ((ptrdiff_t)))
25314 return 0;
25315 ;
25316 return 0;
25317}
25318_ACEOF
25319rm -f conftest.$ac_objext
25320if { (ac_try="$ac_compile"
25321case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25324esac
25325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326$as_echo "$ac_try_echo") >&5
25327 (eval "$ac_compile") 2>conftest.er1
25328 ac_status=$?
25329 grep -v '^ *+' conftest.er1 >conftest.err
25330 rm -f conftest.er1
25331 cat conftest.err >&5
25332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } && {
25334 test -z "$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25336 } && test -s conftest.$ac_objext; then
25337 :
25338else
25339 $as_echo "$as_me: failed program was:" >&5
25340sed 's/^/| /' conftest.$ac_ext >&5
71412226 25341
abe2eb5b 25342 ac_cv_type_ptrdiff_t=yes
2dead0c4
CR
25343fi
25344
abe2eb5b 25345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5f8cde23 25346else
abe2eb5b
CR
25347 $as_echo "$as_me: failed program was:" >&5
25348sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 25349
e3db237e 25350
abe2eb5b 25351fi
5f8cde23 25352
abe2eb5b
CR
25353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354fi
25355{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25356$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25357if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25358 :
2dead0c4 25359else
e3db237e 25360
2dead0c4 25361cat >>confdefs.h <<_ACEOF
abe2eb5b 25362#define ptrdiff_t int
2dead0c4 25363_ACEOF
5f8cde23 25364
c920c360 25365fi
e3db237e 25366
abe2eb5b
CR
25367elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
25368 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25369$as_echo_n "checking for ptrdiff_t... " >&6; }
25370if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25371 $as_echo_n "(cached) " >&6
2dead0c4 25372else
abe2eb5b
CR
25373 ac_cv_type_ptrdiff_t=no
25374cat >conftest.$ac_ext <<_ACEOF
25375/* confdefs.h. */
25376_ACEOF
25377cat confdefs.h >>conftest.$ac_ext
25378cat >>conftest.$ac_ext <<_ACEOF
25379/* end confdefs.h. */
25380$ac_includes_default
25381int
25382main ()
25383{
25384if (sizeof (ptrdiff_t))
25385 return 0;
25386 ;
25387 return 0;
25388}
25389_ACEOF
25390rm -f conftest.$ac_objext
25391if { (ac_try="$ac_compile"
25392case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25395esac
25396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25397$as_echo "$ac_try_echo") >&5
25398 (eval "$ac_compile") 2>conftest.er1
25399 ac_status=$?
25400 grep -v '^ *+' conftest.er1 >conftest.err
25401 rm -f conftest.er1
25402 cat conftest.err >&5
25403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } && {
25405 test -z "$ac_c_werror_flag" ||
25406 test ! -s conftest.err
25407 } && test -s conftest.$ac_objext; then
25408 cat >conftest.$ac_ext <<_ACEOF
25409/* confdefs.h. */
e3db237e 25410_ACEOF
abe2eb5b
CR
25411cat confdefs.h >>conftest.$ac_ext
25412cat >>conftest.$ac_ext <<_ACEOF
25413/* end confdefs.h. */
25414$ac_includes_default
25415int
25416main ()
25417{
25418if (sizeof ((ptrdiff_t)))
25419 return 0;
25420 ;
25421 return 0;
25422}
25423_ACEOF
25424rm -f conftest.$ac_objext
25425if { (ac_try="$ac_compile"
25426case "(($ac_try" in
25427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428 *) ac_try_echo=$ac_try;;
25429esac
25430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25431$as_echo "$ac_try_echo") >&5
25432 (eval "$ac_compile") 2>conftest.er1
25433 ac_status=$?
25434 grep -v '^ *+' conftest.er1 >conftest.err
25435 rm -f conftest.er1
25436 cat conftest.err >&5
25437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); } && {
25439 test -z "$ac_c_werror_flag" ||
25440 test ! -s conftest.err
25441 } && test -s conftest.$ac_objext; then
25442 :
25443else
25444 $as_echo "$as_me: failed program was:" >&5
25445sed 's/^/| /' conftest.$ac_ext >&5
c920c360 25446
abe2eb5b 25447 ac_cv_type_ptrdiff_t=yes
2dead0c4 25448fi
c920c360 25449
abe2eb5b 25450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25451else
abe2eb5b
CR
25452 $as_echo "$as_me: failed program was:" >&5
25453sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 25454
c920c360 25455
7610e0c5 25456fi
c920c360 25457
abe2eb5b
CR
25458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459fi
25460{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25461$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25462if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25463 :
ccc6cda3 25464else
2dead0c4
CR
25465
25466cat >>confdefs.h <<_ACEOF
abe2eb5b 25467#define ptrdiff_t long
7610e0c5 25468_ACEOF
e3db237e 25469
c920c360 25470fi
e3db237e 25471
abe2eb5b
CR
25472elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
25473 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25474$as_echo_n "checking for ptrdiff_t... " >&6; }
25475if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25476 $as_echo_n "(cached) " >&6
25477else
25478 ac_cv_type_ptrdiff_t=no
25479cat >conftest.$ac_ext <<_ACEOF
25480/* confdefs.h. */
25481_ACEOF
25482cat confdefs.h >>conftest.$ac_ext
25483cat >>conftest.$ac_ext <<_ACEOF
25484/* end confdefs.h. */
25485$ac_includes_default
25486int
25487main ()
25488{
25489if (sizeof (ptrdiff_t))
25490 return 0;
25491 ;
25492 return 0;
25493}
25494_ACEOF
25495rm -f conftest.$ac_objext
25496if { (ac_try="$ac_compile"
25497case "(($ac_try" in
25498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25500esac
25501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25502$as_echo "$ac_try_echo") >&5
25503 (eval "$ac_compile") 2>conftest.er1
25504 ac_status=$?
25505 grep -v '^ *+' conftest.er1 >conftest.err
25506 rm -f conftest.er1
25507 cat conftest.err >&5
25508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } && {
25510 test -z "$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 } && test -s conftest.$ac_objext; then
25513 cat >conftest.$ac_ext <<_ACEOF
25514/* confdefs.h. */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h. */
25519$ac_includes_default
25520int
25521main ()
25522{
25523if (sizeof ((ptrdiff_t)))
25524 return 0;
25525 ;
25526 return 0;
25527}
25528_ACEOF
25529rm -f conftest.$ac_objext
25530if { (ac_try="$ac_compile"
25531case "(($ac_try" in
25532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533 *) ac_try_echo=$ac_try;;
25534esac
25535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25536$as_echo "$ac_try_echo") >&5
25537 (eval "$ac_compile") 2>conftest.er1
25538 ac_status=$?
25539 grep -v '^ *+' conftest.er1 >conftest.err
25540 rm -f conftest.er1
25541 cat conftest.err >&5
25542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); } && {
25544 test -z "$ac_c_werror_flag" ||
25545 test ! -s conftest.err
25546 } && test -s conftest.$ac_objext; then
25547 :
25548else
25549 $as_echo "$as_me: failed program was:" >&5
25550sed 's/^/| /' conftest.$ac_ext >&5
25551
25552 ac_cv_type_ptrdiff_t=yes
c920c360 25553fi
2dead0c4 25554
abe2eb5b
CR
25555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556else
25557 $as_echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4
CR
25559
25560
abe2eb5b 25561fi
2dead0c4 25562
abe2eb5b
CR
25563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25564fi
25565{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25566$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25567if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25568 :
2dead0c4
CR
25569else
25570
25571cat >>confdefs.h <<_ACEOF
abe2eb5b 25572#define ptrdiff_t long long
e3db237e 25573_ACEOF
f73dda09 25574
c920c360 25575fi
a82a04b3 25576
c920c360 25577else
abe2eb5b
CR
25578 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25579$as_echo_n "checking for ptrdiff_t... " >&6; }
25580if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25581 $as_echo_n "(cached) " >&6
25582else
25583 ac_cv_type_ptrdiff_t=no
25584cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h. */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h. */
25590$ac_includes_default
25591int
25592main ()
25593{
25594if (sizeof (ptrdiff_t))
25595 return 0;
25596 ;
25597 return 0;
25598}
25599_ACEOF
25600rm -f conftest.$ac_objext
25601if { (ac_try="$ac_compile"
25602case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25605esac
25606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25607$as_echo "$ac_try_echo") >&5
25608 (eval "$ac_compile") 2>conftest.er1
25609 ac_status=$?
25610 grep -v '^ *+' conftest.er1 >conftest.err
25611 rm -f conftest.er1
25612 cat conftest.err >&5
25613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } && {
25615 test -z "$ac_c_werror_flag" ||
25616 test ! -s conftest.err
25617 } && test -s conftest.$ac_objext; then
25618 cat >conftest.$ac_ext <<_ACEOF
25619/* confdefs.h. */
7610e0c5 25620_ACEOF
abe2eb5b
CR
25621cat confdefs.h >>conftest.$ac_ext
25622cat >>conftest.$ac_ext <<_ACEOF
25623/* end confdefs.h. */
25624$ac_includes_default
25625int
25626main ()
25627{
25628if (sizeof ((ptrdiff_t)))
25629 return 0;
25630 ;
25631 return 0;
25632}
25633_ACEOF
25634rm -f conftest.$ac_objext
25635if { (ac_try="$ac_compile"
25636case "(($ac_try" in
25637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638 *) ac_try_echo=$ac_try;;
25639esac
25640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25641$as_echo "$ac_try_echo") >&5
25642 (eval "$ac_compile") 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } && {
25649 test -z "$ac_c_werror_flag" ||
25650 test ! -s conftest.err
25651 } && test -s conftest.$ac_objext; then
25652 :
25653else
25654 $as_echo "$as_me: failed program was:" >&5
25655sed 's/^/| /' conftest.$ac_ext >&5
e3db237e 25656
abe2eb5b 25657 ac_cv_type_ptrdiff_t=yes
71412226
CR
25658fi
25659
abe2eb5b 25660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2dead0c4 25661else
abe2eb5b
CR
25662 $as_echo "$as_me: failed program was:" >&5
25663sed 's/^/| /' conftest.$ac_ext >&5
7610e0c5 25664
71412226 25665
7610e0c5 25666fi
71412226 25667
abe2eb5b
CR
25668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669fi
25670{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25671$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
25672if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
25673 :
c920c360 25674else
e3db237e 25675
2dead0c4
CR
25676cat >>confdefs.h <<_ACEOF
25677#define ptrdiff_t int
25678_ACEOF
e3db237e 25679
c920c360 25680fi
c920c360
CR
25681
25682fi
25683
25684
abe2eb5b 25685{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
2dead0c4 25686$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
abe2eb5b 25687if test "${ac_cv_header_stat_broken+set}" = set; then
c920c360
CR
25688 $as_echo_n "(cached) " >&6
25689else
abe2eb5b
CR
25690 cat >conftest.$ac_ext <<_ACEOF
25691/* confdefs.h. */
25692_ACEOF
25693cat confdefs.h >>conftest.$ac_ext
25694cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 25695/* end confdefs.h. */
c920c360 25696#include <sys/types.h>
2dead0c4
CR
25697#include <sys/stat.h>
25698
25699#if defined S_ISBLK && defined S_IFDIR
25700extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
c920c360 25701#endif
2dead0c4
CR
25702
25703#if defined S_ISBLK && defined S_IFCHR
25704extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
c920c360 25705#endif
2dead0c4
CR
25706
25707#if defined S_ISLNK && defined S_IFREG
25708extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25709#endif
25710
25711#if defined S_ISSOCK && defined S_IFREG
25712extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25713#endif
25714
5e4a95c7 25715_ACEOF
abe2eb5b
CR
25716rm -f conftest.$ac_objext
25717if { (ac_try="$ac_compile"
25718case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25721esac
25722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25723$as_echo "$ac_try_echo") >&5
25724 (eval "$ac_compile") 2>conftest.er1
25725 ac_status=$?
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
25729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } && {
25731 test -z "$ac_c_werror_flag" ||
25732 test ! -s conftest.err
25733 } && test -s conftest.$ac_objext; then
2dead0c4 25734 ac_cv_header_stat_broken=no
f73dda09 25735else
abe2eb5b
CR
25736 $as_echo "$as_me: failed program was:" >&5
25737sed 's/^/| /' conftest.$ac_ext >&5
25738
25739 ac_cv_header_stat_broken=yes
c920c360 25740fi
abe2eb5b 25741
2dead0c4 25742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c920c360 25743fi
abe2eb5b 25744{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
2dead0c4
CR
25745$as_echo "$ac_cv_header_stat_broken" >&6; }
25746if test $ac_cv_header_stat_broken = yes; then
7610e0c5 25747
abe2eb5b
CR
25748cat >>confdefs.h <<\_ACEOF
25749#define STAT_MACROS_BROKEN 1
25750_ACEOF
e3db237e 25751
7610e0c5
CR
25752fi
25753
2dead0c4 25754
abe2eb5b 25755{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
2dead0c4 25756$as_echo_n "checking whether #! works in shell scripts... " >&6; }
abe2eb5b 25757if test "${ac_cv_sys_interpreter+set}" = set; then
2dead0c4
CR
25758 $as_echo_n "(cached) " >&6
25759else
25760 echo '#! /bin/cat
25761exit 69
25762' >conftest
25763chmod u+x conftest
25764(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
25765if test $? -ne 69; then
25766 ac_cv_sys_interpreter=yes
25767else
25768 ac_cv_sys_interpreter=no
25769fi
25770rm -f conftest
25771fi
abe2eb5b 25772{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
2dead0c4
CR
25773$as_echo "$ac_cv_sys_interpreter" >&6; }
25774interpval=$ac_cv_sys_interpreter
25775
25776if test $ac_cv_sys_interpreter = yes; then
abe2eb5b
CR
25777cat >>confdefs.h <<\_ACEOF
25778#define HAVE_HASH_BANG_EXEC 1
25779_ACEOF
7610e0c5 25780
c920c360 25781fi
7610e0c5 25782
2dead0c4 25783if test "$ac_cv_func_lstat" = "no"; then
abe2eb5b 25784{ $as_echo "$as_me:$LINENO: checking for lstat" >&5
2dead0c4 25785$as_echo_n "checking for lstat... " >&6; }
abe2eb5b 25786if test "${bash_cv_func_lstat+set}" = set; then
c920c360
CR
25787 $as_echo_n "(cached) " >&6
25788else
abe2eb5b
CR
25789 cat >conftest.$ac_ext <<_ACEOF
25790/* confdefs.h. */
25791_ACEOF
25792cat confdefs.h >>conftest.$ac_ext
25793cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 25794/* end confdefs.h. */
2dead0c4 25795
c920c360 25796#include <sys/types.h>
2dead0c4
CR
25797#include <sys/stat.h>
25798
7610e0c5
CR
25799int
25800main ()
25801{
2dead0c4 25802 lstat(".",(struct stat *)0);
7610e0c5
CR
25803 ;
25804 return 0;
25805}
25806_ACEOF
abe2eb5b
CR
25807rm -f conftest.$ac_objext conftest$ac_exeext
25808if { (ac_try="$ac_link"
25809case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25812esac
25813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25814$as_echo "$ac_try_echo") >&5
25815 (eval "$ac_link") 2>conftest.er1
25816 ac_status=$?
25817 grep -v '^ *+' conftest.er1 >conftest.err
25818 rm -f conftest.er1
25819 cat conftest.err >&5
25820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && {
25822 test -z "$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest$ac_exeext && {
25825 test "$cross_compiling" = yes ||
25826 $as_test_x conftest$ac_exeext
25827 }; then
2dead0c4 25828 bash_cv_func_lstat=yes
7610e0c5 25829else
abe2eb5b
CR
25830 $as_echo "$as_me: failed program was:" >&5
25831sed 's/^/| /' conftest.$ac_ext >&5
25832
25833 bash_cv_func_lstat=no
c920c360 25834fi
abe2eb5b
CR
25835
25836rm -rf conftest.dSYM
25837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25838 conftest$ac_exeext conftest.$ac_ext
c920c360 25839fi
abe2eb5b 25840{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
2dead0c4
CR
25841$as_echo "$bash_cv_func_lstat" >&6; }
25842if test $bash_cv_func_lstat = yes; then
abe2eb5b
CR
25843 cat >>confdefs.h <<\_ACEOF
25844#define HAVE_LSTAT 1
25845_ACEOF
7610e0c5 25846
7610e0c5
CR
25847fi
25848
2dead0c4 25849fi
c920c360
CR
25850
25851
abe2eb5b 25852{ $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
2dead0c4 25853$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
abe2eb5b 25854if test "${bash_cv_func_ctype_nonascii+set}" = set; then
c920c360 25855 $as_echo_n "(cached) " >&6
7610e0c5 25856else
abe2eb5b
CR
25857 if test "$cross_compiling" = yes; then
25858 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
2dead0c4
CR
25859$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
25860 bash_cv_func_ctype_nonascii=no
25861
25862else
abe2eb5b
CR
25863 cat >conftest.$ac_ext <<_ACEOF
25864/* confdefs.h. */
25865_ACEOF
25866cat confdefs.h >>conftest.$ac_ext
25867cat >>conftest.$ac_ext <<_ACEOF
c920c360 25868/* end confdefs.h. */
2dead0c4
CR
25869
25870#ifdef HAVE_LOCALE_H
25871#include <locale.h>
c920c360 25872#endif
2dead0c4
CR
25873#include <stdio.h>
25874#include <ctype.h>
25875
25876main(c, v)
25877int c;
25878char *v[];
25879{
25880 char *deflocale;
25881 unsigned char x;
25882 int r1, r2;
25883
25884#ifdef HAVE_SETLOCALE
25885 /* We take a shot here. If that locale is not known, try the
25886 system default. We try this one because '\342' (226) is
25887 known to be a printable character in that locale. */
25888 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
25889 if (deflocale == 0)
25890 deflocale = setlocale(LC_ALL, "");
c920c360 25891#endif
2dead0c4
CR
25892
25893 x = '\342';
25894 r1 = isprint(x);
25895 x -= 128;
25896 r2 = isprint(x);
25897 exit (r1 == 0 || r2 == 0);
25898}
7610e0c5 25899
c920c360 25900_ACEOF
abe2eb5b
CR
25901rm -f conftest$ac_exeext
25902if { (ac_try="$ac_link"
25903case "(($ac_try" in
25904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25905 *) ac_try_echo=$ac_try;;
25906esac
25907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25908$as_echo "$ac_try_echo") >&5
25909 (eval "$ac_link") 2>&5
25910 ac_status=$?
25911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25913 { (case "(($ac_try" in
25914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915 *) ac_try_echo=$ac_try;;
25916esac
25917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25918$as_echo "$ac_try_echo") >&5
25919 (eval "$ac_try") 2>&5
25920 ac_status=$?
25921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; }; then
2dead0c4 25923 bash_cv_func_ctype_nonascii=yes
c920c360 25924else
abe2eb5b
CR
25925 $as_echo "$as_me: program exited with status $ac_status" >&5
25926$as_echo "$as_me: failed program was:" >&5
25927sed 's/^/| /' conftest.$ac_ext >&5
25928
25929( exit $ac_status )
25930bash_cv_func_ctype_nonascii=no
f73dda09 25931fi
abe2eb5b
CR
25932rm -rf conftest.dSYM
25933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e4a95c7 25934fi
b709b946 25935
abe2eb5b 25936
e3db237e
CR
25937fi
25938
abe2eb5b 25939{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
2dead0c4
CR
25940$as_echo "$bash_cv_func_ctype_nonascii" >&6; }
25941if test $bash_cv_func_ctype_nonascii = yes; then
abe2eb5b
CR
25942cat >>confdefs.h <<\_ACEOF
25943#define CTYPE_NON_ASCII 1
25944_ACEOF
e3db237e 25945
2dead0c4 25946fi
e3db237e 25947
abe2eb5b 25948{ $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
2dead0c4 25949$as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
abe2eb5b 25950if test "${bash_cv_dup2_broken+set}" = set; then
e3db237e
CR
25951 $as_echo_n "(cached) " >&6
25952else
abe2eb5b
CR
25953 if test "$cross_compiling" = yes; then
25954 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
2dead0c4
CR
25955$as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
25956 bash_cv_dup2_broken=no
25957else
abe2eb5b
CR
25958 cat >conftest.$ac_ext <<_ACEOF
25959/* confdefs.h. */
25960_ACEOF
25961cat confdefs.h >>conftest.$ac_ext
25962cat >>conftest.$ac_ext <<_ACEOF
e3db237e 25963/* end confdefs.h. */
2dead0c4 25964
e3db237e 25965#include <sys/types.h>
2dead0c4
CR
25966#include <fcntl.h>
25967main()
25968{
25969 int fd1, fd2, fl;
25970 fd1 = open("/dev/null", 2);
25971 if (fcntl(fd1, 2, 1) < 0)
25972 exit(1);
25973 fd2 = dup2(fd1, 1);
25974 if (fd2 < 0)
25975 exit(2);
25976 fl = fcntl(fd2, 1, 0);
25977 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
25978 exit(fl != 1);
25979}
e3db237e
CR
25980
25981_ACEOF
abe2eb5b
CR
25982rm -f conftest$ac_exeext
25983if { (ac_try="$ac_link"
25984case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25987esac
25988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25989$as_echo "$ac_try_echo") >&5
25990 (eval "$ac_link") 2>&5
25991 ac_status=$?
25992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25994 { (case "(($ac_try" in
25995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25996 *) ac_try_echo=$ac_try;;
25997esac
25998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25999$as_echo "$ac_try_echo") >&5
26000 (eval "$ac_try") 2>&5
26001 ac_status=$?
26002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; }; then
2dead0c4 26004 bash_cv_dup2_broken=yes
e3db237e 26005else
abe2eb5b
CR
26006 $as_echo "$as_me: program exited with status $ac_status" >&5
26007$as_echo "$as_me: failed program was:" >&5
26008sed 's/^/| /' conftest.$ac_ext >&5
26009
26010( exit $ac_status )
26011bash_cv_dup2_broken=no
e3db237e 26012fi
abe2eb5b
CR
26013rm -rf conftest.dSYM
26014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e3db237e
CR
26015fi
26016
e3db237e 26017
abe2eb5b 26018
e3db237e
CR
26019fi
26020
abe2eb5b 26021{ $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
2dead0c4
CR
26022$as_echo "$bash_cv_dup2_broken" >&6; }
26023if test $bash_cv_dup2_broken = yes; then
abe2eb5b
CR
26024cat >>confdefs.h <<\_ACEOF
26025#define DUP2_BROKEN 1
26026_ACEOF
2dead0c4
CR
26027
26028fi
e3db237e
CR
26029
26030
abe2eb5b 26031{ $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
2dead0c4 26032$as_echo_n "checking whether pgrps need synchronization... " >&6; }
abe2eb5b 26033if test "${bash_cv_pgrp_pipe+set}" = set; then
e3db237e
CR
26034 $as_echo_n "(cached) " >&6
26035else
abe2eb5b
CR
26036 if test "$cross_compiling" = yes; then
26037 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
2dead0c4
CR
26038$as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
26039 bash_cv_pgrp_pipe=no
e3db237e 26040else
abe2eb5b
CR
26041 cat >conftest.$ac_ext <<_ACEOF
26042/* confdefs.h. */
26043_ACEOF
26044cat confdefs.h >>conftest.$ac_ext
26045cat >>conftest.$ac_ext <<_ACEOF
2dead0c4 26046/* end confdefs.h. */
e3db237e 26047
2dead0c4
CR
26048#ifdef HAVE_UNISTD_H
26049# include <unistd.h>
26050#endif
26051main()
26052{
26053# ifdef GETPGRP_VOID
26054# define getpgID() getpgrp()
26055# else
26056# define getpgID() getpgrp(0)
26057# define setpgid(x,y) setpgrp(x,y)
26058# endif
26059 int pid1, pid2, fds[2];
26060 int status;
26061 char ok;
e3db237e 26062
2dead0c4
CR
26063 switch (pid1 = fork()) {
26064 case -1:
26065 exit(1);
26066 case 0:
26067 setpgid(0, getpid());
26068 exit(0);
26069 }
26070 setpgid(pid1, pid1);
e3db237e 26071
2dead0c4 26072 sleep(2); /* let first child die */
e3db237e 26073
2dead0c4
CR
26074 if (pipe(fds) < 0)
26075 exit(2);
e3db237e 26076
2dead0c4
CR
26077 switch (pid2 = fork()) {
26078 case -1:
26079 exit(3);
26080 case 0:
26081 setpgid(0, pid1);
26082 ok = getpgID() == pid1;
26083 write(fds[1], &ok, 1);
26084 exit(0);
26085 }
26086 setpgid(pid2, pid1);
e3db237e 26087
2dead0c4
CR
26088 close(fds[1]);
26089 if (read(fds[0], &ok, 1) != 1)
26090 exit(4);
26091 wait(&status);
26092 wait(&status);
26093 exit(ok ? 0 : 5);
26094}
e3db237e
CR
26095
26096_ACEOF
abe2eb5b
CR
26097rm -f conftest$ac_exeext
26098if { (ac_try="$ac_link"
26099case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26102esac
26103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104$as_echo "$ac_try_echo") >&5
26105 (eval "$ac_link") 2>&5
26106 ac_status=$?
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26109 { (case "(($ac_try" in
26110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111 *) ac_try_echo=$ac_try;;
26112esac
26113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26114$as_echo "$ac_try_echo") >&5
26115 (eval "$ac_try") 2>&5
26116 ac_status=$?
26117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
2dead0c4 26119 bash_cv_pgrp_pipe=no
e3db237e 26120else
abe2eb5b
CR
26121 $as_echo "$as_me: program exited with status $ac_status" >&5
26122$as_echo "$as_me: failed program was:" >&5
26123sed 's/^/| /' conftest.$ac_ext >&5
26124
26125( exit $ac_status )
26126bash_cv_pgrp_pipe=yes
e3db237e 26127fi
abe2eb5b
CR
26128rm -rf conftest.dSYM
26129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e3db237e
CR
26130fi
26131
2dead0c4 26132
abe2eb5b 26133
c920c360
CR
26134fi
26135
abe2eb5b 26136{ $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
2dead0c4
CR
26137$as_echo "$bash_cv_pgrp_pipe" >&6; }
26138if test $bash_cv_pgrp_pipe = yes; then
abe2eb5b
CR
26139cat >>confdefs.h <<\_ACEOF
26140#define PGRP_PIPE 1
26141_ACEOF
2dead0c4
CR
26142
26143fi
c920c360
CR
26144
26145
abe2eb5b 26146{ $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
2dead0c4 26147$as_echo_n "checking for type of signal functions... " >&6; }
abe2eb5b 26148if test "${bash_cv_signal_vintage+set}" = set; then
c920c360
CR
26149 $as_echo_n "(cached) " >&6
26150else
2dead0c4 26151
abe2eb5b
CR
26152 cat >conftest.$ac_ext <<_ACEOF
26153/* confdefs.h. */
26154_ACEOF
26155cat confdefs.h >>conftest.$ac_ext
26156cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 26157/* end confdefs.h. */
2dead0c4
CR
26158#include <signal.h>
26159int
26160main ()
26161{
e3db237e 26162
2dead0c4
CR
26163 sigset_t ss;
26164 struct sigaction sa;
26165 sigemptyset(&ss); sigsuspend(&ss);
26166 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26167 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
71412226 26168
2dead0c4
CR
26169 ;
26170 return 0;
26171}
a82a04b3 26172_ACEOF
abe2eb5b
CR
26173rm -f conftest.$ac_objext conftest$ac_exeext
26174if { (ac_try="$ac_link"
26175case "(($ac_try" in
26176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26177 *) ac_try_echo=$ac_try;;
26178esac
26179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26180$as_echo "$ac_try_echo") >&5
26181 (eval "$ac_link") 2>conftest.er1
26182 ac_status=$?
26183 grep -v '^ *+' conftest.er1 >conftest.err
26184 rm -f conftest.er1
26185 cat conftest.err >&5
26186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } && {
26188 test -z "$ac_c_werror_flag" ||
26189 test ! -s conftest.err
26190 } && test -s conftest$ac_exeext && {
26191 test "$cross_compiling" = yes ||
26192 $as_test_x conftest$ac_exeext
26193 }; then
2dead0c4 26194 bash_cv_signal_vintage=posix
7610e0c5 26195else
abe2eb5b
CR
26196 $as_echo "$as_me: failed program was:" >&5
26197sed 's/^/| /' conftest.$ac_ext >&5
26198
ccc6cda3 26199
abe2eb5b
CR
26200 cat >conftest.$ac_ext <<_ACEOF
26201/* confdefs.h. */
26202_ACEOF
26203cat confdefs.h >>conftest.$ac_ext
26204cat >>conftest.$ac_ext <<_ACEOF
2dead0c4
CR
26205/* end confdefs.h. */
26206#include <signal.h>
26207int
26208main ()
26209{
ccc6cda3 26210
2dead0c4
CR
26211 int mask = sigmask(SIGINT);
26212 sigsetmask(mask); sigblock(mask); sigpause(mask);
c920c360 26213
2dead0c4
CR
26214 ;
26215 return 0;
26216}
7610e0c5 26217_ACEOF
abe2eb5b
CR
26218rm -f conftest.$ac_objext conftest$ac_exeext
26219if { (ac_try="$ac_link"
26220case "(($ac_try" in
26221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26222 *) ac_try_echo=$ac_try;;
26223esac
26224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26225$as_echo "$ac_try_echo") >&5
26226 (eval "$ac_link") 2>conftest.er1
26227 ac_status=$?
26228 grep -v '^ *+' conftest.er1 >conftest.err
26229 rm -f conftest.er1
26230 cat conftest.err >&5
26231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } && {
26233 test -z "$ac_c_werror_flag" ||
26234 test ! -s conftest.err
26235 } && test -s conftest$ac_exeext && {
26236 test "$cross_compiling" = yes ||
26237 $as_test_x conftest$ac_exeext
26238 }; then
2dead0c4
CR
26239 bash_cv_signal_vintage=4.2bsd
26240else
abe2eb5b
CR
26241 $as_echo "$as_me: failed program was:" >&5
26242sed 's/^/| /' conftest.$ac_ext >&5
26243
c920c360 26244
abe2eb5b
CR
26245 cat >conftest.$ac_ext <<_ACEOF
26246/* confdefs.h. */
26247_ACEOF
26248cat confdefs.h >>conftest.$ac_ext
26249cat >>conftest.$ac_ext <<_ACEOF
2dead0c4 26250/* end confdefs.h. */
c920c360 26251
2dead0c4
CR
26252 #include <signal.h>
26253 RETSIGTYPE foo() { }
26254int
26255main ()
26256{
c920c360 26257
2dead0c4
CR
26258 int mask = sigmask(SIGINT);
26259 sigset(SIGINT, foo); sigrelse(SIGINT);
26260 sighold(SIGINT); sigpause(SIGINT);
71412226 26261
2dead0c4
CR
26262 ;
26263 return 0;
26264}
71412226 26265_ACEOF
abe2eb5b
CR
26266rm -f conftest.$ac_objext conftest$ac_exeext
26267if { (ac_try="$ac_link"
26268case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26271esac
26272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26273$as_echo "$ac_try_echo") >&5
26274 (eval "$ac_link") 2>conftest.er1
26275 ac_status=$?
26276 grep -v '^ *+' conftest.er1 >conftest.err
26277 rm -f conftest.er1
26278 cat conftest.err >&5
26279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } && {
26281 test -z "$ac_c_werror_flag" ||
26282 test ! -s conftest.err
26283 } && test -s conftest$ac_exeext && {
26284 test "$cross_compiling" = yes ||
26285 $as_test_x conftest$ac_exeext
26286 }; then
2dead0c4 26287 bash_cv_signal_vintage=svr3
71412226 26288else
abe2eb5b
CR
26289 $as_echo "$as_me: failed program was:" >&5
26290sed 's/^/| /' conftest.$ac_ext >&5
26291
26292 bash_cv_signal_vintage=v7
71412226 26293
c920c360 26294fi
abe2eb5b
CR
26295
26296rm -rf conftest.dSYM
26297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26298 conftest$ac_exeext conftest.$ac_ext
71412226 26299
2dead0c4 26300fi
abe2eb5b
CR
26301
26302rm -rf conftest.dSYM
26303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26304 conftest$ac_exeext conftest.$ac_ext
7610e0c5 26305
2dead0c4 26306fi
abe2eb5b
CR
26307
26308rm -rf conftest.dSYM
26309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26310 conftest$ac_exeext conftest.$ac_ext
f73dda09 26311
c920c360 26312fi
a82a04b3 26313
abe2eb5b 26314{ $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
2dead0c4
CR
26315$as_echo "$bash_cv_signal_vintage" >&6; }
26316if test "$bash_cv_signal_vintage" = posix; then
abe2eb5b
CR
26317cat >>confdefs.h <<\_ACEOF
26318#define HAVE_POSIX_SIGNALS 1
26319_ACEOF
2dead0c4
CR
26320
26321elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
abe2eb5b
CR
26322cat >>confdefs.h <<\_ACEOF
26323#define HAVE_BSD_SIGNALS 1
26324_ACEOF
2dead0c4
CR
26325
26326elif test "$bash_cv_signal_vintage" = svr3; then
abe2eb5b
CR
26327cat >>confdefs.h <<\_ACEOF
26328#define HAVE_USG_SIGHOLD 1
26329_ACEOF
2dead0c4 26330
e3db237e 26331fi
2dead0c4
CR
26332
26333
abe2eb5b 26334{ $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
2dead0c4 26335$as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
abe2eb5b 26336if test "${bash_cv_sys_errlist+set}" = set; then
71412226
CR
26337 $as_echo_n "(cached) " >&6
26338else
abe2eb5b
CR
26339 cat >conftest.$ac_ext <<_ACEOF
26340/* confdefs.h. */
26341_ACEOF
26342cat confdefs.h >>conftest.$ac_ext
26343cat >>conftest.$ac_ext <<_ACEOF
71412226 26344/* end confdefs.h. */
2dead0c4 26345#include <errno.h>
e3db237e
CR
26346int
26347main ()
26348{
2dead0c4
CR
26349extern char *sys_errlist[];
26350 extern int sys_nerr;
26351 char *msg = sys_errlist[sys_nerr - 1];
e3db237e
CR
26352 ;
26353 return 0;
26354}
26355_ACEOF
abe2eb5b
CR
26356rm -f conftest.$ac_objext conftest$ac_exeext
26357if { (ac_try="$ac_link"
26358case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361esac
26362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363$as_echo "$ac_try_echo") >&5
26364 (eval "$ac_link") 2>conftest.er1
26365 ac_status=$?
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
26369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest$ac_exeext && {
26374 test "$cross_compiling" = yes ||
26375 $as_test_x conftest$ac_exeext
26376 }; then
2dead0c4 26377 bash_cv_sys_errlist=yes
e3db237e 26378else
abe2eb5b
CR
26379 $as_echo "$as_me: failed program was:" >&5
26380sed 's/^/| /' conftest.$ac_ext >&5
26381
26382 bash_cv_sys_errlist=no
2dead0c4 26383fi
abe2eb5b
CR
26384
26385rm -rf conftest.dSYM
26386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26387 conftest$ac_exeext conftest.$ac_ext
2dead0c4 26388fi
abe2eb5b 26389{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
2dead0c4
CR
26390$as_echo "$bash_cv_sys_errlist" >&6; }
26391if test $bash_cv_sys_errlist = yes; then
abe2eb5b
CR
26392cat >>confdefs.h <<\_ACEOF
26393#define HAVE_SYS_ERRLIST 1
26394_ACEOF
7610e0c5 26395
2dead0c4 26396fi
7610e0c5 26397
2dead0c4 26398
abe2eb5b 26399{ $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
2dead0c4 26400$as_echo_n "checking for sys_siglist in system C library... " >&6; }
abe2eb5b 26401if test "${bash_cv_sys_siglist+set}" = set; then
2dead0c4 26402 $as_echo_n "(cached) " >&6
e3db237e 26403else
abe2eb5b
CR
26404 if test "$cross_compiling" = yes; then
26405 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
2dead0c4
CR
26406$as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
26407 bash_cv_sys_siglist=no
26408else
abe2eb5b
CR
26409 cat >conftest.$ac_ext <<_ACEOF
26410/* confdefs.h. */
26411_ACEOF
26412cat confdefs.h >>conftest.$ac_ext
26413cat >>conftest.$ac_ext <<_ACEOF
e3db237e
CR
26414/* end confdefs.h. */
26415
26416#include <sys/types.h>
2dead0c4
CR
26417#include <signal.h>
26418#ifdef HAVE_UNISTD_H
26419#include <unistd.h>
26420#endif
26421#if !HAVE_DECL_SYS_SIGLIST
26422extern char *sys_siglist[];
26423#endif
e3db237e
CR
26424main()
26425{
2dead0c4
CR
26426char *msg = sys_siglist[2];
26427exit(msg == 0);
e3db237e
CR
26428}
26429_ACEOF
abe2eb5b
CR
26430rm -f conftest$ac_exeext
26431if { (ac_try="$ac_link"
26432case "(($ac_try" in
26433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434 *) ac_try_echo=$ac_try;;
26435esac
26436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26437$as_echo "$ac_try_echo") >&5
26438 (eval "$ac_link") 2>&5
26439 ac_status=$?
26440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26442 { (case "(($ac_try" in
26443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26444 *) ac_try_echo=$ac_try;;
26445esac
26446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26447$as_echo "$ac_try_echo") >&5
26448 (eval "$ac_try") 2>&5
26449 ac_status=$?
26450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; }; then
2dead0c4 26452 bash_cv_sys_siglist=yes
5e4a95c7 26453else
abe2eb5b
CR
26454 $as_echo "$as_me: program exited with status $ac_status" >&5
26455$as_echo "$as_me: failed program was:" >&5
26456sed 's/^/| /' conftest.$ac_ext >&5
26457
26458( exit $ac_status )
26459bash_cv_sys_siglist=no
c920c360 26460fi
abe2eb5b
CR
26461rm -rf conftest.dSYM
26462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c920c360
CR
26463fi
26464
abe2eb5b 26465
e3db237e
CR
26466fi
26467
abe2eb5b 26468{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
2dead0c4
CR
26469$as_echo "$bash_cv_sys_siglist" >&6; }
26470if test $bash_cv_sys_siglist = yes; then
abe2eb5b
CR
26471cat >>confdefs.h <<\_ACEOF
26472#define HAVE_SYS_SIGLIST 1
26473_ACEOF
c920c360 26474
e3db237e 26475fi
c920c360 26476
abe2eb5b 26477{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
2dead0c4 26478$as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
abe2eb5b 26479if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
c920c360
CR
26480 $as_echo_n "(cached) " >&6
26481else
abe2eb5b
CR
26482 cat >conftest.$ac_ext <<_ACEOF
26483/* confdefs.h. */
26484_ACEOF
26485cat confdefs.h >>conftest.$ac_ext
26486cat >>conftest.$ac_ext <<_ACEOF
c920c360 26487/* end confdefs.h. */
2dead0c4
CR
26488
26489#include <sys/types.h>
26490#include <signal.h>
26491#ifdef HAVE_UNISTD_H
26492#include <unistd.h>
26493#endif
e3db237e
CR
26494int
26495main ()
26496{
2dead0c4 26497 char *msg = _sys_siglist[2];
e3db237e
CR
26498 ;
26499 return 0;
26500}
26501_ACEOF
abe2eb5b
CR
26502rm -f conftest.$ac_objext
26503if { (ac_try="$ac_compile"
26504case "(($ac_try" in
26505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26506 *) ac_try_echo=$ac_try;;
26507esac
26508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26509$as_echo "$ac_try_echo") >&5
26510 (eval "$ac_compile") 2>conftest.er1
26511 ac_status=$?
26512 grep -v '^ *+' conftest.er1 >conftest.err
26513 rm -f conftest.er1
26514 cat conftest.err >&5
26515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); } && {
26517 test -z "$ac_c_werror_flag" ||
26518 test ! -s conftest.err
26519 } && test -s conftest.$ac_objext; then
2dead0c4
CR
26520 bash_cv_decl_under_sys_siglist=yes
26521else
abe2eb5b
CR
26522 $as_echo "$as_me: failed program was:" >&5
26523sed 's/^/| /' conftest.$ac_ext >&5
26524
26525 bash_cv_decl_under_sys_siglist=no
2dead0c4 26526fi
abe2eb5b 26527
2dead0c4
CR
26528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529fi
abe2eb5b 26530{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
2dead0c4
CR
26531$as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
26532if test $bash_cv_decl_under_sys_siglist = yes; then
abe2eb5b
CR
26533cat >>confdefs.h <<\_ACEOF
26534#define UNDER_SYS_SIGLIST_DECLARED 1
26535_ACEOF
2dead0c4
CR
26536
26537fi
26538
26539
abe2eb5b 26540{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
2dead0c4 26541$as_echo_n "checking for _sys_siglist in system C library... " >&6; }
abe2eb5b 26542if test "${bash_cv_under_sys_siglist+set}" = set; then
2dead0c4
CR
26543 $as_echo_n "(cached) " >&6
26544else
abe2eb5b
CR
26545 if test "$cross_compiling" = yes; then
26546 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
2dead0c4
CR
26547$as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
26548 bash_cv_under_sys_siglist=no
26549else
abe2eb5b
CR
26550 cat >conftest.$ac_ext <<_ACEOF
26551/* confdefs.h. */
26552_ACEOF
26553cat confdefs.h >>conftest.$ac_ext
26554cat >>conftest.$ac_ext <<_ACEOF
e3db237e 26555/* end confdefs.h. */
7610e0c5 26556
2dead0c4
CR
26557#include <sys/types.h>
26558#include <signal.h>
26559#ifdef HAVE_UNISTD_H
26560#include <unistd.h>
26561#endif
26562#ifndef UNDER_SYS_SIGLIST_DECLARED
26563extern char *_sys_siglist[];
26564#endif
26565main()
26566{
26567char *msg = (char *)_sys_siglist[2];
26568exit(msg == 0);
e3db237e 26569}
5e4a95c7 26570_ACEOF
abe2eb5b
CR
26571rm -f conftest$ac_exeext
26572if { (ac_try="$ac_link"
26573case "(($ac_try" in
26574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26575 *) ac_try_echo=$ac_try;;
26576esac
26577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26578$as_echo "$ac_try_echo") >&5
26579 (eval "$ac_link") 2>&5
26580 ac_status=$?
26581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26583 { (case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26586esac
26587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26588$as_echo "$ac_try_echo") >&5
26589 (eval "$ac_try") 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); }; }; then
2dead0c4 26593 bash_cv_under_sys_siglist=yes
f73dda09 26594else
abe2eb5b
CR
26595 $as_echo "$as_me: program exited with status $ac_status" >&5
26596$as_echo "$as_me: failed program was:" >&5
26597sed 's/^/| /' conftest.$ac_ext >&5
26598
26599( exit $ac_status )
26600bash_cv_under_sys_siglist=no
2dead0c4 26601fi
abe2eb5b
CR
26602rm -rf conftest.dSYM
26603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2dead0c4 26604fi
e3db237e 26605
abe2eb5b 26606
e3db237e
CR
26607fi
26608
abe2eb5b 26609{ $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
2dead0c4
CR
26610$as_echo "$bash_cv_under_sys_siglist" >&6; }
26611if test $bash_cv_under_sys_siglist = yes; then
abe2eb5b
CR
26612cat >>confdefs.h <<\_ACEOF
26613#define HAVE_UNDER_SYS_SIGLIST 1
26614_ACEOF
e3db237e 26615
2dead0c4 26616fi
e3db237e 26617
2dead0c4 26618
abe2eb5b 26619{ $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
2dead0c4 26620$as_echo_n "checking whether signal handlers are of type void... " >&6; }
abe2eb5b 26621if test "${bash_cv_void_sighandler+set}" = set; then
2dead0c4
CR
26622 $as_echo_n "(cached) " >&6
26623else
abe2eb5b
CR
26624 cat >conftest.$ac_ext <<_ACEOF
26625/* confdefs.h. */
26626_ACEOF
26627cat confdefs.h >>conftest.$ac_ext
26628cat >>conftest.$ac_ext <<_ACEOF
e3db237e 26629/* end confdefs.h. */
2dead0c4
CR
26630#include <sys/types.h>
26631#include <signal.h>
26632#ifdef signal
26633#undef signal
26634#endif
26635#ifdef __cplusplus
26636extern "C"
26637#endif
26638void (*signal ()) ();
e3db237e
CR
26639int
26640main ()
26641{
2dead0c4 26642int i;
e3db237e
CR
26643 ;
26644 return 0;
26645}
26646_ACEOF
abe2eb5b
CR
26647rm -f conftest.$ac_objext
26648if { (ac_try="$ac_compile"
26649case "(($ac_try" in
26650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26651 *) ac_try_echo=$ac_try;;
26652esac
26653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26654$as_echo "$ac_try_echo") >&5
26655 (eval "$ac_compile") 2>conftest.er1
26656 ac_status=$?
26657 grep -v '^ *+' conftest.er1 >conftest.err
26658 rm -f conftest.er1
26659 cat conftest.err >&5
26660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); } && {
26662 test -z "$ac_c_werror_flag" ||
26663 test ! -s conftest.err
26664 } && test -s conftest.$ac_objext; then
2dead0c4 26665 bash_cv_void_sighandler=yes
e3db237e 26666else
abe2eb5b
CR
26667 $as_echo "$as_me: failed program was:" >&5
26668sed 's/^/| /' conftest.$ac_ext >&5
26669
26670 bash_cv_void_sighandler=no
2dead0c4 26671fi
abe2eb5b 26672
2dead0c4
CR
26673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26674fi
abe2eb5b 26675{ $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
2dead0c4
CR
26676$as_echo "$bash_cv_void_sighandler" >&6; }
26677if test $bash_cv_void_sighandler = yes; then
abe2eb5b
CR
26678cat >>confdefs.h <<\_ACEOF
26679#define VOID_SIGHANDLER 1
26680_ACEOF
e3db237e 26681
e3db237e
CR
26682fi
26683
2dead0c4
CR
26684
26685
abe2eb5b 26686{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5
2dead0c4 26687$as_echo_n "checking for clock_t... " >&6; }
abe2eb5b 26688if test "${bash_cv_type_clock_t+set}" = set; then
2dead0c4 26689 $as_echo_n "(cached) " >&6
e3db237e 26690else
abe2eb5b
CR
26691 cat >conftest.$ac_ext <<_ACEOF
26692/* confdefs.h. */
26693_ACEOF
26694cat confdefs.h >>conftest.$ac_ext
26695cat >>conftest.$ac_ext <<_ACEOF
2dead0c4
CR
26696/* end confdefs.h. */
26697#include <sys/types.h>
26698#if STDC_HEADERS
26699#include <stdlib.h>
26700#include <stddef.h>
26701#endif
26702#if HAVE_INTTYPES_H
26703#include <inttypes.h>
26704#endif
26705#if HAVE_STDINT_H
26706#include <stdint.h>
26707#endif
26708#include <sys/times.h>
e3db237e 26709
2dead0c4
CR
26710_ACEOF
26711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 26712 $EGREP "clock_t" >/dev/null 2>&1; then
2dead0c4
CR
26713 bash_cv_type_clock_t=yes
26714else
26715 bash_cv_type_clock_t=no
71412226 26716fi
2dead0c4 26717rm -f conftest*
71412226 26718
5e4a95c7 26719fi
b709b946 26720
abe2eb5b 26721{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
2dead0c4
CR
26722$as_echo "$bash_cv_type_clock_t" >&6; }
26723
26724if test $bash_cv_type_clock_t = no; then
26725 cat >>confdefs.h <<_ACEOF
abe2eb5b
CR
26726#define clock_t long
26727_ACEOF
26728
26729fi
26730
26731
26732
26733{ $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
26734$as_echo_n "checking for sigset_t... " >&6; }
26735if test "${bash_cv_type_sigset_t+set}" = set; then
26736 $as_echo_n "(cached) " >&6
26737else
26738 cat >conftest.$ac_ext <<_ACEOF
26739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
26744#include <sys/types.h>
26745#if STDC_HEADERS
26746#include <stdlib.h>
26747#include <stddef.h>
26748#endif
26749#if HAVE_INTTYPES_H
26750#include <inttypes.h>
26751#endif
26752#if HAVE_STDINT_H
26753#include <stdint.h>
26754#endif
26755#include <signal.h>
26756
26757_ACEOF
26758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26759 $EGREP "sigset_t" >/dev/null 2>&1; then
26760 bash_cv_type_sigset_t=yes
26761else
26762 bash_cv_type_sigset_t=no
26763fi
26764rm -f conftest*
26765
26766fi
26767
26768{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
26769$as_echo "$bash_cv_type_sigset_t" >&6; }
26770
26771if test $bash_cv_type_sigset_t = no; then
26772 cat >>confdefs.h <<_ACEOF
26773#define sigset_t int
26774_ACEOF
26775
26776fi
26777
26778
26779
26780{ $as_echo "$as_me:$LINENO: checking for quad_t" >&5
26781$as_echo_n "checking for quad_t... " >&6; }
26782if test "${bash_cv_type_quad_t+set}" = set; then
26783 $as_echo_n "(cached) " >&6
26784else
26785 cat >conftest.$ac_ext <<_ACEOF
26786/* confdefs.h. */
26787_ACEOF
26788cat confdefs.h >>conftest.$ac_ext
26789cat >>conftest.$ac_ext <<_ACEOF
26790/* end confdefs.h. */
26791#include <sys/types.h>
26792#if STDC_HEADERS
26793#include <stdlib.h>
26794#include <stddef.h>
26795#endif
26796#if HAVE_INTTYPES_H
26797#include <inttypes.h>
26798#endif
26799#if HAVE_STDINT_H
26800#include <stdint.h>
26801#endif
26802
26803
26804_ACEOF
26805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26806 $EGREP "quad_t" >/dev/null 2>&1; then
26807 bash_cv_type_quad_t=yes
26808else
26809 bash_cv_type_quad_t=no
26810fi
26811rm -f conftest*
26812
26813fi
26814
26815{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
26816$as_echo "$bash_cv_type_quad_t" >&6; }
26817if test $bash_cv_type_quad_t = yes; then
26818 cat >>confdefs.h <<\_ACEOF
26819#define HAVE_QUAD_T 1
26820_ACEOF
26821
26822 fi
26823if test $bash_cv_type_quad_t = no; then
26824 cat >>confdefs.h <<_ACEOF
26825#define quad_t long
26826_ACEOF
26827
26828fi
26829
26830
26831
26832{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26833$as_echo_n "checking for intmax_t... " >&6; }
26834if test "${bash_cv_type_intmax_t+set}" = set; then
26835 $as_echo_n "(cached) " >&6
26836else
26837 cat >conftest.$ac_ext <<_ACEOF
26838/* confdefs.h. */
26839_ACEOF
26840cat confdefs.h >>conftest.$ac_ext
26841cat >>conftest.$ac_ext <<_ACEOF
26842/* end confdefs.h. */
26843#include <sys/types.h>
26844#if STDC_HEADERS
26845#include <stdlib.h>
26846#include <stddef.h>
26847#endif
26848#if HAVE_INTTYPES_H
26849#include <inttypes.h>
26850#endif
26851#if HAVE_STDINT_H
26852#include <stdint.h>
26853#endif
26854
26855
26856_ACEOF
26857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26858 $EGREP "intmax_t" >/dev/null 2>&1; then
26859 bash_cv_type_intmax_t=yes
26860else
26861 bash_cv_type_intmax_t=no
26862fi
26863rm -f conftest*
26864
26865fi
26866
26867{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
26868$as_echo "$bash_cv_type_intmax_t" >&6; }
26869
26870if test $bash_cv_type_intmax_t = no; then
26871 cat >>confdefs.h <<_ACEOF
26872#define intmax_t $bash_cv_type_long_long
e3db237e 26873_ACEOF
2dead0c4
CR
26874
26875fi
26876
26877
26878
abe2eb5b
CR
26879{ $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
26880$as_echo_n "checking for uintmax_t... " >&6; }
26881if test "${bash_cv_type_uintmax_t+set}" = set; then
2dead0c4
CR
26882 $as_echo_n "(cached) " >&6
26883else
abe2eb5b
CR
26884 cat >conftest.$ac_ext <<_ACEOF
26885/* confdefs.h. */
26886_ACEOF
26887cat confdefs.h >>conftest.$ac_ext
26888cat >>conftest.$ac_ext <<_ACEOF
e3db237e 26889/* end confdefs.h. */
2dead0c4
CR
26890#include <sys/types.h>
26891#if STDC_HEADERS
26892#include <stdlib.h>
26893#include <stddef.h>
26894#endif
26895#if HAVE_INTTYPES_H
26896#include <inttypes.h>
26897#endif
26898#if HAVE_STDINT_H
26899#include <stdint.h>
26900#endif
abe2eb5b 26901
c920c360 26902
7610e0c5 26903_ACEOF
2dead0c4 26904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b
CR
26905 $EGREP "uintmax_t" >/dev/null 2>&1; then
26906 bash_cv_type_uintmax_t=yes
e3db237e 26907else
abe2eb5b 26908 bash_cv_type_uintmax_t=no
2dead0c4
CR
26909fi
26910rm -f conftest*
71412226
CR
26911
26912fi
26913
abe2eb5b
CR
26914{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
26915$as_echo "$bash_cv_type_uintmax_t" >&6; }
2dead0c4 26916
abe2eb5b 26917if test $bash_cv_type_uintmax_t = no; then
2dead0c4 26918 cat >>confdefs.h <<_ACEOF
abe2eb5b 26919#define uintmax_t $bash_cv_type_unsigned_long_long
e3db237e 26920_ACEOF
2dead0c4
CR
26921
26922fi
26923
abe2eb5b 26924if test "$ac_cv_header_sys_socket_h" = "yes"; then
2dead0c4
CR
26925
26926
abe2eb5b
CR
26927{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26928$as_echo_n "checking for socklen_t... " >&6; }
26929if test "${bash_cv_type_socklen_t+set}" = set; then
2dead0c4
CR
26930 $as_echo_n "(cached) " >&6
26931else
abe2eb5b
CR
26932 cat >conftest.$ac_ext <<_ACEOF
26933/* confdefs.h. */
26934_ACEOF
26935cat confdefs.h >>conftest.$ac_ext
26936cat >>conftest.$ac_ext <<_ACEOF
7610e0c5 26937/* end confdefs.h. */
2dead0c4
CR
26938#include <sys/types.h>
26939#if STDC_HEADERS
c920c360 26940#include <stdlib.h>
2dead0c4
CR
26941#include <stddef.h>
26942#endif
26943#if HAVE_INTTYPES_H
26944#include <inttypes.h>
26945#endif
26946#if HAVE_STDINT_H
26947#include <stdint.h>
26948#endif
abe2eb5b 26949#include <sys/socket.h>
c920c360
CR
26950
26951_ACEOF
2dead0c4 26952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b
CR
26953 $EGREP "socklen_t" >/dev/null 2>&1; then
26954 bash_cv_type_socklen_t=yes
c920c360 26955else
abe2eb5b 26956 bash_cv_type_socklen_t=no
c920c360 26957fi
2dead0c4 26958rm -f conftest*
c920c360 26959
2dead0c4 26960fi
c920c360 26961
abe2eb5b
CR
26962{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
26963$as_echo "$bash_cv_type_socklen_t" >&6; }
26964if test $bash_cv_type_socklen_t = yes; then
26965 cat >>confdefs.h <<\_ACEOF
26966#define HAVE_SOCKLEN_T 1
26967_ACEOF
e3db237e 26968
2dead0c4 26969 fi
abe2eb5b 26970if test $bash_cv_type_socklen_t = no; then
2dead0c4 26971 cat >>confdefs.h <<_ACEOF
abe2eb5b 26972#define socklen_t int
c920c360 26973_ACEOF
71412226 26974
2dead0c4 26975fi
71412226 26976
abe2eb5b
CR
26977fi
26978{ $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
26979$as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
26980if test "${bash_cv_type_rlimit+set}" = set; then
c920c360
CR
26981 $as_echo_n "(cached) " >&6
26982else
abe2eb5b
CR
26983 cat >conftest.$ac_ext <<_ACEOF
26984/* confdefs.h. */
26985_ACEOF
26986cat confdefs.h >>conftest.$ac_ext
26987cat >>conftest.$ac_ext <<_ACEOF
c920c360
CR
26988/* end confdefs.h. */
26989#include <sys/types.h>
abe2eb5b
CR
26990#include <sys/resource.h>
26991int
26992main ()
26993{
26994rlim_t xxx;
26995 ;
26996 return 0;
26997}
26998_ACEOF
26999rm -f conftest.$ac_objext
27000if { (ac_try="$ac_compile"
27001case "(($ac_try" in
27002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003 *) ac_try_echo=$ac_try;;
27004esac
27005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27006$as_echo "$ac_try_echo") >&5
27007 (eval "$ac_compile") 2>conftest.er1
27008 ac_status=$?
27009 grep -v '^ *+' conftest.er1 >conftest.err
27010 rm -f conftest.er1
27011 cat conftest.err >&5
27012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } && {
27014 test -z "$ac_c_werror_flag" ||
27015 test ! -s conftest.err
27016 } && test -s conftest.$ac_objext; then
27017 bash_cv_type_rlimit=rlim_t
27018else
27019 $as_echo "$as_me: failed program was:" >&5
27020sed 's/^/| /' conftest.$ac_ext >&5
e3db237e
CR
27021
27022
abe2eb5b
CR
27023if test "$cross_compiling" = yes; then
27024 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
27025$as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
27026 bash_cv_type_rlimit=long
27027else
27028 cat >conftest.$ac_ext <<_ACEOF
27029/* confdefs.h. */
a82a04b3 27030_ACEOF
abe2eb5b
CR
27031cat confdefs.h >>conftest.$ac_ext
27032cat >>conftest.$ac_ext <<_ACEOF
27033/* end confdefs.h. */
27034
27035#include <sys/types.h>
27036#include <sys/time.h>
27037#include <sys/resource.h>
27038main()
27039{
27040#ifdef HAVE_QUAD_T
27041 struct rlimit rl;
27042 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
27043 exit(0);
27044#endif
27045 exit(1);
27046}
27047_ACEOF
27048rm -f conftest$ac_exeext
27049if { (ac_try="$ac_link"
27050case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27053esac
27054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27055$as_echo "$ac_try_echo") >&5
27056 (eval "$ac_link") 2>&5
27057 ac_status=$?
27058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27060 { (case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27063esac
27064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27065$as_echo "$ac_try_echo") >&5
27066 (eval "$ac_try") 2>&5
27067 ac_status=$?
27068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 bash_cv_type_rlimit=quad_t
7610e0c5 27071else
abe2eb5b
CR
27072 $as_echo "$as_me: program exited with status $ac_status" >&5
27073$as_echo "$as_me: failed program was:" >&5
27074sed 's/^/| /' conftest.$ac_ext >&5
27075
27076( exit $ac_status )
27077bash_cv_type_rlimit=long
27078fi
27079rm -rf conftest.dSYM
27080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2dead0c4 27081fi
abe2eb5b 27082
2dead0c4
CR
27083
27084fi
27085
abe2eb5b 27086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27087
abe2eb5b
CR
27088fi
27089
27090{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
27091$as_echo "$bash_cv_type_rlimit" >&6; }
27092if test $bash_cv_type_rlimit = quad_t; then
27093cat >>confdefs.h <<\_ACEOF
27094#define RLIMTYPE quad_t
e3db237e 27095_ACEOF
71412226 27096
abe2eb5b
CR
27097elif test $bash_cv_type_rlimit = rlim_t; then
27098cat >>confdefs.h <<\_ACEOF
27099#define RLIMTYPE rlim_t
27100_ACEOF
2dead0c4 27101
abe2eb5b 27102fi
2dead0c4
CR
27103
27104
abe2eb5b
CR
27105# The cast to long int works around a bug in the HP C Compiler
27106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27108# This bug is HP SR number 8606223364.
27109{ $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
27110$as_echo_n "checking size of intmax_t... " >&6; }
27111if test "${ac_cv_sizeof_intmax_t+set}" = set; then
2dead0c4
CR
27112 $as_echo_n "(cached) " >&6
27113else
abe2eb5b
CR
27114 if test "$cross_compiling" = yes; then
27115 # Depending upon the size, compute the lo and hi bounds.
27116cat >conftest.$ac_ext <<_ACEOF
27117/* confdefs.h. */
27118_ACEOF
27119cat confdefs.h >>conftest.$ac_ext
27120cat >>conftest.$ac_ext <<_ACEOF
2dead0c4 27121/* end confdefs.h. */
abe2eb5b
CR
27122$ac_includes_default
27123int
27124main ()
27125{
27126static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
27127test_array [0] = 0
e3db237e 27128
abe2eb5b
CR
27129 ;
27130 return 0;
27131}
27132_ACEOF
27133rm -f conftest.$ac_objext
27134if { (ac_try="$ac_compile"
27135case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27138esac
27139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27140$as_echo "$ac_try_echo") >&5
27141 (eval "$ac_compile") 2>conftest.er1
27142 ac_status=$?
27143 grep -v '^ *+' conftest.er1 >conftest.err
27144 rm -f conftest.er1
27145 cat conftest.err >&5
27146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } && {
27148 test -z "$ac_c_werror_flag" ||
27149 test ! -s conftest.err
27150 } && test -s conftest.$ac_objext; then
27151 ac_lo=0 ac_mid=0
27152 while :; do
27153 cat >conftest.$ac_ext <<_ACEOF
27154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
27159$ac_includes_default
27160int
27161main ()
27162{
27163static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27164test_array [0] = 0
e3db237e 27165
abe2eb5b
CR
27166 ;
27167 return 0;
27168}
7610e0c5 27169_ACEOF
abe2eb5b
CR
27170rm -f conftest.$ac_objext
27171if { (ac_try="$ac_compile"
27172case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175esac
27176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27177$as_echo "$ac_try_echo") >&5
27178 (eval "$ac_compile") 2>conftest.er1
27179 ac_status=$?
27180 grep -v '^ *+' conftest.er1 >conftest.err
27181 rm -f conftest.er1
27182 cat conftest.err >&5
27183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } && {
27185 test -z "$ac_c_werror_flag" ||
27186 test ! -s conftest.err
27187 } && test -s conftest.$ac_objext; then
27188 ac_hi=$ac_mid; break
7610e0c5 27189else
abe2eb5b
CR
27190 $as_echo "$as_me: failed program was:" >&5
27191sed 's/^/| /' conftest.$ac_ext >&5
27192
27193 ac_lo=`expr $ac_mid + 1`
27194 if test $ac_lo -le $ac_mid; then
27195 ac_lo= ac_hi=
27196 break
27197 fi
27198 ac_mid=`expr 2 '*' $ac_mid + 1`
27199fi
27200
27201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27202 done
27203else
27204 $as_echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h. */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h. */
27213$ac_includes_default
27214int
27215main ()
27216{
27217static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
27218test_array [0] = 0
27219
27220 ;
27221 return 0;
27222}
27223_ACEOF
27224rm -f conftest.$ac_objext
27225if { (ac_try="$ac_compile"
27226case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27231$as_echo "$ac_try_echo") >&5
27232 (eval "$ac_compile") 2>conftest.er1
27233 ac_status=$?
27234 grep -v '^ *+' conftest.er1 >conftest.err
27235 rm -f conftest.er1
27236 cat conftest.err >&5
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); } && {
27239 test -z "$ac_c_werror_flag" ||
27240 test ! -s conftest.err
27241 } && test -s conftest.$ac_objext; then
27242 ac_hi=-1 ac_mid=-1
27243 while :; do
27244 cat >conftest.$ac_ext <<_ACEOF
27245/* confdefs.h. */
27246_ACEOF
27247cat confdefs.h >>conftest.$ac_ext
27248cat >>conftest.$ac_ext <<_ACEOF
27249/* end confdefs.h. */
27250$ac_includes_default
27251int
27252main ()
27253{
27254static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
27255test_array [0] = 0
27256
27257 ;
27258 return 0;
27259}
27260_ACEOF
27261rm -f conftest.$ac_objext
27262if { (ac_try="$ac_compile"
27263case "(($ac_try" in
27264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27265 *) ac_try_echo=$ac_try;;
27266esac
27267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27268$as_echo "$ac_try_echo") >&5
27269 (eval "$ac_compile") 2>conftest.er1
27270 ac_status=$?
27271 grep -v '^ *+' conftest.er1 >conftest.err
27272 rm -f conftest.er1
27273 cat conftest.err >&5
27274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); } && {
27276 test -z "$ac_c_werror_flag" ||
27277 test ! -s conftest.err
27278 } && test -s conftest.$ac_objext; then
27279 ac_lo=$ac_mid; break
27280else
27281 $as_echo "$as_me: failed program was:" >&5
27282sed 's/^/| /' conftest.$ac_ext >&5
27283
27284 ac_hi=`expr '(' $ac_mid ')' - 1`
27285 if test $ac_mid -le $ac_hi; then
27286 ac_lo= ac_hi=
27287 break
27288 fi
27289 ac_mid=`expr 2 '*' $ac_mid`
27290fi
27291
27292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27293 done
27294else
27295 $as_echo "$as_me: failed program was:" >&5
27296sed 's/^/| /' conftest.$ac_ext >&5
27297
27298 ac_lo= ac_hi=
c920c360 27299fi
c920c360 27300
abe2eb5b 27301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610e0c5 27302fi
71412226 27303
abe2eb5b
CR
27304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27305# Binary search between lo and hi bounds.
27306while test "x$ac_lo" != "x$ac_hi"; do
27307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27308 cat >conftest.$ac_ext <<_ACEOF
27309/* confdefs.h. */
27310_ACEOF
27311cat confdefs.h >>conftest.$ac_ext
27312cat >>conftest.$ac_ext <<_ACEOF
27313/* end confdefs.h. */
27314$ac_includes_default
27315int
27316main ()
27317{
27318static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
27319test_array [0] = 0
2dead0c4 27320
abe2eb5b
CR
27321 ;
27322 return 0;
27323}
e3db237e 27324_ACEOF
abe2eb5b
CR
27325rm -f conftest.$ac_objext
27326if { (ac_try="$ac_compile"
27327case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27330esac
27331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27332$as_echo "$ac_try_echo") >&5
27333 (eval "$ac_compile") 2>conftest.er1
27334 ac_status=$?
27335 grep -v '^ *+' conftest.er1 >conftest.err
27336 rm -f conftest.er1
27337 cat conftest.err >&5
27338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } && {
27340 test -z "$ac_c_werror_flag" ||
27341 test ! -s conftest.err
27342 } && test -s conftest.$ac_objext; then
27343 ac_hi=$ac_mid
27344else
27345 $as_echo "$as_me: failed program was:" >&5
27346sed 's/^/| /' conftest.$ac_ext >&5
c920c360 27347
abe2eb5b 27348 ac_lo=`expr '(' $ac_mid ')' + 1`
c920c360
CR
27349fi
27350
abe2eb5b
CR
27351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27352done
27353case $ac_lo in
27354?*) ac_cv_sizeof_intmax_t=$ac_lo;;
27355'') if test "$ac_cv_type_intmax_t" = yes; then
27356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27359See \`config.log' for more details." >&5
27360$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27361See \`config.log' for more details." >&2;}
27362 { (exit 77); exit 77; }; }; }
27363 else
27364 ac_cv_sizeof_intmax_t=0
27365 fi ;;
27366esac
c920c360 27367else
abe2eb5b
CR
27368 cat >conftest.$ac_ext <<_ACEOF
27369/* confdefs.h. */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
e3db237e 27373/* end confdefs.h. */
abe2eb5b
CR
27374$ac_includes_default
27375static long int longval () { return (long int) (sizeof (intmax_t)); }
27376static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
27377#include <stdio.h>
2dead0c4 27378#include <stdlib.h>
abe2eb5b
CR
27379int
27380main ()
27381{
27382
27383 FILE *f = fopen ("conftest.val", "w");
27384 if (! f)
27385 return 1;
27386 if (((long int) (sizeof (intmax_t))) < 0)
27387 {
27388 long int i = longval ();
27389 if (i != ((long int) (sizeof (intmax_t))))
27390 return 1;
27391 fprintf (f, "%ld", i);
27392 }
27393 else
27394 {
27395 unsigned long int i = ulongval ();
27396 if (i != ((long int) (sizeof (intmax_t))))
27397 return 1;
27398 fprintf (f, "%lu", i);
27399 }
27400 /* Do not output a trailing newline, as this causes \r\n confusion
27401 on some platforms. */
27402 return ferror (f) || fclose (f) != 0;
2dead0c4 27403
abe2eb5b
CR
27404 ;
27405 return 0;
27406}
2dead0c4 27407_ACEOF
abe2eb5b
CR
27408rm -f conftest$ac_exeext
27409if { (ac_try="$ac_link"
27410case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27413esac
27414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27415$as_echo "$ac_try_echo") >&5
27416 (eval "$ac_link") 2>&5
27417 ac_status=$?
27418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27420 { (case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27423esac
27424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27425$as_echo "$ac_try_echo") >&5
27426 (eval "$ac_try") 2>&5
27427 ac_status=$?
27428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; }; then
27430 ac_cv_sizeof_intmax_t=`cat conftest.val`
2dead0c4 27431else
abe2eb5b
CR
27432 $as_echo "$as_me: program exited with status $ac_status" >&5
27433$as_echo "$as_me: failed program was:" >&5
27434sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 27435
abe2eb5b
CR
27436( exit $ac_status )
27437if test "$ac_cv_type_intmax_t" = yes; then
27438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27440{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
27441See \`config.log' for more details." >&5
27442$as_echo "$as_me: error: cannot compute sizeof (intmax_t)
27443See \`config.log' for more details." >&2;}
27444 { (exit 77); exit 77; }; }; }
27445 else
27446 ac_cv_sizeof_intmax_t=0
27447 fi
27448fi
27449rm -rf conftest.dSYM
27450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27451fi
27452rm -f conftest.val
2dead0c4 27453fi
abe2eb5b
CR
27454{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
27455$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
2dead0c4 27456
2dead0c4 27457
abe2eb5b
CR
27458
27459cat >>confdefs.h <<_ACEOF
27460#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
2dead0c4 27461_ACEOF
c920c360
CR
27462
27463
abe2eb5b
CR
27464
27465
27466{ $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
27467$as_echo_n "checking for struct termios.c_line... " >&6; }
27468if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
2dead0c4
CR
27469 $as_echo_n "(cached) " >&6
27470else
abe2eb5b
CR
27471 cat >conftest.$ac_ext <<_ACEOF
27472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
2dead0c4 27476/* end confdefs.h. */
abe2eb5b 27477
2dead0c4 27478#include <sys/types.h>
abe2eb5b
CR
27479#include <termios.h>
27480
27481
e3db237e
CR
27482int
27483main ()
27484{
abe2eb5b
CR
27485static struct termios ac_aggr;
27486if (ac_aggr.c_line)
27487return 0;
e3db237e
CR
27488 ;
27489 return 0;
27490}
7610e0c5 27491_ACEOF
abe2eb5b
CR
27492rm -f conftest.$ac_objext
27493if { (ac_try="$ac_compile"
27494case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27497esac
27498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27499$as_echo "$ac_try_echo") >&5
27500 (eval "$ac_compile") 2>conftest.er1
27501 ac_status=$?
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
27505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } && {
27507 test -z "$ac_c_werror_flag" ||
27508 test ! -s conftest.err
27509 } && test -s conftest.$ac_objext; then
27510 ac_cv_member_struct_termios_c_line=yes
e3db237e 27511else
abe2eb5b
CR
27512 $as_echo "$as_me: failed program was:" >&5
27513sed 's/^/| /' conftest.$ac_ext >&5
71412226 27514
abe2eb5b
CR
27515 cat >conftest.$ac_ext <<_ACEOF
27516/* confdefs.h. */
27517_ACEOF
27518cat confdefs.h >>conftest.$ac_ext
27519cat >>conftest.$ac_ext <<_ACEOF
e3db237e 27520/* end confdefs.h. */
c920c360 27521
c920c360 27522#include <sys/types.h>
abe2eb5b
CR
27523#include <termios.h>
27524
27525
27526int
27527main ()
e3db237e 27528{
abe2eb5b
CR
27529static struct termios ac_aggr;
27530if (sizeof ac_aggr.c_line)
27531return 0;
27532 ;
27533 return 0;
e3db237e
CR
27534}
27535_ACEOF
abe2eb5b
CR
27536rm -f conftest.$ac_objext
27537if { (ac_try="$ac_compile"
27538case "(($ac_try" in
27539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540 *) ac_try_echo=$ac_try;;
27541esac
27542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27543$as_echo "$ac_try_echo") >&5
27544 (eval "$ac_compile") 2>conftest.er1
27545 ac_status=$?
27546 grep -v '^ *+' conftest.er1 >conftest.err
27547 rm -f conftest.er1
27548 cat conftest.err >&5
27549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } && {
27551 test -z "$ac_c_werror_flag" ||
27552 test ! -s conftest.err
27553 } && test -s conftest.$ac_objext; then
27554 ac_cv_member_struct_termios_c_line=yes
e3db237e 27555else
abe2eb5b
CR
27556 $as_echo "$as_me: failed program was:" >&5
27557sed 's/^/| /' conftest.$ac_ext >&5
c920c360 27558
abe2eb5b 27559 ac_cv_member_struct_termios_c_line=no
2dead0c4 27560fi
2dead0c4 27561
abe2eb5b 27562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e3db237e 27563fi
c920c360 27564
abe2eb5b
CR
27565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27566fi
27567{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
27568$as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
27569if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
27570 cat >>confdefs.h <<\_ACEOF
27571#define TERMIOS_LDISC 1
27572_ACEOF
2dead0c4
CR
27573
27574fi
27575
27576
2dead0c4 27577
abe2eb5b
CR
27578{ $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
27579$as_echo_n "checking for struct termio.c_line... " >&6; }
27580if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
27581 $as_echo_n "(cached) " >&6
2dead0c4 27582else
abe2eb5b
CR
27583 cat >conftest.$ac_ext <<_ACEOF
27584/* confdefs.h. */
27585_ACEOF
27586cat confdefs.h >>conftest.$ac_ext
27587cat >>conftest.$ac_ext <<_ACEOF
27588/* end confdefs.h. */
2dead0c4 27589
abe2eb5b
CR
27590#include <sys/types.h>
27591#include <termio.h>
2dead0c4
CR
27592
27593
abe2eb5b
CR
27594int
27595main ()
27596{
27597static struct termio ac_aggr;
27598if (ac_aggr.c_line)
27599return 0;
27600 ;
27601 return 0;
27602}
e3db237e 27603_ACEOF
abe2eb5b
CR
27604rm -f conftest.$ac_objext
27605if { (ac_try="$ac_compile"
27606case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609esac
27610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27611$as_echo "$ac_try_echo") >&5
27612 (eval "$ac_compile") 2>conftest.er1
27613 ac_status=$?
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
27617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } && {
27619 test -z "$ac_c_werror_flag" ||
27620 test ! -s conftest.err
27621 } && test -s conftest.$ac_objext; then
27622 ac_cv_member_struct_termio_c_line=yes
27623else
27624 $as_echo "$as_me: failed program was:" >&5
27625sed 's/^/| /' conftest.$ac_ext >&5
c920c360 27626
abe2eb5b
CR
27627 cat >conftest.$ac_ext <<_ACEOF
27628/* confdefs.h. */
27629_ACEOF
27630cat confdefs.h >>conftest.$ac_ext
27631cat >>conftest.$ac_ext <<_ACEOF
27632/* end confdefs.h. */
2dead0c4 27633
2dead0c4 27634#include <sys/types.h>
abe2eb5b 27635#include <termio.h>
2dead0c4 27636
2dead0c4 27637
abe2eb5b
CR
27638int
27639main ()
27640{
27641static struct termio ac_aggr;
27642if (sizeof ac_aggr.c_line)
27643return 0;
27644 ;
27645 return 0;
27646}
27647_ACEOF
27648rm -f conftest.$ac_objext
27649if { (ac_try="$ac_compile"
27650case "(($ac_try" in
27651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652 *) ac_try_echo=$ac_try;;
27653esac
27654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27655$as_echo "$ac_try_echo") >&5
27656 (eval "$ac_compile") 2>conftest.er1
27657 ac_status=$?
27658 grep -v '^ *+' conftest.er1 >conftest.err
27659 rm -f conftest.er1
27660 cat conftest.err >&5
27661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } && {
27663 test -z "$ac_c_werror_flag" ||
27664 test ! -s conftest.err
27665 } && test -s conftest.$ac_objext; then
27666 ac_cv_member_struct_termio_c_line=yes
27667else
27668 $as_echo "$as_me: failed program was:" >&5
27669sed 's/^/| /' conftest.$ac_ext >&5
2dead0c4 27670
abe2eb5b
CR
27671 ac_cv_member_struct_termio_c_line=no
27672fi
2dead0c4 27673
abe2eb5b
CR
27674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27675fi
2dead0c4 27676
abe2eb5b
CR
27677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27678fi
27679{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
27680$as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
27681if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
27682 cat >>confdefs.h <<\_ACEOF
27683#define TERMIO_LDISC 1
27684_ACEOF
2dead0c4 27685
ccc6cda3
JA
27686fi
27687
a82a04b3
CR
27688
27689
abe2eb5b 27690{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
dd4f3dd8 27691$as_echo_n "checking for struct dirent.d_ino... " >&6; }
abe2eb5b 27692if test "${bash_cv_dirent_has_dino+set}" = set; then
dd4f3dd8 27693 $as_echo_n "(cached) " >&6
ccc6cda3 27694else
abe2eb5b
CR
27695 cat >conftest.$ac_ext <<_ACEOF
27696/* confdefs.h. */
27697_ACEOF
27698cat confdefs.h >>conftest.$ac_ext
27699cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 27700/* end confdefs.h. */
ccc6cda3
JA
27701
27702#include <stdio.h>
27703#include <sys/types.h>
27704#ifdef HAVE_UNISTD_H
27705# include <unistd.h>
27706#endif /* HAVE_UNISTD_H */
27707#if defined(HAVE_DIRENT_H)
27708# include <dirent.h>
27709#else
27710# define dirent direct
27711# ifdef HAVE_SYS_NDIR_H
27712# include <sys/ndir.h>
27713# endif /* SYSNDIR */
27714# ifdef HAVE_SYS_DIR_H
27715# include <sys/dir.h>
27716# endif /* SYSDIR */
27717# ifdef HAVE_NDIR_H
27718# include <ndir.h>
27719# endif
27720#endif /* HAVE_DIRENT_H */
27721
f73dda09
JA
27722int
27723main ()
27724{
ccc6cda3
JA
27725
27726struct dirent d; int z; z = d.d_ino;
27727
f73dda09
JA
27728 ;
27729 return 0;
27730}
27731_ACEOF
abe2eb5b
CR
27732rm -f conftest.$ac_objext
27733if { (ac_try="$ac_compile"
27734case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737esac
27738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27739$as_echo "$ac_try_echo") >&5
27740 (eval "$ac_compile") 2>conftest.er1
27741 ac_status=$?
27742 grep -v '^ *+' conftest.er1 >conftest.err
27743 rm -f conftest.er1
27744 cat conftest.err >&5
27745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } && {
27747 test -z "$ac_c_werror_flag" ||
27748 test ! -s conftest.err
27749 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
27750 bash_cv_dirent_has_dino=yes
27751else
abe2eb5b
CR
27752 $as_echo "$as_me: failed program was:" >&5
27753sed 's/^/| /' conftest.$ac_ext >&5
27754
27755 bash_cv_dirent_has_dino=no
ccc6cda3 27756fi
abe2eb5b 27757
b709b946 27758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
27759fi
27760
abe2eb5b 27761{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
dd4f3dd8 27762$as_echo "$bash_cv_dirent_has_dino" >&6; }
ccc6cda3 27763if test $bash_cv_dirent_has_dino = yes; then
abe2eb5b
CR
27764cat >>confdefs.h <<\_ACEOF
27765#define HAVE_STRUCT_DIRENT_D_INO 1
27766_ACEOF
ccc6cda3
JA
27767
27768fi
27769
a82a04b3 27770
abe2eb5b 27771{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
dd4f3dd8 27772$as_echo_n "checking for struct dirent.d_fileno... " >&6; }
abe2eb5b 27773if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
dd4f3dd8 27774 $as_echo_n "(cached) " >&6
d166f048 27775else
abe2eb5b
CR
27776 cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 27781/* end confdefs.h. */
d166f048
JA
27782
27783#include <stdio.h>
27784#include <sys/types.h>
27785#ifdef HAVE_UNISTD_H
27786# include <unistd.h>
27787#endif /* HAVE_UNISTD_H */
27788#if defined(HAVE_DIRENT_H)
27789# include <dirent.h>
27790#else
27791# define dirent direct
27792# ifdef HAVE_SYS_NDIR_H
27793# include <sys/ndir.h>
27794# endif /* SYSNDIR */
27795# ifdef HAVE_SYS_DIR_H
27796# include <sys/dir.h>
27797# endif /* SYSDIR */
27798# ifdef HAVE_NDIR_H
27799# include <ndir.h>
27800# endif
27801#endif /* HAVE_DIRENT_H */
27802
f73dda09
JA
27803int
27804main ()
27805{
d166f048
JA
27806
27807struct dirent d; int z; z = d.d_fileno;
27808
f73dda09
JA
27809 ;
27810 return 0;
27811}
5c26afb8 27812_ACEOF
abe2eb5b
CR
27813rm -f conftest.$ac_objext
27814if { (ac_try="$ac_compile"
27815case "(($ac_try" in
27816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27817 *) ac_try_echo=$ac_try;;
27818esac
27819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27820$as_echo "$ac_try_echo") >&5
27821 (eval "$ac_compile") 2>conftest.er1
27822 ac_status=$?
27823 grep -v '^ *+' conftest.er1 >conftest.err
27824 rm -f conftest.er1
27825 cat conftest.err >&5
27826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } && {
27828 test -z "$ac_c_werror_flag" ||
27829 test ! -s conftest.err
27830 } && test -s conftest.$ac_objext; then
d166f048
JA
27831 bash_cv_dirent_has_d_fileno=yes
27832else
abe2eb5b
CR
27833 $as_echo "$as_me: failed program was:" >&5
27834sed 's/^/| /' conftest.$ac_ext >&5
27835
27836 bash_cv_dirent_has_d_fileno=no
d166f048 27837fi
abe2eb5b 27838
b709b946 27839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
27840fi
27841
abe2eb5b 27842{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
dd4f3dd8 27843$as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
d166f048 27844if test $bash_cv_dirent_has_d_fileno = yes; then
abe2eb5b
CR
27845cat >>confdefs.h <<\_ACEOF
27846#define HAVE_STRUCT_DIRENT_D_FILENO 1
27847_ACEOF
4931aca6
CR
27848
27849fi
27850
a82a04b3 27851
abe2eb5b 27852{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
dd4f3dd8 27853$as_echo_n "checking for struct dirent.d_namlen... " >&6; }
abe2eb5b 27854if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
dd4f3dd8 27855 $as_echo_n "(cached) " >&6
4931aca6 27856else
abe2eb5b
CR
27857 cat >conftest.$ac_ext <<_ACEOF
27858/* confdefs.h. */
27859_ACEOF
27860cat confdefs.h >>conftest.$ac_ext
27861cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 27862/* end confdefs.h. */
4931aca6
CR
27863
27864#include <stdio.h>
27865#include <sys/types.h>
27866#ifdef HAVE_UNISTD_H
27867# include <unistd.h>
27868#endif /* HAVE_UNISTD_H */
27869#if defined(HAVE_DIRENT_H)
27870# include <dirent.h>
27871#else
27872# define dirent direct
27873# ifdef HAVE_SYS_NDIR_H
27874# include <sys/ndir.h>
27875# endif /* SYSNDIR */
27876# ifdef HAVE_SYS_DIR_H
27877# include <sys/dir.h>
27878# endif /* SYSDIR */
27879# ifdef HAVE_NDIR_H
27880# include <ndir.h>
27881# endif
27882#endif /* HAVE_DIRENT_H */
27883
27884int
27885main ()
27886{
27887
27888struct dirent d; int z; z = d.d_namlen;
27889
27890 ;
27891 return 0;
27892}
27893_ACEOF
abe2eb5b
CR
27894rm -f conftest.$ac_objext
27895if { (ac_try="$ac_compile"
27896case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27899esac
27900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27901$as_echo "$ac_try_echo") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27903 ac_status=$?
27904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
27907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
4931aca6
CR
27912 bash_cv_dirent_has_d_namlen=yes
27913else
abe2eb5b
CR
27914 $as_echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917 bash_cv_dirent_has_d_namlen=no
4931aca6 27918fi
abe2eb5b 27919
b709b946 27920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931aca6
CR
27921fi
27922
abe2eb5b 27923{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
dd4f3dd8 27924$as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
4931aca6 27925if test $bash_cv_dirent_has_d_namlen = yes; then
abe2eb5b
CR
27926cat >>confdefs.h <<\_ACEOF
27927#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
27928_ACEOF
d166f048
JA
27929
27930fi
27931
abe2eb5b 27932{ $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
dd4f3dd8 27933$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
abe2eb5b 27934if test "${bash_cv_struct_winsize_header+set}" = set; then
dd4f3dd8 27935 $as_echo_n "(cached) " >&6
d166f048 27936else
abe2eb5b
CR
27937 cat >conftest.$ac_ext <<_ACEOF
27938/* confdefs.h. */
27939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 27942/* end confdefs.h. */
d166f048
JA
27943#include <sys/types.h>
27944#include <sys/ioctl.h>
f73dda09
JA
27945int
27946main ()
27947{
d166f048 27948struct winsize x;
f73dda09
JA
27949 ;
27950 return 0;
27951}
27952_ACEOF
abe2eb5b
CR
27953rm -f conftest.$ac_objext
27954if { (ac_try="$ac_compile"
27955case "(($ac_try" in
27956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957 *) ac_try_echo=$ac_try;;
27958esac
27959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27960$as_echo "$ac_try_echo") >&5
27961 (eval "$ac_compile") 2>conftest.er1
27962 ac_status=$?
27963 grep -v '^ *+' conftest.er1 >conftest.err
27964 rm -f conftest.er1
27965 cat conftest.err >&5
27966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } && {
27968 test -z "$ac_c_werror_flag" ||
27969 test ! -s conftest.err
27970 } && test -s conftest.$ac_objext; then
cce855bc
JA
27971 bash_cv_struct_winsize_header=ioctl_h
27972else
abe2eb5b
CR
27973 $as_echo "$as_me: failed program was:" >&5
27974sed 's/^/| /' conftest.$ac_ext >&5
27975
27976 cat >conftest.$ac_ext <<_ACEOF
27977/* confdefs.h. */
27978_ACEOF
27979cat confdefs.h >>conftest.$ac_ext
27980cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 27981/* end confdefs.h. */
cce855bc
JA
27982#include <sys/types.h>
27983#include <termios.h>
f73dda09
JA
27984int
27985main ()
27986{
cce855bc 27987struct winsize x;
f73dda09
JA
27988 ;
27989 return 0;
27990}
27991_ACEOF
abe2eb5b
CR
27992rm -f conftest.$ac_objext
27993if { (ac_try="$ac_compile"
27994case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997esac
27998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27999$as_echo "$ac_try_echo") >&5
28000 (eval "$ac_compile") 2>conftest.er1
28001 ac_status=$?
28002 grep -v '^ *+' conftest.er1 >conftest.err
28003 rm -f conftest.er1
28004 cat conftest.err >&5
28005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } && {
28007 test -z "$ac_c_werror_flag" ||
28008 test ! -s conftest.err
28009 } && test -s conftest.$ac_objext; then
cce855bc 28010 bash_cv_struct_winsize_header=termios_h
d166f048 28011else
abe2eb5b
CR
28012 $as_echo "$as_me: failed program was:" >&5
28013sed 's/^/| /' conftest.$ac_ext >&5
28014
28015 bash_cv_struct_winsize_header=other
cce855bc 28016fi
abe2eb5b 28017
b709b946 28018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 28019
d166f048 28020fi
abe2eb5b 28021
b709b946 28022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
28023fi
28024
cce855bc 28025if test $bash_cv_struct_winsize_header = ioctl_h; then
abe2eb5b 28026 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
dd4f3dd8 28027$as_echo "sys/ioctl.h" >&6; }
abe2eb5b
CR
28028 cat >>confdefs.h <<\_ACEOF
28029#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
28030_ACEOF
d166f048 28031
cce855bc 28032elif test $bash_cv_struct_winsize_header = termios_h; then
abe2eb5b 28033 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
dd4f3dd8 28034$as_echo "termios.h" >&6; }
abe2eb5b
CR
28035 cat >>confdefs.h <<\_ACEOF
28036#define STRUCT_WINSIZE_IN_TERMIOS 1
28037_ACEOF
cce855bc
JA
28038
28039else
abe2eb5b 28040 { $as_echo "$as_me:$LINENO: result: not found" >&5
dd4f3dd8 28041$as_echo "not found" >&6; }
d166f048
JA
28042fi
28043
abe2eb5b 28044{ $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
dd4f3dd8 28045$as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
abe2eb5b 28046if test "${bash_cv_struct_timeval+set}" = set; then
dd4f3dd8 28047 $as_echo_n "(cached) " >&6
bb70624e 28048else
f73dda09 28049
abe2eb5b
CR
28050cat >conftest.$ac_ext <<_ACEOF
28051/* confdefs.h. */
28052_ACEOF
28053cat confdefs.h >>conftest.$ac_ext
28054cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 28055/* end confdefs.h. */
bb70624e 28056#include <sys/time.h>
f73dda09
JA
28057
28058_ACEOF
bb70624e 28059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 28060 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
28061 bash_cv_struct_timeval=yes
28062else
abe2eb5b
CR
28063 cat >conftest.$ac_ext <<_ACEOF
28064/* confdefs.h. */
28065_ACEOF
28066cat confdefs.h >>conftest.$ac_ext
28067cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 28068/* end confdefs.h. */
bb70624e 28069#include <time.h>
f73dda09
JA
28070
28071_ACEOF
bb70624e 28072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 28073 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
28074 bash_cv_struct_timeval=yes
28075else
bb70624e
JA
28076 bash_cv_struct_timeval=no
28077fi
28078rm -f conftest*
28079
28080fi
28081rm -f conftest*
28082
a82a04b3 28083
bb70624e
JA
28084fi
28085
abe2eb5b 28086{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
dd4f3dd8 28087$as_echo "$bash_cv_struct_timeval" >&6; }
bb70624e 28088if test $bash_cv_struct_timeval = yes; then
abe2eb5b
CR
28089 cat >>confdefs.h <<\_ACEOF
28090#define HAVE_TIMEVAL 1
28091_ACEOF
28092
28093fi
28094
28095{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
28096$as_echo_n "checking for struct stat.st_blocks... " >&6; }
28097if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
28098 $as_echo_n "(cached) " >&6
28099else
28100 cat >conftest.$ac_ext <<_ACEOF
28101/* confdefs.h. */
28102_ACEOF
28103cat confdefs.h >>conftest.$ac_ext
28104cat >>conftest.$ac_ext <<_ACEOF
28105/* end confdefs.h. */
28106$ac_includes_default
28107int
28108main ()
28109{
28110static struct stat ac_aggr;
28111if (ac_aggr.st_blocks)
28112return 0;
28113 ;
28114 return 0;
28115}
28116_ACEOF
28117rm -f conftest.$ac_objext
28118if { (ac_try="$ac_compile"
28119case "(($ac_try" in
28120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121 *) ac_try_echo=$ac_try;;
28122esac
28123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28124$as_echo "$ac_try_echo") >&5
28125 (eval "$ac_compile") 2>conftest.er1
28126 ac_status=$?
28127 grep -v '^ *+' conftest.er1 >conftest.err
28128 rm -f conftest.er1
28129 cat conftest.err >&5
28130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); } && {
28132 test -z "$ac_c_werror_flag" ||
28133 test ! -s conftest.err
28134 } && test -s conftest.$ac_objext; then
28135 ac_cv_member_struct_stat_st_blocks=yes
28136else
28137 $as_echo "$as_me: failed program was:" >&5
28138sed 's/^/| /' conftest.$ac_ext >&5
28139
28140 cat >conftest.$ac_ext <<_ACEOF
28141/* confdefs.h. */
28142_ACEOF
28143cat confdefs.h >>conftest.$ac_ext
28144cat >>conftest.$ac_ext <<_ACEOF
28145/* end confdefs.h. */
28146$ac_includes_default
28147int
28148main ()
28149{
28150static struct stat ac_aggr;
28151if (sizeof ac_aggr.st_blocks)
28152return 0;
28153 ;
28154 return 0;
28155}
28156_ACEOF
28157rm -f conftest.$ac_objext
28158if { (ac_try="$ac_compile"
28159case "(($ac_try" in
28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161 *) ac_try_echo=$ac_try;;
28162esac
28163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28164$as_echo "$ac_try_echo") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } && {
28172 test -z "$ac_c_werror_flag" ||
28173 test ! -s conftest.err
28174 } && test -s conftest.$ac_objext; then
28175 ac_cv_member_struct_stat_st_blocks=yes
28176else
28177 $as_echo "$as_me: failed program was:" >&5
28178sed 's/^/| /' conftest.$ac_ext >&5
28179
28180 ac_cv_member_struct_stat_st_blocks=no
28181fi
b709b946 28182
abe2eb5b 28183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e4a95c7 28184fi
b709b946 28185
abe2eb5b
CR
28186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28187fi
28188{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
28189$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
28190if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
f73dda09 28191
a82a04b3 28192cat >>confdefs.h <<_ACEOF
f73dda09 28193#define HAVE_STRUCT_STAT_ST_BLOCKS 1
a82a04b3
CR
28194_ACEOF
28195
f73dda09
JA
28196
28197fi
d166f048 28198
abe2eb5b 28199{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
dd4f3dd8 28200$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
abe2eb5b 28201if test "${ac_cv_struct_tm+set}" = set; then
dd4f3dd8 28202 $as_echo_n "(cached) " >&6
7117c2d2 28203else
abe2eb5b
CR
28204 cat >conftest.$ac_ext <<_ACEOF
28205/* confdefs.h. */
28206_ACEOF
28207cat confdefs.h >>conftest.$ac_ext
28208cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 28209/* end confdefs.h. */
7117c2d2
JA
28210#include <sys/types.h>
28211#include <time.h>
28212
28213int
28214main ()
28215{
dd4f3dd8
CR
28216struct tm tm;
28217 int *p = &tm.tm_sec;
28218 return !p;
7117c2d2
JA
28219 ;
28220 return 0;
28221}
28222_ACEOF
abe2eb5b
CR
28223rm -f conftest.$ac_objext
28224if { (ac_try="$ac_compile"
28225case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28228esac
28229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28230$as_echo "$ac_try_echo") >&5
28231 (eval "$ac_compile") 2>conftest.er1
28232 ac_status=$?
28233 grep -v '^ *+' conftest.er1 >conftest.err
28234 rm -f conftest.er1
28235 cat conftest.err >&5
28236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } && {
28238 test -z "$ac_c_werror_flag" ||
28239 test ! -s conftest.err
28240 } && test -s conftest.$ac_objext; then
7117c2d2
JA
28241 ac_cv_struct_tm=time.h
28242else
abe2eb5b
CR
28243 $as_echo "$as_me: failed program was:" >&5
28244sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ac_cv_struct_tm=sys/time.h
7117c2d2 28247fi
abe2eb5b 28248
b709b946 28249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 28250fi
abe2eb5b 28251{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
dd4f3dd8 28252$as_echo "$ac_cv_struct_tm" >&6; }
7117c2d2
JA
28253if test $ac_cv_struct_tm = sys/time.h; then
28254
abe2eb5b
CR
28255cat >>confdefs.h <<\_ACEOF
28256#define TM_IN_SYS_TIME 1
28257_ACEOF
7117c2d2
JA
28258
28259fi
28260
abe2eb5b
CR
28261{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
28262$as_echo_n "checking for struct tm.tm_zone... " >&6; }
28263if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
28264 $as_echo_n "(cached) " >&6
28265else
28266 cat >conftest.$ac_ext <<_ACEOF
28267/* confdefs.h. */
28268_ACEOF
28269cat confdefs.h >>conftest.$ac_ext
28270cat >>conftest.$ac_ext <<_ACEOF
28271/* end confdefs.h. */
28272#include <sys/types.h>
e3db237e
CR
28273#include <$ac_cv_struct_tm>
28274
abe2eb5b
CR
28275
28276int
28277main ()
28278{
28279static struct tm ac_aggr;
28280if (ac_aggr.tm_zone)
28281return 0;
28282 ;
28283 return 0;
28284}
28285_ACEOF
28286rm -f conftest.$ac_objext
28287if { (ac_try="$ac_compile"
28288case "(($ac_try" in
28289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290 *) ac_try_echo=$ac_try;;
28291esac
28292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28293$as_echo "$ac_try_echo") >&5
28294 (eval "$ac_compile") 2>conftest.er1
28295 ac_status=$?
28296 grep -v '^ *+' conftest.er1 >conftest.err
28297 rm -f conftest.er1
28298 cat conftest.err >&5
28299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } && {
28301 test -z "$ac_c_werror_flag" ||
28302 test ! -s conftest.err
28303 } && test -s conftest.$ac_objext; then
28304 ac_cv_member_struct_tm_tm_zone=yes
28305else
28306 $as_echo "$as_me: failed program was:" >&5
28307sed 's/^/| /' conftest.$ac_ext >&5
28308
28309 cat >conftest.$ac_ext <<_ACEOF
28310/* confdefs.h. */
28311_ACEOF
28312cat confdefs.h >>conftest.$ac_ext
28313cat >>conftest.$ac_ext <<_ACEOF
28314/* end confdefs.h. */
28315#include <sys/types.h>
28316#include <$ac_cv_struct_tm>
28317
28318
28319int
28320main ()
28321{
28322static struct tm ac_aggr;
28323if (sizeof ac_aggr.tm_zone)
28324return 0;
28325 ;
28326 return 0;
28327}
28328_ACEOF
28329rm -f conftest.$ac_objext
28330if { (ac_try="$ac_compile"
28331case "(($ac_try" in
28332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333 *) ac_try_echo=$ac_try;;
28334esac
28335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28336$as_echo "$ac_try_echo") >&5
28337 (eval "$ac_compile") 2>conftest.er1
28338 ac_status=$?
28339 grep -v '^ *+' conftest.er1 >conftest.err
28340 rm -f conftest.er1
28341 cat conftest.err >&5
28342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } && {
28344 test -z "$ac_c_werror_flag" ||
28345 test ! -s conftest.err
28346 } && test -s conftest.$ac_objext; then
28347 ac_cv_member_struct_tm_tm_zone=yes
28348else
28349 $as_echo "$as_me: failed program was:" >&5
28350sed 's/^/| /' conftest.$ac_ext >&5
28351
28352 ac_cv_member_struct_tm_tm_zone=no
28353fi
28354
28355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28356fi
28357
28358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359fi
28360{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
28361$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
28362if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
d3ad40de
CR
28363
28364cat >>confdefs.h <<_ACEOF
28365#define HAVE_STRUCT_TM_TM_ZONE 1
28366_ACEOF
28367
28368
28369fi
28370
28371if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
28372
abe2eb5b
CR
28373cat >>confdefs.h <<\_ACEOF
28374#define HAVE_TM_ZONE 1
28375_ACEOF
d3ad40de
CR
28376
28377else
abe2eb5b
CR
28378 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
28379$as_echo_n "checking whether tzname is declared... " >&6; }
28380if test "${ac_cv_have_decl_tzname+set}" = set; then
28381 $as_echo_n "(cached) " >&6
28382else
28383 cat >conftest.$ac_ext <<_ACEOF
28384/* confdefs.h. */
28385_ACEOF
28386cat confdefs.h >>conftest.$ac_ext
28387cat >>conftest.$ac_ext <<_ACEOF
28388/* end confdefs.h. */
28389#include <time.h>
28390
28391int
28392main ()
28393{
28394#ifndef tzname
28395 (void) tzname;
28396#endif
28397
28398 ;
28399 return 0;
28400}
28401_ACEOF
28402rm -f conftest.$ac_objext
28403if { (ac_try="$ac_compile"
28404case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28407esac
28408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28409$as_echo "$ac_try_echo") >&5
28410 (eval "$ac_compile") 2>conftest.er1
28411 ac_status=$?
28412 grep -v '^ *+' conftest.er1 >conftest.err
28413 rm -f conftest.er1
28414 cat conftest.err >&5
28415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); } && {
28417 test -z "$ac_c_werror_flag" ||
28418 test ! -s conftest.err
28419 } && test -s conftest.$ac_objext; then
28420 ac_cv_have_decl_tzname=yes
7117c2d2 28421else
abe2eb5b
CR
28422 $as_echo "$as_me: failed program was:" >&5
28423sed 's/^/| /' conftest.$ac_ext >&5
28424
28425 ac_cv_have_decl_tzname=no
28426fi
28427
28428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e3db237e 28429fi
abe2eb5b
CR
28430{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
28431$as_echo "$ac_cv_have_decl_tzname" >&6; }
28432if test "x$ac_cv_have_decl_tzname" = x""yes; then
e3db237e 28433
b709b946 28434cat >>confdefs.h <<_ACEOF
abe2eb5b
CR
28435#define HAVE_DECL_TZNAME 1
28436_ACEOF
28437
28438
28439else
28440 cat >>confdefs.h <<_ACEOF
28441#define HAVE_DECL_TZNAME 0
9d6e5e30 28442_ACEOF
9d6e5e30 28443
abe2eb5b
CR
28444
28445fi
28446
28447
28448 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
dd4f3dd8 28449$as_echo_n "checking for tzname... " >&6; }
abe2eb5b 28450if test "${ac_cv_var_tzname+set}" = set; then
dd4f3dd8 28451 $as_echo_n "(cached) " >&6
9d6e5e30 28452else
abe2eb5b
CR
28453 cat >conftest.$ac_ext <<_ACEOF
28454/* confdefs.h. */
28455_ACEOF
28456cat confdefs.h >>conftest.$ac_ext
28457cat >>conftest.$ac_ext <<_ACEOF
9d6e5e30
CR
28458/* end confdefs.h. */
28459#include <time.h>
b709b946
CR
28460#if !HAVE_DECL_TZNAME
28461extern char *tzname[];
28462#endif
9d6e5e30 28463
b709b946
CR
28464int
28465main ()
28466{
28467return tzname[0][0];
28468 ;
28469 return 0;
28470}
28471_ACEOF
abe2eb5b
CR
28472rm -f conftest.$ac_objext conftest$ac_exeext
28473if { (ac_try="$ac_link"
28474case "(($ac_try" in
28475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28476 *) ac_try_echo=$ac_try;;
28477esac
28478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28479$as_echo "$ac_try_echo") >&5
28480 (eval "$ac_link") 2>conftest.er1
28481 ac_status=$?
28482 grep -v '^ *+' conftest.er1 >conftest.err
28483 rm -f conftest.er1
28484 cat conftest.err >&5
28485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); } && {
28487 test -z "$ac_c_werror_flag" ||
28488 test ! -s conftest.err
28489 } && test -s conftest$ac_exeext && {
28490 test "$cross_compiling" = yes ||
28491 $as_test_x conftest$ac_exeext
28492 }; then
b709b946
CR
28493 ac_cv_var_tzname=yes
28494else
abe2eb5b
CR
28495 $as_echo "$as_me: failed program was:" >&5
28496sed 's/^/| /' conftest.$ac_ext >&5
28497
28498 ac_cv_var_tzname=no
b709b946 28499fi
abe2eb5b
CR
28500
28501rm -rf conftest.dSYM
28502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28503 conftest$ac_exeext conftest.$ac_ext
b709b946 28504fi
abe2eb5b 28505{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
dd4f3dd8 28506$as_echo "$ac_cv_var_tzname" >&6; }
b709b946
CR
28507 if test $ac_cv_var_tzname = yes; then
28508
abe2eb5b
CR
28509cat >>confdefs.h <<\_ACEOF
28510#define HAVE_TZNAME 1
28511_ACEOF
b709b946
CR
28512
28513 fi
28514fi
28515
abe2eb5b 28516{ $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
dd4f3dd8 28517$as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
abe2eb5b 28518if test "${bash_cv_struct_timezone+set}" = set; then
dd4f3dd8 28519 $as_echo_n "(cached) " >&6
b709b946
CR
28520else
28521
abe2eb5b
CR
28522cat >conftest.$ac_ext <<_ACEOF
28523/* confdefs.h. */
28524_ACEOF
28525cat confdefs.h >>conftest.$ac_ext
28526cat >>conftest.$ac_ext <<_ACEOF
b709b946
CR
28527/* end confdefs.h. */
28528#include <sys/time.h>
28529
28530_ACEOF
28531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 28532 $EGREP "struct timezone" >/dev/null 2>&1; then
b709b946
CR
28533 bash_cv_struct_timezone=yes
28534else
abe2eb5b
CR
28535 cat >conftest.$ac_ext <<_ACEOF
28536/* confdefs.h. */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
b709b946
CR
28540/* end confdefs.h. */
28541#include <time.h>
28542
28543_ACEOF
28544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 28545 $EGREP "struct timezone" >/dev/null 2>&1; then
d3a24ed2
CR
28546 bash_cv_struct_timezone=yes
28547else
28548 bash_cv_struct_timezone=no
28549fi
28550rm -f conftest*
28551
28552fi
28553rm -f conftest*
28554
a82a04b3 28555
d3a24ed2
CR
28556fi
28557
abe2eb5b 28558{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
dd4f3dd8 28559$as_echo "$bash_cv_struct_timezone" >&6; }
d3a24ed2 28560if test $bash_cv_struct_timezone = yes; then
abe2eb5b
CR
28561 cat >>confdefs.h <<\_ACEOF
28562#define HAVE_STRUCT_TIMEZONE 1
28563_ACEOF
d3a24ed2
CR
28564
28565fi
28566
a82a04b3 28567
abe2eb5b 28568{ $as_echo "$as_me:$LINENO: checking for offset of exit status in return status from wait" >&5
7d92f73f 28569$as_echo_n "checking for offset of exit status in return status from wait... " >&6; }
abe2eb5b 28570if test "${bash_cv_wexitstatus_offset+set}" = set; then
7d92f73f
CR
28571 $as_echo_n "(cached) " >&6
28572else
abe2eb5b
CR
28573 if test "$cross_compiling" = yes; then
28574 { $as_echo "$as_me:$LINENO: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&5
7d92f73f
CR
28575$as_echo "$as_me: WARNING: cannot check WEXITSTATUS offset if cross compiling -- defaulting to 0" >&2;}
28576 bash_cv_wexitstatus_offset=0
28577
28578else
abe2eb5b
CR
28579 cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h. */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
71412226 28584/* end confdefs.h. */
7d92f73f
CR
28585
28586#include <stdlib.h>
28587#include <unistd.h>
28588
28589#include <sys/wait.h>
28590
28591main(c, v)
28592 int c;
28593 char **v;
28594{
28595 pid_t pid, p;
28596 int s, i, n;
28597
28598 s = 0;
28599 pid = fork();
28600 if (pid == 0)
28601 exit (42);
28602
28603 /* wait for the process */
28604 p = wait(&s);
28605 if (p != pid)
28606 exit (255);
28607
28608 /* crack s */
28609 for (i = 0; i < (sizeof(s) - 8); i++)
28610 {
28611 n = (s >> i) & 0xff;
28612 if (n == 42)
28613 exit (i);
28614 }
28615
28616 exit (254);
28617}
28618
28619_ACEOF
abe2eb5b
CR
28620rm -f conftest$ac_exeext
28621if { (ac_try="$ac_link"
28622case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28625esac
28626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28627$as_echo "$ac_try_echo") >&5
28628 (eval "$ac_link") 2>&5
28629 ac_status=$?
28630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28632 { (case "(($ac_try" in
28633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634 *) ac_try_echo=$ac_try;;
28635esac
28636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28637$as_echo "$ac_try_echo") >&5
28638 (eval "$ac_try") 2>&5
28639 ac_status=$?
28640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
7d92f73f
CR
28642 bash_cv_wexitstatus_offset=0
28643else
abe2eb5b
CR
28644 $as_echo "$as_me: program exited with status $ac_status" >&5
28645$as_echo "$as_me: failed program was:" >&5
28646sed 's/^/| /' conftest.$ac_ext >&5
28647
28648( exit $ac_status )
28649bash_cv_wexitstatus_offset=$?
7d92f73f 28650fi
abe2eb5b
CR
28651rm -rf conftest.dSYM
28652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7d92f73f
CR
28653fi
28654
abe2eb5b 28655
7d92f73f
CR
28656fi
28657
28658if test "$bash_cv_wexitstatus_offset" -gt 32 ; then
abe2eb5b 28659 { $as_echo "$as_me:$LINENO: WARNING: bad exit status from test program -- defaulting to 0" >&5
7d92f73f
CR
28660$as_echo "$as_me: WARNING: bad exit status from test program -- defaulting to 0" >&2;}
28661 bash_cv_wexitstatus_offset=0
28662fi
abe2eb5b 28663{ $as_echo "$as_me:$LINENO: result: $bash_cv_wexitstatus_offset" >&5
7d92f73f
CR
28664$as_echo "$bash_cv_wexitstatus_offset" >&6; }
28665
28666cat >>confdefs.h <<_ACEOF
28667#define WEXITSTATUS_OFFSET $bash_cv_wexitstatus_offset
28668_ACEOF
28669
28670
28671
abe2eb5b 28672{ $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
dd4f3dd8 28673$as_echo_n "checking for the existence of strsignal... " >&6; }
abe2eb5b 28674if test "${bash_cv_have_strsignal+set}" = set; then
dd4f3dd8 28675 $as_echo_n "(cached) " >&6
ccc6cda3 28676else
abe2eb5b
CR
28677 cat >conftest.$ac_ext <<_ACEOF
28678/* confdefs.h. */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 28682/* end confdefs.h. */
ccc6cda3
JA
28683#include <sys/types.h>
28684#include <signal.h>
f73dda09
JA
28685int
28686main ()
28687{
ccc6cda3 28688char *s = (char *)strsignal(2);
2dead0c4
CR
28689 ;
28690 return 0;
28691}
28692_ACEOF
abe2eb5b
CR
28693rm -f conftest.$ac_objext conftest$ac_exeext
28694if { (ac_try="$ac_link"
28695case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698esac
28699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28700$as_echo "$ac_try_echo") >&5
28701 (eval "$ac_link") 2>conftest.er1
28702 ac_status=$?
28703 grep -v '^ *+' conftest.er1 >conftest.err
28704 rm -f conftest.er1
28705 cat conftest.err >&5
28706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } && {
28708 test -z "$ac_c_werror_flag" ||
28709 test ! -s conftest.err
28710 } && test -s conftest$ac_exeext && {
28711 test "$cross_compiling" = yes ||
28712 $as_test_x conftest$ac_exeext
28713 }; then
ccc6cda3
JA
28714 bash_cv_have_strsignal=yes
28715else
abe2eb5b
CR
28716 $as_echo "$as_me: failed program was:" >&5
28717sed 's/^/| /' conftest.$ac_ext >&5
28718
28719 bash_cv_have_strsignal=no
ccc6cda3 28720fi
abe2eb5b
CR
28721
28722rm -rf conftest.dSYM
28723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28724 conftest$ac_exeext conftest.$ac_ext
ccc6cda3
JA
28725fi
28726
abe2eb5b 28727{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
dd4f3dd8 28728$as_echo "$bash_cv_have_strsignal" >&6; }
ccc6cda3 28729if test $bash_cv_have_strsignal = yes; then
abe2eb5b
CR
28730cat >>confdefs.h <<\_ACEOF
28731#define HAVE_STRSIGNAL 1
28732_ACEOF
ccc6cda3
JA
28733
28734fi
28735
abe2eb5b 28736{ $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
dd4f3dd8 28737$as_echo_n "checking if opendir() opens non-directories... " >&6; }
abe2eb5b 28738if test "${bash_cv_opendir_not_robust+set}" = set; then
dd4f3dd8 28739 $as_echo_n "(cached) " >&6
ccc6cda3 28740else
abe2eb5b
CR
28741 if test "$cross_compiling" = yes; then
28742 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
dd4f3dd8 28743$as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
28744 bash_cv_opendir_not_robust=no
28745
ccc6cda3 28746else
abe2eb5b
CR
28747 cat >conftest.$ac_ext <<_ACEOF
28748/* confdefs.h. */
28749_ACEOF
28750cat confdefs.h >>conftest.$ac_ext
28751cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 28752/* end confdefs.h. */
ccc6cda3
JA
28753
28754#include <stdio.h>
28755#include <sys/types.h>
28756#include <fcntl.h>
28757#ifdef HAVE_UNISTD_H
28758# include <unistd.h>
28759#endif /* HAVE_UNISTD_H */
28760#if defined(HAVE_DIRENT_H)
28761# include <dirent.h>
28762#else
28763# define dirent direct
28764# ifdef HAVE_SYS_NDIR_H
28765# include <sys/ndir.h>
28766# endif /* SYSNDIR */
28767# ifdef HAVE_SYS_DIR_H
28768# include <sys/dir.h>
28769# endif /* SYSDIR */
28770# ifdef HAVE_NDIR_H
28771# include <ndir.h>
28772# endif
28773#endif /* HAVE_DIRENT_H */
28774main()
28775{
28776DIR *dir;
bb70624e 28777int fd, err;
30915f17 28778err = mkdir("bash-aclocal", 0700);
bb70624e
JA
28779if (err < 0) {
28780 perror("mkdir");
28781 exit(1);
28782}
30915f17
CR
28783unlink("bash-aclocal/not_a_directory");
28784fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
ccc6cda3
JA
28785write(fd, "\n", 1);
28786close(fd);
30915f17
CR
28787dir = opendir("bash-aclocal/not_a_directory");
28788unlink("bash-aclocal/not_a_directory");
28789rmdir("bash-aclocal");
ccc6cda3
JA
28790exit (dir == 0);
28791}
f73dda09 28792_ACEOF
abe2eb5b
CR
28793rm -f conftest$ac_exeext
28794if { (ac_try="$ac_link"
28795case "(($ac_try" in
28796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797 *) ac_try_echo=$ac_try;;
28798esac
28799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28800$as_echo "$ac_try_echo") >&5
28801 (eval "$ac_link") 2>&5
28802 ac_status=$?
28803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28805 { (case "(($ac_try" in
28806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28808esac
28809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28810$as_echo "$ac_try_echo") >&5
28811 (eval "$ac_try") 2>&5
28812 ac_status=$?
28813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
ccc6cda3
JA
28815 bash_cv_opendir_not_robust=yes
28816else
abe2eb5b
CR
28817 $as_echo "$as_me: program exited with status $ac_status" >&5
28818$as_echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821( exit $ac_status )
28822bash_cv_opendir_not_robust=no
ccc6cda3 28823fi
abe2eb5b
CR
28824rm -rf conftest.dSYM
28825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 28826fi
b709b946 28827
abe2eb5b 28828
ccc6cda3
JA
28829fi
28830
abe2eb5b 28831{ $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
dd4f3dd8 28832$as_echo "$bash_cv_opendir_not_robust" >&6; }
ccc6cda3 28833if test $bash_cv_opendir_not_robust = yes; then
abe2eb5b
CR
28834cat >>confdefs.h <<\_ACEOF
28835#define OPENDIR_NOT_ROBUST 1
28836_ACEOF
ccc6cda3
JA
28837
28838fi
28839
abe2eb5b 28840{ $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
dd4f3dd8 28841$as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
abe2eb5b 28842if test "${bash_cv_ulimit_maxfds+set}" = set; then
dd4f3dd8 28843 $as_echo_n "(cached) " >&6
ccc6cda3 28844else
abe2eb5b
CR
28845 if test "$cross_compiling" = yes; then
28846 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
dd4f3dd8 28847$as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
28848 bash_cv_ulimit_maxfds=no
28849
ccc6cda3 28850else
abe2eb5b
CR
28851 cat >conftest.$ac_ext <<_ACEOF
28852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 28856/* end confdefs.h. */
ccc6cda3
JA
28857
28858main()
28859{
28860long maxfds = ulimit(4, 0L);
28861exit (maxfds == -1L);
28862}
28863
f73dda09 28864_ACEOF
abe2eb5b
CR
28865rm -f conftest$ac_exeext
28866if { (ac_try="$ac_link"
28867case "(($ac_try" in
28868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28869 *) ac_try_echo=$ac_try;;
28870esac
28871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28872$as_echo "$ac_try_echo") >&5
28873 (eval "$ac_link") 2>&5
28874 ac_status=$?
28875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28877 { (case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28880esac
28881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28882$as_echo "$ac_try_echo") >&5
28883 (eval "$ac_try") 2>&5
28884 ac_status=$?
28885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; }; then
ccc6cda3
JA
28887 bash_cv_ulimit_maxfds=yes
28888else
abe2eb5b
CR
28889 $as_echo "$as_me: program exited with status $ac_status" >&5
28890$as_echo "$as_me: failed program was:" >&5
28891sed 's/^/| /' conftest.$ac_ext >&5
28892
28893( exit $ac_status )
28894bash_cv_ulimit_maxfds=no
547ef914 28895fi
abe2eb5b
CR
28896rm -rf conftest.dSYM
28897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
09767ff0
CR
28898fi
28899
abe2eb5b 28900
09767ff0 28901fi
547ef914 28902
abe2eb5b 28903{ $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
dd4f3dd8 28904$as_echo "$bash_cv_ulimit_maxfds" >&6; }
2e4498b3 28905if test $bash_cv_ulimit_maxfds = yes; then
abe2eb5b
CR
28906cat >>confdefs.h <<\_ACEOF
28907#define ULIMIT_MAXFDS 1
28908_ACEOF
2e4498b3
CR
28909
28910fi
28911
28912
28913
28914
28915
53ac45a3
CR
28916
28917
28918
abe2eb5b
CR
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
28930$as_echo_n "checking whether fpurge is declared... " >&6; }
28931if test "${ac_cv_have_decl_fpurge+set}" = set; then
28932 $as_echo_n "(cached) " >&6
28933else
28934 cat >conftest.$ac_ext <<_ACEOF
28935/* confdefs.h. */
28936_ACEOF
28937cat confdefs.h >>conftest.$ac_ext
28938cat >>conftest.$ac_ext <<_ACEOF
28939/* end confdefs.h. */
28940#include <stdio.h>
28941
28942int
28943main ()
28944{
28945#ifndef fpurge
28946 (void) fpurge;
28947#endif
28948
28949 ;
28950 return 0;
28951}
28952_ACEOF
28953rm -f conftest.$ac_objext
28954if { (ac_try="$ac_compile"
28955case "(($ac_try" in
28956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957 *) ac_try_echo=$ac_try;;
28958esac
28959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28960$as_echo "$ac_try_echo") >&5
28961 (eval "$ac_compile") 2>conftest.er1
28962 ac_status=$?
28963 grep -v '^ *+' conftest.er1 >conftest.err
28964 rm -f conftest.er1
28965 cat conftest.err >&5
28966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } && {
28968 test -z "$ac_c_werror_flag" ||
28969 test ! -s conftest.err
28970 } && test -s conftest.$ac_objext; then
28971 ac_cv_have_decl_fpurge=yes
53ac45a3 28972else
abe2eb5b
CR
28973 $as_echo "$as_me: failed program was:" >&5
28974sed 's/^/| /' conftest.$ac_ext >&5
28975
28976 ac_cv_have_decl_fpurge=no
28977fi
28978
28979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53ac45a3 28980fi
abe2eb5b
CR
28981{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
28982$as_echo "$ac_cv_have_decl_fpurge" >&6; }
28983if test "x$ac_cv_have_decl_fpurge" = x""yes; then
53ac45a3
CR
28984
28985cat >>confdefs.h <<_ACEOF
abe2eb5b 28986#define HAVE_DECL_FPURGE 1
e3db237e
CR
28987_ACEOF
28988
28989
abe2eb5b
CR
28990else
28991 cat >>confdefs.h <<_ACEOF
28992#define HAVE_DECL_FPURGE 0
28993_ACEOF
28994
28995
28996fi
28997
28998
28999
29000{ $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
dd4f3dd8 29001$as_echo_n "checking to see if getenv can be redefined... " >&6; }
abe2eb5b 29002if test "${bash_cv_getenv_redef+set}" = set; then
dd4f3dd8 29003 $as_echo_n "(cached) " >&6
ccc6cda3 29004else
abe2eb5b
CR
29005 if test "$cross_compiling" = yes; then
29006 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
dd4f3dd8 29007$as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
cce855bc
JA
29008 bash_cv_getenv_redef=yes
29009
ccc6cda3 29010else
abe2eb5b
CR
29011 cat >conftest.$ac_ext <<_ACEOF
29012/* confdefs.h. */
29013_ACEOF
29014cat confdefs.h >>conftest.$ac_ext
29015cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29016/* end confdefs.h. */
ccc6cda3
JA
29017
29018#ifdef HAVE_UNISTD_H
29019# include <unistd.h>
29020#endif
29021#ifndef __STDC__
29022# ifndef const
29023# define const
29024# endif
29025#endif
29026char *
29027getenv (name)
29028#if defined (__linux__) || defined (__bsdi__) || defined (convex)
29029 const char *name;
29030#else
29031 char const *name;
29032#endif /* !__linux__ && !__bsdi__ && !convex */
29033{
29034return "42";
29035}
29036main()
29037{
29038char *s;
29039/* The next allows this program to run, but does not allow bash to link
29040 when it redefines getenv. I'm not really interested in figuring out
29041 why not. */
29042#if defined (NeXT)
29043exit(1);
29044#endif
29045s = getenv("ABCDE");
29046exit(s == 0); /* force optimizer to leave getenv in */
29047}
29048
f73dda09 29049_ACEOF
abe2eb5b
CR
29050rm -f conftest$ac_exeext
29051if { (ac_try="$ac_link"
29052case "(($ac_try" in
29053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054 *) ac_try_echo=$ac_try;;
29055esac
29056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29057$as_echo "$ac_try_echo") >&5
29058 (eval "$ac_link") 2>&5
29059 ac_status=$?
29060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29062 { (case "(($ac_try" in
29063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064 *) ac_try_echo=$ac_try;;
29065esac
29066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29067$as_echo "$ac_try_echo") >&5
29068 (eval "$ac_try") 2>&5
29069 ac_status=$?
29070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; }; then
ccc6cda3
JA
29072 bash_cv_getenv_redef=yes
29073else
abe2eb5b
CR
29074 $as_echo "$as_me: program exited with status $ac_status" >&5
29075$as_echo "$as_me: failed program was:" >&5
29076sed 's/^/| /' conftest.$ac_ext >&5
29077
29078( exit $ac_status )
29079bash_cv_getenv_redef=no
ccc6cda3 29080fi
abe2eb5b
CR
29081rm -rf conftest.dSYM
29082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29083fi
b709b946 29084
abe2eb5b 29085
ccc6cda3
JA
29086fi
29087
abe2eb5b 29088{ $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
dd4f3dd8 29089$as_echo "$bash_cv_getenv_redef" >&6; }
ccc6cda3 29090if test $bash_cv_getenv_redef = yes; then
abe2eb5b
CR
29091cat >>confdefs.h <<\_ACEOF
29092#define CAN_REDEFINE_GETENV 1
29093_ACEOF
ccc6cda3
JA
29094
29095fi
29096
7117c2d2 29097if test "$ac_cv_func_getcwd" = "yes"; then
abe2eb5b 29098{ $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
dd4f3dd8 29099$as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
abe2eb5b 29100if test "${bash_cv_getcwd_malloc+set}" = set; then
dd4f3dd8 29101 $as_echo_n "(cached) " >&6
ccc6cda3 29102else
abe2eb5b
CR
29103 if test "$cross_compiling" = yes; then
29104 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
dd4f3dd8 29105$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
f085a21f 29106 bash_cv_getcwd_malloc=no
cce855bc 29107
ccc6cda3 29108else
abe2eb5b
CR
29109 cat >conftest.$ac_ext <<_ACEOF
29110/* confdefs.h. */
29111_ACEOF
29112cat confdefs.h >>conftest.$ac_ext
29113cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29114/* end confdefs.h. */
ccc6cda3
JA
29115
29116#include <stdio.h>
29117#ifdef HAVE_UNISTD_H
29118#include <unistd.h>
29119#endif
29120
ccc6cda3
JA
29121main()
29122{
f085a21f
CR
29123 char *xpwd;
29124 xpwd = getcwd(0, 0);
29125 exit (xpwd == 0);
ccc6cda3
JA
29126}
29127
f73dda09 29128_ACEOF
abe2eb5b
CR
29129rm -f conftest$ac_exeext
29130if { (ac_try="$ac_link"
29131case "(($ac_try" in
29132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133 *) ac_try_echo=$ac_try;;
29134esac
29135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29136$as_echo "$ac_try_echo") >&5
29137 (eval "$ac_link") 2>&5
29138 ac_status=$?
29139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29141 { (case "(($ac_try" in
29142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143 *) ac_try_echo=$ac_try;;
29144esac
29145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29146$as_echo "$ac_try_echo") >&5
29147 (eval "$ac_try") 2>&5
29148 ac_status=$?
29149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); }; }; then
f085a21f 29151 bash_cv_getcwd_malloc=yes
ccc6cda3 29152else
abe2eb5b
CR
29153 $as_echo "$as_me: program exited with status $ac_status" >&5
29154$as_echo "$as_me: failed program was:" >&5
29155sed 's/^/| /' conftest.$ac_ext >&5
29156
29157( exit $ac_status )
29158bash_cv_getcwd_malloc=no
ccc6cda3 29159fi
abe2eb5b
CR
29160rm -rf conftest.dSYM
29161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29162fi
b709b946 29163
abe2eb5b 29164
ccc6cda3
JA
29165fi
29166
abe2eb5b 29167{ $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
dd4f3dd8 29168$as_echo "$bash_cv_getcwd_malloc" >&6; }
f085a21f 29169if test $bash_cv_getcwd_malloc = no; then
abe2eb5b
CR
29170cat >>confdefs.h <<\_ACEOF
29171#define GETCWD_BROKEN 1
29172_ACEOF
a82a04b3 29173
b709b946 29174case " $LIBOBJS " in
5e4a95c7 29175 *" getcwd.$ac_objext "* ) ;;
b709b946
CR
29176 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
29177 ;;
5e4a95c7
CR
29178esac
29179
ccc6cda3
JA
29180fi
29181
ccc6cda3
JA
29182fi
29183
abe2eb5b 29184{ $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
dd4f3dd8 29185$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
abe2eb5b 29186if test "${bash_cv_func_sigsetjmp+set}" = set; then
dd4f3dd8 29187 $as_echo_n "(cached) " >&6
ccc6cda3 29188else
abe2eb5b
CR
29189 if test "$cross_compiling" = yes; then
29190 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
dd4f3dd8 29191$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
29192 bash_cv_func_sigsetjmp=missing
29193
ccc6cda3 29194else
abe2eb5b
CR
29195 cat >conftest.$ac_ext <<_ACEOF
29196/* confdefs.h. */
29197_ACEOF
29198cat confdefs.h >>conftest.$ac_ext
29199cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29200/* end confdefs.h. */
ccc6cda3
JA
29201
29202#ifdef HAVE_UNISTD_H
29203#include <unistd.h>
29204#endif
29205#include <sys/types.h>
29206#include <signal.h>
29207#include <setjmp.h>
29208
29209main()
29210{
29211#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
29212exit (1);
29213#else
29214
29215int code;
29216sigset_t set, oset;
29217sigjmp_buf xx;
29218
29219/* get the mask */
29220sigemptyset(&set);
29221sigemptyset(&oset);
29222sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
29223sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
29224
29225/* save it */
29226code = sigsetjmp(xx, 1);
29227if (code)
29228 exit(0); /* could get sigmask and compare to oset here. */
29229
29230/* change it */
29231sigaddset(&set, SIGINT);
29232sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
29233
29234/* and siglongjmp */
29235siglongjmp(xx, 10);
29236exit(1);
29237#endif
29238}
f73dda09 29239_ACEOF
abe2eb5b
CR
29240rm -f conftest$ac_exeext
29241if { (ac_try="$ac_link"
29242case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29245esac
29246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29247$as_echo "$ac_try_echo") >&5
29248 (eval "$ac_link") 2>&5
29249 ac_status=$?
29250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29252 { (case "(($ac_try" in
29253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254 *) ac_try_echo=$ac_try;;
29255esac
29256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29257$as_echo "$ac_try_echo") >&5
29258 (eval "$ac_try") 2>&5
29259 ac_status=$?
29260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; }; then
ccc6cda3
JA
29262 bash_cv_func_sigsetjmp=present
29263else
abe2eb5b
CR
29264 $as_echo "$as_me: program exited with status $ac_status" >&5
29265$as_echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
29268( exit $ac_status )
29269bash_cv_func_sigsetjmp=missing
ccc6cda3 29270fi
abe2eb5b
CR
29271rm -rf conftest.dSYM
29272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29273fi
b709b946 29274
abe2eb5b 29275
ccc6cda3
JA
29276fi
29277
abe2eb5b 29278{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
dd4f3dd8 29279$as_echo "$bash_cv_func_sigsetjmp" >&6; }
ccc6cda3 29280if test $bash_cv_func_sigsetjmp = present; then
abe2eb5b
CR
29281cat >>confdefs.h <<\_ACEOF
29282#define HAVE_POSIX_SIGSETJMP 1
29283_ACEOF
ccc6cda3
JA
29284
29285fi
29286
a82a04b3 29287
abe2eb5b 29288{ $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
dd4f3dd8 29289$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
abe2eb5b 29290if test "${bash_cv_func_strcoll_broken+set}" = set; then
dd4f3dd8 29291 $as_echo_n "(cached) " >&6
d166f048 29292else
abe2eb5b
CR
29293 if test "$cross_compiling" = yes; then
29294 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
dd4f3dd8 29295$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
29296 bash_cv_func_strcoll_broken=no
29297
d166f048 29298else
abe2eb5b
CR
29299 cat >conftest.$ac_ext <<_ACEOF
29300/* confdefs.h. */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29304/* end confdefs.h. */
d166f048
JA
29305
29306#include <stdio.h>
29307#if defined (HAVE_LOCALE_H)
29308#include <locale.h>
29309#endif
29310
29311main(c, v)
29312int c;
29313char *v[];
29314{
29315 int r1, r2;
29316 char *deflocale, *defcoll;
29317
29318#ifdef HAVE_SETLOCALE
29319 deflocale = setlocale(LC_ALL, "");
29320 defcoll = setlocale(LC_COLLATE, "");
29321#endif
29322
29323#ifdef HAVE_STRCOLL
29324 /* These two values are taken from tests/glob-test. */
29325 r1 = strcoll("abd", "aXd");
29326#else
29327 r1 = 0;
29328#endif
29329 r2 = strcmp("abd", "aXd");
29330
29331 /* These two should both be greater than 0. It is permissible for
29332 a system to return different values, as long as the sign is the
29333 same. */
29334
29335 /* Exit with 1 (failure) if these two values are both > 0, since
29336 this tests whether strcoll(3) is broken with respect to strcmp(3)
29337 in the default locale. */
29338 exit (r1 > 0 && r2 > 0);
29339}
29340
f73dda09 29341_ACEOF
abe2eb5b
CR
29342rm -f conftest$ac_exeext
29343if { (ac_try="$ac_link"
29344case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29347esac
29348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29349$as_echo "$ac_try_echo") >&5
29350 (eval "$ac_link") 2>&5
29351 ac_status=$?
29352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29354 { (case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29357esac
29358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29359$as_echo "$ac_try_echo") >&5
29360 (eval "$ac_try") 2>&5
29361 ac_status=$?
29362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); }; }; then
d166f048
JA
29364 bash_cv_func_strcoll_broken=yes
29365else
abe2eb5b
CR
29366 $as_echo "$as_me: program exited with status $ac_status" >&5
29367$as_echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370( exit $ac_status )
29371bash_cv_func_strcoll_broken=no
d166f048 29372fi
abe2eb5b
CR
29373rm -rf conftest.dSYM
29374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d166f048 29375fi
b709b946 29376
abe2eb5b 29377
d166f048
JA
29378fi
29379
abe2eb5b 29380{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
dd4f3dd8 29381$as_echo "$bash_cv_func_strcoll_broken" >&6; }
d166f048 29382if test $bash_cv_func_strcoll_broken = yes; then
abe2eb5b
CR
29383cat >>confdefs.h <<\_ACEOF
29384#define STRCOLL_BROKEN 1
29385_ACEOF
d166f048
JA
29386
29387fi
29388
a82a04b3
CR
29389
29390
cd0ef727
CR
29391
29392
abe2eb5b
CR
29393
29394
29395
29396
29397
cd0ef727 29398 if test X$ac_cv_func_snprintf = Xyes; then
abe2eb5b 29399 { $as_echo "$as_me:$LINENO: checking for standard-conformant snprintf" >&5
cd0ef727 29400$as_echo_n "checking for standard-conformant snprintf... " >&6; }
abe2eb5b 29401if test "${bash_cv_func_snprintf+set}" = set; then
cd0ef727
CR
29402 $as_echo_n "(cached) " >&6
29403else
abe2eb5b
CR
29404 if test "$cross_compiling" = yes; then
29405 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard snprintf if cross-compiling" >&5
cd0ef727
CR
29406$as_echo "$as_me: WARNING: cannot check standard snprintf if cross-compiling" >&2;}
29407 bash_cv_func_snprintf=yes
29408
29409else
abe2eb5b
CR
29410 cat >conftest.$ac_ext <<_ACEOF
29411/* confdefs.h. */
29412_ACEOF
29413cat confdefs.h >>conftest.$ac_ext
29414cat >>conftest.$ac_ext <<_ACEOF
cd0ef727
CR
29415/* end confdefs.h. */
29416
29417#include <stdio.h>
29418
29419main()
29420{
29421 int n;
29422 n = snprintf (0, 0, "%s", "0123456");
29423 exit(n != 7);
29424}
29425
29426_ACEOF
abe2eb5b
CR
29427rm -f conftest$ac_exeext
29428if { (ac_try="$ac_link"
29429case "(($ac_try" in
29430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29431 *) ac_try_echo=$ac_try;;
29432esac
29433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29434$as_echo "$ac_try_echo") >&5
29435 (eval "$ac_link") 2>&5
29436 ac_status=$?
29437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29439 { (case "(($ac_try" in
29440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441 *) ac_try_echo=$ac_try;;
29442esac
29443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29444$as_echo "$ac_try_echo") >&5
29445 (eval "$ac_try") 2>&5
29446 ac_status=$?
29447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
cd0ef727
CR
29449 bash_cv_func_snprintf=yes
29450else
abe2eb5b
CR
29451 $as_echo "$as_me: program exited with status $ac_status" >&5
29452$as_echo "$as_me: failed program was:" >&5
29453sed 's/^/| /' conftest.$ac_ext >&5
29454
29455( exit $ac_status )
29456bash_cv_func_snprintf=no
cd0ef727 29457fi
abe2eb5b
CR
29458rm -rf conftest.dSYM
29459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cd0ef727
CR
29460fi
29461
abe2eb5b 29462
cd0ef727 29463fi
abe2eb5b 29464{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_snprintf" >&5
cd0ef727
CR
29465$as_echo "$bash_cv_func_snprintf" >&6; }
29466 if test $bash_cv_func_snprintf = no; then
29467 ac_cv_func_snprintf=no
29468 fi
29469 fi
29470 if test $ac_cv_func_snprintf = no; then
29471
abe2eb5b
CR
29472cat >>confdefs.h <<\_ACEOF
29473#define HAVE_SNPRINTF 0
29474_ACEOF
cd0ef727
CR
29475
29476 fi
29477
29478
29479
29480
29481
abe2eb5b
CR
29482
29483
29484
29485
29486
cd0ef727 29487 if test X$ac_cv_func_vsnprintf = Xyes; then
abe2eb5b 29488 { $as_echo "$as_me:$LINENO: checking for standard-conformant vsnprintf" >&5
cd0ef727 29489$as_echo_n "checking for standard-conformant vsnprintf... " >&6; }
abe2eb5b 29490if test "${bash_cv_func_vsnprintf+set}" = set; then
cd0ef727
CR
29491 $as_echo_n "(cached) " >&6
29492else
abe2eb5b
CR
29493 if test "$cross_compiling" = yes; then
29494 { $as_echo "$as_me:$LINENO: WARNING: cannot check standard vsnprintf if cross-compiling" >&5
cd0ef727
CR
29495$as_echo "$as_me: WARNING: cannot check standard vsnprintf if cross-compiling" >&2;}
29496 bash_cv_func_vsnprintf=yes
29497
29498else
abe2eb5b
CR
29499 cat >conftest.$ac_ext <<_ACEOF
29500/* confdefs.h. */
29501_ACEOF
29502cat confdefs.h >>conftest.$ac_ext
29503cat >>conftest.$ac_ext <<_ACEOF
cd0ef727
CR
29504/* end confdefs.h. */
29505
29506#if HAVE_STDARG_H
29507#include <stdarg.h>
29508#else
29509#include <varargs.h>
29510#endif
29511#include <stdio.h>
29512#include <stdlib.h>
29513
29514static int
29515#if HAVE_STDARG_H
29516foo(const char *fmt, ...)
29517#else
29518foo(format, va_alist)
29519 const char *format;
29520 va_dcl
29521#endif
29522{
29523 va_list args;
29524 int n;
29525
29526#if HAVE_STDARG_H
29527 va_start(args, fmt);
29528#else
29529 va_start(args);
29530#endif
29531 n = vsnprintf(0, 0, fmt, args);
29532 va_end (args);
29533 return n;
29534}
29535
29536main()
29537{
29538 int n;
29539 n = foo("%s", "0123456");
29540 exit(n != 7);
29541}
29542
29543_ACEOF
abe2eb5b
CR
29544rm -f conftest$ac_exeext
29545if { (ac_try="$ac_link"
29546case "(($ac_try" in
29547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548 *) ac_try_echo=$ac_try;;
29549esac
29550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29551$as_echo "$ac_try_echo") >&5
29552 (eval "$ac_link") 2>&5
29553 ac_status=$?
29554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29556 { (case "(($ac_try" in
29557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558 *) ac_try_echo=$ac_try;;
29559esac
29560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29561$as_echo "$ac_try_echo") >&5
29562 (eval "$ac_try") 2>&5
29563 ac_status=$?
29564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; }; then
cd0ef727
CR
29566 bash_cv_func_vsnprintf=yes
29567else
abe2eb5b
CR
29568 $as_echo "$as_me: program exited with status $ac_status" >&5
29569$as_echo "$as_me: failed program was:" >&5
29570sed 's/^/| /' conftest.$ac_ext >&5
29571
29572( exit $ac_status )
29573bash_cv_func_vsnprintf=no
cd0ef727 29574fi
abe2eb5b
CR
29575rm -rf conftest.dSYM
29576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cd0ef727
CR
29577fi
29578
abe2eb5b 29579
cd0ef727 29580fi
abe2eb5b 29581{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_vsnprintf" >&5
cd0ef727
CR
29582$as_echo "$bash_cv_func_vsnprintf" >&6; }
29583 if test $bash_cv_func_vsnprintf = no; then
29584 ac_cv_func_vsnprintf=no
29585 fi
29586 fi
29587 if test $ac_cv_func_vsnprintf = no; then
29588
abe2eb5b
CR
29589cat >>confdefs.h <<\_ACEOF
29590#define HAVE_VSNPRINTF 0
29591_ACEOF
cd0ef727
CR
29592
29593 fi
29594
29595
29596
7117c2d2
JA
29597if test "$ac_cv_func_putenv" = "yes"; then
29598
a82a04b3
CR
29599
29600
abe2eb5b 29601{ $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
dd4f3dd8 29602$as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
abe2eb5b 29603if test "${bash_cv_std_putenv+set}" = set; then
dd4f3dd8 29604 $as_echo_n "(cached) " >&6
7117c2d2 29605else
abe2eb5b
CR
29606 cat >conftest.$ac_ext <<_ACEOF
29607/* confdefs.h. */
29608_ACEOF
29609cat confdefs.h >>conftest.$ac_ext
29610cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29611/* end confdefs.h. */
7117c2d2
JA
29612
29613#if STDC_HEADERS
29614#include <stdlib.h>
29615#include <stddef.h>
29616#endif
29617#ifndef __STDC__
29618# ifndef const
29619# define const
29620# endif
29621#endif
29622#ifdef PROTOTYPES
29623extern int putenv (char *);
29624#else
29625extern int putenv ();
29626#endif
29627
29628int
29629main ()
29630{
29631return (putenv == 0);
29632 ;
29633 return 0;
29634}
29635_ACEOF
abe2eb5b
CR
29636rm -f conftest.$ac_objext conftest$ac_exeext
29637if { (ac_try="$ac_link"
29638case "(($ac_try" in
29639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29640 *) ac_try_echo=$ac_try;;
29641esac
29642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29643$as_echo "$ac_try_echo") >&5
29644 (eval "$ac_link") 2>conftest.er1
29645 ac_status=$?
29646 grep -v '^ *+' conftest.er1 >conftest.err
29647 rm -f conftest.er1
29648 cat conftest.err >&5
29649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } && {
29651 test -z "$ac_c_werror_flag" ||
29652 test ! -s conftest.err
29653 } && test -s conftest$ac_exeext && {
29654 test "$cross_compiling" = yes ||
29655 $as_test_x conftest$ac_exeext
29656 }; then
7117c2d2
JA
29657 bash_cv_std_putenv=yes
29658else
abe2eb5b
CR
29659 $as_echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662 bash_cv_std_putenv=no
7117c2d2
JA
29663
29664fi
abe2eb5b
CR
29665
29666rm -rf conftest.dSYM
29667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29668 conftest$ac_exeext conftest.$ac_ext
7117c2d2 29669fi
abe2eb5b 29670{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
dd4f3dd8 29671$as_echo "$bash_cv_std_putenv" >&6; }
7117c2d2 29672if test $bash_cv_std_putenv = yes; then
abe2eb5b
CR
29673cat >>confdefs.h <<\_ACEOF
29674#define HAVE_STD_PUTENV 1
29675_ACEOF
7117c2d2
JA
29676
29677fi
29678
29679else
abe2eb5b
CR
29680cat >>confdefs.h <<\_ACEOF
29681#define HAVE_STD_PUTENV 1
29682_ACEOF
7117c2d2
JA
29683
29684fi
29685if test "$ac_cv_func_unsetenv" = "yes"; then
29686
a82a04b3
CR
29687
29688
abe2eb5b 29689{ $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
dd4f3dd8 29690$as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
abe2eb5b 29691if test "${bash_cv_std_unsetenv+set}" = set; then
dd4f3dd8 29692 $as_echo_n "(cached) " >&6
7117c2d2 29693else
abe2eb5b
CR
29694 cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29699/* end confdefs.h. */
7117c2d2
JA
29700
29701#if STDC_HEADERS
29702#include <stdlib.h>
29703#include <stddef.h>
29704#endif
29705#ifndef __STDC__
29706# ifndef const
29707# define const
29708# endif
29709#endif
29710#ifdef PROTOTYPES
29711extern int unsetenv (const char *);
29712#else
29713extern int unsetenv ();
29714#endif
2dead0c4
CR
29715
29716int
29717main ()
29718{
29719return (unsetenv == 0);
29720 ;
29721 return 0;
29722}
29723_ACEOF
abe2eb5b
CR
29724rm -f conftest.$ac_objext conftest$ac_exeext
29725if { (ac_try="$ac_link"
29726case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29729esac
29730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29731$as_echo "$ac_try_echo") >&5
29732 (eval "$ac_link") 2>conftest.er1
29733 ac_status=$?
29734 grep -v '^ *+' conftest.er1 >conftest.err
29735 rm -f conftest.er1
29736 cat conftest.err >&5
29737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); } && {
29739 test -z "$ac_c_werror_flag" ||
29740 test ! -s conftest.err
29741 } && test -s conftest$ac_exeext && {
29742 test "$cross_compiling" = yes ||
29743 $as_test_x conftest$ac_exeext
29744 }; then
7117c2d2
JA
29745 bash_cv_std_unsetenv=yes
29746else
abe2eb5b
CR
29747 $as_echo "$as_me: failed program was:" >&5
29748sed 's/^/| /' conftest.$ac_ext >&5
29749
29750 bash_cv_std_unsetenv=no
7117c2d2
JA
29751
29752fi
abe2eb5b
CR
29753
29754rm -rf conftest.dSYM
29755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29756 conftest$ac_exeext conftest.$ac_ext
7117c2d2 29757fi
abe2eb5b 29758{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
dd4f3dd8 29759$as_echo "$bash_cv_std_unsetenv" >&6; }
7117c2d2 29760if test $bash_cv_std_unsetenv = yes; then
abe2eb5b
CR
29761cat >>confdefs.h <<\_ACEOF
29762#define HAVE_STD_UNSETENV 1
29763_ACEOF
7117c2d2
JA
29764
29765fi
29766
29767else
abe2eb5b
CR
29768cat >>confdefs.h <<\_ACEOF
29769#define HAVE_STD_UNSETENV 1
29770_ACEOF
7117c2d2
JA
29771
29772fi
29773
abe2eb5b 29774{ $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
dd4f3dd8 29775$as_echo_n "checking for printf floating point output in hex notation... " >&6; }
abe2eb5b 29776if test "${bash_cv_printf_a_format+set}" = set; then
dd4f3dd8 29777 $as_echo_n "(cached) " >&6
f73dda09 29778else
abe2eb5b
CR
29779 if test "$cross_compiling" = yes; then
29780 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
dd4f3dd8 29781$as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
f73dda09
JA
29782 bash_cv_printf_a_format=no
29783
29784else
abe2eb5b
CR
29785 cat >conftest.$ac_ext <<_ACEOF
29786/* confdefs.h. */
29787_ACEOF
29788cat confdefs.h >>conftest.$ac_ext
29789cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29790/* end confdefs.h. */
f73dda09
JA
29791
29792#include <stdio.h>
29793#include <string.h>
29794
29795int
29796main()
29797{
29798 double y = 0.0;
29799 char abuf[1024];
29800
29801 sprintf(abuf, "%A", y);
29802 exit(strchr(abuf, 'P') == (char *)0);
29803}
29804
29805_ACEOF
abe2eb5b
CR
29806rm -f conftest$ac_exeext
29807if { (ac_try="$ac_link"
29808case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29811esac
29812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29813$as_echo "$ac_try_echo") >&5
29814 (eval "$ac_link") 2>&5
29815 ac_status=$?
29816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29818 { (case "(($ac_try" in
29819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820 *) ac_try_echo=$ac_try;;
29821esac
29822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29823$as_echo "$ac_try_echo") >&5
29824 (eval "$ac_try") 2>&5
29825 ac_status=$?
29826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
f73dda09
JA
29828 bash_cv_printf_a_format=yes
29829else
abe2eb5b
CR
29830 $as_echo "$as_me: program exited with status $ac_status" >&5
29831$as_echo "$as_me: failed program was:" >&5
29832sed 's/^/| /' conftest.$ac_ext >&5
29833
29834( exit $ac_status )
29835bash_cv_printf_a_format=no
f73dda09 29836fi
abe2eb5b
CR
29837rm -rf conftest.dSYM
29838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 29839fi
b709b946 29840
abe2eb5b 29841
f73dda09 29842fi
d166f048 29843
abe2eb5b 29844{ $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
dd4f3dd8 29845$as_echo "$bash_cv_printf_a_format" >&6; }
f73dda09 29846if test $bash_cv_printf_a_format = yes; then
abe2eb5b
CR
29847cat >>confdefs.h <<\_ACEOF
29848#define HAVE_PRINTF_A_FORMAT 1
29849_ACEOF
d166f048 29850
f73dda09 29851fi
ccc6cda3 29852
a82a04b3
CR
29853
29854
29855
abe2eb5b 29856{ $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
dd4f3dd8 29857$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
abe2eb5b 29858if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
dd4f3dd8 29859 $as_echo_n "(cached) " >&6
ccc6cda3 29860else
abe2eb5b
CR
29861 if test "$cross_compiling" = yes; then
29862 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
dd4f3dd8 29863$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
29864 bash_cv_must_reinstall_sighandlers=no
29865
ccc6cda3 29866else
abe2eb5b
CR
29867 cat >conftest.$ac_ext <<_ACEOF
29868/* confdefs.h. */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29872/* end confdefs.h. */
ccc6cda3
JA
29873
29874#include <signal.h>
29875#ifdef HAVE_UNISTD_H
29876#include <unistd.h>
29877#endif
29878
29879typedef RETSIGTYPE sigfunc();
29880
29881int nsigint;
29882
29883#ifdef HAVE_POSIX_SIGNALS
29884sigfunc *
29885set_signal_handler(sig, handler)
29886 int sig;
29887 sigfunc *handler;
29888{
29889 struct sigaction act, oact;
29890 act.sa_handler = handler;
29891 act.sa_flags = 0;
29892 sigemptyset (&act.sa_mask);
29893 sigemptyset (&oact.sa_mask);
29894 sigaction (sig, &act, &oact);
29895 return (oact.sa_handler);
29896}
29897#else
29898#define set_signal_handler(s, h) signal(s, h)
29899#endif
29900
29901RETSIGTYPE
29902sigint(s)
29903int s;
29904{
29905 nsigint++;
29906}
29907
29908main()
29909{
29910 nsigint = 0;
29911 set_signal_handler(SIGINT, sigint);
29912 kill((int)getpid(), SIGINT);
29913 kill((int)getpid(), SIGINT);
29914 exit(nsigint != 2);
29915}
29916
f73dda09 29917_ACEOF
abe2eb5b
CR
29918rm -f conftest$ac_exeext
29919if { (ac_try="$ac_link"
29920case "(($ac_try" in
29921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922 *) ac_try_echo=$ac_try;;
29923esac
29924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29925$as_echo "$ac_try_echo") >&5
29926 (eval "$ac_link") 2>&5
29927 ac_status=$?
29928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29930 { (case "(($ac_try" in
29931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932 *) ac_try_echo=$ac_try;;
29933esac
29934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29935$as_echo "$ac_try_echo") >&5
29936 (eval "$ac_try") 2>&5
29937 ac_status=$?
29938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); }; }; then
ccc6cda3
JA
29940 bash_cv_must_reinstall_sighandlers=no
29941else
abe2eb5b
CR
29942 $as_echo "$as_me: program exited with status $ac_status" >&5
29943$as_echo "$as_me: failed program was:" >&5
29944sed 's/^/| /' conftest.$ac_ext >&5
29945
29946( exit $ac_status )
29947bash_cv_must_reinstall_sighandlers=yes
ccc6cda3 29948fi
abe2eb5b
CR
29949rm -rf conftest.dSYM
29950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 29951fi
b709b946 29952
abe2eb5b 29953
ccc6cda3
JA
29954fi
29955
abe2eb5b 29956{ $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
dd4f3dd8 29957$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
ccc6cda3 29958if test $bash_cv_must_reinstall_sighandlers = yes; then
abe2eb5b
CR
29959cat >>confdefs.h <<\_ACEOF
29960#define MUST_REINSTALL_SIGHANDLERS 1
29961_ACEOF
ccc6cda3
JA
29962
29963fi
29964
a82a04b3 29965
abe2eb5b 29966{ $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
dd4f3dd8 29967$as_echo_n "checking for presence of necessary job control definitions... " >&6; }
abe2eb5b 29968if test "${bash_cv_job_control_missing+set}" = set; then
dd4f3dd8 29969 $as_echo_n "(cached) " >&6
ccc6cda3 29970else
abe2eb5b
CR
29971 if test "$cross_compiling" = yes; then
29972 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
dd4f3dd8 29973$as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
29974 bash_cv_job_control_missing=missing
29975
ccc6cda3 29976else
abe2eb5b
CR
29977 cat >conftest.$ac_ext <<_ACEOF
29978/* confdefs.h. */
29979_ACEOF
29980cat confdefs.h >>conftest.$ac_ext
29981cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 29982/* end confdefs.h. */
ccc6cda3
JA
29983
29984#include <sys/types.h>
29985#ifdef HAVE_SYS_WAIT_H
29986#include <sys/wait.h>
29987#endif
29988#ifdef HAVE_UNISTD_H
29989#include <unistd.h>
29990#endif
29991#include <signal.h>
29992
29993/* Add more tests in here as appropriate. */
29994main()
29995{
29996/* signal type */
29997#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
29998exit(1);
29999#endif
30000
30001/* signals and tty control. */
30002#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
30003exit (1);
30004#endif
30005
30006/* process control */
f73dda09 30007#if !defined (WNOHANG) || !defined (WUNTRACED)
ccc6cda3
JA
30008exit(1);
30009#endif
30010
30011/* Posix systems have tcgetpgrp and waitpid. */
30012#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
30013exit(1);
30014#endif
30015
30016#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
30017exit(1);
30018#endif
30019
30020/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
30021#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
30022exit(1);
30023#endif
30024
30025exit(0);
30026}
f73dda09 30027_ACEOF
abe2eb5b
CR
30028rm -f conftest$ac_exeext
30029if { (ac_try="$ac_link"
30030case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30033esac
30034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30035$as_echo "$ac_try_echo") >&5
30036 (eval "$ac_link") 2>&5
30037 ac_status=$?
30038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30040 { (case "(($ac_try" in
30041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042 *) ac_try_echo=$ac_try;;
30043esac
30044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30045$as_echo "$ac_try_echo") >&5
30046 (eval "$ac_try") 2>&5
30047 ac_status=$?
30048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); }; }; then
ccc6cda3
JA
30050 bash_cv_job_control_missing=present
30051else
abe2eb5b
CR
30052 $as_echo "$as_me: program exited with status $ac_status" >&5
30053$as_echo "$as_me: failed program was:" >&5
30054sed 's/^/| /' conftest.$ac_ext >&5
30055
30056( exit $ac_status )
30057bash_cv_job_control_missing=missing
ccc6cda3 30058fi
abe2eb5b
CR
30059rm -rf conftest.dSYM
30060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 30061fi
b709b946 30062
abe2eb5b 30063
ccc6cda3
JA
30064fi
30065
abe2eb5b 30066{ $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
dd4f3dd8 30067$as_echo "$bash_cv_job_control_missing" >&6; }
ccc6cda3 30068if test $bash_cv_job_control_missing = missing; then
abe2eb5b
CR
30069cat >>confdefs.h <<\_ACEOF
30070#define JOB_CONTROL_MISSING 1
30071_ACEOF
ccc6cda3
JA
30072
30073fi
30074
abe2eb5b 30075{ $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
dd4f3dd8 30076$as_echo_n "checking for presence of named pipes... " >&6; }
abe2eb5b 30077if test "${bash_cv_sys_named_pipes+set}" = set; then
dd4f3dd8 30078 $as_echo_n "(cached) " >&6
ccc6cda3 30079else
abe2eb5b
CR
30080 if test "$cross_compiling" = yes; then
30081 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
dd4f3dd8 30082$as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
30083 bash_cv_sys_named_pipes=missing
30084
ccc6cda3 30085else
abe2eb5b
CR
30086 cat >conftest.$ac_ext <<_ACEOF
30087/* confdefs.h. */
30088_ACEOF
30089cat confdefs.h >>conftest.$ac_ext
30090cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30091/* end confdefs.h. */
ccc6cda3
JA
30092
30093#include <sys/types.h>
30094#include <sys/stat.h>
30095#ifdef HAVE_UNISTD_H
30096#include <unistd.h>
30097#endif
30098
30099/* Add more tests in here as appropriate. */
30100main()
30101{
bb70624e 30102int fd, err;
ccc6cda3
JA
30103
30104#if defined (HAVE_MKFIFO)
30105exit (0);
30106#endif
30107
30108#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
30109exit (1);
30110#endif
30111
30112#if defined (NeXT)
30113exit (1);
30114#endif
30915f17 30115err = mkdir("bash-aclocal", 0700);
bb70624e
JA
30116if (err < 0) {
30117 perror ("mkdir");
30118 exit(1);
30119}
30915f17 30120fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
bb70624e 30121if (fd == -1) {
30915f17 30122 rmdir ("bash-aclocal");
ccc6cda3 30123 exit (1);
bb70624e 30124}
ccc6cda3 30125close(fd);
30915f17
CR
30126unlink ("bash-aclocal/sh-np-autoconf");
30127rmdir ("bash-aclocal");
ccc6cda3
JA
30128exit(0);
30129}
f73dda09 30130_ACEOF
abe2eb5b
CR
30131rm -f conftest$ac_exeext
30132if { (ac_try="$ac_link"
30133case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30136esac
30137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30138$as_echo "$ac_try_echo") >&5
30139 (eval "$ac_link") 2>&5
30140 ac_status=$?
30141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30146esac
30147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30148$as_echo "$ac_try_echo") >&5
30149 (eval "$ac_try") 2>&5
30150 ac_status=$?
30151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; }; then
5e4a95c7 30153 bash_cv_sys_named_pipes=present
ccc6cda3 30154else
abe2eb5b
CR
30155 $as_echo "$as_me: program exited with status $ac_status" >&5
30156$as_echo "$as_me: failed program was:" >&5
30157sed 's/^/| /' conftest.$ac_ext >&5
30158
30159( exit $ac_status )
30160bash_cv_sys_named_pipes=missing
5e4a95c7 30161fi
abe2eb5b
CR
30162rm -rf conftest.dSYM
30163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 30164fi
b709b946 30165
abe2eb5b 30166
ccc6cda3
JA
30167fi
30168
abe2eb5b 30169{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
dd4f3dd8 30170$as_echo "$bash_cv_sys_named_pipes" >&6; }
5e4a95c7 30171if test $bash_cv_sys_named_pipes = missing; then
abe2eb5b
CR
30172cat >>confdefs.h <<\_ACEOF
30173#define NAMED_PIPES_MISSING 1
30174_ACEOF
5e4a95c7
CR
30175
30176fi
30177
30178
abe2eb5b 30179{ $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
dd4f3dd8 30180$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
abe2eb5b 30181if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
dd4f3dd8 30182 $as_echo_n "(cached) " >&6
f73dda09 30183else
abe2eb5b
CR
30184 cat >conftest.$ac_ext <<_ACEOF
30185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30189/* end confdefs.h. */
f73dda09
JA
30190#include <sys/types.h>
30191#include <termios.h>
30192#ifdef TIOCGWINSZ
30193 yes
30194#endif
30195
30196_ACEOF
30197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 30198 $EGREP "yes" >/dev/null 2>&1; then
f73dda09
JA
30199 ac_cv_sys_tiocgwinsz_in_termios_h=yes
30200else
30201 ac_cv_sys_tiocgwinsz_in_termios_h=no
30202fi
30203rm -f conftest*
30204
30205fi
abe2eb5b 30206{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
dd4f3dd8 30207$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
d166f048 30208
f73dda09 30209if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
abe2eb5b 30210 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
dd4f3dd8 30211$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
abe2eb5b 30212if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
dd4f3dd8 30213 $as_echo_n "(cached) " >&6
ccc6cda3 30214else
abe2eb5b
CR
30215 cat >conftest.$ac_ext <<_ACEOF
30216/* confdefs.h. */
30217_ACEOF
30218cat confdefs.h >>conftest.$ac_ext
30219cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30220/* end confdefs.h. */
ccc6cda3
JA
30221#include <sys/types.h>
30222#include <sys/ioctl.h>
f73dda09
JA
30223#ifdef TIOCGWINSZ
30224 yes
30225#endif
30226
30227_ACEOF
30228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 30229 $EGREP "yes" >/dev/null 2>&1; then
f73dda09 30230 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
ccc6cda3 30231else
f73dda09 30232 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
ccc6cda3
JA
30233fi
30234rm -f conftest*
f73dda09 30235
ccc6cda3 30236fi
abe2eb5b 30237{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
dd4f3dd8 30238$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
f73dda09
JA
30239
30240 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
ccc6cda3 30241
abe2eb5b
CR
30242cat >>confdefs.h <<\_ACEOF
30243#define GWINSZ_IN_SYS_IOCTL 1
30244_ACEOF
ccc6cda3 30245
f73dda09 30246 fi
ccc6cda3
JA
30247fi
30248
abe2eb5b 30249{ $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
dd4f3dd8 30250$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
abe2eb5b 30251if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
dd4f3dd8 30252 $as_echo_n "(cached) " >&6
ccc6cda3 30253else
abe2eb5b
CR
30254 cat >conftest.$ac_ext <<_ACEOF
30255/* confdefs.h. */
30256_ACEOF
30257cat confdefs.h >>conftest.$ac_ext
30258cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30259/* end confdefs.h. */
ccc6cda3
JA
30260#include <sys/types.h>
30261#include <sys/ioctl.h>
f73dda09
JA
30262int
30263main ()
30264{
ccc6cda3 30265int x = TIOCSTAT;
f73dda09
JA
30266 ;
30267 return 0;
30268}
30269_ACEOF
abe2eb5b
CR
30270rm -f conftest.$ac_objext
30271if { (ac_try="$ac_compile"
30272case "(($ac_try" in
30273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30274 *) ac_try_echo=$ac_try;;
30275esac
30276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30277$as_echo "$ac_try_echo") >&5
30278 (eval "$ac_compile") 2>conftest.er1
30279 ac_status=$?
30280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
30283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); } && {
30285 test -z "$ac_c_werror_flag" ||
30286 test ! -s conftest.err
30287 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30288 bash_cv_tiocstat_in_ioctl=yes
30289else
abe2eb5b
CR
30290 $as_echo "$as_me: failed program was:" >&5
30291sed 's/^/| /' conftest.$ac_ext >&5
30292
30293 bash_cv_tiocstat_in_ioctl=no
ccc6cda3 30294fi
abe2eb5b 30295
b709b946 30296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30297fi
30298
abe2eb5b 30299{ $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
dd4f3dd8 30300$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
f73dda09 30301if test $bash_cv_tiocstat_in_ioctl = yes; then
abe2eb5b
CR
30302cat >>confdefs.h <<\_ACEOF
30303#define TIOCSTAT_IN_SYS_IOCTL 1
30304_ACEOF
ccc6cda3
JA
30305
30306fi
30307
abe2eb5b 30308{ $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
dd4f3dd8 30309$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
abe2eb5b 30310if test "${bash_cv_fionread_in_ioctl+set}" = set; then
dd4f3dd8 30311 $as_echo_n "(cached) " >&6
ccc6cda3 30312else
abe2eb5b
CR
30313 cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30318/* end confdefs.h. */
ccc6cda3
JA
30319#include <sys/types.h>
30320#include <sys/ioctl.h>
f73dda09
JA
30321int
30322main ()
30323{
ccc6cda3 30324int x = FIONREAD;
f73dda09
JA
30325 ;
30326 return 0;
30327}
30328_ACEOF
abe2eb5b
CR
30329rm -f conftest.$ac_objext
30330if { (ac_try="$ac_compile"
30331case "(($ac_try" in
30332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30333 *) ac_try_echo=$ac_try;;
30334esac
30335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30336$as_echo "$ac_try_echo") >&5
30337 (eval "$ac_compile") 2>conftest.er1
30338 ac_status=$?
30339 grep -v '^ *+' conftest.er1 >conftest.err
30340 rm -f conftest.er1
30341 cat conftest.err >&5
30342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } && {
30344 test -z "$ac_c_werror_flag" ||
30345 test ! -s conftest.err
30346 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30347 bash_cv_fionread_in_ioctl=yes
30348else
abe2eb5b
CR
30349 $as_echo "$as_me: failed program was:" >&5
30350sed 's/^/| /' conftest.$ac_ext >&5
30351
30352 bash_cv_fionread_in_ioctl=no
ccc6cda3 30353fi
abe2eb5b 30354
b709b946 30355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30356fi
30357
abe2eb5b 30358{ $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
dd4f3dd8 30359$as_echo "$bash_cv_fionread_in_ioctl" >&6; }
f73dda09 30360if test $bash_cv_fionread_in_ioctl = yes; then
abe2eb5b
CR
30361cat >>confdefs.h <<\_ACEOF
30362#define FIONREAD_IN_SYS_IOCTL 1
30363_ACEOF
ccc6cda3
JA
30364
30365fi
30366
a82a04b3
CR
30367
30368
abe2eb5b 30369{ $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
dd4f3dd8 30370$as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
abe2eb5b 30371if test "${bash_cv_wcontinued_broken+set}" = set; then
dd4f3dd8 30372 $as_echo_n "(cached) " >&6
cac4cdbf 30373else
abe2eb5b
CR
30374 if test "$cross_compiling" = yes; then
30375 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
dd4f3dd8 30376$as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
cac4cdbf
CR
30377 bash_cv_wcontinued_broken=no
30378
30379else
abe2eb5b
CR
30380 cat >conftest.$ac_ext <<_ACEOF
30381/* confdefs.h. */
30382_ACEOF
30383cat confdefs.h >>conftest.$ac_ext
30384cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30385/* end confdefs.h. */
cac4cdbf
CR
30386
30387#include <sys/types.h>
30388#include <sys/wait.h>
30389#include <unistd.h>
30390#include <errno.h>
30391
30392#ifndef errno
30393extern int errno;
30394#endif
30395main()
30396{
30397 int x;
30398
30399 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
30400 if (x == -1 && errno == EINVAL)
30401 exit (1);
30402 else
30403 exit (0);
30404}
30405
30406_ACEOF
abe2eb5b
CR
30407rm -f conftest$ac_exeext
30408if { (ac_try="$ac_link"
30409case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30412esac
30413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30414$as_echo "$ac_try_echo") >&5
30415 (eval "$ac_link") 2>&5
30416 ac_status=$?
30417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30419 { (case "(($ac_try" in
30420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30421 *) ac_try_echo=$ac_try;;
30422esac
30423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30424$as_echo "$ac_try_echo") >&5
30425 (eval "$ac_try") 2>&5
30426 ac_status=$?
30427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; }; then
cac4cdbf
CR
30429 bash_cv_wcontinued_broken=no
30430else
abe2eb5b
CR
30431 $as_echo "$as_me: program exited with status $ac_status" >&5
30432$as_echo "$as_me: failed program was:" >&5
30433sed 's/^/| /' conftest.$ac_ext >&5
30434
30435( exit $ac_status )
30436bash_cv_wcontinued_broken=yes
cac4cdbf 30437fi
abe2eb5b
CR
30438rm -rf conftest.dSYM
30439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cac4cdbf 30440fi
b709b946 30441
abe2eb5b 30442
cac4cdbf
CR
30443fi
30444
abe2eb5b 30445{ $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
dd4f3dd8 30446$as_echo "$bash_cv_wcontinued_broken" >&6; }
cac4cdbf 30447if test $bash_cv_wcontinued_broken = yes; then
abe2eb5b
CR
30448cat >>confdefs.h <<\_ACEOF
30449#define WCONTINUED_BROKEN 1
30450_ACEOF
cac4cdbf
CR
30451
30452fi
30453
a82a04b3 30454
abe2eb5b 30455{ $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
dd4f3dd8 30456$as_echo_n "checking for speed_t in sys/types.h... " >&6; }
abe2eb5b 30457if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
dd4f3dd8 30458 $as_echo_n "(cached) " >&6
d166f048 30459else
abe2eb5b
CR
30460 cat >conftest.$ac_ext <<_ACEOF
30461/* confdefs.h. */
30462_ACEOF
30463cat confdefs.h >>conftest.$ac_ext
30464cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30465/* end confdefs.h. */
d166f048 30466#include <sys/types.h>
f73dda09
JA
30467int
30468main ()
30469{
d166f048 30470speed_t x;
f73dda09
JA
30471 ;
30472 return 0;
30473}
30474_ACEOF
abe2eb5b
CR
30475rm -f conftest.$ac_objext
30476if { (ac_try="$ac_compile"
30477case "(($ac_try" in
30478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30479 *) ac_try_echo=$ac_try;;
30480esac
30481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30482$as_echo "$ac_try_echo") >&5
30483 (eval "$ac_compile") 2>conftest.er1
30484 ac_status=$?
30485 grep -v '^ *+' conftest.er1 >conftest.err
30486 rm -f conftest.er1
30487 cat conftest.err >&5
30488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } && {
30490 test -z "$ac_c_werror_flag" ||
30491 test ! -s conftest.err
30492 } && test -s conftest.$ac_objext; then
d166f048
JA
30493 bash_cv_speed_t_in_sys_types=yes
30494else
abe2eb5b
CR
30495 $as_echo "$as_me: failed program was:" >&5
30496sed 's/^/| /' conftest.$ac_ext >&5
30497
30498 bash_cv_speed_t_in_sys_types=no
d166f048 30499fi
abe2eb5b 30500
b709b946 30501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
30502fi
30503
abe2eb5b 30504{ $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
dd4f3dd8 30505$as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
f73dda09 30506if test $bash_cv_speed_t_in_sys_types = yes; then
abe2eb5b
CR
30507cat >>confdefs.h <<\_ACEOF
30508#define SPEED_T_IN_SYS_TYPES 1
30509_ACEOF
d166f048
JA
30510
30511fi
30512
abe2eb5b 30513{ $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
dd4f3dd8 30514$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
abe2eb5b 30515if test "${bash_cv_getpw_declared+set}" = set; then
dd4f3dd8 30516 $as_echo_n "(cached) " >&6
ccc6cda3 30517else
abe2eb5b
CR
30518 cat >conftest.$ac_ext <<_ACEOF
30519/* confdefs.h. */
30520_ACEOF
30521cat confdefs.h >>conftest.$ac_ext
30522cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30523/* end confdefs.h. */
28ef6c31 30524
ccc6cda3 30525#include <sys/types.h>
28ef6c31
JA
30526#ifdef HAVE_UNISTD_H
30527# include <unistd.h>
30528#endif
ccc6cda3 30529#include <pwd.h>
28ef6c31 30530
f73dda09 30531_ACEOF
28ef6c31 30532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
abe2eb5b 30533 $EGREP "getpwuid" >/dev/null 2>&1; then
28ef6c31 30534 bash_cv_getpw_declared=yes
ccc6cda3 30535else
28ef6c31 30536 bash_cv_getpw_declared=no
ccc6cda3
JA
30537fi
30538rm -f conftest*
28ef6c31 30539
ccc6cda3
JA
30540fi
30541
abe2eb5b 30542{ $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
dd4f3dd8 30543$as_echo "$bash_cv_getpw_declared" >&6; }
28ef6c31 30544if test $bash_cv_getpw_declared = yes; then
abe2eb5b
CR
30545cat >>confdefs.h <<\_ACEOF
30546#define HAVE_GETPW_DECLS 1
30547_ACEOF
ccc6cda3
JA
30548
30549fi
30550
abe2eb5b 30551{ $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
dd4f3dd8 30552$as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
abe2eb5b 30553if test "${bash_cv_unusable_rtsigs+set}" = set; then
dd4f3dd8 30554 $as_echo_n "(cached) " >&6
28ef6c31 30555else
abe2eb5b
CR
30556 if test "$cross_compiling" = yes; then
30557 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
dd4f3dd8 30558$as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28ef6c31
JA
30559 bash_cv_unusable_rtsigs=yes
30560
30561else
abe2eb5b
CR
30562 cat >conftest.$ac_ext <<_ACEOF
30563/* confdefs.h. */
30564_ACEOF
30565cat confdefs.h >>conftest.$ac_ext
30566cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30567/* end confdefs.h. */
28ef6c31
JA
30568
30569#include <sys/types.h>
30570#include <signal.h>
30571
30572#ifndef NSIG
30573# define NSIG 64
30574#endif
30575
30576main ()
30577{
30578 int n_sigs = 2 * NSIG;
30579#ifdef SIGRTMIN
30580 int rtmin = SIGRTMIN;
30581#else
30582 int rtmin = 0;
30583#endif
30584
30585 exit(rtmin < n_sigs);
30586}
f73dda09 30587_ACEOF
abe2eb5b
CR
30588rm -f conftest$ac_exeext
30589if { (ac_try="$ac_link"
30590case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30593esac
30594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30595$as_echo "$ac_try_echo") >&5
30596 (eval "$ac_link") 2>&5
30597 ac_status=$?
30598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30600 { (case "(($ac_try" in
30601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602 *) ac_try_echo=$ac_try;;
30603esac
30604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30605$as_echo "$ac_try_echo") >&5
30606 (eval "$ac_try") 2>&5
30607 ac_status=$?
30608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; }; then
28ef6c31
JA
30610 bash_cv_unusable_rtsigs=yes
30611else
abe2eb5b
CR
30612 $as_echo "$as_me: program exited with status $ac_status" >&5
30613$as_echo "$as_me: failed program was:" >&5
30614sed 's/^/| /' conftest.$ac_ext >&5
30615
30616( exit $ac_status )
30617bash_cv_unusable_rtsigs=no
28ef6c31 30618fi
abe2eb5b
CR
30619rm -rf conftest.dSYM
30620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28ef6c31 30621fi
b709b946 30622
abe2eb5b 30623
28ef6c31
JA
30624fi
30625
abe2eb5b 30626{ $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
dd4f3dd8 30627$as_echo "$bash_cv_unusable_rtsigs" >&6; }
28ef6c31 30628if test $bash_cv_unusable_rtsigs = yes; then
abe2eb5b
CR
30629cat >>confdefs.h <<\_ACEOF
30630#define UNUSABLE_RT_SIGNALS 1
30631_ACEOF
28ef6c31
JA
30632
30633fi
30634
a82a04b3
CR
30635
30636
30637
30638
f73dda09
JA
30639if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
30640 SIGLIST_O=siglist.o
30641else
30642 SIGLIST_O=
30643fi
ccc6cda3 30644
a82a04b3
CR
30645
30646
ccc6cda3 30647case "$host_os" in
abe2eb5b 30648hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
dd4f3dd8 30649$as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
abe2eb5b 30650if test "${bash_cv_kernel_rlimit+set}" = set; then
dd4f3dd8 30651 $as_echo_n "(cached) " >&6
ccc6cda3 30652else
abe2eb5b
CR
30653 cat >conftest.$ac_ext <<_ACEOF
30654/* confdefs.h. */
30655_ACEOF
30656cat confdefs.h >>conftest.$ac_ext
30657cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30658/* end confdefs.h. */
ccc6cda3
JA
30659
30660#include <sys/types.h>
30661#include <sys/resource.h>
30662
f73dda09
JA
30663int
30664main ()
30665{
ccc6cda3
JA
30666
30667 int f;
30668 f = RLIMIT_DATA;
30669
f73dda09
JA
30670 ;
30671 return 0;
30672}
30673_ACEOF
abe2eb5b
CR
30674rm -f conftest.$ac_objext
30675if { (ac_try="$ac_compile"
30676case "(($ac_try" in
30677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678 *) ac_try_echo=$ac_try;;
30679esac
30680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30681$as_echo "$ac_try_echo") >&5
30682 (eval "$ac_compile") 2>conftest.er1
30683 ac_status=$?
30684 grep -v '^ *+' conftest.er1 >conftest.err
30685 rm -f conftest.er1
30686 cat conftest.err >&5
30687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); } && {
30689 test -z "$ac_c_werror_flag" ||
30690 test ! -s conftest.err
30691 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30692 bash_cv_kernel_rlimit=no
30693else
abe2eb5b
CR
30694 $as_echo "$as_me: failed program was:" >&5
30695sed 's/^/| /' conftest.$ac_ext >&5
30696
30697 cat >conftest.$ac_ext <<_ACEOF
30698/* confdefs.h. */
30699_ACEOF
30700cat confdefs.h >>conftest.$ac_ext
30701cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30702/* end confdefs.h. */
ccc6cda3 30703
cce855bc
JA
30704#include <sys/types.h>
30705#define _KERNEL
30706#include <sys/resource.h>
30707#undef _KERNEL
30708
f73dda09
JA
30709int
30710main ()
30711{
ccc6cda3
JA
30712
30713 int f;
30714 f = RLIMIT_DATA;
cce855bc 30715
f73dda09
JA
30716 ;
30717 return 0;
30718}
30719_ACEOF
abe2eb5b
CR
30720rm -f conftest.$ac_objext
30721if { (ac_try="$ac_compile"
30722case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30725esac
30726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30727$as_echo "$ac_try_echo") >&5
30728 (eval "$ac_compile") 2>conftest.er1
30729 ac_status=$?
30730 grep -v '^ *+' conftest.er1 >conftest.err
30731 rm -f conftest.er1
30732 cat conftest.err >&5
30733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && {
30735 test -z "$ac_c_werror_flag" ||
30736 test ! -s conftest.err
30737 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
30738 bash_cv_kernel_rlimit=yes
30739else
abe2eb5b
CR
30740 $as_echo "$as_me: failed program was:" >&5
30741sed 's/^/| /' conftest.$ac_ext >&5
30742
30743 bash_cv_kernel_rlimit=no
ccc6cda3 30744fi
abe2eb5b 30745
b709b946 30746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30747
30748fi
abe2eb5b 30749
b709b946 30750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
30751fi
30752
abe2eb5b 30753{ $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
dd4f3dd8 30754$as_echo "$bash_cv_kernel_rlimit" >&6; }
ccc6cda3 30755if test $bash_cv_kernel_rlimit = yes; then
abe2eb5b
CR
30756cat >>confdefs.h <<\_ACEOF
30757#define RLIMIT_NEEDS_KERNEL 1
30758_ACEOF
ccc6cda3
JA
30759
30760fi
30761 ;;
30762esac
30763
30764if test "$opt_readline" = yes; then
d166f048
JA
30765case "$host_os" in
30766aix*) prefer_curses=yes ;;
30767esac
ccc6cda3
JA
30768
30769if test "X$bash_cv_termcap_lib" = "X"; then
30770_bash_needmsg=yes
30771else
abe2eb5b 30772{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
dd4f3dd8 30773$as_echo_n "checking which library has the termcap functions... " >&6; }
ccc6cda3
JA
30774_bash_needmsg=
30775fi
abe2eb5b
CR
30776if test "${bash_cv_termcap_lib+set}" = set; then
30777 $as_echo_n "(cached) " >&6
30778else
30779 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
30780$as_echo_n "checking for tgetent... " >&6; }
30781if test "${ac_cv_func_tgetent+set}" = set; then
30782 $as_echo_n "(cached) " >&6
30783else
30784 cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
30790/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
30791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30792#define tgetent innocuous_tgetent
30793
30794/* System header to define __stub macros and hopefully few prototypes,
30795 which can conflict with char tgetent (); below.
30796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30797 <limits.h> exists even on freestanding compilers. */
30798
30799#ifdef __STDC__
30800# include <limits.h>
30801#else
30802# include <assert.h>
30803#endif
30804
30805#undef tgetent
30806
30807/* Override any GCC internal prototype to avoid an error.
30808 Use char because int might match the return type of a GCC
30809 builtin and then its argument prototype would still apply. */
30810#ifdef __cplusplus
30811extern "C"
30812#endif
30813char tgetent ();
30814/* The GNU C library defines this for functions which it implements
30815 to always fail with ENOSYS. Some functions are actually named
30816 something starting with __ and the normal name is an alias. */
30817#if defined __stub_tgetent || defined __stub___tgetent
30818choke me
30819#endif
30820
30821int
30822main ()
30823{
30824return tgetent ();
30825 ;
30826 return 0;
30827}
30828_ACEOF
30829rm -f conftest.$ac_objext conftest$ac_exeext
30830if { (ac_try="$ac_link"
30831case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30834esac
30835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30836$as_echo "$ac_try_echo") >&5
30837 (eval "$ac_link") 2>conftest.er1
30838 ac_status=$?
30839 grep -v '^ *+' conftest.er1 >conftest.err
30840 rm -f conftest.er1
30841 cat conftest.err >&5
30842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); } && {
30844 test -z "$ac_c_werror_flag" ||
30845 test ! -s conftest.err
30846 } && test -s conftest$ac_exeext && {
30847 test "$cross_compiling" = yes ||
30848 $as_test_x conftest$ac_exeext
30849 }; then
30850 ac_cv_func_tgetent=yes
30851else
30852 $as_echo "$as_me: failed program was:" >&5
30853sed 's/^/| /' conftest.$ac_ext >&5
30854
30855 ac_cv_func_tgetent=no
30856fi
30857
30858rm -rf conftest.dSYM
30859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30860 conftest$ac_exeext conftest.$ac_ext
30861fi
30862{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
30863$as_echo "$ac_cv_func_tgetent" >&6; }
30864if test "x$ac_cv_func_tgetent" = x""yes; then
d3a24ed2
CR
30865 bash_cv_termcap_lib=libc
30866else
abe2eb5b 30867 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
dd4f3dd8 30868$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
abe2eb5b 30869if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
dd4f3dd8 30870 $as_echo_n "(cached) " >&6
ccc6cda3 30871else
f73dda09 30872 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 30873LIBS="-ltermcap $LIBS"
abe2eb5b
CR
30874cat >conftest.$ac_ext <<_ACEOF
30875/* confdefs.h. */
30876_ACEOF
30877cat confdefs.h >>conftest.$ac_ext
30878cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30879/* end confdefs.h. */
f73dda09 30880
b709b946
CR
30881/* Override any GCC internal prototype to avoid an error.
30882 Use char because int might match the return type of a GCC
30883 builtin and then its argument prototype would still apply. */
f73dda09
JA
30884#ifdef __cplusplus
30885extern "C"
30886#endif
f73dda09
JA
30887char tgetent ();
30888int
30889main ()
30890{
b709b946 30891return tgetent ();
f73dda09
JA
30892 ;
30893 return 0;
30894}
30895_ACEOF
abe2eb5b
CR
30896rm -f conftest.$ac_objext conftest$ac_exeext
30897if { (ac_try="$ac_link"
30898case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30901esac
30902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30903$as_echo "$ac_try_echo") >&5
30904 (eval "$ac_link") 2>conftest.er1
30905 ac_status=$?
30906 grep -v '^ *+' conftest.er1 >conftest.err
30907 rm -f conftest.er1
30908 cat conftest.err >&5
30909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } && {
30911 test -z "$ac_c_werror_flag" ||
30912 test ! -s conftest.err
30913 } && test -s conftest$ac_exeext && {
30914 test "$cross_compiling" = yes ||
30915 $as_test_x conftest$ac_exeext
30916 }; then
f73dda09
JA
30917 ac_cv_lib_termcap_tgetent=yes
30918else
abe2eb5b
CR
30919 $as_echo "$as_me: failed program was:" >&5
30920sed 's/^/| /' conftest.$ac_ext >&5
30921
30922 ac_cv_lib_termcap_tgetent=no
f73dda09 30923fi
abe2eb5b
CR
30924
30925rm -rf conftest.dSYM
30926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30927 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
30928LIBS=$ac_check_lib_save_LIBS
30929fi
abe2eb5b 30930{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
dd4f3dd8 30931$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
abe2eb5b 30932if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
ccc6cda3
JA
30933 bash_cv_termcap_lib=libtermcap
30934else
abe2eb5b 30935 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
dd4f3dd8 30936$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
abe2eb5b 30937if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
dd4f3dd8 30938 $as_echo_n "(cached) " >&6
ccc6cda3 30939else
f73dda09
JA
30940 ac_check_lib_save_LIBS=$LIBS
30941LIBS="-ltinfo $LIBS"
abe2eb5b
CR
30942cat >conftest.$ac_ext <<_ACEOF
30943/* confdefs.h. */
30944_ACEOF
30945cat confdefs.h >>conftest.$ac_ext
30946cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 30947/* end confdefs.h. */
f73dda09 30948
b709b946
CR
30949/* Override any GCC internal prototype to avoid an error.
30950 Use char because int might match the return type of a GCC
30951 builtin and then its argument prototype would still apply. */
f73dda09
JA
30952#ifdef __cplusplus
30953extern "C"
30954#endif
f73dda09
JA
30955char tgetent ();
30956int
30957main ()
30958{
b709b946 30959return tgetent ();
f73dda09
JA
30960 ;
30961 return 0;
30962}
30963_ACEOF
abe2eb5b
CR
30964rm -f conftest.$ac_objext conftest$ac_exeext
30965if { (ac_try="$ac_link"
30966case "(($ac_try" in
30967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30968 *) ac_try_echo=$ac_try;;
30969esac
30970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30971$as_echo "$ac_try_echo") >&5
30972 (eval "$ac_link") 2>conftest.er1
30973 ac_status=$?
30974 grep -v '^ *+' conftest.er1 >conftest.err
30975 rm -f conftest.er1
30976 cat conftest.err >&5
30977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); } && {
30979 test -z "$ac_c_werror_flag" ||
30980 test ! -s conftest.err
30981 } && test -s conftest$ac_exeext && {
30982 test "$cross_compiling" = yes ||
30983 $as_test_x conftest$ac_exeext
30984 }; then
f73dda09
JA
30985 ac_cv_lib_tinfo_tgetent=yes
30986else
abe2eb5b
CR
30987 $as_echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990 ac_cv_lib_tinfo_tgetent=no
f73dda09 30991fi
abe2eb5b
CR
30992
30993rm -rf conftest.dSYM
30994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30995 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
30996LIBS=$ac_check_lib_save_LIBS
30997fi
abe2eb5b 30998{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
dd4f3dd8 30999$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
abe2eb5b 31000if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
7117c2d2 31001 bash_cv_termcap_lib=libtinfo
f73dda09 31002else
abe2eb5b 31003 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
dd4f3dd8 31004$as_echo_n "checking for tgetent in -lcurses... " >&6; }
abe2eb5b 31005if test "${ac_cv_lib_curses_tgetent+set}" = set; then
dd4f3dd8 31006 $as_echo_n "(cached) " >&6
f73dda09
JA
31007else
31008 ac_check_lib_save_LIBS=$LIBS
31009LIBS="-lcurses $LIBS"
abe2eb5b
CR
31010cat >conftest.$ac_ext <<_ACEOF
31011/* confdefs.h. */
31012_ACEOF
31013cat confdefs.h >>conftest.$ac_ext
31014cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 31015/* end confdefs.h. */
ccc6cda3 31016
b709b946
CR
31017/* Override any GCC internal prototype to avoid an error.
31018 Use char because int might match the return type of a GCC
31019 builtin and then its argument prototype would still apply. */
f73dda09
JA
31020#ifdef __cplusplus
31021extern "C"
31022#endif
f73dda09
JA
31023char tgetent ();
31024int
31025main ()
31026{
b709b946 31027return tgetent ();
f73dda09
JA
31028 ;
31029 return 0;
31030}
31031_ACEOF
abe2eb5b
CR
31032rm -f conftest.$ac_objext conftest$ac_exeext
31033if { (ac_try="$ac_link"
31034case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31037esac
31038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31039$as_echo "$ac_try_echo") >&5
31040 (eval "$ac_link") 2>conftest.er1
31041 ac_status=$?
31042 grep -v '^ *+' conftest.er1 >conftest.err
31043 rm -f conftest.er1
31044 cat conftest.err >&5
31045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } && {
31047 test -z "$ac_c_werror_flag" ||
31048 test ! -s conftest.err
31049 } && test -s conftest$ac_exeext && {
31050 test "$cross_compiling" = yes ||
31051 $as_test_x conftest$ac_exeext
31052 }; then
f73dda09
JA
31053 ac_cv_lib_curses_tgetent=yes
31054else
abe2eb5b
CR
31055 $as_echo "$as_me: failed program was:" >&5
31056sed 's/^/| /' conftest.$ac_ext >&5
31057
31058 ac_cv_lib_curses_tgetent=no
f73dda09 31059fi
abe2eb5b
CR
31060
31061rm -rf conftest.dSYM
31062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31063 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
31064LIBS=$ac_check_lib_save_LIBS
31065fi
abe2eb5b 31066{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
dd4f3dd8 31067$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
abe2eb5b 31068if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
ccc6cda3
JA
31069 bash_cv_termcap_lib=libcurses
31070else
abe2eb5b 31071 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
dd4f3dd8 31072$as_echo_n "checking for tgetent in -lncurses... " >&6; }
abe2eb5b 31073if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
dd4f3dd8 31074 $as_echo_n "(cached) " >&6
ccc6cda3 31075else
f73dda09 31076 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 31077LIBS="-lncurses $LIBS"
abe2eb5b
CR
31078cat >conftest.$ac_ext <<_ACEOF
31079/* confdefs.h. */
31080_ACEOF
31081cat confdefs.h >>conftest.$ac_ext
31082cat >>conftest.$ac_ext <<_ACEOF
5e4a95c7 31083/* end confdefs.h. */
f73dda09 31084
b709b946
CR
31085/* Override any GCC internal prototype to avoid an error.
31086 Use char because int might match the return type of a GCC
31087 builtin and then its argument prototype would still apply. */
f73dda09
JA
31088#ifdef __cplusplus
31089extern "C"
31090#endif
f73dda09
JA
31091char tgetent ();
31092int
31093main ()
31094{
b709b946 31095return tgetent ();
f73dda09
JA
31096 ;
31097 return 0;
31098}
31099_ACEOF
abe2eb5b
CR
31100rm -f conftest.$ac_objext conftest$ac_exeext
31101if { (ac_try="$ac_link"
31102case "(($ac_try" in
31103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31104 *) ac_try_echo=$ac_try;;
31105esac
31106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31107$as_echo "$ac_try_echo") >&5
31108 (eval "$ac_link") 2>conftest.er1
31109 ac_status=$?
31110 grep -v '^ *+' conftest.er1 >conftest.err
31111 rm -f conftest.er1
31112 cat conftest.err >&5
31113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } && {
31115 test -z "$ac_c_werror_flag" ||
31116 test ! -s conftest.err
31117 } && test -s conftest$ac_exeext && {
31118 test "$cross_compiling" = yes ||
31119 $as_test_x conftest$ac_exeext
31120 }; then
f73dda09
JA
31121 ac_cv_lib_ncurses_tgetent=yes
31122else
abe2eb5b
CR
31123 $as_echo "$as_me: failed program was:" >&5
31124sed 's/^/| /' conftest.$ac_ext >&5
31125
31126 ac_cv_lib_ncurses_tgetent=no
f73dda09 31127fi
abe2eb5b
CR
31128
31129rm -rf conftest.dSYM
31130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31131 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
31132LIBS=$ac_check_lib_save_LIBS
31133fi
abe2eb5b 31134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
dd4f3dd8 31135$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
abe2eb5b 31136if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
f73dda09 31137 bash_cv_termcap_lib=libncurses
ccc6cda3 31138else
f73dda09 31139 bash_cv_termcap_lib=gnutermcap
ccc6cda3 31140fi
ccc6cda3 31141
ccc6cda3
JA
31142fi
31143
31144fi
31145
31146fi
31147
31148fi
31149
d3a24ed2
CR
31150fi
31151
ccc6cda3 31152if test "X$_bash_needmsg" = "Xyes"; then
abe2eb5b 31153{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
dd4f3dd8 31154$as_echo_n "checking which library has the termcap functions... " >&6; }
ccc6cda3 31155fi
abe2eb5b 31156{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
dd4f3dd8 31157$as_echo "using $bash_cv_termcap_lib" >&6; }
cce855bc 31158if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
31159LDFLAGS="$LDFLAGS -L./lib/termcap"
31160TERMCAP_LIB="./lib/termcap/libtermcap.a"
31161TERMCAP_DEP="./lib/termcap/libtermcap.a"
d166f048 31162elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
31163TERMCAP_LIB=-ltermcap
31164TERMCAP_DEP=
f73dda09
JA
31165elif test $bash_cv_termcap_lib = libtinfo; then
31166TERMCAP_LIB=-ltinfo
31167TERMCAP_DEP=
ccc6cda3
JA
31168elif test $bash_cv_termcap_lib = libncurses; then
31169TERMCAP_LIB=-lncurses
31170TERMCAP_DEP=
d3a24ed2
CR
31171elif test $bash_cv_termcap_lib = libc; then
31172TERMCAP_LIB=
31173TERMCAP_DEP=
ccc6cda3
JA
31174else
31175TERMCAP_LIB=-lcurses
31176TERMCAP_DEP=
31177fi
31178
31179fi
31180
a82a04b3
CR
31181
31182
abe2eb5b 31183{ $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
dd4f3dd8 31184$as_echo_n "checking whether /dev/fd is available... " >&6; }
abe2eb5b 31185if test "${bash_cv_dev_fd+set}" = set; then
dd4f3dd8 31186 $as_echo_n "(cached) " >&6
d166f048 31187else
d3ad40de
CR
31188 bash_cv_dev_fd=""
31189if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
de3341d1 31190# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
d3ad40de 31191 if (exec test -r /dev/fd/3 3</dev/null) ; then
de3341d1
CR
31192 bash_cv_dev_fd=standard
31193 else
31194 bash_cv_dev_fd=absent
31195 fi
d3ad40de
CR
31196fi
31197if test -z "$bash_cv_dev_fd" ; then
31198 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
31199 bash_cv_dev_fd=whacky
31200 else
31201 bash_cv_dev_fd=absent
31202 fi
31203fi
d166f048
JA
31204
31205fi
31206
abe2eb5b 31207{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
dd4f3dd8 31208$as_echo "$bash_cv_dev_fd" >&6; }
d166f048 31209if test $bash_cv_dev_fd = "standard"; then
abe2eb5b
CR
31210 cat >>confdefs.h <<\_ACEOF
31211#define HAVE_DEV_FD 1
31212_ACEOF
d166f048 31213
abe2eb5b
CR
31214 cat >>confdefs.h <<\_ACEOF
31215#define DEV_FD_PREFIX "/dev/fd/"
31216_ACEOF
d166f048
JA
31217
31218elif test $bash_cv_dev_fd = "whacky"; then
abe2eb5b
CR
31219 cat >>confdefs.h <<\_ACEOF
31220#define HAVE_DEV_FD 1
31221_ACEOF
d166f048 31222
abe2eb5b
CR
31223 cat >>confdefs.h <<\_ACEOF
31224#define DEV_FD_PREFIX "/proc/self/fd/"
31225_ACEOF
d166f048
JA
31226
31227fi
31228
abe2eb5b 31229{ $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
dd4f3dd8 31230$as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
abe2eb5b 31231if test "${bash_cv_dev_stdin+set}" = set; then
dd4f3dd8 31232 $as_echo_n "(cached) " >&6
bb70624e 31233else
d3ad40de 31234 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
bb70624e 31235 bash_cv_dev_stdin=present
d3ad40de 31236 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
bb70624e
JA
31237 bash_cv_dev_stdin=present
31238 else
31239 bash_cv_dev_stdin=absent
31240 fi
31241
31242fi
31243
abe2eb5b 31244{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
dd4f3dd8 31245$as_echo "$bash_cv_dev_stdin" >&6; }
bb70624e 31246if test $bash_cv_dev_stdin = "present"; then
abe2eb5b
CR
31247 cat >>confdefs.h <<\_ACEOF
31248#define HAVE_DEV_STDIN 1
31249_ACEOF
bb70624e
JA
31250
31251fi
31252
abe2eb5b 31253{ $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
dd4f3dd8 31254$as_echo_n "checking for default mail directory... " >&6; }
abe2eb5b 31255if test "${bash_cv_mail_dir+set}" = set; then
dd4f3dd8 31256 $as_echo_n "(cached) " >&6
ccc6cda3
JA
31257else
31258 if test -d /var/mail; then
31259 bash_cv_mail_dir=/var/mail
ccc6cda3
JA
31260 elif test -d /var/spool/mail; then
31261 bash_cv_mail_dir=/var/spool/mail
7117c2d2
JA
31262 elif test -d /usr/mail; then
31263 bash_cv_mail_dir=/usr/mail
e8ce775d
JA
31264 elif test -d /usr/spool/mail; then
31265 bash_cv_mail_dir=/usr/spool/mail
ccc6cda3
JA
31266 else
31267 bash_cv_mail_dir=unknown
31268 fi
31269
31270fi
31271
abe2eb5b 31272{ $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
dd4f3dd8 31273$as_echo "$bash_cv_mail_dir" >&6; }
a82a04b3 31274cat >>confdefs.h <<_ACEOF
7117c2d2 31275#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
a82a04b3
CR
31276_ACEOF
31277
31278
ccc6cda3 31279
ccc6cda3
JA
31280if test "$bash_cv_job_control_missing" = missing; then
31281 opt_job_control=no
31282fi
31283
31284if test "$opt_job_control" = yes; then
abe2eb5b
CR
31285cat >>confdefs.h <<\_ACEOF
31286#define JOB_CONTROL 1
31287_ACEOF
ccc6cda3
JA
31288
31289JOBS_O=jobs.o
31290else
31291JOBS_O=nojobs.o
31292fi
31293
a82a04b3
CR
31294
31295
31296
d166f048
JA
31297LOCAL_DEFS=-DSHELL
31298
a82a04b3 31299
b72432fd 31300case "${host_os}" in
abe2eb5b
CR
31301sysv4.2*) cat >>confdefs.h <<\_ACEOF
31302#define SVR4_2 1
31303_ACEOF
ccc6cda3 31304
abe2eb5b
CR
31305 cat >>confdefs.h <<\_ACEOF
31306#define SVR4 1
31307_ACEOF
ccc6cda3 31308 ;;
abe2eb5b
CR
31309sysv4*) cat >>confdefs.h <<\_ACEOF
31310#define SVR4 1
31311_ACEOF
ccc6cda3 31312 ;;
abe2eb5b
CR
31313sysv5*) cat >>confdefs.h <<\_ACEOF
31314#define SVR5 1
31315_ACEOF
b72432fd
JA
31316 ;;
31317hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
ccc6cda3
JA
31318hpux*) LOCAL_CFLAGS=-DHPUX ;;
31319dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
bb70624e
JA
31320isc*) LOCAL_CFLAGS=-Disc386 ;;
31321rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
f73dda09 31322darwin*) LOCAL_CFLAGS=-DMACOSX ;;
7117c2d2
JA
31323sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
31324sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
ccc6cda3 31325sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
d166f048 31326sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
d3ad40de 31327solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
db31fb26
CR
31328solaris2.8*) LOCAL_CFLAGS=-DSOLARIS ;;
31329solaris2.9*) LOCAL_CFLAGS=-DSOLARIS ;;
31330solaris2.10*) LOCAL_CFLAGS=-DSOLARIS ;;
d3ad40de 31331solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
b72432fd 31332lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
3ffb039a
CR
31333linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31334 case "`uname -r`" in
abe2eb5b
CR
31335 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
31336#define PGRP_PIPE 1
31337_ACEOF
3ffb039a
CR
31338 ;;
31339 esac ;;
fd3925f1 31340*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
7117c2d2 31341*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
b72432fd 31342powerux*) LOCAL_LIBS="-lgen" ;;
d3a24ed2 31343cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
2c471a92 31344opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE -D_ALL_SOURCE" ;;
b72432fd
JA
31345esac
31346
31347case "${host_os}-${CC}" in
31348aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
31349aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
31350bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
ccc6cda3
JA
31351esac
31352
bb70624e 31353case "${host_os}" in
28ef6c31
JA
31354freebsd[3-9]*)
31355 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
bb70624e
JA
31356 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
31357 fi ;;
28ef6c31 31358freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
798a67db 31359dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
bb70624e
JA
31360esac
31361
ccc6cda3
JA
31362case "$host_cpu" in
31363*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
31364esac
31365
31366case "$host_cpu-$host_os" in
31367ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
31368esac
31369
31370case "$host_cpu-$host_vendor-$host_os" in
31371m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
31372mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
31373esac
31374
b72432fd
JA
31375#
31376# Shared object configuration section. These values are generated by
31377# ${srcdir}/support/shobj-conf
31378#
31379if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
31380then
abe2eb5b 31381 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
dd4f3dd8 31382$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
28ef6c31 31383 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
f73dda09 31384
a82a04b3
CR
31385
31386
31387
31388
31389
31390
abe2eb5b 31391 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
dd4f3dd8 31392$as_echo "$SHOBJ_STATUS" >&6; }
b72432fd
JA
31393fi
31394
ccc6cda3
JA
31395# try to create a directory tree if the source is elsewhere
31396# this should be packaged into a script accessible via ${srcdir}/support
31397case "$srcdir" in
31398.) ;;
cce855bc 31399*) for d in doc tests support lib examples; do # dirs
ccc6cda3
JA
31400 test -d $d || mkdir $d
31401 done
cce855bc 31402 for ld in readline glob tilde malloc sh termcap; do # libdirs
ccc6cda3
JA
31403 test -d lib/$ld || mkdir lib/$ld
31404 done
cce855bc 31405 test -d examples/loadables || mkdir examples/loadables # loadable builtins
bb70624e 31406 test -d examples/loadables/perl || mkdir examples/loadables/perl
ccc6cda3
JA
31407 ;;
31408esac
31409
31410BUILD_DIR=`pwd`
10590446
CR
31411case "$BUILD_DIR" in
31412*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
31413*) ;;
31414esac
ccc6cda3 31415
c184f645
CR
31416if test -z "$localedir"; then
31417 localedir='${datarootdir}/locale'
31418fi
31419if test -z "$datarootdir"; then
31420 datarootdir='${prefix}/share'
31421fi
a82a04b3
CR
31422
31423
31424
31425
31426
31427
c184f645
CR
31428# Some versions of autoconf don't substitute these automatically
31429
a82a04b3
CR
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
d166f048 31447
d3ad40de 31448
d3ad40de 31449
c184f645
CR
31450#AC_SUBST(ALLOCA_SOURCE)
31451#AC_SUBST(ALLOCA_OBJECT)
31452
b709b946
CR
31453ac_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"
31454
31455ac_config_commands="$ac_config_commands default"
31456
f73dda09 31457cat >confcache <<\_ACEOF
ccc6cda3
JA
31458# This file is a shell script that caches the results of configure
31459# tests run on this system so they can be shared between configure
f73dda09
JA
31460# scripts and configure runs, see configure's option --config-cache.
31461# It is not useful on other systems. If it contains results you don't
31462# want to keep, you may remove or edit it.
726f6388 31463#
f73dda09
JA
31464# config.status only pays attention to the cache file if you give it
31465# the --recheck option to rerun configure.
ccc6cda3 31466#
5e4a95c7 31467# `ac_cv_env_foo' variables (set or unset) will be overridden when
f73dda09
JA
31468# loading this file, other *unset* `ac_cv_foo' will be assigned the
31469# following values.
31470
31471_ACEOF
31472
ccc6cda3
JA
31473# The following way of writing the cache mishandles newlines in values,
31474# but we know of no workaround that is simple, portable, and efficient.
b709b946 31475# So, we kill variables containing newlines.
ccc6cda3
JA
31476# Ultrix sh set writes to stderr and can't be redirected directly,
31477# and sets the high bit in the cache file unless we assign to the vars.
b709b946
CR
31478(
31479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31480 eval ac_val=\$$ac_var
31481 case $ac_val in #(
31482 *${as_nl}*)
31483 case $ac_var in #(
abe2eb5b 31484 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
af98a2a6 31485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b709b946
CR
31486 esac
31487 case $ac_var in #(
31488 _ | IFS | as_nl) ;; #(
dd4f3dd8 31489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
abe2eb5b 31490 *) $as_unset $ac_var ;;
b709b946
CR
31491 esac ;;
31492 esac
31493 done
31494
f73dda09 31495 (set) 2>&1 |
b709b946
CR
31496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31497 *${as_nl}ac_space=\ *)
abe2eb5b
CR
31498 # `set' does not quote correctly, so add quotes (double-quote
31499 # substitution turns \\\\ into \\, and sed turns \\ into \).
f73dda09 31500 sed -n \
5e4a95c7
CR
31501 "s/'/'\\\\''/g;
31502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b709b946 31503 ;; #(
f73dda09
JA
31504 *)
31505 # `set' quotes correctly as required by POSIX, so do not add quotes.
b709b946 31506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f73dda09 31507 ;;
b709b946
CR
31508 esac |
31509 sort
31510) |
f73dda09 31511 sed '
b709b946 31512 /^ac_cv_env_/b end
f73dda09 31513 t clear
b709b946 31514 :clear
f73dda09
JA
31515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31516 t end
b709b946
CR
31517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31518 :end' >>confcache
31519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31520 if test -w "$cache_file"; then
abe2eb5b
CR
31521 test "x$cache_file" != "x/dev/null" &&
31522 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
dd4f3dd8 31523$as_echo "$as_me: updating cache $cache_file" >&6;}
abe2eb5b 31524 cat confcache >$cache_file
ccc6cda3 31525 else
abe2eb5b 31526 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
dd4f3dd8 31527$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
ccc6cda3
JA
31528 fi
31529fi
31530rm -f confcache
31531
ccc6cda3
JA
31532test "x$prefix" = xNONE && prefix=$ac_default_prefix
31533# Let make expand exec_prefix.
31534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31535
ccc6cda3
JA
31536DEFS=-DHAVE_CONFIG_H
31537
5e4a95c7
CR
31538ac_libobjs=
31539ac_ltlibobjs=
31540for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31541 # 1. Remove the extension, and $U if already installed.
b709b946 31542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
dd4f3dd8 31543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
b709b946
CR
31544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31545 # will be set to the directory where LIBOBJS objects are built.
abe2eb5b
CR
31546 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31547 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5e4a95c7
CR
31548done
31549LIBOBJS=$ac_libobjs
31550
31551LTLIBOBJS=$ac_ltlibobjs
31552
31553
a82a04b3 31554
af98a2a6 31555
abe2eb5b 31556: ${CONFIG_STATUS=./config.status}
dd4f3dd8 31557ac_write_fail=0
f73dda09
JA
31558ac_clean_files_save=$ac_clean_files
31559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
abe2eb5b 31560{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
dd4f3dd8 31561$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
abe2eb5b 31562cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 31563#! $SHELL
a82a04b3 31564# Generated by $as_me.
ccc6cda3 31565# Run this file to recreate the current configuration.
ccc6cda3 31566# Compiler output produced by configure, useful for debugging
f73dda09 31567# configure, is in config.log if it exists.
ccc6cda3 31568
f73dda09 31569debug=false
5e4a95c7
CR
31570ac_cs_recheck=false
31571ac_cs_silent=false
2dead0c4 31572SHELL=\${CONFIG_SHELL-$SHELL}
abe2eb5b
CR
31573_ACEOF
31574
31575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31576## --------------------- ##
31577## M4sh Initialization. ##
31578## --------------------- ##
a82a04b3 31579
dd4f3dd8
CR
31580# Be more Bourne compatible
31581DUALCASE=1; export DUALCASE # for MKS sh
abe2eb5b 31582if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
f73dda09
JA
31583 emulate sh
31584 NULLCMD=:
dd4f3dd8 31585 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5e4a95c7
CR
31586 # is contrary to our usage. Disable this feature.
31587 alias -g '${1+"$@"}'='"$@"'
b709b946
CR
31588 setopt NO_GLOB_SUBST
31589else
abe2eb5b
CR
31590 case `(set -o) 2>/dev/null` in
31591 *posix*) set -o posix ;;
dd4f3dd8 31592esac
abe2eb5b 31593
f73dda09 31594fi
dd4f3dd8
CR
31595
31596
abe2eb5b
CR
31597
31598
31599# PATH needs CR
31600# Avoid depending upon Character Ranges.
31601as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31602as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31603as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31604as_cr_digits='0123456789'
31605as_cr_alnum=$as_cr_Letters$as_cr_digits
31606
dd4f3dd8
CR
31607as_nl='
31608'
31609export as_nl
31610# Printing a long string crashes Solaris 7 /usr/bin/printf.
31611as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31613as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
abe2eb5b 31614if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
dd4f3dd8
CR
31615 as_echo='printf %s\n'
31616 as_echo_n='printf %s'
31617else
31618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31620 as_echo_n='/usr/ucb/echo -n'
b709b946 31621 else
dd4f3dd8
CR
31622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31623 as_echo_n_body='eval
31624 arg=$1;
abe2eb5b 31625 case $arg in
dd4f3dd8
CR
31626 *"$as_nl"*)
31627 expr "X$arg" : "X\\(.*\\)$as_nl";
31628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31629 esac;
31630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31631 '
31632 export as_echo_n_body
31633 as_echo_n='sh -c $as_echo_n_body as_echo'
b709b946 31634 fi
dd4f3dd8
CR
31635 export as_echo_body
31636 as_echo='sh -c $as_echo_body as_echo'
31637fi
31638
31639# The user is always right.
31640if test "${PATH_SEPARATOR+set}" != set; then
31641 PATH_SEPARATOR=:
31642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31644 PATH_SEPARATOR=';'
31645 }
b709b946
CR
31646fi
31647
abe2eb5b
CR
31648# Support unset when possible.
31649if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31650 as_unset=unset
31651else
31652 as_unset=false
31653fi
31654
5e4a95c7 31655
b709b946
CR
31656# IFS
31657# We need space, tab and new line, in precisely that order. Quoting is
31658# there to prevent editors from complaining about space-tab.
31659# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31660# splitting by setting IFS to empty value.)
b709b946
CR
31661IFS=" "" $as_nl"
31662
31663# Find who we are. Look in the path if we contain no directory separator.
abe2eb5b 31664case $0 in
b709b946
CR
31665 *[\\/]* ) as_myself=$0 ;;
31666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31667for as_dir in $PATH
31668do
31669 IFS=$as_save_IFS
31670 test -z "$as_dir" && as_dir=.
abe2eb5b
CR
31671 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31672done
b709b946
CR
31673IFS=$as_save_IFS
31674
31675 ;;
31676esac
31677# We did not find ourselves, most probably we were run as `sh COMMAND'
31678# in which case we are not to be found in the path.
31679if test "x$as_myself" = x; then
31680 as_myself=$0
31681fi
31682if test ! -f "$as_myself"; then
dd4f3dd8 31683 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
abe2eb5b 31684 { (exit 1); exit 1; }
b709b946
CR
31685fi
31686
abe2eb5b
CR
31687# Work around bugs in pre-3.0 UWIN ksh.
31688for as_var in ENV MAIL MAILPATH
31689do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
b709b946 31690done
5e4a95c7
CR
31691PS1='$ '
31692PS2='> '
31693PS4='+ '
31694
31695# NLS nuisances.
dd4f3dd8
CR
31696LC_ALL=C
31697export LC_ALL
31698LANGUAGE=C
31699export LANGUAGE
5e4a95c7 31700
abe2eb5b 31701# Required to use basename.
b709b946
CR
31702if expr a : '\(a\)' >/dev/null 2>&1 &&
31703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5e4a95c7
CR
31704 as_expr=expr
31705else
31706 as_expr=false
31707fi
31708
b709b946 31709if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5e4a95c7
CR
31710 as_basename=basename
31711else
31712 as_basename=false
31713fi
a82a04b3 31714
f73dda09 31715
abe2eb5b 31716# Name of the executable.
b709b946 31717as_me=`$as_basename -- "$0" ||
a82a04b3
CR
31718$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31719 X"$0" : 'X\(//\)$' \| \
b709b946 31720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
dd4f3dd8 31721$as_echo X/"$0" |
b709b946
CR
31722 sed '/^.*\/\([^/][^/]*\)\/*$/{
31723 s//\1/
31724 q
31725 }
31726 /^X\/\(\/\/\)$/{
31727 s//\1/
31728 q
31729 }
31730 /^X\/\(\/\).*/{
31731 s//\1/
31732 q
31733 }
31734 s/.*/./; q'`
a82a04b3 31735
abe2eb5b
CR
31736# CDPATH.
31737$as_unset CDPATH
31738
31739
31740
31741 as_lineno_1=$LINENO
31742 as_lineno_2=$LINENO
31743 test "x$as_lineno_1" != "x$as_lineno_2" &&
31744 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31745
31746 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31747 # uniformly replaced by the line number. The first 'sed' inserts a
31748 # line-number line after each line using $LINENO; the second 'sed'
31749 # does the real work. The second script uses 'N' to pair each
31750 # line-number line with the line containing $LINENO, and appends
31751 # trailing '-' during substitution so that $LINENO is not a special
31752 # case at line end.
31753 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31754 # scripts with optimization help from Paolo Bonzini. Blame Lee
31755 # E. McMahon (1931-1989) for sed's syntax. :-)
31756 sed -n '
31757 p
31758 /[$]LINENO/=
31759 ' <$as_myself |
31760 sed '
31761 s/[$]LINENO.*/&-/
31762 t lineno
31763 b
31764 :lineno
31765 N
31766 :loop
31767 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31768 t loop
31769 s/-\n.*//
31770 ' >$as_me.lineno &&
31771 chmod +x "$as_me.lineno" ||
31772 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31773 { (exit 1); exit 1; }; }
31774
31775 # Don't try to exec as it changes $[0], causing all sort of problems
31776 # (the dirname of $[0] is not the place where we might find the
31777 # original and so on. Autoconf is especially sensitive to this).
31778 . "./$as_me.lineno"
31779 # Exit status is that of the last command.
31780 exit
31781}
31782
31783
31784if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31785 as_dirname=dirname
31786else
31787 as_dirname=false
31788fi
b709b946
CR
31789
31790ECHO_C= ECHO_N= ECHO_T=
abe2eb5b 31791case `echo -n x` in
b709b946 31792-n*)
abe2eb5b 31793 case `echo 'x\c'` in
b709b946 31794 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
abe2eb5b 31795 *) ECHO_C='\c';;
b709b946
CR
31796 esac;;
31797*)
31798 ECHO_N='-n';;
a82a04b3 31799esac
abe2eb5b
CR
31800if expr a : '\(a\)' >/dev/null 2>&1 &&
31801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31802 as_expr=expr
31803else
31804 as_expr=false
31805fi
f73dda09
JA
31806
31807rm -f conf$$ conf$$.exe conf$$.file
b709b946
CR
31808if test -d conf$$.dir; then
31809 rm -f conf$$.dir/conf$$.file
31810else
31811 rm -f conf$$.dir
dd4f3dd8
CR
31812 mkdir conf$$.dir 2>/dev/null
31813fi
31814if (echo >conf$$.file) 2>/dev/null; then
31815 if ln -s conf$$.file conf$$ 2>/dev/null; then
31816 as_ln_s='ln -s'
31817 # ... but there are two gotchas:
31818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31820 # In both cases, we have to default to `cp -p'.
31821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31822 as_ln_s='cp -p'
31823 elif ln conf$$.file conf$$ 2>/dev/null; then
31824 as_ln_s=ln
31825 else
f73dda09 31826 as_ln_s='cp -p'
dd4f3dd8 31827 fi
f73dda09
JA
31828else
31829 as_ln_s='cp -p'
31830fi
b709b946
CR
31831rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31832rmdir conf$$.dir 2>/dev/null
f73dda09 31833
5e4a95c7 31834if mkdir -p . 2>/dev/null; then
abe2eb5b 31835 as_mkdir_p=:
5e4a95c7
CR
31836else
31837 test -d ./-p && rmdir ./-p
31838 as_mkdir_p=false
31839fi
31840
dd4f3dd8
CR
31841if test -x / >/dev/null 2>&1; then
31842 as_test_x='test -x'
b709b946 31843else
dd4f3dd8
CR
31844 if ls -dL / >/dev/null 2>&1; then
31845 as_ls_L_option=L
31846 else
31847 as_ls_L_option=
31848 fi
31849 as_test_x='
31850 eval sh -c '\''
31851 if test -d "$1"; then
31852 test -d "$1/.";
31853 else
abe2eb5b 31854 case $1 in
dd4f3dd8
CR
31855 -*)set "./$1";;
31856 esac;
abe2eb5b 31857 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
dd4f3dd8
CR
31858 ???[sx]*):;;*)false;;esac;fi
31859 '\'' sh
31860 '
b709b946 31861fi
dd4f3dd8 31862as_executable_p=$as_test_x
a82a04b3
CR
31863
31864# Sed expression to map a string onto a valid CPP name.
5e4a95c7 31865as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a82a04b3
CR
31866
31867# Sed expression to map a string onto a valid variable name.
5e4a95c7 31868as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a82a04b3 31869
f73dda09 31870
f73dda09
JA
31871exec 6>&1
31872
abe2eb5b 31873# Save the log message, to keep $[0] and so on meaningful, and to
a82a04b3 31874# report actual input values of CONFIG_FILES etc. instead of their
b709b946
CR
31875# values after options handling.
31876ac_log="
e192f341 31877This file was extended by bash $as_me 4.2-maint, which was
abe2eb5b 31878generated by GNU Autoconf 2.63. Invocation command line was
a82a04b3
CR
31879
31880 CONFIG_FILES = $CONFIG_FILES
31881 CONFIG_HEADERS = $CONFIG_HEADERS
31882 CONFIG_LINKS = $CONFIG_LINKS
31883 CONFIG_COMMANDS = $CONFIG_COMMANDS
31884 $ $0 $@
31885
b709b946
CR
31886on `(hostname || uname -n) 2>/dev/null | sed 1q`
31887"
31888
f73dda09
JA
31889_ACEOF
31890
af98a2a6
CR
31891case $ac_config_files in *"
31892"*) set x $ac_config_files; shift; ac_config_files=$*;;
31893esac
31894
31895case $ac_config_headers in *"
31896"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31897esac
31898
31899
dd4f3dd8 31900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 31901# Files that config.status was made for.
b709b946
CR
31902config_files="$ac_config_files"
31903config_headers="$ac_config_headers"
31904config_commands="$ac_config_commands"
c184f645 31905
b709b946 31906_ACEOF
f73dda09 31907
dd4f3dd8 31908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09 31909ac_cs_usage="\
abe2eb5b
CR
31910\`$as_me' instantiates files from templates according to the
31911current configuration.
f73dda09 31912
abe2eb5b 31913Usage: $0 [OPTION]... [FILE]...
f73dda09
JA
31914
31915 -h, --help print this help, then exit
dd4f3dd8 31916 -V, --version print version number and configuration settings, then exit
af98a2a6
CR
31917 -q, --quiet, --silent
31918 do not print progress messages
f73dda09
JA
31919 -d, --debug don't remove temporary files
31920 --recheck update $as_me by reconfiguring in the same conditions
af98a2a6 31921 --file=FILE[:TEMPLATE]
dd4f3dd8 31922 instantiate the configuration file FILE
af98a2a6 31923 --header=FILE[:TEMPLATE]
dd4f3dd8 31924 instantiate the configuration header FILE
f73dda09
JA
31925
31926Configuration files:
31927$config_files
31928
31929Configuration headers:
31930$config_headers
31931
31932Configuration commands:
31933$config_commands
31934
abe2eb5b 31935Report bugs to <bug-autoconf@gnu.org>."
c184f645 31936
b709b946 31937_ACEOF
dd4f3dd8 31938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 31939ac_cs_version="\\
e192f341 31940bash config.status 4.2-maint
abe2eb5b
CR
31941configured by $0, generated by GNU Autoconf 2.63,
31942 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f73dda09 31943
abe2eb5b 31944Copyright (C) 2008 Free Software Foundation, Inc.
f73dda09
JA
31945This config.status script is free software; the Free Software Foundation
31946gives unlimited permission to copy, distribute and modify it."
b709b946
CR
31947
31948ac_pwd='$ac_pwd'
31949srcdir='$srcdir'
31950INSTALL='$INSTALL'
dd4f3dd8 31951test -n "\$AWK" || AWK=awk
a82a04b3 31952_ACEOF
f73dda09 31953
dd4f3dd8
CR
31954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31955# The default lists apply if the user does not specify any file.
f73dda09
JA
31956ac_need_defaults=:
31957while test $# != 0
ccc6cda3 31958do
f73dda09 31959 case $1 in
abe2eb5b 31960 --*=*)
b709b946
CR
31961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5e4a95c7
CR
31963 ac_shift=:
31964 ;;
b709b946 31965 *)
5e4a95c7
CR
31966 ac_option=$1
31967 ac_optarg=$2
31968 ac_shift=shift
f73dda09 31969 ;;
f73dda09
JA
31970 esac
31971
5e4a95c7 31972 case $ac_option in
f73dda09 31973 # Handling of the options.
5e4a95c7
CR
31974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31975 ac_cs_recheck=: ;;
b709b946 31976 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
dd4f3dd8 31977 $as_echo "$ac_cs_version"; exit ;;
b709b946 31978 --debug | --debu | --deb | --de | --d | -d )
f73dda09
JA
31979 debug=: ;;
31980 --file | --fil | --fi | --f )
5e4a95c7 31981 $ac_shift
dd4f3dd8
CR
31982 case $ac_optarg in
31983 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31984 esac
abe2eb5b 31985 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
f73dda09
JA
31986 ac_need_defaults=false;;
31987 --header | --heade | --head | --hea )
5e4a95c7 31988 $ac_shift
dd4f3dd8
CR
31989 case $ac_optarg in
31990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31991 esac
abe2eb5b 31992 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
f73dda09 31993 ac_need_defaults=false;;
b709b946
CR
31994 --he | --h)
31995 # Conflict between --help and --header
abe2eb5b
CR
31996 { $as_echo "$as_me: error: ambiguous option: $1
31997Try \`$0 --help' for more information." >&2
31998 { (exit 1); exit 1; }; };;
b709b946 31999 --help | --hel | -h )
dd4f3dd8 32000 $as_echo "$ac_cs_usage"; exit ;;
5e4a95c7
CR
32001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32003 ac_cs_silent=: ;;
f73dda09
JA
32004
32005 # This is an error.
abe2eb5b
CR
32006 -*) { $as_echo "$as_me: error: unrecognized option: $1
32007Try \`$0 --help' for more information." >&2
32008 { (exit 1); exit 1; }; } ;;
f73dda09 32009
abe2eb5b 32010 *) ac_config_targets="$ac_config_targets $1"
b709b946 32011 ac_need_defaults=false ;;
f73dda09 32012
ccc6cda3 32013 esac
f73dda09 32014 shift
ccc6cda3
JA
32015done
32016
5e4a95c7
CR
32017ac_configure_extra_args=
32018
32019if $ac_cs_silent; then
32020 exec 6>/dev/null
32021 ac_configure_extra_args="$ac_configure_extra_args --silent"
32022fi
32023
32024_ACEOF
dd4f3dd8 32025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5e4a95c7 32026if \$ac_cs_recheck; then
dd4f3dd8
CR
32027 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32028 shift
32029 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32030 CONFIG_SHELL='$SHELL'
b709b946 32031 export CONFIG_SHELL
dd4f3dd8 32032 exec "\$@"
5e4a95c7
CR
32033fi
32034
f73dda09 32035_ACEOF
dd4f3dd8 32036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b709b946
CR
32037exec 5>>config.log
32038{
32039 echo
32040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32041## Running $as_me. ##
32042_ASBOX
dd4f3dd8 32043 $as_echo "$ac_log"
b709b946 32044} >&5
ccc6cda3 32045
b709b946 32046_ACEOF
dd4f3dd8 32047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5e13499c 32048#
b709b946 32049# INIT-COMMANDS
5e13499c 32050#
5e13499c
CR
32051# Capture the value of obsolete ALL_LINGUAS because we need it to compute
32052 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32053 # from automake.
32054 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32055 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32056 LINGUAS="${LINGUAS-%UNSET%}"
32057
5e13499c 32058
a82a04b3
CR
32059_ACEOF
32060
dd4f3dd8 32061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b709b946
CR
32062
32063# Handling of arguments.
f73dda09
JA
32064for ac_config_target in $ac_config_targets
32065do
b709b946
CR
32066 case $ac_config_target in
32067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32068 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32069 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32070 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
32071 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
32072 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
32073 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
32074 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
32075 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
32076 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
32077 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
32078 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32079 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
32080 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32081 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
32082 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
32083 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32084
abe2eb5b
CR
32085 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32086$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32087 { (exit 1); exit 1; }; };;
f73dda09
JA
32088 esac
32089done
32090
b709b946 32091
f73dda09
JA
32092# If the user did not use the arguments to specify the items to instantiate,
32093# then the envvar interface is used. Set only those that are not.
32094# We use the long form for the default assignment because of an extremely
32095# bizarre bug on SunOS 4.1.3.
32096if $ac_need_defaults; then
32097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32100fi
32101
5e4a95c7 32102# Have a temporary directory for convenience. Make it in the build tree
b709b946 32103# simply because there is no reason against having it here, and in addition,
5e4a95c7 32104# creating and moving files from /tmp can sometimes cause problems.
b709b946
CR
32105# Hook for its removal unless debugging.
32106# Note that there is a small window in which the directory will not be cleaned:
32107# after its creation but before its name has been assigned to `$tmp'.
f73dda09
JA
32108$debug ||
32109{
abe2eb5b 32110 tmp=
b709b946 32111 trap 'exit_status=$?
abe2eb5b 32112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
b709b946 32113' 0
abe2eb5b 32114 trap '{ (exit 1); exit 1; }' 1 2 13 15
f73dda09 32115}
f73dda09 32116# Create a (secure) tmp directory for tmp files.
5e4a95c7 32117
f73dda09 32118{
b709b946 32119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
abe2eb5b 32120 test -n "$tmp" && test -d "$tmp"
f73dda09
JA
32121} ||
32122{
b709b946
CR
32123 tmp=./conf$$-$RANDOM
32124 (umask 077 && mkdir "$tmp")
abe2eb5b
CR
32125} ||
32126{
32127 $as_echo "$as_me: cannot create a temporary directory in ." >&2
32128 { (exit 1); exit 1; }
32129}
ccc6cda3 32130
dd4f3dd8
CR
32131# Set up the scripts for CONFIG_FILES section.
32132# No need to generate them if there are no CONFIG_FILES.
32133# This happens for instance with `./config.status config.h'.
b709b946
CR
32134if test -n "$CONFIG_FILES"; then
32135
b709b946 32136
abe2eb5b 32137ac_cr='\r'
dd4f3dd8
CR
32138ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32139if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32140 ac_cs_awk_cr='\\r'
32141else
32142 ac_cs_awk_cr=$ac_cr
b709b946
CR
32143fi
32144
abe2eb5b 32145echo 'BEGIN {' >"$tmp/subs1.awk" &&
b709b946
CR
32146_ACEOF
32147
32148
dd4f3dd8
CR
32149{
32150 echo "cat >conf$$subs.awk <<_ACEOF" &&
32151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32152 echo "_ACEOF"
32153} >conf$$subs.sh ||
abe2eb5b
CR
32154 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32155$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32156 { (exit 1); exit 1; }; }
32157ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
b709b946
CR
32158ac_delim='%!_!# '
32159for ac_last_try in false false false false false :; do
dd4f3dd8 32160 . ./conf$$subs.sh ||
abe2eb5b
CR
32161 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32162$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32163 { (exit 1); exit 1; }; }
dd4f3dd8 32164
af98a2a6
CR
32165 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32166 if test $ac_delim_n = $ac_delim_num; then
b709b946
CR
32167 break
32168 elif $ac_last_try; then
abe2eb5b
CR
32169 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32170$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32171 { (exit 1); exit 1; }; }
b709b946
CR
32172 else
32173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32174 fi
32175done
dd4f3dd8
CR
32176rm -f conf$$subs.sh
32177
32178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
abe2eb5b 32179cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
dd4f3dd8
CR
32180_ACEOF
32181sed -n '
32182h
32183s/^/S["/; s/!.*/"]=/
32184p
32185g
32186s/^[^!]*!//
32187:repl
32188t repl
32189s/'"$ac_delim"'$//
32190t delim
32191:nl
32192h
abe2eb5b 32193s/\(.\{148\}\).*/\1/
dd4f3dd8
CR
32194t more1
32195s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32196p
32197n
32198b repl
32199:more1
32200s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32201p
32202g
32203s/.\{148\}//
32204t nl
32205:delim
32206h
abe2eb5b 32207s/\(.\{148\}\).*/\1/
dd4f3dd8
CR
32208t more2
32209s/["\\]/\\&/g; s/^/"/; s/$/"/
32210p
32211b
32212:more2
32213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32214p
32215g
32216s/.\{148\}//
32217t delim
32218' <conf$$subs.awk | sed '
32219/^[^""]/{
32220 N
32221 s/\n//
32222}
32223' >>$CONFIG_STATUS || ac_write_fail=1
32224rm -f conf$$subs.awk
32225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32226_ACAWK
abe2eb5b 32227cat >>"\$tmp/subs1.awk" <<_ACAWK &&
dd4f3dd8
CR
32228 for (key in S) S_is_set[key] = 1
32229 FS = "\a"
32230
32231}
32232{
32233 line = $ 0
32234 nfields = split(line, field, "@")
32235 substed = 0
32236 len = length(field[1])
32237 for (i = 2; i < nfields; i++) {
32238 key = field[i]
32239 keylen = length(key)
32240 if (S_is_set[key]) {
32241 value = S[key]
32242 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32243 len += length(value) + length(field[++i])
32244 substed = 1
32245 } else
32246 len += 1 + keylen
32247 }
b709b946 32248
dd4f3dd8
CR
32249 print line
32250}
d3ad40de 32251
dd4f3dd8 32252_ACAWK
b709b946 32253_ACEOF
dd4f3dd8
CR
32254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32255if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32256 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32257else
32258 cat
abe2eb5b
CR
32259fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32260 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
32261$as_echo "$as_me: error: could not setup config files machinery" >&2;}
32262 { (exit 1); exit 1; }; }
a82a04b3 32263_ACEOF
b709b946 32264
abe2eb5b
CR
32265# VPATH may cause trouble with some makes, so we remove $(srcdir),
32266# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
b709b946
CR
32267# trailing colons and then remove the whole line if VPATH becomes empty
32268# (actually we leave an empty line to preserve line numbers).
32269if test "x$srcdir" = x.; then
abe2eb5b
CR
32270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32271s/:*\$(srcdir):*/:/
32272s/:*\${srcdir}:*/:/
32273s/:*@srcdir@:*/:/
32274s/^\([^=]*=[ ]*\):*/\1/
b709b946
CR
32275s/:*$//
32276s/^[^=]*=[ ]*$//
32277}'
32278fi
32279
dd4f3dd8 32280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b709b946
CR
32281fi # test -n "$CONFIG_FILES"
32282
dd4f3dd8
CR
32283# Set up the scripts for CONFIG_HEADERS section.
32284# No need to generate them if there are no CONFIG_HEADERS.
32285# This happens for instance with `./config.status Makefile'.
32286if test -n "$CONFIG_HEADERS"; then
abe2eb5b 32287cat >"$tmp/defines.awk" <<\_ACAWK ||
dd4f3dd8
CR
32288BEGIN {
32289_ACEOF
32290
32291# Transform confdefs.h into an awk script `defines.awk', embedded as
32292# here-document in config.status, that substitutes the proper values into
32293# config.h.in to produce config.h.
32294
32295# Create a delimiter string that does not exist in confdefs.h, to ease
32296# handling of long lines.
32297ac_delim='%!_!# '
32298for ac_last_try in false false :; do
abe2eb5b
CR
32299 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32300 if test -z "$ac_t"; then
dd4f3dd8
CR
32301 break
32302 elif $ac_last_try; then
abe2eb5b
CR
32303 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
32304$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
32305 { (exit 1); exit 1; }; }
dd4f3dd8
CR
32306 else
32307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32308 fi
32309done
32310
32311# For the awk script, D is an array of macro values keyed by name,
32312# likewise P contains macro parameters if any. Preserve backslash
32313# newline sequences.
32314
32315ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32316sed -n '
32317s/.\{148\}/&'"$ac_delim"'/g
32318t rset
32319:rset
32320s/^[ ]*#[ ]*define[ ][ ]*/ /
32321t def
32322d
32323:def
32324s/\\$//
32325t bsnl
32326s/["\\]/\\&/g
32327s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32328D["\1"]=" \3"/p
32329s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32330d
32331:bsnl
32332s/["\\]/\\&/g
32333s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32334D["\1"]=" \3\\\\\\n"\\/p
32335t cont
32336s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32337t cont
32338d
32339:cont
32340n
32341s/.\{148\}/&'"$ac_delim"'/g
32342t clear
32343:clear
32344s/\\$//
32345t bsnlc
32346s/["\\]/\\&/g; s/^/"/; s/$/"/p
32347d
32348:bsnlc
32349s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32350b cont
32351' <confdefs.h | sed '
32352s/'"$ac_delim"'/"\\\
32353"/g' >>$CONFIG_STATUS || ac_write_fail=1
32354
32355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32356 for (key in D) D_is_set[key] = 1
32357 FS = "\a"
32358}
32359/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32360 line = \$ 0
32361 split(line, arg, " ")
32362 if (arg[1] == "#") {
32363 defundef = arg[2]
32364 mac1 = arg[3]
32365 } else {
32366 defundef = substr(arg[1], 2)
32367 mac1 = arg[2]
32368 }
32369 split(mac1, mac2, "(") #)
32370 macro = mac2[1]
af98a2a6 32371 prefix = substr(line, 1, index(line, defundef) - 1)
dd4f3dd8
CR
32372 if (D_is_set[macro]) {
32373 # Preserve the white space surrounding the "#".
dd4f3dd8
CR
32374 print prefix "define", macro P[macro] D[macro]
32375 next
32376 } else {
32377 # Replace #undef with comments. This is necessary, for example,
32378 # in the case of _POSIX_SOURCE, which is predefined and required
32379 # on some systems where configure will not decide to define it.
32380 if (defundef == "undef") {
af98a2a6 32381 print "/*", prefix defundef, macro, "*/"
dd4f3dd8
CR
32382 next
32383 }
32384 }
32385}
32386{ print }
32387_ACAWK
32388_ACEOF
32389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
abe2eb5b
CR
32390 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32391$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32392 { (exit 1); exit 1; }; }
dd4f3dd8
CR
32393fi # test -n "$CONFIG_HEADERS"
32394
b709b946 32395
dd4f3dd8
CR
32396eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32397shift
32398for ac_tag
b709b946
CR
32399do
32400 case $ac_tag in
32401 :[FHLC]) ac_mode=$ac_tag; continue;;
9d6e5e30 32402 esac
b709b946
CR
32403 case $ac_mode$ac_tag in
32404 :[FHL]*:*);;
abe2eb5b
CR
32405 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32406$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32407 { (exit 1); exit 1; }; };;
b709b946
CR
32408 :[FH]-) ac_tag=-:-;;
32409 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32410 esac
32411 ac_save_IFS=$IFS
32412 IFS=:
32413 set x $ac_tag
32414 IFS=$ac_save_IFS
32415 shift
32416 ac_file=$1
32417 shift
32418
32419 case $ac_mode in
32420 :L) ac_source=$1;;
32421 :[FH])
32422 ac_file_inputs=
32423 for ac_f
32424 do
32425 case $ac_f in
abe2eb5b 32426 -) ac_f="$tmp/stdin";;
b709b946
CR
32427 *) # Look for the file first in the build tree, then in the source tree
32428 # (if the path is not absolute). The absolute path cannot be DOS-style,
32429 # because $ac_f cannot contain `:'.
32430 test -f "$ac_f" ||
32431 case $ac_f in
32432 [\\/$]*) false;;
32433 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32434 esac ||
abe2eb5b
CR
32435 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32436$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32437 { (exit 1); exit 1; }; };;
b709b946 32438 esac
dd4f3dd8 32439 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
abe2eb5b 32440 ac_file_inputs="$ac_file_inputs '$ac_f'"
b709b946 32441 done
9d6e5e30 32442
b709b946
CR
32443 # Let's still pretend it is `configure' which instantiates (i.e., don't
32444 # use $as_me), people would be surprised to read:
32445 # /* config.h. Generated by config.status. */
dd4f3dd8
CR
32446 configure_input='Generated from '`
32447 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32448 `' by configure.'
b709b946
CR
32449 if test x"$ac_file" != x-; then
32450 configure_input="$ac_file. $configure_input"
abe2eb5b 32451 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
dd4f3dd8 32452$as_echo "$as_me: creating $ac_file" >&6;}
b709b946 32453 fi
dd4f3dd8
CR
32454 # Neutralize special characters interpreted by sed in replacement strings.
32455 case $configure_input in #(
32456 *\&* | *\|* | *\\* )
32457 ac_sed_conf_input=`$as_echo "$configure_input" |
32458 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32459 *) ac_sed_conf_input=$configure_input;;
32460 esac
b709b946
CR
32461
32462 case $ac_tag in
abe2eb5b
CR
32463 *:-:* | *:-) cat >"$tmp/stdin" \
32464 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32465$as_echo "$as_me: error: could not create $ac_file" >&2;}
32466 { (exit 1); exit 1; }; } ;;
b709b946
CR
32467 esac
32468 ;;
32469 esac
32470
32471 ac_dir=`$as_dirname -- "$ac_file" ||
a82a04b3 32472$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5e4a95c7
CR
32473 X"$ac_file" : 'X\(//\)[^/]' \| \
32474 X"$ac_file" : 'X\(//\)$' \| \
b709b946 32475 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
dd4f3dd8 32476$as_echo X"$ac_file" |
b709b946
CR
32477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32478 s//\1/
32479 q
32480 }
32481 /^X\(\/\/\)[^/].*/{
32482 s//\1/
32483 q
32484 }
32485 /^X\(\/\/\)$/{
32486 s//\1/
32487 q
32488 }
32489 /^X\(\/\).*/{
32490 s//\1/
32491 q
32492 }
32493 s/.*/./; q'`
abe2eb5b
CR
32494 { as_dir="$ac_dir"
32495 case $as_dir in #(
32496 -*) as_dir=./$as_dir;;
32497 esac
32498 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32499 as_dirs=
32500 while :; do
32501 case $as_dir in #(
32502 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32503 *) as_qdir=$as_dir;;
32504 esac
32505 as_dirs="'$as_qdir' $as_dirs"
32506 as_dir=`$as_dirname -- "$as_dir" ||
32507$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32508 X"$as_dir" : 'X\(//\)[^/]' \| \
32509 X"$as_dir" : 'X\(//\)$' \| \
32510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32511$as_echo X"$as_dir" |
32512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32513 s//\1/
32514 q
32515 }
32516 /^X\(\/\/\)[^/].*/{
32517 s//\1/
32518 q
32519 }
32520 /^X\(\/\/\)$/{
32521 s//\1/
32522 q
32523 }
32524 /^X\(\/\).*/{
32525 s//\1/
32526 q
32527 }
32528 s/.*/./; q'`
32529 test -d "$as_dir" && break
32530 done
32531 test -z "$as_dirs" || eval "mkdir $as_dirs"
32532 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32533$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32534 { (exit 1); exit 1; }; }; }
a82a04b3
CR
32535 ac_builddir=.
32536
b709b946
CR
32537case "$ac_dir" in
32538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32539*)
dd4f3dd8 32540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b709b946 32541 # A ".." for each directory in $ac_dir_suffix.
dd4f3dd8 32542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b709b946
CR
32543 case $ac_top_builddir_sub in
32544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32546 esac ;;
32547esac
32548ac_abs_top_builddir=$ac_pwd
32549ac_abs_builddir=$ac_pwd$ac_dir_suffix
32550# for backward compatibility:
32551ac_top_builddir=$ac_top_build_prefix
a82a04b3
CR
32552
32553case $srcdir in
b709b946 32554 .) # We are building in place.
a82a04b3 32555 ac_srcdir=.
b709b946
CR
32556 ac_top_srcdir=$ac_top_builddir_sub
32557 ac_abs_top_srcdir=$ac_pwd ;;
32558 [\\/]* | ?:[\\/]* ) # Absolute name.
a82a04b3 32559 ac_srcdir=$srcdir$ac_dir_suffix;
b709b946
CR
32560 ac_top_srcdir=$srcdir
32561 ac_abs_top_srcdir=$srcdir ;;
32562 *) # Relative name.
32563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32564 ac_top_srcdir=$ac_top_build_prefix$srcdir
32565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a82a04b3 32566esac
b709b946 32567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5e4a95c7 32568
a82a04b3 32569
b709b946
CR
32570 case $ac_mode in
32571 :F)
32572 #
32573 # CONFIG_FILE
32574 #
ccc6cda3 32575
f73dda09
JA
32576 case $INSTALL in
32577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b709b946 32578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
ccc6cda3 32579 esac
b709b946 32580_ACEOF
ccc6cda3 32581
dd4f3dd8 32582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b709b946
CR
32583# If the template does not know about datarootdir, expand it.
32584# FIXME: This hack should be removed a few years after 2.60.
32585ac_datarootdir_hack=; ac_datarootdir_seen=
abe2eb5b 32586
dd4f3dd8
CR
32587ac_sed_dataroot='
32588/datarootdir/ {
b709b946
CR
32589 p
32590 q
32591}
32592/@datadir@/p
32593/@docdir@/p
32594/@infodir@/p
32595/@localedir@/p
abe2eb5b
CR
32596/@mandir@/p
32597'
dd4f3dd8 32598case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
b709b946
CR
32599*datarootdir*) ac_datarootdir_seen=yes;;
32600*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
abe2eb5b 32601 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
dd4f3dd8 32602$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9d6e5e30 32603_ACEOF
dd4f3dd8 32604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b709b946
CR
32605 ac_datarootdir_hack='
32606 s&@datadir@&$datadir&g
32607 s&@docdir@&$docdir&g
32608 s&@infodir@&$infodir&g
32609 s&@localedir@&$localedir&g
32610 s&@mandir@&$mandir&g
abe2eb5b 32611 s&\\\${datarootdir}&$datarootdir&g' ;;
b709b946
CR
32612esac
32613_ACEOF
32614
32615# Neutralize VPATH when `$srcdir' = `.'.
32616# Shell code in configure.ac might set extrasub.
32617# FIXME: do we really want to maintain this feature?
dd4f3dd8
CR
32618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32619ac_sed_extra="$ac_vpsub
f73dda09 32620$extrasub
a82a04b3 32621_ACEOF
dd4f3dd8 32622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09
JA
32623:t
32624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd4f3dd8 32625s|@configure_input@|$ac_sed_conf_input|;t t
b709b946 32626s&@top_builddir@&$ac_top_builddir_sub&;t t
dd4f3dd8 32627s&@top_build_prefix@&$ac_top_build_prefix&;t t
b709b946
CR
32628s&@srcdir@&$ac_srcdir&;t t
32629s&@abs_srcdir@&$ac_abs_srcdir&;t t
32630s&@top_srcdir@&$ac_top_srcdir&;t t
32631s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32632s&@builddir@&$ac_builddir&;t t
32633s&@abs_builddir@&$ac_abs_builddir&;t t
32634s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32635s&@INSTALL@&$ac_INSTALL&;t t
32636$ac_datarootdir_hack
dd4f3dd8 32637"
abe2eb5b
CR
32638eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32639 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32640$as_echo "$as_me: error: could not create $ac_file" >&2;}
32641 { (exit 1); exit 1; }; }
b709b946
CR
32642
32643test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
abe2eb5b
CR
32644 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32646 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32647which seems to be undefined. Please make sure it is defined." >&5
dd4f3dd8 32648$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
abe2eb5b 32649which seems to be undefined. Please make sure it is defined." >&2;}
b709b946 32650
abe2eb5b 32651 rm -f "$tmp/stdin"
f73dda09 32652 case $ac_file in
abe2eb5b
CR
32653 -) cat "$tmp/out" && rm -f "$tmp/out";;
32654 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
dd4f3dd8 32655 esac \
abe2eb5b
CR
32656 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32657$as_echo "$as_me: error: could not create $ac_file" >&2;}
32658 { (exit 1); exit 1; }; }
b709b946
CR
32659 ;;
32660 :H)
32661 #
32662 # CONFIG_HEADER
32663 #
f73dda09 32664 if test x"$ac_file" != x-; then
dd4f3dd8
CR
32665 {
32666 $as_echo "/* $configure_input */" \
abe2eb5b
CR
32667 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32668 } >"$tmp/config.h" \
32669 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32670$as_echo "$as_me: error: could not create $ac_file" >&2;}
32671 { (exit 1); exit 1; }; }
32672 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32673 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
dd4f3dd8 32674$as_echo "$as_me: $ac_file is unchanged" >&6;}
f73dda09 32675 else
dd4f3dd8 32676 rm -f "$ac_file"
abe2eb5b
CR
32677 mv "$tmp/config.h" "$ac_file" \
32678 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32679$as_echo "$as_me: error: could not create $ac_file" >&2;}
32680 { (exit 1); exit 1; }; }
ccc6cda3 32681 fi
f73dda09 32682 else
dd4f3dd8 32683 $as_echo "/* $configure_input */" \
abe2eb5b
CR
32684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32685 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32686$as_echo "$as_me: error: could not create -" >&2;}
32687 { (exit 1); exit 1; }; }
ccc6cda3 32688 fi
b709b946 32689 ;;
c184f645 32690
abe2eb5b 32691 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
dd4f3dd8 32692$as_echo "$as_me: executing $ac_file commands" >&6;}
b709b946
CR
32693 ;;
32694 esac
a82a04b3 32695
ccc6cda3 32696
b709b946
CR
32697 case $ac_file$ac_mode in
32698 "default-1":C)
5e13499c
CR
32699 for ac_file in $CONFIG_FILES; do
32700 # Support "outfile[:infile[:infile...]]"
32701 case "$ac_file" in
32702 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32703 esac
32704 # PO directories have a Makefile.in generated from Makefile.in.in.
32705 case "$ac_file" in */Makefile.in)
32706 # Adjust a relative srcdir.
32707 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32708 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32709 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32710 # In autoconf-2.13 it is called $ac_given_srcdir.
32711 # In autoconf-2.50 it is called $srcdir.
32712 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32713 case "$ac_given_srcdir" in
32714 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32715 /*) top_srcdir="$ac_given_srcdir" ;;
32716 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32717 esac
32718 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32719 rm -f "$ac_dir/POTFILES"
32720 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32721 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32722 POMAKEFILEDEPS="POTFILES.in"
32723 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32724 # on $ac_dir but don't depend on user-specified configuration
32725 # parameters.
32726 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32727 # The LINGUAS file contains the set of available languages.
32728 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32729 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32730 fi
32731 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32732 # Hide the ALL_LINGUAS assigment from automake.
32733 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32734 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32735 else
32736 # The set of available languages was given in configure.in.
32737 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32738 fi
32739 case "$ac_given_srcdir" in
32740 .) srcdirpre= ;;
32741 *) srcdirpre='$(srcdir)/' ;;
32742 esac
32743 POFILES=
32744 GMOFILES=
32745 UPDATEPOFILES=
32746 DUMMYPOFILES=
32747 for lang in $ALL_LINGUAS; do
32748 POFILES="$POFILES $srcdirpre$lang.po"
32749 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32750 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32751 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32752 done
32753 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32754 # environment variable.
32755 INST_LINGUAS=
32756 if test -n "$ALL_LINGUAS"; then
32757 for presentlang in $ALL_LINGUAS; do
32758 useit=no
32759 if test "%UNSET%" != "$LINGUAS"; then
32760 desiredlanguages="$LINGUAS"
32761 else
32762 desiredlanguages="$ALL_LINGUAS"
32763 fi
32764 for desiredlang in $desiredlanguages; do
32765 # Use the presentlang catalog if desiredlang is
32766 # a. equal to presentlang, or
32767 # b. a variant of presentlang (because in this case,
32768 # presentlang can be used as a fallback for messages
32769 # which are not translated in the desiredlang catalog).
32770 case "$desiredlang" in
32771 "$presentlang"*) useit=yes;;
32772 esac
32773 done
32774 if test $useit = yes; then
32775 INST_LINGUAS="$INST_LINGUAS $presentlang"
32776 fi
32777 done
32778 fi
32779 CATALOGS=
32780 if test -n "$INST_LINGUAS"; then
32781 for lang in $INST_LINGUAS; do
32782 CATALOGS="$CATALOGS $lang.gmo"
32783 done
32784 fi
32785 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32786 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"
32787 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32788 if test -f "$f"; then
32789 case "$f" in
32790 *.orig | *.bak | *~) ;;
32791 *) cat "$f" >> "$ac_dir/Makefile" ;;
32792 esac
32793 fi
32794 done
32795 fi
32796 ;;
32797 esac
32798 done ;;
b709b946 32799 "default":C)
ccc6cda3
JA
32800# Makefile uses this timestamp file to record whether config.h is up to date.
32801echo timestamp > stamp-h
f73dda09 32802 ;;
b709b946 32803
f73dda09 32804 esac
b709b946 32805done # for ac_tag
ccc6cda3 32806
f73dda09 32807
abe2eb5b 32808{ (exit 0); exit 0; }
a82a04b3 32809_ACEOF
abe2eb5b 32810chmod +x $CONFIG_STATUS
f73dda09
JA
32811ac_clean_files=$ac_clean_files_save
32812
dd4f3dd8 32813test $ac_write_fail = 0 ||
abe2eb5b
CR
32814 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32815$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32816 { (exit 1); exit 1; }; }
dd4f3dd8 32817
a82a04b3 32818
f73dda09
JA
32819# configure is writing to config.log, and then calls config.status.
32820# config.status does its own redirection, appending to config.log.
32821# Unfortunately, on DOS this fails, as config.log is still kept open
32822# by configure, so config.status won't be able to write to it; its
32823# output is simply discarded. So we exec the FD to /dev/null,
32824# effectively closing config.log, so it can be properly (re)opened and
32825# appended to by config.status. When coming back to configure, we
32826# need to make the FD available again.
32827if test "$no_create" != yes; then
32828 ac_cs_success=:
5e4a95c7
CR
32829 ac_config_status_args=
32830 test "$silent" = yes &&
32831 ac_config_status_args="$ac_config_status_args --quiet"
f73dda09 32832 exec 5>/dev/null
5e4a95c7 32833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f73dda09
JA
32834 exec 5>>config.log
32835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32836 # would make configure fail if this is the last instruction.
abe2eb5b 32837 $ac_cs_success || { (exit 1); exit 1; }
f73dda09 32838fi
dd4f3dd8 32839if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
abe2eb5b 32840 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
af98a2a6 32841$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
dd4f3dd8 32842fi
bc7bed50 32843