]> git.ipfire.org Git - thirdparty/bash.git/blame - configure
commit bash-20050505 snapshot
[thirdparty/bash.git] / configure
CommitLineData
ccc6cda3 1#! /bin/sh
3ffb039a 2# From configure.in for Bash 3.1, version 3.175, from autoconf version AC_ACVERSION.
f73dda09 3# Guess values for system-dependent variables and create Makefiles.
a82a04b3 4# Generated by GNU Autoconf 2.59 for bash 3.1-devel.
f73dda09
JA
5#
6# Report bugs to <bug-bash@gnu.org>.
7#
a82a04b3 8# Copyright (C) 2003 Free Software Foundation, Inc.
f73dda09
JA
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
a82a04b3
CR
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
ccc6cda3 14
a82a04b3
CR
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
f73dda09
JA
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
ccc6cda3 88
a82a04b3
CR
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
545f34cf 101
545f34cf 102
a82a04b3
CR
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
545f34cf 119
a82a04b3
CR
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
ccc6cda3 196
f73dda09
JA
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
ccc6cda3 202
f73dda09
JA
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
ccc6cda3 220
a82a04b3
CR
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
e624d0f7 223else
a82a04b3
CR
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
e624d0f7 226fi
545f34cf 227
a82a04b3
CR
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
f73dda09
JA
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
a82a04b3
CR
244$as_unset CDPATH
245
f73dda09
JA
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
ccc6cda3 253
726f6388 254#
f73dda09
JA
255# Initializations.
256#
ccc6cda3 257ac_default_prefix=/usr/local
a82a04b3 258ac_config_libobj_dir=.
f73dda09
JA
259cross_compiling=no
260subdirs=
a82a04b3
CR
261MFLAGS=
262MAKEFLAGS=
f73dda09
JA
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
a82a04b3
CR
270# Identity of this package.
271PACKAGE_NAME='bash'
272PACKAGE_TARNAME='bash'
273PACKAGE_VERSION='3.1-devel'
274PACKAGE_STRING='bash 3.1-devel'
275PACKAGE_BUGREPORT='bug-bash@gnu.org'
276
f73dda09
JA
277ac_unique_file="shell.h"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
ccc6cda3 314
9607141c 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILE SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
a82a04b3
CR
316ac_subst_files=''
317
ccc6cda3 318# Initialize some variables set by options.
f73dda09
JA
319ac_init_help=
320ac_init_version=false
ccc6cda3
JA
321# The variables have the same names as the options, with
322# dashes changed to underlines.
f73dda09 323cache_file=/dev/null
ccc6cda3 324exec_prefix=NONE
ccc6cda3 325no_create=
ccc6cda3
JA
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
ccc6cda3
JA
334verbose=
335x_includes=NONE
336x_libraries=NONE
f73dda09
JA
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
ccc6cda3
JA
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
ccc6cda3
JA
356ac_prev=
357for ac_option
358do
ccc6cda3
JA
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
f73dda09 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ccc6cda3
JA
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
f73dda09 370 case $ac_option in
ccc6cda3
JA
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f73dda09 375 bindir=$ac_optarg ;;
ccc6cda3
JA
376
377 -build | --build | --buil | --bui | --bu)
f73dda09 378 ac_prev=build_alias ;;
ccc6cda3 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f73dda09 380 build_alias=$ac_optarg ;;
ccc6cda3
JA
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f73dda09
JA
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
ccc6cda3
JA
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
f73dda09 396 datadir=$ac_optarg ;;
ccc6cda3
JA
397
398 -disable-* | --disable-*)
f73dda09 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ccc6cda3 400 # Reject names that are not valid shell variable names.
f73dda09
JA
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
ccc6cda3
JA
406
407 -enable-* | --enable-*)
f73dda09 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ccc6cda3 409 # Reject names that are not valid shell variable names.
f73dda09
JA
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ccc6cda3
JA
416 *) ac_optarg=yes ;;
417 esac
f73dda09 418 eval "enable_$ac_feature='$ac_optarg'" ;;
ccc6cda3
JA
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
f73dda09 427 exec_prefix=$ac_optarg ;;
ccc6cda3
JA
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
f73dda09
JA
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
ccc6cda3
JA
439
440 -host | --host | --hos | --ho)
f73dda09 441 ac_prev=host_alias ;;
ccc6cda3 442 -host=* | --host=* | --hos=* | --ho=*)
f73dda09 443 host_alias=$ac_optarg ;;
ccc6cda3
JA
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
f73dda09 450 includedir=$ac_optarg ;;
ccc6cda3
JA
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f73dda09 455 infodir=$ac_optarg ;;
ccc6cda3
JA
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f73dda09 460 libdir=$ac_optarg ;;
ccc6cda3
JA
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
f73dda09 467 libexecdir=$ac_optarg ;;
ccc6cda3
JA
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
f73dda09 476 localstatedir=$ac_optarg ;;
ccc6cda3
JA
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f73dda09 481 mandir=$ac_optarg ;;
ccc6cda3
JA
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a82a04b3 488 | --no-cr | --no-c | -n)
ccc6cda3
JA
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f73dda09 502 oldincludedir=$ac_optarg ;;
ccc6cda3
JA
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f73dda09 507 prefix=$ac_optarg ;;
ccc6cda3
JA
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f73dda09 514 program_prefix=$ac_optarg ;;
ccc6cda3
JA
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f73dda09 521 program_suffix=$ac_optarg ;;
ccc6cda3
JA
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
f73dda09 538 program_transform_name=$ac_optarg ;;
ccc6cda3
JA
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
f73dda09 548 sbindir=$ac_optarg ;;
ccc6cda3
JA
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
f73dda09 559 sharedstatedir=$ac_optarg ;;
ccc6cda3
JA
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
f73dda09 564 site=$ac_optarg ;;
ccc6cda3
JA
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f73dda09 569 srcdir=$ac_optarg ;;
ccc6cda3
JA
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f73dda09 576 sysconfdir=$ac_optarg ;;
ccc6cda3
JA
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
f73dda09 579 ac_prev=target_alias ;;
ccc6cda3 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f73dda09 581 target_alias=$ac_optarg ;;
ccc6cda3
JA
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
f73dda09
JA
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
ccc6cda3
JA
588
589 -with-* | --with-*)
f73dda09 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ccc6cda3 591 # Reject names that are not valid shell variable names.
f73dda09
JA
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
ccc6cda3 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
f73dda09
JA
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ccc6cda3
JA
598 *) ac_optarg=yes ;;
599 esac
f73dda09 600 eval "with_$ac_package='$ac_optarg'" ;;
ccc6cda3
JA
601
602 -without-* | --without-*)
f73dda09 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ccc6cda3 604 # Reject names that are not valid shell variable names.
f73dda09
JA
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
ccc6cda3
JA
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f73dda09 620 x_includes=$ac_optarg ;;
ccc6cda3
JA
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f73dda09 627 x_libraries=$ac_optarg ;;
ccc6cda3 628
f73dda09
JA
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
ccc6cda3
JA
632 ;;
633
f73dda09
JA
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
ccc6cda3 644 *)
f73dda09
JA
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ccc6cda3
JA
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
f73dda09
JA
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
ccc6cda3 659fi
ccc6cda3 660
f73dda09
JA
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a82a04b3 667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f73dda09
JA
668 { (exit 1); exit 1; }; };;
669 esac
670done
ccc6cda3 671
f73dda09
JA
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
a82a04b3 674 localstatedir libdir includedir oldincludedir infodir mandir
ccc6cda3 675do
f73dda09
JA
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
a82a04b3 679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f73dda09 680 { (exit 1); exit 1; }; };;
ccc6cda3
JA
681 esac
682done
683
f73dda09
JA
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
a82a04b3 686# FIXME: To remove some day.
f73dda09
JA
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
a82a04b3 691# FIXME: To remove some day.
f73dda09
JA
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
ccc6cda3 701
f73dda09
JA
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
ccc6cda3 704
f73dda09 705test "$silent" = yes && exec 6>/dev/null
ccc6cda3 706
a82a04b3 707
ccc6cda3
JA
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
a82a04b3
CR
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
ccc6cda3
JA
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
a82a04b3 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
f73dda09 734 { (exit 1); exit 1; }; }
ccc6cda3 735 else
a82a04b3 736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f73dda09 737 { (exit 1); exit 1; }; }
ccc6cda3
JA
738 fi
739fi
a82a04b3
CR
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
f73dda09
JA
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
d3a24ed2
CR
756ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
757ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
758ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
759ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
f73dda09
JA
760ac_env_CC_set=${CC+set}
761ac_env_CC_value=$CC
762ac_cv_env_CC_set=${CC+set}
763ac_cv_env_CC_value=$CC
764ac_env_CFLAGS_set=${CFLAGS+set}
765ac_env_CFLAGS_value=$CFLAGS
766ac_cv_env_CFLAGS_set=${CFLAGS+set}
767ac_cv_env_CFLAGS_value=$CFLAGS
768ac_env_LDFLAGS_set=${LDFLAGS+set}
769ac_env_LDFLAGS_value=$LDFLAGS
770ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771ac_cv_env_LDFLAGS_value=$LDFLAGS
772ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_env_CPPFLAGS_value=$CPPFLAGS
774ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
ccc6cda3 780
f73dda09
JA
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
a82a04b3 787 cat <<_ACEOF
301e2142 788\`configure' configures bash 3.1-devel to adapt to many kinds of systems.
ccc6cda3 789
f73dda09 790Usage: $0 [OPTION]... [VAR=VALUE]...
ccc6cda3 791
f73dda09
JA
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE. See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
ccc6cda3 796
f73dda09
JA
797Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
ccc6cda3 807
a82a04b3 808_ACEOF
ccc6cda3 809
a82a04b3 810 cat <<_ACEOF
f73dda09
JA
811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
a82a04b3 813 [$ac_default_prefix]
f73dda09 814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a82a04b3 815 [PREFIX]
ccc6cda3 816
f73dda09
JA
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
ccc6cda3 821
f73dda09 822For better control, use the options below.
ccc6cda3 823
f73dda09
JA
824Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
a82a04b3 837_ACEOF
f73dda09 838
a82a04b3 839 cat <<\_ACEOF
f73dda09
JA
840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
a82a04b3
CR
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844_ACEOF
ccc6cda3 845fi
ccc6cda3 846
f73dda09
JA
847if test -n "$ac_init_help"; then
848 case $ac_init_help in
301e2142 849 short | recursive ) echo "Configuration of bash 3.1-devel:";;
f73dda09 850 esac
a82a04b3 851 cat <<\_ACEOF
ccc6cda3 852
f73dda09
JA
853Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7117c2d2
JA
856 --enable-minimal-config a minimal sh-like configuration
857 --enable-alias enable shell aliases
858 --enable-arith-for-command
859 enable arithmetic for command
860 --enable-array-variables
861 include shell array variables
862 --enable-bang-history turn on csh-style history substitution
863 --enable-brace-expansion
864 include brace expansion
865 --enable-command-timing enable the time reserved word and command timing
866 --enable-cond-command enable the conditional command
d3a24ed2
CR
867 --enable-cond-regexp enable extgended regular expression matching in
868 conditional commands
869 --enable-debugger enable support for bash debugger
7117c2d2
JA
870 --enable-directory-stack
871 enable builtins pushd/popd/dirs
872 --enable-disabled-builtins
873 allow disabled builtins to still be invoked
874 --enable-dparen-arithmetic
875 include ((...)) command
876 --enable-extended-glob include ksh-style extended pattern matching
877 --enable-help-builtin include the help builtin
878 --enable-history turn on command history
879 --enable-job-control enable job control features
d3a24ed2 880 --enable-multibyte enable multibyte characters if OS supports them
7117c2d2
JA
881 --enable-net-redirections
882 enable /dev/tcp/host/port redirection
883 --enable-process-substitution
884 enable process substitution
885 --enable-progcomp enable programmable completion and the complete
886 builtin
887 --enable-prompt-string-decoding
888 turn on escape character decoding in prompts
889 --enable-readline turn on command line editing
890 --enable-restricted enable a restricted shell
891 --enable-select include select command
892 --enable-separate-helpfiles
893 use external files for help builtin documentation
01ed5ba4
CR
894 --enable-single-help-strings
895 store help documentation as a single string to ease
896 translation
7117c2d2
JA
897 --enable-usg-echo-default
898 a synonym for --enable-xpg-echo-default
899 --enable-xpg-echo-default
900 make the echo builtin expand escape sequences by
901 default
902 --enable-mem-scramble scramble memory on calls to malloc and free
903 --enable-profiling allow profiling with gprof
904 --enable-static-link link bash statically, for use as a root shell
f73dda09 905 --disable-largefile omit support for large files
5e13499c
CR
906 --disable-nls do not use Native Language Support
907 --disable-rpath do not hardcode runtime library paths
f73dda09
JA
908
909Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d3a24ed2 912 --with-lispdir override the default lisp directory
7117c2d2
JA
913 --with-afs if you are running AFS
914 --with-bash-malloc use the Bash version of malloc
915 --with-curses use the curses library instead of the termcap
916 library
917 --with-gnu-malloc synonym for --with-bash-malloc
918 --with-installed-readline
919 use a version of the readline library that is
920 already installed
921 --with-purecov configure to postprocess with pure coverage
922 --with-purify configure to postprocess with purify
5e13499c
CR
923 --with-gnu-ld assume the C compiler uses GNU ld default=no
924 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
925 --without-libiconv-prefix don't search for libiconv in includedir and libdir
926 --with-included-gettext use the GNU gettext library included here
927 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
928 --without-libintl-prefix don't search for libintl in includedir and libdir
f73dda09
JA
929
930Some influential environment variables:
d3a24ed2
CR
931 DEBUGGER_START_FILE
932 location of bash debugger initialization file
f73dda09
JA
933 CC C compiler command
934 CFLAGS C compiler flags
935 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
936 nonstandard directory <lib dir>
937 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
938 headers in a nonstandard directory <include dir>
939 CPP C preprocessor
940
941Use these variables to override the choices made by `configure' or to help
942it to find libraries and programs with nonstandard names/locations.
943
944Report bugs to <bug-bash@gnu.org>.
a82a04b3 945_ACEOF
f73dda09
JA
946fi
947
948if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
950 ac_popdir=`pwd`
a82a04b3
CR
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
953 ac_builddir=.
954
955if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959else
960 ac_dir_suffix= ac_top_builddir=
961fi
962
963case $srcdir in
964 .) # No --srcdir option. We are building in place.
965 ac_srcdir=.
966 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=.
968 else
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 fi ;;
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
974 *) # Relative path.
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
977esac
978
979# Do not use `cd foo && pwd` to compute absolute paths, because
980# the directories may not exist.
981case `pwd` in
982.) ac_abs_builddir="$ac_dir";;
983*)
984 case "$ac_dir" in
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
988 esac;;
989esac
990case $ac_abs_builddir in
991.) ac_abs_top_builddir=${ac_top_builddir}.;;
992*)
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997 esac;;
998esac
999case $ac_abs_builddir in
1000.) ac_abs_srcdir=$ac_srcdir;;
1001*)
1002 case $ac_srcdir in
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006 esac;;
1007esac
1008case $ac_abs_builddir in
1009.) ac_abs_top_srcdir=$ac_top_srcdir;;
1010*)
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015 esac;;
1016esac
ccc6cda3 1017
a82a04b3 1018 cd $ac_dir
f73dda09 1019 # Check for guested configure; otherwise get Cygnus style configure.
a82a04b3 1020 if test -f $ac_srcdir/configure.gnu; then
f73dda09 1021 echo
a82a04b3
CR
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
f73dda09 1024 echo
a82a04b3
CR
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
f73dda09
JA
1028 echo
1029 $ac_configure --help
1030 else
a82a04b3 1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f73dda09
JA
1032 fi
1033 cd $ac_popdir
1034 done
1035fi
ccc6cda3 1036
f73dda09
JA
1037test -n "$ac_init_help" && exit 0
1038if $ac_init_version; then
a82a04b3 1039 cat <<\_ACEOF
301e2142 1040bash configure 3.1-devel
a82a04b3 1041generated by GNU Autoconf 2.59
ccc6cda3 1042
a82a04b3 1043Copyright (C) 2003 Free Software Foundation, Inc.
f73dda09
JA
1044This configure script is free software; the Free Software Foundation
1045gives unlimited permission to copy, distribute and modify it.
a82a04b3 1046_ACEOF
f73dda09
JA
1047 exit 0
1048fi
1049exec 5>config.log
a82a04b3 1050cat >&5 <<_ACEOF
f73dda09
JA
1051This file contains any messages produced by compilers while
1052running configure, to aid debugging if configure makes a mistake.
ccc6cda3 1053
301e2142 1054It was created by bash $as_me 3.1-devel, which was
a82a04b3 1055generated by GNU Autoconf 2.59. Invocation command line was
ccc6cda3 1056
f73dda09 1057 $ $0 $@
bb70624e 1058
a82a04b3 1059_ACEOF
f73dda09
JA
1060{
1061cat <<_ASUNAME
a82a04b3
CR
1062## --------- ##
1063## Platform. ##
1064## --------- ##
f73dda09
JA
1065
1066hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071
1072/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1074
1075/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1082
e624d0f7 1083_ASUNAME
a82a04b3
CR
1084
1085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086for as_dir in $PATH
1087do
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091done
1092
f73dda09
JA
1093} >&5
1094
a82a04b3
CR
1095cat >&5 <<_ACEOF
1096
1097
1098## ----------- ##
1099## Core tests. ##
1100## ----------- ##
1101
1102_ACEOF
f73dda09 1103
f73dda09
JA
1104
1105# Keep a trace of the command line.
1106# Strip out --no-create and --no-recursion so they do not pile up.
a82a04b3 1107# Strip out --silent because we don't want to record it for future runs.
f73dda09 1108# Also quote any args containing shell meta-characters.
a82a04b3 1109# Make two passes to allow for proper duplicate-argument suppression.
f73dda09 1110ac_configure_args=
a82a04b3
CR
1111ac_configure_args0=
1112ac_configure_args1=
f73dda09 1113ac_sep=
a82a04b3
CR
1114ac_must_keep_next=false
1115for ac_pass in 1 2
f73dda09 1116do
a82a04b3
CR
1117 for ac_arg
1118 do
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129 2)
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1142 ;;
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1145 fi
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1149 ;;
1150 esac
1151 done
f73dda09 1152done
a82a04b3
CR
1153$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f73dda09
JA
1155
1156# When interrupted or exit'd, cleanup temporary files, and complete
1157# config.log. We remove comments because anyway the quotes in there
1158# would cause problems or look ugly.
a82a04b3
CR
1159# WARNING: Be sure not to use single quotes in there, as some shells,
1160# such as our DU 5.0 friend, will then `close' the trap.
f73dda09
JA
1161trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
a82a04b3
CR
1163 {
1164 echo
1165
1166 cat <<\_ASBOX
1167## ---------------- ##
1168## Cache variables. ##
1169## ---------------- ##
1170_ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
f73dda09
JA
1173{
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
a82a04b3
CR
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
f73dda09
JA
1180 ;;
1181 *)
1182 sed -n \
a82a04b3 1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
f73dda09
JA
1184 ;;
1185 esac;
a82a04b3
CR
1186}
1187 echo
1188
1189 cat <<\_ASBOX
1190## ----------------- ##
1191## Output variables. ##
1192## ----------------- ##
1193_ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1196 do
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1201
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204## ------------- ##
1205## Output files. ##
1206## ------------- ##
1207_ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1210 do
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1215 fi
1216
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219## ----------- ##
1220## confdefs.h. ##
1221## ----------- ##
1222_ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1226 fi
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
f73dda09
JA
1233 exit $exit_status
1234 ' 0
1235for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237done
1238ac_signal=0
1239
1240# confdefs.h avoids OS command line length limits that DEFS can exceed.
1241rm -rf conftest* confdefs.h
1242# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243echo >confdefs.h
1244
a82a04b3
CR
1245# Predefined preprocessor variables.
1246
1247cat >>confdefs.h <<_ACEOF
1248#define PACKAGE_NAME "$PACKAGE_NAME"
1249_ACEOF
1250
1251
1252cat >>confdefs.h <<_ACEOF
1253#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254_ACEOF
1255
1256
1257cat >>confdefs.h <<_ACEOF
1258#define PACKAGE_VERSION "$PACKAGE_VERSION"
1259_ACEOF
1260
1261
1262cat >>confdefs.h <<_ACEOF
1263#define PACKAGE_STRING "$PACKAGE_STRING"
1264_ACEOF
1265
1266
1267cat >>confdefs.h <<_ACEOF
1268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269_ACEOF
1270
1271
f73dda09
JA
1272# Let the site file select an alternate cache file if it wants to.
1273# Prefer explicitly selected file to automatically selected ones.
1274if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 fi
1280fi
1281for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
a82a04b3 1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f73dda09 1284echo "$as_me: loading site script $ac_site_file" >&6;}
a82a04b3 1285 sed 's/^/| /' "$ac_site_file" >&5
f73dda09
JA
1286 . "$ac_site_file"
1287 fi
1288done
1289
1290if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
a82a04b3 1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f73dda09
JA
1295echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1300 fi
1301else
a82a04b3 1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f73dda09
JA
1303echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1305fi
1306
1307# Check that the precious variables saved in the cache have kept the same
1308# value.
1309ac_cache_corrupted=false
1310for ac_var in `(set) 2>&1 |
a82a04b3 1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
f73dda09
JA
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
a82a04b3 1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f73dda09
JA
1319echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
a82a04b3 1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f73dda09
JA
1323echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1326 *)
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
a82a04b3 1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f73dda09 1329echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a82a04b3 1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f73dda09 1331echo "$as_me: former value: $ac_old_val" >&2;}
a82a04b3 1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f73dda09 1333echo "$as_me: current value: $ac_new_val" >&2;}
a82a04b3 1334 ac_cache_corrupted=:
f73dda09
JA
1335 fi;;
1336 esac
a82a04b3 1337 # Pass precious variables to config.status.
f73dda09
JA
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a82a04b3
CR
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f73dda09
JA
1347 esac
1348 fi
1349done
1350if $ac_cache_corrupted; then
a82a04b3 1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f73dda09 1352echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a82a04b3 1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f73dda09
JA
1354echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1356fi
1357
1358ac_ext=c
1359ac_cpp='$CPP $CPPFLAGS'
1360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363
a82a04b3
CR
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
f73dda09
JA
1393
1394ac_aux_dir=
1395for ac_dir in ./support $srcdir/./support; do
1396 if test -f $ac_dir/install-sh; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/install-sh -c"
1399 break
1400 elif test -f $ac_dir/install.sh; then
1401 ac_aux_dir=$ac_dir
1402 ac_install_sh="$ac_aux_dir/install.sh -c"
1403 break
1404 elif test -f $ac_dir/shtool; then
1405 ac_aux_dir=$ac_dir
1406 ac_install_sh="$ac_aux_dir/shtool install -c"
1407 break
1408 fi
1409done
1410if test -z "$ac_aux_dir"; then
a82a04b3 1411 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
f73dda09
JA
1412echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1413 { (exit 1); exit 1; }; }
1414fi
1415ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1416ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1417ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1418
a82a04b3
CR
1419 ac_config_headers="$ac_config_headers config.h"
1420
f73dda09 1421
301e2142
CR
1422BASHVERS=3.1
1423RELSTATUS=devel
7117c2d2
JA
1424
1425case "$RELSTATUS" in
1426alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1427*) DEBUG= MALLOC_DEBUG= ;;
1428esac
f73dda09
JA
1429
1430# Make sure we can run config.sub.
1431$ac_config_sub sun4 >/dev/null 2>&1 ||
a82a04b3 1432 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
f73dda09
JA
1433echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434 { (exit 1); exit 1; }; }
1435
a82a04b3 1436echo "$as_me:$LINENO: checking build system type" >&5
f73dda09
JA
1437echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438if test "${ac_cv_build+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 ac_cv_build_alias=$build_alias
1442test -z "$ac_cv_build_alias" &&
1443 ac_cv_build_alias=`$ac_config_guess`
1444test -z "$ac_cv_build_alias" &&
a82a04b3 1445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f73dda09
JA
1446echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447 { (exit 1); exit 1; }; }
1448ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a82a04b3
CR
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
f73dda09
JA
1451 { (exit 1); exit 1; }; }
1452
1453fi
a82a04b3 1454echo "$as_me:$LINENO: result: $ac_cv_build" >&5
f73dda09
JA
1455echo "${ECHO_T}$ac_cv_build" >&6
1456build=$ac_cv_build
1457build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
a82a04b3
CR
1461
1462echo "$as_me:$LINENO: checking host system type" >&5
f73dda09
JA
1463echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464if test "${ac_cv_host+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1466else
1467 ac_cv_host_alias=$host_alias
1468test -z "$ac_cv_host_alias" &&
1469 ac_cv_host_alias=$ac_cv_build_alias
1470ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a82a04b3 1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
f73dda09
JA
1472echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1474
1475fi
a82a04b3 1476echo "$as_me:$LINENO: result: $ac_cv_host" >&5
f73dda09
JA
1477echo "${ECHO_T}$ac_cv_host" >&6
1478host=$ac_cv_host
1479host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482
a82a04b3
CR
1483
1484
f73dda09
JA
1485opt_bash_malloc=yes
1486opt_purify=no
1487opt_purecov=no
1488opt_afs=no
1489opt_curses=no
1490opt_with_installed_readline=no
1491
1492#htmldir=
1493
1494case "${host_cpu}-${host_os}" in
1495alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1496*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1497*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1498sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1499sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
bb70624e
JA
1500mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1501m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1502sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
8ed8525c 1503#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
7117c2d2 1504#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
f73dda09 1505*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
bb70624e
JA
1506*-aix*) opt_bash_malloc=no ;; # AIX machines
1507*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
28ef6c31
JA
1508*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1509*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1510*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
bb70624e
JA
1511*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1512*-qnx*) opt_bash_malloc=no ;; # QNX 4.2
1513*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1514*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1515*-beos*) opt_bash_malloc=no ;; # they say it's suitable
28ef6c31
JA
1516*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1517*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
ccc6cda3
JA
1518esac
1519
7117c2d2
JA
1520# memory scrambling on free()
1521case "${host_os}" in
1522sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1523*) opt_memscramble=yes ;;
1524esac
1525
a82a04b3 1526
d3a24ed2
CR
1527# Check whether --with-lispdir or --without-lispdir was given.
1528if test "${with_lispdir+set}" = set; then
1529 withval="$with_lispdir"
1530 lispdir="$withval"
a82a04b3 1531 echo "$as_me:$LINENO: checking where .elc files should go" >&5
d3a24ed2 1532echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
a82a04b3 1533 echo "$as_me:$LINENO: result: $lispdir" >&5
d3a24ed2
CR
1534echo "${ECHO_T}$lispdir" >&6
1535else
1536
1537 # If set to t, that means we are running in a shell under Emacs.
1538 # If you have an Emacs named "t", then use the full path.
1539 test x"$EMACS" = xt && EMACS=
1540 for ac_prog in emacs xemacs
1541do
1542 # Extract the first word of "$ac_prog", so it can be a program name with args.
1543set dummy $ac_prog; ac_word=$2
a82a04b3 1544echo "$as_me:$LINENO: checking for $ac_word" >&5
d3a24ed2
CR
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_EMACS+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$EMACS"; then
1550 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1551else
a82a04b3
CR
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_EMACS="$ac_prog"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
d3a24ed2
CR
1564done
1565
1566fi
1567fi
1568EMACS=$ac_cv_prog_EMACS
1569if test -n "$EMACS"; then
a82a04b3 1570 echo "$as_me:$LINENO: result: $EMACS" >&5
d3a24ed2
CR
1571echo "${ECHO_T}$EMACS" >&6
1572else
a82a04b3 1573 echo "$as_me:$LINENO: result: no" >&5
d3a24ed2
CR
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577 test -n "$EMACS" && break
1578done
1579test -n "$EMACS" || EMACS="no"
1580
1581 if test $EMACS != "no"; then
1582 if test x${lispdir+set} != xset; then
a82a04b3 1583 echo "$as_me:$LINENO: checking where .elc files should go" >&5
d3a24ed2
CR
1584echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1585if test "${am_cv_lispdir+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1589 if test -z "$am_cv_lispdir"; then
1590 am_cv_lispdir='${datadir}/emacs/site-lisp'
1591 fi
1592
1593fi
a82a04b3 1594echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
d3a24ed2
CR
1595echo "${ECHO_T}$am_cv_lispdir" >&6
1596 lispdir="$am_cv_lispdir"
1597 fi
1598 fi
1599
1600fi;
1601
a82a04b3
CR
1602
1603
1604
1605
d166f048
JA
1606# Check whether --with-afs or --without-afs was given.
1607if test "${with_afs+set}" = set; then
1608 withval="$with_afs"
1609 opt_afs=$withval
f73dda09 1610fi;
d166f048 1611
bb70624e
JA
1612# Check whether --with-bash-malloc or --without-bash-malloc was given.
1613if test "${with_bash_malloc+set}" = set; then
1614 withval="$with_bash_malloc"
1615 opt_bash_malloc=$withval
f73dda09 1616fi;
bb70624e 1617
d166f048
JA
1618# Check whether --with-curses or --without-curses was given.
1619if test "${with_curses+set}" = set; then
1620 withval="$with_curses"
1621 opt_curses=$withval
f73dda09 1622fi;
ccc6cda3 1623
d166f048
JA
1624# Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1625if test "${with_gnu_malloc+set}" = set; then
1626 withval="$with_gnu_malloc"
bb70624e 1627 opt_bash_malloc=$withval
f73dda09 1628fi;
d166f048 1629
b72432fd
JA
1630# Check whether --with-installed-readline or --without-installed-readline was given.
1631if test "${with_installed_readline+set}" = set; then
1632 withval="$with_installed_readline"
1633 opt_with_installed_readline=$withval
f73dda09 1634fi;
b72432fd 1635
d166f048
JA
1636# Check whether --with-purecov or --without-purecov was given.
1637if test "${with_purecov+set}" = set; then
1638 withval="$with_purecov"
1639 opt_purecov=$withval
f73dda09 1640fi;
d166f048 1641
ccc6cda3
JA
1642# Check whether --with-purify or --without-purify was given.
1643if test "${with_purify+set}" = set; then
1644 withval="$with_purify"
1645 opt_purify=$withval
f73dda09 1646fi;
ccc6cda3 1647
f73dda09 1648if test "$opt_bash_malloc" = yes; then
d166f048
JA
1649 MALLOC_TARGET=malloc
1650 MALLOC_SRC=malloc.c
f73dda09
JA
1651
1652 MALLOC_LIB='-lmalloc'
1653 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1654 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1655 MALLOC_DEP='$(MALLOC_LIBRARY)'
1656
a82a04b3 1657 cat >>confdefs.h <<\_ACEOF
bb70624e 1658#define USING_BASH_MALLOC 1
a82a04b3 1659_ACEOF
bb70624e 1660
ccc6cda3 1661else
f73dda09
JA
1662 MALLOC_LIB=
1663 MALLOC_LIBRARY=
1664 MALLOC_LDFLAGS=
1665 MALLOC_DEP=
ccc6cda3
JA
1666fi
1667
1668if test "$opt_purify" = yes; then
d166f048 1669 PURIFY="purify "
a82a04b3 1670 cat >>confdefs.h <<\_ACEOF
7117c2d2 1671#define DISABLE_MALLOC_WRAPPERS 1
a82a04b3 1672_ACEOF
7117c2d2 1673
ccc6cda3
JA
1674else
1675 PURIFY=
1676fi
1677
d166f048
JA
1678if test "$opt_purecov" = yes; then
1679 PURIFY="${PURIFY}purecov"
1680fi
1681
ccc6cda3 1682if test "$opt_afs" = yes; then
a82a04b3 1683 cat >>confdefs.h <<\_ACEOF
ccc6cda3 1684#define AFS 1
a82a04b3 1685_ACEOF
ccc6cda3
JA
1686
1687fi
1688
d166f048
JA
1689if test "$opt_curses" = yes; then
1690 prefer_curses=yes
1691fi
1692
d3a24ed2
CR
1693if test -z "${DEBUGGER_START_FILE}"; then
1694 DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1695fi
1696
ccc6cda3
JA
1697opt_minimal_config=no
1698
1699opt_job_control=yes
1700opt_alias=yes
1701opt_readline=yes
1702opt_history=yes
1703opt_bang_history=yes
1704opt_dirstack=yes
1705opt_restricted=yes
1706opt_process_subst=yes
1707opt_prompt_decoding=yes
1708opt_select=yes
1709opt_help=yes
1710opt_array_variables=yes
1711opt_dparen_arith=yes
cce855bc 1712opt_extended_glob=yes
ccc6cda3
JA
1713opt_brace_expansion=yes
1714opt_disabled_builtins=no
1715opt_command_timing=yes
bb70624e 1716opt_xpg_echo=no
cce855bc 1717opt_cond_command=yes
d3a24ed2 1718opt_cond_regexp=yes
bb70624e
JA
1719opt_arith_for_command=yes
1720opt_net_redirs=yes
1721opt_progcomp=yes
7117c2d2 1722opt_separate_help=no
d3a24ed2
CR
1723opt_multibyte=yes
1724opt_debugger=yes
01ed5ba4 1725opt_single_longdoc_strings=yes
cce855bc
JA
1726
1727opt_static_link=no
1728opt_profiling=no
ccc6cda3
JA
1729
1730# Check whether --enable-minimal-config or --disable-minimal-config was given.
1731if test "${enable_minimal_config+set}" = set; then
1732 enableval="$enable_minimal_config"
1733 opt_minimal_config=$enableval
f73dda09 1734fi;
ccc6cda3
JA
1735
1736if test $opt_minimal_config = yes; then
1737 opt_job_control=no opt_alias=no opt_readline=no
1738 opt_history=no opt_bang_history=no opt_dirstack=no
1739 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1740 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1741 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
bb70624e 1742 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
7117c2d2 1743 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
d3a24ed2 1744 opt_multibyte=yes opt_cond_regexp=no
ccc6cda3
JA
1745fi
1746
ccc6cda3
JA
1747# Check whether --enable-alias or --disable-alias was given.
1748if test "${enable_alias+set}" = set; then
1749 enableval="$enable_alias"
1750 opt_alias=$enableval
f73dda09 1751fi;
bb70624e
JA
1752# Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1753if test "${enable_arith_for_command+set}" = set; then
1754 enableval="$enable_arith_for_command"
1755 opt_arith_for_command=$enableval
f73dda09 1756fi;
d166f048
JA
1757# Check whether --enable-array-variables or --disable-array-variables was given.
1758if test "${enable_array_variables+set}" = set; then
1759 enableval="$enable_array_variables"
1760 opt_array_variables=$enableval
f73dda09 1761fi;
ccc6cda3
JA
1762# Check whether --enable-bang-history or --disable-bang-history was given.
1763if test "${enable_bang_history+set}" = set; then
1764 enableval="$enable_bang_history"
1765 opt_bang_history=$enableval
f73dda09 1766fi;
d166f048
JA
1767# Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1768if test "${enable_brace_expansion+set}" = set; then
1769 enableval="$enable_brace_expansion"
1770 opt_brace_expansion=$enableval
f73dda09 1771fi;
d166f048
JA
1772# Check whether --enable-command-timing or --disable-command-timing was given.
1773if test "${enable_command_timing+set}" = set; then
1774 enableval="$enable_command_timing"
1775 opt_command_timing=$enableval
f73dda09 1776fi;
cce855bc
JA
1777# Check whether --enable-cond-command or --disable-cond-command was given.
1778if test "${enable_cond_command+set}" = set; then
1779 enableval="$enable_cond_command"
1780 opt_cond_command=$enableval
f73dda09 1781fi;
d3a24ed2
CR
1782# Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1783if test "${enable_cond_regexp+set}" = set; then
1784 enableval="$enable_cond_regexp"
1785 opt_cond_regexp=$enableval
1786fi;
1787# Check whether --enable-debugger or --disable-debugger was given.
1788if test "${enable_debugger+set}" = set; then
1789 enableval="$enable_debugger"
1790 opt_debugger=$enableval
1791fi;
d166f048
JA
1792# Check whether --enable-directory-stack or --disable-directory-stack was given.
1793if test "${enable_directory_stack+set}" = set; then
1794 enableval="$enable_directory_stack"
1795 opt_dirstack=$enableval
f73dda09 1796fi;
d166f048
JA
1797# Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1798if test "${enable_disabled_builtins+set}" = set; then
1799 enableval="$enable_disabled_builtins"
1800 opt_disabled_builtins=$enableval
f73dda09 1801fi;
d166f048
JA
1802# Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1803if test "${enable_dparen_arithmetic+set}" = set; then
1804 enableval="$enable_dparen_arithmetic"
1805 opt_dparen_arith=$enableval
f73dda09 1806fi;
cce855bc
JA
1807# Check whether --enable-extended-glob or --disable-extended-glob was given.
1808if test "${enable_extended_glob+set}" = set; then
1809 enableval="$enable_extended_glob"
1810 opt_extended_glob=$enableval
f73dda09 1811fi;
ccc6cda3
JA
1812# Check whether --enable-help-builtin or --disable-help-builtin was given.
1813if test "${enable_help_builtin+set}" = set; then
1814 enableval="$enable_help_builtin"
1815 opt_help=$enableval
f73dda09 1816fi;
d166f048
JA
1817# Check whether --enable-history or --disable-history was given.
1818if test "${enable_history+set}" = set; then
1819 enableval="$enable_history"
1820 opt_history=$enableval
f73dda09 1821fi;
d166f048
JA
1822# Check whether --enable-job-control or --disable-job-control was given.
1823if test "${enable_job_control+set}" = set; then
1824 enableval="$enable_job_control"
1825 opt_job_control=$enableval
f73dda09 1826fi;
d3a24ed2
CR
1827# Check whether --enable-multibyte or --disable-multibyte was given.
1828if test "${enable_multibyte+set}" = set; then
1829 enableval="$enable_multibyte"
1830 opt_multibyte=$enableval
1831fi;
bb70624e
JA
1832# Check whether --enable-net-redirections or --disable-net-redirections was given.
1833if test "${enable_net_redirections+set}" = set; then
1834 enableval="$enable_net_redirections"
1835 opt_net_redirs=$enableval
f73dda09 1836fi;
d166f048
JA
1837# Check whether --enable-process-substitution or --disable-process-substitution was given.
1838if test "${enable_process_substitution+set}" = set; then
1839 enableval="$enable_process_substitution"
1840 opt_process_subst=$enableval
f73dda09 1841fi;
bb70624e
JA
1842# Check whether --enable-progcomp or --disable-progcomp was given.
1843if test "${enable_progcomp+set}" = set; then
1844 enableval="$enable_progcomp"
1845 opt_progcomp=$enableval
f73dda09 1846fi;
d166f048
JA
1847# Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1848if test "${enable_prompt_string_decoding+set}" = set; then
1849 enableval="$enable_prompt_string_decoding"
1850 opt_prompt_decoding=$enableval
f73dda09 1851fi;
d166f048
JA
1852# Check whether --enable-readline or --disable-readline was given.
1853if test "${enable_readline+set}" = set; then
1854 enableval="$enable_readline"
1855 opt_readline=$enableval
f73dda09 1856fi;
d166f048
JA
1857# Check whether --enable-restricted or --disable-restricted was given.
1858if test "${enable_restricted+set}" = set; then
1859 enableval="$enable_restricted"
1860 opt_restricted=$enableval
f73dda09 1861fi;
d166f048
JA
1862# Check whether --enable-select or --disable-select was given.
1863if test "${enable_select+set}" = set; then
1864 enableval="$enable_select"
1865 opt_select=$enableval
f73dda09 1866fi;
7117c2d2
JA
1867# Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1868if test "${enable_separate_helpfiles+set}" = set; then
1869 enableval="$enable_separate_helpfiles"
1870 opt_separate_help=$enableval
1871fi;
01ed5ba4
CR
1872# Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1873if test "${enable_single_help_strings+set}" = set; then
1874 enableval="$enable_single_help_strings"
1875 opt_single_longdoc_strings=$enableval
1876fi;
ccc6cda3
JA
1877# Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1878if test "${enable_usg_echo_default+set}" = set; then
1879 enableval="$enable_usg_echo_default"
bb70624e 1880 opt_xpg_echo=$enableval
f73dda09 1881fi;
bb70624e
JA
1882# Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1883if test "${enable_xpg_echo_default+set}" = set; then
1884 enableval="$enable_xpg_echo_default"
1885 opt_xpg_echo=$enableval
f73dda09 1886fi;
ccc6cda3 1887
7117c2d2
JA
1888# Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1889if test "${enable_mem_scramble+set}" = set; then
1890 enableval="$enable_mem_scramble"
1891 opt_memscramble=$enableval
1892fi;
cce855bc
JA
1893# Check whether --enable-profiling or --disable-profiling was given.
1894if test "${enable_profiling+set}" = set; then
1895 enableval="$enable_profiling"
1896 opt_profiling=$enableval
f73dda09 1897fi;
cce855bc
JA
1898# Check whether --enable-static-link or --disable-static-link was given.
1899if test "${enable_static_link+set}" = set; then
1900 enableval="$enable_static_link"
1901 opt_static_link=$enableval
f73dda09 1902fi;
b72432fd 1903
a82a04b3
CR
1904
1905
ccc6cda3 1906if test $opt_alias = yes; then
a82a04b3 1907cat >>confdefs.h <<\_ACEOF
ccc6cda3 1908#define ALIAS 1
a82a04b3 1909_ACEOF
ccc6cda3 1910
ccc6cda3
JA
1911fi
1912if test $opt_dirstack = yes; then
a82a04b3 1913cat >>confdefs.h <<\_ACEOF
ccc6cda3 1914#define PUSHD_AND_POPD 1
a82a04b3 1915_ACEOF
ccc6cda3
JA
1916
1917fi
1918if test $opt_restricted = yes; then
a82a04b3 1919cat >>confdefs.h <<\_ACEOF
ccc6cda3 1920#define RESTRICTED_SHELL 1
a82a04b3 1921_ACEOF
ccc6cda3
JA
1922
1923fi
1924if test $opt_process_subst = yes; then
a82a04b3 1925cat >>confdefs.h <<\_ACEOF
ccc6cda3 1926#define PROCESS_SUBSTITUTION 1
a82a04b3 1927_ACEOF
ccc6cda3
JA
1928
1929fi
1930if test $opt_prompt_decoding = yes; then
a82a04b3 1931cat >>confdefs.h <<\_ACEOF
ccc6cda3 1932#define PROMPT_STRING_DECODE 1
a82a04b3 1933_ACEOF
ccc6cda3
JA
1934
1935fi
1936if test $opt_select = yes; then
a82a04b3 1937cat >>confdefs.h <<\_ACEOF
ccc6cda3 1938#define SELECT_COMMAND 1
a82a04b3 1939_ACEOF
ccc6cda3
JA
1940
1941fi
1942if test $opt_help = yes; then
a82a04b3 1943cat >>confdefs.h <<\_ACEOF
ccc6cda3 1944#define HELP_BUILTIN 1
a82a04b3 1945_ACEOF
ccc6cda3
JA
1946
1947fi
1948if test $opt_array_variables = yes; then
a82a04b3 1949cat >>confdefs.h <<\_ACEOF
ccc6cda3 1950#define ARRAY_VARS 1
a82a04b3 1951_ACEOF
ccc6cda3
JA
1952
1953fi
1954if test $opt_dparen_arith = yes; then
a82a04b3 1955cat >>confdefs.h <<\_ACEOF
ccc6cda3 1956#define DPAREN_ARITHMETIC 1
a82a04b3 1957_ACEOF
ccc6cda3
JA
1958
1959fi
1960if test $opt_brace_expansion = yes; then
a82a04b3 1961cat >>confdefs.h <<\_ACEOF
ccc6cda3 1962#define BRACE_EXPANSION 1
a82a04b3 1963_ACEOF
ccc6cda3
JA
1964
1965fi
1966if test $opt_disabled_builtins = yes; then
a82a04b3 1967cat >>confdefs.h <<\_ACEOF
ccc6cda3 1968#define DISABLED_BUILTINS 1
a82a04b3 1969_ACEOF
ccc6cda3
JA
1970
1971fi
1972if test $opt_command_timing = yes; then
a82a04b3 1973cat >>confdefs.h <<\_ACEOF
ccc6cda3 1974#define COMMAND_TIMING 1
a82a04b3 1975_ACEOF
ccc6cda3
JA
1976
1977fi
bb70624e 1978if test $opt_xpg_echo = yes ; then
a82a04b3 1979cat >>confdefs.h <<\_ACEOF
bb70624e 1980#define DEFAULT_ECHO_TO_XPG 1
a82a04b3 1981_ACEOF
ccc6cda3 1982
cce855bc
JA
1983fi
1984if test $opt_extended_glob = yes ; then
a82a04b3 1985cat >>confdefs.h <<\_ACEOF
cce855bc 1986#define EXTENDED_GLOB 1
a82a04b3 1987_ACEOF
cce855bc
JA
1988
1989fi
1990if test $opt_cond_command = yes ; then
a82a04b3 1991cat >>confdefs.h <<\_ACEOF
cce855bc 1992#define COND_COMMAND 1
a82a04b3 1993_ACEOF
cce855bc 1994
d3a24ed2
CR
1995fi
1996if test $opt_cond_regexp = yes ; then
a82a04b3 1997cat >>confdefs.h <<\_ACEOF
d3a24ed2 1998#define COND_REGEXP 1
a82a04b3 1999_ACEOF
d3a24ed2 2000
bb70624e
JA
2001fi
2002if test $opt_arith_for_command = yes; then
a82a04b3 2003cat >>confdefs.h <<\_ACEOF
bb70624e 2004#define ARITH_FOR_COMMAND 1
a82a04b3 2005_ACEOF
bb70624e
JA
2006
2007fi
2008if test $opt_net_redirs = yes; then
a82a04b3 2009cat >>confdefs.h <<\_ACEOF
bb70624e 2010#define NETWORK_REDIRECTIONS 1
a82a04b3 2011_ACEOF
bb70624e
JA
2012
2013fi
2014if test $opt_progcomp = yes; then
a82a04b3 2015cat >>confdefs.h <<\_ACEOF
bb70624e 2016#define PROGRAMMABLE_COMPLETION 1
a82a04b3 2017_ACEOF
bb70624e 2018
d3a24ed2
CR
2019fi
2020if test $opt_multibyte = no; then
a82a04b3 2021cat >>confdefs.h <<\_ACEOF
d3a24ed2 2022#define NO_MULTIBYTE_SUPPORT 1
a82a04b3 2023_ACEOF
d3a24ed2
CR
2024
2025fi
2026if test $opt_debugger = yes; then
a82a04b3 2027cat >>confdefs.h <<\_ACEOF
d3a24ed2 2028#define DEBUGGER 1
a82a04b3 2029_ACEOF
d3a24ed2 2030
ccc6cda3
JA
2031fi
2032
7117c2d2 2033if test $opt_memscramble = yes; then
a82a04b3 2034cat >>confdefs.h <<\_ACEOF
7117c2d2 2035#define MEMSCRAMBLE 1
a82a04b3 2036_ACEOF
7117c2d2
JA
2037
2038fi
2039
d166f048
JA
2040if test "$opt_minimal_config" = yes; then
2041 TESTSCRIPT=run-minimal
2042else
2043 TESTSCRIPT=run-all
2044fi
2045
7117c2d2
JA
2046HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2047if test "$opt_separate_help" != no; then
2048 if test "$opt_separate_help" = "yes" ; then
2049 HELPDIR='${datadir}/bash'
2050 else
2051 HELPDIR=$opt_separate_help
2052 fi
2053 HELPDIRDEFINE='-H ${HELPDIR}'
2054 HELPINSTALL='install-help'
2055fi
01ed5ba4
CR
2056HELPSTRINGS=
2057if test "$opt_single_longdoc_strings" != "yes"; then
2058 HELPSTRINGS='-S'
2059fi
2060
a82a04b3
CR
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
f73dda09 2078echo ""
7117c2d2 2079echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
f73dda09 2080echo ""
d166f048 2081
f73dda09
JA
2082ac_ext=c
2083ac_cpp='$CPP $CPPFLAGS'
2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087if test -n "$ac_tool_prefix"; then
2088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2089set dummy ${ac_tool_prefix}gcc; ac_word=$2
a82a04b3 2090echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095 if test -n "$CC"; then
2096 ac_cv_prog_CC="$CC" # Let the user override the test.
2097else
a82a04b3
CR
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2108 fi
2109done
f73dda09 2110done
ccc6cda3 2111
f73dda09
JA
2112fi
2113fi
2114CC=$ac_cv_prog_CC
2115if test -n "$CC"; then
a82a04b3 2116 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09
JA
2117echo "${ECHO_T}$CC" >&6
2118else
a82a04b3 2119 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2120echo "${ECHO_T}no" >&6
2121fi
ccc6cda3 2122
f73dda09
JA
2123fi
2124if test -z "$ac_cv_prog_CC"; then
2125 ac_ct_CC=$CC
2126 # Extract the first word of "gcc", so it can be a program name with args.
2127set dummy gcc; ac_word=$2
a82a04b3 2128echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 if test -n "$ac_ct_CC"; then
2134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2135else
a82a04b3
CR
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_CC="gcc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
f73dda09 2148done
ccc6cda3 2149
f73dda09
JA
2150fi
2151fi
2152ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153if test -n "$ac_ct_CC"; then
a82a04b3 2154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f73dda09
JA
2155echo "${ECHO_T}$ac_ct_CC" >&6
2156else
a82a04b3 2157 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2158echo "${ECHO_T}no" >&6
2159fi
ccc6cda3 2160
f73dda09
JA
2161 CC=$ac_ct_CC
2162else
2163 CC="$ac_cv_prog_CC"
2164fi
bb70624e 2165
f73dda09
JA
2166if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2169set dummy ${ac_tool_prefix}cc; ac_word=$2
a82a04b3 2170echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
2174else
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2177else
a82a04b3
CR
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_CC="${ac_tool_prefix}cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189done
f73dda09
JA
2190done
2191
ccc6cda3
JA
2192fi
2193fi
f73dda09 2194CC=$ac_cv_prog_CC
ccc6cda3 2195if test -n "$CC"; then
a82a04b3 2196 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09
JA
2197echo "${ECHO_T}$CC" >&6
2198else
a82a04b3 2199 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2200echo "${ECHO_T}no" >&6
2201fi
2202
2203fi
2204if test -z "$ac_cv_prog_CC"; then
2205 ac_ct_CC=$CC
2206 # Extract the first word of "cc", so it can be a program name with args.
2207set dummy cc; ac_word=$2
a82a04b3 2208echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215else
a82a04b3
CR
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223 ac_cv_prog_ac_ct_CC="cc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227done
f73dda09
JA
2228done
2229
2230fi
2231fi
2232ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233if test -n "$ac_ct_CC"; then
a82a04b3 2234 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f73dda09
JA
2235echo "${ECHO_T}$ac_ct_CC" >&6
2236else
a82a04b3 2237 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2238echo "${ECHO_T}no" >&6
2239fi
2240
2241 CC=$ac_ct_CC
ccc6cda3 2242else
f73dda09 2243 CC="$ac_cv_prog_CC"
ccc6cda3
JA
2244fi
2245
f73dda09 2246fi
ccc6cda3
JA
2247if test -z "$CC"; then
2248 # Extract the first word of "cc", so it can be a program name with args.
2249set dummy cc; ac_word=$2
a82a04b3 2250echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252if test "${ac_cv_prog_CC+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
2254else
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2257else
ccc6cda3 2258 ac_prog_rejected=no
a82a04b3
CR
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2267 ac_prog_rejected=yes
2268 continue
2269 fi
2270 ac_cv_prog_CC="cc"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2273 fi
2274done
f73dda09
JA
2275done
2276
ccc6cda3
JA
2277if test $ac_prog_rejected = yes; then
2278 # We found a bogon in the path, so make sure we never use it.
2279 set dummy $ac_cv_prog_CC
2280 shift
f73dda09 2281 if test $# != 0; then
ccc6cda3
JA
2282 # We chose a different compiler from the bogus one.
2283 # However, it has the same basename, so the bogon will be chosen
2284 # first if we set CC to just the basename; use the full file name.
2285 shift
a82a04b3 2286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ccc6cda3
JA
2287 fi
2288fi
2289fi
2290fi
f73dda09 2291CC=$ac_cv_prog_CC
ccc6cda3 2292if test -n "$CC"; then
a82a04b3 2293 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09 2294echo "${ECHO_T}$CC" >&6
ccc6cda3 2295else
a82a04b3 2296 echo "$as_me:$LINENO: result: no" >&5
f73dda09 2297echo "${ECHO_T}no" >&6
ccc6cda3
JA
2298fi
2299
f73dda09
JA
2300fi
2301if test -z "$CC"; then
2302 if test -n "$ac_tool_prefix"; then
2303 for ac_prog in cl
2304 do
2305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2306set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a82a04b3 2307echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309if test "${ac_cv_prog_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e
JA
2311else
2312 if test -n "$CC"; then
2313 ac_cv_prog_CC="$CC" # Let the user override the test.
2314else
a82a04b3
CR
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 break 2
2325 fi
2326done
f73dda09
JA
2327done
2328
bb70624e
JA
2329fi
2330fi
f73dda09 2331CC=$ac_cv_prog_CC
bb70624e 2332if test -n "$CC"; then
a82a04b3 2333 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09 2334echo "${ECHO_T}$CC" >&6
bb70624e 2335else
a82a04b3 2336 echo "$as_me:$LINENO: result: no" >&5
f73dda09 2337echo "${ECHO_T}no" >&6
bb70624e 2338fi
ccc6cda3 2339
f73dda09
JA
2340 test -n "$CC" && break
2341 done
ccc6cda3 2342fi
f73dda09
JA
2343if test -z "$CC"; then
2344 ac_ct_CC=$CC
2345 for ac_prog in cl
2346do
2347 # Extract the first word of "$ac_prog", so it can be a program name with args.
2348set dummy $ac_prog; ac_word=$2
a82a04b3 2349echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354 if test -n "$ac_ct_CC"; then
2355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2356else
a82a04b3
CR
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364 ac_cv_prog_ac_ct_CC="$ac_prog"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
f73dda09 2369done
ccc6cda3 2370
ccc6cda3 2371fi
ccc6cda3 2372fi
f73dda09
JA
2373ac_ct_CC=$ac_cv_prog_ac_ct_CC
2374if test -n "$ac_ct_CC"; then
a82a04b3 2375 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f73dda09
JA
2376echo "${ECHO_T}$ac_ct_CC" >&6
2377else
a82a04b3 2378 echo "$as_me:$LINENO: result: no" >&5
f73dda09 2379echo "${ECHO_T}no" >&6
ccc6cda3
JA
2380fi
2381
f73dda09
JA
2382 test -n "$ac_ct_CC" && break
2383done
ccc6cda3 2384
f73dda09 2385 CC=$ac_ct_CC
bb70624e
JA
2386fi
2387
f73dda09
JA
2388fi
2389
a82a04b3
CR
2390
2391test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: no acceptable C compiler found in \$PATH
2394See \`config.log' for more details." >&2;}
f73dda09
JA
2395 { (exit 1); exit 1; }; }
2396
2397# Provide some information about the compiler.
a82a04b3 2398echo "$as_me:$LINENO:" \
f73dda09
JA
2399 "checking for C compiler version" >&5
2400ac_compiler=`set X $ac_compile; echo $2`
a82a04b3 2401{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
f73dda09
JA
2402 (eval $ac_compiler --version </dev/null >&5) 2>&5
2403 ac_status=$?
a82a04b3 2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2405 (exit $ac_status); }
a82a04b3 2406{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
f73dda09
JA
2407 (eval $ac_compiler -v </dev/null >&5) 2>&5
2408 ac_status=$?
a82a04b3 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2410 (exit $ac_status); }
a82a04b3 2411{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
f73dda09
JA
2412 (eval $ac_compiler -V </dev/null >&5) 2>&5
2413 ac_status=$?
a82a04b3 2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2415 (exit $ac_status); }
2416
2417cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
2418/* confdefs.h. */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h. */
f73dda09
JA
2423
2424int
2425main ()
2426{
2427
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432ac_clean_files_save=$ac_clean_files
a82a04b3 2433ac_clean_files="$ac_clean_files a.out a.exe b.out"
f73dda09
JA
2434# Try to create an executable without -o first, disregard a.out.
2435# It will help us diagnose broken compilers, and finding out an intuition
2436# of exeext.
a82a04b3
CR
2437echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2438echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
f73dda09 2439ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a82a04b3 2440if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
f73dda09
JA
2441 (eval $ac_link_default) 2>&5
2442 ac_status=$?
a82a04b3 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2444 (exit $ac_status); }; then
2445 # Find the output, starting from the most likely. This scheme is
2446# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2447# resort.
a82a04b3
CR
2448
2449# Be careful to initialize this variable, since it used to be cached.
2450# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2451ac_cv_exeext=
2452# b.out is created by i960 compilers.
2453for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2454do
2455 test -f "$ac_file" || continue
f73dda09 2456 case $ac_file in
a82a04b3
CR
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2458 ;;
2459 conftest.$ac_ext )
2460 # This is the source file.
2461 ;;
2462 [ab].out )
2463 # We found the default executable, but exeext='' is most
2464 # certainly right.
2465 break;;
2466 *.* )
2467 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 # FIXME: I believe we export ac_cv_exeext for Libtool,
2469 # but it would be cool to find out if it's true. Does anybody
2470 # maintain Libtool? --akim.
2471 export ac_cv_exeext
2472 break;;
2473 * )
2474 break;;
f73dda09
JA
2475 esac
2476done
ccc6cda3 2477else
f73dda09 2478 echo "$as_me: failed program was:" >&5
a82a04b3
CR
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2482See \`config.log' for more details." >&5
2483echo "$as_me: error: C compiler cannot create executables
2484See \`config.log' for more details." >&2;}
f73dda09
JA
2485 { (exit 77); exit 77; }; }
2486fi
2487
2488ac_exeext=$ac_cv_exeext
a82a04b3 2489echo "$as_me:$LINENO: result: $ac_file" >&5
f73dda09
JA
2490echo "${ECHO_T}$ac_file" >&6
2491
2492# Check the compiler produces executables we can run. If not, either
2493# the compiler is broken, or we cross compile.
a82a04b3 2494echo "$as_me:$LINENO: checking whether the C compiler works" >&5
f73dda09
JA
2495echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2496# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2497# If not cross compiling, check that we can run a simple program.
2498if test "$cross_compiling" != yes; then
2499 if { ac_try='./$ac_file'
a82a04b3 2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
a82a04b3 2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2504 (exit $ac_status); }; }; then
2505 cross_compiling=no
2506 else
2507 if test "$cross_compiling" = maybe; then
2508 cross_compiling=yes
2509 else
a82a04b3
CR
2510 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2511If you meant to cross compile, use \`--host'.
2512See \`config.log' for more details." >&5
f73dda09 2513echo "$as_me: error: cannot run C compiled programs.
a82a04b3
CR
2514If you meant to cross compile, use \`--host'.
2515See \`config.log' for more details." >&2;}
f73dda09
JA
2516 { (exit 1); exit 1; }; }
2517 fi
2518 fi
2519fi
a82a04b3 2520echo "$as_me:$LINENO: result: yes" >&5
f73dda09
JA
2521echo "${ECHO_T}yes" >&6
2522
a82a04b3 2523rm -f a.out a.exe conftest$ac_cv_exeext b.out
f73dda09
JA
2524ac_clean_files=$ac_clean_files_save
2525# Check the compiler produces executables we can run. If not, either
2526# the compiler is broken, or we cross compile.
a82a04b3 2527echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
f73dda09 2528echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a82a04b3 2529echo "$as_me:$LINENO: result: $cross_compiling" >&5
f73dda09
JA
2530echo "${ECHO_T}$cross_compiling" >&6
2531
a82a04b3
CR
2532echo "$as_me:$LINENO: checking for suffix of executables" >&5
2533echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
2535 (eval $ac_link) 2>&5
2536 ac_status=$?
a82a04b3 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2538 (exit $ac_status); }; then
2539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2540# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2541# work properly (i.e., refer to `conftest.exe'), while it won't with
2542# `rm'.
a82a04b3
CR
2543for ac_file in conftest.exe conftest conftest.*; do
2544 test -f "$ac_file" || continue
f73dda09 2545 case $ac_file in
a82a04b3 2546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
f73dda09 2547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a82a04b3
CR
2548 export ac_cv_exeext
2549 break;;
f73dda09
JA
2550 * ) break;;
2551 esac
2552done
ccc6cda3 2553else
a82a04b3
CR
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555See \`config.log' for more details." >&5
2556echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557See \`config.log' for more details." >&2;}
f73dda09
JA
2558 { (exit 1); exit 1; }; }
2559fi
2560
2561rm -f conftest$ac_cv_exeext
a82a04b3 2562echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
f73dda09
JA
2563echo "${ECHO_T}$ac_cv_exeext" >&6
2564
2565rm -f conftest.$ac_ext
2566EXEEXT=$ac_cv_exeext
2567ac_exeext=$EXEEXT
a82a04b3
CR
2568echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
f73dda09
JA
2570if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
2574/* confdefs.h. */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h. */
f73dda09
JA
2579
2580int
2581main ()
2582{
2583
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588rm -f conftest.o conftest.obj
a82a04b3 2589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f73dda09
JA
2590 (eval $ac_compile) 2>&5
2591 ac_status=$?
a82a04b3 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2593 (exit $ac_status); }; then
2594 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2595 case $ac_file in
a82a04b3 2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
f73dda09
JA
2597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 break;;
2599 esac
2600done
2601else
2602 echo "$as_me: failed program was:" >&5
a82a04b3
CR
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&5
2607echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608See \`config.log' for more details." >&2;}
f73dda09 2609 { (exit 1); exit 1; }; }
ccc6cda3 2610fi
ccc6cda3 2611
f73dda09 2612rm -f conftest.$ac_cv_objext conftest.$ac_ext
ccc6cda3 2613fi
a82a04b3 2614echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
f73dda09
JA
2615echo "${ECHO_T}$ac_cv_objext" >&6
2616OBJEXT=$ac_cv_objext
2617ac_objext=$OBJEXT
a82a04b3 2618echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
f73dda09
JA
2619echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2620if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
f73dda09
JA
2629
2630int
2631main ()
2632{
2633#ifndef __GNUC__
2634 choke me
2635#endif
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
a82a04b3
CR
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
f73dda09 2644 ac_status=$?
a82a04b3
CR
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2649 (exit $ac_status); } &&
a82a04b3
CR
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
a82a04b3 2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2662 (exit $ac_status); }; }; then
2663 ac_compiler_gnu=yes
2664else
2665 echo "$as_me: failed program was:" >&5
a82a04b3
CR
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
f73dda09
JA
2668ac_compiler_gnu=no
2669fi
a82a04b3 2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
2671ac_cv_c_compiler_gnu=$ac_compiler_gnu
2672
2673fi
a82a04b3 2674echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
f73dda09
JA
2675echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2676GCC=`test $ac_compiler_gnu = yes && echo yes`
2677ac_test_CFLAGS=${CFLAGS+set}
2678ac_save_CFLAGS=$CFLAGS
2679CFLAGS="-g"
a82a04b3 2680echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
f73dda09
JA
2681echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2682if test "${ac_cv_prog_cc_g+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
f73dda09
JA
2691
2692int
2693main ()
2694{
ccc6cda3 2695
f73dda09
JA
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
a82a04b3
CR
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
f73dda09 2703 ac_status=$?
a82a04b3
CR
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2708 (exit $ac_status); } &&
a82a04b3
CR
2709 { ac_try='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
a82a04b3
CR
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2721 (exit $ac_status); }; }; then
2722 ac_cv_prog_cc_g=yes
2723else
2724 echo "$as_me: failed program was:" >&5
a82a04b3
CR
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
f73dda09
JA
2727ac_cv_prog_cc_g=no
2728fi
a82a04b3 2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 2730fi
a82a04b3 2731echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
f73dda09 2732echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
bb70624e 2733if test "$ac_test_CFLAGS" = set; then
f73dda09 2734 CFLAGS=$ac_save_CFLAGS
bb70624e
JA
2735elif test $ac_cv_prog_cc_g = yes; then
2736 if test "$GCC" = yes; then
ccc6cda3
JA
2737 CFLAGS="-g -O2"
2738 else
bb70624e 2739 CFLAGS="-g"
ccc6cda3
JA
2740 fi
2741else
bb70624e
JA
2742 if test "$GCC" = yes; then
2743 CFLAGS="-O2"
2744 else
2745 CFLAGS=
2746 fi
ccc6cda3 2747fi
a82a04b3
CR
2748echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2749echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2750if test "${ac_cv_prog_cc_stdc+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752else
2753 ac_cv_prog_cc_stdc=no
2754ac_save_CC=$CC
2755cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761#include <stdarg.h>
2762#include <stdio.h>
2763#include <sys/types.h>
2764#include <sys/stat.h>
2765/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2766struct buf { int x; };
2767FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768static char *e (p, i)
2769 char **p;
2770 int i;
2771{
2772 return p[i];
2773}
2774static char *f (char * (*g) (char **, int), char **p, ...)
2775{
2776 char *s;
2777 va_list v;
2778 va_start (v,p);
2779 s = g (p, va_arg (v,int));
2780 va_end (v);
2781 return s;
2782}
2783
2784/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2785 function prototypes and stuff, but not '\xHH' hex character constants.
2786 These don't provoke an error unfortunately, instead are silently treated
2787 as 'x'. The following induces an error, until -std1 is added to get
2788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2789 array size at least. It's necessary to write '\x00'==0 to get something
2790 that's true only with -std1. */
2791int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792
2793int test (int i, double x);
2794struct s1 {int (*f) (int a);};
2795struct s2 {int (*f) (double a);};
2796int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2797int argc;
2798char **argv;
2799int
2800main ()
2801{
2802return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807# Don't try gcc -ansi; that turns off useful extensions and
2808# breaks some systems' header files.
2809# AIX -qlanglvl=ansi
2810# Ultrix and OSF/1 -std1
2811# HP-UX 10.20 and later -Ae
2812# HP-UX older versions -Aa -D_HPUX_SOURCE
2813# SVR4 -Xc -D__EXTENSIONS__
2814for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815do
2816 CC="$ac_save_CC $ac_arg"
2817 rm -f conftest.$ac_objext
2818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2820 ac_status=$?
2821 grep -v '^ *+' conftest.er1 >conftest.err
2822 rm -f conftest.er1
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -z "$ac_c_werror_flag"
2827 || test ! -s conftest.err'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 ac_cv_prog_cc_stdc=$ac_arg
2840break
2841else
2842 echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845fi
2846rm -f conftest.err conftest.$ac_objext
2847done
2848rm -f conftest.$ac_ext conftest.$ac_objext
2849CC=$ac_save_CC
2850
2851fi
2852
2853case "x$ac_cv_prog_cc_stdc" in
2854 x|xno)
2855 echo "$as_me:$LINENO: result: none needed" >&5
2856echo "${ECHO_T}none needed" >&6 ;;
2857 *)
2858 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2859echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2860 CC="$CC $ac_cv_prog_cc_stdc" ;;
2861esac
2862
f73dda09
JA
2863# Some people use a C++ compiler to compile C. Since we use `exit',
2864# in C++ we need to declare it. In case someone uses the same compiler
2865# for both compiling C and C++ we need to have the C++ compiler decide
2866# the declaration of exit, since it's the most demanding environment.
2867cat >conftest.$ac_ext <<_ACEOF
2868#ifndef __cplusplus
2869 choke me
2870#endif
2871_ACEOF
2872rm -f conftest.$ac_objext
a82a04b3
CR
2873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
f73dda09 2875 ac_status=$?
a82a04b3
CR
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2880 (exit $ac_status); } &&
a82a04b3
CR
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
a82a04b3
CR
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2893 (exit $ac_status); }; }; then
2894 for ac_declaration in \
a82a04b3 2895 '' \
f73dda09
JA
2896 'extern "C" void std::exit (int) throw (); using std::exit;' \
2897 'extern "C" void std::exit (int); using std::exit;' \
2898 'extern "C" void exit (int) throw ();' \
2899 'extern "C" void exit (int);' \
2900 'void exit (int);'
2901do
2902 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
2903/* confdefs.h. */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h. */
f73dda09 2908$ac_declaration
a82a04b3 2909#include <stdlib.h>
f73dda09
JA
2910int
2911main ()
2912{
2913exit (42);
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext
a82a04b3
CR
2919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
f73dda09 2921 ac_status=$?
a82a04b3
CR
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2926 (exit $ac_status); } &&
a82a04b3
CR
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
a82a04b3
CR
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2939 (exit $ac_status); }; }; then
2940 :
2941else
2942 echo "$as_me: failed program was:" >&5
a82a04b3
CR
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
f73dda09
JA
2945continue
2946fi
a82a04b3 2947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 2948 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h. */
f73dda09
JA
2954$ac_declaration
2955int
2956main ()
2957{
2958exit (42);
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
a82a04b3
CR
2964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>conftest.er1
f73dda09 2966 ac_status=$?
a82a04b3
CR
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2971 (exit $ac_status); } &&
a82a04b3
CR
2972 { ac_try='test -z "$ac_c_werror_flag"
2973 || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
a82a04b3 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2984 (exit $ac_status); }; }; then
2985 break
2986else
2987 echo "$as_me: failed program was:" >&5
a82a04b3
CR
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
f73dda09 2990fi
a82a04b3 2991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 2992done
f73dda09
JA
2993rm -f conftest*
2994if test -n "$ac_declaration"; then
2995 echo '#ifdef __cplusplus' >>confdefs.h
2996 echo $ac_declaration >>confdefs.h
2997 echo '#endif' >>confdefs.h
2998fi
cce855bc 2999
f73dda09
JA
3000else
3001 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
f73dda09 3004fi
a82a04b3 3005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3006ac_ext=c
3007ac_cpp='$CPP $CPPFLAGS'
3008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010ac_compiler_gnu=$ac_cv_c_compiler_gnu
bb70624e 3011
a82a04b3
CR
3012
3013
3014
3015 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5e13499c
CR
3016echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3017if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020 ac_check_lib_save_LIBS=$LIBS
3021LIBS="-lcposix $LIBS"
3022cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
ccc6cda3 3028
5e13499c
CR
3029/* Override any gcc2 internal prototype to avoid an error. */
3030#ifdef __cplusplus
3031extern "C"
3032#endif
3033/* We use char because int might match the return type of a gcc2
3034 builtin and then its argument prototype would still apply. */
3035char strerror ();
3036int
3037main ()
3038{
3039strerror ();
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
3045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046 (eval $ac_link) 2>conftest.er1
5e13499c 3047 ac_status=$?
a82a04b3
CR
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 3052 (exit $ac_status); } &&
a82a04b3
CR
3053 { ac_try='test -z "$ac_c_werror_flag"
3054 || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest$ac_exeext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
a82a04b3 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
3065 (exit $ac_status); }; }; then
3066 ac_cv_lib_cposix_strerror=yes
ccc6cda3 3067else
5e13499c 3068 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
5e13499c
CR
3071ac_cv_lib_cposix_strerror=no
3072fi
a82a04b3
CR
3073rm -f conftest.err conftest.$ac_objext \
3074 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
3075LIBS=$ac_check_lib_save_LIBS
3076fi
a82a04b3 3077echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5e13499c
CR
3078echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3079if test $ac_cv_lib_cposix_strerror = yes; then
3080 LIBS="$LIBS -lcposix"
ccc6cda3
JA
3081fi
3082
a82a04b3
CR
3083
3084
f73dda09
JA
3085ac_ext=c
3086ac_cpp='$CPP $CPPFLAGS'
3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089ac_compiler_gnu=$ac_cv_c_compiler_gnu
a82a04b3 3090echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
f73dda09 3091echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ccc6cda3
JA
3092# On Suns, sometimes $CPP names a directory.
3093if test -n "$CPP" && test -d "$CPP"; then
3094 CPP=
3095fi
3096if test -z "$CPP"; then
f73dda09
JA
3097 if test "${ac_cv_prog_CPP+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 # Double quotes because CPP needs to be expanded
3101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3102 do
3103 ac_preproc_ok=false
3104for ac_c_preproc_warn_flag in '' yes
3105do
3106 # Use a header file that comes with gcc, so configuring glibc
3107 # with a fresh cross-compiler works.
a82a04b3
CR
3108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109 # <limits.h> exists even on freestanding compilers.
ccc6cda3 3110 # On the NeXT, cc -E runs the code through the compiler's parser,
f73dda09
JA
3111 # not just through cpp. "Syntax error" is here to catch this case.
3112 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118#ifdef __STDC__
3119# include <limits.h>
3120#else
3121# include <assert.h>
3122#endif
3123 Syntax error
f73dda09 3124_ACEOF
a82a04b3 3125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 ac_status=$?
a82a04b3 3128 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3129 rm -f conftest.er1
3130 cat conftest.err >&5
a82a04b3 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 3135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3136 else
3137 ac_cpp_err=
3138 fi
3139else
3140 ac_cpp_err=yes
3141fi
3142if test -z "$ac_cpp_err"; then
ccc6cda3
JA
3143 :
3144else
f73dda09 3145 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
f73dda09
JA
3148 # Broken: fails on valid input.
3149continue
3150fi
3151rm -f conftest.err conftest.$ac_ext
3152
3153 # OK, works on sane cases. Now check whether non-existent headers
3154 # can be detected and how.
3155 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
f73dda09
JA
3161#include <ac_nonexistent.h>
3162_ACEOF
a82a04b3 3163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165 ac_status=$?
a82a04b3 3166 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3167 rm -f conftest.er1
3168 cat conftest.err >&5
a82a04b3 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3170 (exit $ac_status); } >/dev/null; then
3171 if test -s conftest.err; then
3172 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 3173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3174 else
3175 ac_cpp_err=
3176 fi
3177else
3178 ac_cpp_err=yes
3179fi
3180if test -z "$ac_cpp_err"; then
3181 # Broken: success on invalid input.
3182continue
bb70624e 3183else
f73dda09 3184 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
f73dda09
JA
3187 # Passes both tests.
3188ac_preproc_ok=:
3189break
3190fi
3191rm -f conftest.err conftest.$ac_ext
3192
3193done
3194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195rm -f conftest.err conftest.$ac_ext
3196if $ac_preproc_ok; then
3197 break
3198fi
3199
3200 done
3201 ac_cv_prog_CPP=$CPP
3202
3203fi
3204 CPP=$ac_cv_prog_CPP
3205else
3206 ac_cv_prog_CPP=$CPP
3207fi
a82a04b3 3208echo "$as_me:$LINENO: result: $CPP" >&5
f73dda09
JA
3209echo "${ECHO_T}$CPP" >&6
3210ac_preproc_ok=false
3211for ac_c_preproc_warn_flag in '' yes
3212do
3213 # Use a header file that comes with gcc, so configuring glibc
3214 # with a fresh cross-compiler works.
a82a04b3
CR
3215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3216 # <limits.h> exists even on freestanding compilers.
f73dda09
JA
3217 # On the NeXT, cc -E runs the code through the compiler's parser,
3218 # not just through cpp. "Syntax error" is here to catch this case.
3219 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225#ifdef __STDC__
3226# include <limits.h>
3227#else
3228# include <assert.h>
3229#endif
3230 Syntax error
f73dda09 3231_ACEOF
a82a04b3 3232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3234 ac_status=$?
a82a04b3 3235 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3236 rm -f conftest.er1
3237 cat conftest.err >&5
a82a04b3 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3243 else
3244 ac_cpp_err=
3245 fi
3246else
3247 ac_cpp_err=yes
3248fi
3249if test -z "$ac_cpp_err"; then
ccc6cda3
JA
3250 :
3251else
f73dda09 3252 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
f73dda09
JA
3255 # Broken: fails on valid input.
3256continue
3257fi
3258rm -f conftest.err conftest.$ac_ext
3259
3260 # OK, works on sane cases. Now check whether non-existent headers
3261 # can be detected and how.
3262 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
f73dda09
JA
3268#include <ac_nonexistent.h>
3269_ACEOF
a82a04b3 3270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272 ac_status=$?
a82a04b3 3273 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3274 rm -f conftest.er1
3275 cat conftest.err >&5
a82a04b3 3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3277 (exit $ac_status); } >/dev/null; then
3278 if test -s conftest.err; then
3279 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 3280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3281 else
3282 ac_cpp_err=
3283 fi
3284else
3285 ac_cpp_err=yes
bb70624e 3286fi
f73dda09
JA
3287if test -z "$ac_cpp_err"; then
3288 # Broken: success on invalid input.
3289continue
3290else
3291 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
f73dda09
JA
3294 # Passes both tests.
3295ac_preproc_ok=:
3296break
ccc6cda3 3297fi
f73dda09
JA
3298rm -f conftest.err conftest.$ac_ext
3299
3300done
3301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3302rm -f conftest.err conftest.$ac_ext
3303if $ac_preproc_ok; then
3304 :
ccc6cda3 3305else
a82a04b3
CR
3306 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3307See \`config.log' for more details." >&5
3308echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3309See \`config.log' for more details." >&2;}
f73dda09 3310 { (exit 1); exit 1; }; }
ccc6cda3 3311fi
ccc6cda3 3312
f73dda09
JA
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
a82a04b3
CR
3319
3320echo "$as_me:$LINENO: checking for egrep" >&5
3321echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3322if test "${ac_cv_prog_egrep+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3326 then ac_cv_prog_egrep='grep -E'
3327 else ac_cv_prog_egrep='egrep'
3328 fi
3329fi
3330echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3331echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3332 EGREP=$ac_cv_prog_egrep
3333
3334
3335echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3336echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3337if test "${ac_cv_header_stdc+set}" = set; then
f73dda09 3338 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3339else
f73dda09 3340 cat >conftest.$ac_ext <<_ACEOF
a82a04b3 3341/* confdefs.h. */
545f34cf 3342_ACEOF
a82a04b3
CR
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <stdlib.h>
3347#include <stdarg.h>
3348#include <string.h>
3349#include <float.h>
3350
3351int
3352main ()
3353{
3354
3355 ;
3356 return 0;
3357}
3358_ACEOF
3359rm -f conftest.$ac_objext
3360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
545f34cf 3362 ac_status=$?
a82a04b3 3363 grep -v '^ *+' conftest.er1 >conftest.err
e624d0f7
CR
3364 rm -f conftest.er1
3365 cat conftest.err >&5
a82a04b3
CR
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_header_stdc=yes
f73dda09 3382else
545f34cf 3383 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3384sed 's/^/| /' conftest.$ac_ext >&5
3385
3386ac_cv_header_stdc=no
3387fi
3388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3389
3390if test $ac_cv_header_stdc = yes; then
3391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3392 cat >conftest.$ac_ext <<_ACEOF
3393/* confdefs.h. */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
3397/* end confdefs.h. */
3398#include <string.h>
3399
3400_ACEOF
3401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "memchr" >/dev/null 2>&1; then
3403 :
3404else
3405 ac_cv_header_stdc=no
3406fi
3407rm -f conftest*
3408
3409fi
3410
3411if test $ac_cv_header_stdc = yes; then
3412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#include <stdlib.h>
3420
3421_ACEOF
3422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "free" >/dev/null 2>&1; then
3424 :
3425else
3426 ac_cv_header_stdc=no
3427fi
3428rm -f conftest*
3429
3430fi
3431
3432if test $ac_cv_header_stdc = yes; then
3433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3434 if test "$cross_compiling" = yes; then
3435 :
3436else
3437 cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h. */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h. */
3443#include <ctype.h>
3444#if ((' ' & 0x0FF) == 0x020)
3445# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3446# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3447#else
3448# define ISLOWER(c) \
3449 (('a' <= (c) && (c) <= 'i') \
3450 || ('j' <= (c) && (c) <= 'r') \
3451 || ('s' <= (c) && (c) <= 'z'))
3452# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3453#endif
3454
3455#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3456int
3457main ()
3458{
3459 int i;
3460 for (i = 0; i < 256; i++)
3461 if (XOR (islower (i), ISLOWER (i))
3462 || toupper (i) != TOUPPER (i))
3463 exit(2);
3464 exit (0);
3465}
3466_ACEOF
3467rm -f conftest$ac_exeext
3468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469 (eval $ac_link) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 :
3479else
3480 echo "$as_me: program exited with status $ac_status" >&5
3481echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484( exit $ac_status )
3485ac_cv_header_stdc=no
3486fi
3487rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3488fi
3489fi
3490fi
3491echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3492echo "${ECHO_T}$ac_cv_header_stdc" >&6
3493if test $ac_cv_header_stdc = yes; then
3494
3495cat >>confdefs.h <<\_ACEOF
3496#define STDC_HEADERS 1
3497_ACEOF
3498
3499fi
3500
3501# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3512 inttypes.h stdint.h unistd.h
3513do
3514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3515echo "$as_me:$LINENO: checking for $ac_header" >&5
3516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3517if eval "test \"\${$as_ac_Header+set}\" = set"; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520 cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
3526$ac_includes_default
3527
3528#include <$ac_header>
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 eval "$as_ac_Header=yes"
3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557eval "$as_ac_Header=no"
3558fi
3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
3561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3563if test `eval echo '${'$as_ac_Header'}'` = yes; then
3564 cat >>confdefs.h <<_ACEOF
3565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3566_ACEOF
3567
3568fi
3569
3570done
3571
3572
3573if test "${ac_cv_header_minix_config_h+set}" = set; then
3574 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3575echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3576if test "${ac_cv_header_minix_config_h+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578fi
3579echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3580echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3581else
3582 # Is the header compilable?
3583echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3584echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3585cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
3591$ac_includes_default
3592#include <minix/config.h>
3593_ACEOF
3594rm -f conftest.$ac_objext
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 ac_header_compiler=yes
3617else
3618 echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621ac_header_compiler=no
3622fi
3623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3625echo "${ECHO_T}$ac_header_compiler" >&6
3626
3627# Is the header present?
3628echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3629echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3630cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636#include <minix/config.h>
3637_ACEOF
3638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null; then
3646 if test -s conftest.err; then
3647 ac_cpp_err=$ac_c_preproc_warn_flag
3648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649 else
3650 ac_cpp_err=
3651 fi
3652else
3653 ac_cpp_err=yes
3654fi
3655if test -z "$ac_cpp_err"; then
3656 ac_header_preproc=yes
3657else
3658 echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ac_header_preproc=no
3662fi
e624d0f7 3663rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
3664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3665echo "${ECHO_T}$ac_header_preproc" >&6
3666
3667# So? What about this header?
3668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3669 yes:no: )
3670 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3671echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3672 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3673echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3674 ac_header_preproc=yes
3675 ;;
3676 no:yes:* )
3677 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3678echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3679 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3680echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3681 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3682echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3683 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3684echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3685 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3686echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3687 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3688echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3689 (
3690 cat <<\_ASBOX
3691## ------------------------------- ##
3692## Report this to bug-bash@gnu.org ##
3693## ------------------------------- ##
3694_ASBOX
3695 ) |
3696 sed "s/^/$as_me: WARNING: /" >&2
3697 ;;
3698esac
3699echo "$as_me:$LINENO: checking for minix/config.h" >&5
3700echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3701if test "${ac_cv_header_minix_config_h+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 ac_cv_header_minix_config_h=$ac_header_preproc
e624d0f7 3705fi
a82a04b3 3706echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
e624d0f7 3707echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
a82a04b3
CR
3708
3709fi
e624d0f7
CR
3710if test $ac_cv_header_minix_config_h = yes; then
3711 MINIX=yes
ccc6cda3 3712else
e624d0f7 3713 MINIX=
ccc6cda3 3714fi
545f34cf 3715
a82a04b3 3716
e624d0f7 3717if test "$MINIX" = yes; then
545f34cf 3718
a82a04b3 3719cat >>confdefs.h <<\_ACEOF
e624d0f7 3720#define _POSIX_SOURCE 1
a82a04b3
CR
3721_ACEOF
3722
545f34cf 3723
a82a04b3 3724cat >>confdefs.h <<\_ACEOF
ccc6cda3 3725#define _POSIX_1_SOURCE 2
a82a04b3
CR
3726_ACEOF
3727
ccc6cda3 3728
a82a04b3 3729cat >>confdefs.h <<\_ACEOF
ccc6cda3 3730#define _MINIX 1
a82a04b3 3731_ACEOF
ccc6cda3
JA
3732
3733fi
3734
a82a04b3
CR
3735
3736
f73dda09
JA
3737case $host_os in
3738 *cygwin* ) CYGWIN=yes;;
a82a04b3 3739 * ) CYGWIN=no;;
f73dda09
JA
3740esac
3741
a82a04b3 3742
f73dda09
JA
3743case $host_os in
3744 *mingw32* ) MINGW32=yes;;
a82a04b3 3745 * ) MINGW32=no;;
f73dda09
JA
3746esac
3747
a82a04b3 3748
f73dda09
JA
3749# Check whether --enable-largefile or --disable-largefile was given.
3750if test "${enable_largefile+set}" = set; then
3751 enableval="$enable_largefile"
3752
3753fi;
3754if test "$enable_largefile" != no; then
ccc6cda3 3755
a82a04b3 3756 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
f73dda09
JA
3757echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3758if test "${ac_cv_sys_largefile_CC+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3760else
f73dda09
JA
3761 ac_cv_sys_largefile_CC=no
3762 if test "$GCC" != yes; then
3763 ac_save_CC=$CC
3764 while :; do
3765 # IRIX 6.2 and later do not support large files by default,
3766 # so use the C compiler's -n32 option if that helps.
a82a04b3
CR
3767 cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h. */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h. */
f73dda09
JA
3773#include <sys/types.h>
3774 /* Check that off_t can represent 2**63 - 1 correctly.
3775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3776 since some C++ compilers masquerading as C compilers
3777 incorrectly reject 9223372036854775807. */
3778#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3780 && LARGE_OFF_T % 2147483647 == 1)
3781 ? 1 : -1];
3782int
3783main ()
3784{
bb70624e 3785
f73dda09
JA
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790 rm -f conftest.$ac_objext
a82a04b3
CR
3791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
f73dda09 3793 ac_status=$?
a82a04b3
CR
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3798 (exit $ac_status); } &&
a82a04b3
CR
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
a82a04b3 3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3811 (exit $ac_status); }; }; then
3812 break
bb70624e 3813else
f73dda09 3814 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
f73dda09 3817fi
a82a04b3 3818rm -f conftest.err conftest.$ac_objext
f73dda09
JA
3819 CC="$CC -n32"
3820 rm -f conftest.$ac_objext
a82a04b3
CR
3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
f73dda09 3823 ac_status=$?
a82a04b3
CR
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3828 (exit $ac_status); } &&
a82a04b3
CR
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
a82a04b3
CR
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3841 (exit $ac_status); }; }; then
3842 ac_cv_sys_largefile_CC=' -n32'; break
3843else
3844 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
f73dda09 3847fi
a82a04b3
CR
3848rm -f conftest.err conftest.$ac_objext
3849 break
f73dda09
JA
3850 done
3851 CC=$ac_save_CC
3852 rm -f conftest.$ac_ext
3853 fi
bb70624e 3854fi
a82a04b3 3855echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
f73dda09
JA
3856echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3857 if test "$ac_cv_sys_largefile_CC" != no; then
3858 CC=$CC$ac_cv_sys_largefile_CC
3859 fi
bb70624e 3860
a82a04b3 3861 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
f73dda09
JA
3862echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3863if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3865else
f73dda09
JA
3866 while :; do
3867 ac_cv_sys_file_offset_bits=no
3868 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3869/* confdefs.h. */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h. */
f73dda09
JA
3874#include <sys/types.h>
3875 /* Check that off_t can represent 2**63 - 1 correctly.
3876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3877 since some C++ compilers masquerading as C compilers
3878 incorrectly reject 9223372036854775807. */
3879#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3881 && LARGE_OFF_T % 2147483647 == 1)
3882 ? 1 : -1];
3883int
3884main ()
3885{
bb70624e 3886
f73dda09
JA
3887 ;
3888 return 0;
3889}
3890_ACEOF
3891rm -f conftest.$ac_objext
a82a04b3
CR
3892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>conftest.er1
f73dda09 3894 ac_status=$?
a82a04b3
CR
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3899 (exit $ac_status); } &&
a82a04b3
CR
3900 { ac_try='test -z "$ac_c_werror_flag"
3901 || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
a82a04b3
CR
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3912 (exit $ac_status); }; }; then
3913 break
bb70624e 3914else
f73dda09 3915 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
bb70624e 3918fi
a82a04b3 3919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 3920 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
f73dda09
JA
3926#define _FILE_OFFSET_BITS 64
3927#include <sys/types.h>
3928 /* Check that off_t can represent 2**63 - 1 correctly.
3929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3930 since some C++ compilers masquerading as C compilers
3931 incorrectly reject 9223372036854775807. */
3932#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3934 && LARGE_OFF_T % 2147483647 == 1)
3935 ? 1 : -1];
3936int
3937main ()
3938{
bb70624e 3939
f73dda09
JA
3940 ;
3941 return 0;
3942}
3943_ACEOF
3944rm -f conftest.$ac_objext
a82a04b3
CR
3945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>conftest.er1
f73dda09 3947 ac_status=$?
a82a04b3
CR
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3952 (exit $ac_status); } &&
a82a04b3
CR
3953 { ac_try='test -z "$ac_c_werror_flag"
3954 || test ! -s conftest.err'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest.$ac_objext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
a82a04b3 3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3965 (exit $ac_status); }; }; then
3966 ac_cv_sys_file_offset_bits=64; break
3967else
3968 echo "$as_me: failed program was:" >&5
a82a04b3
CR
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
f73dda09 3971fi
a82a04b3 3972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3973 break
3974done
3975fi
a82a04b3 3976echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
f73dda09
JA
3977echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3978if test "$ac_cv_sys_file_offset_bits" != no; then
bb70624e 3979
a82a04b3 3980cat >>confdefs.h <<_ACEOF
f73dda09 3981#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a82a04b3 3982_ACEOF
bb70624e 3983
f73dda09
JA
3984fi
3985rm -f conftest*
a82a04b3 3986 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
f73dda09
JA
3987echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3988if test "${ac_cv_sys_large_files+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3990else
f73dda09
JA
3991 while :; do
3992 ac_cv_sys_large_files=no
3993 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
3994/* confdefs.h. */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h. */
f73dda09
JA
3999#include <sys/types.h>
4000 /* Check that off_t can represent 2**63 - 1 correctly.
4001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4002 since some C++ compilers masquerading as C compilers
4003 incorrectly reject 9223372036854775807. */
4004#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4006 && LARGE_OFF_T % 2147483647 == 1)
4007 ? 1 : -1];
4008int
4009main ()
4010{
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
a82a04b3
CR
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
f73dda09 4019 ac_status=$?
a82a04b3
CR
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4024 (exit $ac_status); } &&
a82a04b3
CR
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
a82a04b3 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4037 (exit $ac_status); }; }; then
4038 break
bb70624e 4039else
f73dda09 4040 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
bb70624e 4043fi
a82a04b3 4044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 4045 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
f73dda09
JA
4051#define _LARGE_FILES 1
4052#include <sys/types.h>
4053 /* Check that off_t can represent 2**63 - 1 correctly.
4054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4055 since some C++ compilers masquerading as C compilers
4056 incorrectly reject 9223372036854775807. */
4057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4059 && LARGE_OFF_T % 2147483647 == 1)
4060 ? 1 : -1];
4061int
4062main ()
4063{
bb70624e 4064
f73dda09
JA
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext
a82a04b3
CR
4070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
f73dda09 4072 ac_status=$?
a82a04b3
CR
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4077 (exit $ac_status); } &&
a82a04b3
CR
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
a82a04b3 4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4090 (exit $ac_status); }; }; then
4091 ac_cv_sys_large_files=1; break
4092else
4093 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
f73dda09 4096fi
a82a04b3 4097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
4098 break
4099done
4100fi
a82a04b3 4101echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
f73dda09
JA
4102echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4103if test "$ac_cv_sys_large_files" != no; then
bb70624e 4104
a82a04b3 4105cat >>confdefs.h <<_ACEOF
f73dda09 4106#define _LARGE_FILES $ac_cv_sys_large_files
a82a04b3 4107_ACEOF
bb70624e 4108
f73dda09
JA
4109fi
4110rm -f conftest*
4111fi
cce855bc 4112
a82a04b3
CR
4113
4114
b72432fd
JA
4115SIGNAMES_H=lsignames.h
4116
a82a04b3
CR
4117
4118
cce855bc
JA
4119if test "x$cross_compiling" = "xyes"; then
4120 case "${host}" in
28ef6c31 4121 *-cygwin*)
cce855bc 4122 cross_cache=${srcdir}/cross-build/cygwin32.cache
b72432fd 4123 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
cce855bc 4124 ;;
9607141c
CR
4125 *-mingw*)
4126 cross_cache=${srcdir}/cross-build/cygwin32.cache
4127 ;;
b72432fd
JA
4128 i[3456]86-*-beos*)
4129 cross_cache=${srcdir}/cross-build/x86-beos.cache
4130 SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
4131 ;;
4132 *) echo "configure: cross-compiling for $host is not supported" >&2
cce855bc
JA
4133 ;;
4134 esac
b72432fd
JA
4135 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4136 echo "loading cross-build cache file ${cross_cache}"
4137 . ${cross_cache}
4138 fi
4139 unset cross_cache
9607141c
CR
4140 CROSS_COMPILE='-DCROSS_COMPILING'
4141
cce855bc
JA
4142fi
4143
a82a04b3 4144
cce855bc
JA
4145if test -z "$CC_FOR_BUILD"; then
4146 if test "x$cross_compiling" = "xno"; then
4147 CC_FOR_BUILD='$(CC)'
4148 else
4149 CC_FOR_BUILD=gcc
4150 fi
4151fi
4152
a82a04b3
CR
4153
4154
4155test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
ccc6cda3
JA
4156
4157test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4158
cce855bc
JA
4159if test "$opt_profiling" = "yes"; then
4160 PROFILE_FLAGS=-pg
b72432fd
JA
4161 case "$host_os" in
4162 solaris2*) ;;
4163 *) opt_static_link=yes ;;
4164 esac
7117c2d2 4165 DEBUG= MALLOC_DEBUG=
cce855bc
JA
4166fi
4167
4168if test "$opt_static_link" = yes; then
f73dda09
JA
4169 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4170 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
b72432fd 4171 STATIC_LD="-static"
f73dda09
JA
4172 case "$host_os" in
4173 solaris2*) ;;
4174 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4175 esac
cce855bc
JA
4176 fi
4177fi
4178
da5b17cd
CR
4179if test "X$cross_compiling" = "Xno"; then
4180 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4181 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4182else
4183 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4184 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4185fi
4186
7117c2d2
JA
4187test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4188
a82a04b3
CR
4189
4190
4191
4192
4193
4194
4195
4196
4197
f73dda09 4198if test $ac_cv_c_compiler_gnu = yes; then
a82a04b3 4199 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
f73dda09
JA
4200echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4201if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
4203else
4204 ac_pattern="Autoconf.*'x'"
f73dda09 4205 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
ccc6cda3
JA
4211#include <sgtty.h>
4212Autoconf TIOCGETP
f73dda09 4213_ACEOF
ccc6cda3 4214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 4215 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
4216 ac_cv_prog_gcc_traditional=yes
4217else
ccc6cda3
JA
4218 ac_cv_prog_gcc_traditional=no
4219fi
4220rm -f conftest*
4221
a82a04b3 4222
ccc6cda3 4223 if test $ac_cv_prog_gcc_traditional = no; then
f73dda09 4224 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
ccc6cda3
JA
4230#include <termio.h>
4231Autoconf TCGETA
f73dda09 4232_ACEOF
ccc6cda3 4233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 4234 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
4235 ac_cv_prog_gcc_traditional=yes
4236fi
4237rm -f conftest*
4238
4239 fi
4240fi
a82a04b3 4241echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
f73dda09 4242echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
ccc6cda3
JA
4243 if test $ac_cv_prog_gcc_traditional = yes; then
4244 CC="$CC -traditional"
4245 fi
4246fi
4247
a82a04b3
CR
4248
4249
f73dda09 4250if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
b72432fd 4251then
f73dda09
JA
4252 # If the user specified --with-installed-readline=PREFIX and PREFIX
4253 # is not `yes', set ac_cv_rl_prefix to PREFIX
4254 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
b72432fd 4255
a82a04b3 4256
bb70624e
JA
4257if test "X$bash_cv_termcap_lib" = "X"; then
4258_bash_needmsg=yes
4259else
a82a04b3 4260echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 4261echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
bb70624e
JA
4262_bash_needmsg=
4263fi
f73dda09
JA
4264if test "${bash_cv_termcap_lib+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4266else
a82a04b3 4267 echo "$as_me:$LINENO: checking for tgetent" >&5
d3a24ed2
CR
4268echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4269if test "${ac_cv_func_tgetent+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
4278/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4280#define tgetent innocuous_tgetent
4281
d3a24ed2 4282/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
4283 which can conflict with char tgetent (); below.
4284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 <limits.h> exists even on freestanding compilers. */
4286
4287#ifdef __STDC__
4288# include <limits.h>
4289#else
4290# include <assert.h>
4291#endif
4292
4293#undef tgetent
4294
d3a24ed2
CR
4295/* Override any gcc2 internal prototype to avoid an error. */
4296#ifdef __cplusplus
4297extern "C"
a82a04b3 4298{
d3a24ed2
CR
4299#endif
4300/* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4302char tgetent ();
d3a24ed2
CR
4303/* The GNU C library defines this for functions which it implements
4304 to always fail with ENOSYS. Some functions are actually named
4305 something starting with __ and the normal name is an alias. */
4306#if defined (__stub_tgetent) || defined (__stub___tgetent)
4307choke me
4308#else
a82a04b3
CR
4309char (*f) () = tgetent;
4310#endif
4311#ifdef __cplusplus
4312}
d3a24ed2
CR
4313#endif
4314
a82a04b3
CR
4315int
4316main ()
4317{
4318return f != tgetent;
d3a24ed2
CR
4319 ;
4320 return 0;
4321}
4322_ACEOF
4323rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
4324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>conftest.er1
d3a24ed2 4326 ac_status=$?
a82a04b3
CR
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 4331 (exit $ac_status); } &&
a82a04b3
CR
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
a82a04b3 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
4344 (exit $ac_status); }; }; then
4345 ac_cv_func_tgetent=yes
4346else
4347 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
d3a24ed2
CR
4350ac_cv_func_tgetent=no
4351fi
a82a04b3
CR
4352rm -f conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
d3a24ed2 4354fi
a82a04b3 4355echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
d3a24ed2
CR
4356echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4357if test $ac_cv_func_tgetent = yes; then
4358 bash_cv_termcap_lib=libc
4359else
a82a04b3 4360 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
f73dda09
JA
4361echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4362if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4364else
f73dda09 4365 ac_check_lib_save_LIBS=$LIBS
bb70624e 4366LIBS="-ltermcap $LIBS"
f73dda09 4367cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
f73dda09 4373
bb70624e 4374/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4375#ifdef __cplusplus
4376extern "C"
4377#endif
bb70624e 4378/* We use char because int might match the return type of a gcc2
f73dda09
JA
4379 builtin and then its argument prototype would still apply. */
4380char tgetent ();
4381int
4382main ()
4383{
4384tgetent ();
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
4390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391 (eval $ac_link) 2>conftest.er1
f73dda09 4392 ac_status=$?
a82a04b3
CR
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4397 (exit $ac_status); } &&
a82a04b3
CR
4398 { ac_try='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest$ac_exeext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
a82a04b3 4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4410 (exit $ac_status); }; }; then
4411 ac_cv_lib_termcap_tgetent=yes
4412else
4413 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
f73dda09
JA
4416ac_cv_lib_termcap_tgetent=no
4417fi
a82a04b3
CR
4418rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4420LIBS=$ac_check_lib_save_LIBS
4421fi
a82a04b3 4422echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
f73dda09
JA
4423echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4424if test $ac_cv_lib_termcap_tgetent = yes; then
bb70624e
JA
4425 bash_cv_termcap_lib=libtermcap
4426else
a82a04b3 4427 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
f73dda09
JA
4428echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4429if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4431else
f73dda09
JA
4432 ac_check_lib_save_LIBS=$LIBS
4433LIBS="-ltinfo $LIBS"
4434cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4435/* confdefs.h. */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h. */
f73dda09 4440
bb70624e 4441/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4442#ifdef __cplusplus
4443extern "C"
4444#endif
bb70624e 4445/* We use char because int might match the return type of a gcc2
f73dda09
JA
4446 builtin and then its argument prototype would still apply. */
4447char tgetent ();
4448int
4449main ()
4450{
4451tgetent ();
4452 ;
4453 return 0;
4454}
4455_ACEOF
4456rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
4457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>conftest.er1
f73dda09 4459 ac_status=$?
a82a04b3
CR
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4464 (exit $ac_status); } &&
a82a04b3
CR
4465 { ac_try='test -z "$ac_c_werror_flag"
4466 || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
a82a04b3 4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4477 (exit $ac_status); }; }; then
4478 ac_cv_lib_tinfo_tgetent=yes
4479else
4480 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
f73dda09
JA
4483ac_cv_lib_tinfo_tgetent=no
4484fi
a82a04b3
CR
4485rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4487LIBS=$ac_check_lib_save_LIBS
4488fi
a82a04b3 4489echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
f73dda09
JA
4490echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4491if test $ac_cv_lib_tinfo_tgetent = yes; then
7117c2d2 4492 bash_cv_termcap_lib=libtinfo
f73dda09 4493else
a82a04b3 4494 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
f73dda09
JA
4495echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4496if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499 ac_check_lib_save_LIBS=$LIBS
4500LIBS="-lcurses $LIBS"
4501cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4502/* confdefs.h. */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h. */
b72432fd 4507
f73dda09
JA
4508/* Override any gcc2 internal prototype to avoid an error. */
4509#ifdef __cplusplus
4510extern "C"
4511#endif
4512/* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4514char tgetent ();
4515int
4516main ()
4517{
4518tgetent ();
4519 ;
4520 return 0;
4521}
4522_ACEOF
4523rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
4524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525 (eval $ac_link) 2>conftest.er1
f73dda09 4526 ac_status=$?
a82a04b3
CR
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4531 (exit $ac_status); } &&
a82a04b3
CR
4532 { ac_try='test -z "$ac_c_werror_flag"
4533 || test ! -s conftest.err'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
a82a04b3
CR
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; } &&
4539 { ac_try='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4544 (exit $ac_status); }; }; then
4545 ac_cv_lib_curses_tgetent=yes
4546else
4547 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4548sed 's/^/| /' conftest.$ac_ext >&5
4549
f73dda09
JA
4550ac_cv_lib_curses_tgetent=no
4551fi
a82a04b3
CR
4552rm -f conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4554LIBS=$ac_check_lib_save_LIBS
4555fi
a82a04b3 4556echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
f73dda09
JA
4557echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4558if test $ac_cv_lib_curses_tgetent = yes; then
bb70624e
JA
4559 bash_cv_termcap_lib=libcurses
4560else
a82a04b3 4561 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
f73dda09
JA
4562echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4563if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4565else
f73dda09 4566 ac_check_lib_save_LIBS=$LIBS
bb70624e 4567LIBS="-lncurses $LIBS"
f73dda09 4568cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4569/* confdefs.h. */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h. */
f73dda09 4574
bb70624e 4575/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4576#ifdef __cplusplus
4577extern "C"
4578#endif
bb70624e 4579/* We use char because int might match the return type of a gcc2
f73dda09
JA
4580 builtin and then its argument prototype would still apply. */
4581char tgetent ();
4582int
4583main ()
4584{
4585tgetent ();
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
4591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
f73dda09 4593 ac_status=$?
a82a04b3
CR
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4598 (exit $ac_status); } &&
a82a04b3
CR
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
a82a04b3 4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4611 (exit $ac_status); }; }; then
4612 ac_cv_lib_ncurses_tgetent=yes
4613else
4614 echo "$as_me: failed program was:" >&5
a82a04b3
CR
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
f73dda09
JA
4617ac_cv_lib_ncurses_tgetent=no
4618fi
a82a04b3
CR
4619rm -f conftest.err conftest.$ac_objext \
4620 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4621LIBS=$ac_check_lib_save_LIBS
4622fi
a82a04b3 4623echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
f73dda09
JA
4624echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4625if test $ac_cv_lib_ncurses_tgetent = yes; then
4626 bash_cv_termcap_lib=libncurses
bb70624e 4627else
f73dda09 4628 bash_cv_termcap_lib=gnutermcap
bb70624e 4629fi
bb70624e 4630
bb70624e
JA
4631fi
4632
4633fi
4634
4635fi
4636
4637fi
4638
d3a24ed2
CR
4639fi
4640
bb70624e 4641if test "X$_bash_needmsg" = "Xyes"; then
a82a04b3 4642echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 4643echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
bb70624e 4644fi
a82a04b3 4645echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
f73dda09 4646echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
bb70624e
JA
4647if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4648LDFLAGS="$LDFLAGS -L./lib/termcap"
4649TERMCAP_LIB="./lib/termcap/libtermcap.a"
4650TERMCAP_DEP="./lib/termcap/libtermcap.a"
4651elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4652TERMCAP_LIB=-ltermcap
4653TERMCAP_DEP=
f73dda09
JA
4654elif test $bash_cv_termcap_lib = libtinfo; then
4655TERMCAP_LIB=-ltinfo
4656TERMCAP_DEP=
bb70624e
JA
4657elif test $bash_cv_termcap_lib = libncurses; then
4658TERMCAP_LIB=-lncurses
4659TERMCAP_DEP=
d3a24ed2
CR
4660elif test $bash_cv_termcap_lib = libc; then
4661TERMCAP_LIB=
4662TERMCAP_DEP=
bb70624e
JA
4663else
4664TERMCAP_LIB=-lcurses
4665TERMCAP_DEP=
4666fi
4667
a82a04b3
CR
4668
4669
4670
4671echo "$as_me:$LINENO: checking version of installed readline library" >&5
f73dda09
JA
4672echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4673
4674# What a pain in the ass this is.
4675
4676# save cpp and ld options
4677_save_CFLAGS="$CFLAGS"
4678_save_LDFLAGS="$LDFLAGS"
4679_save_LIBS="$LIBS"
4680
4681# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4682# allows the caller to do something like $_rl_prefix=$withval if the user
4683# specifies --with-installed-readline=PREFIX as an argument to configure
4684
4685if test -z "$ac_cv_rl_prefix"; then
4686test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4687fi
4688
4689eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4690eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4691
4692LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4693CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4694LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4695
d3a24ed2
CR
4696if test "${ac_cv_rl_version+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699 if test "$cross_compiling" = yes; then
f73dda09
JA
4700 ac_cv_rl_version='4.2'
4701else
4702 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
4703/* confdefs.h. */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h. */
f73dda09
JA
4708
4709#include <stdio.h>
4710#include <readline/readline.h>
4711
4712main()
4713{
4714 FILE *fp;
4715 fp = fopen("conftest.rlv", "w");
4716 if (fp == 0) exit(1);
4717 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4718 fclose(fp);
4719 exit(0);
4720}
4721
4722_ACEOF
4723rm -f conftest$ac_exeext
a82a04b3 4724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
4725 (eval $ac_link) 2>&5
4726 ac_status=$?
a82a04b3 4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
a82a04b3 4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4733 (exit $ac_status); }; }; then
4734 ac_cv_rl_version=`cat conftest.rlv`
4735else
4736 echo "$as_me: program exited with status $ac_status" >&5
4737echo "$as_me: failed program was:" >&5
a82a04b3
CR
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740( exit $ac_status )
f73dda09
JA
4741ac_cv_rl_version='0.0'
4742fi
a82a04b3 4743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 4744fi
d3a24ed2 4745fi
f73dda09 4746
a82a04b3 4747
f73dda09
JA
4748CFLAGS="$_save_CFLAGS"
4749LDFLAGS="$_save_LDFLAGS"
4750LIBS="$_save_LIBS"
4751
4752RL_MAJOR=0
4753RL_MINOR=0
4754
4755# (
4756case "$ac_cv_rl_version" in
47572*|3*|4*|5*|6*|7*|8*|9*)
4758 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
7117c2d2 4759 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
f73dda09
JA
4760 ;;
4761esac
4762
4763# (((
4764case $RL_MAJOR in
4765[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4766[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4767*) _RL_MAJOR=00 ;;
4768esac
4769
4770# (((
4771case $RL_MINOR in
4772[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4773[0-9]) _RL_MINOR=0$RL_MINOR ;;
4774*) _RL_MINOR=00 ;;
4775esac
4776
4777RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4778
4779# Readline versions greater than 4.2 have these defines in readline.h
4780
4781if test $ac_cv_rl_version = '0.0' ; then
a82a04b3 4782 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
f73dda09
JA
4783echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4784elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4785 # set these for use by the caller
4786 RL_PREFIX=$ac_cv_rl_prefix
4787 RL_LIBDIR=$ac_cv_rl_libdir
4788 RL_INCLUDEDIR=$ac_cv_rl_includedir
a82a04b3 4789 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
f73dda09
JA
4790echo "${ECHO_T}$ac_cv_rl_version" >&6
4791else
4792
a82a04b3
CR
4793
4794cat >>confdefs.h <<_ACEOF
f73dda09 4795#define RL_READLINE_VERSION $RL_VERSION
a82a04b3 4796_ACEOF
f73dda09 4797
a82a04b3
CR
4798
4799cat >>confdefs.h <<_ACEOF
f73dda09 4800#define RL_VERSION_MAJOR $RL_MAJOR
a82a04b3 4801_ACEOF
f73dda09 4802
a82a04b3
CR
4803
4804cat >>confdefs.h <<_ACEOF
f73dda09 4805#define RL_VERSION_MINOR $RL_MINOR
a82a04b3
CR
4806_ACEOF
4807
4808
4809
4810
4811
545f34cf
CR
4812
4813# set these for use by the caller
4814RL_PREFIX=$ac_cv_rl_prefix
4815RL_LIBDIR=$ac_cv_rl_libdir
4816RL_INCLUDEDIR=$ac_cv_rl_includedir
4817
a82a04b3 4818echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
f73dda09 4819echo "${ECHO_T}$ac_cv_rl_version" >&6
bb70624e 4820
f73dda09 4821fi
bb70624e 4822
a82a04b3 4823
f73dda09 4824 case "$ac_cv_rl_version" in
d3a24ed2 4825 5*|6*|7*|8*|9*) ;;
f73dda09 4826 *) opt_with_installed_readline=no
a82a04b3 4827 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
f73dda09 4828echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
a82a04b3 4829 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
f73dda09 4830echo "$as_me: WARNING: using private bash version" >&2;}
bb70624e
JA
4831 ;;
4832 esac
bb70624e
JA
4833fi
4834
4835if test $opt_readline = yes; then
a82a04b3 4836 cat >>confdefs.h <<\_ACEOF
bb70624e 4837#define READLINE 1
a82a04b3 4838_ACEOF
bb70624e 4839
f73dda09 4840 if test "$opt_with_installed_readline" != "no" ; then
d3a24ed2
CR
4841 case "$opt_with_installed_readline" in
4842 yes) RL_INCLUDE= ;;
4843 *) case "$RL_INCLUDEDIR" in
4844 /usr/include) ;;
4845 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4846 esac
4847 ;;
f73dda09 4848 esac
bb70624e 4849 READLINE_DEP=
233564d2 4850 READLINE_LIB=-lreadline
bb70624e
JA
4851 else
4852 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4853 READLINE_DEP='$(READLINE_LIBRARY)'
233564d2
CR
4854 # section for OS versions that ship an older version of
4855 # readline as a standard dynamic library and don't allow a
4856 # static version specified as -llibname to override the
4857 # dynamic version
4858 case "${host_os}" in
4859 darwin8*) READLINE_LIB='${READLINE_LIBRARY}' ;;
4860 *) READLINE_LIB=-lreadline ;;
4861 esac
bb70624e
JA
4862 fi
4863else
4864 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4865 READLINE_LIB= READLINE_DEP=
4866fi
4867if test $opt_history = yes || test $opt_bang_history = yes; then
4868 if test $opt_history = yes; then
a82a04b3 4869 cat >>confdefs.h <<\_ACEOF
bb70624e 4870#define HISTORY 1
a82a04b3 4871_ACEOF
bb70624e
JA
4872
4873 fi
4874 if test $opt_bang_history = yes; then
a82a04b3 4875 cat >>confdefs.h <<\_ACEOF
bb70624e 4876#define BANG_HISTORY 1
a82a04b3 4877_ACEOF
b72432fd
JA
4878
4879 fi
f73dda09
JA
4880 if test "$opt_with_installed_readline" != "no"; then
4881 HIST_LIBDIR=$RL_LIBDIR
b72432fd 4882 HISTORY_DEP=
233564d2 4883 HISTORY_LIB=-lhistory
d3a24ed2
CR
4884 case "$opt_with_installed_readline" in
4885 yes) RL_INCLUDE= ;;
4886 *) case "$RL_INCLUDEDIR" in
4887 /usr/include) ;;
4888 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4889 esac
4890 ;;
f73dda09 4891 esac
b72432fd
JA
4892 else
4893 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4894 HISTORY_DEP='$(HISTORY_LIBRARY)'
233564d2
CR
4895 # section for OS versions that ship an older version of
4896 # readline as a standard dynamic library and don't allow a
4897 # static version specified as -llibname to override the
4898 # dynamic version
4899 case "${host_os}" in
4900 darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4901 *) HISTORY_LIB=-lhistory ;;
4902 esac
b72432fd
JA
4903 fi
4904else
4905 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4906 HISTORY_LIB= HISTORY_DEP=
4907fi
4908
a82a04b3
CR
4909
4910
4911
4912
4913
4914
4915
4916
4917
ccc6cda3
JA
4918# Find a good install program. We prefer a C program (faster),
4919# so one script is as good as another. But avoid the broken or
4920# incompatible versions:
4921# SysV /etc/install, /usr/sbin/install
4922# SunOS /usr/etc/install
4923# IRIX /sbin/install
4924# AIX /bin/install
f73dda09 4925# AmigaOS /C/install, which installs bootblocks on floppy discs
bb70624e 4926# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccc6cda3
JA
4927# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a82a04b3 4929# OS/2's system install, which has a completely different semantic
ccc6cda3 4930# ./install, which can be erroneously created by make from ./install.sh.
a82a04b3
CR
4931echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ccc6cda3 4933if test -z "$INSTALL"; then
f73dda09
JA
4934if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4936else
a82a04b3
CR
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 # Account for people who put trailing slashes in PATH elements.
4943case $as_dir/ in
4944 ./ | .// | /cC/* | \
4945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4947 /usr/ucb/* ) ;;
4948 *)
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4951 # by default.
4952 for ac_prog in ginstall scoinst install; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e624d0f7 4955 if test $ac_prog = install &&
a82a04b3 4956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e624d0f7
CR
4957 # AIX install. It has an incompatible calling convention.
4958 :
4959 elif test $ac_prog = install &&
a82a04b3 4960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e624d0f7
CR
4961 # program-specific install script used by HP pwplus--don't use.
4962 :
4963 else
a82a04b3
CR
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
e624d0f7
CR
4966 fi
4967 fi
ccc6cda3 4968 done
a82a04b3
CR
4969 done
4970 ;;
4971esac
4972done
4973
ccc6cda3
JA
4974
4975fi
4976 if test "${ac_cv_path_install+set}" = set; then
f73dda09 4977 INSTALL=$ac_cv_path_install
ccc6cda3
JA
4978 else
4979 # As a last resort, use the slow shell script. We don't cache a
4980 # path for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the path is relative.
f73dda09 4983 INSTALL=$ac_install_sh
ccc6cda3
JA
4984 fi
4985fi
a82a04b3 4986echo "$as_me:$LINENO: result: $INSTALL" >&5
f73dda09 4987echo "${ECHO_T}$INSTALL" >&6
ccc6cda3
JA
4988
4989# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990# It thinks the first close brace ends the variable substitution.
4991test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4992
f73dda09 4993test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
bb70624e 4994
ccc6cda3
JA
4995test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4996
4997# Extract the first word of "ar", so it can be a program name with args.
4998set dummy ar; ac_word=$2
a82a04b3 4999echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001if test "${ac_cv_prog_AR+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
5003else
5004 if test -n "$AR"; then
5005 ac_cv_prog_AR="$AR" # Let the user override the test.
5006else
a82a04b3
CR
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_AR=""
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018done
f73dda09
JA
5019done
5020
5021 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
ccc6cda3
JA
5022fi
5023fi
f73dda09 5024AR=$ac_cv_prog_AR
ccc6cda3 5025if test -n "$AR"; then
a82a04b3 5026 echo "$as_me:$LINENO: result: $AR" >&5
f73dda09 5027echo "${ECHO_T}$AR" >&6
ccc6cda3 5028else
a82a04b3 5029 echo "$as_me:$LINENO: result: no" >&5
f73dda09 5030echo "${ECHO_T}no" >&6
ccc6cda3
JA
5031fi
5032
b72432fd 5033test -n "$ARFLAGS" || ARFLAGS="cr"
f73dda09
JA
5034if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5036set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a82a04b3 5037echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039if test "${ac_cv_prog_RANLIB+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
5041else
5042 if test -n "$RANLIB"; then
5043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5044else
a82a04b3
CR
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056done
f73dda09
JA
5057done
5058
ccc6cda3
JA
5059fi
5060fi
f73dda09 5061RANLIB=$ac_cv_prog_RANLIB
ccc6cda3 5062if test -n "$RANLIB"; then
a82a04b3 5063 echo "$as_me:$LINENO: result: $RANLIB" >&5
f73dda09
JA
5064echo "${ECHO_T}$RANLIB" >&6
5065else
a82a04b3 5066 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
5067echo "${ECHO_T}no" >&6
5068fi
5069
5070fi
5071if test -z "$ac_cv_prog_RANLIB"; then
5072 ac_ct_RANLIB=$RANLIB
5073 # Extract the first word of "ranlib", so it can be a program name with args.
5074set dummy ranlib; ac_word=$2
a82a04b3 5075echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080 if test -n "$ac_ct_RANLIB"; then
5081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5082else
a82a04b3
CR
5083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH
5085do
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_prog_ac_ct_RANLIB="ranlib"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5093 fi
5094done
f73dda09
JA
5095done
5096
5097 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5098fi
5099fi
5100ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5101if test -n "$ac_ct_RANLIB"; then
a82a04b3 5102 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
f73dda09 5103echo "${ECHO_T}$ac_ct_RANLIB" >&6
ccc6cda3 5104else
a82a04b3 5105 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
5106echo "${ECHO_T}no" >&6
5107fi
5108
5109 RANLIB=$ac_ct_RANLIB
5110else
5111 RANLIB="$ac_cv_prog_RANLIB"
ccc6cda3
JA
5112fi
5113
5114for ac_prog in 'bison -y' byacc
5115do
f73dda09 5116 # Extract the first word of "$ac_prog", so it can be a program name with args.
ccc6cda3 5117set dummy $ac_prog; ac_word=$2
a82a04b3 5118echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120if test "${ac_cv_prog_YACC+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
5122else
5123 if test -n "$YACC"; then
5124 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5125else
a82a04b3
CR
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_YACC="$ac_prog"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137done
f73dda09
JA
5138done
5139
ccc6cda3
JA
5140fi
5141fi
f73dda09 5142YACC=$ac_cv_prog_YACC
ccc6cda3 5143if test -n "$YACC"; then
a82a04b3 5144 echo "$as_me:$LINENO: result: $YACC" >&5
f73dda09 5145echo "${ECHO_T}$YACC" >&6
ccc6cda3 5146else
a82a04b3 5147 echo "$as_me:$LINENO: result: no" >&5
f73dda09 5148echo "${ECHO_T}no" >&6
ccc6cda3
JA
5149fi
5150
f73dda09 5151 test -n "$YACC" && break
ccc6cda3
JA
5152done
5153test -n "$YACC" || YACC="yacc"
5154
a82a04b3
CR
5155echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5156echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5157set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
f73dda09
JA
5158if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5160else
a82a04b3 5161 cat >conftest.make <<\_ACEOF
ccc6cda3 5162all:
a82a04b3
CR
5163 @echo 'ac_maketemp="$(MAKE)"'
5164_ACEOF
ccc6cda3 5165# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f73dda09 5166eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
ccc6cda3
JA
5167if test -n "$ac_maketemp"; then
5168 eval ac_cv_prog_make_${ac_make}_set=yes
5169else
5170 eval ac_cv_prog_make_${ac_make}_set=no
5171fi
f73dda09 5172rm -f conftest.make
ccc6cda3
JA
5173fi
5174if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a82a04b3 5175 echo "$as_me:$LINENO: result: yes" >&5
f73dda09 5176echo "${ECHO_T}yes" >&6
ccc6cda3
JA
5177 SET_MAKE=
5178else
a82a04b3 5179 echo "$as_me:$LINENO: result: no" >&5
f73dda09 5180echo "${ECHO_T}no" >&6
ccc6cda3
JA
5181 SET_MAKE="MAKE=${MAKE-make}"
5182fi
5183
a82a04b3 5184
b72432fd 5185case "$host_os" in
bb70624e 5186opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
b72432fd
JA
5187*) MAKE_SHELL=/bin/sh ;;
5188esac
5189
a82a04b3 5190
10590446
CR
5191if test x$SIZE = x; then
5192 if test x$ac_tool_prefix = x; then
5193 SIZE=size
5194 else
5195 SIZE=${ac_tool_prefix}size
5196 save_IFS=$IFS ; IFS=:
5197 size_found=0
5198 for dir in $PATH; do
5199 if test -x $dir/$SIZE ; then
5200 size_found=1
5201 break
5202 fi
5203 done
5204 if test $size_found -eq 0; then
233564d2 5205 SIZE=:
10590446
CR
5206 fi
5207 IFS=$save_IFS
5208 fi
5209fi
5210
e624d0f7 5211
a82a04b3
CR
5212cat >>confdefs.h <<\_ACEOF
5213#define _GNU_SOURCE 1
f73dda09 5214_ACEOF
ccc6cda3 5215
e624d0f7 5216
a82a04b3 5217echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
f73dda09
JA
5218echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5219if test "${ac_cv_c_const+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5221else
f73dda09 5222 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5223/* confdefs.h. */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h. */
ccc6cda3 5228
f73dda09
JA
5229int
5230main ()
5231{
5232/* FIXME: Include the comments suggested by Paul. */
5233#ifndef __cplusplus
5234 /* Ultrix mips cc rejects this. */
5235 typedef int charset[2];
5236 const charset x;
5237 /* SunOS 4.1.1 cc rejects this. */
5238 char const *const *ccp;
5239 char **p;
5240 /* NEC SVR4.0.2 mips cc rejects this. */
5241 struct point {int x, y;};
5242 static struct point const zero = {0,0};
5243 /* AIX XL C 1.02.0.0 rejects this.
5244 It does not let you subtract one const X* pointer from another in
5245 an arm of an if-expression whose if-part is not a constant
5246 expression */
5247 const char *g = "string";
5248 ccp = &g + (g ? g-g : 0);
5249 /* HPUX 7.0 cc rejects these. */
5250 ++ccp;
5251 p = (char**) ccp;
5252 ccp = (char const *const *) p;
5253 { /* SCO 3.2v4 cc rejects this. */
5254 char *t;
5255 char const *s = 0 ? (char *) 0 : (char const *) 0;
5256
5257 *t++ = 0;
5258 }
5259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5260 int x[] = {25, 17};
5261 const int *foo = &x[0];
5262 ++foo;
5263 }
5264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5265 typedef const int *iptr;
5266 iptr p = 0;
5267 ++p;
5268 }
5269 { /* AIX XL C 1.02.0.0 rejects this saying
5270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5271 struct s { int j; const int *ap[3]; };
5272 struct s *b; b->j = 5;
5273 }
5274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5275 const int foo = 10;
5276 }
ccc6cda3
JA
5277#endif
5278
f73dda09
JA
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283rm -f conftest.$ac_objext
a82a04b3
CR
5284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
f73dda09 5286 ac_status=$?
a82a04b3
CR
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5291 (exit $ac_status); } &&
a82a04b3
CR
5292 { ac_try='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
a82a04b3 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5304 (exit $ac_status); }; }; then
5305 ac_cv_c_const=yes
5306else
5307 echo "$as_me: failed program was:" >&5
a82a04b3
CR
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
f73dda09
JA
5310ac_cv_c_const=no
5311fi
a82a04b3 5312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 5313fi
a82a04b3 5314echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
f73dda09
JA
5315echo "${ECHO_T}$ac_cv_c_const" >&6
5316if test $ac_cv_c_const = no; then
5317
a82a04b3 5318cat >>confdefs.h <<\_ACEOF
f73dda09 5319#define const
a82a04b3 5320_ACEOF
ccc6cda3
JA
5321
5322fi
5323
a82a04b3 5324echo "$as_me:$LINENO: checking for inline" >&5
f73dda09
JA
5325echo $ECHO_N "checking for inline... $ECHO_C" >&6
5326if test "${ac_cv_c_inline+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5328else
f73dda09
JA
5329 ac_cv_c_inline=no
5330for ac_kw in inline __inline__ __inline; do
5331 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
f73dda09 5337#ifndef __cplusplus
a82a04b3
CR
5338typedef int foo_t;
5339static $ac_kw foo_t static_foo () {return 0; }
5340$ac_kw foo_t foo () {return 0; }
ccc6cda3
JA
5341#endif
5342
f73dda09
JA
5343_ACEOF
5344rm -f conftest.$ac_objext
a82a04b3
CR
5345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>conftest.er1
f73dda09 5347 ac_status=$?
a82a04b3
CR
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5352 (exit $ac_status); } &&
a82a04b3
CR
5353 { ac_try='test -z "$ac_c_werror_flag"
5354 || test ! -s conftest.err'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
a82a04b3 5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5365 (exit $ac_status); }; }; then
5366 ac_cv_c_inline=$ac_kw; break
5367else
5368 echo "$as_me: failed program was:" >&5
a82a04b3
CR
5369sed 's/^/| /' conftest.$ac_ext >&5
5370
f73dda09 5371fi
a82a04b3 5372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 5373done
ccc6cda3
JA
5374
5375fi
a82a04b3 5376echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
f73dda09 5377echo "${ECHO_T}$ac_cv_c_inline" >&6
a82a04b3
CR
5378
5379
f73dda09
JA
5380case $ac_cv_c_inline in
5381 inline | yes) ;;
a82a04b3
CR
5382 *)
5383 case $ac_cv_c_inline in
5384 no) ac_val=;;
5385 *) ac_val=$ac_cv_c_inline;;
5386 esac
5387 cat >>confdefs.h <<_ACEOF
5388#ifndef __cplusplus
5389#define inline $ac_val
5390#endif
5391_ACEOF
5392 ;;
f73dda09 5393esac
ccc6cda3 5394
a82a04b3 5395echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
f73dda09
JA
5396echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5397if test "${ac_cv_c_bigendian+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5399else
a82a04b3 5400 # See if sys/param.h defines the BYTE_ORDER macro.
f73dda09 5401cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5402/* confdefs.h. */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h. */
f73dda09
JA
5407#include <sys/types.h>
5408#include <sys/param.h>
ccc6cda3 5409
f73dda09
JA
5410int
5411main ()
5412{
5413#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5414 bogus endian macros
ccc6cda3
JA
5415#endif
5416
f73dda09
JA
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421rm -f conftest.$ac_objext
a82a04b3
CR
5422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
f73dda09 5424 ac_status=$?
a82a04b3
CR
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5429 (exit $ac_status); } &&
a82a04b3
CR
5430 { ac_try='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
a82a04b3
CR
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5442 (exit $ac_status); }; }; then
5443 # It does; now see whether it defined to BIG_ENDIAN or not.
5444cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5445/* confdefs.h. */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h. */
f73dda09
JA
5450#include <sys/types.h>
5451#include <sys/param.h>
ccc6cda3 5452
f73dda09
JA
5453int
5454main ()
5455{
5456#if BYTE_ORDER != BIG_ENDIAN
5457 not big endian
5458#endif
ccc6cda3 5459
f73dda09
JA
5460 ;
5461 return 0;
5462}
5463_ACEOF
5464rm -f conftest.$ac_objext
a82a04b3
CR
5465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
f73dda09 5467 ac_status=$?
a82a04b3
CR
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5472 (exit $ac_status); } &&
a82a04b3
CR
5473 { ac_try='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
a82a04b3 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5485 (exit $ac_status); }; }; then
5486 ac_cv_c_bigendian=yes
ccc6cda3 5487else
f73dda09 5488 echo "$as_me: failed program was:" >&5
a82a04b3
CR
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
f73dda09 5491ac_cv_c_bigendian=no
ccc6cda3 5492fi
a82a04b3 5493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5494else
f73dda09 5495 echo "$as_me: failed program was:" >&5
a82a04b3
CR
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498# It does not; compile a test program.
e624d0f7 5499if test "$cross_compiling" = yes; then
a82a04b3
CR
5500 # try to guess the endianness by grepping values into an object file
5501 ac_cv_c_bigendian=unknown
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5509short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5510void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5511short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5512short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5513void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5514int
5515main ()
5516{
5517 _ascii (); _ebcdic ();
5518 ;
5519 return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5545 ac_cv_c_bigendian=yes
5546fi
5547if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5548 if test "$ac_cv_c_bigendian" = unknown; then
5549 ac_cv_c_bigendian=no
5550 else
5551 # finding both strings is unlikely to happen, but who knows?
5552 ac_cv_c_bigendian=unknown
5553 fi
5554fi
5555else
5556 echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
5559fi
5560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5561else
f73dda09 5562 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
f73dda09
JA
5568int
5569main ()
ccc6cda3 5570{
f73dda09
JA
5571 /* Are we little or big endian? From Harbison&Steele. */
5572 union
5573 {
5574 long l;
5575 char c[sizeof (long)];
5576 } u;
5577 u.l = 1;
5578 exit (u.c[sizeof (long) - 1] == 1);
ccc6cda3 5579}
f73dda09
JA
5580_ACEOF
5581rm -f conftest$ac_exeext
a82a04b3 5582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
5583 (eval $ac_link) 2>&5
5584 ac_status=$?
a82a04b3 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
a82a04b3 5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5591 (exit $ac_status); }; }; then
5592 ac_cv_c_bigendian=no
ccc6cda3 5593else
f73dda09
JA
5594 echo "$as_me: program exited with status $ac_status" >&5
5595echo "$as_me: failed program was:" >&5
a82a04b3
CR
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
5598( exit $ac_status )
f73dda09
JA
5599ac_cv_c_bigendian=yes
5600fi
a82a04b3 5601rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5602fi
ccc6cda3 5603fi
a82a04b3 5604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5605fi
a82a04b3 5606echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
f73dda09 5607echo "${ECHO_T}$ac_cv_c_bigendian" >&6
a82a04b3
CR
5608case $ac_cv_c_bigendian in
5609 yes)
ccc6cda3 5610
a82a04b3 5611cat >>confdefs.h <<\_ACEOF
f73dda09 5612#define WORDS_BIGENDIAN 1
a82a04b3
CR
5613_ACEOF
5614 ;;
5615 no)
5616 ;;
5617 *)
5618 { { echo "$as_me:$LINENO: error: unknown endianness
5619presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5620echo "$as_me: error: unknown endianness
5621presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5622 { (exit 1); exit 1; }; } ;;
5623esac
ccc6cda3 5624
a82a04b3 5625echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
f73dda09
JA
5626echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5627if test "${ac_cv_c_stringize+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5629else
f73dda09 5630 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5631/* confdefs.h. */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h. */
f73dda09 5636#define x(y) #y
ccc6cda3 5637
f73dda09
JA
5638char *s = x(teststring);
5639_ACEOF
5640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 5641 $EGREP "#teststring" >/dev/null 2>&1; then
f73dda09 5642 ac_cv_c_stringize=no
ccc6cda3 5643else
f73dda09 5644 ac_cv_c_stringize=yes
ccc6cda3 5645fi
f73dda09 5646rm -f conftest*
ccc6cda3
JA
5647
5648fi
a82a04b3 5649echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
f73dda09
JA
5650echo "${ECHO_T}$ac_cv_c_stringize" >&6
5651if test $ac_cv_c_stringize = yes; then
ccc6cda3 5652
a82a04b3 5653cat >>confdefs.h <<\_ACEOF
f73dda09 5654#define HAVE_STRINGIZE 1
a82a04b3 5655_ACEOF
ccc6cda3
JA
5656
5657fi
5658
a82a04b3
CR
5659echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5660echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
f73dda09
JA
5661if test "${ac_cv_c_long_double+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5663else
f73dda09 5664 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670#include <float.h>
5671 long double foo = 0.0;
f73dda09
JA
5672int
5673main ()
5674{
a82a04b3
CR
5675static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5676 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5677 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5678test_array [0] = 0
5679
5680 ;
5681 return 0;
ccc6cda3 5682}
f73dda09 5683_ACEOF
a82a04b3
CR
5684rm -f conftest.$ac_objext
5685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
f73dda09 5687 ac_status=$?
a82a04b3
CR
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
a82a04b3 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5705 (exit $ac_status); }; }; then
5706 ac_cv_c_long_double=yes
ccc6cda3 5707else
a82a04b3
CR
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
f73dda09
JA
5711ac_cv_c_long_double=no
5712fi
a82a04b3 5713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e624d0f7 5714fi
a82a04b3 5715echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
f73dda09
JA
5716echo "${ECHO_T}$ac_cv_c_long_double" >&6
5717if test $ac_cv_c_long_double = yes; then
ccc6cda3 5718
a82a04b3 5719cat >>confdefs.h <<\_ACEOF
f73dda09 5720#define HAVE_LONG_DOUBLE 1
a82a04b3 5721_ACEOF
ccc6cda3
JA
5722
5723fi
5724
a82a04b3 5725echo "$as_me:$LINENO: checking for function prototypes" >&5
f73dda09
JA
5726echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5727if test "$ac_cv_prog_cc_stdc" != no; then
a82a04b3 5728 echo "$as_me:$LINENO: result: yes" >&5
f73dda09 5729echo "${ECHO_T}yes" >&6
ccc6cda3 5730
a82a04b3 5731cat >>confdefs.h <<\_ACEOF
f73dda09 5732#define PROTOTYPES 1
e624d0f7 5733_ACEOF
ccc6cda3 5734
545f34cf 5735
a82a04b3
CR
5736cat >>confdefs.h <<\_ACEOF
5737#define __PROTOTYPES 1
e624d0f7 5738_ACEOF
e624d0f7 5739
e624d0f7 5740else
a82a04b3
CR
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
e624d0f7 5743fi
e624d0f7 5744
e624d0f7 5745
a82a04b3 5746echo "$as_me:$LINENO: checking whether char is unsigned" >&5
545f34cf
CR
5747echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5748if test "${ac_cv_c_char_unsigned+set}" = set; then
f73dda09 5749 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5750else
f73dda09 5751 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
5752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h. */
545f34cf
CR
5757$ac_includes_default
5758int
5759main ()
5760{
a82a04b3
CR
5761static int test_array [1 - 2 * !(((char) -1) < 0)];
5762test_array [0] = 0
5763
545f34cf
CR
5764 ;
5765 return 0;
5766}
f73dda09 5767_ACEOF
545f34cf 5768rm -f conftest.$ac_objext
a82a04b3
CR
5769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>conftest.er1
f73dda09 5771 ac_status=$?
a82a04b3
CR
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf 5776 (exit $ac_status); } &&
a82a04b3
CR
5777 { ac_try='test -z "$ac_c_werror_flag"
5778 || test ! -s conftest.err'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
545f34cf
CR
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
a82a04b3
CR
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf
CR
5789 (exit $ac_status); }; }; then
5790 ac_cv_c_char_unsigned=no
f73dda09
JA
5791else
5792 echo "$as_me: failed program was:" >&5
a82a04b3
CR
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5e13499c
CR
5795ac_cv_c_char_unsigned=yes
5796fi
a82a04b3 5797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 5798fi
a82a04b3 5799echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5e13499c
CR
5800echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5801if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
a82a04b3 5802 cat >>confdefs.h <<\_ACEOF
5e13499c 5803#define __CHAR_UNSIGNED__ 1
a82a04b3 5804_ACEOF
5e13499c
CR
5805
5806fi
5807
a82a04b3
CR
5808
5809
5e13499c
CR
5810 MKINSTALLDIRS=
5811 if test -n "$ac_aux_dir"; then
5812 case "$ac_aux_dir" in
5813 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5814 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5815 esac
5816 fi
5817 if test -z "$MKINSTALLDIRS"; then
5818 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5819 fi
5820
a82a04b3
CR
5821
5822
5823 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5e13499c
CR
5824echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5825 # Check whether --enable-nls or --disable-nls was given.
5826if test "${enable_nls+set}" = set; then
5827 enableval="$enable_nls"
5828 USE_NLS=$enableval
5829else
5830 USE_NLS=yes
5831fi;
a82a04b3 5832 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5e13499c
CR
5833echo "${ECHO_T}$USE_NLS" >&6
5834
a82a04b3
CR
5835
5836
5837
5838
5839
5e13499c
CR
5840# Prepare PATH_SEPARATOR.
5841# The user is always right.
5842if test "${PATH_SEPARATOR+set}" != set; then
5843 echo "#! /bin/sh" >conf$$.sh
5844 echo "exit 0" >>conf$$.sh
5845 chmod +x conf$$.sh
5846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5847 PATH_SEPARATOR=';'
5848 else
5849 PATH_SEPARATOR=:
5850 fi
5851 rm -f conf$$.sh
5852fi
5853
5854# Find out how to test for executable files. Don't use a zero-byte file,
5855# as systems may use methods other than mode bits to determine executability.
5856cat >conf$$.file <<_ASEOF
5857#! /bin/sh
5858exit 0
5859_ASEOF
5860chmod +x conf$$.file
5861if test -x conf$$.file >/dev/null 2>&1; then
5862 ac_executable_p="test -x"
5863else
5864 ac_executable_p="test -f"
5865fi
5866rm -f conf$$.file
5867
5868# Extract the first word of "msgfmt", so it can be a program name with args.
5869set dummy msgfmt; ac_word=$2
a82a04b3 5870echo "$as_me:$LINENO: checking for $ac_word" >&5
5e13499c
CR
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5872if test "${ac_cv_path_MSGFMT+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875 case "$MSGFMT" in
5876 [\\/]* | ?:[\\/]*)
5877 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5878 ;;
5879 *)
5880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5881 for ac_dir in $PATH; do
5882 IFS="$ac_save_IFS"
5883 test -z "$ac_dir" && ac_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5886 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5887 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5888 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5889 break 2
5890 fi
5891 fi
5892 done
5893 done
5894 IFS="$ac_save_IFS"
5895 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5896 ;;
5897esac
5898fi
5899MSGFMT="$ac_cv_path_MSGFMT"
5900if test "$MSGFMT" != ":"; then
a82a04b3 5901 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5e13499c
CR
5902echo "${ECHO_T}$MSGFMT" >&6
5903else
a82a04b3 5904 echo "$as_me:$LINENO: result: no" >&5
5e13499c
CR
5905echo "${ECHO_T}no" >&6
5906fi
5907
5908 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5909set dummy gmsgfmt; ac_word=$2
a82a04b3 5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5e13499c
CR
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_path_GMSGFMT+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915 case $GMSGFMT in
5916 [\\/]* | ?:[\\/]*)
5917 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5918 ;;
5919 *)
a82a04b3
CR
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5e13499c
CR
5932done
5933
5934 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5935 ;;
5936esac
5937fi
5938GMSGFMT=$ac_cv_path_GMSGFMT
5939
5940if test -n "$GMSGFMT"; then
a82a04b3 5941 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5e13499c
CR
5942echo "${ECHO_T}$GMSGFMT" >&6
5943else
a82a04b3 5944 echo "$as_me:$LINENO: result: no" >&5
5e13499c
CR
5945echo "${ECHO_T}no" >&6
5946fi
5947
a82a04b3
CR
5948
5949
5e13499c
CR
5950# Prepare PATH_SEPARATOR.
5951# The user is always right.
5952if test "${PATH_SEPARATOR+set}" != set; then
5953 echo "#! /bin/sh" >conf$$.sh
5954 echo "exit 0" >>conf$$.sh
5955 chmod +x conf$$.sh
5956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5957 PATH_SEPARATOR=';'
5958 else
5959 PATH_SEPARATOR=:
5960 fi
5961 rm -f conf$$.sh
5962fi
5963
5964# Find out how to test for executable files. Don't use a zero-byte file,
5965# as systems may use methods other than mode bits to determine executability.
5966cat >conf$$.file <<_ASEOF
5967#! /bin/sh
5968exit 0
5969_ASEOF
5970chmod +x conf$$.file
5971if test -x conf$$.file >/dev/null 2>&1; then
5972 ac_executable_p="test -x"
5973else
5974 ac_executable_p="test -f"
5975fi
5976rm -f conf$$.file
5977
5978# Extract the first word of "xgettext", so it can be a program name with args.
5979set dummy xgettext; ac_word=$2
a82a04b3 5980echo "$as_me:$LINENO: checking for $ac_word" >&5
5e13499c
CR
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982if test "${ac_cv_path_XGETTEXT+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 case "$XGETTEXT" in
5986 [\\/]* | ?:[\\/]*)
5987 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5988 ;;
5989 *)
5990 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5991 for ac_dir in $PATH; do
5992 IFS="$ac_save_IFS"
5993 test -z "$ac_dir" && ac_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5996 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5997 (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
5998 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5999 break 2
6000 fi
6001 fi
6002 done
6003 done
6004 IFS="$ac_save_IFS"
6005 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6006 ;;
6007esac
6008fi
6009XGETTEXT="$ac_cv_path_XGETTEXT"
6010if test "$XGETTEXT" != ":"; then
a82a04b3 6011 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5e13499c
CR
6012echo "${ECHO_T}$XGETTEXT" >&6
6013else
a82a04b3 6014 echo "$as_me:$LINENO: result: no" >&5
5e13499c
CR
6015echo "${ECHO_T}no" >&6
6016fi
6017
6018 rm -f messages.po
6019
a82a04b3 6020
5e13499c
CR
6021# Prepare PATH_SEPARATOR.
6022# The user is always right.
6023if test "${PATH_SEPARATOR+set}" != set; then
6024 echo "#! /bin/sh" >conf$$.sh
6025 echo "exit 0" >>conf$$.sh
6026 chmod +x conf$$.sh
6027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6028 PATH_SEPARATOR=';'
6029 else
6030 PATH_SEPARATOR=:
6031 fi
6032 rm -f conf$$.sh
6033fi
6034
6035# Find out how to test for executable files. Don't use a zero-byte file,
6036# as systems may use methods other than mode bits to determine executability.
6037cat >conf$$.file <<_ASEOF
6038#! /bin/sh
6039exit 0
6040_ASEOF
6041chmod +x conf$$.file
6042if test -x conf$$.file >/dev/null 2>&1; then
6043 ac_executable_p="test -x"
6044else
6045 ac_executable_p="test -f"
6046fi
6047rm -f conf$$.file
6048
6049# Extract the first word of "msgmerge", so it can be a program name with args.
6050set dummy msgmerge; ac_word=$2
a82a04b3 6051echo "$as_me:$LINENO: checking for $ac_word" >&5
5e13499c
CR
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053if test "${ac_cv_path_MSGMERGE+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 case "$MSGMERGE" in
6057 [\\/]* | ?:[\\/]*)
6058 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6059 ;;
6060 *)
6061 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6062 for ac_dir in $PATH; do
6063 IFS="$ac_save_IFS"
6064 test -z "$ac_dir" && ac_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6067 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6068 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6069 break 2
6070 fi
6071 fi
6072 done
6073 done
6074 IFS="$ac_save_IFS"
6075 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6076 ;;
6077esac
6078fi
6079MSGMERGE="$ac_cv_path_MSGMERGE"
6080if test "$MSGMERGE" != ":"; then
a82a04b3 6081 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5e13499c
CR
6082echo "${ECHO_T}$MSGMERGE" >&6
6083else
a82a04b3 6084 echo "$as_me:$LINENO: result: no" >&5
5e13499c
CR
6085echo "${ECHO_T}no" >&6
6086fi
6087
a82a04b3 6088
5e13499c
CR
6089 if test "$GMSGFMT" != ":"; then
6090 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6091 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6092 : ;
6093 else
6094 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
a82a04b3 6095 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5e13499c
CR
6096echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6097 GMSGFMT=":"
6098 fi
6099 fi
6100
6101 if test "$XGETTEXT" != ":"; then
6102 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6103 (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
6104 : ;
6105 else
a82a04b3 6106 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5e13499c
CR
6107echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6108 XGETTEXT=":"
6109 fi
6110 rm -f messages.po
6111 fi
6112
a82a04b3
CR
6113 ac_config_commands="$ac_config_commands default-1"
6114
5e13499c 6115
a82a04b3 6116echo "$as_me:$LINENO: checking for off_t" >&5
5e13499c
CR
6117echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6118if test "${ac_cv_type_off_t+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
5e13499c
CR
6127$ac_includes_default
6128int
6129main ()
6130{
6131if ((off_t *) 0)
6132 return 0;
6133if (sizeof (off_t))
6134 return 0;
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139rm -f conftest.$ac_objext
a82a04b3
CR
6140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
5e13499c 6142 ac_status=$?
a82a04b3
CR
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 6147 (exit $ac_status); } &&
a82a04b3
CR
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
a82a04b3 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6160 (exit $ac_status); }; }; then
6161 ac_cv_type_off_t=yes
6162else
6163 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
5e13499c
CR
6166ac_cv_type_off_t=no
6167fi
a82a04b3 6168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 6169fi
a82a04b3 6170echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5e13499c
CR
6171echo "${ECHO_T}$ac_cv_type_off_t" >&6
6172if test $ac_cv_type_off_t = yes; then
6173 :
6174else
6175
a82a04b3 6176cat >>confdefs.h <<_ACEOF
5e13499c 6177#define off_t long
a82a04b3 6178_ACEOF
5e13499c
CR
6179
6180fi
6181
a82a04b3 6182echo "$as_me:$LINENO: checking for size_t" >&5
5e13499c
CR
6183echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6184if test "${ac_cv_type_size_t+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
5e13499c
CR
6193$ac_includes_default
6194int
6195main ()
6196{
6197if ((size_t *) 0)
6198 return 0;
6199if (sizeof (size_t))
6200 return 0;
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205rm -f conftest.$ac_objext
a82a04b3
CR
6206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
f73dda09 6208 ac_status=$?
a82a04b3
CR
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6213 (exit $ac_status); } &&
a82a04b3
CR
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
a82a04b3 6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6226 (exit $ac_status); }; }; then
6227 ac_cv_type_size_t=yes
6228else
6229 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
5e13499c
CR
6232ac_cv_type_size_t=no
6233fi
a82a04b3 6234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 6235fi
a82a04b3 6236echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5e13499c
CR
6237echo "${ECHO_T}$ac_cv_type_size_t" >&6
6238if test $ac_cv_type_size_t = yes; then
6239 :
6240else
6241
a82a04b3 6242cat >>confdefs.h <<_ACEOF
5e13499c 6243#define size_t unsigned
a82a04b3 6244_ACEOF
5e13499c
CR
6245
6246fi
6247
6248# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6249# for constant arguments. Useless!
a82a04b3 6250echo "$as_me:$LINENO: checking for working alloca.h" >&5
5e13499c
CR
6251echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6252if test "${ac_cv_working_alloca_h+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6256/* confdefs.h. */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h. */
5e13499c
CR
6261#include <alloca.h>
6262int
6263main ()
6264{
6265char *p = (char *) alloca (2 * sizeof (int));
6266 ;
6267 return 0;
6268}
6269_ACEOF
6270rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
6271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>conftest.er1
5e13499c 6273 ac_status=$?
a82a04b3
CR
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 6278 (exit $ac_status); } &&
a82a04b3
CR
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest$ac_exeext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
a82a04b3 6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6291 (exit $ac_status); }; }; then
6292 ac_cv_working_alloca_h=yes
6293else
6294 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
5e13499c
CR
6297ac_cv_working_alloca_h=no
6298fi
a82a04b3
CR
6299rm -f conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
5e13499c 6301fi
a82a04b3 6302echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5e13499c
CR
6303echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6304if test $ac_cv_working_alloca_h = yes; then
6305
a82a04b3 6306cat >>confdefs.h <<\_ACEOF
5e13499c 6307#define HAVE_ALLOCA_H 1
a82a04b3 6308_ACEOF
5e13499c
CR
6309
6310fi
6311
a82a04b3 6312echo "$as_me:$LINENO: checking for alloca" >&5
5e13499c
CR
6313echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6314if test "${ac_cv_func_alloca_works+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6318/* confdefs.h. */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */
5e13499c
CR
6323#ifdef __GNUC__
6324# define alloca __builtin_alloca
6325#else
6326# ifdef _MSC_VER
6327# include <malloc.h>
6328# define alloca _alloca
6329# else
6330# if HAVE_ALLOCA_H
6331# include <alloca.h>
6332# else
6333# ifdef _AIX
6334 #pragma alloca
6335# else
6336# ifndef alloca /* predefined by HP cc +Olibcalls */
6337char *alloca ();
6338# endif
6339# endif
6340# endif
6341# endif
6342#endif
6343
6344int
6345main ()
6346{
6347char *p = (char *) alloca (1);
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
6353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>conftest.er1
5e13499c 6355 ac_status=$?
a82a04b3
CR
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 6360 (exit $ac_status); } &&
a82a04b3
CR
6361 { ac_try='test -z "$ac_c_werror_flag"
6362 || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest$ac_exeext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
a82a04b3 6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6373 (exit $ac_status); }; }; then
6374 ac_cv_func_alloca_works=yes
6375else
6376 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
5e13499c
CR
6379ac_cv_func_alloca_works=no
6380fi
a82a04b3
CR
6381rm -f conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
5e13499c 6383fi
a82a04b3 6384echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5e13499c
CR
6385echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6386
6387if test $ac_cv_func_alloca_works = yes; then
6388
a82a04b3 6389cat >>confdefs.h <<\_ACEOF
5e13499c 6390#define HAVE_ALLOCA 1
a82a04b3 6391_ACEOF
5e13499c
CR
6392
6393else
6394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6395# that cause trouble. Some versions do not even contain alloca or
6396# contain a buggy version. If you still want to use their alloca,
6397# use ar to extract alloca.o from them instead of compiling alloca.c.
6398
6399ALLOCA=alloca.$ac_objext
6400
a82a04b3 6401cat >>confdefs.h <<\_ACEOF
5e13499c 6402#define C_ALLOCA 1
a82a04b3
CR
6403_ACEOF
6404
545f34cf 6405
a82a04b3 6406echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5e13499c
CR
6407echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6408if test "${ac_cv_os_cray+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6412/* confdefs.h. */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
6416/* end confdefs.h. */
5e13499c
CR
6417#if defined(CRAY) && ! defined(CRAY2)
6418webecray
6419#else
6420wenotbecray
6421#endif
6422
6423_ACEOF
6424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 6425 $EGREP "webecray" >/dev/null 2>&1; then
5e13499c
CR
6426 ac_cv_os_cray=yes
6427else
6428 ac_cv_os_cray=no
6429fi
6430rm -f conftest*
6431
6432fi
a82a04b3 6433echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5e13499c
CR
6434echo "${ECHO_T}$ac_cv_os_cray" >&6
6435if test $ac_cv_os_cray = yes; then
6436 for ac_func in _getb67 GETB67 getb67; do
6437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 6438echo "$as_me:$LINENO: checking for $ac_func" >&5
5e13499c
CR
6439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6440if eval "test \"\${$as_ac_var+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
6449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6451#define $ac_func innocuous_$ac_func
6452
5e13499c 6453/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
6454 which can conflict with char $ac_func (); below.
6455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6456 <limits.h> exists even on freestanding compilers. */
6457
6458#ifdef __STDC__
6459# include <limits.h>
6460#else
6461# include <assert.h>
6462#endif
6463
6464#undef $ac_func
6465
5e13499c
CR
6466/* Override any gcc2 internal prototype to avoid an error. */
6467#ifdef __cplusplus
6468extern "C"
a82a04b3 6469{
5e13499c
CR
6470#endif
6471/* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6473char $ac_func ();
5e13499c
CR
6474/* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6478choke me
6479#else
a82a04b3
CR
6480char (*f) () = $ac_func;
6481#endif
6482#ifdef __cplusplus
6483}
5e13499c
CR
6484#endif
6485
a82a04b3
CR
6486int
6487main ()
6488{
6489return f != $ac_func;
5e13499c
CR
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
6495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
5e13499c 6497 ac_status=$?
a82a04b3
CR
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 6502 (exit $ac_status); } &&
a82a04b3
CR
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest$ac_exeext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
a82a04b3 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6515 (exit $ac_status); }; }; then
6516 eval "$as_ac_var=yes"
6517else
6518 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6519sed 's/^/| /' conftest.$ac_ext >&5
6520
5e13499c
CR
6521eval "$as_ac_var=no"
6522fi
a82a04b3
CR
6523rm -f conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
5e13499c 6525fi
a82a04b3 6526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5e13499c
CR
6527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6528if test `eval echo '${'$as_ac_var'}'` = yes; then
6529
a82a04b3 6530cat >>confdefs.h <<_ACEOF
5e13499c 6531#define CRAY_STACKSEG_END $ac_func
a82a04b3 6532_ACEOF
5e13499c
CR
6533
6534 break
6535fi
6536
6537 done
6538fi
6539
a82a04b3 6540echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5e13499c
CR
6541echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6542if test "${ac_cv_c_stack_direction+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 if test "$cross_compiling" = yes; then
6546 ac_cv_c_stack_direction=0
6547else
6548 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */
5e13499c
CR
6554int
6555find_stack_direction ()
6556{
6557 static char *addr = 0;
6558 auto char dummy;
6559 if (addr == 0)
6560 {
6561 addr = &dummy;
6562 return find_stack_direction ();
6563 }
6564 else
6565 return (&dummy > addr) ? 1 : -1;
6566}
6567
6568int
6569main ()
6570{
6571 exit (find_stack_direction () < 0);
6572}
6573_ACEOF
6574rm -f conftest$ac_exeext
a82a04b3 6575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5e13499c
CR
6576 (eval $ac_link) 2>&5
6577 ac_status=$?
a82a04b3 6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 6579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
a82a04b3 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6584 (exit $ac_status); }; }; then
6585 ac_cv_c_stack_direction=1
6586else
6587 echo "$as_me: program exited with status $ac_status" >&5
6588echo "$as_me: failed program was:" >&5
a82a04b3
CR
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591( exit $ac_status )
5e13499c
CR
6592ac_cv_c_stack_direction=-1
6593fi
a82a04b3 6594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
6595fi
6596fi
a82a04b3 6597echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5e13499c
CR
6598echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6599
a82a04b3 6600cat >>confdefs.h <<_ACEOF
5e13499c 6601#define STACK_DIRECTION $ac_cv_c_stack_direction
a82a04b3
CR
6602_ACEOF
6603
5e13499c
CR
6604
6605fi
6606
a82a04b3
CR
6607
6608
5e13499c
CR
6609for ac_header in stdlib.h unistd.h
6610do
6611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
6612if eval "test \"\${$as_ac_Header+set}\" = set"; then
6613 echo "$as_me:$LINENO: checking for $ac_header" >&5
5e13499c
CR
6614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
6617fi
6618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 6620else
a82a04b3
CR
6621 # Is the header compilable?
6622echo "$as_me:$LINENO: checking $ac_header usability" >&5
6623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6624cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630$ac_includes_default
6631#include <$ac_header>
6632_ACEOF
6633rm -f conftest.$ac_objext
6634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635 (eval $ac_compile) 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_c_werror_flag"
6643 || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_header_compiler=yes
6656else
6657 echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660ac_header_compiler=no
6661fi
6662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6664echo "${ECHO_T}$ac_header_compiler" >&6
6665
6666# Is the header present?
6667echo "$as_me:$LINENO: checking $ac_header presence" >&5
6668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6669cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h. */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h. */
5e13499c
CR
6675#include <$ac_header>
6676_ACEOF
a82a04b3 6677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5e13499c
CR
6678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679 ac_status=$?
a82a04b3 6680 grep -v '^ *+' conftest.er1 >conftest.err
5e13499c
CR
6681 rm -f conftest.er1
6682 cat conftest.err >&5
a82a04b3 6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6684 (exit $ac_status); } >/dev/null; then
6685 if test -s conftest.err; then
6686 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 6687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5e13499c
CR
6688 else
6689 ac_cpp_err=
6690 fi
6691else
6692 ac_cpp_err=yes
6693fi
6694if test -z "$ac_cpp_err"; then
a82a04b3 6695 ac_header_preproc=yes
5e13499c
CR
6696else
6697 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700 ac_header_preproc=no
5e13499c
CR
6701fi
6702rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
6703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6704echo "${ECHO_T}$ac_header_preproc" >&6
6705
6706# So? What about this header?
6707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6708 yes:no: )
6709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6713 ac_header_preproc=yes
6714 ;;
6715 no:yes:* )
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6728 (
6729 cat <<\_ASBOX
6730## ------------------------------- ##
6731## Report this to bug-bash@gnu.org ##
6732## ------------------------------- ##
6733_ASBOX
6734 ) |
6735 sed "s/^/$as_me: WARNING: /" >&2
6736 ;;
6737esac
6738echo "$as_me:$LINENO: checking for $ac_header" >&5
6739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6740if eval "test \"\${$as_ac_Header+set}\" = set"; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 eval "$as_ac_Header=\$ac_header_preproc"
5e13499c 6744fi
a82a04b3 6745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5e13499c 6746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
6747
6748fi
5e13499c 6749if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 6750 cat >>confdefs.h <<_ACEOF
5e13499c 6751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 6752_ACEOF
5e13499c
CR
6753
6754fi
a82a04b3 6755
5e13499c
CR
6756done
6757
a82a04b3 6758
5e13499c
CR
6759for ac_func in getpagesize
6760do
6761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 6762echo "$as_me:$LINENO: checking for $ac_func" >&5
5e13499c
CR
6763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6764if eval "test \"\${$as_ac_var+set}\" = set"; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
6767 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6775#define $ac_func innocuous_$ac_func
6776
5e13499c 6777/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
6778 which can conflict with char $ac_func (); below.
6779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6780 <limits.h> exists even on freestanding compilers. */
6781
6782#ifdef __STDC__
6783# include <limits.h>
6784#else
6785# include <assert.h>
6786#endif
6787
6788#undef $ac_func
6789
5e13499c
CR
6790/* Override any gcc2 internal prototype to avoid an error. */
6791#ifdef __cplusplus
6792extern "C"
a82a04b3 6793{
5e13499c
CR
6794#endif
6795/* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6797char $ac_func ();
5e13499c
CR
6798/* The GNU C library defines this for functions which it implements
6799 to always fail with ENOSYS. Some functions are actually named
6800 something starting with __ and the normal name is an alias. */
6801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6802choke me
6803#else
a82a04b3
CR
6804char (*f) () = $ac_func;
6805#endif
6806#ifdef __cplusplus
6807}
5e13499c
CR
6808#endif
6809
a82a04b3
CR
6810int
6811main ()
6812{
6813return f != $ac_func;
5e13499c
CR
6814 ;
6815 return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
6819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>conftest.er1
5e13499c 6821 ac_status=$?
a82a04b3
CR
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 6826 (exit $ac_status); } &&
a82a04b3
CR
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
a82a04b3 6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
6839 (exit $ac_status); }; }; then
6840 eval "$as_ac_var=yes"
6841else
6842 echo "$as_me: failed program was:" >&5
a82a04b3
CR
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
5e13499c
CR
6845eval "$as_ac_var=no"
6846fi
a82a04b3
CR
6847rm -f conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
5e13499c 6849fi
a82a04b3 6850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5e13499c
CR
6851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6852if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 6853 cat >>confdefs.h <<_ACEOF
5e13499c 6854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 6855_ACEOF
5e13499c
CR
6856
6857fi
6858done
6859
a82a04b3 6860echo "$as_me:$LINENO: checking for working mmap" >&5
5e13499c
CR
6861echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6862if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 if test "$cross_compiling" = yes; then
6866 ac_cv_func_mmap_fixed_mapped=no
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
5e13499c 6874$ac_includes_default
a82a04b3
CR
6875/* malloc might have been renamed as rpl_malloc. */
6876#undef malloc
6877
5e13499c
CR
6878/* Thanks to Mike Haertel and Jim Avera for this test.
6879 Here is a matrix of mmap possibilities:
6880 mmap private not fixed
6881 mmap private fixed at somewhere currently unmapped
6882 mmap private fixed at somewhere already mapped
6883 mmap shared not fixed
6884 mmap shared fixed at somewhere currently unmapped
6885 mmap shared fixed at somewhere already mapped
6886 For private mappings, we should verify that changes cannot be read()
6887 back from the file, nor mmap's back from the file at a different
6888 address. (There have been systems where private was not correctly
6889 implemented like the infamous i386 svr4.0, and systems where the
6890 VM page cache was not coherent with the file system buffer cache
6891 like early versions of FreeBSD and possibly contemporary NetBSD.)
6892 For shared mappings, we should conversely verify that changes get
a82a04b3 6893 propagated back to all the places they're supposed to be.
5e13499c
CR
6894
6895 Grep wants private fixed already mapped.
6896 The main things grep needs to know about mmap are:
6897 * does it exist and is it safe to write into the mmap'd area
6898 * how to use it (BSD variants) */
6899
6900#include <fcntl.h>
6901#include <sys/mman.h>
6902
6903#if !STDC_HEADERS && !HAVE_STDLIB_H
6904char *malloc ();
6905#endif
6906
6907/* This mess was copied from the GNU getpagesize.h. */
6908#if !HAVE_GETPAGESIZE
6909/* Assume that all systems that can run configure have sys/param.h. */
6910# if !HAVE_SYS_PARAM_H
6911# define HAVE_SYS_PARAM_H 1
6912# endif
6913
6914# ifdef _SC_PAGESIZE
6915# define getpagesize() sysconf(_SC_PAGESIZE)
6916# else /* no _SC_PAGESIZE */
6917# if HAVE_SYS_PARAM_H
6918# include <sys/param.h>
6919# ifdef EXEC_PAGESIZE
6920# define getpagesize() EXEC_PAGESIZE
6921# else /* no EXEC_PAGESIZE */
6922# ifdef NBPG
6923# define getpagesize() NBPG * CLSIZE
6924# ifndef CLSIZE
6925# define CLSIZE 1
6926# endif /* no CLSIZE */
6927# else /* no NBPG */
6928# ifdef NBPC
6929# define getpagesize() NBPC
6930# else /* no NBPC */
6931# ifdef PAGESIZE
6932# define getpagesize() PAGESIZE
6933# endif /* PAGESIZE */
6934# endif /* no NBPC */
6935# endif /* no NBPG */
6936# endif /* no EXEC_PAGESIZE */
6937# else /* no HAVE_SYS_PARAM_H */
6938# define getpagesize() 8192 /* punt totally */
6939# endif /* no HAVE_SYS_PARAM_H */
6940# endif /* no _SC_PAGESIZE */
6941
6942#endif /* no HAVE_GETPAGESIZE */
6943
6944int
6945main ()
6946{
6947 char *data, *data2, *data3;
6948 int i, pagesize;
6949 int fd;
6950
6951 pagesize = getpagesize ();
6952
6953 /* First, make a file with some known garbage in it. */
6954 data = (char *) malloc (pagesize);
6955 if (!data)
6956 exit (1);
6957 for (i = 0; i < pagesize; ++i)
6958 *(data + i) = rand ();
6959 umask (0);
6960 fd = creat ("conftest.mmap", 0600);
6961 if (fd < 0)
6962 exit (1);
6963 if (write (fd, data, pagesize) != pagesize)
6964 exit (1);
6965 close (fd);
6966
6967 /* Next, try to mmap the file at a fixed address which already has
6968 something else allocated at it. If we can, also make sure that
6969 we see the same garbage. */
6970 fd = open ("conftest.mmap", O_RDWR);
6971 if (fd < 0)
6972 exit (1);
6973 data2 = (char *) malloc (2 * pagesize);
6974 if (!data2)
6975 exit (1);
a82a04b3 6976 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5e13499c 6977 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
a82a04b3 6978 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5e13499c
CR
6979 exit (1);
6980 for (i = 0; i < pagesize; ++i)
6981 if (*(data + i) != *(data2 + i))
6982 exit (1);
6983
6984 /* Finally, make sure that changes to the mapped area do not
6985 percolate back to the file as seen by read(). (This is a bug on
6986 some variants of i386 svr4.0.) */
6987 for (i = 0; i < pagesize; ++i)
6988 *(data2 + i) = *(data2 + i) + 1;
6989 data3 = (char *) malloc (pagesize);
6990 if (!data3)
6991 exit (1);
6992 if (read (fd, data3, pagesize) != pagesize)
6993 exit (1);
6994 for (i = 0; i < pagesize; ++i)
6995 if (*(data + i) != *(data3 + i))
6996 exit (1);
6997 close (fd);
6998 exit (0);
6999}
7000_ACEOF
7001rm -f conftest$ac_exeext
a82a04b3 7002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5e13499c
CR
7003 (eval $ac_link) 2>&5
7004 ac_status=$?
a82a04b3 7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
a82a04b3 7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7011 (exit $ac_status); }; }; then
7012 ac_cv_func_mmap_fixed_mapped=yes
7013else
7014 echo "$as_me: program exited with status $ac_status" >&5
7015echo "$as_me: failed program was:" >&5
a82a04b3
CR
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018( exit $ac_status )
5e13499c
CR
7019ac_cv_func_mmap_fixed_mapped=no
7020fi
a82a04b3 7021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
7022fi
7023fi
a82a04b3 7024echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5e13499c
CR
7025echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7026if test $ac_cv_func_mmap_fixed_mapped = yes; then
7027
a82a04b3 7028cat >>confdefs.h <<\_ACEOF
5e13499c 7029#define HAVE_MMAP 1
a82a04b3 7030_ACEOF
5e13499c
CR
7031
7032fi
7033rm -f conftest.mmap
7034
a82a04b3
CR
7035
7036 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5e13499c
CR
7037echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7038if test "${ac_cv_gnu_library_2_1+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7042/* confdefs.h. */
7043_ACEOF
7044cat confdefs.h >>conftest.$ac_ext
7045cat >>conftest.$ac_ext <<_ACEOF
7046/* end confdefs.h. */
5e13499c
CR
7047
7048#include <features.h>
7049#ifdef __GNU_LIBRARY__
7050 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7051 Lucky GNU user
7052 #endif
7053#endif
7054
7055_ACEOF
7056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 7057 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5e13499c
CR
7058 ac_cv_gnu_library_2_1=yes
7059else
7060 ac_cv_gnu_library_2_1=no
7061fi
7062rm -f conftest*
7063
a82a04b3
CR
7064
7065
5e13499c 7066fi
a82a04b3 7067echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5e13499c
CR
7068echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7069
7070 GLIBC21="$ac_cv_gnu_library_2_1"
7071
a82a04b3
CR
7072
7073
7074
7075 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5e13499c
CR
7076echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7077if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080
7081 if test "$cross_compiling" = yes; then
7082
7083 # Guess based on the CPU.
7084 case "$host_cpu" in
7085 alpha* | i3456786 | m68k | s390*)
7086 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7087 *)
7088 gt_cv_int_divbyzero_sigfpe="guessing no";;
7089 esac
7090
7091else
7092 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
5e13499c
CR
7098
7099#include <stdlib.h>
7100#include <signal.h>
7101
7102static void
7103#ifdef __cplusplus
7104sigfpe_handler (int sig)
7105#else
7106sigfpe_handler (sig) int sig;
7107#endif
7108{
7109 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7110 exit (sig != SIGFPE);
7111}
7112
7113int x = 1;
7114int y = 0;
7115int z;
7116int nan;
7117
7118int main ()
7119{
7120 signal (SIGFPE, sigfpe_handler);
7121/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7122#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7123 signal (SIGTRAP, sigfpe_handler);
7124#endif
7125/* Linux/SPARC yields signal SIGILL. */
7126#if defined (__sparc__) && defined (__linux__)
7127 signal (SIGILL, sigfpe_handler);
7128#endif
7129
7130 z = x / y;
7131 nan = y / y;
7132 exit (1);
7133}
7134
7135_ACEOF
7136rm -f conftest$ac_exeext
a82a04b3 7137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5e13499c
CR
7138 (eval $ac_link) 2>&5
7139 ac_status=$?
a82a04b3 7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
a82a04b3 7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7146 (exit $ac_status); }; }; then
7147 gt_cv_int_divbyzero_sigfpe=yes
7148else
7149 echo "$as_me: program exited with status $ac_status" >&5
7150echo "$as_me: failed program was:" >&5
a82a04b3
CR
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153( exit $ac_status )
5e13499c
CR
7154gt_cv_int_divbyzero_sigfpe=no
7155fi
a82a04b3 7156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
7157fi
7158
7159fi
a82a04b3 7160echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5e13499c
CR
7161echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7162 case "$gt_cv_int_divbyzero_sigfpe" in
7163 *yes) value=1;;
7164 *) value=0;;
7165 esac
7166
a82a04b3 7167cat >>confdefs.h <<_ACEOF
5e13499c 7168#define INTDIV0_RAISES_SIGFPE $value
a82a04b3
CR
7169_ACEOF
7170
545f34cf 7171
a82a04b3
CR
7172
7173 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5e13499c
CR
7174echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7175if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7179/* confdefs.h. */
7180_ACEOF
7181cat confdefs.h >>conftest.$ac_ext
7182cat >>conftest.$ac_ext <<_ACEOF
7183/* end confdefs.h. */
5e13499c
CR
7184#include <sys/types.h>
7185#include <inttypes.h>
7186int
7187main ()
7188{
7189uintmax_t i = (uintmax_t) -1;
7190 ;
7191 return 0;
7192}
7193_ACEOF
7194rm -f conftest.$ac_objext
a82a04b3
CR
7195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
5e13499c 7197 ac_status=$?
a82a04b3
CR
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7202 (exit $ac_status); } &&
a82a04b3
CR
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
a82a04b3 7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7215 (exit $ac_status); }; }; then
7216 jm_ac_cv_header_inttypes_h=yes
7217else
7218 echo "$as_me: failed program was:" >&5
a82a04b3
CR
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
5e13499c
CR
7221jm_ac_cv_header_inttypes_h=no
7222fi
a82a04b3 7223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 7224fi
a82a04b3 7225echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5e13499c
CR
7226echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7227 if test $jm_ac_cv_header_inttypes_h = yes; then
7228
a82a04b3 7229cat >>confdefs.h <<_ACEOF
5e13499c 7230#define HAVE_INTTYPES_H_WITH_UINTMAX 1
a82a04b3 7231_ACEOF
5e13499c
CR
7232
7233 fi
7234
a82a04b3
CR
7235
7236 echo "$as_me:$LINENO: checking for stdint.h" >&5
5e13499c
CR
7237echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7238if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
5e13499c
CR
7247#include <sys/types.h>
7248#include <stdint.h>
7249int
7250main ()
7251{
7252uintmax_t i = (uintmax_t) -1;
7253 ;
7254 return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext
a82a04b3
CR
7258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>conftest.er1
5e13499c 7260 ac_status=$?
a82a04b3
CR
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7265 (exit $ac_status); } &&
a82a04b3
CR
7266 { ac_try='test -z "$ac_c_werror_flag"
7267 || test ! -s conftest.err'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
a82a04b3 7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7278 (exit $ac_status); }; }; then
7279 jm_ac_cv_header_stdint_h=yes
7280else
7281 echo "$as_me: failed program was:" >&5
a82a04b3
CR
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
5e13499c
CR
7284jm_ac_cv_header_stdint_h=no
7285fi
a82a04b3 7286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c 7287fi
a82a04b3 7288echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5e13499c
CR
7289echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7290 if test $jm_ac_cv_header_stdint_h = yes; then
7291
a82a04b3 7292cat >>confdefs.h <<_ACEOF
5e13499c 7293#define HAVE_STDINT_H_WITH_UINTMAX 1
a82a04b3 7294_ACEOF
5e13499c
CR
7295
7296 fi
7297
a82a04b3
CR
7298
7299 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5e13499c
CR
7300echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7301if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7305/* confdefs.h. */
7306_ACEOF
7307cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */
5e13499c
CR
7310unsigned long long ull = 1; int i = 63;
7311int
7312main ()
7313{
7314unsigned long long ullmax = (unsigned long long) -1;
7315 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7316 ;
7317 return 0;
7318}
7319_ACEOF
7320rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
7321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7322 (eval $ac_link) 2>conftest.er1
5e13499c 7323 ac_status=$?
a82a04b3
CR
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7328 (exit $ac_status); } &&
a82a04b3
CR
7329 { ac_try='test -z "$ac_c_werror_flag"
7330 || test ! -s conftest.err'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; } &&
7336 { ac_try='test -s conftest$ac_exeext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
a82a04b3 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7341 (exit $ac_status); }; }; then
7342 ac_cv_type_unsigned_long_long=yes
7343else
7344 echo "$as_me: failed program was:" >&5
a82a04b3
CR
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
5e13499c
CR
7347ac_cv_type_unsigned_long_long=no
7348fi
a82a04b3
CR
7349rm -f conftest.err conftest.$ac_objext \
7350 conftest$ac_exeext conftest.$ac_ext
5e13499c 7351fi
a82a04b3 7352echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5e13499c
CR
7353echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7354 if test $ac_cv_type_unsigned_long_long = yes; then
7355
a82a04b3 7356cat >>confdefs.h <<\_ACEOF
5e13499c 7357#define HAVE_UNSIGNED_LONG_LONG 1
a82a04b3 7358_ACEOF
5e13499c
CR
7359
7360 fi
7361
a82a04b3
CR
7362
7363
7364
5e13499c
CR
7365 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7366
7367 test $ac_cv_type_unsigned_long_long = yes \
7368 && ac_type='unsigned long long' \
7369 || ac_type='unsigned long'
7370
a82a04b3 7371cat >>confdefs.h <<_ACEOF
5e13499c 7372#define uintmax_t $ac_type
a82a04b3 7373_ACEOF
5e13499c
CR
7374
7375 else
7376
a82a04b3 7377cat >>confdefs.h <<\_ACEOF
5e13499c 7378#define HAVE_UINTMAX_T 1
a82a04b3 7379_ACEOF
5e13499c
CR
7380
7381 fi
7382
a82a04b3
CR
7383
7384 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5e13499c
CR
7385echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7386if test "${gt_cv_header_inttypes_h+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389
7390 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7391/* confdefs.h. */
7392_ACEOF
7393cat confdefs.h >>conftest.$ac_ext
7394cat >>conftest.$ac_ext <<_ACEOF
7395/* end confdefs.h. */
5e13499c
CR
7396#include <sys/types.h>
7397#include <inttypes.h>
7398int
7399main ()
7400{
7401
7402 ;
7403 return 0;
7404}
7405_ACEOF
7406rm -f conftest.$ac_objext
a82a04b3
CR
7407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>conftest.er1
5e13499c 7409 ac_status=$?
a82a04b3
CR
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7414 (exit $ac_status); } &&
a82a04b3
CR
7415 { ac_try='test -z "$ac_c_werror_flag"
7416 || test ! -s conftest.err'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; } &&
7422 { ac_try='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
a82a04b3 7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7427 (exit $ac_status); }; }; then
7428 gt_cv_header_inttypes_h=yes
7429else
7430 echo "$as_me: failed program was:" >&5
a82a04b3
CR
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
5e13499c
CR
7433gt_cv_header_inttypes_h=no
7434fi
a82a04b3 7435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
7436
7437fi
a82a04b3 7438echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5e13499c
CR
7439echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7440 if test $gt_cv_header_inttypes_h = yes; then
7441
a82a04b3 7442cat >>confdefs.h <<_ACEOF
5e13499c 7443#define HAVE_INTTYPES_H 1
a82a04b3 7444_ACEOF
5e13499c
CR
7445
7446 fi
7447
a82a04b3
CR
7448
7449
5e13499c 7450 if test $gt_cv_header_inttypes_h = yes; then
a82a04b3 7451 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5e13499c
CR
7452echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7453if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456
7457 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
7458/* confdefs.h. */
7459_ACEOF
7460cat confdefs.h >>conftest.$ac_ext
7461cat >>conftest.$ac_ext <<_ACEOF
7462/* end confdefs.h. */
5e13499c
CR
7463#include <inttypes.h>
7464#ifdef PRId32
7465char *p = PRId32;
7466#endif
7467
7468int
7469main ()
7470{
7471
7472 ;
7473 return 0;
7474}
7475_ACEOF
7476rm -f conftest.$ac_objext
a82a04b3
CR
7477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>conftest.er1
5e13499c 7479 ac_status=$?
a82a04b3
CR
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 7484 (exit $ac_status); } &&
a82a04b3
CR
7485 { ac_try='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest.$ac_objext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
a82a04b3 7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
7497 (exit $ac_status); }; }; then
7498 gt_cv_inttypes_pri_broken=no
7499else
7500 echo "$as_me: failed program was:" >&5
a82a04b3
CR
7501sed 's/^/| /' conftest.$ac_ext >&5
7502
5e13499c
CR
7503gt_cv_inttypes_pri_broken=yes
7504fi
a82a04b3 7505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
7506
7507fi
a82a04b3 7508echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5e13499c
CR
7509echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7510 fi
7511 if test "$gt_cv_inttypes_pri_broken" = yes; then
7512
a82a04b3 7513cat >>confdefs.h <<_ACEOF
5e13499c 7514#define PRI_MACROS_BROKEN 1
a82a04b3 7515_ACEOF
5e13499c
CR
7516
7517 fi
7518
a82a04b3 7519
5e13499c
CR
7520 if test "X$prefix" = "XNONE"; then
7521 acl_final_prefix="$ac_default_prefix"
7522 else
7523 acl_final_prefix="$prefix"
7524 fi
7525 if test "X$exec_prefix" = "XNONE"; then
7526 acl_final_exec_prefix='${prefix}'
7527 else
7528 acl_final_exec_prefix="$exec_prefix"
7529 fi
7530 acl_save_prefix="$prefix"
7531 prefix="$acl_final_prefix"
7532 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7533 prefix="$acl_save_prefix"
7534
a82a04b3 7535
5e13499c
CR
7536# Check whether --with-gnu-ld or --without-gnu-ld was given.
7537if test "${with_gnu_ld+set}" = set; then
7538 withval="$with_gnu_ld"
7539 test "$withval" = no || with_gnu_ld=yes
7540else
7541 with_gnu_ld=no
7542fi;
7543# Prepare PATH_SEPARATOR.
7544# The user is always right.
7545if test "${PATH_SEPARATOR+set}" != set; then
7546 echo "#! /bin/sh" >conf$$.sh
7547 echo "exit 0" >>conf$$.sh
7548 chmod +x conf$$.sh
7549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7550 PATH_SEPARATOR=';'
7551 else
7552 PATH_SEPARATOR=:
7553 fi
7554 rm -f conf$$.sh
7555fi
7556ac_prog=ld
7557if test "$GCC" = yes; then
7558 # Check if gcc -print-prog-name=ld gives a path.
a82a04b3 7559 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5e13499c
CR
7560echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7561 case $host in
7562 *-*-mingw*)
7563 # gcc leaves a trailing carriage return which upsets mingw
7564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7565 *)
7566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7567 esac
7568 case $ac_prog in
7569 # Accept absolute paths.
7570 [\\/]* | [A-Za-z]:[\\/]*)
7571 re_direlt='/[^/][^/]*/\.\./'
7572 # Canonicalize the path of ld
7573 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7574 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7575 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7576 done
7577 test -z "$LD" && LD="$ac_prog"
7578 ;;
7579 "")
7580 # If it fails, then pretend we aren't using GCC.
7581 ac_prog=ld
7582 ;;
7583 *)
7584 # If it is relative, then search for the first ld in PATH.
7585 with_gnu_ld=unknown
7586 ;;
7587 esac
7588elif test "$with_gnu_ld" = yes; then
a82a04b3 7589 echo "$as_me:$LINENO: checking for GNU ld" >&5
5e13499c
CR
7590echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7591else
a82a04b3 7592 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5e13499c
CR
7593echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7594fi
7595if test "${acl_cv_path_LD+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 if test -z "$LD"; then
7599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7600 for ac_dir in $PATH; do
7601 test -z "$ac_dir" && ac_dir=.
7602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7603 acl_cv_path_LD="$ac_dir/$ac_prog"
7604 # Check to see if the program is GNU ld. I'd rather use --version,
7605 # but apparently some GNU ld's only accept -v.
7606 # Break only if it was the GNU/non-GNU ld that we prefer.
7607 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7608 test "$with_gnu_ld" != no && break
7609 else
7610 test "$with_gnu_ld" != yes && break
7611 fi
7612 fi
7613 done
7614 IFS="$ac_save_ifs"
7615else
7616 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7617fi
7618fi
7619
7620LD="$acl_cv_path_LD"
7621if test -n "$LD"; then
a82a04b3 7622 echo "$as_me:$LINENO: result: $LD" >&5
5e13499c
CR
7623echo "${ECHO_T}$LD" >&6
7624else
a82a04b3 7625 echo "$as_me:$LINENO: result: no" >&5
5e13499c
CR
7626echo "${ECHO_T}no" >&6
7627fi
a82a04b3 7628test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5e13499c
CR
7629echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7630 { (exit 1); exit 1; }; }
a82a04b3 7631echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5e13499c
CR
7632echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7633if test "${acl_cv_prog_gnu_ld+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7637if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7638 acl_cv_prog_gnu_ld=yes
7639else
7640 acl_cv_prog_gnu_ld=no
7641fi
7642fi
a82a04b3 7643echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5e13499c
CR
7644echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7645with_gnu_ld=$acl_cv_prog_gnu_ld
7646
a82a04b3
CR
7647
7648
7649 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5e13499c
CR
7650echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7651if test "${acl_cv_rpath+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654
7655 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7656 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7657 . ./conftest.sh
7658 rm -f ./conftest.sh
7659 acl_cv_rpath=done
7660
7661fi
a82a04b3 7662echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5e13499c
CR
7663echo "${ECHO_T}$acl_cv_rpath" >&6
7664 wl="$acl_cv_wl"
7665 libext="$acl_cv_libext"
7666 shlibext="$acl_cv_shlibext"
7667 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7668 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7669 hardcode_direct="$acl_cv_hardcode_direct"
7670 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7671 # Check whether --enable-rpath or --disable-rpath was given.
7672if test "${enable_rpath+set}" = set; then
7673 enableval="$enable_rpath"
7674 :
7675else
7676 enable_rpath=yes
7677fi;
7678
a82a04b3
CR
7679
7680
7681
7682
7683
7684
5e13499c
CR
7685 use_additional=yes
7686
7687 acl_save_prefix="$prefix"
7688 prefix="$acl_final_prefix"
7689 acl_save_exec_prefix="$exec_prefix"
7690 exec_prefix="$acl_final_exec_prefix"
7691
7692 eval additional_includedir=\"$includedir\"
7693 eval additional_libdir=\"$libdir\"
7694
7695 exec_prefix="$acl_save_exec_prefix"
7696 prefix="$acl_save_prefix"
7697
a82a04b3 7698
5e13499c
CR
7699# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7700if test "${with_libiconv_prefix+set}" = set; then
7701 withval="$with_libiconv_prefix"
7702
7703 if test "X$withval" = "Xno"; then
7704 use_additional=no
7705 else
7706 if test "X$withval" = "X"; then
7707
7708 acl_save_prefix="$prefix"
7709 prefix="$acl_final_prefix"
7710 acl_save_exec_prefix="$exec_prefix"
7711 exec_prefix="$acl_final_exec_prefix"
7712
7713 eval additional_includedir=\"$includedir\"
7714 eval additional_libdir=\"$libdir\"
7715
7716 exec_prefix="$acl_save_exec_prefix"
7717 prefix="$acl_save_prefix"
7718
7719 else
7720 additional_includedir="$withval/include"
7721 additional_libdir="$withval/lib"
7722 fi
7723 fi
7724
7725fi;
7726 LIBICONV=
7727 LTLIBICONV=
7728 INCICONV=
7729 rpathdirs=
7730 ltrpathdirs=
7731 names_already_handled=
7732 names_next_round='iconv '
7733 while test -n "$names_next_round"; do
7734 names_this_round="$names_next_round"
7735 names_next_round=
7736 for name in $names_this_round; do
7737 already_handled=
7738 for n in $names_already_handled; do
7739 if test "$n" = "$name"; then
7740 already_handled=yes
7741 break
7742 fi
7743 done
7744 if test -z "$already_handled"; then
7745 names_already_handled="$names_already_handled $name"
7746 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7747 eval value=\"\$HAVE_LIB$uppername\"
7748 if test -n "$value"; then
7749 if test "$value" = yes; then
7750 eval value=\"\$LIB$uppername\"
7751 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7752 eval value=\"\$LTLIB$uppername\"
7753 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7754 else
7755 :
7756 fi
7757 else
7758 found_dir=
7759 found_la=
7760 found_so=
7761 found_a=
7762 if test $use_additional = yes; then
7763 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7764 found_dir="$additional_libdir"
7765 found_so="$additional_libdir/lib$name.$shlibext"
7766 if test -f "$additional_libdir/lib$name.la"; then
7767 found_la="$additional_libdir/lib$name.la"
7768 fi
7769 else
7770 if test -f "$additional_libdir/lib$name.$libext"; then
7771 found_dir="$additional_libdir"
7772 found_a="$additional_libdir/lib$name.$libext"
7773 if test -f "$additional_libdir/lib$name.la"; then
7774 found_la="$additional_libdir/lib$name.la"
7775 fi
7776 fi
7777 fi
7778 fi
7779 if test "X$found_dir" = "X"; then
7780 for x in $LDFLAGS $LTLIBICONV; do
7781
7782 acl_save_prefix="$prefix"
7783 prefix="$acl_final_prefix"
7784 acl_save_exec_prefix="$exec_prefix"
7785 exec_prefix="$acl_final_exec_prefix"
7786 eval x=\"$x\"
7787 exec_prefix="$acl_save_exec_prefix"
7788 prefix="$acl_save_prefix"
7789
7790 case "$x" in
7791 -L*)
7792 dir=`echo "X$x" | sed -e 's/^X-L//'`
7793 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7794 found_dir="$dir"
7795 found_so="$dir/lib$name.$shlibext"
7796 if test -f "$dir/lib$name.la"; then
7797 found_la="$dir/lib$name.la"
7798 fi
7799 else
7800 if test -f "$dir/lib$name.$libext"; then
7801 found_dir="$dir"
7802 found_a="$dir/lib$name.$libext"
7803 if test -f "$dir/lib$name.la"; then
7804 found_la="$dir/lib$name.la"
7805 fi
7806 fi
7807 fi
7808 ;;
7809 esac
7810 if test "X$found_dir" != "X"; then
7811 break
7812 fi
7813 done
7814 fi
7815 if test "X$found_dir" != "X"; then
7816 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7817 if test "X$found_so" != "X"; then
7818 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7820 else
7821 haveit=
7822 for x in $ltrpathdirs; do
7823 if test "X$x" = "X$found_dir"; then
7824 haveit=yes
7825 break
7826 fi
7827 done
7828 if test -z "$haveit"; then
7829 ltrpathdirs="$ltrpathdirs $found_dir"
7830 fi
7831 if test "$hardcode_direct" = yes; then
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7833 else
7834 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7836 haveit=
7837 for x in $rpathdirs; do
7838 if test "X$x" = "X$found_dir"; then
7839 haveit=yes
7840 break
7841 fi
7842 done
7843 if test -z "$haveit"; then
7844 rpathdirs="$rpathdirs $found_dir"
7845 fi
7846 else
7847 haveit=
7848 for x in $LDFLAGS $LIBICONV; do
7849
7850 acl_save_prefix="$prefix"
7851 prefix="$acl_final_prefix"
7852 acl_save_exec_prefix="$exec_prefix"
7853 exec_prefix="$acl_final_exec_prefix"
7854 eval x=\"$x\"
7855 exec_prefix="$acl_save_exec_prefix"
7856 prefix="$acl_save_prefix"
7857
7858 if test "X$x" = "X-L$found_dir"; then
7859 haveit=yes
7860 break
7861 fi
7862 done
7863 if test -z "$haveit"; then
7864 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7865 fi
7866 if test "$hardcode_minus_L" != no; then
7867 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7868 else
7869 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7870 fi
7871 fi
7872 fi
7873 fi
7874 else
7875 if test "X$found_a" != "X"; then
7876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7877 else
7878 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7879 fi
7880 fi
7881 additional_includedir=
7882 case "$found_dir" in
7883 */lib | */lib/)
7884 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7885 additional_includedir="$basedir/include"
7886 ;;
7887 esac
7888 if test "X$additional_includedir" != "X"; then
7889 if test "X$additional_includedir" != "X/usr/include"; then
7890 haveit=
7891 if test "X$additional_includedir" = "X/usr/local/include"; then
7892 if test -n "$GCC"; then
7893 case $host_os in
7894 linux*) haveit=yes;;
7895 esac
7896 fi
7897 fi
7898 if test -z "$haveit"; then
7899 for x in $CPPFLAGS $INCICONV; do
7900
7901 acl_save_prefix="$prefix"
7902 prefix="$acl_final_prefix"
7903 acl_save_exec_prefix="$exec_prefix"
7904 exec_prefix="$acl_final_exec_prefix"
7905 eval x=\"$x\"
7906 exec_prefix="$acl_save_exec_prefix"
7907 prefix="$acl_save_prefix"
7908
7909 if test "X$x" = "X-I$additional_includedir"; then
7910 haveit=yes
7911 break
7912 fi
7913 done
7914 if test -z "$haveit"; then
7915 if test -d "$additional_includedir"; then
7916 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7917 fi
7918 fi
7919 fi
7920 fi
7921 fi
7922 if test -n "$found_la"; then
7923 save_libdir="$libdir"
7924 case "$found_la" in
7925 */* | *\\*) . "$found_la" ;;
7926 *) . "./$found_la" ;;
7927 esac
7928 libdir="$save_libdir"
7929 for dep in $dependency_libs; do
7930 case "$dep" in
7931 -L*)
7932 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7933 if test "X$additional_libdir" != "X/usr/lib"; then
7934 haveit=
7935 if test "X$additional_libdir" = "X/usr/local/lib"; then
7936 if test -n "$GCC"; then
7937 case $host_os in
7938 linux*) haveit=yes;;
7939 esac
7940 fi
7941 fi
7942 if test -z "$haveit"; then
7943 haveit=
7944 for x in $LDFLAGS $LIBICONV; do
7945
7946 acl_save_prefix="$prefix"
7947 prefix="$acl_final_prefix"
7948 acl_save_exec_prefix="$exec_prefix"
7949 exec_prefix="$acl_final_exec_prefix"
7950 eval x=\"$x\"
7951 exec_prefix="$acl_save_exec_prefix"
7952 prefix="$acl_save_prefix"
7953
7954 if test "X$x" = "X-L$additional_libdir"; then
7955 haveit=yes
7956 break
7957 fi
7958 done
7959 if test -z "$haveit"; then
7960 if test -d "$additional_libdir"; then
7961 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7962 fi
7963 fi
7964 haveit=
7965 for x in $LDFLAGS $LTLIBICONV; do
7966
7967 acl_save_prefix="$prefix"
7968 prefix="$acl_final_prefix"
7969 acl_save_exec_prefix="$exec_prefix"
7970 exec_prefix="$acl_final_exec_prefix"
7971 eval x=\"$x\"
7972 exec_prefix="$acl_save_exec_prefix"
7973 prefix="$acl_save_prefix"
7974
7975 if test "X$x" = "X-L$additional_libdir"; then
7976 haveit=yes
7977 break
7978 fi
7979 done
7980 if test -z "$haveit"; then
7981 if test -d "$additional_libdir"; then
7982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7983 fi
7984 fi
7985 fi
7986 fi
7987 ;;
7988 -R*)
7989 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7990 if test "$enable_rpath" != no; then
7991 haveit=
7992 for x in $rpathdirs; do
7993 if test "X$x" = "X$dir"; then
7994 haveit=yes
7995 break
7996 fi
7997 done
7998 if test -z "$haveit"; then
7999 rpathdirs="$rpathdirs $dir"
8000 fi
8001 haveit=
8002 for x in $ltrpathdirs; do
8003 if test "X$x" = "X$dir"; then
8004 haveit=yes
8005 break
8006 fi
8007 done
8008 if test -z "$haveit"; then
8009 ltrpathdirs="$ltrpathdirs $dir"
8010 fi
8011 fi
8012 ;;
8013 -l*)
8014 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8015 ;;
8016 *.la)
8017 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8018 ;;
8019 *)
8020 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8021 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8022 ;;
8023 esac
8024 done
8025 fi
8026 else
8027 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8028 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8029 fi
8030 fi
8031 fi
8032 done
8033 done
8034 if test "X$rpathdirs" != "X"; then
8035 if test -n "$hardcode_libdir_separator"; then
8036 alldirs=
8037 for found_dir in $rpathdirs; do
8038 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8039 done
8040 acl_save_libdir="$libdir"
8041 libdir="$alldirs"
8042 eval flag=\"$hardcode_libdir_flag_spec\"
8043 libdir="$acl_save_libdir"
8044 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8045 else
8046 for found_dir in $rpathdirs; do
8047 acl_save_libdir="$libdir"
8048 libdir="$found_dir"
8049 eval flag=\"$hardcode_libdir_flag_spec\"
8050 libdir="$acl_save_libdir"
8051 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8052 done
8053 fi
8054 fi
8055 if test "X$ltrpathdirs" != "X"; then
8056 for found_dir in $ltrpathdirs; do
8057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8058 done
8059 fi
8060
a82a04b3
CR
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
5e13499c
CR
8074for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8075stdlib.h string.h unistd.h sys/param.h
8076do
8077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
8078if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo "$as_me:$LINENO: checking for $ac_header" >&5
5e13499c
CR
8080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8081if eval "test \"\${$as_ac_Header+set}\" = set"; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
8083fi
8084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5e13499c 8086else
a82a04b3
CR
8087 # Is the header compilable?
8088echo "$as_me:$LINENO: checking $ac_header usability" >&5
8089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8090cat >conftest.$ac_ext <<_ACEOF
8091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
8096$ac_includes_default
8097#include <$ac_header>
8098_ACEOF
8099rm -f conftest.$ac_objext
8100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8101 (eval $ac_compile) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag"
8109 || test ! -s conftest.err'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest.$ac_objext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_header_compiler=yes
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126ac_header_compiler=no
8127fi
8128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8130echo "${ECHO_T}$ac_header_compiler" >&6
8131
8132# Is the header present?
8133echo "$as_me:$LINENO: checking $ac_header presence" >&5
8134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8135cat >conftest.$ac_ext <<_ACEOF
8136/* confdefs.h. */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h. */
545f34cf
CR
8141#include <$ac_header>
8142_ACEOF
a82a04b3 8143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5e13499c
CR
8144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8145 ac_status=$?
a82a04b3 8146 grep -v '^ *+' conftest.er1 >conftest.err
5e13499c
CR
8147 rm -f conftest.er1
8148 cat conftest.err >&5
a82a04b3 8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8150 (exit $ac_status); } >/dev/null; then
8151 if test -s conftest.err; then
8152 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 8153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5e13499c
CR
8154 else
8155 ac_cpp_err=
8156 fi
8157else
8158 ac_cpp_err=yes
8159fi
8160if test -z "$ac_cpp_err"; then
a82a04b3 8161 ac_header_preproc=yes
5e13499c
CR
8162else
8163 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8164sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 ac_header_preproc=no
5e13499c
CR
8167fi
8168rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
8169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170echo "${ECHO_T}$ac_header_preproc" >&6
8171
8172# So? What about this header?
8173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8174 yes:no: )
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179 ac_header_preproc=yes
8180 ;;
8181 no:yes:* )
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8194 (
8195 cat <<\_ASBOX
8196## ------------------------------- ##
8197## Report this to bug-bash@gnu.org ##
8198## ------------------------------- ##
8199_ASBOX
8200 ) |
8201 sed "s/^/$as_me: WARNING: /" >&2
8202 ;;
8203esac
8204echo "$as_me:$LINENO: checking for $ac_header" >&5
8205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8206if eval "test \"\${$as_ac_Header+set}\" = set"; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 eval "$as_ac_Header=\$ac_header_preproc"
5e13499c 8210fi
a82a04b3 8211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5e13499c 8212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
8213
8214fi
5e13499c 8215if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 8216 cat >>confdefs.h <<_ACEOF
5e13499c 8217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 8218_ACEOF
5e13499c
CR
8219
8220fi
a82a04b3 8221
5e13499c
CR
8222done
8223
e624d0f7 8224
a82a04b3
CR
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8247geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8248strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8249__fsetlocking
8250do
8251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8252echo "$as_me:$LINENO: checking for $ac_func" >&5
8253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8254if eval "test \"\${$as_ac_var+set}\" = set"; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256else
8257 cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
8263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265#define $ac_func innocuous_$ac_func
8266
8267/* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8271
8272#ifdef __STDC__
8273# include <limits.h>
8274#else
8275# include <assert.h>
8276#endif
8277
8278#undef $ac_func
8279
8280/* Override any gcc2 internal prototype to avoid an error. */
8281#ifdef __cplusplus
8282extern "C"
e624d0f7 8283{
a82a04b3
CR
8284#endif
8285/* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8287char $ac_func ();
5e13499c
CR
8288/* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8292choke me
8293#else
a82a04b3
CR
8294char (*f) () = $ac_func;
8295#endif
8296#ifdef __cplusplus
8297}
5e13499c
CR
8298#endif
8299
a82a04b3
CR
8300int
8301main ()
8302{
8303return f != $ac_func;
5e13499c
CR
8304 ;
8305 return 0;
8306}
8307_ACEOF
8308rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
8309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
5e13499c 8311 ac_status=$?
a82a04b3
CR
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8316 (exit $ac_status); } &&
a82a04b3
CR
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
a82a04b3
CR
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8329 (exit $ac_status); }; }; then
8330 eval "$as_ac_var=yes"
8331else
8332 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
5e13499c
CR
8335eval "$as_ac_var=no"
8336fi
a82a04b3
CR
8337rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
5e13499c 8339fi
a82a04b3 8340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5e13499c
CR
8341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8342if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 8343 cat >>confdefs.h <<_ACEOF
5e13499c 8344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 8345_ACEOF
5e13499c
CR
8346
8347fi
8348done
8349
a82a04b3
CR
8350
8351
8352
8353
8354
8355
5e13499c
CR
8356 am_save_CPPFLAGS="$CPPFLAGS"
8357
8358 for element in $INCICONV; do
8359 haveit=
8360 for x in $CPPFLAGS; do
8361
8362 acl_save_prefix="$prefix"
8363 prefix="$acl_final_prefix"
8364 acl_save_exec_prefix="$exec_prefix"
8365 exec_prefix="$acl_final_exec_prefix"
8366 eval x=\"$x\"
8367 exec_prefix="$acl_save_exec_prefix"
8368 prefix="$acl_save_prefix"
8369
8370 if test "X$x" = "X$element"; then
8371 haveit=yes
8372 break
8373 fi
8374 done
8375 if test -z "$haveit"; then
8376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8377 fi
8378 done
8379
a82a04b3
CR
8380
8381 echo "$as_me:$LINENO: checking for iconv" >&5
5e13499c
CR
8382echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8383if test "${am_cv_func_iconv+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386
8387 am_cv_func_iconv="no, consider installing GNU libiconv"
8388 am_cv_lib_iconv=no
8389 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
8390/* confdefs.h. */
8391_ACEOF
8392cat confdefs.h >>conftest.$ac_ext
8393cat >>conftest.$ac_ext <<_ACEOF
8394/* end confdefs.h. */
5e13499c
CR
8395#include <stdlib.h>
8396#include <iconv.h>
8397int
8398main ()
8399{
8400iconv_t cd = iconv_open("","");
8401 iconv(cd,NULL,NULL,NULL,NULL);
8402 iconv_close(cd);
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
8408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>conftest.er1
5e13499c 8410 ac_status=$?
a82a04b3
CR
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8415 (exit $ac_status); } &&
a82a04b3
CR
8416 { ac_try='test -z "$ac_c_werror_flag"
8417 || test ! -s conftest.err'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
a82a04b3
CR
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest$ac_exeext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8428 (exit $ac_status); }; }; then
8429 am_cv_func_iconv=yes
8430else
8431 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8432sed 's/^/| /' conftest.$ac_ext >&5
8433
5e13499c 8434fi
a82a04b3
CR
8435rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
8437 if test "$am_cv_func_iconv" != yes; then
8438 am_save_LIBS="$LIBS"
8439 LIBS="$LIBS $LIBICONV"
8440 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
5e13499c
CR
8446#include <stdlib.h>
8447#include <iconv.h>
8448int
8449main ()
8450{
8451iconv_t cd = iconv_open("","");
8452 iconv(cd,NULL,NULL,NULL,NULL);
8453 iconv_close(cd);
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
8459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>conftest.er1
5e13499c 8461 ac_status=$?
a82a04b3
CR
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8466 (exit $ac_status); } &&
a82a04b3
CR
8467 { ac_try='test -z "$ac_c_werror_flag"
8468 || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
a82a04b3 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8479 (exit $ac_status); }; }; then
8480 am_cv_lib_iconv=yes
8481 am_cv_func_iconv=yes
8482else
8483 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
5e13499c 8486fi
a82a04b3
CR
8487rm -f conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
8489 LIBS="$am_save_LIBS"
8490 fi
8491
8492fi
a82a04b3 8493echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5e13499c
CR
8494echo "${ECHO_T}$am_cv_func_iconv" >&6
8495 if test "$am_cv_func_iconv" = yes; then
8496
a82a04b3 8497cat >>confdefs.h <<\_ACEOF
5e13499c 8498#define HAVE_ICONV 1
a82a04b3 8499_ACEOF
5e13499c
CR
8500
8501 fi
8502 if test "$am_cv_lib_iconv" = yes; then
a82a04b3 8503 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5e13499c 8504echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
a82a04b3 8505 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5e13499c
CR
8506echo "${ECHO_T}$LIBICONV" >&6
8507 else
8508 CPPFLAGS="$am_save_CPPFLAGS"
8509 LIBICONV=
8510 LTLIBICONV=
8511 fi
8512
a82a04b3
CR
8513
8514
5e13499c 8515 if test "$am_cv_func_iconv" = yes; then
a82a04b3 8516 echo "$as_me:$LINENO: checking for iconv declaration" >&5
5e13499c
CR
8517echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8518 if test "${am_cv_proto_iconv+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520else
8521
8522 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
8523/* confdefs.h. */
8524_ACEOF
8525cat confdefs.h >>conftest.$ac_ext
8526cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */
5e13499c
CR
8528
8529#include <stdlib.h>
8530#include <iconv.h>
8531extern
8532#ifdef __cplusplus
8533"C"
8534#endif
8535#if defined(__STDC__) || defined(__cplusplus)
8536size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8537#else
8538size_t iconv();
8539#endif
8540
8541int
8542main ()
8543{
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext
a82a04b3
CR
8550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>conftest.er1
5e13499c 8552 ac_status=$?
a82a04b3
CR
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8557 (exit $ac_status); } &&
a82a04b3
CR
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
a82a04b3 8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8570 (exit $ac_status); }; }; then
8571 am_cv_proto_iconv_arg1=""
8572else
8573 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
5e13499c
CR
8576am_cv_proto_iconv_arg1="const"
8577fi
a82a04b3 8578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5e13499c
CR
8579 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);"
8580fi
8581
8582 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
a82a04b3 8583 echo "$as_me:$LINENO: result: ${ac_t:-
5e13499c
CR
8584 }$am_cv_proto_iconv" >&5
8585echo "${ECHO_T}${ac_t:-
8586 }$am_cv_proto_iconv" >&6
8587
a82a04b3 8588cat >>confdefs.h <<_ACEOF
5e13499c 8589#define ICONV_CONST $am_cv_proto_iconv_arg1
a82a04b3 8590_ACEOF
5e13499c
CR
8591
8592 fi
8593
a82a04b3
CR
8594
8595 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
5e13499c
CR
8596echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8597if test "${am_cv_langinfo_codeset+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599else
8600 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
5e13499c
CR
8606#include <langinfo.h>
8607int
8608main ()
8609{
8610char* cs = nl_langinfo(CODESET);
8611 ;
8612 return 0;
8613}
8614_ACEOF
8615rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
8616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>conftest.er1
5e13499c 8618 ac_status=$?
a82a04b3
CR
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8623 (exit $ac_status); } &&
a82a04b3
CR
8624 { ac_try='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
a82a04b3
CR
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8636 (exit $ac_status); }; }; then
8637 am_cv_langinfo_codeset=yes
8638else
8639 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8640sed 's/^/| /' conftest.$ac_ext >&5
8641
5e13499c
CR
8642am_cv_langinfo_codeset=no
8643fi
a82a04b3
CR
8644rm -f conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
8646
8647fi
a82a04b3 8648echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
5e13499c
CR
8649echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8650 if test $am_cv_langinfo_codeset = yes; then
8651
a82a04b3 8652cat >>confdefs.h <<\_ACEOF
5e13499c 8653#define HAVE_LANGINFO_CODESET 1
a82a04b3 8654_ACEOF
5e13499c
CR
8655
8656 fi
8657
8658 if test $ac_cv_header_locale_h = yes; then
8659
a82a04b3 8660 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5e13499c
CR
8661echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8662if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h. */
5e13499c
CR
8671#include <locale.h>
8672int
8673main ()
8674{
8675return LC_MESSAGES
8676 ;
8677 return 0;
8678}
8679_ACEOF
8680rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
8681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8682 (eval $ac_link) 2>conftest.er1
5e13499c 8683 ac_status=$?
a82a04b3
CR
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8688 (exit $ac_status); } &&
a82a04b3
CR
8689 { ac_try='test -z "$ac_c_werror_flag"
8690 || test ! -s conftest.err'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
a82a04b3
CR
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 (eval $ac_try) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8701 (exit $ac_status); }; }; then
8702 am_cv_val_LC_MESSAGES=yes
8703else
8704 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8705sed 's/^/| /' conftest.$ac_ext >&5
8706
5e13499c
CR
8707am_cv_val_LC_MESSAGES=no
8708fi
a82a04b3
CR
8709rm -f conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
5e13499c 8711fi
a82a04b3 8712echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5e13499c
CR
8713echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8714 if test $am_cv_val_LC_MESSAGES = yes; then
8715
a82a04b3 8716cat >>confdefs.h <<\_ACEOF
5e13499c 8717#define HAVE_LC_MESSAGES 1
a82a04b3 8718_ACEOF
5e13499c
CR
8719
8720 fi
8721
8722 fi
8723
8724 for ac_prog in bison
8725do
8726 # Extract the first word of "$ac_prog", so it can be a program name with args.
8727set dummy $ac_prog; ac_word=$2
a82a04b3 8728echo "$as_me:$LINENO: checking for $ac_word" >&5
5e13499c
CR
8729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8730if test "${ac_cv_prog_INTLBISON+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732else
8733 if test -n "$INTLBISON"; then
8734 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8735else
a82a04b3
CR
8736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_INTLBISON="$ac_prog"
8744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8746 fi
8747done
5e13499c
CR
8748done
8749
8750fi
8751fi
8752INTLBISON=$ac_cv_prog_INTLBISON
8753if test -n "$INTLBISON"; then
a82a04b3 8754 echo "$as_me:$LINENO: result: $INTLBISON" >&5
5e13499c
CR
8755echo "${ECHO_T}$INTLBISON" >&6
8756else
a82a04b3 8757 echo "$as_me:$LINENO: result: no" >&5
5e13499c
CR
8758echo "${ECHO_T}no" >&6
8759fi
8760
8761 test -n "$INTLBISON" && break
8762done
8763
8764 if test -z "$INTLBISON"; then
8765 ac_verc_fail=yes
8766 else
a82a04b3 8767 echo "$as_me:$LINENO: checking version of bison" >&5
5e13499c 8768echo $ECHO_N "checking version of bison... $ECHO_C" >&6
e624d0f7
CR
8769 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8772 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8773 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8774 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8775 esac
a82a04b3 8776 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
e624d0f7
CR
8777echo "${ECHO_T}$ac_prog_version" >&6
8778 fi
8779 if test $ac_verc_fail = yes; then
8780 INTLBISON=:
8781 fi
545f34cf 8782
a82a04b3
CR
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5e13499c
CR
8799echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8800 # Check whether --enable-nls or --disable-nls was given.
8801if test "${enable_nls+set}" = set; then
8802 enableval="$enable_nls"
8803 USE_NLS=$enableval
8804else
8805 USE_NLS=yes
8806fi;
a82a04b3 8807 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5e13499c
CR
8808echo "${ECHO_T}$USE_NLS" >&6
8809
a82a04b3
CR
8810
8811
8812
5e13499c
CR
8813 BUILD_INCLUDED_LIBINTL=no
8814 USE_INCLUDED_LIBINTL=no
8815
8816 LIBINTL=
8817 LTLIBINTL=
8818 POSUB=
8819
8820 if test "$USE_NLS" = "yes"; then
8821 gt_use_preinstalled_gnugettext=no
8822
a82a04b3 8823 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
5e13499c
CR
8824echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8825
8826# Check whether --with-included-gettext or --without-included-gettext was given.
8827if test "${with_included_gettext+set}" = set; then
8828 withval="$with_included_gettext"
8829 nls_cv_force_use_gnu_gettext=$withval
8830else
8831 nls_cv_force_use_gnu_gettext=no
8832fi;
a82a04b3 8833 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
5e13499c
CR
8834echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8835
8836 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8837 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8838
a82a04b3
CR
8839
8840
8841
8842
8843
8844 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5e13499c
CR
8845echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8846if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848else
8849 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
8850/* confdefs.h. */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h. */
5e13499c
CR
8855#include <libintl.h>
8856extern int _nl_msg_cat_cntr;
8857extern int *_nl_domain_bindings;
8858int
8859main ()
8860{
8861bindtextdomain ("", "");
8862return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8863 ;
8864 return 0;
8865}
8866_ACEOF
8867rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
8868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
5e13499c 8870 ac_status=$?
a82a04b3
CR
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 8875 (exit $ac_status); } &&
a82a04b3
CR
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
a82a04b3
CR
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
8888 (exit $ac_status); }; }; then
8889 gt_cv_func_gnugettext2_libc=yes
8890else
8891 echo "$as_me: failed program was:" >&5
a82a04b3
CR
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
5e13499c
CR
8894gt_cv_func_gnugettext2_libc=no
8895fi
a82a04b3
CR
8896rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
5e13499c 8898fi
a82a04b3 8899echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
5e13499c
CR
8900echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8901
8902 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8903
a82a04b3
CR
8904
8905
5e13499c
CR
8906 use_additional=yes
8907
8908 acl_save_prefix="$prefix"
8909 prefix="$acl_final_prefix"
8910 acl_save_exec_prefix="$exec_prefix"
8911 exec_prefix="$acl_final_exec_prefix"
8912
8913 eval additional_includedir=\"$includedir\"
8914 eval additional_libdir=\"$libdir\"
8915
8916 exec_prefix="$acl_save_exec_prefix"
8917 prefix="$acl_save_prefix"
8918
a82a04b3 8919
5e13499c
CR
8920# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8921if test "${with_libintl_prefix+set}" = set; then
8922 withval="$with_libintl_prefix"
8923
8924 if test "X$withval" = "Xno"; then
8925 use_additional=no
8926 else
8927 if test "X$withval" = "X"; then
8928
8929 acl_save_prefix="$prefix"
8930 prefix="$acl_final_prefix"
8931 acl_save_exec_prefix="$exec_prefix"
8932 exec_prefix="$acl_final_exec_prefix"
8933
8934 eval additional_includedir=\"$includedir\"
8935 eval additional_libdir=\"$libdir\"
8936
8937 exec_prefix="$acl_save_exec_prefix"
8938 prefix="$acl_save_prefix"
8939
8940 else
8941 additional_includedir="$withval/include"
8942 additional_libdir="$withval/lib"
8943 fi
8944 fi
8945
8946fi;
8947 LIBINTL=
8948 LTLIBINTL=
8949 INCINTL=
8950 rpathdirs=
8951 ltrpathdirs=
8952 names_already_handled=
8953 names_next_round='intl '
8954 while test -n "$names_next_round"; do
8955 names_this_round="$names_next_round"
8956 names_next_round=
8957 for name in $names_this_round; do
8958 already_handled=
8959 for n in $names_already_handled; do
8960 if test "$n" = "$name"; then
8961 already_handled=yes
8962 break
8963 fi
8964 done
8965 if test -z "$already_handled"; then
8966 names_already_handled="$names_already_handled $name"
8967 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8968 eval value=\"\$HAVE_LIB$uppername\"
8969 if test -n "$value"; then
8970 if test "$value" = yes; then
8971 eval value=\"\$LIB$uppername\"
8972 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8973 eval value=\"\$LTLIB$uppername\"
8974 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8975 else
8976 :
8977 fi
8978 else
8979 found_dir=
8980 found_la=
8981 found_so=
8982 found_a=
8983 if test $use_additional = yes; then
8984 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8985 found_dir="$additional_libdir"
8986 found_so="$additional_libdir/lib$name.$shlibext"
8987 if test -f "$additional_libdir/lib$name.la"; then
8988 found_la="$additional_libdir/lib$name.la"
8989 fi
8990 else
8991 if test -f "$additional_libdir/lib$name.$libext"; then
8992 found_dir="$additional_libdir"
8993 found_a="$additional_libdir/lib$name.$libext"
8994 if test -f "$additional_libdir/lib$name.la"; then
8995 found_la="$additional_libdir/lib$name.la"
8996 fi
8997 fi
8998 fi
8999 fi
9000 if test "X$found_dir" = "X"; then
9001 for x in $LDFLAGS $LTLIBINTL; do
9002
9003 acl_save_prefix="$prefix"
9004 prefix="$acl_final_prefix"
9005 acl_save_exec_prefix="$exec_prefix"
9006 exec_prefix="$acl_final_exec_prefix"
9007 eval x=\"$x\"
9008 exec_prefix="$acl_save_exec_prefix"
9009 prefix="$acl_save_prefix"
9010
9011 case "$x" in
9012 -L*)
9013 dir=`echo "X$x" | sed -e 's/^X-L//'`
9014 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9015 found_dir="$dir"
9016 found_so="$dir/lib$name.$shlibext"
9017 if test -f "$dir/lib$name.la"; then
9018 found_la="$dir/lib$name.la"
9019 fi
9020 else
9021 if test -f "$dir/lib$name.$libext"; then
9022 found_dir="$dir"
9023 found_a="$dir/lib$name.$libext"
9024 if test -f "$dir/lib$name.la"; then
9025 found_la="$dir/lib$name.la"
9026 fi
9027 fi
9028 fi
9029 ;;
9030 esac
9031 if test "X$found_dir" != "X"; then
9032 break
9033 fi
9034 done
9035 fi
9036 if test "X$found_dir" != "X"; then
9037 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9038 if test "X$found_so" != "X"; then
9039 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9040 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9041 else
9042 haveit=
9043 for x in $ltrpathdirs; do
9044 if test "X$x" = "X$found_dir"; then
9045 haveit=yes
9046 break
9047 fi
9048 done
9049 if test -z "$haveit"; then
9050 ltrpathdirs="$ltrpathdirs $found_dir"
9051 fi
9052 if test "$hardcode_direct" = yes; then
9053 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9054 else
9055 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9056 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9057 haveit=
9058 for x in $rpathdirs; do
9059 if test "X$x" = "X$found_dir"; then
9060 haveit=yes
9061 break
9062 fi
9063 done
9064 if test -z "$haveit"; then
9065 rpathdirs="$rpathdirs $found_dir"
9066 fi
9067 else
9068 haveit=
9069 for x in $LDFLAGS $LIBINTL; do
9070
9071 acl_save_prefix="$prefix"
9072 prefix="$acl_final_prefix"
9073 acl_save_exec_prefix="$exec_prefix"
9074 exec_prefix="$acl_final_exec_prefix"
9075 eval x=\"$x\"
9076 exec_prefix="$acl_save_exec_prefix"
9077 prefix="$acl_save_prefix"
9078
9079 if test "X$x" = "X-L$found_dir"; then
9080 haveit=yes
9081 break
9082 fi
9083 done
9084 if test -z "$haveit"; then
9085 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9086 fi
9087 if test "$hardcode_minus_L" != no; then
9088 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9089 else
9090 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9091 fi
9092 fi
9093 fi
9094 fi
9095 else
9096 if test "X$found_a" != "X"; then
9097 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9098 else
9099 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9100 fi
9101 fi
9102 additional_includedir=
9103 case "$found_dir" in
9104 */lib | */lib/)
9105 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9106 additional_includedir="$basedir/include"
9107 ;;
9108 esac
9109 if test "X$additional_includedir" != "X"; then
9110 if test "X$additional_includedir" != "X/usr/include"; then
9111 haveit=
9112 if test "X$additional_includedir" = "X/usr/local/include"; then
9113 if test -n "$GCC"; then
9114 case $host_os in
9115 linux*) haveit=yes;;
9116 esac
9117 fi
9118 fi
9119 if test -z "$haveit"; then
9120 for x in $CPPFLAGS $INCINTL; do
9121
9122 acl_save_prefix="$prefix"
9123 prefix="$acl_final_prefix"
9124 acl_save_exec_prefix="$exec_prefix"
9125 exec_prefix="$acl_final_exec_prefix"
9126 eval x=\"$x\"
9127 exec_prefix="$acl_save_exec_prefix"
9128 prefix="$acl_save_prefix"
9129
9130 if test "X$x" = "X-I$additional_includedir"; then
9131 haveit=yes
9132 break
9133 fi
9134 done
9135 if test -z "$haveit"; then
9136 if test -d "$additional_includedir"; then
9137 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9138 fi
9139 fi
9140 fi
9141 fi
9142 fi
9143 if test -n "$found_la"; then
9144 save_libdir="$libdir"
9145 case "$found_la" in
9146 */* | *\\*) . "$found_la" ;;
9147 *) . "./$found_la" ;;
9148 esac
9149 libdir="$save_libdir"
9150 for dep in $dependency_libs; do
9151 case "$dep" in
9152 -L*)
9153 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9154 if test "X$additional_libdir" != "X/usr/lib"; then
9155 haveit=
9156 if test "X$additional_libdir" = "X/usr/local/lib"; then
9157 if test -n "$GCC"; then
9158 case $host_os in
9159 linux*) haveit=yes;;
9160 esac
9161 fi
9162 fi
9163 if test -z "$haveit"; then
9164 haveit=
9165 for x in $LDFLAGS $LIBINTL; do
9166
9167 acl_save_prefix="$prefix"
9168 prefix="$acl_final_prefix"
9169 acl_save_exec_prefix="$exec_prefix"
9170 exec_prefix="$acl_final_exec_prefix"
9171 eval x=\"$x\"
9172 exec_prefix="$acl_save_exec_prefix"
9173 prefix="$acl_save_prefix"
9174
9175 if test "X$x" = "X-L$additional_libdir"; then
9176 haveit=yes
9177 break
9178 fi
9179 done
9180 if test -z "$haveit"; then
9181 if test -d "$additional_libdir"; then
9182 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9183 fi
9184 fi
9185 haveit=
9186 for x in $LDFLAGS $LTLIBINTL; do
9187
9188 acl_save_prefix="$prefix"
9189 prefix="$acl_final_prefix"
9190 acl_save_exec_prefix="$exec_prefix"
9191 exec_prefix="$acl_final_exec_prefix"
9192 eval x=\"$x\"
9193 exec_prefix="$acl_save_exec_prefix"
9194 prefix="$acl_save_prefix"
9195
9196 if test "X$x" = "X-L$additional_libdir"; then
9197 haveit=yes
9198 break
9199 fi
9200 done
9201 if test -z "$haveit"; then
9202 if test -d "$additional_libdir"; then
9203 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9204 fi
9205 fi
9206 fi
9207 fi
9208 ;;
9209 -R*)
9210 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9211 if test "$enable_rpath" != no; then
9212 haveit=
9213 for x in $rpathdirs; do
9214 if test "X$x" = "X$dir"; then
9215 haveit=yes
9216 break
9217 fi
9218 done
9219 if test -z "$haveit"; then
9220 rpathdirs="$rpathdirs $dir"
9221 fi
9222 haveit=
9223 for x in $ltrpathdirs; do
9224 if test "X$x" = "X$dir"; then
9225 haveit=yes
9226 break
9227 fi
9228 done
9229 if test -z "$haveit"; then
9230 ltrpathdirs="$ltrpathdirs $dir"
9231 fi
9232 fi
9233 ;;
9234 -l*)
9235 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9236 ;;
9237 *.la)
9238 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9239 ;;
9240 *)
9241 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9243 ;;
9244 esac
9245 done
9246 fi
9247 else
9248 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9249 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9250 fi
9251 fi
9252 fi
9253 done
9254 done
9255 if test "X$rpathdirs" != "X"; then
9256 if test -n "$hardcode_libdir_separator"; then
9257 alldirs=
9258 for found_dir in $rpathdirs; do
9259 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9260 done
9261 acl_save_libdir="$libdir"
9262 libdir="$alldirs"
9263 eval flag=\"$hardcode_libdir_flag_spec\"
9264 libdir="$acl_save_libdir"
9265 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9266 else
9267 for found_dir in $rpathdirs; do
9268 acl_save_libdir="$libdir"
9269 libdir="$found_dir"
9270 eval flag=\"$hardcode_libdir_flag_spec\"
9271 libdir="$acl_save_libdir"
9272 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9273 done
9274 fi
9275 fi
9276 if test "X$ltrpathdirs" != "X"; then
9277 for found_dir in $ltrpathdirs; do
9278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9279 done
9280 fi
9281
a82a04b3 9282 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5e13499c
CR
9283echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9284if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286else
9287 gt_save_CPPFLAGS="$CPPFLAGS"
9288 CPPFLAGS="$CPPFLAGS $INCINTL"
9289 gt_save_LIBS="$LIBS"
9290 LIBS="$LIBS $LIBINTL"
9291 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
5e13499c
CR
9297#include <libintl.h>
9298extern int _nl_msg_cat_cntr;
9299extern
9300#ifdef __cplusplus
9301"C"
9302#endif
9303const char *_nl_expand_alias ();
9304int
9305main ()
9306{
9307bindtextdomain ("", "");
9308return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
9314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>conftest.er1
5e13499c 9316 ac_status=$?
a82a04b3
CR
9317 grep -v '^ *+' conftest.er1 >conftest.err
9318 rm -f conftest.er1
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 9321 (exit $ac_status); } &&
a82a04b3
CR
9322 { ac_try='test -z "$ac_c_werror_flag"
9323 || test ! -s conftest.err'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 (eval $ac_try) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; } &&
9329 { ac_try='test -s conftest$ac_exeext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5e13499c
CR
9331 (eval $ac_try) 2>&5
9332 ac_status=$?
a82a04b3 9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
9334 (exit $ac_status); }; }; then
9335 gt_cv_func_gnugettext2_libintl=yes
9336else
9337 echo "$as_me: failed program was:" >&5
a82a04b3
CR
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
5e13499c
CR
9340gt_cv_func_gnugettext2_libintl=no
9341fi
a82a04b3
CR
9342rm -f conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
9344 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9345 LIBS="$LIBS $LIBICONV"
9346 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
9347/* confdefs.h. */
9348_ACEOF
9349cat confdefs.h >>conftest.$ac_ext
9350cat >>conftest.$ac_ext <<_ACEOF
9351/* end confdefs.h. */
5e13499c
CR
9352#include <libintl.h>
9353extern int _nl_msg_cat_cntr;
9354extern
9355#ifdef __cplusplus
9356"C"
9357#endif
9358const char *_nl_expand_alias ();
9359int
9360main ()
9361{
9362bindtextdomain ("", "");
9363return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
9369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>conftest.er1
5e13499c 9371 ac_status=$?
a82a04b3
CR
9372 grep -v '^ *+' conftest.er1 >conftest.err
9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 9376 (exit $ac_status); } &&
a82a04b3
CR
9377 { ac_try='test -z "$ac_c_werror_flag"
9378 || test ! -s conftest.err'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try='test -s conftest$ac_exeext'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
a82a04b3 9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9389 (exit $ac_status); }; }; then
5e13499c
CR
9390 LIBINTL="$LIBINTL $LIBICONV"
9391 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9392 gt_cv_func_gnugettext2_libintl=yes
9393
ccc6cda3 9394else
f73dda09 9395 echo "$as_me: failed program was:" >&5
a82a04b3
CR
9396sed 's/^/| /' conftest.$ac_ext >&5
9397
ccc6cda3 9398fi
a82a04b3
CR
9399rm -f conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
5e13499c
CR
9401 fi
9402 CPPFLAGS="$gt_save_CPPFLAGS"
9403 LIBS="$gt_save_LIBS"
9404fi
a82a04b3 9405echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
5e13499c
CR
9406echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9407 fi
9408
9409 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9410 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9411 && test "$PACKAGE" != gettext-runtime \
9412 && test "$PACKAGE" != gettext-tools; }; then
9413 gt_use_preinstalled_gnugettext=yes
9414 else
9415 LIBINTL=
9416 LTLIBINTL=
9417 INCINTL=
9418 fi
9419
a82a04b3 9420
5e13499c
CR
9421 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9422 nls_cv_use_gnu_gettext=yes
9423 fi
9424 fi
9425
9426 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9427 BUILD_INCLUDED_LIBINTL=yes
9428 USE_INCLUDED_LIBINTL=yes
9429 LIBINTL="lib/intl/libintl.a $LIBICONV"
9430 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9431 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9432 fi
9433
9434 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9435 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9436 CATOBJEXT=.gmo
9437 fi
9438
a82a04b3 9439
5e13499c
CR
9440 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9441 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9442
a82a04b3 9443cat >>confdefs.h <<\_ACEOF
5e13499c 9444#define ENABLE_NLS 1
a82a04b3 9445_ACEOF
ccc6cda3 9446
5e13499c
CR
9447 else
9448 USE_NLS=no
9449 fi
9450 fi
9451
a82a04b3 9452 echo "$as_me:$LINENO: checking whether to use NLS" >&5
5e13499c 9453echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
a82a04b3 9454 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5e13499c
CR
9455echo "${ECHO_T}$USE_NLS" >&6
9456 if test "$USE_NLS" = "yes"; then
a82a04b3 9457 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5e13499c
CR
9458echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9459 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9460 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9461 gt_source="external libintl"
9462 else
9463 gt_source="libc"
9464 fi
9465 else
9466 gt_source="included intl directory"
9467 fi
a82a04b3 9468 echo "$as_me:$LINENO: result: $gt_source" >&5
5e13499c
CR
9469echo "${ECHO_T}$gt_source" >&6
9470 fi
9471
9472 if test "$USE_NLS" = "yes"; then
9473
9474 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9475 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
a82a04b3 9476 echo "$as_me:$LINENO: checking how to link with libintl" >&5
5e13499c 9477echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
a82a04b3 9478 echo "$as_me:$LINENO: result: $LIBINTL" >&5
5e13499c
CR
9479echo "${ECHO_T}$LIBINTL" >&6
9480
9481 for element in $INCINTL; do
9482 haveit=
9483 for x in $CPPFLAGS; do
9484
9485 acl_save_prefix="$prefix"
9486 prefix="$acl_final_prefix"
9487 acl_save_exec_prefix="$exec_prefix"
9488 exec_prefix="$acl_final_exec_prefix"
9489 eval x=\"$x\"
9490 exec_prefix="$acl_save_exec_prefix"
9491 prefix="$acl_save_prefix"
9492
9493 if test "X$x" = "X$element"; then
9494 haveit=yes
9495 break
9496 fi
9497 done
9498 if test -z "$haveit"; then
9499 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9500 fi
9501 done
9502
9503 fi
9504
a82a04b3
CR
9505
9506cat >>confdefs.h <<\_ACEOF
5e13499c 9507#define HAVE_GETTEXT 1
a82a04b3 9508_ACEOF
5e13499c 9509
a82a04b3
CR
9510
9511cat >>confdefs.h <<\_ACEOF
5e13499c 9512#define HAVE_DCGETTEXT 1
a82a04b3 9513_ACEOF
5e13499c
CR
9514
9515 fi
9516
9517 POSUB=po
9518 fi
9519
a82a04b3 9520
5e13499c
CR
9521 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9522 BUILD_INCLUDED_LIBINTL=yes
9523 fi
9524
a82a04b3
CR
9525
9526
9527
9528
5e13499c
CR
9529 nls_cv_header_intl=
9530 nls_cv_header_libgt=
9531
9532 DATADIRNAME=share
9533
a82a04b3 9534
5e13499c
CR
9535 INSTOBJEXT=.mo
9536
a82a04b3 9537
5e13499c
CR
9538 GENCAT=gencat
9539
a82a04b3 9540
5e13499c
CR
9541 if test "$USE_INCLUDED_LIBINTL" = yes; then
9542 INTLOBJS="\$(GETTOBJS)"
9543 fi
9544
a82a04b3 9545
5e13499c
CR
9546 INTL_LIBTOOL_SUFFIX_PREFIX=
9547
a82a04b3
CR
9548
9549
5e13499c 9550 INTLLIBS="$LIBINTL"
ccc6cda3 9551
a82a04b3
CR
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
f73dda09
JA
9563ac_header_dirent=no
9564for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9565 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
a82a04b3 9566echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
f73dda09
JA
9567echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9568if eval "test \"\${$as_ac_Header+set}\" = set"; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 9570else
f73dda09 9571 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h. */
ccc6cda3 9577#include <sys/types.h>
f73dda09 9578#include <$ac_hdr>
ccc6cda3 9579
f73dda09
JA
9580int
9581main ()
9582{
9583if ((DIR *) 0)
9584return 0;
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589rm -f conftest.$ac_objext
a82a04b3
CR
9590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
f73dda09 9592 ac_status=$?
a82a04b3
CR
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9597 (exit $ac_status); } &&
a82a04b3
CR
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
a82a04b3 9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
9610 (exit $ac_status); }; }; then
9611 eval "$as_ac_Header=yes"
ccc6cda3 9612else
f73dda09 9613 echo "$as_me: failed program was:" >&5
a82a04b3
CR
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
f73dda09 9616eval "$as_ac_Header=no"
ccc6cda3 9617fi
a82a04b3 9618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 9619fi
a82a04b3 9620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09
JA
9621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9622if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 9623 cat >>confdefs.h <<_ACEOF
f73dda09 9624#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
a82a04b3 9625_ACEOF
ccc6cda3 9626
f73dda09
JA
9627ac_header_dirent=$ac_hdr; break
9628fi
ccc6cda3 9629
f73dda09
JA
9630done
9631# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9632if test $ac_header_dirent = dirent.h; then
a82a04b3
CR
9633 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9634echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9635if test "${ac_cv_search_opendir+set}" = set; then
f73dda09 9636 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 9637else
a82a04b3
CR
9638 ac_func_search_save_LIBS=$LIBS
9639ac_cv_search_opendir=no
f73dda09 9640cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
9641/* confdefs.h. */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h. */
545f34cf
CR
9646
9647/* Override any gcc2 internal prototype to avoid an error. */
9648#ifdef __cplusplus
9649extern "C"
9650#endif
9651/* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9653char opendir ();
9654int
9655main ()
9656{
9657opendir ();
9658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
9663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>conftest.er1
545f34cf 9665 ac_status=$?
a82a04b3
CR
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf 9670 (exit $ac_status); } &&
a82a04b3
CR
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
545f34cf
CR
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
a82a04b3
CR
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest$ac_exeext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf 9683 (exit $ac_status); }; }; then
a82a04b3 9684 ac_cv_search_opendir="none required"
545f34cf
CR
9685else
9686 echo "$as_me: failed program was:" >&5
a82a04b3
CR
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
545f34cf 9689fi
a82a04b3
CR
9690rm -f conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692if test "$ac_cv_search_opendir" = no; then
9693 for ac_lib in dir; do
9694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
9701
9702/* Override any gcc2 internal prototype to avoid an error. */
9703#ifdef __cplusplus
9704extern "C"
9705#endif
9706/* We use char because int might match the return type of a gcc2
9707 builtin and then its argument prototype would still apply. */
9708char opendir ();
9709int
9710main ()
9711{
9712opendir ();
9713 ;
9714 return 0;
9715}
9716_ACEOF
9717rm -f conftest.$ac_objext conftest$ac_exeext
9718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>conftest.er1
9720 ac_status=$?
9721 grep -v '^ *+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -z "$ac_c_werror_flag"
9727 || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 ac_cv_search_opendir="-l$ac_lib"
9740break
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
9745fi
9746rm -f conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 done
545f34cf 9749fi
a82a04b3
CR
9750LIBS=$ac_func_search_save_LIBS
9751fi
9752echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9753echo "${ECHO_T}$ac_cv_search_opendir" >&6
9754if test "$ac_cv_search_opendir" != no; then
9755 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9756
f73dda09 9757fi
ccc6cda3
JA
9758
9759else
a82a04b3
CR
9760 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9761echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9762if test "${ac_cv_search_opendir+set}" = set; then
f73dda09 9763 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 9764else
a82a04b3
CR
9765 ac_func_search_save_LIBS=$LIBS
9766ac_cv_search_opendir=no
f73dda09 9767cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
545f34cf
CR
9773
9774/* Override any gcc2 internal prototype to avoid an error. */
9775#ifdef __cplusplus
9776extern "C"
9777#endif
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char opendir ();
9781int
9782main ()
9783{
9784opendir ();
9785 ;
9786 return 0;
9787}
9788_ACEOF
9789rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
9790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791 (eval $ac_link) 2>conftest.er1
545f34cf 9792 ac_status=$?
a82a04b3
CR
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf 9797 (exit $ac_status); } &&
a82a04b3
CR
9798 { ac_try='test -z "$ac_c_werror_flag"
9799 || test ! -s conftest.err'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
545f34cf
CR
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
a82a04b3
CR
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf 9810 (exit $ac_status); }; }; then
a82a04b3 9811 ac_cv_search_opendir="none required"
545f34cf
CR
9812else
9813 echo "$as_me: failed program was:" >&5
a82a04b3
CR
9814sed 's/^/| /' conftest.$ac_ext >&5
9815
f73dda09 9816fi
a82a04b3
CR
9817rm -f conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819if test "$ac_cv_search_opendir" = no; then
9820 for ac_lib in x; do
9821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828
9829/* Override any gcc2 internal prototype to avoid an error. */
9830#ifdef __cplusplus
9831extern "C"
9832#endif
9833/* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9835char opendir ();
9836int
9837main ()
9838{
9839opendir ();
9840 ;
9841 return 0;
9842}
9843_ACEOF
9844rm -f conftest.$ac_objext conftest$ac_exeext
9845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest$ac_exeext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_search_opendir="-l$ac_lib"
9867break
9868else
9869 echo "$as_me: failed program was:" >&5
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
9872fi
9873rm -f conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 done
9876fi
9877LIBS=$ac_func_search_save_LIBS
545f34cf 9878fi
a82a04b3
CR
9879echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9880echo "${ECHO_T}$ac_cv_search_opendir" >&6
9881if test "$ac_cv_search_opendir" != no; then
9882 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9883
f73dda09 9884fi
ccc6cda3 9885
545f34cf
CR
9886fi
9887
a82a04b3 9888echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
f73dda09
JA
9889echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9890if test "${ac_cv_header_time+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892else
9893 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h. */
f73dda09
JA
9899#include <sys/types.h>
9900#include <sys/time.h>
9901#include <time.h>
ccc6cda3 9902
f73dda09
JA
9903int
9904main ()
9905{
9906if ((struct tm *) 0)
9907return 0;
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext
a82a04b3
CR
9913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914 (eval $ac_compile) 2>conftest.er1
f73dda09 9915 ac_status=$?
a82a04b3
CR
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9920 (exit $ac_status); } &&
a82a04b3
CR
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
a82a04b3 9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
9933 (exit $ac_status); }; }; then
9934 ac_cv_header_time=yes
ccc6cda3 9935else
f73dda09 9936 echo "$as_me: failed program was:" >&5
a82a04b3
CR
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
f73dda09 9939ac_cv_header_time=no
ccc6cda3 9940fi
a82a04b3 9941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 9942fi
a82a04b3 9943echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
f73dda09
JA
9944echo "${ECHO_T}$ac_cv_header_time" >&6
9945if test $ac_cv_header_time = yes; then
ccc6cda3 9946
a82a04b3 9947cat >>confdefs.h <<\_ACEOF
f73dda09 9948#define TIME_WITH_SYS_TIME 1
a82a04b3 9949_ACEOF
ccc6cda3 9950
ccc6cda3
JA
9951fi
9952
a82a04b3
CR
9953
9954
9955
f73dda09
JA
9956for ac_header in inttypes.h
9957do
9958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
9959if eval "test \"\${$as_ac_Header+set}\" = set"; then
9960 echo "$as_me:$LINENO: checking for $ac_header" >&5
f73dda09
JA
9961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9962if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
9964fi
9965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 9967else
a82a04b3
CR
9968 # Is the header compilable?
9969echo "$as_me:$LINENO: checking $ac_header usability" >&5
9970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9971cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977$ac_includes_default
f73dda09
JA
9978#include <$ac_header>
9979_ACEOF
a82a04b3
CR
9980rm -f conftest.$ac_objext
9981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag"
9990 || test ! -s conftest.err'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest.$ac_objext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_header_compiler=yes
10003else
10004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007ac_header_compiler=no
10008fi
10009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10011echo "${ECHO_T}$ac_header_compiler" >&6
10012
10013# Is the header present?
10014echo "$as_me:$LINENO: checking $ac_header presence" >&5
10015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10016cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
10022#include <$ac_header>
10023_ACEOF
10024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
10025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10026 ac_status=$?
a82a04b3 10027 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
10028 rm -f conftest.er1
10029 cat conftest.err >&5
a82a04b3 10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10031 (exit $ac_status); } >/dev/null; then
10032 if test -s conftest.err; then
10033 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 10034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
10035 else
10036 ac_cpp_err=
10037 fi
ccc6cda3 10038else
f73dda09
JA
10039 ac_cpp_err=yes
10040fi
10041if test -z "$ac_cpp_err"; then
a82a04b3 10042 ac_header_preproc=yes
ccc6cda3 10043else
f73dda09 10044 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 ac_header_preproc=no
ccc6cda3 10048fi
f73dda09 10049rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
10050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10051echo "${ECHO_T}$ac_header_preproc" >&6
10052
10053# So? What about this header?
10054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10055 yes:no: )
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10060 ac_header_preproc=yes
10061 ;;
10062 no:yes:* )
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10075 (
10076 cat <<\_ASBOX
10077## ------------------------------- ##
10078## Report this to bug-bash@gnu.org ##
10079## ------------------------------- ##
10080_ASBOX
10081 ) |
10082 sed "s/^/$as_me: WARNING: /" >&2
10083 ;;
10084esac
10085echo "$as_me:$LINENO: checking for $ac_header" >&5
10086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10087if eval "test \"\${$as_ac_Header+set}\" = set"; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 10091fi
a82a04b3 10092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09 10093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
10094
10095fi
f73dda09 10096if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 10097 cat >>confdefs.h <<_ACEOF
f73dda09 10098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 10099_ACEOF
ccc6cda3
JA
10100
10101fi
a82a04b3 10102
f73dda09 10103done
a82a04b3
CR
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
9607141c 10123
a82a04b3 10124
ccc6cda3 10125
f73dda09
JA
10126for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10127 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9607141c 10128 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
ccc6cda3 10129do
f73dda09 10130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
10131if eval "test \"\${$as_ac_Header+set}\" = set"; then
10132 echo "$as_me:$LINENO: checking for $ac_header" >&5
f73dda09
JA
10133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10134if eval "test \"\${$as_ac_Header+set}\" = set"; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
10136fi
10137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 10139else
a82a04b3
CR
10140 # Is the header compilable?
10141echo "$as_me:$LINENO: checking $ac_header usability" >&5
10142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10143cat >conftest.$ac_ext <<_ACEOF
10144/* confdefs.h. */
10145_ACEOF
10146cat confdefs.h >>conftest.$ac_ext
10147cat >>conftest.$ac_ext <<_ACEOF
10148/* end confdefs.h. */
10149$ac_includes_default
10150#include <$ac_header>
10151_ACEOF
10152rm -f conftest.$ac_objext
10153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>conftest.er1
10155 ac_status=$?
10156 grep -v '^ *+' conftest.er1 >conftest.err
10157 rm -f conftest.er1
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag"
10162 || test ! -s conftest.err'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest.$ac_objext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 ac_header_compiler=yes
10175else
10176 echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179ac_header_compiler=no
10180fi
10181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10183echo "${ECHO_T}$ac_header_compiler" >&6
10184
10185# Is the header present?
10186echo "$as_me:$LINENO: checking $ac_header presence" >&5
10187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10188cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h. */
f73dda09
JA
10194#include <$ac_header>
10195_ACEOF
a82a04b3 10196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
10197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10198 ac_status=$?
a82a04b3 10199 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
10200 rm -f conftest.er1
10201 cat conftest.err >&5
a82a04b3 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10203 (exit $ac_status); } >/dev/null; then
10204 if test -s conftest.err; then
10205 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 10206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
10207 else
10208 ac_cpp_err=
10209 fi
ccc6cda3 10210else
f73dda09
JA
10211 ac_cpp_err=yes
10212fi
10213if test -z "$ac_cpp_err"; then
a82a04b3 10214 ac_header_preproc=yes
ccc6cda3 10215else
f73dda09 10216 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_header_preproc=no
ccc6cda3 10220fi
f73dda09 10221rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
10222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10223echo "${ECHO_T}$ac_header_preproc" >&6
10224
10225# So? What about this header?
10226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10227 yes:no: )
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10232 ac_header_preproc=yes
10233 ;;
10234 no:yes:* )
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10247 (
10248 cat <<\_ASBOX
10249## ------------------------------- ##
10250## Report this to bug-bash@gnu.org ##
10251## ------------------------------- ##
10252_ASBOX
10253 ) |
10254 sed "s/^/$as_me: WARNING: /" >&2
10255 ;;
10256esac
10257echo "$as_me:$LINENO: checking for $ac_header" >&5
10258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10259if eval "test \"\${$as_ac_Header+set}\" = set"; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261else
10262 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 10263fi
a82a04b3 10264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09 10265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
10266
10267fi
f73dda09 10268if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 10269 cat >>confdefs.h <<_ACEOF
e624d0f7 10270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 10271_ACEOF
545f34cf 10272
e624d0f7 10273fi
a82a04b3 10274
e624d0f7 10275done
545f34cf 10276
a82a04b3
CR
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
40b074c6 10289for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
545f34cf
CR
10290 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10291 sys/time.h sys/times.h sys/types.h sys/wait.h
10292do
10293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
10294if eval "test \"\${$as_ac_Header+set}\" = set"; then
10295 echo "$as_me:$LINENO: checking for $ac_header" >&5
545f34cf
CR
10296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10297if eval "test \"\${$as_ac_Header+set}\" = set"; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
10299fi
10300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 10302else
a82a04b3
CR
10303 # Is the header compilable?
10304echo "$as_me:$LINENO: checking $ac_header usability" >&5
10305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10306cat >conftest.$ac_ext <<_ACEOF
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
10312$ac_includes_default
f73dda09
JA
10313#include <$ac_header>
10314_ACEOF
a82a04b3
CR
10315rm -f conftest.$ac_objext
10316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317 (eval $ac_compile) 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest.$ac_objext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_header_compiler=yes
10338else
10339 echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342ac_header_compiler=no
10343fi
10344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10346echo "${ECHO_T}$ac_header_compiler" >&6
10347
10348# Is the header present?
10349echo "$as_me:$LINENO: checking $ac_header presence" >&5
10350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10351cat >conftest.$ac_ext <<_ACEOF
10352/* confdefs.h. */
10353_ACEOF
10354cat confdefs.h >>conftest.$ac_ext
10355cat >>conftest.$ac_ext <<_ACEOF
10356/* end confdefs.h. */
10357#include <$ac_header>
10358_ACEOF
10359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
10360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10361 ac_status=$?
a82a04b3 10362 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
10363 rm -f conftest.er1
10364 cat conftest.err >&5
a82a04b3 10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10366 (exit $ac_status); } >/dev/null; then
10367 if test -s conftest.err; then
10368 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 10369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
10370 else
10371 ac_cpp_err=
10372 fi
ccc6cda3 10373else
f73dda09
JA
10374 ac_cpp_err=yes
10375fi
10376if test -z "$ac_cpp_err"; then
a82a04b3 10377 ac_header_preproc=yes
ccc6cda3 10378else
f73dda09 10379 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
10382 ac_header_preproc=no
ccc6cda3 10383fi
f73dda09 10384rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
10385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10386echo "${ECHO_T}$ac_header_preproc" >&6
10387
10388# So? What about this header?
10389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10390 yes:no: )
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10392echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10394echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10395 ac_header_preproc=yes
10396 ;;
10397 no:yes:* )
10398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10403echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10405echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10409echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10410 (
10411 cat <<\_ASBOX
10412## ------------------------------- ##
10413## Report this to bug-bash@gnu.org ##
10414## ------------------------------- ##
10415_ASBOX
10416 ) |
10417 sed "s/^/$as_me: WARNING: /" >&2
10418 ;;
10419esac
10420echo "$as_me:$LINENO: checking for $ac_header" >&5
10421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10422if eval "test \"\${$as_ac_Header+set}\" = set"; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 10426fi
a82a04b3 10427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09 10428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
10429
10430fi
f73dda09 10431if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 10432 cat >>confdefs.h <<_ACEOF
f73dda09 10433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 10434_ACEOF
f73dda09 10435
ccc6cda3 10436fi
a82a04b3 10437
ccc6cda3
JA
10438done
10439
a82a04b3
CR
10440
10441
f73dda09 10442for ac_header in netinet/in.h arpa/inet.h
ccc6cda3 10443do
f73dda09 10444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo "$as_me:$LINENO: checking for $ac_header" >&5
f73dda09
JA
10447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
10450fi
10451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 10453else
a82a04b3
CR
10454 # Is the header compilable?
10455echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463$ac_includes_default
f73dda09
JA
10464#include <$ac_header>
10465_ACEOF
a82a04b3
CR
10466rm -f conftest.$ac_objext
10467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_header_compiler=yes
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493ac_header_compiler=no
10494fi
10495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497echo "${ECHO_T}$ac_header_compiler" >&6
10498
10499# Is the header present?
10500echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508#include <$ac_header>
10509_ACEOF
10510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
10511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 ac_status=$?
a82a04b3 10513 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
10514 rm -f conftest.er1
10515 cat conftest.err >&5
a82a04b3 10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10517 (exit $ac_status); } >/dev/null; then
10518 if test -s conftest.err; then
10519 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 10520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
10521 else
10522 ac_cpp_err=
10523 fi
ccc6cda3 10524else
f73dda09
JA
10525 ac_cpp_err=yes
10526fi
10527if test -z "$ac_cpp_err"; then
a82a04b3 10528 ac_header_preproc=yes
ccc6cda3 10529else
f73dda09 10530 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_header_preproc=no
ccc6cda3 10534fi
f73dda09 10535rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
10536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537echo "${ECHO_T}$ac_header_preproc" >&6
10538
10539# So? What about this header?
10540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 yes:no: )
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546 ac_header_preproc=yes
10547 ;;
10548 no:yes:* )
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10561 (
10562 cat <<\_ASBOX
10563## ------------------------------- ##
10564## Report this to bug-bash@gnu.org ##
10565## ------------------------------- ##
10566_ASBOX
10567 ) |
10568 sed "s/^/$as_me: WARNING: /" >&2
10569 ;;
10570esac
10571echo "$as_me:$LINENO: checking for $ac_header" >&5
10572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573if eval "test \"\${$as_ac_Header+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 10577fi
a82a04b3 10578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09 10579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
10580
10581fi
f73dda09 10582if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 10583 cat >>confdefs.h <<_ACEOF
f73dda09 10584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 10585_ACEOF
f73dda09 10586
ccc6cda3 10587fi
a82a04b3 10588
ccc6cda3
JA
10589done
10590
a82a04b3
CR
10591
10592echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
40b074c6
CR
10593echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10594if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596else
10597 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
40b074c6
CR
10603
10604#if HAVE_SYS_STREAM_H
10605# include <sys/stream.h>
10606#endif
10607
a82a04b3 10608
40b074c6
CR
10609#include <sys/ptem.h>
10610_ACEOF
10611rm -f conftest.$ac_objext
a82a04b3
CR
10612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>conftest.er1
40b074c6 10614 ac_status=$?
a82a04b3
CR
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40b074c6 10619 (exit $ac_status); } &&
a82a04b3
CR
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest.$ac_objext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40b074c6
CR
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
a82a04b3 10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40b074c6
CR
10632 (exit $ac_status); }; }; then
10633 ac_cv_header_sys_ptem_h=yes
10634else
10635 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
40b074c6
CR
10638ac_cv_header_sys_ptem_h=no
10639fi
a82a04b3 10640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40b074c6 10641fi
a82a04b3 10642echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
40b074c6
CR
10643echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10644
a82a04b3
CR
10645
10646
f73dda09
JA
10647# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10648# for constant arguments. Useless!
a82a04b3 10649echo "$as_me:$LINENO: checking for working alloca.h" >&5
f73dda09
JA
10650echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10651if test "${ac_cv_working_alloca_h+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 10653else
f73dda09 10654 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
10655/* confdefs.h. */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h. */
f73dda09
JA
10660#include <alloca.h>
10661int
10662main ()
10663{
10664char *p = (char *) alloca (2 * sizeof (int));
10665 ;
10666 return 0;
10667}
10668_ACEOF
10669rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
10670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>conftest.er1
f73dda09 10672 ac_status=$?
a82a04b3
CR
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10677 (exit $ac_status); } &&
a82a04b3
CR
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
a82a04b3 10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10690 (exit $ac_status); }; }; then
10691 ac_cv_working_alloca_h=yes
10692else
10693 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10694sed 's/^/| /' conftest.$ac_ext >&5
10695
f73dda09
JA
10696ac_cv_working_alloca_h=no
10697fi
a82a04b3
CR
10698rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
f73dda09 10700fi
a82a04b3 10701echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
f73dda09
JA
10702echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10703if test $ac_cv_working_alloca_h = yes; then
10704
a82a04b3 10705cat >>confdefs.h <<\_ACEOF
f73dda09 10706#define HAVE_ALLOCA_H 1
a82a04b3 10707_ACEOF
ccc6cda3 10708
f73dda09 10709fi
ccc6cda3 10710
a82a04b3 10711echo "$as_me:$LINENO: checking for alloca" >&5
f73dda09
JA
10712echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10713if test "${ac_cv_func_alloca_works+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
f73dda09
JA
10722#ifdef __GNUC__
10723# define alloca __builtin_alloca
ccc6cda3 10724#else
f73dda09
JA
10725# ifdef _MSC_VER
10726# include <malloc.h>
10727# define alloca _alloca
10728# else
10729# if HAVE_ALLOCA_H
10730# include <alloca.h>
10731# else
10732# ifdef _AIX
10733 #pragma alloca
10734# else
10735# ifndef alloca /* predefined by HP cc +Olibcalls */
10736char *alloca ();
10737# endif
10738# endif
10739# endif
10740# endif
ccc6cda3
JA
10741#endif
10742
f73dda09
JA
10743int
10744main ()
10745{
10746char *p = (char *) alloca (1);
10747 ;
10748 return 0;
10749}
10750_ACEOF
10751rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
10752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>conftest.er1
f73dda09 10754 ac_status=$?
a82a04b3
CR
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10759 (exit $ac_status); } &&
a82a04b3
CR
10760 { ac_try='test -z "$ac_c_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest$ac_exeext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
a82a04b3 10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10772 (exit $ac_status); }; }; then
10773 ac_cv_func_alloca_works=yes
ccc6cda3 10774else
f73dda09 10775 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
f73dda09 10778ac_cv_func_alloca_works=no
ccc6cda3 10779fi
a82a04b3
CR
10780rm -f conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 10782fi
a82a04b3 10783echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
f73dda09
JA
10784echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10785
10786if test $ac_cv_func_alloca_works = yes; then
ccc6cda3 10787
a82a04b3 10788cat >>confdefs.h <<\_ACEOF
f73dda09 10789#define HAVE_ALLOCA 1
a82a04b3 10790_ACEOF
f73dda09 10791
ccc6cda3 10792else
f73dda09
JA
10793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10794# that cause trouble. Some versions do not even contain alloca or
10795# contain a buggy version. If you still want to use their alloca,
10796# use ar to extract alloca.o from them instead of compiling alloca.c.
ccc6cda3 10797
f73dda09 10798ALLOCA=alloca.$ac_objext
ccc6cda3 10799
a82a04b3 10800cat >>confdefs.h <<\_ACEOF
f73dda09 10801#define C_ALLOCA 1
a82a04b3
CR
10802_ACEOF
10803
545f34cf 10804
a82a04b3 10805echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
f73dda09
JA
10806echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10807if test "${ac_cv_os_cray+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 10809else
f73dda09 10810 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
10811/* confdefs.h. */
10812_ACEOF
10813cat confdefs.h >>conftest.$ac_ext
10814cat >>conftest.$ac_ext <<_ACEOF
10815/* end confdefs.h. */
f73dda09
JA
10816#if defined(CRAY) && ! defined(CRAY2)
10817webecray
10818#else
10819wenotbecray
10820#endif
ccc6cda3 10821
f73dda09
JA
10822_ACEOF
10823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 10824 $EGREP "webecray" >/dev/null 2>&1; then
f73dda09 10825 ac_cv_os_cray=yes
ccc6cda3 10826else
f73dda09 10827 ac_cv_os_cray=no
ccc6cda3
JA
10828fi
10829rm -f conftest*
ccc6cda3
JA
10830
10831fi
a82a04b3 10832echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
f73dda09
JA
10833echo "${ECHO_T}$ac_cv_os_cray" >&6
10834if test $ac_cv_os_cray = yes; then
10835 for ac_func in _getb67 GETB67 getb67; do
10836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 10837echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
10838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10839if eval "test \"\${$as_ac_var+set}\" = set"; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 10841else
f73dda09 10842 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
10843/* confdefs.h. */
10844_ACEOF
10845cat confdefs.h >>conftest.$ac_ext
10846cat >>conftest.$ac_ext <<_ACEOF
10847/* end confdefs.h. */
10848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10850#define $ac_func innocuous_$ac_func
10851
ccc6cda3 10852/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
10853 which can conflict with char $ac_func (); below.
10854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10855 <limits.h> exists even on freestanding compilers. */
10856
10857#ifdef __STDC__
10858# include <limits.h>
10859#else
10860# include <assert.h>
10861#endif
10862
10863#undef $ac_func
10864
ccc6cda3 10865/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
10866#ifdef __cplusplus
10867extern "C"
a82a04b3 10868{
f73dda09 10869#endif
ccc6cda3 10870/* We use char because int might match the return type of a gcc2
f73dda09
JA
10871 builtin and then its argument prototype would still apply. */
10872char $ac_func ();
ccc6cda3
JA
10873/* The GNU C library defines this for functions which it implements
10874 to always fail with ENOSYS. Some functions are actually named
10875 something starting with __ and the normal name is an alias. */
10876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10877choke me
10878#else
a82a04b3
CR
10879char (*f) () = $ac_func;
10880#endif
10881#ifdef __cplusplus
10882}
ccc6cda3
JA
10883#endif
10884
a82a04b3
CR
10885int
10886main ()
10887{
10888return f != $ac_func;
f73dda09
JA
10889 ;
10890 return 0;
10891}
10892_ACEOF
10893rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
10894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895 (eval $ac_link) 2>conftest.er1
f73dda09 10896 ac_status=$?
a82a04b3
CR
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10901 (exit $ac_status); } &&
a82a04b3
CR
10902 { ac_try='test -z "$ac_c_werror_flag"
10903 || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
a82a04b3 10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10914 (exit $ac_status); }; }; then
10915 eval "$as_ac_var=yes"
10916else
10917 echo "$as_me: failed program was:" >&5
a82a04b3
CR
10918sed 's/^/| /' conftest.$ac_ext >&5
10919
f73dda09
JA
10920eval "$as_ac_var=no"
10921fi
a82a04b3
CR
10922rm -f conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
f73dda09 10924fi
a82a04b3 10925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
10926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10927if test `eval echo '${'$as_ac_var'}'` = yes; then
10928
a82a04b3 10929cat >>confdefs.h <<_ACEOF
f73dda09 10930#define CRAY_STACKSEG_END $ac_func
a82a04b3 10931_ACEOF
ccc6cda3 10932
f73dda09 10933 break
ccc6cda3 10934fi
ccc6cda3 10935
f73dda09 10936 done
ccc6cda3
JA
10937fi
10938
a82a04b3 10939echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
f73dda09
JA
10940echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10941if test "${ac_cv_c_stack_direction+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 10943else
f73dda09
JA
10944 if test "$cross_compiling" = yes; then
10945 ac_cv_c_stack_direction=0
10946else
10947 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h. */
f73dda09
JA
10953int
10954find_stack_direction ()
10955{
10956 static char *addr = 0;
10957 auto char dummy;
10958 if (addr == 0)
10959 {
10960 addr = &dummy;
10961 return find_stack_direction ();
10962 }
10963 else
10964 return (&dummy > addr) ? 1 : -1;
10965}
ccc6cda3 10966
f73dda09
JA
10967int
10968main ()
10969{
10970 exit (find_stack_direction () < 0);
10971}
10972_ACEOF
10973rm -f conftest$ac_exeext
a82a04b3 10974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
a82a04b3 10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
a82a04b3 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10983 (exit $ac_status); }; }; then
10984 ac_cv_c_stack_direction=1
ccc6cda3 10985else
f73dda09
JA
10986 echo "$as_me: program exited with status $ac_status" >&5
10987echo "$as_me: failed program was:" >&5
a82a04b3
CR
10988sed 's/^/| /' conftest.$ac_ext >&5
10989
10990( exit $ac_status )
f73dda09 10991ac_cv_c_stack_direction=-1
ccc6cda3 10992fi
a82a04b3 10993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 10994fi
f73dda09 10995fi
a82a04b3 10996echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
f73dda09 10997echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
ccc6cda3 10998
a82a04b3 10999cat >>confdefs.h <<_ACEOF
f73dda09 11000#define STACK_DIRECTION $ac_cv_c_stack_direction
a82a04b3
CR
11001_ACEOF
11002
ccc6cda3 11003
ccc6cda3
JA
11004fi
11005
a82a04b3
CR
11006echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11007echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
f73dda09
JA
11008if test "${ac_cv_func_getpgrp_void+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11010else
f73dda09
JA
11011 # Use it with a single arg.
11012cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
f73dda09
JA
11018$ac_includes_default
11019int
11020main ()
11021{
11022getpgrp (0);
11023 ;
11024 return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext
a82a04b3
CR
11028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11029 (eval $ac_compile) 2>conftest.er1
f73dda09 11030 ac_status=$?
a82a04b3
CR
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11035 (exit $ac_status); } &&
a82a04b3
CR
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
a82a04b3 11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11048 (exit $ac_status); }; }; then
a82a04b3 11049 ac_cv_func_getpgrp_void=no
f73dda09
JA
11050else
11051 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054ac_cv_func_getpgrp_void=yes
f73dda09 11055fi
a82a04b3
CR
11056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11057
11058fi
11059echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11060echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11061if test $ac_cv_func_getpgrp_void = yes; then
11062
11063cat >>confdefs.h <<\_ACEOF
11064#define GETPGRP_VOID 1
11065_ACEOF
11066
11067fi
11068
11069echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11070echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11071if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073else
11074 ac_cv_func_setvbuf_reversed=no
11075 cat >conftest.$ac_ext <<_ACEOF
11076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
11081#include <stdio.h>
11082# if PROTOTYPES
11083 int (setvbuf) (FILE *, int, char *, size_t);
11084# endif
f73dda09
JA
11085int
11086main ()
11087{
a82a04b3 11088char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
f73dda09
JA
11089 ;
11090 return 0;
11091}
11092_ACEOF
a82a04b3
CR
11093rm -f conftest.$ac_objext conftest$ac_exeext
11094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>conftest.er1
f73dda09 11096 ac_status=$?
a82a04b3
CR
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11101 (exit $ac_status); } &&
a82a04b3
CR
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
a82a04b3
CR
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11114 (exit $ac_status); }; }; then
f73dda09 11115 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121#include <stdio.h>
11122# if PROTOTYPES
11123 int (setvbuf) (FILE *, int, char *, size_t);
11124# endif
f73dda09
JA
11125int
11126main ()
11127{
a82a04b3
CR
11128char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11129 ;
11130 return 0;
f73dda09 11131}
f73dda09 11132_ACEOF
a82a04b3
CR
11133rm -f conftest.$ac_objext conftest$ac_exeext
11134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
f73dda09 11136 ac_status=$?
a82a04b3
CR
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
a82a04b3 11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11154 (exit $ac_status); }; }; then
a82a04b3
CR
11155 # It compiles and links either way, so it must not be declared
11156 # with a prototype and most likely this is a K&R C compiler.
11157 # Try running it.
11158 if test "$cross_compiling" = yes; then
11159 : # Assume setvbuf is not reversed when cross-compiling.
f73dda09
JA
11160else
11161 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
f73dda09 11167#include <stdio.h>
f73dda09
JA
11168int
11169main ()
11170{
a82a04b3
CR
11171/* This call has the arguments reversed.
11172 A reversed system may check and see that the address of buf
11173 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11174 char buf;
11175 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11176 exit (1);
11177 putchar ('\r');
11178 exit (0); /* Non-reversed systems SEGV here. */
11179 ;
11180 return 0;
f73dda09
JA
11181}
11182_ACEOF
11183rm -f conftest$ac_exeext
a82a04b3 11184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
11185 (eval $ac_link) 2>&5
11186 ac_status=$?
a82a04b3 11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
a82a04b3 11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11193 (exit $ac_status); }; }; then
11194 ac_cv_func_setvbuf_reversed=yes
ccc6cda3 11195else
f73dda09
JA
11196 echo "$as_me: program exited with status $ac_status" >&5
11197echo "$as_me: failed program was:" >&5
a82a04b3
CR
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200( exit $ac_status )
11201rm -f core *.core
11202fi
11203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11204fi
11205 ac_cv_func_setvbuf_reversed=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
545f34cf 11210fi
a82a04b3
CR
11211rm -f conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213else
11214 echo "$as_me: failed program was:" >&5
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
ccc6cda3 11217fi
a82a04b3
CR
11218rm -f conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
545f34cf 11220fi
a82a04b3 11221echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
f73dda09
JA
11222echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11223if test $ac_cv_func_setvbuf_reversed = yes; then
ccc6cda3 11224
a82a04b3 11225cat >>confdefs.h <<\_ACEOF
f73dda09 11226#define SETVBUF_REVERSED 1
a82a04b3 11227_ACEOF
ccc6cda3
JA
11228
11229fi
11230
a82a04b3 11231
f73dda09 11232for ac_func in vprintf
ccc6cda3 11233do
f73dda09 11234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 11235echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
11236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11237if eval "test \"\${$as_ac_var+set}\" = set"; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11239else
f73dda09 11240 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248#define $ac_func innocuous_$ac_func
11249
f73dda09 11250/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11254
11255#ifdef __STDC__
11256# include <limits.h>
11257#else
11258# include <assert.h>
11259#endif
11260
11261#undef $ac_func
11262
f73dda09
JA
11263/* Override any gcc2 internal prototype to avoid an error. */
11264#ifdef __cplusplus
11265extern "C"
a82a04b3 11266{
f73dda09
JA
11267#endif
11268/* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11270char $ac_func ();
f73dda09
JA
11271/* The GNU C library defines this for functions which it implements
11272 to always fail with ENOSYS. Some functions are actually named
11273 something starting with __ and the normal name is an alias. */
11274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11275choke me
11276#else
a82a04b3
CR
11277char (*f) () = $ac_func;
11278#endif
11279#ifdef __cplusplus
11280}
f73dda09
JA
11281#endif
11282
a82a04b3
CR
11283int
11284main ()
11285{
11286return f != $ac_func;
f73dda09
JA
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
11292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
f73dda09 11294 ac_status=$?
a82a04b3
CR
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11299 (exit $ac_status); } &&
a82a04b3
CR
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
a82a04b3
CR
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11312 (exit $ac_status); }; }; then
11313 eval "$as_ac_var=yes"
11314else
11315 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
f73dda09
JA
11318eval "$as_ac_var=no"
11319fi
a82a04b3
CR
11320rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
f73dda09 11322fi
a82a04b3 11323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
11324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11325if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 11326 cat >>confdefs.h <<_ACEOF
f73dda09 11327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 11328_ACEOF
f73dda09 11329
a82a04b3 11330echo "$as_me:$LINENO: checking for _doprnt" >&5
f73dda09
JA
11331echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11332if test "${ac_cv_func__doprnt+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334else
11335 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11336/* confdefs.h. */
11337_ACEOF
11338cat confdefs.h >>conftest.$ac_ext
11339cat >>conftest.$ac_ext <<_ACEOF
11340/* end confdefs.h. */
11341/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11343#define _doprnt innocuous__doprnt
11344
f73dda09 11345/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
11346 which can conflict with char _doprnt (); below.
11347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11348 <limits.h> exists even on freestanding compilers. */
11349
11350#ifdef __STDC__
11351# include <limits.h>
11352#else
11353# include <assert.h>
11354#endif
11355
11356#undef _doprnt
11357
ccc6cda3 11358/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
11359#ifdef __cplusplus
11360extern "C"
a82a04b3 11361{
f73dda09 11362#endif
ccc6cda3 11363/* We use char because int might match the return type of a gcc2
f73dda09
JA
11364 builtin and then its argument prototype would still apply. */
11365char _doprnt ();
f73dda09
JA
11366/* The GNU C library defines this for functions which it implements
11367 to always fail with ENOSYS. Some functions are actually named
11368 something starting with __ and the normal name is an alias. */
11369#if defined (__stub__doprnt) || defined (__stub____doprnt)
11370choke me
11371#else
a82a04b3
CR
11372char (*f) () = _doprnt;
11373#endif
11374#ifdef __cplusplus
11375}
f73dda09
JA
11376#endif
11377
a82a04b3
CR
11378int
11379main ()
11380{
11381return f != _doprnt;
f73dda09
JA
11382 ;
11383 return 0;
11384}
11385_ACEOF
11386rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
11387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11388 (eval $ac_link) 2>conftest.er1
f73dda09 11389 ac_status=$?
a82a04b3
CR
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11394 (exit $ac_status); } &&
a82a04b3
CR
11395 { ac_try='test -z "$ac_c_werror_flag"
11396 || test ! -s conftest.err'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; } &&
11402 { ac_try='test -s conftest$ac_exeext'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
a82a04b3 11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11407 (exit $ac_status); }; }; then
11408 ac_cv_func__doprnt=yes
11409else
11410 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11411sed 's/^/| /' conftest.$ac_ext >&5
11412
f73dda09
JA
11413ac_cv_func__doprnt=no
11414fi
a82a04b3
CR
11415rm -f conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
f73dda09 11417fi
a82a04b3 11418echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
f73dda09
JA
11419echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11420if test $ac_cv_func__doprnt = yes; then
11421
a82a04b3 11422cat >>confdefs.h <<\_ACEOF
f73dda09 11423#define HAVE_DOPRNT 1
a82a04b3 11424_ACEOF
ccc6cda3
JA
11425
11426fi
f73dda09 11427
ccc6cda3 11428fi
f73dda09 11429done
ccc6cda3 11430
a82a04b3
CR
11431
11432echo "$as_me:$LINENO: checking for working strcoll" >&5
f73dda09
JA
11433echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11434if test "${ac_cv_func_strcoll_works+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11436else
f73dda09
JA
11437 if test "$cross_compiling" = yes; then
11438 ac_cv_func_strcoll_works=no
ccc6cda3 11439else
f73dda09 11440 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11441/* confdefs.h. */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h. */
f73dda09
JA
11446$ac_includes_default
11447int
11448main ()
11449{
11450exit (strcoll ("abc", "def") >= 0 ||
11451 strcoll ("ABC", "DEF") >= 0 ||
11452 strcoll ("123", "456") >= 0)
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457rm -f conftest$ac_exeext
a82a04b3 11458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
11459 (eval $ac_link) 2>&5
11460 ac_status=$?
a82a04b3 11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
a82a04b3 11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11467 (exit $ac_status); }; }; then
11468 ac_cv_func_strcoll_works=yes
ccc6cda3 11469else
f73dda09
JA
11470 echo "$as_me: program exited with status $ac_status" >&5
11471echo "$as_me: failed program was:" >&5
a82a04b3
CR
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474( exit $ac_status )
f73dda09 11475ac_cv_func_strcoll_works=no
ccc6cda3 11476fi
a82a04b3 11477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 11478fi
f73dda09 11479fi
a82a04b3 11480echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
f73dda09
JA
11481echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11482if test $ac_cv_func_strcoll_works = yes; then
11483
a82a04b3 11484cat >>confdefs.h <<\_ACEOF
f73dda09 11485#define HAVE_STRCOLL 1
a82a04b3 11486_ACEOF
f73dda09 11487
ccc6cda3
JA
11488fi
11489
a82a04b3
CR
11490
11491
f73dda09
JA
11492if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11493 MALLOC_TARGET=alloca
11494 MALLOC_SRC=alloca.c
11495
11496 MALLOC_LIB='-lmalloc'
11497 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11498 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11499 MALLOC_DEP='$(MALLOC_LIBRARY)'
ccc6cda3
JA
11500fi
11501
f73dda09 11502if test "$ac_cv_func_vprintf" = no; then
a82a04b3 11503 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
f73dda09
JA
11504echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
f73dda09
JA
11511#include <stdio.h>
11512
11513_ACEOF
11514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 11515 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
f73dda09 11516 ac_cv_func_vprintf=yes
ccc6cda3
JA
11517fi
11518rm -f conftest*
ccc6cda3 11519
a82a04b3 11520 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
f73dda09
JA
11521echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11522 if test $ac_cv_func_vprintf = yes; then
a82a04b3 11523 cat >>confdefs.h <<\_ACEOF
f73dda09 11524#define HAVE_VPRINTF 1
a82a04b3 11525_ACEOF
ccc6cda3 11526
f73dda09 11527 fi
ccc6cda3
JA
11528fi
11529
f73dda09 11530if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
a82a04b3
CR
11531 case $LIBOBJS in
11532 "vprint.$ac_objext" | \
11533 *" vprint.$ac_objext" | \
11534 "vprint.$ac_objext "* | \
11535 *" vprint.$ac_objext "* ) ;;
11536 *) LIBOBJS="$LIBOBJS vprint.$ac_objext" ;;
11537esac
11538
f73dda09 11539fi
ccc6cda3 11540
a82a04b3 11541echo "$as_me:$LINENO: checking return type of signal handlers" >&5
f73dda09
JA
11542echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11543if test "${ac_cv_type_signal+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11545else
f73dda09 11546 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
f73dda09
JA
11552#include <sys/types.h>
11553#include <signal.h>
11554#ifdef signal
11555# undef signal
11556#endif
11557#ifdef __cplusplus
11558extern "C" void (*signal (int, void (*)(int)))(int);
11559#else
11560void (*signal ()) ();
11561#endif
11562
11563int
11564main ()
11565{
11566int i;
11567 ;
11568 return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext
a82a04b3
CR
11572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 (eval $ac_compile) 2>conftest.er1
f73dda09 11574 ac_status=$?
a82a04b3
CR
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11579 (exit $ac_status); } &&
a82a04b3
CR
11580 { ac_try='test -z "$ac_c_werror_flag"
11581 || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest.$ac_objext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
a82a04b3 11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11592 (exit $ac_status); }; }; then
11593 ac_cv_type_signal=void
ccc6cda3 11594else
f73dda09 11595 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11596sed 's/^/| /' conftest.$ac_ext >&5
11597
f73dda09 11598ac_cv_type_signal=int
ccc6cda3 11599fi
a82a04b3 11600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 11601fi
a82a04b3 11602echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
e624d0f7 11603echo "${ECHO_T}$ac_cv_type_signal" >&6
ccc6cda3 11604
a82a04b3 11605cat >>confdefs.h <<_ACEOF
e624d0f7 11606#define RETSIGTYPE $ac_cv_type_signal
a82a04b3
CR
11607_ACEOF
11608
545f34cf 11609
a82a04b3
CR
11610
11611echo "$as_me:$LINENO: checking for __setostype" >&5
f73dda09
JA
11612echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11613if test "${ac_cv_func___setostype+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 11615else
f73dda09 11616 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11617/* confdefs.h. */
11618_ACEOF
11619cat confdefs.h >>conftest.$ac_ext
11620cat >>conftest.$ac_ext <<_ACEOF
11621/* end confdefs.h. */
11622/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11624#define __setostype innocuous___setostype
11625
f73dda09 11626/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
11627 which can conflict with char __setostype (); below.
11628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629 <limits.h> exists even on freestanding compilers. */
11630
11631#ifdef __STDC__
11632# include <limits.h>
11633#else
11634# include <assert.h>
11635#endif
11636
11637#undef __setostype
11638
f73dda09
JA
11639/* Override any gcc2 internal prototype to avoid an error. */
11640#ifdef __cplusplus
11641extern "C"
a82a04b3 11642{
f73dda09
JA
11643#endif
11644/* We use char because int might match the return type of a gcc2
11645 builtin and then its argument prototype would still apply. */
11646char __setostype ();
f73dda09
JA
11647/* The GNU C library defines this for functions which it implements
11648 to always fail with ENOSYS. Some functions are actually named
11649 something starting with __ and the normal name is an alias. */
11650#if defined (__stub___setostype) || defined (__stub_____setostype)
11651choke me
11652#else
a82a04b3
CR
11653char (*f) () = __setostype;
11654#endif
11655#ifdef __cplusplus
11656}
f73dda09
JA
11657#endif
11658
a82a04b3
CR
11659int
11660main ()
11661{
11662return f != __setostype;
f73dda09
JA
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>conftest.er1
f73dda09 11670 ac_status=$?
a82a04b3
CR
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11675 (exit $ac_status); } &&
a82a04b3
CR
11676 { ac_try='test -z "$ac_c_werror_flag"
11677 || test ! -s conftest.err'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
a82a04b3 11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11688 (exit $ac_status); }; }; then
11689 ac_cv_func___setostype=yes
11690else
11691 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
f73dda09
JA
11694ac_cv_func___setostype=no
11695fi
a82a04b3
CR
11696rm -f conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
f73dda09 11698fi
a82a04b3 11699echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
f73dda09
JA
11700echo "${ECHO_T}$ac_cv_func___setostype" >&6
11701if test $ac_cv_func___setostype = yes; then
a82a04b3 11702 cat >>confdefs.h <<\_ACEOF
f73dda09 11703#define HAVE_SETOSTYPE 1
a82a04b3 11704_ACEOF
f73dda09
JA
11705
11706fi
11707
a82a04b3 11708echo "$as_me:$LINENO: checking for wait3" >&5
f73dda09
JA
11709echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11710if test "${ac_cv_func_wait3+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11721#define wait3 innocuous_wait3
11722
f73dda09 11723/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
11724 which can conflict with char wait3 (); below.
11725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726 <limits.h> exists even on freestanding compilers. */
11727
11728#ifdef __STDC__
11729# include <limits.h>
11730#else
11731# include <assert.h>
11732#endif
11733
11734#undef wait3
11735
f73dda09
JA
11736/* Override any gcc2 internal prototype to avoid an error. */
11737#ifdef __cplusplus
11738extern "C"
a82a04b3 11739{
f73dda09
JA
11740#endif
11741/* We use char because int might match the return type of a gcc2
11742 builtin and then its argument prototype would still apply. */
11743char wait3 ();
f73dda09
JA
11744/* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747#if defined (__stub_wait3) || defined (__stub___wait3)
11748choke me
11749#else
a82a04b3
CR
11750char (*f) () = wait3;
11751#endif
11752#ifdef __cplusplus
11753}
f73dda09
JA
11754#endif
11755
a82a04b3
CR
11756int
11757main ()
11758{
11759return f != wait3;
f73dda09
JA
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
11765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>conftest.er1
f73dda09 11767 ac_status=$?
a82a04b3
CR
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11772 (exit $ac_status); } &&
a82a04b3
CR
11773 { ac_try='test -z "$ac_c_werror_flag"
11774 || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
a82a04b3 11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11785 (exit $ac_status); }; }; then
11786 ac_cv_func_wait3=yes
11787else
11788 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11789sed 's/^/| /' conftest.$ac_ext >&5
11790
f73dda09
JA
11791ac_cv_func_wait3=no
11792fi
a82a04b3
CR
11793rm -f conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
f73dda09 11795fi
a82a04b3 11796echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
f73dda09
JA
11797echo "${ECHO_T}$ac_cv_func_wait3" >&6
11798if test $ac_cv_func_wait3 = yes; then
a82a04b3 11799 cat >>confdefs.h <<\_ACEOF
f73dda09 11800#define HAVE_WAIT3 1
a82a04b3 11801_ACEOF
f73dda09
JA
11802
11803fi
11804
a82a04b3 11805echo "$as_me:$LINENO: checking for isinf" >&5
7117c2d2
JA
11806echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11807if test "${ac_cv_func_isinf+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809else
11810 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818#define isinf innocuous_isinf
11819
7117c2d2 11820/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
11821 which can conflict with char isinf (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11824
11825#ifdef __STDC__
11826# include <limits.h>
11827#else
11828# include <assert.h>
11829#endif
11830
11831#undef isinf
11832
7117c2d2
JA
11833/* Override any gcc2 internal prototype to avoid an error. */
11834#ifdef __cplusplus
11835extern "C"
a82a04b3 11836{
7117c2d2
JA
11837#endif
11838/* We use char because int might match the return type of a gcc2
11839 builtin and then its argument prototype would still apply. */
11840char isinf ();
7117c2d2
JA
11841/* The GNU C library defines this for functions which it implements
11842 to always fail with ENOSYS. Some functions are actually named
11843 something starting with __ and the normal name is an alias. */
11844#if defined (__stub_isinf) || defined (__stub___isinf)
11845choke me
11846#else
a82a04b3
CR
11847char (*f) () = isinf;
11848#endif
11849#ifdef __cplusplus
11850}
7117c2d2
JA
11851#endif
11852
a82a04b3
CR
11853int
11854main ()
11855{
11856return f != isinf;
7117c2d2
JA
11857 ;
11858 return 0;
11859}
11860_ACEOF
11861rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
11862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>conftest.er1
7117c2d2 11864 ac_status=$?
a82a04b3
CR
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 11869 (exit $ac_status); } &&
a82a04b3
CR
11870 { ac_try='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
a82a04b3
CR
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
11882 (exit $ac_status); }; }; then
11883 ac_cv_func_isinf=yes
11884else
11885 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11886sed 's/^/| /' conftest.$ac_ext >&5
11887
7117c2d2
JA
11888ac_cv_func_isinf=no
11889fi
a82a04b3
CR
11890rm -f conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
7117c2d2 11892fi
a82a04b3 11893echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
7117c2d2
JA
11894echo "${ECHO_T}$ac_cv_func_isinf" >&6
11895if test $ac_cv_func_isinf = yes; then
a82a04b3 11896 cat >>confdefs.h <<\_ACEOF
7117c2d2 11897#define HAVE_ISINF_IN_LIBC 1
a82a04b3 11898_ACEOF
7117c2d2
JA
11899
11900fi
11901
a82a04b3
CR
11902
11903echo "$as_me:$LINENO: checking for mkfifo" >&5
f73dda09
JA
11904echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11905if test "${ac_cv_func_mkfifo+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
11914/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916#define mkfifo innocuous_mkfifo
11917
f73dda09 11918/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
11919 which can conflict with char mkfifo (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923#ifdef __STDC__
11924# include <limits.h>
11925#else
11926# include <assert.h>
11927#endif
11928
11929#undef mkfifo
11930
f73dda09
JA
11931/* Override any gcc2 internal prototype to avoid an error. */
11932#ifdef __cplusplus
11933extern "C"
a82a04b3 11934{
f73dda09
JA
11935#endif
11936/* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11938char mkfifo ();
f73dda09
JA
11939/* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942#if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11943choke me
11944#else
a82a04b3
CR
11945char (*f) () = mkfifo;
11946#endif
11947#ifdef __cplusplus
11948}
f73dda09
JA
11949#endif
11950
a82a04b3
CR
11951int
11952main ()
11953{
11954return f != mkfifo;
f73dda09
JA
11955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
11960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>conftest.er1
f73dda09 11962 ac_status=$?
a82a04b3
CR
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 11967 (exit $ac_status); } &&
a82a04b3
CR
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
a82a04b3 11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
11980 (exit $ac_status); }; }; then
11981 ac_cv_func_mkfifo=yes
11982else
11983 echo "$as_me: failed program was:" >&5
a82a04b3
CR
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
f73dda09
JA
11986ac_cv_func_mkfifo=no
11987fi
a82a04b3
CR
11988rm -f conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
f73dda09 11990fi
a82a04b3 11991echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
f73dda09
JA
11992echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
11993if test $ac_cv_func_mkfifo = yes; then
a82a04b3 11994 cat >>confdefs.h <<\_ACEOF
f73dda09 11995#define HAVE_MKFIFO 1
a82a04b3 11996_ACEOF
f73dda09
JA
11997
11998else
a82a04b3 11999 cat >>confdefs.h <<\_ACEOF
f73dda09 12000#define MKFIFO_MISSING 1
a82a04b3 12001_ACEOF
f73dda09
JA
12002
12003fi
12004
a82a04b3
CR
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
9607141c
CR
12023
12024
12025
12026
12027for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
12028 getpeername getrlimit getrusage gettimeofday kill killpg \
12029 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
12030 ulimit waitpid
f73dda09
JA
12031do
12032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 12033echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
12034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12035if eval "test \"\${$as_ac_var+set}\" = set"; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12046#define $ac_func innocuous_$ac_func
12047
f73dda09 12048/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
12049 which can conflict with char $ac_func (); below.
12050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12051 <limits.h> exists even on freestanding compilers. */
12052
12053#ifdef __STDC__
12054# include <limits.h>
12055#else
12056# include <assert.h>
12057#endif
12058
12059#undef $ac_func
12060
f73dda09
JA
12061/* Override any gcc2 internal prototype to avoid an error. */
12062#ifdef __cplusplus
12063extern "C"
a82a04b3 12064{
f73dda09
JA
12065#endif
12066/* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12068char $ac_func ();
f73dda09
JA
12069/* The GNU C library defines this for functions which it implements
12070 to always fail with ENOSYS. Some functions are actually named
12071 something starting with __ and the normal name is an alias. */
12072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12073choke me
12074#else
a82a04b3
CR
12075char (*f) () = $ac_func;
12076#endif
12077#ifdef __cplusplus
12078}
f73dda09
JA
12079#endif
12080
a82a04b3
CR
12081int
12082main ()
12083{
12084return f != $ac_func;
f73dda09
JA
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
12090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>conftest.er1
f73dda09 12092 ac_status=$?
a82a04b3
CR
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12097 (exit $ac_status); } &&
a82a04b3
CR
12098 { ac_try='test -z "$ac_c_werror_flag"
12099 || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
a82a04b3 12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
12110 (exit $ac_status); }; }; then
12111 eval "$as_ac_var=yes"
12112else
12113 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12114sed 's/^/| /' conftest.$ac_ext >&5
12115
f73dda09
JA
12116eval "$as_ac_var=no"
12117fi
a82a04b3
CR
12118rm -f conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
f73dda09 12120fi
a82a04b3 12121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
12122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12123if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 12124 cat >>confdefs.h <<_ACEOF
f73dda09 12125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 12126_ACEOF
f73dda09
JA
12127
12128fi
12129done
12130
a82a04b3 12131
f73dda09
JA
12132for ac_func in rename
12133do
12134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 12135echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
12136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12137if eval "test \"\${$as_ac_var+set}\" = set"; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
12146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12148#define $ac_func innocuous_$ac_func
12149
f73dda09 12150/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
12151 which can conflict with char $ac_func (); below.
12152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153 <limits.h> exists even on freestanding compilers. */
12154
12155#ifdef __STDC__
12156# include <limits.h>
12157#else
12158# include <assert.h>
12159#endif
12160
12161#undef $ac_func
12162
f73dda09
JA
12163/* Override any gcc2 internal prototype to avoid an error. */
12164#ifdef __cplusplus
12165extern "C"
a82a04b3 12166{
f73dda09
JA
12167#endif
12168/* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170char $ac_func ();
f73dda09
JA
12171/* The GNU C library defines this for functions which it implements
12172 to always fail with ENOSYS. Some functions are actually named
12173 something starting with __ and the normal name is an alias. */
12174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12175choke me
12176#else
a82a04b3
CR
12177char (*f) () = $ac_func;
12178#endif
12179#ifdef __cplusplus
12180}
f73dda09
JA
12181#endif
12182
a82a04b3
CR
12183int
12184main ()
12185{
12186return f != $ac_func;
f73dda09
JA
12187 ;
12188 return 0;
12189}
12190_ACEOF
12191rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
12192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
f73dda09 12194 ac_status=$?
a82a04b3
CR
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12199 (exit $ac_status); } &&
a82a04b3
CR
12200 { ac_try='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
a82a04b3
CR
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try='test -s conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
12212 (exit $ac_status); }; }; then
12213 eval "$as_ac_var=yes"
12214else
12215 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
f73dda09
JA
12218eval "$as_ac_var=no"
12219fi
a82a04b3
CR
12220rm -f conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
f73dda09 12222fi
a82a04b3 12223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
12224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12225if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 12226 cat >>confdefs.h <<_ACEOF
f73dda09 12227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 12228_ACEOF
f73dda09
JA
12229
12230else
a82a04b3
CR
12231 case $LIBOBJS in
12232 "$ac_func.$ac_objext" | \
12233 *" $ac_func.$ac_objext" | \
12234 "$ac_func.$ac_objext "* | \
12235 *" $ac_func.$ac_objext "* ) ;;
12236 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12237esac
12238
f73dda09
JA
12239fi
12240done
12241
a82a04b3
CR
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
9607141c
CR
12271for ac_func in bcopy bzero confstr fnmatch \
12272 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12273 memmove pathconf putenv raise regcomp regexec \
12274 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12275 sysconf tcgetattr times ttyname tzset unsetenv
12276do
12277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12278echo "$as_me:$LINENO: checking for $ac_func" >&5
12279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12280if eval "test \"\${$as_ac_var+set}\" = set"; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283 cat >conftest.$ac_ext <<_ACEOF
12284/* confdefs.h. */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h. */
12289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291#define $ac_func innocuous_$ac_func
12292
12293/* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char $ac_func (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12297
12298#ifdef __STDC__
12299# include <limits.h>
12300#else
12301# include <assert.h>
12302#endif
12303
12304#undef $ac_func
12305
12306/* Override any gcc2 internal prototype to avoid an error. */
12307#ifdef __cplusplus
12308extern "C"
12309{
12310#endif
12311/* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313char $ac_func ();
12314/* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
12317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12318choke me
12319#else
12320char (*f) () = $ac_func;
12321#endif
12322#ifdef __cplusplus
12323}
12324#endif
a82a04b3 12325
9607141c
CR
12326int
12327main ()
12328{
12329return f != $ac_func;
12330 ;
12331 return 0;
12332}
12333_ACEOF
12334rm -f conftest.$ac_objext conftest$ac_exeext
12335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 eval "$as_ac_var=yes"
12357else
12358 echo "$as_me: failed program was:" >&5
12359sed 's/^/| /' conftest.$ac_ext >&5
a82a04b3 12360
9607141c
CR
12361eval "$as_ac_var=no"
12362fi
12363rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365fi
12366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12368if test `eval echo '${'$as_ac_var'}'` = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371_ACEOF
a82a04b3 12372
9607141c
CR
12373fi
12374done
a82a04b3
CR
12375
12376
12377
9607141c
CR
12378
12379
12380
12381for ac_func in vsnprintf snprintf vasprintf asprintf
f73dda09
JA
12382do
12383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 12384echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
12385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12386if eval "test \"\${$as_ac_var+set}\" = set"; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397#define $ac_func innocuous_$ac_func
12398
f73dda09 12399/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12403
12404#ifdef __STDC__
12405# include <limits.h>
12406#else
12407# include <assert.h>
12408#endif
12409
12410#undef $ac_func
12411
f73dda09
JA
12412/* Override any gcc2 internal prototype to avoid an error. */
12413#ifdef __cplusplus
12414extern "C"
a82a04b3 12415{
f73dda09
JA
12416#endif
12417/* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419char $ac_func ();
f73dda09
JA
12420/* The GNU C library defines this for functions which it implements
12421 to always fail with ENOSYS. Some functions are actually named
12422 something starting with __ and the normal name is an alias. */
12423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12424choke me
12425#else
a82a04b3
CR
12426char (*f) () = $ac_func;
12427#endif
12428#ifdef __cplusplus
12429}
f73dda09
JA
12430#endif
12431
a82a04b3
CR
12432int
12433main ()
12434{
12435return f != $ac_func;
f73dda09
JA
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
12441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442 (eval $ac_link) 2>conftest.er1
f73dda09 12443 ac_status=$?
a82a04b3
CR
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12448 (exit $ac_status); } &&
a82a04b3
CR
12449 { ac_try='test -z "$ac_c_werror_flag"
12450 || test ! -s conftest.err'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
a82a04b3 12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
12461 (exit $ac_status); }; }; then
12462 eval "$as_ac_var=yes"
12463else
12464 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
f73dda09
JA
12467eval "$as_ac_var=no"
12468fi
a82a04b3
CR
12469rm -f conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
f73dda09 12471fi
a82a04b3 12472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
12473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12474if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 12475 cat >>confdefs.h <<_ACEOF
f73dda09 12476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 12477_ACEOF
f73dda09
JA
12478
12479fi
12480done
12481
a82a04b3
CR
12482
12483
12484
12485
12486
12487
f73dda09
JA
12488for ac_func in isascii isblank isgraph isprint isspace isxdigit
12489do
12490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 12491echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
12492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12493if eval "test \"\${$as_ac_var+set}\" = set"; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504#define $ac_func innocuous_$ac_func
12505
f73dda09 12506/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12510
12511#ifdef __STDC__
12512# include <limits.h>
12513#else
12514# include <assert.h>
12515#endif
12516
12517#undef $ac_func
12518
f73dda09
JA
12519/* Override any gcc2 internal prototype to avoid an error. */
12520#ifdef __cplusplus
12521extern "C"
a82a04b3 12522{
f73dda09
JA
12523#endif
12524/* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12526char $ac_func ();
f73dda09
JA
12527/* The GNU C library defines this for functions which it implements
12528 to always fail with ENOSYS. Some functions are actually named
12529 something starting with __ and the normal name is an alias. */
12530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12531choke me
12532#else
a82a04b3
CR
12533char (*f) () = $ac_func;
12534#endif
12535#ifdef __cplusplus
12536}
f73dda09
JA
12537#endif
12538
a82a04b3
CR
12539int
12540main ()
12541{
12542return f != $ac_func;
f73dda09
JA
12543 ;
12544 return 0;
12545}
12546_ACEOF
12547rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
12548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>conftest.er1
f73dda09 12550 ac_status=$?
a82a04b3
CR
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12555 (exit $ac_status); } &&
a82a04b3
CR
12556 { ac_try='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
a82a04b3 12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
12568 (exit $ac_status); }; }; then
12569 eval "$as_ac_var=yes"
12570else
12571 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
f73dda09
JA
12574eval "$as_ac_var=no"
12575fi
a82a04b3
CR
12576rm -f conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
f73dda09 12578fi
a82a04b3 12579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
12580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12581if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 12582 cat >>confdefs.h <<_ACEOF
f73dda09 12583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 12584_ACEOF
f73dda09
JA
12585
12586fi
12587done
12588
a82a04b3
CR
12589
12590
12591
9607141c
CR
12592for ac_func in getpwent getpwnam getpwuid
12593do
12594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12595echo "$as_me:$LINENO: checking for $ac_func" >&5
12596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12597if eval "test \"\${$as_ac_var+set}\" = set"; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599else
12600 cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12608#define $ac_func innocuous_$ac_func
12609
12610/* System header to define __stub macros and hopefully few prototypes,
12611 which can conflict with char $ac_func (); below.
12612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12613 <limits.h> exists even on freestanding compilers. */
12614
12615#ifdef __STDC__
12616# include <limits.h>
12617#else
12618# include <assert.h>
12619#endif
12620
12621#undef $ac_func
12622
12623/* Override any gcc2 internal prototype to avoid an error. */
12624#ifdef __cplusplus
12625extern "C"
12626{
12627#endif
12628/* We use char because int might match the return type of a gcc2
12629 builtin and then its argument prototype would still apply. */
12630char $ac_func ();
12631/* The GNU C library defines this for functions which it implements
12632 to always fail with ENOSYS. Some functions are actually named
12633 something starting with __ and the normal name is an alias. */
12634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12635choke me
12636#else
12637char (*f) () = $ac_func;
12638#endif
12639#ifdef __cplusplus
12640}
12641#endif
12642
12643int
12644main ()
12645{
12646return f != $ac_func;
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651rm -f conftest.$ac_objext conftest$ac_exeext
12652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 eval "$as_ac_var=yes"
12674else
12675 echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678eval "$as_ac_var=no"
12679fi
12680rm -f conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682fi
12683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12684echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12685if test `eval echo '${'$as_ac_var'}'` = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12688_ACEOF
12689
12690fi
12691done
12692
12693
12694
12695
a82a04b3
CR
12696
12697
12698
12699
12700
9607141c 12701for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
f73dda09
JA
12702do
12703as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 12704echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
12705echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12706if eval "test \"\${$as_ac_var+set}\" = set"; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12717#define $ac_func innocuous_$ac_func
12718
f73dda09 12719/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
12720 which can conflict with char $ac_func (); below.
12721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12722 <limits.h> exists even on freestanding compilers. */
12723
12724#ifdef __STDC__
12725# include <limits.h>
12726#else
12727# include <assert.h>
12728#endif
12729
12730#undef $ac_func
12731
f73dda09
JA
12732/* Override any gcc2 internal prototype to avoid an error. */
12733#ifdef __cplusplus
12734extern "C"
a82a04b3 12735{
f73dda09
JA
12736#endif
12737/* We use char because int might match the return type of a gcc2
12738 builtin and then its argument prototype would still apply. */
12739char $ac_func ();
f73dda09
JA
12740/* The GNU C library defines this for functions which it implements
12741 to always fail with ENOSYS. Some functions are actually named
12742 something starting with __ and the normal name is an alias. */
12743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12744choke me
12745#else
a82a04b3
CR
12746char (*f) () = $ac_func;
12747#endif
12748#ifdef __cplusplus
12749}
f73dda09
JA
12750#endif
12751
a82a04b3
CR
12752int
12753main ()
12754{
12755return f != $ac_func;
f73dda09
JA
12756 ;
12757 return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
12761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12762 (eval $ac_link) 2>conftest.er1
f73dda09 12763 ac_status=$?
a82a04b3
CR
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12768 (exit $ac_status); } &&
a82a04b3
CR
12769 { ac_try='test -z "$ac_c_werror_flag"
12770 || test ! -s conftest.err'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; } &&
12776 { ac_try='test -s conftest$ac_exeext'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
a82a04b3 12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
12781 (exit $ac_status); }; }; then
12782 eval "$as_ac_var=yes"
12783else
12784 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
f73dda09
JA
12787eval "$as_ac_var=no"
12788fi
a82a04b3
CR
12789rm -f conftest.err conftest.$ac_objext \
12790 conftest$ac_exeext conftest.$ac_ext
f73dda09 12791fi
a82a04b3 12792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
12793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12794if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 12795 cat >>confdefs.h <<_ACEOF
f73dda09 12796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 12797_ACEOF
f73dda09
JA
12798
12799else
a82a04b3
CR
12800 case $LIBOBJS in
12801 "$ac_func.$ac_objext" | \
12802 *" $ac_func.$ac_objext" | \
12803 "$ac_func.$ac_objext "* | \
12804 *" $ac_func.$ac_objext "* ) ;;
12805 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12806esac
12807
f73dda09
JA
12808fi
12809done
12810
a82a04b3
CR
12811
12812
12813
12814
12815
12816
12817
12818
7117c2d2 12819for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
f73dda09
JA
12820do
12821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 12822echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
12823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12824if eval "test \"\${$as_ac_var+set}\" = set"; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826else
12827 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12828/* confdefs.h. */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h. */
12833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12835#define $ac_func innocuous_$ac_func
12836
f73dda09 12837/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
12838 which can conflict with char $ac_func (); below.
12839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12840 <limits.h> exists even on freestanding compilers. */
12841
12842#ifdef __STDC__
12843# include <limits.h>
12844#else
12845# include <assert.h>
12846#endif
12847
12848#undef $ac_func
12849
f73dda09
JA
12850/* Override any gcc2 internal prototype to avoid an error. */
12851#ifdef __cplusplus
12852extern "C"
a82a04b3 12853{
f73dda09
JA
12854#endif
12855/* We use char because int might match the return type of a gcc2
12856 builtin and then its argument prototype would still apply. */
12857char $ac_func ();
f73dda09
JA
12858/* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12862choke me
12863#else
a82a04b3
CR
12864char (*f) () = $ac_func;
12865#endif
12866#ifdef __cplusplus
12867}
f73dda09
JA
12868#endif
12869
a82a04b3
CR
12870int
12871main ()
12872{
12873return f != $ac_func;
f73dda09
JA
12874 ;
12875 return 0;
12876}
12877_ACEOF
12878rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
12879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>conftest.er1
f73dda09 12881 ac_status=$?
a82a04b3
CR
12882 grep -v '^ *+' conftest.er1 >conftest.err
12883 rm -f conftest.er1
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12886 (exit $ac_status); } &&
a82a04b3
CR
12887 { ac_try='test -z "$ac_c_werror_flag"
12888 || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
a82a04b3 12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
12899 (exit $ac_status); }; }; then
12900 eval "$as_ac_var=yes"
12901else
12902 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
f73dda09
JA
12905eval "$as_ac_var=no"
12906fi
a82a04b3
CR
12907rm -f conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
f73dda09 12909fi
a82a04b3 12910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
12911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12912if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 12913 cat >>confdefs.h <<_ACEOF
f73dda09 12914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 12915_ACEOF
f73dda09
JA
12916
12917else
a82a04b3
CR
12918 case $LIBOBJS in
12919 "$ac_func.$ac_objext" | \
12920 *" $ac_func.$ac_objext" | \
12921 "$ac_func.$ac_objext "* | \
12922 *" $ac_func.$ac_objext "* ) ;;
12923 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12924esac
12925
f73dda09
JA
12926fi
12927done
12928
a82a04b3
CR
12929
12930
12931echo "$as_me:$LINENO: checking whether confstr is declared" >&5
7117c2d2
JA
12932echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
12933if test "${ac_cv_have_decl_confstr+set}" = set; then
f73dda09
JA
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935else
12936 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
12937/* confdefs.h. */
12938_ACEOF
12939cat confdefs.h >>conftest.$ac_ext
12940cat >>conftest.$ac_ext <<_ACEOF
12941/* end confdefs.h. */
f73dda09
JA
12942$ac_includes_default
12943int
12944main ()
12945{
7117c2d2
JA
12946#ifndef confstr
12947 char *p = (char *) confstr;
f73dda09
JA
12948#endif
12949
12950 ;
12951 return 0;
12952}
12953_ACEOF
12954rm -f conftest.$ac_objext
a82a04b3
CR
12955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>conftest.er1
f73dda09 12957 ac_status=$?
a82a04b3
CR
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12962 (exit $ac_status); } &&
a82a04b3
CR
12963 { ac_try='test -z "$ac_c_werror_flag"
12964 || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest.$ac_objext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
a82a04b3 12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 12975 (exit $ac_status); }; }; then
7117c2d2 12976 ac_cv_have_decl_confstr=yes
f73dda09
JA
12977else
12978 echo "$as_me: failed program was:" >&5
a82a04b3
CR
12979sed 's/^/| /' conftest.$ac_ext >&5
12980
7117c2d2 12981ac_cv_have_decl_confstr=no
f73dda09 12982fi
a82a04b3 12983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 12984fi
a82a04b3 12985echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
7117c2d2
JA
12986echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
12987if test $ac_cv_have_decl_confstr = yes; then
f73dda09 12988
a82a04b3 12989cat >>confdefs.h <<_ACEOF
7117c2d2 12990#define HAVE_DECL_CONFSTR 1
a82a04b3
CR
12991_ACEOF
12992
f73dda09
JA
12993
12994else
a82a04b3 12995 cat >>confdefs.h <<_ACEOF
7117c2d2 12996#define HAVE_DECL_CONFSTR 0
a82a04b3
CR
12997_ACEOF
12998
f73dda09
JA
12999
13000fi
13001
a82a04b3
CR
13002
13003echo "$as_me:$LINENO: checking whether printf is declared" >&5
7117c2d2
JA
13004echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13005if test "${ac_cv_have_decl_printf+set}" = set; then
f73dda09
JA
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007else
13008 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
f73dda09
JA
13014$ac_includes_default
13015int
13016main ()
13017{
7117c2d2
JA
13018#ifndef printf
13019 char *p = (char *) printf;
f73dda09
JA
13020#endif
13021
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext
a82a04b3
CR
13027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
f73dda09 13029 ac_status=$?
a82a04b3
CR
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13034 (exit $ac_status); } &&
a82a04b3
CR
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
a82a04b3 13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13047 (exit $ac_status); }; }; then
7117c2d2 13048 ac_cv_have_decl_printf=yes
f73dda09
JA
13049else
13050 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13051sed 's/^/| /' conftest.$ac_ext >&5
13052
7117c2d2 13053ac_cv_have_decl_printf=no
f73dda09 13054fi
a82a04b3 13055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 13056fi
a82a04b3 13057echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
7117c2d2
JA
13058echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13059if test $ac_cv_have_decl_printf = yes; then
f73dda09 13060
a82a04b3 13061cat >>confdefs.h <<_ACEOF
7117c2d2 13062#define HAVE_DECL_PRINTF 1
a82a04b3
CR
13063_ACEOF
13064
f73dda09
JA
13065
13066else
a82a04b3 13067 cat >>confdefs.h <<_ACEOF
e624d0f7 13068#define HAVE_DECL_PRINTF 0
a82a04b3
CR
13069_ACEOF
13070
f73dda09
JA
13071
13072fi
13073
a82a04b3
CR
13074
13075echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
f73dda09
JA
13076echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13077if test "${ac_cv_have_decl_sbrk+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
f73dda09
JA
13086$ac_includes_default
13087int
13088main ()
13089{
13090#ifndef sbrk
13091 char *p = (char *) sbrk;
13092#endif
13093
13094 ;
13095 return 0;
13096}
13097_ACEOF
13098rm -f conftest.$ac_objext
a82a04b3
CR
13099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100 (eval $ac_compile) 2>conftest.er1
f73dda09 13101 ac_status=$?
a82a04b3
CR
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13106 (exit $ac_status); } &&
a82a04b3
CR
13107 { ac_try='test -z "$ac_c_werror_flag"
13108 || test ! -s conftest.err'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest.$ac_objext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
a82a04b3 13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13119 (exit $ac_status); }; }; then
13120 ac_cv_have_decl_sbrk=yes
13121else
13122 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
f73dda09
JA
13125ac_cv_have_decl_sbrk=no
13126fi
a82a04b3 13127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 13128fi
a82a04b3 13129echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
f73dda09
JA
13130echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13131if test $ac_cv_have_decl_sbrk = yes; then
13132
a82a04b3 13133cat >>confdefs.h <<_ACEOF
f73dda09 13134#define HAVE_DECL_SBRK 1
a82a04b3
CR
13135_ACEOF
13136
f73dda09
JA
13137
13138else
a82a04b3 13139 cat >>confdefs.h <<_ACEOF
f73dda09 13140#define HAVE_DECL_SBRK 0
a82a04b3
CR
13141_ACEOF
13142
f73dda09
JA
13143
13144fi
13145
a82a04b3
CR
13146
13147echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
7117c2d2
JA
13148echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13149if test "${ac_cv_have_decl_strcpy+set}" = set; then
f73dda09
JA
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151else
13152 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13153/* confdefs.h. */
13154_ACEOF
13155cat confdefs.h >>conftest.$ac_ext
13156cat >>conftest.$ac_ext <<_ACEOF
13157/* end confdefs.h. */
f73dda09
JA
13158$ac_includes_default
13159int
13160main ()
13161{
7117c2d2
JA
13162#ifndef strcpy
13163 char *p = (char *) strcpy;
f73dda09
JA
13164#endif
13165
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170rm -f conftest.$ac_objext
a82a04b3
CR
13171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
f73dda09 13173 ac_status=$?
a82a04b3
CR
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13178 (exit $ac_status); } &&
a82a04b3
CR
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
a82a04b3 13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13191 (exit $ac_status); }; }; then
7117c2d2 13192 ac_cv_have_decl_strcpy=yes
f73dda09
JA
13193else
13194 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
7117c2d2 13197ac_cv_have_decl_strcpy=no
f73dda09 13198fi
a82a04b3 13199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 13200fi
a82a04b3 13201echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
7117c2d2
JA
13202echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13203if test $ac_cv_have_decl_strcpy = yes; then
f73dda09 13204
a82a04b3 13205cat >>confdefs.h <<_ACEOF
7117c2d2 13206#define HAVE_DECL_STRCPY 1
a82a04b3
CR
13207_ACEOF
13208
f73dda09
JA
13209
13210else
a82a04b3 13211 cat >>confdefs.h <<_ACEOF
7117c2d2 13212#define HAVE_DECL_STRCPY 0
a82a04b3
CR
13213_ACEOF
13214
f73dda09
JA
13215
13216fi
13217
a82a04b3
CR
13218
13219echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
f73dda09
JA
13220echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13221if test "${ac_cv_have_decl_strsignal+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
13224 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
f73dda09
JA
13230$ac_includes_default
13231int
13232main ()
13233{
13234#ifndef strsignal
13235 char *p = (char *) strsignal;
13236#endif
13237
13238 ;
13239 return 0;
13240}
13241_ACEOF
13242rm -f conftest.$ac_objext
a82a04b3
CR
13243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>conftest.er1
f73dda09 13245 ac_status=$?
a82a04b3
CR
13246 grep -v '^ *+' conftest.er1 >conftest.err
13247 rm -f conftest.er1
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13250 (exit $ac_status); } &&
a82a04b3
CR
13251 { ac_try='test -z "$ac_c_werror_flag"
13252 || test ! -s conftest.err'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13260 (eval $ac_try) 2>&5
13261 ac_status=$?
a82a04b3 13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13263 (exit $ac_status); }; }; then
13264 ac_cv_have_decl_strsignal=yes
13265else
13266 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
f73dda09
JA
13269ac_cv_have_decl_strsignal=no
13270fi
a82a04b3 13271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 13272fi
a82a04b3 13273echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
f73dda09
JA
13274echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13275if test $ac_cv_have_decl_strsignal = yes; then
13276
a82a04b3 13277cat >>confdefs.h <<_ACEOF
f73dda09 13278#define HAVE_DECL_STRSIGNAL 1
a82a04b3
CR
13279_ACEOF
13280
f73dda09
JA
13281
13282else
a82a04b3 13283 cat >>confdefs.h <<_ACEOF
f73dda09 13284#define HAVE_DECL_STRSIGNAL 0
a82a04b3
CR
13285_ACEOF
13286
545f34cf
CR
13287
13288fi
13289
a82a04b3
CR
13290
13291
13292echo "$as_me:$LINENO: checking whether strtold is declared" >&5
7117c2d2
JA
13293echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13294if test "${ac_cv_have_decl_strtold+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
13297 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
7117c2d2
JA
13303$ac_includes_default
13304int
13305main ()
13306{
13307#ifndef strtold
13308 char *p = (char *) strtold;
13309#endif
13310
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest.$ac_objext
a82a04b3
CR
13316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>conftest.er1
7117c2d2 13318 ac_status=$?
a82a04b3
CR
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 13323 (exit $ac_status); } &&
a82a04b3
CR
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
a82a04b3 13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
13336 (exit $ac_status); }; }; then
13337 ac_cv_have_decl_strtold=yes
13338else
13339 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13340sed 's/^/| /' conftest.$ac_ext >&5
13341
7117c2d2
JA
13342ac_cv_have_decl_strtold=no
13343fi
a82a04b3 13344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 13345fi
a82a04b3 13346echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
7117c2d2
JA
13347echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13348if test $ac_cv_have_decl_strtold = yes; then
13349
a82a04b3 13350cat >>confdefs.h <<_ACEOF
7117c2d2 13351#define HAVE_DECL_STRTOLD 1
a82a04b3 13352_ACEOF
545f34cf 13353
a82a04b3
CR
13354
13355 echo "$as_me:$LINENO: checking for broken strtold" >&5
d3a24ed2
CR
13356echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13357 if test "${bash_cv_strtold_broken+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359else
13360 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13361/* confdefs.h. */
13362_ACEOF
13363cat confdefs.h >>conftest.$ac_ext
13364cat >>conftest.$ac_ext <<_ACEOF
13365/* end confdefs.h. */
d3a24ed2
CR
13366#include <stdlib.h>
13367int
13368main ()
13369{
13370int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13371 ;
13372 return 0;
13373}
13374_ACEOF
13375rm -f conftest.$ac_objext
a82a04b3
CR
13376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377 (eval $ac_compile) 2>conftest.er1
d3a24ed2 13378 ac_status=$?
a82a04b3
CR
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 13383 (exit $ac_status); } &&
a82a04b3
CR
13384 { ac_try='test -z "$ac_c_werror_flag"
13385 || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
a82a04b3 13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
13396 (exit $ac_status); }; }; then
13397 bash_cv_strtold_broken=no
13398else
13399 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
d3a24ed2
CR
13402bash_cv_strtold_broken=yes
13403fi
a82a04b3
CR
13404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405
d3a24ed2
CR
13406
13407fi
13408
a82a04b3 13409 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
d3a24ed2
CR
13410echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13411 if test "$bash_cv_strtold_broken" = "yes" ; then
a82a04b3 13412 cat >>confdefs.h <<\_ACEOF
d3a24ed2 13413#define STRTOLD_BROKEN 1
a82a04b3 13414_ACEOF
d3a24ed2
CR
13415
13416 fi
13417
7117c2d2 13418else
a82a04b3 13419 cat >>confdefs.h <<_ACEOF
7117c2d2 13420#define HAVE_DECL_STRTOLD 0
a82a04b3
CR
13421_ACEOF
13422
7117c2d2
JA
13423
13424fi
13425
a82a04b3
CR
13426
13427
13428
13429
13430
13431
13432echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
f73dda09
JA
13433echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13434if test "${bash_cv_decl_strtoimax+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
f73dda09
JA
13443
13444#if STDC_HEADERS
13445# include <stdlib.h>
13446#endif
13447#if HAVE_INTTYPES_H
13448# include <inttypes.h>
13449#endif
13450
13451int
13452main ()
13453{
13454return !strtoimax;
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461 (eval $ac_link) 2>conftest.er1
f73dda09 13462 ac_status=$?
a82a04b3
CR
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13467 (exit $ac_status); } &&
a82a04b3
CR
13468 { ac_try='test -z "$ac_c_werror_flag"
13469 || test ! -s conftest.err'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
a82a04b3
CR
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest$ac_exeext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13480 (exit $ac_status); }; }; then
13481 bash_cv_decl_strtoimax=yes
13482else
13483 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
f73dda09
JA
13486bash_cv_decl_strtoimax=no
13487fi
a82a04b3
CR
13488rm -f conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
f73dda09 13490fi
a82a04b3 13491echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
f73dda09
JA
13492echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13493bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13494if test $bash_cv_decl_strtoimax = yes; then
a82a04b3 13495 cat >>confdefs.h <<_ACEOF
f73dda09 13496#define $bash_tr_func 1
a82a04b3 13497_ACEOF
f73dda09
JA
13498
13499else
a82a04b3 13500 cat >>confdefs.h <<_ACEOF
f73dda09 13501#define $bash_tr_func 0
a82a04b3 13502_ACEOF
f73dda09
JA
13503
13504fi
13505
a82a04b3
CR
13506
13507
13508
13509echo "$as_me:$LINENO: checking for declaration of strtol" >&5
f73dda09
JA
13510echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13511if test "${bash_cv_decl_strtol+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513else
13514 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
f73dda09
JA
13520
13521#if STDC_HEADERS
13522# include <stdlib.h>
13523#endif
13524#if HAVE_INTTYPES_H
13525# include <inttypes.h>
13526#endif
13527
13528int
13529main ()
13530{
13531return !strtol;
13532 ;
13533 return 0;
13534}
13535_ACEOF
13536rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
13537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
f73dda09 13539 ac_status=$?
a82a04b3
CR
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13544 (exit $ac_status); } &&
a82a04b3
CR
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
a82a04b3
CR
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13557 (exit $ac_status); }; }; then
13558 bash_cv_decl_strtol=yes
13559else
13560 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
f73dda09
JA
13563bash_cv_decl_strtol=no
13564fi
a82a04b3
CR
13565rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
f73dda09 13567fi
a82a04b3 13568echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
f73dda09
JA
13569echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13570bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13571if test $bash_cv_decl_strtol = yes; then
a82a04b3 13572 cat >>confdefs.h <<_ACEOF
f73dda09 13573#define $bash_tr_func 1
a82a04b3 13574_ACEOF
f73dda09
JA
13575
13576else
a82a04b3 13577 cat >>confdefs.h <<_ACEOF
f73dda09 13578#define $bash_tr_func 0
a82a04b3 13579_ACEOF
f73dda09
JA
13580
13581fi
13582
a82a04b3
CR
13583
13584
13585
13586echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
f73dda09
JA
13587echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13588if test "${bash_cv_decl_strtoll+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590else
13591 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
f73dda09
JA
13597
13598#if STDC_HEADERS
13599# include <stdlib.h>
13600#endif
13601#if HAVE_INTTYPES_H
13602# include <inttypes.h>
13603#endif
13604
13605int
13606main ()
13607{
13608return !strtoll;
13609 ;
13610 return 0;
13611}
13612_ACEOF
13613rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
13614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
f73dda09 13616 ac_status=$?
a82a04b3
CR
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13621 (exit $ac_status); } &&
a82a04b3
CR
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
a82a04b3
CR
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13634 (exit $ac_status); }; }; then
13635 bash_cv_decl_strtoll=yes
13636else
13637 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
f73dda09
JA
13640bash_cv_decl_strtoll=no
13641fi
a82a04b3
CR
13642rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
f73dda09 13644fi
a82a04b3 13645echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
f73dda09
JA
13646echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13647bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13648if test $bash_cv_decl_strtoll = yes; then
a82a04b3 13649 cat >>confdefs.h <<_ACEOF
f73dda09 13650#define $bash_tr_func 1
a82a04b3 13651_ACEOF
f73dda09
JA
13652
13653else
a82a04b3 13654 cat >>confdefs.h <<_ACEOF
f73dda09 13655#define $bash_tr_func 0
a82a04b3 13656_ACEOF
f73dda09
JA
13657
13658fi
13659
a82a04b3
CR
13660
13661
13662
13663echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
f73dda09
JA
13664echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13665if test "${bash_cv_decl_strtoul+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13669/* confdefs.h. */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h. */
f73dda09
JA
13674
13675#if STDC_HEADERS
13676# include <stdlib.h>
13677#endif
13678#if HAVE_INTTYPES_H
13679# include <inttypes.h>
13680#endif
13681
13682int
13683main ()
13684{
13685return !strtoul;
13686 ;
13687 return 0;
13688}
13689_ACEOF
13690rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
13691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692 (eval $ac_link) 2>conftest.er1
f73dda09 13693 ac_status=$?
a82a04b3
CR
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13698 (exit $ac_status); } &&
a82a04b3
CR
13699 { ac_try='test -z "$ac_c_werror_flag"
13700 || test ! -s conftest.err'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
a82a04b3
CR
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest$ac_exeext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13711 (exit $ac_status); }; }; then
13712 bash_cv_decl_strtoul=yes
13713else
13714 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13715sed 's/^/| /' conftest.$ac_ext >&5
13716
f73dda09
JA
13717bash_cv_decl_strtoul=no
13718fi
a82a04b3
CR
13719rm -f conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
f73dda09 13721fi
a82a04b3 13722echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
f73dda09
JA
13723echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13724bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13725if test $bash_cv_decl_strtoul = yes; then
a82a04b3 13726 cat >>confdefs.h <<_ACEOF
f73dda09 13727#define $bash_tr_func 1
a82a04b3 13728_ACEOF
f73dda09
JA
13729
13730else
a82a04b3 13731 cat >>confdefs.h <<_ACEOF
f73dda09 13732#define $bash_tr_func 0
a82a04b3 13733_ACEOF
f73dda09
JA
13734
13735fi
13736
a82a04b3
CR
13737
13738
13739
13740echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
f73dda09
JA
13741echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13742if test "${bash_cv_decl_strtoull+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13746/* confdefs.h. */
13747_ACEOF
13748cat confdefs.h >>conftest.$ac_ext
13749cat >>conftest.$ac_ext <<_ACEOF
13750/* end confdefs.h. */
f73dda09
JA
13751
13752#if STDC_HEADERS
13753# include <stdlib.h>
13754#endif
13755#if HAVE_INTTYPES_H
13756# include <inttypes.h>
13757#endif
13758
13759int
13760main ()
13761{
13762return !strtoull;
13763 ;
13764 return 0;
13765}
13766_ACEOF
13767rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
13768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13769 (eval $ac_link) 2>conftest.er1
f73dda09 13770 ac_status=$?
a82a04b3
CR
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13775 (exit $ac_status); } &&
a82a04b3
CR
13776 { ac_try='test -z "$ac_c_werror_flag"
13777 || test ! -s conftest.err'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
a82a04b3
CR
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest$ac_exeext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13788 (exit $ac_status); }; }; then
13789 bash_cv_decl_strtoull=yes
13790else
13791 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
f73dda09
JA
13794bash_cv_decl_strtoull=no
13795fi
a82a04b3
CR
13796rm -f conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
f73dda09 13798fi
a82a04b3 13799echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
f73dda09
JA
13800echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13801bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13802if test $bash_cv_decl_strtoull = yes; then
a82a04b3 13803 cat >>confdefs.h <<_ACEOF
f73dda09 13804#define $bash_tr_func 1
a82a04b3 13805_ACEOF
f73dda09
JA
13806
13807else
a82a04b3 13808 cat >>confdefs.h <<_ACEOF
f73dda09 13809#define $bash_tr_func 0
a82a04b3 13810_ACEOF
f73dda09
JA
13811
13812fi
13813
a82a04b3
CR
13814
13815
13816
13817echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
f73dda09
JA
13818echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
13819if test "${bash_cv_decl_strtoumax+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13821else
13822 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
f73dda09
JA
13828
13829#if STDC_HEADERS
13830# include <stdlib.h>
13831#endif
13832#if HAVE_INTTYPES_H
13833# include <inttypes.h>
13834#endif
13835
13836int
13837main ()
13838{
13839return !strtoumax;
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
13845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>conftest.er1
f73dda09 13847 ac_status=$?
a82a04b3
CR
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 13852 (exit $ac_status); } &&
a82a04b3
CR
13853 { ac_try='test -z "$ac_c_werror_flag"
13854 || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
a82a04b3
CR
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13865 (exit $ac_status); }; }; then
13866 bash_cv_decl_strtoumax=yes
13867else
13868 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
f73dda09
JA
13871bash_cv_decl_strtoumax=no
13872fi
a82a04b3
CR
13873rm -f conftest.err conftest.$ac_objext \
13874 conftest$ac_exeext conftest.$ac_ext
f73dda09 13875fi
a82a04b3 13876echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
f73dda09
JA
13877echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
13878bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13879if test $bash_cv_decl_strtoumax = yes; then
a82a04b3 13880 cat >>confdefs.h <<_ACEOF
f73dda09 13881#define $bash_tr_func 1
a82a04b3 13882_ACEOF
f73dda09
JA
13883
13884else
a82a04b3 13885 cat >>confdefs.h <<_ACEOF
f73dda09 13886#define $bash_tr_func 0
a82a04b3 13887_ACEOF
f73dda09
JA
13888
13889fi
13890
a82a04b3
CR
13891
13892
13893
13894
13895for ac_header in stdlib.h sys/time.h unistd.h
f73dda09
JA
13896do
13897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
13898if eval "test \"\${$as_ac_Header+set}\" = set"; then
13899 echo "$as_me:$LINENO: checking for $ac_header" >&5
f73dda09
JA
13900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13901if eval "test \"\${$as_ac_Header+set}\" = set"; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
13903fi
13904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 13906else
a82a04b3
CR
13907 # Is the header compilable?
13908echo "$as_me:$LINENO: checking $ac_header usability" >&5
13909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13910cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
13916$ac_includes_default
13917#include <$ac_header>
13918_ACEOF
13919rm -f conftest.$ac_objext
13920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13921 (eval $ac_compile) 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag"
13929 || test ! -s conftest.err'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_header_compiler=yes
13942else
13943 echo "$as_me: failed program was:" >&5
13944sed 's/^/| /' conftest.$ac_ext >&5
13945
13946ac_header_compiler=no
13947fi
13948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13950echo "${ECHO_T}$ac_header_compiler" >&6
13951
13952# Is the header present?
13953echo "$as_me:$LINENO: checking $ac_header presence" >&5
13954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13955cat >conftest.$ac_ext <<_ACEOF
13956/* confdefs.h. */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h. */
f73dda09
JA
13961#include <$ac_header>
13962_ACEOF
a82a04b3 13963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
13964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13965 ac_status=$?
a82a04b3 13966 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
13967 rm -f conftest.er1
13968 cat conftest.err >&5
a82a04b3 13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
13970 (exit $ac_status); } >/dev/null; then
13971 if test -s conftest.err; then
13972 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 13973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
13974 else
13975 ac_cpp_err=
13976 fi
13977else
13978 ac_cpp_err=yes
13979fi
13980if test -z "$ac_cpp_err"; then
a82a04b3 13981 ac_header_preproc=yes
f73dda09
JA
13982else
13983 echo "$as_me: failed program was:" >&5
a82a04b3
CR
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 ac_header_preproc=no
f73dda09
JA
13987fi
13988rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
13989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13990echo "${ECHO_T}$ac_header_preproc" >&6
13991
13992# So? What about this header?
13993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13994 yes:no: )
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13999 ac_header_preproc=yes
14000 ;;
14001 no:yes:* )
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14014 (
14015 cat <<\_ASBOX
14016## ------------------------------- ##
14017## Report this to bug-bash@gnu.org ##
14018## ------------------------------- ##
14019_ASBOX
14020 ) |
14021 sed "s/^/$as_me: WARNING: /" >&2
14022 ;;
14023esac
14024echo "$as_me:$LINENO: checking for $ac_header" >&5
14025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14026if eval "test \"\${$as_ac_Header+set}\" = set"; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028else
14029 eval "$as_ac_Header=\$ac_header_preproc"
f73dda09 14030fi
a82a04b3 14031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09 14032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
14033
14034fi
f73dda09 14035if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 14036 cat >>confdefs.h <<_ACEOF
f73dda09 14037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 14038_ACEOF
f73dda09
JA
14039
14040fi
a82a04b3 14041
f73dda09
JA
14042done
14043
a82a04b3 14044
7117c2d2 14045for ac_func in alarm
f73dda09
JA
14046do
14047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 14048echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
14049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14050if eval "test \"\${$as_ac_var+set}\" = set"; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
14054/* confdefs.h. */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
14058/* end confdefs.h. */
14059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14061#define $ac_func innocuous_$ac_func
14062
f73dda09 14063/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
14064 which can conflict with char $ac_func (); below.
14065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14066 <limits.h> exists even on freestanding compilers. */
14067
14068#ifdef __STDC__
14069# include <limits.h>
14070#else
14071# include <assert.h>
14072#endif
14073
14074#undef $ac_func
14075
f73dda09
JA
14076/* Override any gcc2 internal prototype to avoid an error. */
14077#ifdef __cplusplus
14078extern "C"
a82a04b3 14079{
f73dda09
JA
14080#endif
14081/* We use char because int might match the return type of a gcc2
14082 builtin and then its argument prototype would still apply. */
14083char $ac_func ();
f73dda09
JA
14084/* The GNU C library defines this for functions which it implements
14085 to always fail with ENOSYS. Some functions are actually named
14086 something starting with __ and the normal name is an alias. */
14087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14088choke me
14089#else
a82a04b3
CR
14090char (*f) () = $ac_func;
14091#endif
14092#ifdef __cplusplus
14093}
f73dda09
JA
14094#endif
14095
a82a04b3
CR
14096int
14097main ()
14098{
14099return f != $ac_func;
f73dda09
JA
14100 ;
14101 return 0;
14102}
14103_ACEOF
14104rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
14105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 (eval $ac_link) 2>conftest.er1
f73dda09 14107 ac_status=$?
a82a04b3
CR
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 14112 (exit $ac_status); } &&
a82a04b3
CR
14113 { ac_try='test -z "$ac_c_werror_flag"
14114 || test ! -s conftest.err'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
a82a04b3 14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
14125 (exit $ac_status); }; }; then
14126 eval "$as_ac_var=yes"
14127else
14128 echo "$as_me: failed program was:" >&5
a82a04b3
CR
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
f73dda09
JA
14131eval "$as_ac_var=no"
14132fi
a82a04b3
CR
14133rm -f conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
f73dda09 14135fi
a82a04b3 14136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
14137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14138if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 14139 cat >>confdefs.h <<_ACEOF
f73dda09 14140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 14141_ACEOF
f73dda09
JA
14142
14143fi
14144done
14145
a82a04b3 14146echo "$as_me:$LINENO: checking for working mktime" >&5
7117c2d2
JA
14147echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14148if test "${ac_cv_func_working_mktime+set}" = set; then
f73dda09
JA
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14150else
7117c2d2
JA
14151 if test "$cross_compiling" = yes; then
14152 ac_cv_func_working_mktime=no
14153else
14154 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
7117c2d2
JA
14160/* Test program from Paul Eggert and Tony Leneis. */
14161#if TIME_WITH_SYS_TIME
14162# include <sys/time.h>
14163# include <time.h>
14164#else
14165# if HAVE_SYS_TIME_H
14166# include <sys/time.h>
14167# else
14168# include <time.h>
14169# endif
14170#endif
f73dda09 14171
a82a04b3
CR
14172#if HAVE_STDLIB_H
14173# include <stdlib.h>
14174#endif
14175
7117c2d2
JA
14176#if HAVE_UNISTD_H
14177# include <unistd.h>
f73dda09 14178#endif
7117c2d2
JA
14179
14180#if !HAVE_ALARM
14181# define alarm(X) /* empty */
14182#endif
14183
14184/* Work around redefinition to rpl_putenv by other config tests. */
14185#undef putenv
14186
14187static time_t time_t_max;
a82a04b3 14188static time_t time_t_min;
7117c2d2
JA
14189
14190/* Values we'll use to set the TZ environment variable. */
a82a04b3
CR
14191static char *tz_strings[] = {
14192 (char *) 0, "TZ=GMT0", "TZ=JST-9",
7117c2d2
JA
14193 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14194};
14195#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14196
14197/* Fail if mktime fails to convert a date in the spring-forward gap.
14198 Based on a problem report from Andreas Jaeger. */
14199static void
14200spring_forward_gap ()
14201{
14202 /* glibc (up to about 1998-10-07) failed this test. */
14203 struct tm tm;
14204
14205 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14206 instead of "TZ=America/Vancouver" in order to detect the bug even
14207 on systems that don't support the Olson extension, or don't have the
14208 full zoneinfo tables installed. */
14209 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14210
14211 tm.tm_year = 98;
14212 tm.tm_mon = 3;
14213 tm.tm_mday = 5;
14214 tm.tm_hour = 2;
14215 tm.tm_min = 0;
14216 tm.tm_sec = 0;
14217 tm.tm_isdst = -1;
14218 if (mktime (&tm) == (time_t)-1)
14219 exit (1);
14220}
14221
14222static void
a82a04b3 14223mktime_test1 (now)
7117c2d2
JA
14224 time_t now;
14225{
14226 struct tm *lt;
14227 if ((lt = localtime (&now)) && mktime (lt) != now)
14228 exit (1);
a82a04b3
CR
14229}
14230
14231static void
14232mktime_test (now)
14233 time_t now;
14234{
14235 mktime_test1 (now);
14236 mktime_test1 ((time_t) (time_t_max - now));
14237 mktime_test1 ((time_t) (time_t_min + now));
7117c2d2
JA
14238}
14239
14240static void
14241irix_6_4_bug ()
14242{
14243 /* Based on code from Ariel Faigon. */
14244 struct tm tm;
14245 tm.tm_year = 96;
14246 tm.tm_mon = 3;
14247 tm.tm_mday = 0;
14248 tm.tm_hour = 0;
14249 tm.tm_min = 0;
14250 tm.tm_sec = 0;
14251 tm.tm_isdst = -1;
14252 mktime (&tm);
14253 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14254 exit (1);
14255}
14256
14257static void
14258bigtime_test (j)
14259 int j;
14260{
14261 struct tm tm;
14262 time_t now;
14263 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14264 now = mktime (&tm);
14265 if (now != (time_t) -1)
14266 {
14267 struct tm *lt = localtime (&now);
14268 if (! (lt
14269 && lt->tm_year == tm.tm_year
14270 && lt->tm_mon == tm.tm_mon
14271 && lt->tm_mday == tm.tm_mday
14272 && lt->tm_hour == tm.tm_hour
14273 && lt->tm_min == tm.tm_min
14274 && lt->tm_sec == tm.tm_sec
14275 && lt->tm_yday == tm.tm_yday
14276 && lt->tm_wday == tm.tm_wday
14277 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14278 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14279 exit (1);
14280 }
14281}
14282
f73dda09
JA
14283int
14284main ()
14285{
7117c2d2
JA
14286 time_t t, delta;
14287 int i, j;
14288
14289 /* This test makes some buggy mktime implementations loop.
14290 Give up after 60 seconds; a mktime slower than that
14291 isn't worth using anyway. */
14292 alarm (60);
14293
14294 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14295 continue;
14296 time_t_max--;
a82a04b3
CR
14297 if ((time_t) -1 < 0)
14298 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14299 continue;
7117c2d2
JA
14300 delta = time_t_max / 997; /* a suitable prime number */
14301 for (i = 0; i < N_STRINGS; i++)
14302 {
14303 if (tz_strings[i])
14304 putenv (tz_strings[i]);
14305
14306 for (t = 0; t <= time_t_max - delta; t += delta)
14307 mktime_test (t);
a82a04b3
CR
14308 mktime_test ((time_t) 1);
14309 mktime_test ((time_t) (60 * 60));
14310 mktime_test ((time_t) (60 * 60 * 24));
7117c2d2
JA
14311
14312 for (j = 1; 0 < j; j *= 2)
a82a04b3 14313 bigtime_test (j);
7117c2d2
JA
14314 bigtime_test (j - 1);
14315 }
14316 irix_6_4_bug ();
14317 spring_forward_gap ();
14318 exit (0);
f73dda09
JA
14319}
14320_ACEOF
7117c2d2 14321rm -f conftest$ac_exeext
a82a04b3 14322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
14323 (eval $ac_link) 2>&5
14324 ac_status=$?
a82a04b3 14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 14326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
a82a04b3 14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 14331 (exit $ac_status); }; }; then
7117c2d2
JA
14332 ac_cv_func_working_mktime=yes
14333else
14334 echo "$as_me: program exited with status $ac_status" >&5
14335echo "$as_me: failed program was:" >&5
a82a04b3
CR
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
14338( exit $ac_status )
7117c2d2
JA
14339ac_cv_func_working_mktime=no
14340fi
a82a04b3 14341rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7117c2d2
JA
14342fi
14343fi
a82a04b3 14344echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
7117c2d2
JA
14345echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14346if test $ac_cv_func_working_mktime = no; then
a82a04b3
CR
14347 case $LIBOBJS in
14348 "mktime.$ac_objext" | \
14349 *" mktime.$ac_objext" | \
14350 "mktime.$ac_objext "* | \
14351 *" mktime.$ac_objext "* ) ;;
14352 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14353esac
14354
7117c2d2
JA
14355fi
14356
a82a04b3
CR
14357
14358
14359
14360
14361
14362
14363
5e13499c
CR
14364for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14365do
14366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
14367if eval "test \"\${$as_ac_Header+set}\" = set"; then
14368 echo "$as_me:$LINENO: checking for $ac_header" >&5
5e13499c
CR
14369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14370if eval "test \"\${$as_ac_Header+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
14372fi
14373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 14375else
a82a04b3
CR
14376 # Is the header compilable?
14377echo "$as_me:$LINENO: checking $ac_header usability" >&5
14378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14379cat >conftest.$ac_ext <<_ACEOF
14380/* confdefs.h. */
14381_ACEOF
14382cat confdefs.h >>conftest.$ac_ext
14383cat >>conftest.$ac_ext <<_ACEOF
14384/* end confdefs.h. */
14385$ac_includes_default
14386#include <$ac_header>
14387_ACEOF
14388rm -f conftest.$ac_objext
14389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390 (eval $ac_compile) 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag"
14398 || test ! -s conftest.err'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest.$ac_objext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_header_compiler=yes
14411else
14412 echo "$as_me: failed program was:" >&5
14413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415ac_header_compiler=no
14416fi
14417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14419echo "${ECHO_T}$ac_header_compiler" >&6
14420
14421# Is the header present?
14422echo "$as_me:$LINENO: checking $ac_header presence" >&5
14423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14424cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h. */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h. */
5e13499c
CR
14430#include <$ac_header>
14431_ACEOF
a82a04b3 14432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5e13499c
CR
14433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14434 ac_status=$?
a82a04b3 14435 grep -v '^ *+' conftest.er1 >conftest.err
5e13499c
CR
14436 rm -f conftest.er1
14437 cat conftest.err >&5
a82a04b3 14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c
CR
14439 (exit $ac_status); } >/dev/null; then
14440 if test -s conftest.err; then
14441 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 14442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5e13499c
CR
14443 else
14444 ac_cpp_err=
14445 fi
14446else
14447 ac_cpp_err=yes
14448fi
14449if test -z "$ac_cpp_err"; then
a82a04b3 14450 ac_header_preproc=yes
5e13499c
CR
14451else
14452 echo "$as_me: failed program was:" >&5
a82a04b3
CR
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455 ac_header_preproc=no
5e13499c
CR
14456fi
14457rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
14458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14459echo "${ECHO_T}$ac_header_preproc" >&6
14460
14461# So? What about this header?
14462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14463 yes:no: )
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14468 ac_header_preproc=yes
14469 ;;
14470 no:yes:* )
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14478echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14483 (
14484 cat <<\_ASBOX
14485## ------------------------------- ##
14486## Report this to bug-bash@gnu.org ##
14487## ------------------------------- ##
14488_ASBOX
14489 ) |
14490 sed "s/^/$as_me: WARNING: /" >&2
14491 ;;
14492esac
14493echo "$as_me:$LINENO: checking for $ac_header" >&5
14494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14495if eval "test \"\${$as_ac_Header+set}\" = set"; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 eval "$as_ac_Header=\$ac_header_preproc"
5e13499c 14499fi
a82a04b3 14500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5e13499c 14501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
14502
14503fi
5e13499c 14504if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 14505 cat >>confdefs.h <<_ACEOF
5e13499c 14506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 14507_ACEOF
5e13499c
CR
14508
14509fi
a82a04b3 14510
5e13499c
CR
14511done
14512
a82a04b3
CR
14513
14514
14515
5e13499c 14516for ac_header in stdlib.h unistd.h
7117c2d2
JA
14517do
14518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
14519if eval "test \"\${$as_ac_Header+set}\" = set"; then
14520 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117c2d2
JA
14521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14522if eval "test \"\${$as_ac_Header+set}\" = set"; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
14524fi
14525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 14527else
a82a04b3
CR
14528 # Is the header compilable?
14529echo "$as_me:$LINENO: checking $ac_header usability" >&5
14530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14531cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
14537$ac_includes_default
14538#include <$ac_header>
14539_ACEOF
14540rm -f conftest.$ac_objext
14541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_header_compiler=yes
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
14567ac_header_compiler=no
14568fi
14569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14571echo "${ECHO_T}$ac_header_compiler" >&6
14572
14573# Is the header present?
14574echo "$as_me:$LINENO: checking $ac_header presence" >&5
14575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14576cat >conftest.$ac_ext <<_ACEOF
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
7117c2d2
JA
14582#include <$ac_header>
14583_ACEOF
a82a04b3 14584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117c2d2
JA
14585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14586 ac_status=$?
a82a04b3 14587 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
14588 rm -f conftest.er1
14589 cat conftest.err >&5
a82a04b3 14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
14591 (exit $ac_status); } >/dev/null; then
14592 if test -s conftest.err; then
14593 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 14594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7117c2d2
JA
14595 else
14596 ac_cpp_err=
14597 fi
14598else
14599 ac_cpp_err=yes
14600fi
14601if test -z "$ac_cpp_err"; then
a82a04b3 14602 ac_header_preproc=yes
7117c2d2
JA
14603else
14604 echo "$as_me: failed program was:" >&5
a82a04b3
CR
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_header_preproc=no
7117c2d2
JA
14608fi
14609rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
14610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14611echo "${ECHO_T}$ac_header_preproc" >&6
14612
14613# So? What about this header?
14614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14615 yes:no: )
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14620 ac_header_preproc=yes
14621 ;;
14622 no:yes:* )
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14635 (
14636 cat <<\_ASBOX
14637## ------------------------------- ##
14638## Report this to bug-bash@gnu.org ##
14639## ------------------------------- ##
14640_ASBOX
14641 ) |
14642 sed "s/^/$as_me: WARNING: /" >&2
14643 ;;
14644esac
14645echo "$as_me:$LINENO: checking for $ac_header" >&5
14646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14647if eval "test \"\${$as_ac_Header+set}\" = set"; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649else
14650 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 14651fi
a82a04b3 14652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117c2d2 14653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
14654
14655fi
7117c2d2 14656if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 14657 cat >>confdefs.h <<_ACEOF
7117c2d2 14658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 14659_ACEOF
7117c2d2
JA
14660
14661fi
a82a04b3 14662
7117c2d2
JA
14663done
14664
a82a04b3 14665
5e13499c 14666for ac_func in getpagesize
7117c2d2
JA
14667do
14668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 14669echo "$as_me:$LINENO: checking for $ac_func" >&5
7117c2d2
JA
14670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14671if eval "test \"\${$as_ac_var+set}\" = set"; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673else
14674 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
14675/* confdefs.h. */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
14679/* end confdefs.h. */
14680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14682#define $ac_func innocuous_$ac_func
14683
7117c2d2 14684/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
14685 which can conflict with char $ac_func (); below.
14686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14687 <limits.h> exists even on freestanding compilers. */
14688
14689#ifdef __STDC__
14690# include <limits.h>
14691#else
14692# include <assert.h>
14693#endif
14694
14695#undef $ac_func
14696
7117c2d2
JA
14697/* Override any gcc2 internal prototype to avoid an error. */
14698#ifdef __cplusplus
14699extern "C"
a82a04b3 14700{
7117c2d2
JA
14701#endif
14702/* We use char because int might match the return type of a gcc2
14703 builtin and then its argument prototype would still apply. */
14704char $ac_func ();
7117c2d2
JA
14705/* The GNU C library defines this for functions which it implements
14706 to always fail with ENOSYS. Some functions are actually named
14707 something starting with __ and the normal name is an alias. */
14708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14709choke me
14710#else
a82a04b3
CR
14711char (*f) () = $ac_func;
14712#endif
14713#ifdef __cplusplus
14714}
7117c2d2
JA
14715#endif
14716
a82a04b3
CR
14717int
14718main ()
14719{
14720return f != $ac_func;
7117c2d2
JA
14721 ;
14722 return 0;
14723}
14724_ACEOF
14725rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
14726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727 (eval $ac_link) 2>conftest.er1
7117c2d2 14728 ac_status=$?
a82a04b3
CR
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 14733 (exit $ac_status); } &&
a82a04b3
CR
14734 { ac_try='test -z "$ac_c_werror_flag"
14735 || test ! -s conftest.err'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
a82a04b3
CR
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; } &&
14741 { ac_try='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
14746 (exit $ac_status); }; }; then
14747 eval "$as_ac_var=yes"
14748else
14749 echo "$as_me: failed program was:" >&5
a82a04b3
CR
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
7117c2d2
JA
14752eval "$as_ac_var=no"
14753fi
a82a04b3
CR
14754rm -f conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext conftest.$ac_ext
7117c2d2 14756fi
a82a04b3 14757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7117c2d2
JA
14758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14759if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 14760 cat >>confdefs.h <<_ACEOF
7117c2d2 14761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 14762_ACEOF
7117c2d2
JA
14763
14764fi
14765done
14766
a82a04b3 14767echo "$as_me:$LINENO: checking for working mmap" >&5
5e13499c
CR
14768echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14769if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7117c2d2
JA
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771else
5e13499c
CR
14772 if test "$cross_compiling" = yes; then
14773 ac_cv_func_mmap_fixed_mapped=no
14774else
14775 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
5e13499c 14781$ac_includes_default
a82a04b3
CR
14782/* malloc might have been renamed as rpl_malloc. */
14783#undef malloc
14784
5e13499c
CR
14785/* Thanks to Mike Haertel and Jim Avera for this test.
14786 Here is a matrix of mmap possibilities:
14787 mmap private not fixed
14788 mmap private fixed at somewhere currently unmapped
14789 mmap private fixed at somewhere already mapped
14790 mmap shared not fixed
14791 mmap shared fixed at somewhere currently unmapped
14792 mmap shared fixed at somewhere already mapped
14793 For private mappings, we should verify that changes cannot be read()
14794 back from the file, nor mmap's back from the file at a different
14795 address. (There have been systems where private was not correctly
14796 implemented like the infamous i386 svr4.0, and systems where the
14797 VM page cache was not coherent with the file system buffer cache
14798 like early versions of FreeBSD and possibly contemporary NetBSD.)
14799 For shared mappings, we should conversely verify that changes get
a82a04b3 14800 propagated back to all the places they're supposed to be.
5e13499c
CR
14801
14802 Grep wants private fixed already mapped.
14803 The main things grep needs to know about mmap are:
14804 * does it exist and is it safe to write into the mmap'd area
14805 * how to use it (BSD variants) */
7117c2d2 14806
5e13499c
CR
14807#include <fcntl.h>
14808#include <sys/mman.h>
14809
14810#if !STDC_HEADERS && !HAVE_STDLIB_H
14811char *malloc ();
7117c2d2 14812#endif
5e13499c
CR
14813
14814/* This mess was copied from the GNU getpagesize.h. */
14815#if !HAVE_GETPAGESIZE
14816/* Assume that all systems that can run configure have sys/param.h. */
14817# if !HAVE_SYS_PARAM_H
14818# define HAVE_SYS_PARAM_H 1
14819# endif
14820
14821# ifdef _SC_PAGESIZE
14822# define getpagesize() sysconf(_SC_PAGESIZE)
14823# else /* no _SC_PAGESIZE */
14824# if HAVE_SYS_PARAM_H
14825# include <sys/param.h>
14826# ifdef EXEC_PAGESIZE
14827# define getpagesize() EXEC_PAGESIZE
14828# else /* no EXEC_PAGESIZE */
14829# ifdef NBPG
14830# define getpagesize() NBPG * CLSIZE
14831# ifndef CLSIZE
14832# define CLSIZE 1
14833# endif /* no CLSIZE */
14834# else /* no NBPG */
14835# ifdef NBPC
14836# define getpagesize() NBPC
14837# else /* no NBPC */
14838# ifdef PAGESIZE
14839# define getpagesize() PAGESIZE
14840# endif /* PAGESIZE */
14841# endif /* no NBPC */
14842# endif /* no NBPG */
14843# endif /* no EXEC_PAGESIZE */
14844# else /* no HAVE_SYS_PARAM_H */
14845# define getpagesize() 8192 /* punt totally */
14846# endif /* no HAVE_SYS_PARAM_H */
14847# endif /* no _SC_PAGESIZE */
14848
14849#endif /* no HAVE_GETPAGESIZE */
14850
7117c2d2
JA
14851int
14852main ()
14853{
5e13499c
CR
14854 char *data, *data2, *data3;
14855 int i, pagesize;
14856 int fd;
14857
14858 pagesize = getpagesize ();
14859
14860 /* First, make a file with some known garbage in it. */
14861 data = (char *) malloc (pagesize);
14862 if (!data)
14863 exit (1);
14864 for (i = 0; i < pagesize; ++i)
14865 *(data + i) = rand ();
14866 umask (0);
14867 fd = creat ("conftest.mmap", 0600);
14868 if (fd < 0)
14869 exit (1);
14870 if (write (fd, data, pagesize) != pagesize)
14871 exit (1);
14872 close (fd);
14873
14874 /* Next, try to mmap the file at a fixed address which already has
14875 something else allocated at it. If we can, also make sure that
14876 we see the same garbage. */
14877 fd = open ("conftest.mmap", O_RDWR);
14878 if (fd < 0)
14879 exit (1);
14880 data2 = (char *) malloc (2 * pagesize);
14881 if (!data2)
14882 exit (1);
a82a04b3 14883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5e13499c 14884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
a82a04b3 14885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5e13499c
CR
14886 exit (1);
14887 for (i = 0; i < pagesize; ++i)
14888 if (*(data + i) != *(data2 + i))
14889 exit (1);
14890
14891 /* Finally, make sure that changes to the mapped area do not
14892 percolate back to the file as seen by read(). (This is a bug on
14893 some variants of i386 svr4.0.) */
14894 for (i = 0; i < pagesize; ++i)
14895 *(data2 + i) = *(data2 + i) + 1;
14896 data3 = (char *) malloc (pagesize);
14897 if (!data3)
14898 exit (1);
14899 if (read (fd, data3, pagesize) != pagesize)
14900 exit (1);
14901 for (i = 0; i < pagesize; ++i)
14902 if (*(data + i) != *(data3 + i))
14903 exit (1);
14904 close (fd);
14905 exit (0);
7117c2d2
JA
14906}
14907_ACEOF
5e13499c 14908rm -f conftest$ac_exeext
a82a04b3 14909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117c2d2
JA
14910 (eval $ac_link) 2>&5
14911 ac_status=$?
a82a04b3 14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5e13499c 14913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
a82a04b3 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 14918 (exit $ac_status); }; }; then
5e13499c 14919 ac_cv_func_mmap_fixed_mapped=yes
f73dda09 14920else
5e13499c
CR
14921 echo "$as_me: program exited with status $ac_status" >&5
14922echo "$as_me: failed program was:" >&5
a82a04b3
CR
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925( exit $ac_status )
5e13499c 14926ac_cv_func_mmap_fixed_mapped=no
f73dda09 14927fi
a82a04b3 14928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 14929fi
5e13499c 14930fi
a82a04b3 14931echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5e13499c
CR
14932echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14933if test $ac_cv_func_mmap_fixed_mapped = yes; then
f73dda09 14934
a82a04b3 14935cat >>confdefs.h <<\_ACEOF
5e13499c 14936#define HAVE_MMAP 1
a82a04b3 14937_ACEOF
f73dda09
JA
14938
14939fi
e624d0f7 14940rm -f conftest.mmap
545f34cf 14941
a82a04b3
CR
14942
14943
14944
14945
14946
14947
14948
14949
14950
5e13499c
CR
14951for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
14952 munmap stpcpy strcspn strdup
f73dda09
JA
14953do
14954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 14955echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
14956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14957if eval "test \"\${$as_ac_var+set}\" = set"; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
14961/* confdefs.h. */
14962_ACEOF
14963cat confdefs.h >>conftest.$ac_ext
14964cat >>conftest.$ac_ext <<_ACEOF
14965/* end confdefs.h. */
14966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14968#define $ac_func innocuous_$ac_func
14969
f73dda09 14970/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
14971 which can conflict with char $ac_func (); below.
14972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14973 <limits.h> exists even on freestanding compilers. */
14974
14975#ifdef __STDC__
14976# include <limits.h>
14977#else
14978# include <assert.h>
14979#endif
14980
14981#undef $ac_func
14982
f73dda09
JA
14983/* Override any gcc2 internal prototype to avoid an error. */
14984#ifdef __cplusplus
14985extern "C"
a82a04b3 14986{
f73dda09
JA
14987#endif
14988/* We use char because int might match the return type of a gcc2
14989 builtin and then its argument prototype would still apply. */
14990char $ac_func ();
f73dda09
JA
14991/* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14995choke me
14996#else
a82a04b3
CR
14997char (*f) () = $ac_func;
14998#endif
14999#ifdef __cplusplus
15000}
f73dda09
JA
15001#endif
15002
a82a04b3
CR
15003int
15004main ()
15005{
15006return f != $ac_func;
f73dda09
JA
15007 ;
15008 return 0;
15009}
15010_ACEOF
15011rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
15012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>conftest.er1
f73dda09 15014 ac_status=$?
a82a04b3
CR
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 15019 (exit $ac_status); } &&
a82a04b3
CR
15020 { ac_try='test -z "$ac_c_werror_flag"
15021 || test ! -s conftest.err'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
a82a04b3 15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
15032 (exit $ac_status); }; }; then
15033 eval "$as_ac_var=yes"
15034else
15035 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
f73dda09
JA
15038eval "$as_ac_var=no"
15039fi
a82a04b3
CR
15040rm -f conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
f73dda09 15042fi
a82a04b3 15043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
15044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15045if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 15046 cat >>confdefs.h <<_ACEOF
f73dda09 15047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 15048_ACEOF
f73dda09 15049
ccc6cda3 15050fi
f73dda09
JA
15051done
15052
a82a04b3 15053
12d937f9 15054INTL_DEP= INTL_INC= LIBINTL_H=
5e13499c
CR
15055if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15056 INTL_DEP='${INTL_LIBDIR}/libintl.a'
12d937f9
CR
15057 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15058 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
ccc6cda3 15059fi
f73dda09 15060
a82a04b3
CR
15061
15062
15063
15064
15065
15066
7117c2d2
JA
15067for ac_header in wctype.h
15068do
15069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
15070if eval "test \"\${$as_ac_Header+set}\" = set"; then
15071 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117c2d2
JA
15072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15073if eval "test \"\${$as_ac_Header+set}\" = set"; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
15075fi
15076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 15078else
a82a04b3
CR
15079 # Is the header compilable?
15080echo "$as_me:$LINENO: checking $ac_header usability" >&5
15081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15082cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088$ac_includes_default
15089#include <$ac_header>
15090_ACEOF
15091rm -f conftest.$ac_objext
15092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093 (eval $ac_compile) 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag"
15101 || test ! -s conftest.err'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; } &&
15107 { ac_try='test -s conftest.$ac_objext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_header_compiler=yes
15114else
15115 echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118ac_header_compiler=no
15119fi
15120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15122echo "${ECHO_T}$ac_header_compiler" >&6
15123
15124# Is the header present?
15125echo "$as_me:$LINENO: checking $ac_header presence" >&5
15126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15127cat >conftest.$ac_ext <<_ACEOF
15128/* confdefs.h. */
15129_ACEOF
15130cat confdefs.h >>conftest.$ac_ext
15131cat >>conftest.$ac_ext <<_ACEOF
15132/* end confdefs.h. */
7117c2d2
JA
15133#include <$ac_header>
15134_ACEOF
a82a04b3 15135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117c2d2
JA
15136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15137 ac_status=$?
a82a04b3 15138 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
15139 rm -f conftest.er1
15140 cat conftest.err >&5
a82a04b3 15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
15142 (exit $ac_status); } >/dev/null; then
15143 if test -s conftest.err; then
15144 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 15145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7117c2d2
JA
15146 else
15147 ac_cpp_err=
15148 fi
15149else
15150 ac_cpp_err=yes
15151fi
15152if test -z "$ac_cpp_err"; then
a82a04b3 15153 ac_header_preproc=yes
7117c2d2
JA
15154else
15155 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15156sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 ac_header_preproc=no
7117c2d2
JA
15159fi
15160rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
15161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15162echo "${ECHO_T}$ac_header_preproc" >&6
15163
15164# So? What about this header?
15165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15166 yes:no: )
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15171 ac_header_preproc=yes
15172 ;;
15173 no:yes:* )
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15186 (
15187 cat <<\_ASBOX
15188## ------------------------------- ##
15189## Report this to bug-bash@gnu.org ##
15190## ------------------------------- ##
15191_ASBOX
15192 ) |
15193 sed "s/^/$as_me: WARNING: /" >&2
15194 ;;
15195esac
15196echo "$as_me:$LINENO: checking for $ac_header" >&5
15197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15198if eval "test \"\${$as_ac_Header+set}\" = set"; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 15202fi
a82a04b3 15203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117c2d2 15204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
15205
15206fi
7117c2d2 15207if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 15208 cat >>confdefs.h <<_ACEOF
7117c2d2 15209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 15210_ACEOF
7117c2d2
JA
15211
15212fi
a82a04b3 15213
7117c2d2
JA
15214done
15215
a82a04b3 15216
7117c2d2
JA
15217for ac_header in wchar.h
15218do
15219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
15220if eval "test \"\${$as_ac_Header+set}\" = set"; then
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117c2d2
JA
15222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
15225fi
15226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 15228else
a82a04b3
CR
15229 # Is the header compilable?
15230echo "$as_me:$LINENO: checking $ac_header usability" >&5
15231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15232cat >conftest.$ac_ext <<_ACEOF
15233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
15238$ac_includes_default
15239#include <$ac_header>
15240_ACEOF
15241rm -f conftest.$ac_objext
15242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15243 (eval $ac_compile) 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -z "$ac_c_werror_flag"
15251 || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest.$ac_objext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_header_compiler=yes
15264else
15265 echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268ac_header_compiler=no
15269fi
15270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15272echo "${ECHO_T}$ac_header_compiler" >&6
15273
15274# Is the header present?
15275echo "$as_me:$LINENO: checking $ac_header presence" >&5
15276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
7117c2d2
JA
15283#include <$ac_header>
15284_ACEOF
a82a04b3 15285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117c2d2
JA
15286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15287 ac_status=$?
a82a04b3 15288 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
15289 rm -f conftest.er1
15290 cat conftest.err >&5
a82a04b3 15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7117c2d2
JA
15296 else
15297 ac_cpp_err=
15298 fi
15299else
15300 ac_cpp_err=yes
15301fi
15302if test -z "$ac_cpp_err"; then
a82a04b3 15303 ac_header_preproc=yes
7117c2d2
JA
15304else
15305 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_header_preproc=no
7117c2d2
JA
15309fi
15310rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
15311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15312echo "${ECHO_T}$ac_header_preproc" >&6
15313
15314# So? What about this header?
15315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 yes:no: )
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15321 ac_header_preproc=yes
15322 ;;
15323 no:yes:* )
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15336 (
15337 cat <<\_ASBOX
15338## ------------------------------- ##
15339## Report this to bug-bash@gnu.org ##
15340## ------------------------------- ##
15341_ASBOX
15342 ) |
15343 sed "s/^/$as_me: WARNING: /" >&2
15344 ;;
15345esac
15346echo "$as_me:$LINENO: checking for $ac_header" >&5
15347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15348if eval "test \"\${$as_ac_Header+set}\" = set"; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 15352fi
a82a04b3 15353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117c2d2 15354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
15355
15356fi
7117c2d2 15357if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 15358 cat >>confdefs.h <<_ACEOF
7117c2d2 15359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 15360_ACEOF
7117c2d2
JA
15361
15362fi
a82a04b3 15363
7117c2d2
JA
15364done
15365
a82a04b3 15366
7117c2d2
JA
15367for ac_header in langinfo.h
15368do
15369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
a82a04b3
CR
15370if eval "test \"\${$as_ac_Header+set}\" = set"; then
15371 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117c2d2
JA
15372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15373if eval "test \"\${$as_ac_Header+set}\" = set"; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
a82a04b3
CR
15375fi
15376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
545f34cf 15378else
a82a04b3
CR
15379 # Is the header compilable?
15380echo "$as_me:$LINENO: checking $ac_header usability" >&5
15381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15382cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
15388$ac_includes_default
15389#include <$ac_header>
15390_ACEOF
15391rm -f conftest.$ac_objext
15392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag"
15401 || test ! -s conftest.err'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest.$ac_objext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 ac_header_compiler=yes
15414else
15415 echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418ac_header_compiler=no
15419fi
15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422echo "${ECHO_T}$ac_header_compiler" >&6
15423
15424# Is the header present?
15425echo "$as_me:$LINENO: checking $ac_header presence" >&5
15426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15427cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
7117c2d2
JA
15433#include <$ac_header>
15434_ACEOF
a82a04b3 15435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117c2d2
JA
15436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15437 ac_status=$?
a82a04b3 15438 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
15439 rm -f conftest.er1
15440 cat conftest.err >&5
a82a04b3 15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
a82a04b3 15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7117c2d2
JA
15446 else
15447 ac_cpp_err=
15448 fi
15449else
15450 ac_cpp_err=yes
15451fi
15452if test -z "$ac_cpp_err"; then
a82a04b3 15453 ac_header_preproc=yes
7117c2d2
JA
15454else
15455 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15456sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 ac_header_preproc=no
7117c2d2
JA
15459fi
15460rm -f conftest.err conftest.$ac_ext
a82a04b3
CR
15461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462echo "${ECHO_T}$ac_header_preproc" >&6
15463
15464# So? What about this header?
15465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15466 yes:no: )
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15471 ac_header_preproc=yes
15472 ;;
15473 no:yes:* )
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15486 (
15487 cat <<\_ASBOX
15488## ------------------------------- ##
15489## Report this to bug-bash@gnu.org ##
15490## ------------------------------- ##
15491_ASBOX
15492 ) |
15493 sed "s/^/$as_me: WARNING: /" >&2
15494 ;;
15495esac
15496echo "$as_me:$LINENO: checking for $ac_header" >&5
15497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15498if eval "test \"\${$as_ac_Header+set}\" = set"; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500else
15501 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 15502fi
a82a04b3 15503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117c2d2 15504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a82a04b3
CR
15505
15506fi
7117c2d2 15507if test `eval echo '${'$as_ac_Header'}'` = yes; then
a82a04b3 15508 cat >>confdefs.h <<_ACEOF
7117c2d2 15509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a82a04b3 15510_ACEOF
7117c2d2
JA
15511
15512fi
a82a04b3 15513
7117c2d2
JA
15514done
15515
a82a04b3
CR
15516
15517echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
7117c2d2
JA
15518echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15519if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15521else
15522 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15530#define mbsrtowcs innocuous_mbsrtowcs
15531
7117c2d2 15532/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
15533 which can conflict with char mbsrtowcs (); below.
15534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15535 <limits.h> exists even on freestanding compilers. */
15536
15537#ifdef __STDC__
15538# include <limits.h>
15539#else
15540# include <assert.h>
15541#endif
15542
15543#undef mbsrtowcs
15544
7117c2d2
JA
15545/* Override any gcc2 internal prototype to avoid an error. */
15546#ifdef __cplusplus
15547extern "C"
a82a04b3 15548{
7117c2d2
JA
15549#endif
15550/* We use char because int might match the return type of a gcc2
15551 builtin and then its argument prototype would still apply. */
15552char mbsrtowcs ();
7117c2d2
JA
15553/* The GNU C library defines this for functions which it implements
15554 to always fail with ENOSYS. Some functions are actually named
15555 something starting with __ and the normal name is an alias. */
15556#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15557choke me
15558#else
a82a04b3
CR
15559char (*f) () = mbsrtowcs;
15560#endif
15561#ifdef __cplusplus
15562}
7117c2d2
JA
15563#endif
15564
a82a04b3
CR
15565int
15566main ()
15567{
15568return f != mbsrtowcs;
7117c2d2
JA
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
15574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>conftest.er1
7117c2d2 15576 ac_status=$?
a82a04b3
CR
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 15581 (exit $ac_status); } &&
a82a04b3
CR
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
a82a04b3 15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
15594 (exit $ac_status); }; }; then
15595 ac_cv_func_mbsrtowcs=yes
15596else
15597 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
7117c2d2
JA
15600ac_cv_func_mbsrtowcs=no
15601fi
a82a04b3
CR
15602rm -f conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
7117c2d2 15604fi
a82a04b3 15605echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
7117c2d2
JA
15606echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15607if test $ac_cv_func_mbsrtowcs = yes; then
a82a04b3 15608 cat >>confdefs.h <<\_ACEOF
7117c2d2 15609#define HAVE_MBSRTOWCS 1
a82a04b3 15610_ACEOF
7117c2d2
JA
15611
15612fi
15613
a82a04b3 15614echo "$as_me:$LINENO: checking for mbrtowc" >&5
d3a24ed2
CR
15615echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
15616if test "${ac_cv_func_mbrtowc+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
15620/* confdefs.h. */
15621_ACEOF
15622cat confdefs.h >>conftest.$ac_ext
15623cat >>conftest.$ac_ext <<_ACEOF
15624/* end confdefs.h. */
15625/* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
15626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15627#define mbrtowc innocuous_mbrtowc
15628
d3a24ed2 15629/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
15630 which can conflict with char mbrtowc (); below.
15631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15632 <limits.h> exists even on freestanding compilers. */
15633
15634#ifdef __STDC__
15635# include <limits.h>
15636#else
15637# include <assert.h>
15638#endif
15639
15640#undef mbrtowc
15641
d3a24ed2
CR
15642/* Override any gcc2 internal prototype to avoid an error. */
15643#ifdef __cplusplus
15644extern "C"
a82a04b3 15645{
d3a24ed2
CR
15646#endif
15647/* We use char because int might match the return type of a gcc2
15648 builtin and then its argument prototype would still apply. */
15649char mbrtowc ();
d3a24ed2
CR
15650/* The GNU C library defines this for functions which it implements
15651 to always fail with ENOSYS. Some functions are actually named
15652 something starting with __ and the normal name is an alias. */
15653#if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
15654choke me
15655#else
a82a04b3
CR
15656char (*f) () = mbrtowc;
15657#endif
15658#ifdef __cplusplus
15659}
d3a24ed2
CR
15660#endif
15661
a82a04b3
CR
15662int
15663main ()
15664{
15665return f != mbrtowc;
d3a24ed2
CR
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
15671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>conftest.er1
d3a24ed2 15673 ac_status=$?
a82a04b3
CR
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 15678 (exit $ac_status); } &&
a82a04b3
CR
15679 { ac_try='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
a82a04b3 15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
15691 (exit $ac_status); }; }; then
15692 ac_cv_func_mbrtowc=yes
15693else
15694 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
d3a24ed2
CR
15697ac_cv_func_mbrtowc=no
15698fi
a82a04b3
CR
15699rm -f conftest.err conftest.$ac_objext \
15700 conftest$ac_exeext conftest.$ac_ext
d3a24ed2 15701fi
a82a04b3 15702echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
d3a24ed2
CR
15703echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
15704if test $ac_cv_func_mbrtowc = yes; then
a82a04b3 15705 cat >>confdefs.h <<\_ACEOF
d3a24ed2 15706#define HAVE_MBRTOWC 1
a82a04b3 15707_ACEOF
d3a24ed2
CR
15708
15709fi
15710
a82a04b3 15711echo "$as_me:$LINENO: checking for mbrlen" >&5
d3a24ed2
CR
15712echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15713if test "${ac_cv_func_mbrlen+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715else
15716 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15724#define mbrlen innocuous_mbrlen
15725
d3a24ed2 15726/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
15727 which can conflict with char mbrlen (); below.
15728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15729 <limits.h> exists even on freestanding compilers. */
15730
15731#ifdef __STDC__
15732# include <limits.h>
15733#else
15734# include <assert.h>
15735#endif
15736
15737#undef mbrlen
15738
d3a24ed2
CR
15739/* Override any gcc2 internal prototype to avoid an error. */
15740#ifdef __cplusplus
15741extern "C"
a82a04b3 15742{
d3a24ed2
CR
15743#endif
15744/* We use char because int might match the return type of a gcc2
15745 builtin and then its argument prototype would still apply. */
15746char mbrlen ();
d3a24ed2
CR
15747/* The GNU C library defines this for functions which it implements
15748 to always fail with ENOSYS. Some functions are actually named
15749 something starting with __ and the normal name is an alias. */
15750#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15751choke me
15752#else
a82a04b3
CR
15753char (*f) () = mbrlen;
15754#endif
15755#ifdef __cplusplus
15756}
d3a24ed2
CR
15757#endif
15758
a82a04b3
CR
15759int
15760main ()
15761{
15762return f != mbrlen;
d3a24ed2
CR
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
15768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769 (eval $ac_link) 2>conftest.er1
d3a24ed2 15770 ac_status=$?
a82a04b3
CR
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 15775 (exit $ac_status); } &&
a82a04b3
CR
15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
a82a04b3
CR
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest$ac_exeext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
15788 (exit $ac_status); }; }; then
15789 ac_cv_func_mbrlen=yes
15790else
15791 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15792sed 's/^/| /' conftest.$ac_ext >&5
15793
d3a24ed2
CR
15794ac_cv_func_mbrlen=no
15795fi
a82a04b3
CR
15796rm -f conftest.err conftest.$ac_objext \
15797 conftest$ac_exeext conftest.$ac_ext
d3a24ed2 15798fi
a82a04b3 15799echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
d3a24ed2
CR
15800echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15801if test $ac_cv_func_mbrlen = yes; then
a82a04b3 15802 cat >>confdefs.h <<\_ACEOF
d3a24ed2 15803#define HAVE_MBRLEN 1
a82a04b3 15804_ACEOF
d3a24ed2
CR
15805
15806fi
15807
a82a04b3 15808echo "$as_me:$LINENO: checking for wctomb" >&5
d3a24ed2
CR
15809echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
15810if test "${ac_cv_func_wctomb+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819/* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
15820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15821#define wctomb innocuous_wctomb
15822
d3a24ed2 15823/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
15824 which can conflict with char wctomb (); below.
15825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15826 <limits.h> exists even on freestanding compilers. */
15827
15828#ifdef __STDC__
15829# include <limits.h>
15830#else
15831# include <assert.h>
15832#endif
15833
15834#undef wctomb
15835
d3a24ed2
CR
15836/* Override any gcc2 internal prototype to avoid an error. */
15837#ifdef __cplusplus
15838extern "C"
a82a04b3 15839{
d3a24ed2
CR
15840#endif
15841/* We use char because int might match the return type of a gcc2
15842 builtin and then its argument prototype would still apply. */
15843char wctomb ();
d3a24ed2
CR
15844/* The GNU C library defines this for functions which it implements
15845 to always fail with ENOSYS. Some functions are actually named
15846 something starting with __ and the normal name is an alias. */
15847#if defined (__stub_wctomb) || defined (__stub___wctomb)
15848choke me
15849#else
a82a04b3
CR
15850char (*f) () = wctomb;
15851#endif
15852#ifdef __cplusplus
15853}
d3a24ed2
CR
15854#endif
15855
a82a04b3
CR
15856int
15857main ()
15858{
15859return f != wctomb;
d3a24ed2
CR
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
15865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>conftest.er1
d3a24ed2 15867 ac_status=$?
a82a04b3
CR
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 15872 (exit $ac_status); } &&
a82a04b3
CR
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
a82a04b3 15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
15885 (exit $ac_status); }; }; then
15886 ac_cv_func_wctomb=yes
15887else
15888 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
d3a24ed2
CR
15891ac_cv_func_wctomb=no
15892fi
a82a04b3
CR
15893rm -f conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
d3a24ed2 15895fi
a82a04b3 15896echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
d3a24ed2
CR
15897echo "${ECHO_T}$ac_cv_func_wctomb" >&6
15898if test $ac_cv_func_wctomb = yes; then
a82a04b3 15899 cat >>confdefs.h <<\_ACEOF
d3a24ed2 15900#define HAVE_WCTOMB 1
a82a04b3 15901_ACEOF
d3a24ed2
CR
15902
15903fi
15904
a82a04b3 15905echo "$as_me:$LINENO: checking for wcwidth" >&5
7117c2d2
JA
15906echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
15907if test "${ac_cv_func_wcwidth+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909else
15910 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
15917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15918#define wcwidth innocuous_wcwidth
15919
7117c2d2 15920/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
15921 which can conflict with char wcwidth (); below.
15922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15923 <limits.h> exists even on freestanding compilers. */
15924
15925#ifdef __STDC__
15926# include <limits.h>
15927#else
15928# include <assert.h>
15929#endif
15930
15931#undef wcwidth
15932
7117c2d2
JA
15933/* Override any gcc2 internal prototype to avoid an error. */
15934#ifdef __cplusplus
15935extern "C"
a82a04b3 15936{
7117c2d2
JA
15937#endif
15938/* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15940char wcwidth ();
7117c2d2
JA
15941/* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
15944#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
15945choke me
15946#else
a82a04b3
CR
15947char (*f) () = wcwidth;
15948#endif
15949#ifdef __cplusplus
15950}
7117c2d2
JA
15951#endif
15952
a82a04b3
CR
15953int
15954main ()
15955{
15956return f != wcwidth;
7117c2d2
JA
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
15962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963 (eval $ac_link) 2>conftest.er1
7117c2d2 15964 ac_status=$?
a82a04b3
CR
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 15969 (exit $ac_status); } &&
a82a04b3
CR
15970 { ac_try='test -z "$ac_c_werror_flag"
15971 || test ! -s conftest.err'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest$ac_exeext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
a82a04b3 15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
15982 (exit $ac_status); }; }; then
15983 ac_cv_func_wcwidth=yes
15984else
15985 echo "$as_me: failed program was:" >&5
a82a04b3
CR
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
7117c2d2
JA
15988ac_cv_func_wcwidth=no
15989fi
a82a04b3
CR
15990rm -f conftest.err conftest.$ac_objext \
15991 conftest$ac_exeext conftest.$ac_ext
7117c2d2 15992fi
a82a04b3 15993echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
7117c2d2
JA
15994echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
15995if test $ac_cv_func_wcwidth = yes; then
a82a04b3 15996 cat >>confdefs.h <<\_ACEOF
7117c2d2 15997#define HAVE_WCWIDTH 1
a82a04b3 15998_ACEOF
7117c2d2
JA
15999
16000fi
16001
a82a04b3 16002echo "$as_me:$LINENO: checking for wcsdup" >&5
f9732a04
CR
16003echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16004if test "${ac_cv_func_wcsdup+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006else
16007 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16008/* confdefs.h. */
16009_ACEOF
16010cat confdefs.h >>conftest.$ac_ext
16011cat >>conftest.$ac_ext <<_ACEOF
16012/* end confdefs.h. */
16013/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16015#define wcsdup innocuous_wcsdup
16016
f9732a04 16017/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
16018 which can conflict with char wcsdup (); below.
16019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16020 <limits.h> exists even on freestanding compilers. */
16021
16022#ifdef __STDC__
16023# include <limits.h>
16024#else
16025# include <assert.h>
16026#endif
16027
16028#undef wcsdup
16029
f9732a04
CR
16030/* Override any gcc2 internal prototype to avoid an error. */
16031#ifdef __cplusplus
16032extern "C"
a82a04b3 16033{
f9732a04
CR
16034#endif
16035/* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037char wcsdup ();
16038/* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16042choke me
16043#else
a82a04b3
CR
16044char (*f) () = wcsdup;
16045#endif
16046#ifdef __cplusplus
16047}
f9732a04
CR
16048#endif
16049
a82a04b3
CR
16050int
16051main ()
16052{
16053return f != wcsdup;
f9732a04
CR
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>conftest.er1
f9732a04 16061 ac_status=$?
a82a04b3
CR
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f9732a04 16066 (exit $ac_status); } &&
a82a04b3
CR
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest$ac_exeext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f9732a04
CR
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
a82a04b3 16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f9732a04
CR
16079 (exit $ac_status); }; }; then
16080 ac_cv_func_wcsdup=yes
16081else
16082 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
f9732a04
CR
16085ac_cv_func_wcsdup=no
16086fi
a82a04b3
CR
16087rm -f conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
f9732a04 16089fi
a82a04b3 16090echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
f9732a04
CR
16091echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16092if test $ac_cv_func_wcsdup = yes; then
a82a04b3 16093 cat >>confdefs.h <<\_ACEOF
f9732a04 16094#define HAVE_WCSDUP 1
a82a04b3 16095_ACEOF
f9732a04
CR
16096
16097fi
16098
a82a04b3
CR
16099
16100echo "$as_me:$LINENO: checking for mbstate_t" >&5
7117c2d2
JA
16101echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16102if test "${bash_cv_have_mbstate_t+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
7117c2d2
JA
16104else
16105 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16106/* confdefs.h. */
16107_ACEOF
16108cat confdefs.h >>conftest.$ac_ext
16109cat >>conftest.$ac_ext <<_ACEOF
16110/* end confdefs.h. */
7117c2d2
JA
16111
16112#include <wchar.h>
16113int
16114main ()
16115{
d3a24ed2 16116
7117c2d2 16117 mbstate_t ps;
d3a24ed2
CR
16118 mbstate_t *psp;
16119 psp = (mbstate_t *)0;
16120
16121 ;
7117c2d2
JA
16122 return 0;
16123}
16124_ACEOF
d3a24ed2 16125rm -f conftest.$ac_objext
a82a04b3
CR
16126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127 (eval $ac_compile) 2>conftest.er1
7117c2d2 16128 ac_status=$?
a82a04b3
CR
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 16133 (exit $ac_status); } &&
a82a04b3
CR
16134 { ac_try='test -z "$ac_c_werror_flag"
16135 || test ! -s conftest.err'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
a82a04b3
CR
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
16146 (exit $ac_status); }; }; then
16147 bash_cv_have_mbstate_t=yes
16148else
d3a24ed2 16149 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
7117c2d2
JA
16152bash_cv_have_mbstate_t=no
16153fi
a82a04b3 16154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 16155fi
a82a04b3 16156echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
7117c2d2
JA
16157echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
16158if test $bash_cv_have_mbstate_t = yes; then
a82a04b3 16159 cat >>confdefs.h <<\_ACEOF
7117c2d2 16160#define HAVE_MBSTATE_T 1
a82a04b3 16161_ACEOF
7117c2d2
JA
16162
16163fi
16164
a82a04b3 16165echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7117c2d2
JA
16166echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16167if test "${bash_cv_langinfo_codeset+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169else
16170 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
7117c2d2
JA
16176#include <langinfo.h>
16177int
16178main ()
16179{
16180char* cs = nl_langinfo(CODESET);
16181 ;
16182 return 0;
16183}
16184_ACEOF
16185rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16187 (eval $ac_link) 2>conftest.er1
7117c2d2 16188 ac_status=$?
a82a04b3
CR
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16193 (exit $ac_status); } &&
a82a04b3
CR
16194 { ac_try='test -z "$ac_c_werror_flag"
16195 || test ! -s conftest.err'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
a82a04b3
CR
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest$ac_exeext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
16206 (exit $ac_status); }; }; then
16207 bash_cv_langinfo_codeset=yes
16208else
16209 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
7117c2d2
JA
16212bash_cv_langinfo_codeset=no
16213fi
a82a04b3
CR
16214rm -f conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
7117c2d2 16216fi
a82a04b3 16217echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
7117c2d2
JA
16218echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16219if test $bash_cv_langinfo_codeset = yes; then
a82a04b3 16220 cat >>confdefs.h <<\_ACEOF
7117c2d2 16221#define HAVE_LANGINFO_CODESET 1
a82a04b3 16222_ACEOF
7117c2d2
JA
16223
16224fi
16225
a82a04b3
CR
16226
16227
f73dda09
JA
16228if test "$opt_static_link" != yes; then
16229
a82a04b3 16230echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
f73dda09
JA
16231echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16232if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 16234else
f73dda09
JA
16235 ac_check_lib_save_LIBS=$LIBS
16236LIBS="-ldl $LIBS"
16237cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16238/* confdefs.h. */
16239_ACEOF
16240cat confdefs.h >>conftest.$ac_ext
16241cat >>conftest.$ac_ext <<_ACEOF
16242/* end confdefs.h. */
f73dda09
JA
16243
16244/* Override any gcc2 internal prototype to avoid an error. */
16245#ifdef __cplusplus
16246extern "C"
16247#endif
16248/* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16250char dlopen ();
16251int
16252main ()
16253{
16254dlopen ();
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>conftest.er1
f73dda09 16262 ac_status=$?
a82a04b3
CR
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16267 (exit $ac_status); } &&
a82a04b3
CR
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest$ac_exeext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
a82a04b3 16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16280 (exit $ac_status); }; }; then
16281 ac_cv_lib_dl_dlopen=yes
16282else
16283 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
f73dda09
JA
16286ac_cv_lib_dl_dlopen=no
16287fi
a82a04b3
CR
16288rm -f conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
16290LIBS=$ac_check_lib_save_LIBS
16291fi
a82a04b3 16292echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
f73dda09
JA
16293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16294if test $ac_cv_lib_dl_dlopen = yes; then
a82a04b3 16295 cat >>confdefs.h <<_ACEOF
f73dda09 16296#define HAVE_LIBDL 1
a82a04b3 16297_ACEOF
f73dda09
JA
16298
16299 LIBS="-ldl $LIBS"
16300
ccc6cda3 16301fi
ccc6cda3 16302
a82a04b3
CR
16303
16304
16305
f73dda09 16306for ac_func in dlopen dlclose dlsym
bb70624e 16307do
f73dda09 16308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
a82a04b3 16309echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
16310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16311if eval "test \"\${$as_ac_var+set}\" = set"; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 16313else
f73dda09 16314 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16315/* confdefs.h. */
16316_ACEOF
16317cat confdefs.h >>conftest.$ac_ext
16318cat >>conftest.$ac_ext <<_ACEOF
16319/* end confdefs.h. */
16320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16322#define $ac_func innocuous_$ac_func
16323
e624d0f7 16324/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
16325 which can conflict with char $ac_func (); below.
16326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16327 <limits.h> exists even on freestanding compilers. */
16328
16329#ifdef __STDC__
16330# include <limits.h>
16331#else
16332# include <assert.h>
16333#endif
16334
16335#undef $ac_func
16336
f73dda09
JA
16337/* Override any gcc2 internal prototype to avoid an error. */
16338#ifdef __cplusplus
16339extern "C"
a82a04b3 16340{
f73dda09
JA
16341#endif
16342/* We use char because int might match the return type of a gcc2
16343 builtin and then its argument prototype would still apply. */
16344char $ac_func ();
f73dda09
JA
16345/* The GNU C library defines this for functions which it implements
16346 to always fail with ENOSYS. Some functions are actually named
16347 something starting with __ and the normal name is an alias. */
16348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16349choke me
16350#else
a82a04b3
CR
16351char (*f) () = $ac_func;
16352#endif
16353#ifdef __cplusplus
16354}
f73dda09
JA
16355#endif
16356
a82a04b3
CR
16357int
16358main ()
16359{
16360return f != $ac_func;
f73dda09
JA
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16367 (eval $ac_link) 2>conftest.er1
f73dda09 16368 ac_status=$?
a82a04b3
CR
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16373 (exit $ac_status); } &&
a82a04b3
CR
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest$ac_exeext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
a82a04b3 16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16386 (exit $ac_status); }; }; then
16387 eval "$as_ac_var=yes"
16388else
16389 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16390sed 's/^/| /' conftest.$ac_ext >&5
16391
f73dda09
JA
16392eval "$as_ac_var=no"
16393fi
a82a04b3
CR
16394rm -f conftest.err conftest.$ac_objext \
16395 conftest$ac_exeext conftest.$ac_ext
f73dda09 16396fi
a82a04b3 16397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
16398echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16399if test `eval echo '${'$as_ac_var'}'` = yes; then
a82a04b3 16400 cat >>confdefs.h <<_ACEOF
f73dda09 16401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
a82a04b3 16402_ACEOF
f73dda09 16403
bb70624e 16404fi
f73dda09
JA
16405done
16406
bb70624e 16407fi
f73dda09 16408
a82a04b3
CR
16409echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16410echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16411if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
f73dda09
JA
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16413else
16414 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
e624d0f7
CR
16420#include <signal.h>
16421/* NetBSD declares sys_siglist in unistd.h. */
16422#if HAVE_UNISTD_H
16423# include <unistd.h>
16424#endif
16425
a82a04b3 16426
f73dda09
JA
16427int
16428main ()
16429{
a82a04b3
CR
16430#ifndef sys_siglist
16431 char *p = (char *) sys_siglist;
16432#endif
16433
f73dda09
JA
16434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
a82a04b3
CR
16439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440 (eval $ac_compile) 2>conftest.er1
f73dda09 16441 ac_status=$?
a82a04b3
CR
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16446 (exit $ac_status); } &&
a82a04b3
CR
16447 { ac_try='test -z "$ac_c_werror_flag"
16448 || test ! -s conftest.err'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
a82a04b3 16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16459 (exit $ac_status); }; }; then
a82a04b3 16460 ac_cv_have_decl_sys_siglist=yes
bb70624e 16461else
f73dda09 16462 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465ac_cv_have_decl_sys_siglist=no
bb70624e 16466fi
a82a04b3 16467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 16468fi
a82a04b3
CR
16469echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16470echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16471if test $ac_cv_have_decl_sys_siglist = yes; then
16472
16473cat >>confdefs.h <<_ACEOF
16474#define HAVE_DECL_SYS_SIGLIST 1
16475_ACEOF
16476
16477
16478else
16479 cat >>confdefs.h <<_ACEOF
16480#define HAVE_DECL_SYS_SIGLIST 0
16481_ACEOF
bb70624e 16482
f73dda09
JA
16483
16484fi
bb70624e 16485
a82a04b3
CR
16486
16487
16488
bb70624e
JA
16489if test "$ac_cv_func_inet_aton" != 'yes'; then
16490
a82a04b3 16491echo "$as_me:$LINENO: checking for inet_aton" >&5
f73dda09
JA
16492echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
16493if test "${bash_cv_func_inet_aton+set}" = set; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 16495else
f73dda09 16496 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16497/* confdefs.h. */
16498_ACEOF
16499cat confdefs.h >>conftest.$ac_ext
16500cat >>conftest.$ac_ext <<_ACEOF
16501/* end confdefs.h. */
bb70624e
JA
16502
16503#include <sys/types.h>
16504#include <netinet/in.h>
16505#include <arpa/inet.h>
16506struct in_addr ap;
f73dda09
JA
16507int
16508main ()
16509{
16510 inet_aton("127.0.0.1", &ap);
16511 ;
16512 return 0;
16513}
16514_ACEOF
16515rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16517 (eval $ac_link) 2>conftest.er1
f73dda09 16518 ac_status=$?
a82a04b3
CR
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16523 (exit $ac_status); } &&
a82a04b3
CR
16524 { ac_try='test -z "$ac_c_werror_flag"
16525 || test ! -s conftest.err'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest$ac_exeext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
a82a04b3 16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16536 (exit $ac_status); }; }; then
bb70624e
JA
16537 bash_cv_func_inet_aton=yes
16538else
f73dda09 16539 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16540sed 's/^/| /' conftest.$ac_ext >&5
16541
f73dda09 16542bash_cv_func_inet_aton=no
bb70624e 16543fi
a82a04b3
CR
16544rm -f conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
bb70624e 16546fi
a82a04b3 16547echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
f73dda09 16548echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
bb70624e 16549if test $bash_cv_func_inet_aton = yes; then
a82a04b3 16550 cat >>confdefs.h <<\_ACEOF
bb70624e 16551#define HAVE_INET_ATON 1
a82a04b3 16552_ACEOF
bb70624e 16553
f73dda09 16554else
a82a04b3
CR
16555 case $LIBOBJS in
16556 "inet_aton.$ac_objext" | \
16557 *" inet_aton.$ac_objext" | \
16558 "inet_aton.$ac_objext "* | \
16559 *" inet_aton.$ac_objext "* ) ;;
16560 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
16561esac
16562
bb70624e
JA
16563fi
16564
16565fi
16566
16567case "$host_os" in
f73dda09 16568irix4*)
a82a04b3 16569echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
f73dda09
JA
16570echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
16571if test "${ac_cv_lib_sun_getpwent+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 16573else
f73dda09 16574 ac_check_lib_save_LIBS=$LIBS
bb70624e 16575LIBS="-lsun $LIBS"
f73dda09 16576cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
f73dda09 16582
bb70624e 16583/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
16584#ifdef __cplusplus
16585extern "C"
16586#endif
bb70624e 16587/* We use char because int might match the return type of a gcc2
f73dda09
JA
16588 builtin and then its argument prototype would still apply. */
16589char getpwent ();
16590int
16591main ()
16592{
16593getpwent ();
16594 ;
16595 return 0;
16596}
16597_ACEOF
16598rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>conftest.er1
f73dda09 16601 ac_status=$?
a82a04b3
CR
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16606 (exit $ac_status); } &&
a82a04b3
CR
16607 { ac_try='test -z "$ac_c_werror_flag"
16608 || test ! -s conftest.err'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
a82a04b3
CR
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest$ac_exeext'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16619 (exit $ac_status); }; }; then
16620 ac_cv_lib_sun_getpwent=yes
16621else
16622 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
f73dda09
JA
16625ac_cv_lib_sun_getpwent=no
16626fi
a82a04b3
CR
16627rm -f conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
16629LIBS=$ac_check_lib_save_LIBS
16630fi
a82a04b3 16631echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
f73dda09
JA
16632echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
16633if test $ac_cv_lib_sun_getpwent = yes; then
a82a04b3 16634 cat >>confdefs.h <<_ACEOF
f73dda09 16635#define HAVE_LIBSUN 1
a82a04b3 16636_ACEOF
bb70624e
JA
16637
16638 LIBS="-lsun $LIBS"
16639
bb70624e
JA
16640fi
16641 ;;
16642esac
ccc6cda3 16643
d166f048 16644if test "$ac_cv_func_getpeername" = no; then
f73dda09 16645
ccc6cda3
JA
16646if test "X$bash_cv_have_socklib" = "X"; then
16647_bash_needmsg=
16648else
a82a04b3 16649echo "$as_me:$LINENO: checking for socket library" >&5
f73dda09 16650echo $ECHO_N "checking for socket library... $ECHO_C" >&6
ccc6cda3
JA
16651_bash_needmsg=yes
16652fi
f73dda09
JA
16653if test "${bash_cv_have_socklib+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 16655else
a82a04b3 16656 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
f73dda09
JA
16657echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
16658if test "${ac_cv_lib_socket_getpeername+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 16660else
f73dda09 16661 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 16662LIBS="-lsocket -lnsl $LIBS"
f73dda09 16663cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16664/* confdefs.h. */
16665_ACEOF
16666cat confdefs.h >>conftest.$ac_ext
16667cat >>conftest.$ac_ext <<_ACEOF
16668/* end confdefs.h. */
f73dda09 16669
ccc6cda3 16670/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
16671#ifdef __cplusplus
16672extern "C"
16673#endif
ccc6cda3 16674/* We use char because int might match the return type of a gcc2
f73dda09
JA
16675 builtin and then its argument prototype would still apply. */
16676char getpeername ();
16677int
16678main ()
16679{
16680getpeername ();
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687 (eval $ac_link) 2>conftest.er1
f73dda09 16688 ac_status=$?
a82a04b3
CR
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16693 (exit $ac_status); } &&
a82a04b3
CR
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
a82a04b3
CR
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest$ac_exeext'
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16706 (exit $ac_status); }; }; then
16707 ac_cv_lib_socket_getpeername=yes
16708else
16709 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16710sed 's/^/| /' conftest.$ac_ext >&5
16711
f73dda09
JA
16712ac_cv_lib_socket_getpeername=no
16713fi
a82a04b3
CR
16714rm -f conftest.err conftest.$ac_objext \
16715 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
16716LIBS=$ac_check_lib_save_LIBS
16717fi
a82a04b3 16718echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
f73dda09
JA
16719echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
16720if test $ac_cv_lib_socket_getpeername = yes; then
ccc6cda3
JA
16721 bash_cv_have_socklib=yes
16722else
f73dda09 16723 bash_cv_have_socklib=no
ccc6cda3
JA
16724fi
16725
16726fi
16727
16728if test "X$_bash_needmsg" = Xyes; then
a82a04b3 16729 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
f73dda09 16730echo "${ECHO_T}$bash_cv_have_socklib" >&6
ccc6cda3
JA
16731 _bash_needmsg=
16732fi
16733if test $bash_cv_have_socklib = yes; then
16734 # check for libnsl, add it to LIBS if present
16735 if test "X$bash_cv_have_libnsl" = "X"; then
16736 _bash_needmsg=
16737 else
a82a04b3 16738 echo "$as_me:$LINENO: checking for libnsl" >&5
f73dda09 16739echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
ccc6cda3
JA
16740 _bash_needmsg=yes
16741 fi
f73dda09
JA
16742 if test "${bash_cv_have_libnsl+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 16744else
a82a04b3 16745 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
f73dda09
JA
16746echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
16747if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 16749else
f73dda09 16750 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 16751LIBS="-lnsl $LIBS"
f73dda09 16752cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
f73dda09 16758
ccc6cda3 16759/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
16760#ifdef __cplusplus
16761extern "C"
16762#endif
ccc6cda3 16763/* We use char because int might match the return type of a gcc2
f73dda09
JA
16764 builtin and then its argument prototype would still apply. */
16765char t_open ();
16766int
16767main ()
16768{
16769t_open ();
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776 (eval $ac_link) 2>conftest.er1
f73dda09 16777 ac_status=$?
a82a04b3
CR
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16782 (exit $ac_status); } &&
a82a04b3
CR
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest$ac_exeext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
a82a04b3 16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16795 (exit $ac_status); }; }; then
16796 ac_cv_lib_nsl_t_open=yes
16797else
16798 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16799sed 's/^/| /' conftest.$ac_ext >&5
16800
f73dda09
JA
16801ac_cv_lib_nsl_t_open=no
16802fi
a82a04b3
CR
16803rm -f conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
16805LIBS=$ac_check_lib_save_LIBS
16806fi
a82a04b3 16807echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
f73dda09
JA
16808echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
16809if test $ac_cv_lib_nsl_t_open = yes; then
ccc6cda3
JA
16810 bash_cv_have_libnsl=yes
16811else
f73dda09 16812 bash_cv_have_libnsl=no
ccc6cda3
JA
16813fi
16814
16815fi
16816
16817 if test "X$_bash_needmsg" = Xyes; then
a82a04b3 16818 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
f73dda09 16819echo "${ECHO_T}$bash_cv_have_libnsl" >&6
ccc6cda3
JA
16820 _bash_needmsg=
16821 fi
16822 if test $bash_cv_have_libnsl = yes; then
16823 LIBS="-lsocket -lnsl $LIBS"
16824 else
16825 LIBS="-lsocket $LIBS"
16826 fi
a82a04b3 16827 cat >>confdefs.h <<\_ACEOF
ccc6cda3 16828#define HAVE_LIBSOCKET 1
a82a04b3 16829_ACEOF
ccc6cda3 16830
a82a04b3 16831 cat >>confdefs.h <<\_ACEOF
ccc6cda3 16832#define HAVE_GETPEERNAME 1
a82a04b3 16833_ACEOF
ccc6cda3
JA
16834
16835fi
16836
bb70624e
JA
16837fi
16838if test "$ac_cv_func_gethostbyname" = no; then
16839 if test "X$bash_cv_have_gethostbyname" = "X"; then
16840_bash_needmsg=yes
16841else
a82a04b3 16842echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
f73dda09 16843echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
bb70624e
JA
16844_bash_needmsg=
16845fi
f73dda09
JA
16846if test "${bash_cv_have_gethostbyname+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 16848else
f73dda09 16849 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
bb70624e 16855#include <netdb.h>
f73dda09
JA
16856int
16857main ()
16858{
bb70624e
JA
16859 struct hostent *hp;
16860 hp = gethostbyname("localhost");
16861
f73dda09
JA
16862 ;
16863 return 0;
16864}
16865_ACEOF
16866rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
16867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868 (eval $ac_link) 2>conftest.er1
f73dda09 16869 ac_status=$?
a82a04b3
CR
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16874 (exit $ac_status); } &&
a82a04b3
CR
16875 { ac_try='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
a82a04b3
CR
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16887 (exit $ac_status); }; }; then
bb70624e
JA
16888 bash_cv_have_gethostbyname=yes
16889else
f73dda09 16890 echo "$as_me: failed program was:" >&5
a82a04b3
CR
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
f73dda09
JA
16893bash_cv_have_gethostbyname=no
16894fi
a82a04b3
CR
16895rm -f conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
16897
16898fi
16899
16900if test "X$_bash_needmsg" = Xyes; then
a82a04b3 16901 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
f73dda09
JA
16902echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16903fi
a82a04b3 16904echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
f73dda09
JA
16905echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
16906if test "$bash_cv_have_gethostbyname" = yes; then
a82a04b3 16907cat >>confdefs.h <<\_ACEOF
f73dda09 16908#define HAVE_GETHOSTBYNAME 1
a82a04b3 16909_ACEOF
f73dda09
JA
16910
16911fi
16912
16913fi
16914
a82a04b3 16915echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
f73dda09
JA
16916echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
16917if test "${ac_cv_type_uid_t+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16919else
16920 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16921/* confdefs.h. */
16922_ACEOF
16923cat confdefs.h >>conftest.$ac_ext
16924cat >>conftest.$ac_ext <<_ACEOF
16925/* end confdefs.h. */
f73dda09
JA
16926#include <sys/types.h>
16927
16928_ACEOF
16929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 16930 $EGREP "uid_t" >/dev/null 2>&1; then
f73dda09
JA
16931 ac_cv_type_uid_t=yes
16932else
16933 ac_cv_type_uid_t=no
16934fi
16935rm -f conftest*
16936
16937fi
a82a04b3 16938echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
f73dda09
JA
16939echo "${ECHO_T}$ac_cv_type_uid_t" >&6
16940if test $ac_cv_type_uid_t = no; then
16941
a82a04b3 16942cat >>confdefs.h <<\_ACEOF
f73dda09 16943#define uid_t int
a82a04b3 16944_ACEOF
f73dda09 16945
a82a04b3
CR
16946
16947cat >>confdefs.h <<\_ACEOF
f73dda09 16948#define gid_t int
a82a04b3 16949_ACEOF
f73dda09
JA
16950
16951fi
16952
a82a04b3 16953echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
f73dda09
JA
16954echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
16955if test "${ac_cv_type_getgroups+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957else
16958 if test "$cross_compiling" = yes; then
16959 ac_cv_type_getgroups=cross
16960else
16961 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
f73dda09
JA
16967/* Thanks to Mike Rendell for this test. */
16968#include <sys/types.h>
16969#define NGID 256
16970#undef MAX
16971#define MAX(x, y) ((x) > (y) ? (x) : (y))
16972
16973int
16974main ()
16975{
16976 gid_t gidset[NGID];
16977 int i, n;
16978 union { gid_t gval; long lval; } val;
16979
16980 val.lval = -1;
16981 for (i = 0; i < NGID; i++)
16982 gidset[i] = val.gval;
16983 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
a82a04b3 16984 gidset);
f73dda09
JA
16985 /* Exit non-zero if getgroups seems to require an array of ints. This
16986 happens when gid_t is short but getgroups modifies an array of ints. */
16987 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
16988}
16989_ACEOF
16990rm -f conftest$ac_exeext
a82a04b3 16991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
16992 (eval $ac_link) 2>&5
16993 ac_status=$?
a82a04b3 16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
a82a04b3 16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17000 (exit $ac_status); }; }; then
17001 ac_cv_type_getgroups=gid_t
17002else
17003 echo "$as_me: program exited with status $ac_status" >&5
17004echo "$as_me: failed program was:" >&5
a82a04b3
CR
17005sed 's/^/| /' conftest.$ac_ext >&5
17006
17007( exit $ac_status )
f73dda09
JA
17008ac_cv_type_getgroups=int
17009fi
a82a04b3 17010rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
17011fi
17012if test $ac_cv_type_getgroups = cross; then
17013 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17014/* confdefs.h. */
17015_ACEOF
17016cat confdefs.h >>conftest.$ac_ext
17017cat >>conftest.$ac_ext <<_ACEOF
17018/* end confdefs.h. */
f73dda09
JA
17019#include <unistd.h>
17020
17021_ACEOF
17022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 17023 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
f73dda09
JA
17024 ac_cv_type_getgroups=gid_t
17025else
17026 ac_cv_type_getgroups=int
bb70624e
JA
17027fi
17028rm -f conftest*
17029
17030fi
f73dda09 17031fi
a82a04b3 17032echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
f73dda09
JA
17033echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17034
a82a04b3 17035cat >>confdefs.h <<_ACEOF
f73dda09 17036#define GETGROUPS_T $ac_cv_type_getgroups
a82a04b3 17037_ACEOF
f73dda09 17038
a82a04b3
CR
17039
17040echo "$as_me:$LINENO: checking for off_t" >&5
f73dda09
JA
17041echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17042if test "${ac_cv_type_off_t+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044else
17045 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
f73dda09
JA
17051$ac_includes_default
17052int
17053main ()
17054{
17055if ((off_t *) 0)
17056 return 0;
17057if (sizeof (off_t))
17058 return 0;
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext
a82a04b3
CR
17064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065 (eval $ac_compile) 2>conftest.er1
f73dda09 17066 ac_status=$?
a82a04b3
CR
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17071 (exit $ac_status); } &&
a82a04b3
CR
17072 { ac_try='test -z "$ac_c_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
a82a04b3 17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17084 (exit $ac_status); }; }; then
17085 ac_cv_type_off_t=yes
17086else
17087 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
f73dda09
JA
17090ac_cv_type_off_t=no
17091fi
a82a04b3 17092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17093fi
a82a04b3 17094echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
f73dda09
JA
17095echo "${ECHO_T}$ac_cv_type_off_t" >&6
17096if test $ac_cv_type_off_t = yes; then
17097 :
17098else
17099
a82a04b3 17100cat >>confdefs.h <<_ACEOF
f73dda09 17101#define off_t long
a82a04b3 17102_ACEOF
f73dda09
JA
17103
17104fi
17105
a82a04b3 17106echo "$as_me:$LINENO: checking for mode_t" >&5
f73dda09
JA
17107echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17108if test "${ac_cv_type_mode_t+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
f73dda09
JA
17117$ac_includes_default
17118int
17119main ()
17120{
17121if ((mode_t *) 0)
17122 return 0;
17123if (sizeof (mode_t))
17124 return 0;
17125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext
a82a04b3
CR
17130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17131 (eval $ac_compile) 2>conftest.er1
f73dda09 17132 ac_status=$?
a82a04b3
CR
17133 grep -v '^ *+' conftest.er1 >conftest.err
17134 rm -f conftest.er1
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17137 (exit $ac_status); } &&
a82a04b3
CR
17138 { ac_try='test -z "$ac_c_werror_flag"
17139 || test ! -s conftest.err'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest.$ac_objext'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
a82a04b3 17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17150 (exit $ac_status); }; }; then
17151 ac_cv_type_mode_t=yes
17152else
17153 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
f73dda09
JA
17156ac_cv_type_mode_t=no
17157fi
a82a04b3 17158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17159fi
a82a04b3 17160echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
f73dda09
JA
17161echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17162if test $ac_cv_type_mode_t = yes; then
17163 :
17164else
bb70624e 17165
a82a04b3 17166cat >>confdefs.h <<_ACEOF
f73dda09 17167#define mode_t int
a82a04b3 17168_ACEOF
bb70624e
JA
17169
17170fi
17171
a82a04b3 17172echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
f73dda09
JA
17173echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17174if test "${ac_cv_type_uid_t+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17176else
f73dda09 17177 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17178/* confdefs.h. */
17179_ACEOF
17180cat confdefs.h >>conftest.$ac_ext
17181cat >>conftest.$ac_ext <<_ACEOF
17182/* end confdefs.h. */
ccc6cda3 17183#include <sys/types.h>
f73dda09
JA
17184
17185_ACEOF
ccc6cda3 17186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 17187 $EGREP "uid_t" >/dev/null 2>&1; then
ccc6cda3
JA
17188 ac_cv_type_uid_t=yes
17189else
ccc6cda3
JA
17190 ac_cv_type_uid_t=no
17191fi
17192rm -f conftest*
17193
17194fi
a82a04b3 17195echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
f73dda09 17196echo "${ECHO_T}$ac_cv_type_uid_t" >&6
ccc6cda3 17197if test $ac_cv_type_uid_t = no; then
f73dda09 17198
a82a04b3 17199cat >>confdefs.h <<\_ACEOF
ccc6cda3 17200#define uid_t int
a82a04b3
CR
17201_ACEOF
17202
ccc6cda3 17203
a82a04b3 17204cat >>confdefs.h <<\_ACEOF
ccc6cda3 17205#define gid_t int
a82a04b3 17206_ACEOF
ccc6cda3
JA
17207
17208fi
17209
a82a04b3 17210echo "$as_me:$LINENO: checking for pid_t" >&5
f73dda09
JA
17211echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17212if test "${ac_cv_type_pid_t+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17214else
f73dda09 17215 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
f73dda09
JA
17221$ac_includes_default
17222int
17223main ()
ccc6cda3 17224{
f73dda09
JA
17225if ((pid_t *) 0)
17226 return 0;
17227if (sizeof (pid_t))
17228 return 0;
17229 ;
17230 return 0;
ccc6cda3 17231}
f73dda09
JA
17232_ACEOF
17233rm -f conftest.$ac_objext
a82a04b3
CR
17234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
f73dda09 17236 ac_status=$?
a82a04b3
CR
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17241 (exit $ac_status); } &&
a82a04b3
CR
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
a82a04b3 17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17254 (exit $ac_status); }; }; then
17255 ac_cv_type_pid_t=yes
ccc6cda3 17256else
f73dda09 17257 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
f73dda09 17260ac_cv_type_pid_t=no
ccc6cda3 17261fi
a82a04b3 17262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 17263fi
a82a04b3 17264echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
f73dda09
JA
17265echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17266if test $ac_cv_type_pid_t = yes; then
17267 :
17268else
ccc6cda3 17269
a82a04b3 17270cat >>confdefs.h <<_ACEOF
f73dda09 17271#define pid_t int
a82a04b3 17272_ACEOF
f73dda09 17273
ccc6cda3 17274fi
ccc6cda3 17275
a82a04b3 17276echo "$as_me:$LINENO: checking for size_t" >&5
f73dda09
JA
17277echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17278if test "${ac_cv_type_size_t+set}" = set; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280else
17281 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17282/* confdefs.h. */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h. */
f73dda09
JA
17287$ac_includes_default
17288int
17289main ()
17290{
17291if ((size_t *) 0)
17292 return 0;
17293if (sizeof (size_t))
17294 return 0;
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
a82a04b3
CR
17300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17301 (eval $ac_compile) 2>conftest.er1
f73dda09 17302 ac_status=$?
a82a04b3
CR
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17307 (exit $ac_status); } &&
a82a04b3
CR
17308 { ac_try='test -z "$ac_c_werror_flag"
17309 || test ! -s conftest.err'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest.$ac_objext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
a82a04b3 17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17320 (exit $ac_status); }; }; then
17321 ac_cv_type_size_t=yes
17322else
17323 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17324sed 's/^/| /' conftest.$ac_ext >&5
17325
f73dda09 17326ac_cv_type_size_t=no
ccc6cda3 17327fi
a82a04b3 17328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 17329fi
a82a04b3 17330echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
f73dda09
JA
17331echo "${ECHO_T}$ac_cv_type_size_t" >&6
17332if test $ac_cv_type_size_t = yes; then
17333 :
17334else
ccc6cda3 17335
a82a04b3 17336cat >>confdefs.h <<_ACEOF
f73dda09 17337#define size_t unsigned
a82a04b3 17338_ACEOF
ccc6cda3 17339
f73dda09 17340fi
ccc6cda3 17341
a82a04b3 17342echo "$as_me:$LINENO: checking for ssize_t" >&5
f73dda09
JA
17343echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17344if test "${ac_cv_type_ssize_t+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17346else
f73dda09 17347 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17348/* confdefs.h. */
17349_ACEOF
17350cat confdefs.h >>conftest.$ac_ext
17351cat >>conftest.$ac_ext <<_ACEOF
17352/* end confdefs.h. */
f73dda09
JA
17353$ac_includes_default
17354int
17355main ()
17356{
17357if ((ssize_t *) 0)
17358 return 0;
17359if (sizeof (ssize_t))
17360 return 0;
17361 ;
17362 return 0;
17363}
17364_ACEOF
17365rm -f conftest.$ac_objext
a82a04b3
CR
17366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17367 (eval $ac_compile) 2>conftest.er1
f73dda09 17368 ac_status=$?
a82a04b3
CR
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17373 (exit $ac_status); } &&
a82a04b3
CR
17374 { ac_try='test -z "$ac_c_werror_flag"
17375 || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
a82a04b3 17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17386 (exit $ac_status); }; }; then
17387 ac_cv_type_ssize_t=yes
17388else
17389 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
f73dda09
JA
17392ac_cv_type_ssize_t=no
17393fi
a82a04b3 17394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17395fi
a82a04b3 17396echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
f73dda09
JA
17397echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17398if test $ac_cv_type_ssize_t = yes; then
17399 :
ccc6cda3 17400else
ccc6cda3 17401
a82a04b3 17402cat >>confdefs.h <<_ACEOF
f73dda09 17403#define ssize_t int
a82a04b3 17404_ACEOF
ccc6cda3
JA
17405
17406fi
17407
a82a04b3 17408echo "$as_me:$LINENO: checking for time_t" >&5
f73dda09
JA
17409echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17410if test "${ac_cv_type_time_t+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412else
17413 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
f73dda09
JA
17419$ac_includes_default
17420int
17421main ()
17422{
17423if ((time_t *) 0)
17424 return 0;
17425if (sizeof (time_t))
17426 return 0;
17427 ;
17428 return 0;
17429}
17430_ACEOF
17431rm -f conftest.$ac_objext
a82a04b3
CR
17432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
f73dda09 17434 ac_status=$?
a82a04b3
CR
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17439 (exit $ac_status); } &&
a82a04b3
CR
17440 { ac_try='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
a82a04b3 17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17452 (exit $ac_status); }; }; then
17453 ac_cv_type_time_t=yes
ccc6cda3 17454else
f73dda09 17455 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
f73dda09 17458ac_cv_type_time_t=no
ccc6cda3 17459fi
a82a04b3 17460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17461fi
a82a04b3 17462echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
f73dda09
JA
17463echo "${ECHO_T}$ac_cv_type_time_t" >&6
17464if test $ac_cv_type_time_t = yes; then
17465 :
17466else
17467
a82a04b3 17468cat >>confdefs.h <<_ACEOF
f73dda09 17469#define time_t long
a82a04b3 17470_ACEOF
ccc6cda3
JA
17471
17472fi
17473
a82a04b3
CR
17474
17475
17476echo "$as_me:$LINENO: checking for long long" >&5
f73dda09
JA
17477echo $ECHO_N "checking for long long... $ECHO_C" >&6
17478if test "${bash_cv_type_long_long+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17480else
f73dda09 17481 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17482/* confdefs.h. */
17483_ACEOF
17484cat confdefs.h >>conftest.$ac_ext
17485cat >>conftest.$ac_ext <<_ACEOF
17486/* end confdefs.h. */
ccc6cda3 17487
f73dda09
JA
17488long long ll = 1; int i = 63;
17489int
17490main ()
17491{
17492
17493long long llm = (long long) -1;
17494return ll << i | ll >> i | llm / ll | llm % ll;
17495
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
17501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17502 (eval $ac_link) 2>conftest.er1
f73dda09 17503 ac_status=$?
a82a04b3
CR
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17508 (exit $ac_status); } &&
a82a04b3
CR
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
a82a04b3 17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17521 (exit $ac_status); }; }; then
17522 bash_cv_type_long_long='long long'
ccc6cda3 17523else
f73dda09 17524 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17525sed 's/^/| /' conftest.$ac_ext >&5
17526
f73dda09 17527bash_cv_type_long_long='long'
ccc6cda3 17528fi
a82a04b3
CR
17529rm -f conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 17531fi
a82a04b3 17532echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
f73dda09
JA
17533echo "${ECHO_T}$bash_cv_type_long_long" >&6
17534if test "$bash_cv_type_long_long" = 'long long'; then
a82a04b3 17535 cat >>confdefs.h <<\_ACEOF
f73dda09 17536#define HAVE_LONG_LONG 1
a82a04b3 17537_ACEOF
ccc6cda3 17538
ccc6cda3
JA
17539fi
17540
a82a04b3
CR
17541
17542echo "$as_me:$LINENO: checking for unsigned long long" >&5
f73dda09
JA
17543echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17544if test "${bash_cv_type_unsigned_long_long+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546else
17547 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17548/* confdefs.h. */
17549_ACEOF
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
f73dda09
JA
17553
17554unsigned long long ull = 1; int i = 63;
17555int
17556main ()
17557{
17558
17559unsigned long long ullmax = (unsigned long long) -1;
17560return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17561
17562 ;
17563 return 0;
17564}
17565_ACEOF
17566rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
17567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>conftest.er1
f73dda09 17569 ac_status=$?
a82a04b3
CR
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17574 (exit $ac_status); } &&
a82a04b3
CR
17575 { ac_try='test -z "$ac_c_werror_flag"
17576 || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
a82a04b3
CR
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest$ac_exeext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17587 (exit $ac_status); }; }; then
17588 bash_cv_type_unsigned_long_long='unsigned long long'
17589else
17590 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17591sed 's/^/| /' conftest.$ac_ext >&5
17592
f73dda09
JA
17593bash_cv_type_unsigned_long_long='unsigned long'
17594fi
a82a04b3
CR
17595rm -f conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
f73dda09 17597fi
a82a04b3 17598echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
f73dda09
JA
17599echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
17600if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
a82a04b3 17601 cat >>confdefs.h <<\_ACEOF
f73dda09 17602#define HAVE_UNSIGNED_LONG_LONG 1
a82a04b3 17603_ACEOF
ccc6cda3
JA
17604
17605fi
17606
a82a04b3
CR
17607
17608echo "$as_me:$LINENO: checking return type of signal handlers" >&5
f73dda09
JA
17609echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17610if test "${ac_cv_type_signal+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17612else
f73dda09 17613 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17614/* confdefs.h. */
17615_ACEOF
17616cat confdefs.h >>conftest.$ac_ext
17617cat >>conftest.$ac_ext <<_ACEOF
17618/* end confdefs.h. */
ccc6cda3 17619#include <sys/types.h>
f73dda09
JA
17620#include <signal.h>
17621#ifdef signal
17622# undef signal
ccc6cda3 17623#endif
f73dda09
JA
17624#ifdef __cplusplus
17625extern "C" void (*signal (int, void (*)(int)))(int);
17626#else
17627void (*signal ()) ();
17628#endif
17629
17630int
17631main ()
17632{
17633int i;
17634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest.$ac_objext
a82a04b3
CR
17639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17640 (eval $ac_compile) 2>conftest.er1
f73dda09 17641 ac_status=$?
a82a04b3
CR
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17646 (exit $ac_status); } &&
a82a04b3
CR
17647 { ac_try='test -z "$ac_c_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
a82a04b3 17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17659 (exit $ac_status); }; }; then
17660 ac_cv_type_signal=void
ccc6cda3 17661else
f73dda09 17662 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17663sed 's/^/| /' conftest.$ac_ext >&5
17664
f73dda09 17665ac_cv_type_signal=int
ccc6cda3 17666fi
a82a04b3 17667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 17668fi
a82a04b3 17669echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
f73dda09
JA
17670echo "${ECHO_T}$ac_cv_type_signal" >&6
17671
a82a04b3 17672cat >>confdefs.h <<_ACEOF
f73dda09 17673#define RETSIGTYPE $ac_cv_type_signal
a82a04b3
CR
17674_ACEOF
17675
ccc6cda3 17676
a82a04b3
CR
17677
17678echo "$as_me:$LINENO: checking for char" >&5
f73dda09
JA
17679echo $ECHO_N "checking for char... $ECHO_C" >&6
17680if test "${ac_cv_type_char+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
f73dda09
JA
17689$ac_includes_default
17690int
17691main ()
17692{
17693if ((char *) 0)
17694 return 0;
17695if (sizeof (char))
17696 return 0;
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
a82a04b3
CR
17702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703 (eval $ac_compile) 2>conftest.er1
f73dda09 17704 ac_status=$?
a82a04b3
CR
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17709 (exit $ac_status); } &&
a82a04b3
CR
17710 { ac_try='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest.$ac_objext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
a82a04b3 17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17722 (exit $ac_status); }; }; then
17723 ac_cv_type_char=yes
17724else
17725 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17726sed 's/^/| /' conftest.$ac_ext >&5
17727
f73dda09
JA
17728ac_cv_type_char=no
17729fi
a82a04b3 17730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17731fi
a82a04b3 17732echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
f73dda09
JA
17733echo "${ECHO_T}$ac_cv_type_char" >&6
17734
a82a04b3 17735echo "$as_me:$LINENO: checking size of char" >&5
f73dda09
JA
17736echo $ECHO_N "checking size of char... $ECHO_C" >&6
17737if test "${ac_cv_sizeof_char+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740 if test "$ac_cv_type_char" = yes; then
a82a04b3
CR
17741 # The cast to unsigned long works around a bug in the HP C Compiler
17742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17744 # This bug is HP SR number 8606223364.
f73dda09
JA
17745 if test "$cross_compiling" = yes; then
17746 # Depending upon the size, compute the lo and hi bounds.
17747cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17748/* confdefs.h. */
17749_ACEOF
17750cat confdefs.h >>conftest.$ac_ext
17751cat >>conftest.$ac_ext <<_ACEOF
17752/* end confdefs.h. */
f73dda09
JA
17753$ac_includes_default
17754int
17755main ()
17756{
a82a04b3
CR
17757static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17758test_array [0] = 0
17759
f73dda09
JA
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext
a82a04b3
CR
17765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>conftest.er1
f73dda09 17767 ac_status=$?
a82a04b3
CR
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17772 (exit $ac_status); } &&
a82a04b3
CR
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
a82a04b3 17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17785 (exit $ac_status); }; }; then
17786 ac_lo=0 ac_mid=0
17787 while :; do
17788 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17789/* confdefs.h. */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h. */
f73dda09
JA
17794$ac_includes_default
17795int
17796main ()
17797{
a82a04b3
CR
17798static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17799test_array [0] = 0
17800
f73dda09
JA
17801 ;
17802 return 0;
17803}
17804_ACEOF
17805rm -f conftest.$ac_objext
a82a04b3
CR
17806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
f73dda09 17808 ac_status=$?
a82a04b3
CR
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17813 (exit $ac_status); } &&
a82a04b3
CR
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
a82a04b3 17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17826 (exit $ac_status); }; }; then
17827 ac_hi=$ac_mid; break
17828else
17829 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17830sed 's/^/| /' conftest.$ac_ext >&5
17831
17832ac_lo=`expr $ac_mid + 1`
17833 if test $ac_lo -le $ac_mid; then
17834 ac_lo= ac_hi=
17835 break
17836 fi
17837 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 17838fi
a82a04b3 17839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
17840 done
17841else
17842 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17843sed 's/^/| /' conftest.$ac_ext >&5
17844
17845cat >conftest.$ac_ext <<_ACEOF
17846/* confdefs.h. */
17847_ACEOF
17848cat confdefs.h >>conftest.$ac_ext
17849cat >>conftest.$ac_ext <<_ACEOF
17850/* end confdefs.h. */
17851$ac_includes_default
17852int
17853main ()
17854{
17855static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17856test_array [0] = 0
17857
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17864 (eval $ac_compile) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest.$ac_objext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_hi=-1 ac_mid=-1
f73dda09
JA
17885 while :; do
17886 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
f73dda09
JA
17892$ac_includes_default
17893int
17894main ()
17895{
a82a04b3
CR
17896static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17897test_array [0] = 0
17898
f73dda09
JA
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext
a82a04b3
CR
17904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905 (eval $ac_compile) 2>conftest.er1
f73dda09 17906 ac_status=$?
a82a04b3
CR
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17911 (exit $ac_status); } &&
a82a04b3
CR
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
a82a04b3 17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17924 (exit $ac_status); }; }; then
17925 ac_lo=$ac_mid; break
17926else
17927 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930ac_hi=`expr '(' $ac_mid ')' - 1`
17931 if test $ac_mid -le $ac_hi; then
17932 ac_lo= ac_hi=
17933 break
17934 fi
17935 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 17936fi
a82a04b3 17937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17938 done
a82a04b3
CR
17939else
17940 echo "$as_me: failed program was:" >&5
17941sed 's/^/| /' conftest.$ac_ext >&5
17942
17943ac_lo= ac_hi=
17944fi
17945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 17946fi
a82a04b3 17947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
17948# Binary search between lo and hi bounds.
17949while test "x$ac_lo" != "x$ac_hi"; do
17950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17951 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
f73dda09
JA
17957$ac_includes_default
17958int
17959main ()
17960{
a82a04b3
CR
17961static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17962test_array [0] = 0
17963
f73dda09
JA
17964 ;
17965 return 0;
17966}
17967_ACEOF
17968rm -f conftest.$ac_objext
a82a04b3
CR
17969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17970 (eval $ac_compile) 2>conftest.er1
f73dda09 17971 ac_status=$?
a82a04b3
CR
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17976 (exit $ac_status); } &&
a82a04b3
CR
17977 { ac_try='test -z "$ac_c_werror_flag"
17978 || test ! -s conftest.err'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; } &&
17984 { ac_try='test -s conftest.$ac_objext'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
a82a04b3 17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17989 (exit $ac_status); }; }; then
17990 ac_hi=$ac_mid
17991else
17992 echo "$as_me: failed program was:" >&5
a82a04b3
CR
17993sed 's/^/| /' conftest.$ac_ext >&5
17994
17995ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 17996fi
a82a04b3 17997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17998done
a82a04b3
CR
17999case $ac_lo in
18000?*) ac_cv_sizeof_char=$ac_lo;;
18001'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18002See \`config.log' for more details." >&5
18003echo "$as_me: error: cannot compute sizeof (char), 77
18004See \`config.log' for more details." >&2;}
18005 { (exit 1); exit 1; }; } ;;
18006esac
ccc6cda3 18007else
f73dda09 18008 if test "$cross_compiling" = yes; then
a82a04b3
CR
18009 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18010See \`config.log' for more details." >&5
18011echo "$as_me: error: cannot run test program while cross compiling
18012See \`config.log' for more details." >&2;}
f73dda09
JA
18013 { (exit 1); exit 1; }; }
18014else
18015 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
f73dda09 18021$ac_includes_default
a82a04b3
CR
18022long longval () { return (long) (sizeof (char)); }
18023unsigned long ulongval () { return (long) (sizeof (char)); }
18024#include <stdio.h>
18025#include <stdlib.h>
f73dda09
JA
18026int
18027main ()
18028{
a82a04b3
CR
18029
18030 FILE *f = fopen ("conftest.val", "w");
18031 if (! f)
18032 exit (1);
18033 if (((long) (sizeof (char))) < 0)
18034 {
18035 long i = longval ();
18036 if (i != ((long) (sizeof (char))))
18037 exit (1);
18038 fprintf (f, "%ld\n", i);
18039 }
18040 else
18041 {
18042 unsigned long i = ulongval ();
18043 if (i != ((long) (sizeof (char))))
18044 exit (1);
18045 fprintf (f, "%lu\n", i);
18046 }
18047 exit (ferror (f) || fclose (f) != 0);
18048
f73dda09
JA
18049 ;
18050 return 0;
18051}
18052_ACEOF
18053rm -f conftest$ac_exeext
a82a04b3 18054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
18055 (eval $ac_link) 2>&5
18056 ac_status=$?
a82a04b3 18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
a82a04b3 18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18063 (exit $ac_status); }; }; then
18064 ac_cv_sizeof_char=`cat conftest.val`
ccc6cda3 18065else
f73dda09
JA
18066 echo "$as_me: program exited with status $ac_status" >&5
18067echo "$as_me: failed program was:" >&5
a82a04b3
CR
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070( exit $ac_status )
18071{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18072See \`config.log' for more details." >&5
18073echo "$as_me: error: cannot compute sizeof (char), 77
18074See \`config.log' for more details." >&2;}
18075 { (exit 1); exit 1; }; }
ccc6cda3 18076fi
a82a04b3 18077rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18078fi
f73dda09
JA
18079fi
18080rm -f conftest.val
18081else
18082 ac_cv_sizeof_char=0
18083fi
18084fi
a82a04b3 18085echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
f73dda09 18086echo "${ECHO_T}$ac_cv_sizeof_char" >&6
a82a04b3 18087cat >>confdefs.h <<_ACEOF
f73dda09 18088#define SIZEOF_CHAR $ac_cv_sizeof_char
a82a04b3 18089_ACEOF
ccc6cda3 18090
a82a04b3
CR
18091
18092echo "$as_me:$LINENO: checking for short" >&5
f73dda09
JA
18093echo $ECHO_N "checking for short... $ECHO_C" >&6
18094if test "${ac_cv_type_short+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18096else
18097 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18098/* confdefs.h. */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h. */
f73dda09
JA
18103$ac_includes_default
18104int
18105main ()
18106{
18107if ((short *) 0)
18108 return 0;
18109if (sizeof (short))
18110 return 0;
18111 ;
18112 return 0;
18113}
18114_ACEOF
18115rm -f conftest.$ac_objext
a82a04b3
CR
18116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117 (eval $ac_compile) 2>conftest.er1
f73dda09 18118 ac_status=$?
a82a04b3
CR
18119 grep -v '^ *+' conftest.er1 >conftest.err
18120 rm -f conftest.er1
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18123 (exit $ac_status); } &&
a82a04b3
CR
18124 { ac_try='test -z "$ac_c_werror_flag"
18125 || test ! -s conftest.err'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest.$ac_objext'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
a82a04b3 18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18136 (exit $ac_status); }; }; then
18137 ac_cv_type_short=yes
18138else
18139 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
f73dda09
JA
18142ac_cv_type_short=no
18143fi
a82a04b3 18144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18145fi
a82a04b3 18146echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
f73dda09
JA
18147echo "${ECHO_T}$ac_cv_type_short" >&6
18148
a82a04b3 18149echo "$as_me:$LINENO: checking size of short" >&5
f73dda09
JA
18150echo $ECHO_N "checking size of short... $ECHO_C" >&6
18151if test "${ac_cv_sizeof_short+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153else
18154 if test "$ac_cv_type_short" = yes; then
a82a04b3
CR
18155 # The cast to unsigned long works around a bug in the HP C Compiler
18156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18158 # This bug is HP SR number 8606223364.
f73dda09
JA
18159 if test "$cross_compiling" = yes; then
18160 # Depending upon the size, compute the lo and hi bounds.
18161cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18162/* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h. */
f73dda09
JA
18167$ac_includes_default
18168int
18169main ()
18170{
a82a04b3
CR
18171static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18172test_array [0] = 0
18173
f73dda09
JA
18174 ;
18175 return 0;
18176}
18177_ACEOF
18178rm -f conftest.$ac_objext
a82a04b3
CR
18179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18180 (eval $ac_compile) 2>conftest.er1
f73dda09 18181 ac_status=$?
a82a04b3
CR
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18186 (exit $ac_status); } &&
a82a04b3
CR
18187 { ac_try='test -z "$ac_c_werror_flag"
18188 || test ! -s conftest.err'
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest.$ac_objext'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
a82a04b3 18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18199 (exit $ac_status); }; }; then
18200 ac_lo=0 ac_mid=0
18201 while :; do
18202 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
f73dda09
JA
18208$ac_includes_default
18209int
18210main ()
18211{
a82a04b3
CR
18212static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18213test_array [0] = 0
18214
f73dda09
JA
18215 ;
18216 return 0;
18217}
18218_ACEOF
18219rm -f conftest.$ac_objext
a82a04b3
CR
18220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18221 (eval $ac_compile) 2>conftest.er1
f73dda09 18222 ac_status=$?
a82a04b3
CR
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18227 (exit $ac_status); } &&
a82a04b3
CR
18228 { ac_try='test -z "$ac_c_werror_flag"
18229 || test ! -s conftest.err'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
a82a04b3
CR
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; } &&
18235 { ac_try='test -s conftest.$ac_objext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18240 (exit $ac_status); }; }; then
18241 ac_hi=$ac_mid; break
18242else
18243 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
18246ac_lo=`expr $ac_mid + 1`
18247 if test $ac_lo -le $ac_mid; then
18248 ac_lo= ac_hi=
18249 break
18250 fi
18251 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 18252fi
a82a04b3 18253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18254 done
18255else
18256 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259cat >conftest.$ac_ext <<_ACEOF
18260/* confdefs.h. */
18261_ACEOF
18262cat confdefs.h >>conftest.$ac_ext
18263cat >>conftest.$ac_ext <<_ACEOF
18264/* end confdefs.h. */
18265$ac_includes_default
18266int
18267main ()
18268{
18269static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18270test_array [0] = 0
18271
18272 ;
18273 return 0;
18274}
18275_ACEOF
18276rm -f conftest.$ac_objext
18277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278 (eval $ac_compile) 2>conftest.er1
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } &&
18285 { ac_try='test -z "$ac_c_werror_flag"
18286 || test ! -s conftest.err'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest.$ac_objext'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 ac_hi=-1 ac_mid=-1
f73dda09
JA
18299 while :; do
18300 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
f73dda09
JA
18306$ac_includes_default
18307int
18308main ()
18309{
a82a04b3
CR
18310static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18311test_array [0] = 0
18312
f73dda09
JA
18313 ;
18314 return 0;
18315}
18316_ACEOF
18317rm -f conftest.$ac_objext
a82a04b3
CR
18318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319 (eval $ac_compile) 2>conftest.er1
f73dda09 18320 ac_status=$?
a82a04b3
CR
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18325 (exit $ac_status); } &&
a82a04b3
CR
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
a82a04b3 18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18338 (exit $ac_status); }; }; then
18339 ac_lo=$ac_mid; break
18340else
18341 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18342sed 's/^/| /' conftest.$ac_ext >&5
18343
18344ac_hi=`expr '(' $ac_mid ')' - 1`
18345 if test $ac_mid -le $ac_hi; then
18346 ac_lo= ac_hi=
18347 break
18348 fi
18349 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 18350fi
a82a04b3 18351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18352 done
a82a04b3
CR
18353else
18354 echo "$as_me: failed program was:" >&5
18355sed 's/^/| /' conftest.$ac_ext >&5
18356
18357ac_lo= ac_hi=
18358fi
18359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18360fi
a82a04b3 18361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18362# Binary search between lo and hi bounds.
18363while test "x$ac_lo" != "x$ac_hi"; do
18364 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18365 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
f73dda09
JA
18371$ac_includes_default
18372int
18373main ()
18374{
a82a04b3
CR
18375static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18376test_array [0] = 0
18377
f73dda09
JA
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
a82a04b3
CR
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18384 (eval $ac_compile) 2>conftest.er1
f73dda09 18385 ac_status=$?
a82a04b3
CR
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18390 (exit $ac_status); } &&
a82a04b3
CR
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest.$ac_objext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
a82a04b3 18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18403 (exit $ac_status); }; }; then
18404 ac_hi=$ac_mid
18405else
18406 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 18410fi
a82a04b3 18411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18412done
a82a04b3
CR
18413case $ac_lo in
18414?*) ac_cv_sizeof_short=$ac_lo;;
18415'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18416See \`config.log' for more details." >&5
18417echo "$as_me: error: cannot compute sizeof (short), 77
18418See \`config.log' for more details." >&2;}
18419 { (exit 1); exit 1; }; } ;;
18420esac
f73dda09
JA
18421else
18422 if test "$cross_compiling" = yes; then
a82a04b3
CR
18423 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18424See \`config.log' for more details." >&5
18425echo "$as_me: error: cannot run test program while cross compiling
18426See \`config.log' for more details." >&2;}
f73dda09 18427 { (exit 1); exit 1; }; }
ccc6cda3 18428else
f73dda09 18429 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18430/* confdefs.h. */
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
f73dda09 18435$ac_includes_default
a82a04b3
CR
18436long longval () { return (long) (sizeof (short)); }
18437unsigned long ulongval () { return (long) (sizeof (short)); }
18438#include <stdio.h>
18439#include <stdlib.h>
f73dda09
JA
18440int
18441main ()
18442{
a82a04b3
CR
18443
18444 FILE *f = fopen ("conftest.val", "w");
18445 if (! f)
18446 exit (1);
18447 if (((long) (sizeof (short))) < 0)
18448 {
18449 long i = longval ();
18450 if (i != ((long) (sizeof (short))))
18451 exit (1);
18452 fprintf (f, "%ld\n", i);
18453 }
18454 else
18455 {
18456 unsigned long i = ulongval ();
18457 if (i != ((long) (sizeof (short))))
18458 exit (1);
18459 fprintf (f, "%lu\n", i);
18460 }
18461 exit (ferror (f) || fclose (f) != 0);
18462
f73dda09
JA
18463 ;
18464 return 0;
18465}
18466_ACEOF
18467rm -f conftest$ac_exeext
a82a04b3 18468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
18469 (eval $ac_link) 2>&5
18470 ac_status=$?
a82a04b3 18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
a82a04b3 18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18477 (exit $ac_status); }; }; then
18478 ac_cv_sizeof_short=`cat conftest.val`
ccc6cda3 18479else
f73dda09
JA
18480 echo "$as_me: program exited with status $ac_status" >&5
18481echo "$as_me: failed program was:" >&5
a82a04b3
CR
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484( exit $ac_status )
18485{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18486See \`config.log' for more details." >&5
18487echo "$as_me: error: cannot compute sizeof (short), 77
18488See \`config.log' for more details." >&2;}
18489 { (exit 1); exit 1; }; }
ccc6cda3 18490fi
a82a04b3 18491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18492fi
ccc6cda3 18493fi
f73dda09 18494rm -f conftest.val
ccc6cda3 18495else
f73dda09 18496 ac_cv_sizeof_short=0
ccc6cda3 18497fi
ccc6cda3 18498fi
a82a04b3 18499echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
f73dda09 18500echo "${ECHO_T}$ac_cv_sizeof_short" >&6
a82a04b3 18501cat >>confdefs.h <<_ACEOF
f73dda09 18502#define SIZEOF_SHORT $ac_cv_sizeof_short
a82a04b3 18503_ACEOF
ccc6cda3 18504
a82a04b3
CR
18505
18506echo "$as_me:$LINENO: checking for int" >&5
f73dda09
JA
18507echo $ECHO_N "checking for int... $ECHO_C" >&6
18508if test "${ac_cv_type_int+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18510else
18511 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
f73dda09
JA
18517$ac_includes_default
18518int
18519main ()
18520{
18521if ((int *) 0)
18522 return 0;
18523if (sizeof (int))
18524 return 0;
18525 ;
18526 return 0;
18527}
18528_ACEOF
18529rm -f conftest.$ac_objext
a82a04b3
CR
18530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18531 (eval $ac_compile) 2>conftest.er1
f73dda09 18532 ac_status=$?
a82a04b3
CR
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18537 (exit $ac_status); } &&
a82a04b3
CR
18538 { ac_try='test -z "$ac_c_werror_flag"
18539 || test ! -s conftest.err'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest.$ac_objext'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
a82a04b3 18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18550 (exit $ac_status); }; }; then
18551 ac_cv_type_int=yes
18552else
18553 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18554sed 's/^/| /' conftest.$ac_ext >&5
18555
f73dda09
JA
18556ac_cv_type_int=no
18557fi
a82a04b3 18558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18559fi
a82a04b3 18560echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
f73dda09
JA
18561echo "${ECHO_T}$ac_cv_type_int" >&6
18562
a82a04b3 18563echo "$as_me:$LINENO: checking size of int" >&5
f73dda09
JA
18564echo $ECHO_N "checking size of int... $ECHO_C" >&6
18565if test "${ac_cv_sizeof_int+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567else
18568 if test "$ac_cv_type_int" = yes; then
a82a04b3
CR
18569 # The cast to unsigned long works around a bug in the HP C Compiler
18570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18572 # This bug is HP SR number 8606223364.
f73dda09
JA
18573 if test "$cross_compiling" = yes; then
18574 # Depending upon the size, compute the lo and hi bounds.
18575cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
f73dda09
JA
18581$ac_includes_default
18582int
18583main ()
18584{
a82a04b3
CR
18585static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18586test_array [0] = 0
18587
f73dda09
JA
18588 ;
18589 return 0;
18590}
18591_ACEOF
18592rm -f conftest.$ac_objext
a82a04b3
CR
18593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18594 (eval $ac_compile) 2>conftest.er1
f73dda09 18595 ac_status=$?
a82a04b3
CR
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18600 (exit $ac_status); } &&
a82a04b3
CR
18601 { ac_try='test -z "$ac_c_werror_flag"
18602 || test ! -s conftest.err'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest.$ac_objext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
a82a04b3 18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18613 (exit $ac_status); }; }; then
18614 ac_lo=0 ac_mid=0
18615 while :; do
18616 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18617/* confdefs.h. */
18618_ACEOF
18619cat confdefs.h >>conftest.$ac_ext
18620cat >>conftest.$ac_ext <<_ACEOF
18621/* end confdefs.h. */
545f34cf
CR
18622$ac_includes_default
18623int
18624main ()
18625{
a82a04b3
CR
18626static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18627test_array [0] = 0
18628
545f34cf
CR
18629 ;
18630 return 0;
18631}
18632_ACEOF
18633rm -f conftest.$ac_objext
a82a04b3
CR
18634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>conftest.er1
545f34cf 18636 ac_status=$?
a82a04b3
CR
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf 18641 (exit $ac_status); } &&
a82a04b3
CR
18642 { ac_try='test -z "$ac_c_werror_flag"
18643 || test ! -s conftest.err'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest.$ac_objext'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
545f34cf
CR
18651 (eval $ac_try) 2>&5
18652 ac_status=$?
a82a04b3 18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
545f34cf
CR
18654 (exit $ac_status); }; }; then
18655 ac_hi=$ac_mid; break
e624d0f7
CR
18656else
18657 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18658sed 's/^/| /' conftest.$ac_ext >&5
18659
18660ac_lo=`expr $ac_mid + 1`
18661 if test $ac_lo -le $ac_mid; then
18662 ac_lo= ac_hi=
18663 break
18664 fi
18665 ac_mid=`expr 2 '*' $ac_mid + 1`
e624d0f7 18666fi
a82a04b3 18667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e624d0f7
CR
18668 done
18669else
18670 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18671sed 's/^/| /' conftest.$ac_ext >&5
18672
18673cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679$ac_includes_default
18680int
18681main ()
18682{
18683static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18684test_array [0] = 0
18685
18686 ;
18687 return 0;
18688}
18689_ACEOF
18690rm -f conftest.$ac_objext
18691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18692 (eval $ac_compile) 2>conftest.er1
18693 ac_status=$?
18694 grep -v '^ *+' conftest.er1 >conftest.err
18695 rm -f conftest.er1
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } &&
18699 { ac_try='test -z "$ac_c_werror_flag"
18700 || test ! -s conftest.err'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest.$ac_objext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_hi=-1 ac_mid=-1
f73dda09
JA
18713 while :; do
18714 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18715/* confdefs.h. */
18716_ACEOF
18717cat confdefs.h >>conftest.$ac_ext
18718cat >>conftest.$ac_ext <<_ACEOF
18719/* end confdefs.h. */
f73dda09
JA
18720$ac_includes_default
18721int
18722main ()
18723{
a82a04b3
CR
18724static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18725test_array [0] = 0
18726
f73dda09
JA
18727 ;
18728 return 0;
18729}
18730_ACEOF
18731rm -f conftest.$ac_objext
a82a04b3
CR
18732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733 (eval $ac_compile) 2>conftest.er1
f73dda09 18734 ac_status=$?
a82a04b3
CR
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18739 (exit $ac_status); } &&
a82a04b3
CR
18740 { ac_try='test -z "$ac_c_werror_flag"
18741 || test ! -s conftest.err'
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest.$ac_objext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
a82a04b3 18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18752 (exit $ac_status); }; }; then
18753 ac_lo=$ac_mid; break
18754else
18755 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18756sed 's/^/| /' conftest.$ac_ext >&5
18757
18758ac_hi=`expr '(' $ac_mid ')' - 1`
18759 if test $ac_mid -le $ac_hi; then
18760 ac_lo= ac_hi=
18761 break
18762 fi
18763 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 18764fi
a82a04b3 18765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18766 done
a82a04b3
CR
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771ac_lo= ac_hi=
18772fi
18773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18774fi
a82a04b3 18775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18776# Binary search between lo and hi bounds.
18777while test "x$ac_lo" != "x$ac_hi"; do
18778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18779 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
f73dda09
JA
18785$ac_includes_default
18786int
18787main ()
18788{
a82a04b3
CR
18789static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18790test_array [0] = 0
18791
f73dda09
JA
18792 ;
18793 return 0;
18794}
18795_ACEOF
18796rm -f conftest.$ac_objext
a82a04b3
CR
18797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
f73dda09 18799 ac_status=$?
a82a04b3
CR
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18804 (exit $ac_status); } &&
a82a04b3
CR
18805 { ac_try='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
a82a04b3 18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18817 (exit $ac_status); }; }; then
18818 ac_hi=$ac_mid
18819else
18820 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18821sed 's/^/| /' conftest.$ac_ext >&5
18822
18823ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 18824fi
a82a04b3 18825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18826done
a82a04b3
CR
18827case $ac_lo in
18828?*) ac_cv_sizeof_int=$ac_lo;;
18829'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18830See \`config.log' for more details." >&5
18831echo "$as_me: error: cannot compute sizeof (int), 77
18832See \`config.log' for more details." >&2;}
18833 { (exit 1); exit 1; }; } ;;
18834esac
f73dda09
JA
18835else
18836 if test "$cross_compiling" = yes; then
a82a04b3
CR
18837 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18838See \`config.log' for more details." >&5
18839echo "$as_me: error: cannot run test program while cross compiling
18840See \`config.log' for more details." >&2;}
f73dda09 18841 { (exit 1); exit 1; }; }
ccc6cda3 18842else
f73dda09 18843 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18844/* confdefs.h. */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h. */
f73dda09 18849$ac_includes_default
a82a04b3
CR
18850long longval () { return (long) (sizeof (int)); }
18851unsigned long ulongval () { return (long) (sizeof (int)); }
18852#include <stdio.h>
18853#include <stdlib.h>
f73dda09
JA
18854int
18855main ()
18856{
a82a04b3
CR
18857
18858 FILE *f = fopen ("conftest.val", "w");
18859 if (! f)
18860 exit (1);
18861 if (((long) (sizeof (int))) < 0)
18862 {
18863 long i = longval ();
18864 if (i != ((long) (sizeof (int))))
18865 exit (1);
18866 fprintf (f, "%ld\n", i);
18867 }
18868 else
18869 {
18870 unsigned long i = ulongval ();
18871 if (i != ((long) (sizeof (int))))
18872 exit (1);
18873 fprintf (f, "%lu\n", i);
18874 }
18875 exit (ferror (f) || fclose (f) != 0);
18876
f73dda09
JA
18877 ;
18878 return 0;
18879}
18880_ACEOF
18881rm -f conftest$ac_exeext
a82a04b3 18882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
18883 (eval $ac_link) 2>&5
18884 ac_status=$?
a82a04b3 18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
a82a04b3 18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18891 (exit $ac_status); }; }; then
18892 ac_cv_sizeof_int=`cat conftest.val`
ccc6cda3 18893else
f73dda09
JA
18894 echo "$as_me: program exited with status $ac_status" >&5
18895echo "$as_me: failed program was:" >&5
a82a04b3
CR
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898( exit $ac_status )
18899{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18900See \`config.log' for more details." >&5
18901echo "$as_me: error: cannot compute sizeof (int), 77
18902See \`config.log' for more details." >&2;}
18903 { (exit 1); exit 1; }; }
ccc6cda3 18904fi
a82a04b3 18905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18906fi
ccc6cda3 18907fi
f73dda09 18908rm -f conftest.val
ccc6cda3 18909else
f73dda09 18910 ac_cv_sizeof_int=0
ccc6cda3 18911fi
ccc6cda3 18912fi
a82a04b3 18913echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
f73dda09 18914echo "${ECHO_T}$ac_cv_sizeof_int" >&6
a82a04b3 18915cat >>confdefs.h <<_ACEOF
f73dda09 18916#define SIZEOF_INT $ac_cv_sizeof_int
a82a04b3 18917_ACEOF
ccc6cda3 18918
a82a04b3
CR
18919
18920echo "$as_me:$LINENO: checking for long" >&5
f73dda09
JA
18921echo $ECHO_N "checking for long... $ECHO_C" >&6
18922if test "${ac_cv_type_long+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 18924else
f73dda09 18925 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
f73dda09
JA
18931$ac_includes_default
18932int
18933main ()
18934{
18935if ((long *) 0)
18936 return 0;
18937if (sizeof (long))
18938 return 0;
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943rm -f conftest.$ac_objext
a82a04b3
CR
18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>conftest.er1
f73dda09 18946 ac_status=$?
a82a04b3
CR
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18951 (exit $ac_status); } &&
a82a04b3
CR
18952 { ac_try='test -z "$ac_c_werror_flag"
18953 || test ! -s conftest.err'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; } &&
18959 { ac_try='test -s conftest.$ac_objext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
a82a04b3 18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18964 (exit $ac_status); }; }; then
18965 ac_cv_type_long=yes
18966else
18967 echo "$as_me: failed program was:" >&5
a82a04b3
CR
18968sed 's/^/| /' conftest.$ac_ext >&5
18969
f73dda09
JA
18970ac_cv_type_long=no
18971fi
a82a04b3 18972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18973fi
a82a04b3 18974echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
f73dda09
JA
18975echo "${ECHO_T}$ac_cv_type_long" >&6
18976
a82a04b3 18977echo "$as_me:$LINENO: checking size of long" >&5
f73dda09
JA
18978echo $ECHO_N "checking size of long... $ECHO_C" >&6
18979if test "${ac_cv_sizeof_long+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981else
18982 if test "$ac_cv_type_long" = yes; then
a82a04b3
CR
18983 # The cast to unsigned long works around a bug in the HP C Compiler
18984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18986 # This bug is HP SR number 8606223364.
f73dda09
JA
18987 if test "$cross_compiling" = yes; then
18988 # Depending upon the size, compute the lo and hi bounds.
18989cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
18990/* confdefs.h. */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h. */
f73dda09
JA
18995$ac_includes_default
18996int
18997main ()
18998{
a82a04b3
CR
18999static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19000test_array [0] = 0
19001
f73dda09
JA
19002 ;
19003 return 0;
19004}
19005_ACEOF
19006rm -f conftest.$ac_objext
a82a04b3
CR
19007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19008 (eval $ac_compile) 2>conftest.er1
f73dda09 19009 ac_status=$?
a82a04b3
CR
19010 grep -v '^ *+' conftest.er1 >conftest.err
19011 rm -f conftest.er1
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19014 (exit $ac_status); } &&
a82a04b3
CR
19015 { ac_try='test -z "$ac_c_werror_flag"
19016 || test ! -s conftest.err'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; } &&
19022 { ac_try='test -s conftest.$ac_objext'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
a82a04b3 19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19027 (exit $ac_status); }; }; then
19028 ac_lo=0 ac_mid=0
19029 while :; do
19030 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19031/* confdefs.h. */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
19035/* end confdefs.h. */
f73dda09
JA
19036$ac_includes_default
19037int
19038main ()
19039{
a82a04b3
CR
19040static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19041test_array [0] = 0
19042
f73dda09
JA
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047rm -f conftest.$ac_objext
a82a04b3
CR
19048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
f73dda09 19050 ac_status=$?
a82a04b3
CR
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19055 (exit $ac_status); } &&
a82a04b3
CR
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
a82a04b3
CR
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19068 (exit $ac_status); }; }; then
19069 ac_hi=$ac_mid; break
19070else
19071 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074ac_lo=`expr $ac_mid + 1`
19075 if test $ac_lo -le $ac_mid; then
19076 ac_lo= ac_hi=
19077 break
19078 fi
19079 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 19080fi
a82a04b3 19081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19082 done
ccc6cda3 19083else
f73dda09 19084 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19085sed 's/^/| /' conftest.$ac_ext >&5
19086
19087cat >conftest.$ac_ext <<_ACEOF
19088/* confdefs.h. */
19089_ACEOF
19090cat confdefs.h >>conftest.$ac_ext
19091cat >>conftest.$ac_ext <<_ACEOF
19092/* end confdefs.h. */
19093$ac_includes_default
19094int
19095main ()
19096{
19097static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19098test_array [0] = 0
19099
19100 ;
19101 return 0;
19102}
19103_ACEOF
19104rm -f conftest.$ac_objext
19105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
19113 { ac_try='test -z "$ac_c_werror_flag"
19114 || test ! -s conftest.err'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest.$ac_objext'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_hi=-1 ac_mid=-1
f73dda09
JA
19127 while :; do
19128 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19129/* confdefs.h. */
19130_ACEOF
19131cat confdefs.h >>conftest.$ac_ext
19132cat >>conftest.$ac_ext <<_ACEOF
19133/* end confdefs.h. */
f73dda09
JA
19134$ac_includes_default
19135int
19136main ()
19137{
a82a04b3
CR
19138static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19139test_array [0] = 0
19140
f73dda09
JA
19141 ;
19142 return 0;
19143}
19144_ACEOF
19145rm -f conftest.$ac_objext
a82a04b3
CR
19146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19147 (eval $ac_compile) 2>conftest.er1
f73dda09 19148 ac_status=$?
a82a04b3
CR
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19153 (exit $ac_status); } &&
a82a04b3
CR
19154 { ac_try='test -z "$ac_c_werror_flag"
19155 || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest.$ac_objext'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
a82a04b3 19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19166 (exit $ac_status); }; }; then
19167 ac_lo=$ac_mid; break
19168else
19169 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172ac_hi=`expr '(' $ac_mid ')' - 1`
19173 if test $ac_mid -le $ac_hi; then
19174 ac_lo= ac_hi=
19175 break
19176 fi
19177 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 19178fi
a82a04b3 19179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19180 done
a82a04b3
CR
19181else
19182 echo "$as_me: failed program was:" >&5
19183sed 's/^/| /' conftest.$ac_ext >&5
19184
19185ac_lo= ac_hi=
19186fi
19187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19188fi
a82a04b3 19189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19190# Binary search between lo and hi bounds.
19191while test "x$ac_lo" != "x$ac_hi"; do
19192 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19193 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
f73dda09
JA
19199$ac_includes_default
19200int
19201main ()
19202{
a82a04b3
CR
19203static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19204test_array [0] = 0
19205
f73dda09
JA
19206 ;
19207 return 0;
19208}
19209_ACEOF
19210rm -f conftest.$ac_objext
a82a04b3
CR
19211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19212 (eval $ac_compile) 2>conftest.er1
f73dda09 19213 ac_status=$?
a82a04b3
CR
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19218 (exit $ac_status); } &&
a82a04b3
CR
19219 { ac_try='test -z "$ac_c_werror_flag"
19220 || test ! -s conftest.err'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; } &&
19226 { ac_try='test -s conftest.$ac_objext'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
a82a04b3 19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19231 (exit $ac_status); }; }; then
19232 ac_hi=$ac_mid
19233else
19234 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19235sed 's/^/| /' conftest.$ac_ext >&5
19236
19237ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 19238fi
a82a04b3 19239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19240done
a82a04b3
CR
19241case $ac_lo in
19242?*) ac_cv_sizeof_long=$ac_lo;;
19243'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19244See \`config.log' for more details." >&5
19245echo "$as_me: error: cannot compute sizeof (long), 77
19246See \`config.log' for more details." >&2;}
19247 { (exit 1); exit 1; }; } ;;
19248esac
bb70624e
JA
19249else
19250 if test "$cross_compiling" = yes; then
a82a04b3
CR
19251 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19252See \`config.log' for more details." >&5
19253echo "$as_me: error: cannot run test program while cross compiling
19254See \`config.log' for more details." >&2;}
f73dda09 19255 { (exit 1); exit 1; }; }
bb70624e 19256else
f73dda09 19257 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
f73dda09 19263$ac_includes_default
a82a04b3
CR
19264long longval () { return (long) (sizeof (long)); }
19265unsigned long ulongval () { return (long) (sizeof (long)); }
19266#include <stdio.h>
19267#include <stdlib.h>
f73dda09
JA
19268int
19269main ()
bb70624e 19270{
a82a04b3
CR
19271
19272 FILE *f = fopen ("conftest.val", "w");
19273 if (! f)
19274 exit (1);
19275 if (((long) (sizeof (long))) < 0)
19276 {
19277 long i = longval ();
19278 if (i != ((long) (sizeof (long))))
19279 exit (1);
19280 fprintf (f, "%ld\n", i);
19281 }
19282 else
19283 {
19284 unsigned long i = ulongval ();
19285 if (i != ((long) (sizeof (long))))
19286 exit (1);
19287 fprintf (f, "%lu\n", i);
19288 }
19289 exit (ferror (f) || fclose (f) != 0);
19290
f73dda09
JA
19291 ;
19292 return 0;
bb70624e 19293}
f73dda09
JA
19294_ACEOF
19295rm -f conftest$ac_exeext
a82a04b3 19296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
19297 (eval $ac_link) 2>&5
19298 ac_status=$?
a82a04b3 19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
a82a04b3 19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19305 (exit $ac_status); }; }; then
19306 ac_cv_sizeof_long=`cat conftest.val`
bb70624e 19307else
f73dda09
JA
19308 echo "$as_me: program exited with status $ac_status" >&5
19309echo "$as_me: failed program was:" >&5
a82a04b3
CR
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312( exit $ac_status )
19313{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19314See \`config.log' for more details." >&5
19315echo "$as_me: error: cannot compute sizeof (long), 77
19316See \`config.log' for more details." >&2;}
19317 { (exit 1); exit 1; }; }
bb70624e 19318fi
a82a04b3 19319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 19320fi
bb70624e 19321fi
f73dda09
JA
19322rm -f conftest.val
19323else
19324 ac_cv_sizeof_long=0
19325fi
19326fi
a82a04b3 19327echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
f73dda09 19328echo "${ECHO_T}$ac_cv_sizeof_long" >&6
a82a04b3 19329cat >>confdefs.h <<_ACEOF
f73dda09 19330#define SIZEOF_LONG $ac_cv_sizeof_long
a82a04b3 19331_ACEOF
bb70624e 19332
a82a04b3
CR
19333
19334echo "$as_me:$LINENO: checking for char *" >&5
f73dda09
JA
19335echo $ECHO_N "checking for char *... $ECHO_C" >&6
19336if test "${ac_cv_type_char_p+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19338else
19339 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19340/* confdefs.h. */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h. */
f73dda09
JA
19345$ac_includes_default
19346int
19347main ()
19348{
19349if ((char * *) 0)
19350 return 0;
19351if (sizeof (char *))
19352 return 0;
19353 ;
19354 return 0;
19355}
19356_ACEOF
19357rm -f conftest.$ac_objext
a82a04b3
CR
19358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>conftest.er1
f73dda09 19360 ac_status=$?
a82a04b3
CR
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19365 (exit $ac_status); } &&
a82a04b3
CR
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
a82a04b3 19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19378 (exit $ac_status); }; }; then
19379 ac_cv_type_char_p=yes
19380else
19381 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
f73dda09
JA
19384ac_cv_type_char_p=no
19385fi
a82a04b3 19386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19387fi
a82a04b3 19388echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
f73dda09
JA
19389echo "${ECHO_T}$ac_cv_type_char_p" >&6
19390
a82a04b3 19391echo "$as_me:$LINENO: checking size of char *" >&5
f73dda09
JA
19392echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19393if test "${ac_cv_sizeof_char_p+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19395else
19396 if test "$ac_cv_type_char_p" = yes; then
a82a04b3
CR
19397 # The cast to unsigned long works around a bug in the HP C Compiler
19398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19400 # This bug is HP SR number 8606223364.
f73dda09
JA
19401 if test "$cross_compiling" = yes; then
19402 # Depending upon the size, compute the lo and hi bounds.
19403cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19404/* confdefs.h. */
19405_ACEOF
19406cat confdefs.h >>conftest.$ac_ext
19407cat >>conftest.$ac_ext <<_ACEOF
19408/* end confdefs.h. */
f73dda09
JA
19409$ac_includes_default
19410int
19411main ()
19412{
a82a04b3
CR
19413static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
19414test_array [0] = 0
19415
f73dda09
JA
19416 ;
19417 return 0;
19418}
19419_ACEOF
19420rm -f conftest.$ac_objext
a82a04b3
CR
19421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>conftest.er1
f73dda09 19423 ac_status=$?
a82a04b3
CR
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19428 (exit $ac_status); } &&
a82a04b3
CR
19429 { ac_try='test -z "$ac_c_werror_flag"
19430 || test ! -s conftest.err'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
a82a04b3 19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19441 (exit $ac_status); }; }; then
19442 ac_lo=0 ac_mid=0
19443 while :; do
19444 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
f73dda09
JA
19450$ac_includes_default
19451int
19452main ()
19453{
a82a04b3
CR
19454static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19455test_array [0] = 0
19456
f73dda09
JA
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
a82a04b3
CR
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19463 (eval $ac_compile) 2>conftest.er1
f73dda09 19464 ac_status=$?
a82a04b3
CR
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19469 (exit $ac_status); } &&
a82a04b3
CR
19470 { ac_try='test -z "$ac_c_werror_flag"
19471 || test ! -s conftest.err'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; } &&
19477 { ac_try='test -s conftest.$ac_objext'
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
a82a04b3 19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19482 (exit $ac_status); }; }; then
19483 ac_hi=$ac_mid; break
19484else
19485 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19486sed 's/^/| /' conftest.$ac_ext >&5
19487
19488ac_lo=`expr $ac_mid + 1`
19489 if test $ac_lo -le $ac_mid; then
19490 ac_lo= ac_hi=
19491 break
19492 fi
19493 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 19494fi
a82a04b3 19495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19496 done
19497else
19498 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
19501cat >conftest.$ac_ext <<_ACEOF
19502/* confdefs.h. */
19503_ACEOF
19504cat confdefs.h >>conftest.$ac_ext
19505cat >>conftest.$ac_ext <<_ACEOF
19506/* end confdefs.h. */
19507$ac_includes_default
19508int
19509main ()
19510{
19511static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
19512test_array [0] = 0
19513
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag"
19528 || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_hi=-1 ac_mid=-1
f73dda09
JA
19541 while :; do
19542 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
f73dda09
JA
19548$ac_includes_default
19549int
19550main ()
19551{
a82a04b3
CR
19552static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
19553test_array [0] = 0
19554
f73dda09
JA
19555 ;
19556 return 0;
19557}
19558_ACEOF
19559rm -f conftest.$ac_objext
a82a04b3
CR
19560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
f73dda09 19562 ac_status=$?
a82a04b3
CR
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19567 (exit $ac_status); } &&
a82a04b3
CR
19568 { ac_try='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
a82a04b3 19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19580 (exit $ac_status); }; }; then
19581 ac_lo=$ac_mid; break
19582else
19583 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19584sed 's/^/| /' conftest.$ac_ext >&5
19585
19586ac_hi=`expr '(' $ac_mid ')' - 1`
19587 if test $ac_mid -le $ac_hi; then
19588 ac_lo= ac_hi=
19589 break
19590 fi
19591 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 19592fi
a82a04b3 19593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19594 done
a82a04b3
CR
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599ac_lo= ac_hi=
19600fi
19601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19602fi
a82a04b3 19603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19604# Binary search between lo and hi bounds.
19605while test "x$ac_lo" != "x$ac_hi"; do
19606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19607 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
f73dda09
JA
19613$ac_includes_default
19614int
19615main ()
19616{
a82a04b3
CR
19617static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19618test_array [0] = 0
19619
f73dda09
JA
19620 ;
19621 return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext
a82a04b3
CR
19625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
f73dda09 19627 ac_status=$?
a82a04b3
CR
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19632 (exit $ac_status); } &&
a82a04b3
CR
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
a82a04b3 19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19645 (exit $ac_status); }; }; then
19646 ac_hi=$ac_mid
19647else
19648 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19649sed 's/^/| /' conftest.$ac_ext >&5
19650
19651ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 19652fi
a82a04b3 19653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19654done
a82a04b3
CR
19655case $ac_lo in
19656?*) ac_cv_sizeof_char_p=$ac_lo;;
19657'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19658See \`config.log' for more details." >&5
19659echo "$as_me: error: cannot compute sizeof (char *), 77
19660See \`config.log' for more details." >&2;}
19661 { (exit 1); exit 1; }; } ;;
19662esac
bb70624e
JA
19663else
19664 if test "$cross_compiling" = yes; then
a82a04b3
CR
19665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19666See \`config.log' for more details." >&5
19667echo "$as_me: error: cannot run test program while cross compiling
19668See \`config.log' for more details." >&2;}
f73dda09 19669 { (exit 1); exit 1; }; }
bb70624e 19670else
f73dda09 19671 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
f73dda09 19677$ac_includes_default
a82a04b3
CR
19678long longval () { return (long) (sizeof (char *)); }
19679unsigned long ulongval () { return (long) (sizeof (char *)); }
19680#include <stdio.h>
19681#include <stdlib.h>
f73dda09
JA
19682int
19683main ()
bb70624e 19684{
a82a04b3
CR
19685
19686 FILE *f = fopen ("conftest.val", "w");
19687 if (! f)
19688 exit (1);
19689 if (((long) (sizeof (char *))) < 0)
19690 {
19691 long i = longval ();
19692 if (i != ((long) (sizeof (char *))))
19693 exit (1);
19694 fprintf (f, "%ld\n", i);
19695 }
19696 else
19697 {
19698 unsigned long i = ulongval ();
19699 if (i != ((long) (sizeof (char *))))
19700 exit (1);
19701 fprintf (f, "%lu\n", i);
19702 }
19703 exit (ferror (f) || fclose (f) != 0);
19704
f73dda09
JA
19705 ;
19706 return 0;
bb70624e 19707}
f73dda09
JA
19708_ACEOF
19709rm -f conftest$ac_exeext
a82a04b3 19710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
19711 (eval $ac_link) 2>&5
19712 ac_status=$?
a82a04b3 19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
a82a04b3 19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19719 (exit $ac_status); }; }; then
19720 ac_cv_sizeof_char_p=`cat conftest.val`
bb70624e 19721else
f73dda09
JA
19722 echo "$as_me: program exited with status $ac_status" >&5
19723echo "$as_me: failed program was:" >&5
a82a04b3
CR
19724sed 's/^/| /' conftest.$ac_ext >&5
19725
19726( exit $ac_status )
19727{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19728See \`config.log' for more details." >&5
19729echo "$as_me: error: cannot compute sizeof (char *), 77
19730See \`config.log' for more details." >&2;}
19731 { (exit 1); exit 1; }; }
bb70624e 19732fi
a82a04b3 19733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 19734fi
bb70624e 19735fi
f73dda09
JA
19736rm -f conftest.val
19737else
19738 ac_cv_sizeof_char_p=0
19739fi
19740fi
a82a04b3 19741echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
f73dda09 19742echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
a82a04b3 19743cat >>confdefs.h <<_ACEOF
f73dda09 19744#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
a82a04b3 19745_ACEOF
bb70624e 19746
a82a04b3
CR
19747
19748echo "$as_me:$LINENO: checking for double" >&5
f73dda09
JA
19749echo $ECHO_N "checking for double... $ECHO_C" >&6
19750if test "${ac_cv_type_double+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 19752else
f73dda09 19753 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
f73dda09
JA
19759$ac_includes_default
19760int
19761main ()
19762{
19763if ((double *) 0)
19764 return 0;
19765if (sizeof (double))
19766 return 0;
19767 ;
19768 return 0;
19769}
19770_ACEOF
19771rm -f conftest.$ac_objext
a82a04b3
CR
19772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19773 (eval $ac_compile) 2>conftest.er1
f73dda09 19774 ac_status=$?
a82a04b3
CR
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19779 (exit $ac_status); } &&
a82a04b3
CR
19780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
a82a04b3 19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19792 (exit $ac_status); }; }; then
19793 ac_cv_type_double=yes
19794else
19795 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
f73dda09
JA
19798ac_cv_type_double=no
19799fi
a82a04b3 19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19801fi
a82a04b3 19802echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
f73dda09
JA
19803echo "${ECHO_T}$ac_cv_type_double" >&6
19804
a82a04b3 19805echo "$as_me:$LINENO: checking size of double" >&5
f73dda09
JA
19806echo $ECHO_N "checking size of double... $ECHO_C" >&6
19807if test "${ac_cv_sizeof_double+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809else
19810 if test "$ac_cv_type_double" = yes; then
a82a04b3
CR
19811 # The cast to unsigned long works around a bug in the HP C Compiler
19812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19814 # This bug is HP SR number 8606223364.
cce855bc 19815 if test "$cross_compiling" = yes; then
f73dda09
JA
19816 # Depending upon the size, compute the lo and hi bounds.
19817cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
f73dda09
JA
19823$ac_includes_default
19824int
19825main ()
cce855bc 19826{
a82a04b3
CR
19827static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
19828test_array [0] = 0
19829
f73dda09
JA
19830 ;
19831 return 0;
cce855bc 19832}
f73dda09
JA
19833_ACEOF
19834rm -f conftest.$ac_objext
a82a04b3
CR
19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>conftest.er1
f73dda09 19837 ac_status=$?
a82a04b3
CR
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19842 (exit $ac_status); } &&
a82a04b3
CR
19843 { ac_try='test -z "$ac_c_werror_flag"
19844 || test ! -s conftest.err'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
a82a04b3 19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19855 (exit $ac_status); }; }; then
19856 ac_lo=0 ac_mid=0
19857 while :; do
19858 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
f73dda09
JA
19864$ac_includes_default
19865int
19866main ()
19867{
a82a04b3
CR
19868static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
19869test_array [0] = 0
19870
f73dda09
JA
19871 ;
19872 return 0;
19873}
19874_ACEOF
19875rm -f conftest.$ac_objext
a82a04b3
CR
19876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>conftest.er1
f73dda09 19878 ac_status=$?
a82a04b3
CR
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19883 (exit $ac_status); } &&
a82a04b3
CR
19884 { ac_try='test -z "$ac_c_werror_flag"
19885 || test ! -s conftest.err'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
a82a04b3
CR
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19896 (exit $ac_status); }; }; then
19897 ac_hi=$ac_mid; break
19898else
19899 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19900sed 's/^/| /' conftest.$ac_ext >&5
19901
19902ac_lo=`expr $ac_mid + 1`
19903 if test $ac_lo -le $ac_mid; then
19904 ac_lo= ac_hi=
19905 break
19906 fi
19907 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 19908fi
a82a04b3 19909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19910 done
cce855bc 19911else
f73dda09 19912 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19913sed 's/^/| /' conftest.$ac_ext >&5
19914
19915cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921$ac_includes_default
19922int
19923main ()
19924{
19925static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
19926test_array [0] = 0
19927
19928 ;
19929 return 0;
19930}
19931_ACEOF
19932rm -f conftest.$ac_objext
19933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934 (eval $ac_compile) 2>conftest.er1
19935 ac_status=$?
19936 grep -v '^ *+' conftest.er1 >conftest.err
19937 rm -f conftest.er1
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } &&
19941 { ac_try='test -z "$ac_c_werror_flag"
19942 || test ! -s conftest.err'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest.$ac_objext'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_hi=-1 ac_mid=-1
f73dda09
JA
19955 while :; do
19956 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
f73dda09
JA
19962$ac_includes_default
19963int
19964main ()
19965{
a82a04b3
CR
19966static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
19967test_array [0] = 0
19968
f73dda09
JA
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext
a82a04b3
CR
19974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>conftest.er1
f73dda09 19976 ac_status=$?
a82a04b3
CR
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19981 (exit $ac_status); } &&
a82a04b3
CR
19982 { ac_try='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest.$ac_objext'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
a82a04b3 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19994 (exit $ac_status); }; }; then
19995 ac_lo=$ac_mid; break
19996else
19997 echo "$as_me: failed program was:" >&5
a82a04b3
CR
19998sed 's/^/| /' conftest.$ac_ext >&5
19999
20000ac_hi=`expr '(' $ac_mid ')' - 1`
20001 if test $ac_mid -le $ac_hi; then
20002 ac_lo= ac_hi=
20003 break
20004 fi
20005 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20006fi
a82a04b3 20007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20008 done
a82a04b3
CR
20009else
20010 echo "$as_me: failed program was:" >&5
20011sed 's/^/| /' conftest.$ac_ext >&5
20012
20013ac_lo= ac_hi=
20014fi
20015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 20016fi
a82a04b3 20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20018# Binary search between lo and hi bounds.
20019while test "x$ac_lo" != "x$ac_hi"; do
20020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20021 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h. */
f73dda09
JA
20027$ac_includes_default
20028int
20029main ()
20030{
a82a04b3
CR
20031static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20032test_array [0] = 0
20033
f73dda09
JA
20034 ;
20035 return 0;
20036}
20037_ACEOF
20038rm -f conftest.$ac_objext
a82a04b3
CR
20039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20040 (eval $ac_compile) 2>conftest.er1
f73dda09 20041 ac_status=$?
a82a04b3
CR
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20046 (exit $ac_status); } &&
a82a04b3
CR
20047 { ac_try='test -z "$ac_c_werror_flag"
20048 || test ! -s conftest.err'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } &&
20054 { ac_try='test -s conftest.$ac_objext'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
a82a04b3 20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20059 (exit $ac_status); }; }; then
20060 ac_hi=$ac_mid
20061else
20062 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
20065ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20066fi
a82a04b3 20067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20068done
a82a04b3
CR
20069case $ac_lo in
20070?*) ac_cv_sizeof_double=$ac_lo;;
20071'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20072See \`config.log' for more details." >&5
20073echo "$as_me: error: cannot compute sizeof (double), 77
20074See \`config.log' for more details." >&2;}
20075 { (exit 1); exit 1; }; } ;;
20076esac
cce855bc
JA
20077else
20078 if test "$cross_compiling" = yes; then
a82a04b3
CR
20079 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20080See \`config.log' for more details." >&5
20081echo "$as_me: error: cannot run test program while cross compiling
20082See \`config.log' for more details." >&2;}
f73dda09 20083 { (exit 1); exit 1; }; }
cce855bc 20084else
f73dda09 20085 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
f73dda09 20091$ac_includes_default
a82a04b3
CR
20092long longval () { return (long) (sizeof (double)); }
20093unsigned long ulongval () { return (long) (sizeof (double)); }
20094#include <stdio.h>
20095#include <stdlib.h>
f73dda09
JA
20096int
20097main ()
cce855bc 20098{
a82a04b3
CR
20099
20100 FILE *f = fopen ("conftest.val", "w");
20101 if (! f)
20102 exit (1);
20103 if (((long) (sizeof (double))) < 0)
20104 {
20105 long i = longval ();
20106 if (i != ((long) (sizeof (double))))
20107 exit (1);
20108 fprintf (f, "%ld\n", i);
20109 }
20110 else
20111 {
20112 unsigned long i = ulongval ();
20113 if (i != ((long) (sizeof (double))))
20114 exit (1);
20115 fprintf (f, "%lu\n", i);
20116 }
20117 exit (ferror (f) || fclose (f) != 0);
20118
f73dda09
JA
20119 ;
20120 return 0;
cce855bc 20121}
f73dda09
JA
20122_ACEOF
20123rm -f conftest$ac_exeext
a82a04b3 20124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
20125 (eval $ac_link) 2>&5
20126 ac_status=$?
a82a04b3 20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
a82a04b3 20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20133 (exit $ac_status); }; }; then
20134 ac_cv_sizeof_double=`cat conftest.val`
cce855bc 20135else
f73dda09
JA
20136 echo "$as_me: program exited with status $ac_status" >&5
20137echo "$as_me: failed program was:" >&5
a82a04b3
CR
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140( exit $ac_status )
20141{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20142See \`config.log' for more details." >&5
20143echo "$as_me: error: cannot compute sizeof (double), 77
20144See \`config.log' for more details." >&2;}
20145 { (exit 1); exit 1; }; }
cce855bc 20146fi
a82a04b3 20147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cce855bc 20148fi
cce855bc 20149fi
f73dda09
JA
20150rm -f conftest.val
20151else
20152 ac_cv_sizeof_double=0
20153fi
20154fi
a82a04b3 20155echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
f73dda09 20156echo "${ECHO_T}$ac_cv_sizeof_double" >&6
a82a04b3 20157cat >>confdefs.h <<_ACEOF
f73dda09 20158#define SIZEOF_DOUBLE $ac_cv_sizeof_double
a82a04b3 20159_ACEOF
cce855bc 20160
a82a04b3
CR
20161
20162echo "$as_me:$LINENO: checking for long long" >&5
f73dda09
JA
20163echo $ECHO_N "checking for long long... $ECHO_C" >&6
20164if test "${ac_cv_type_long_long+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 20166else
f73dda09 20167 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
f73dda09
JA
20173$ac_includes_default
20174int
20175main ()
20176{
20177if ((long long *) 0)
20178 return 0;
20179if (sizeof (long long))
20180 return 0;
20181 ;
20182 return 0;
20183}
20184_ACEOF
20185rm -f conftest.$ac_objext
a82a04b3
CR
20186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20187 (eval $ac_compile) 2>conftest.er1
f73dda09 20188 ac_status=$?
a82a04b3
CR
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20193 (exit $ac_status); } &&
a82a04b3
CR
20194 { ac_try='test -z "$ac_c_werror_flag"
20195 || test ! -s conftest.err'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
a82a04b3 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20206 (exit $ac_status); }; }; then
20207 ac_cv_type_long_long=yes
20208else
20209 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
f73dda09
JA
20212ac_cv_type_long_long=no
20213fi
a82a04b3 20214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20215fi
a82a04b3 20216echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
f73dda09
JA
20217echo "${ECHO_T}$ac_cv_type_long_long" >&6
20218
a82a04b3 20219echo "$as_me:$LINENO: checking size of long long" >&5
f73dda09
JA
20220echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20221if test "${ac_cv_sizeof_long_long+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20223else
20224 if test "$ac_cv_type_long_long" = yes; then
a82a04b3
CR
20225 # The cast to unsigned long works around a bug in the HP C Compiler
20226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20228 # This bug is HP SR number 8606223364.
cce855bc 20229 if test "$cross_compiling" = yes; then
f73dda09
JA
20230 # Depending upon the size, compute the lo and hi bounds.
20231cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
f73dda09
JA
20237$ac_includes_default
20238int
20239main ()
cce855bc 20240{
a82a04b3
CR
20241static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20242test_array [0] = 0
20243
f73dda09
JA
20244 ;
20245 return 0;
cce855bc 20246}
f73dda09
JA
20247_ACEOF
20248rm -f conftest.$ac_objext
a82a04b3
CR
20249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250 (eval $ac_compile) 2>conftest.er1
f73dda09 20251 ac_status=$?
a82a04b3
CR
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20256 (exit $ac_status); } &&
a82a04b3
CR
20257 { ac_try='test -z "$ac_c_werror_flag"
20258 || test ! -s conftest.err'
20259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260 (eval $ac_try) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; } &&
20264 { ac_try='test -s conftest.$ac_objext'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
a82a04b3 20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20269 (exit $ac_status); }; }; then
20270 ac_lo=0 ac_mid=0
20271 while :; do
20272 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
f73dda09
JA
20278$ac_includes_default
20279int
20280main ()
20281{
a82a04b3
CR
20282static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20283test_array [0] = 0
20284
f73dda09
JA
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext
a82a04b3
CR
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>conftest.er1
f73dda09 20292 ac_status=$?
a82a04b3
CR
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20297 (exit $ac_status); } &&
a82a04b3
CR
20298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
a82a04b3 20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20310 (exit $ac_status); }; }; then
20311 ac_hi=$ac_mid; break
20312else
20313 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316ac_lo=`expr $ac_mid + 1`
20317 if test $ac_lo -le $ac_mid; then
20318 ac_lo= ac_hi=
20319 break
20320 fi
20321 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20322fi
a82a04b3 20323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20324 done
cce855bc 20325else
f73dda09 20326 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335$ac_includes_default
20336int
20337main ()
20338{
20339static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20340test_array [0] = 0
20341
20342 ;
20343 return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext
20347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20348 (eval $ac_compile) 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try='test -z "$ac_c_werror_flag"
20356 || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 ac_hi=-1 ac_mid=-1
f73dda09
JA
20369 while :; do
20370 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20371/* confdefs.h. */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h. */
f73dda09
JA
20376$ac_includes_default
20377int
20378main ()
20379{
a82a04b3
CR
20380static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20381test_array [0] = 0
20382
f73dda09
JA
20383 ;
20384 return 0;
20385}
20386_ACEOF
20387rm -f conftest.$ac_objext
a82a04b3
CR
20388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20389 (eval $ac_compile) 2>conftest.er1
f73dda09 20390 ac_status=$?
a82a04b3
CR
20391 grep -v '^ *+' conftest.er1 >conftest.err
20392 rm -f conftest.er1
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20395 (exit $ac_status); } &&
a82a04b3
CR
20396 { ac_try='test -z "$ac_c_werror_flag"
20397 || test ! -s conftest.err'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try='test -s conftest.$ac_objext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
a82a04b3 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20408 (exit $ac_status); }; }; then
20409 ac_lo=$ac_mid; break
20410else
20411 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20412sed 's/^/| /' conftest.$ac_ext >&5
20413
20414ac_hi=`expr '(' $ac_mid ')' - 1`
20415 if test $ac_mid -le $ac_hi; then
20416 ac_lo= ac_hi=
20417 break
20418 fi
20419 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20420fi
a82a04b3 20421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20422 done
a82a04b3
CR
20423else
20424 echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427ac_lo= ac_hi=
20428fi
20429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 20430fi
a82a04b3 20431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20432# Binary search between lo and hi bounds.
20433while test "x$ac_lo" != "x$ac_hi"; do
20434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20435 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20436/* confdefs.h. */
20437_ACEOF
20438cat confdefs.h >>conftest.$ac_ext
20439cat >>conftest.$ac_ext <<_ACEOF
20440/* end confdefs.h. */
f73dda09
JA
20441$ac_includes_default
20442int
20443main ()
20444{
a82a04b3
CR
20445static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20446test_array [0] = 0
20447
f73dda09
JA
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext
a82a04b3
CR
20453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454 (eval $ac_compile) 2>conftest.er1
f73dda09 20455 ac_status=$?
a82a04b3
CR
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20460 (exit $ac_status); } &&
a82a04b3
CR
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
a82a04b3 20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20473 (exit $ac_status); }; }; then
20474 ac_hi=$ac_mid
20475else
20476 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
20479ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20480fi
a82a04b3 20481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20482done
a82a04b3
CR
20483case $ac_lo in
20484?*) ac_cv_sizeof_long_long=$ac_lo;;
20485'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20486See \`config.log' for more details." >&5
20487echo "$as_me: error: cannot compute sizeof (long long), 77
20488See \`config.log' for more details." >&2;}
20489 { (exit 1); exit 1; }; } ;;
20490esac
b72432fd 20491else
bb70624e 20492 if test "$cross_compiling" = yes; then
a82a04b3
CR
20493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20494See \`config.log' for more details." >&5
20495echo "$as_me: error: cannot run test program while cross compiling
20496See \`config.log' for more details." >&2;}
f73dda09 20497 { (exit 1); exit 1; }; }
bb70624e 20498else
f73dda09 20499 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20500/* confdefs.h. */
20501_ACEOF
20502cat confdefs.h >>conftest.$ac_ext
20503cat >>conftest.$ac_ext <<_ACEOF
20504/* end confdefs.h. */
f73dda09 20505$ac_includes_default
a82a04b3
CR
20506long longval () { return (long) (sizeof (long long)); }
20507unsigned long ulongval () { return (long) (sizeof (long long)); }
20508#include <stdio.h>
20509#include <stdlib.h>
f73dda09
JA
20510int
20511main ()
bb70624e 20512{
a82a04b3
CR
20513
20514 FILE *f = fopen ("conftest.val", "w");
20515 if (! f)
20516 exit (1);
20517 if (((long) (sizeof (long long))) < 0)
20518 {
20519 long i = longval ();
20520 if (i != ((long) (sizeof (long long))))
20521 exit (1);
20522 fprintf (f, "%ld\n", i);
20523 }
20524 else
20525 {
20526 unsigned long i = ulongval ();
20527 if (i != ((long) (sizeof (long long))))
20528 exit (1);
20529 fprintf (f, "%lu\n", i);
20530 }
20531 exit (ferror (f) || fclose (f) != 0);
20532
f73dda09
JA
20533 ;
20534 return 0;
bb70624e 20535}
f73dda09
JA
20536_ACEOF
20537rm -f conftest$ac_exeext
a82a04b3 20538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
20539 (eval $ac_link) 2>&5
20540 ac_status=$?
a82a04b3 20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
a82a04b3 20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20547 (exit $ac_status); }; }; then
20548 ac_cv_sizeof_long_long=`cat conftest.val`
bb70624e 20549else
f73dda09
JA
20550 echo "$as_me: program exited with status $ac_status" >&5
20551echo "$as_me: failed program was:" >&5
a82a04b3
CR
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554( exit $ac_status )
20555{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20556See \`config.log' for more details." >&5
20557echo "$as_me: error: cannot compute sizeof (long long), 77
20558See \`config.log' for more details." >&2;}
20559 { (exit 1); exit 1; }; }
bb70624e 20560fi
a82a04b3 20561rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 20562fi
bb70624e 20563fi
f73dda09
JA
20564rm -f conftest.val
20565else
20566 ac_cv_sizeof_long_long=0
20567fi
20568fi
a82a04b3 20569echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
f73dda09 20570echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
a82a04b3 20571cat >>confdefs.h <<_ACEOF
f73dda09 20572#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a82a04b3 20573_ACEOF
bb70624e 20574
a82a04b3
CR
20575
20576
20577echo "$as_me:$LINENO: checking for u_int" >&5
f73dda09
JA
20578echo $ECHO_N "checking for u_int... $ECHO_C" >&6
20579if test "${ac_cv_type_u_int+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 20581else
f73dda09 20582 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20583/* confdefs.h. */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h. */
f73dda09
JA
20588$ac_includes_default
20589int
20590main ()
20591{
20592if ((u_int *) 0)
20593 return 0;
20594if (sizeof (u_int))
20595 return 0;
20596 ;
20597 return 0;
20598}
20599_ACEOF
20600rm -f conftest.$ac_objext
a82a04b3
CR
20601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
f73dda09 20603 ac_status=$?
a82a04b3
CR
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20608 (exit $ac_status); } &&
a82a04b3
CR
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
a82a04b3 20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20621 (exit $ac_status); }; }; then
bb70624e
JA
20622 ac_cv_type_u_int=yes
20623else
f73dda09 20624 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
f73dda09 20627ac_cv_type_u_int=no
bb70624e 20628fi
a82a04b3 20629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 20630fi
a82a04b3 20631echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
f73dda09
JA
20632echo "${ECHO_T}$ac_cv_type_u_int" >&6
20633if test $ac_cv_type_u_int = yes; then
20634 :
20635else
20636
a82a04b3 20637cat >>confdefs.h <<_ACEOF
bb70624e 20638#define u_int unsigned int
a82a04b3 20639_ACEOF
bb70624e
JA
20640
20641fi
20642
a82a04b3 20643echo "$as_me:$LINENO: checking for u_long" >&5
f73dda09
JA
20644echo $ECHO_N "checking for u_long... $ECHO_C" >&6
20645if test "${ac_cv_type_u_long+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 20647else
f73dda09 20648 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20649/* confdefs.h. */
20650_ACEOF
20651cat confdefs.h >>conftest.$ac_ext
20652cat >>conftest.$ac_ext <<_ACEOF
20653/* end confdefs.h. */
f73dda09
JA
20654$ac_includes_default
20655int
20656main ()
20657{
20658if ((u_long *) 0)
20659 return 0;
20660if (sizeof (u_long))
20661 return 0;
20662 ;
20663 return 0;
20664}
20665_ACEOF
20666rm -f conftest.$ac_objext
a82a04b3
CR
20667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20668 (eval $ac_compile) 2>conftest.er1
f73dda09 20669 ac_status=$?
a82a04b3
CR
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20674 (exit $ac_status); } &&
a82a04b3
CR
20675 { ac_try='test -z "$ac_c_werror_flag"
20676 || test ! -s conftest.err'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; } &&
20682 { ac_try='test -s conftest.$ac_objext'
20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20684 (eval $ac_try) 2>&5
20685 ac_status=$?
a82a04b3 20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20687 (exit $ac_status); }; }; then
bb70624e
JA
20688 ac_cv_type_u_long=yes
20689else
f73dda09 20690 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20691sed 's/^/| /' conftest.$ac_ext >&5
20692
f73dda09 20693ac_cv_type_u_long=no
bb70624e 20694fi
a82a04b3 20695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 20696fi
a82a04b3 20697echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
f73dda09
JA
20698echo "${ECHO_T}$ac_cv_type_u_long" >&6
20699if test $ac_cv_type_u_long = yes; then
20700 :
20701else
20702
a82a04b3 20703cat >>confdefs.h <<_ACEOF
bb70624e 20704#define u_long unsigned long
a82a04b3 20705_ACEOF
bb70624e
JA
20706
20707fi
20708
a82a04b3
CR
20709
20710
bb70624e 20711if test "$ac_cv_sizeof_short" = 2; then
a82a04b3 20712 echo "$as_me:$LINENO: checking for bits16_t" >&5
f73dda09
JA
20713echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20714if test "${ac_cv_type_bits16_t+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 20716else
f73dda09 20717 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20718/* confdefs.h. */
20719_ACEOF
20720cat confdefs.h >>conftest.$ac_ext
20721cat >>conftest.$ac_ext <<_ACEOF
20722/* end confdefs.h. */
f73dda09
JA
20723$ac_includes_default
20724int
20725main ()
20726{
20727if ((bits16_t *) 0)
20728 return 0;
20729if (sizeof (bits16_t))
20730 return 0;
20731 ;
20732 return 0;
20733}
20734_ACEOF
20735rm -f conftest.$ac_objext
a82a04b3
CR
20736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20737 (eval $ac_compile) 2>conftest.er1
f73dda09 20738 ac_status=$?
a82a04b3
CR
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20743 (exit $ac_status); } &&
a82a04b3
CR
20744 { ac_try='test -z "$ac_c_werror_flag"
20745 || test ! -s conftest.err'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
a82a04b3
CR
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest.$ac_objext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20756 (exit $ac_status); }; }; then
bb70624e
JA
20757 ac_cv_type_bits16_t=yes
20758else
f73dda09 20759 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
f73dda09 20762ac_cv_type_bits16_t=no
bb70624e 20763fi
a82a04b3 20764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 20765fi
a82a04b3 20766echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
f73dda09
JA
20767echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20768if test $ac_cv_type_bits16_t = yes; then
20769 :
20770else
20771
a82a04b3 20772cat >>confdefs.h <<_ACEOF
bb70624e 20773#define bits16_t short
a82a04b3 20774_ACEOF
bb70624e
JA
20775
20776fi
20777
20778elif test "$ac_cv_sizeof_char" = 2; then
a82a04b3 20779 echo "$as_me:$LINENO: checking for bits16_t" >&5
f73dda09
JA
20780echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20781if test "${ac_cv_type_bits16_t+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 20783else
f73dda09 20784 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20785/* confdefs.h. */
20786_ACEOF
20787cat confdefs.h >>conftest.$ac_ext
20788cat >>conftest.$ac_ext <<_ACEOF
20789/* end confdefs.h. */
f73dda09
JA
20790$ac_includes_default
20791int
20792main ()
20793{
20794if ((bits16_t *) 0)
20795 return 0;
20796if (sizeof (bits16_t))
20797 return 0;
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802rm -f conftest.$ac_objext
a82a04b3
CR
20803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804 (eval $ac_compile) 2>conftest.er1
f73dda09 20805 ac_status=$?
a82a04b3
CR
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20810 (exit $ac_status); } &&
a82a04b3
CR
20811 { ac_try='test -z "$ac_c_werror_flag"
20812 || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
a82a04b3
CR
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20823 (exit $ac_status); }; }; then
bb70624e
JA
20824 ac_cv_type_bits16_t=yes
20825else
f73dda09 20826 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
f73dda09 20829ac_cv_type_bits16_t=no
bb70624e 20830fi
a82a04b3 20831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 20832fi
a82a04b3 20833echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
f73dda09
JA
20834echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20835if test $ac_cv_type_bits16_t = yes; then
20836 :
20837else
20838
a82a04b3 20839cat >>confdefs.h <<_ACEOF
bb70624e 20840#define bits16_t char
a82a04b3 20841_ACEOF
bb70624e
JA
20842
20843fi
20844
20845else
a82a04b3 20846 echo "$as_me:$LINENO: checking for bits16_t" >&5
f73dda09
JA
20847echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20848if test "${ac_cv_type_bits16_t+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 20850else
f73dda09 20851 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20852/* confdefs.h. */
20853_ACEOF
20854cat confdefs.h >>conftest.$ac_ext
20855cat >>conftest.$ac_ext <<_ACEOF
20856/* end confdefs.h. */
f73dda09
JA
20857$ac_includes_default
20858int
20859main ()
20860{
20861if ((bits16_t *) 0)
20862 return 0;
20863if (sizeof (bits16_t))
20864 return 0;
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext
a82a04b3
CR
20870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871 (eval $ac_compile) 2>conftest.er1
f73dda09 20872 ac_status=$?
a82a04b3
CR
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20877 (exit $ac_status); } &&
a82a04b3
CR
20878 { ac_try='test -z "$ac_c_werror_flag"
20879 || test ! -s conftest.err'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
a82a04b3
CR
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20890 (exit $ac_status); }; }; then
bb70624e 20891 ac_cv_type_bits16_t=yes
b72432fd 20892else
f73dda09 20893 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
f73dda09 20896ac_cv_type_bits16_t=no
b72432fd 20897fi
a82a04b3 20898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 20899fi
a82a04b3 20900echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
f73dda09
JA
20901echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20902if test $ac_cv_type_bits16_t = yes; then
20903 :
20904else
20905
a82a04b3 20906cat >>confdefs.h <<_ACEOF
bb70624e 20907#define bits16_t short
a82a04b3 20908_ACEOF
b72432fd 20909
bb70624e 20910fi
b72432fd 20911
bb70624e 20912fi
b72432fd 20913
a82a04b3 20914
bb70624e 20915if test "$ac_cv_sizeof_short" = 2; then
a82a04b3 20916 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
f73dda09
JA
20917echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20918if test "${ac_cv_type_u_bits16_t+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 20920else
f73dda09 20921 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
f73dda09
JA
20927$ac_includes_default
20928int
20929main ()
20930{
20931if ((u_bits16_t *) 0)
20932 return 0;
20933if (sizeof (u_bits16_t))
20934 return 0;
20935 ;
20936 return 0;
20937}
20938_ACEOF
20939rm -f conftest.$ac_objext
a82a04b3
CR
20940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
f73dda09 20942 ac_status=$?
a82a04b3
CR
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20947 (exit $ac_status); } &&
a82a04b3
CR
20948 { ac_try='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; } &&
20955 { ac_try='test -s conftest.$ac_objext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20957 (eval $ac_try) 2>&5
20958 ac_status=$?
a82a04b3 20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20960 (exit $ac_status); }; }; then
bb70624e 20961 ac_cv_type_u_bits16_t=yes
cce855bc 20962else
f73dda09 20963 echo "$as_me: failed program was:" >&5
a82a04b3
CR
20964sed 's/^/| /' conftest.$ac_ext >&5
20965
f73dda09 20966ac_cv_type_u_bits16_t=no
cce855bc 20967fi
a82a04b3 20968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 20969fi
a82a04b3 20970echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
f73dda09
JA
20971echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
20972if test $ac_cv_type_u_bits16_t = yes; then
20973 :
20974else
20975
a82a04b3 20976cat >>confdefs.h <<_ACEOF
bb70624e 20977#define u_bits16_t unsigned short
a82a04b3 20978_ACEOF
cce855bc
JA
20979
20980fi
20981
bb70624e 20982elif test "$ac_cv_sizeof_char" = 2; then
a82a04b3 20983 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
f73dda09
JA
20984echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20985if test "${ac_cv_type_u_bits16_t+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 20987else
f73dda09 20988 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
20989/* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
f73dda09
JA
20994$ac_includes_default
20995int
20996main ()
20997{
20998if ((u_bits16_t *) 0)
20999 return 0;
21000if (sizeof (u_bits16_t))
21001 return 0;
21002 ;
21003 return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext
a82a04b3
CR
21007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008 (eval $ac_compile) 2>conftest.er1
f73dda09 21009 ac_status=$?
a82a04b3
CR
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21014 (exit $ac_status); } &&
a82a04b3
CR
21015 { ac_try='test -z "$ac_c_werror_flag"
21016 || test ! -s conftest.err'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; } &&
21022 { ac_try='test -s conftest.$ac_objext'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
a82a04b3 21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21027 (exit $ac_status); }; }; then
bb70624e 21028 ac_cv_type_u_bits16_t=yes
cce855bc 21029else
f73dda09 21030 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
f73dda09 21033ac_cv_type_u_bits16_t=no
cce855bc 21034fi
a82a04b3 21035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21036fi
a82a04b3 21037echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
f73dda09
JA
21038echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21039if test $ac_cv_type_u_bits16_t = yes; then
21040 :
21041else
21042
a82a04b3 21043cat >>confdefs.h <<_ACEOF
bb70624e 21044#define u_bits16_t unsigned char
a82a04b3 21045_ACEOF
cce855bc
JA
21046
21047fi
21048
b72432fd 21049else
a82a04b3 21050 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
f73dda09
JA
21051echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21052if test "${ac_cv_type_u_bits16_t+set}" = set; then
21053 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 21054else
f73dda09 21055 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21056/* confdefs.h. */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h. */
f73dda09
JA
21061$ac_includes_default
21062int
21063main ()
21064{
21065if ((u_bits16_t *) 0)
21066 return 0;
21067if (sizeof (u_bits16_t))
21068 return 0;
21069 ;
21070 return 0;
21071}
21072_ACEOF
21073rm -f conftest.$ac_objext
a82a04b3
CR
21074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>conftest.er1
f73dda09 21076 ac_status=$?
a82a04b3
CR
21077 grep -v '^ *+' conftest.er1 >conftest.err
21078 rm -f conftest.er1
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21081 (exit $ac_status); } &&
a82a04b3
CR
21082 { ac_try='test -z "$ac_c_werror_flag"
21083 || test ! -s conftest.err'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
a82a04b3 21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21094 (exit $ac_status); }; }; then
bb70624e 21095 ac_cv_type_u_bits16_t=yes
b72432fd 21096else
f73dda09 21097 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
f73dda09 21100ac_cv_type_u_bits16_t=no
cce855bc 21101fi
a82a04b3 21102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21103fi
a82a04b3 21104echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
f73dda09
JA
21105echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21106if test $ac_cv_type_u_bits16_t = yes; then
21107 :
21108else
21109
a82a04b3 21110cat >>confdefs.h <<_ACEOF
bb70624e 21111#define u_bits16_t unsigned short
a82a04b3 21112_ACEOF
cce855bc 21113
b72432fd
JA
21114fi
21115
21116fi
21117
a82a04b3 21118
b72432fd 21119if test "$ac_cv_sizeof_int" = 4; then
a82a04b3 21120 echo "$as_me:$LINENO: checking for bits32_t" >&5
f73dda09
JA
21121echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21122if test "${ac_cv_type_bits32_t+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21124else
f73dda09 21125 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21126/* confdefs.h. */
21127_ACEOF
21128cat confdefs.h >>conftest.$ac_ext
21129cat >>conftest.$ac_ext <<_ACEOF
21130/* end confdefs.h. */
f73dda09
JA
21131$ac_includes_default
21132int
21133main ()
21134{
21135if ((bits32_t *) 0)
21136 return 0;
21137if (sizeof (bits32_t))
21138 return 0;
21139 ;
21140 return 0;
21141}
21142_ACEOF
21143rm -f conftest.$ac_objext
a82a04b3
CR
21144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21145 (eval $ac_compile) 2>conftest.er1
f73dda09 21146 ac_status=$?
a82a04b3
CR
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21151 (exit $ac_status); } &&
a82a04b3
CR
21152 { ac_try='test -z "$ac_c_werror_flag"
21153 || test ! -s conftest.err'
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; } &&
21159 { ac_try='test -s conftest.$ac_objext'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
a82a04b3 21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21164 (exit $ac_status); }; }; then
bb70624e 21165 ac_cv_type_bits32_t=yes
b72432fd 21166else
f73dda09 21167 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
f73dda09 21170ac_cv_type_bits32_t=no
b72432fd 21171fi
a82a04b3 21172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21173fi
a82a04b3 21174echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
f73dda09
JA
21175echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21176if test $ac_cv_type_bits32_t = yes; then
21177 :
21178else
21179
a82a04b3 21180cat >>confdefs.h <<_ACEOF
bb70624e 21181#define bits32_t int
a82a04b3 21182_ACEOF
cce855bc
JA
21183
21184fi
b72432fd
JA
21185
21186elif test "$ac_cv_sizeof_long" = 4; then
a82a04b3 21187 echo "$as_me:$LINENO: checking for bits32_t" >&5
f73dda09
JA
21188echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21189if test "${ac_cv_type_bits32_t+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21191else
f73dda09 21192 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21193/* confdefs.h. */
21194_ACEOF
21195cat confdefs.h >>conftest.$ac_ext
21196cat >>conftest.$ac_ext <<_ACEOF
21197/* end confdefs.h. */
f73dda09
JA
21198$ac_includes_default
21199int
21200main ()
21201{
21202if ((bits32_t *) 0)
21203 return 0;
21204if (sizeof (bits32_t))
21205 return 0;
21206 ;
21207 return 0;
21208}
21209_ACEOF
21210rm -f conftest.$ac_objext
a82a04b3
CR
21211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21212 (eval $ac_compile) 2>conftest.er1
f73dda09 21213 ac_status=$?
a82a04b3
CR
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21218 (exit $ac_status); } &&
a82a04b3
CR
21219 { ac_try='test -z "$ac_c_werror_flag"
21220 || test ! -s conftest.err'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest.$ac_objext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21228 (eval $ac_try) 2>&5
21229 ac_status=$?
a82a04b3 21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21231 (exit $ac_status); }; }; then
bb70624e 21232 ac_cv_type_bits32_t=yes
cce855bc 21233else
f73dda09 21234 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21235sed 's/^/| /' conftest.$ac_ext >&5
21236
f73dda09 21237ac_cv_type_bits32_t=no
cce855bc 21238fi
a82a04b3 21239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21240fi
a82a04b3 21241echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
f73dda09
JA
21242echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21243if test $ac_cv_type_bits32_t = yes; then
21244 :
21245else
21246
a82a04b3 21247cat >>confdefs.h <<_ACEOF
bb70624e 21248#define bits32_t long
a82a04b3 21249_ACEOF
cce855bc
JA
21250
21251fi
21252
cce855bc 21253else
a82a04b3 21254 echo "$as_me:$LINENO: checking for bits32_t" >&5
f73dda09
JA
21255echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21256if test "${ac_cv_type_bits32_t+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21258else
f73dda09 21259 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21260/* confdefs.h. */
21261_ACEOF
21262cat confdefs.h >>conftest.$ac_ext
21263cat >>conftest.$ac_ext <<_ACEOF
21264/* end confdefs.h. */
f73dda09
JA
21265$ac_includes_default
21266int
21267main ()
21268{
21269if ((bits32_t *) 0)
21270 return 0;
21271if (sizeof (bits32_t))
21272 return 0;
21273 ;
21274 return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext
a82a04b3
CR
21278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21279 (eval $ac_compile) 2>conftest.er1
f73dda09 21280 ac_status=$?
a82a04b3
CR
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21285 (exit $ac_status); } &&
a82a04b3
CR
21286 { ac_try='test -z "$ac_c_werror_flag"
21287 || test ! -s conftest.err'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; } &&
21293 { ac_try='test -s conftest.$ac_objext'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
a82a04b3 21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21298 (exit $ac_status); }; }; then
bb70624e 21299 ac_cv_type_bits32_t=yes
cce855bc 21300else
f73dda09 21301 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
f73dda09 21304ac_cv_type_bits32_t=no
cce855bc 21305fi
a82a04b3 21306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21307fi
a82a04b3 21308echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
f73dda09
JA
21309echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21310if test $ac_cv_type_bits32_t = yes; then
21311 :
21312else
21313
a82a04b3 21314cat >>confdefs.h <<_ACEOF
bb70624e 21315#define bits32_t int
a82a04b3 21316_ACEOF
cce855bc
JA
21317
21318fi
21319
cce855bc 21320fi
cce855bc 21321
a82a04b3 21322
bb70624e 21323if test "$ac_cv_sizeof_int" = 4; then
a82a04b3 21324 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
f73dda09
JA
21325echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21326if test "${ac_cv_type_u_bits32_t+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21328else
f73dda09 21329 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21330/* confdefs.h. */
21331_ACEOF
21332cat confdefs.h >>conftest.$ac_ext
21333cat >>conftest.$ac_ext <<_ACEOF
21334/* end confdefs.h. */
f73dda09
JA
21335$ac_includes_default
21336int
21337main ()
21338{
21339if ((u_bits32_t *) 0)
21340 return 0;
21341if (sizeof (u_bits32_t))
21342 return 0;
21343 ;
21344 return 0;
21345}
21346_ACEOF
21347rm -f conftest.$ac_objext
a82a04b3
CR
21348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21349 (eval $ac_compile) 2>conftest.er1
f73dda09 21350 ac_status=$?
a82a04b3
CR
21351 grep -v '^ *+' conftest.er1 >conftest.err
21352 rm -f conftest.er1
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21355 (exit $ac_status); } &&
a82a04b3
CR
21356 { ac_try='test -z "$ac_c_werror_flag"
21357 || test ! -s conftest.err'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest.$ac_objext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
a82a04b3 21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21368 (exit $ac_status); }; }; then
bb70624e 21369 ac_cv_type_u_bits32_t=yes
b72432fd 21370else
f73dda09 21371 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21372sed 's/^/| /' conftest.$ac_ext >&5
21373
f73dda09 21374ac_cv_type_u_bits32_t=no
b72432fd 21375fi
a82a04b3 21376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21377fi
a82a04b3 21378echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
f73dda09
JA
21379echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21380if test $ac_cv_type_u_bits32_t = yes; then
21381 :
21382else
21383
a82a04b3 21384cat >>confdefs.h <<_ACEOF
bb70624e 21385#define u_bits32_t unsigned int
a82a04b3 21386_ACEOF
cce855bc
JA
21387
21388fi
21389
bb70624e 21390elif test "$ac_cv_sizeof_long" = 4; then
a82a04b3 21391 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
f73dda09
JA
21392echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21393if test "${ac_cv_type_u_bits32_t+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21395else
f73dda09 21396 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
f73dda09
JA
21402$ac_includes_default
21403int
21404main ()
21405{
21406if ((u_bits32_t *) 0)
21407 return 0;
21408if (sizeof (u_bits32_t))
21409 return 0;
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext
a82a04b3
CR
21415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416 (eval $ac_compile) 2>conftest.er1
f73dda09 21417 ac_status=$?
a82a04b3
CR
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21422 (exit $ac_status); } &&
a82a04b3
CR
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
a82a04b3 21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21435 (exit $ac_status); }; }; then
bb70624e 21436 ac_cv_type_u_bits32_t=yes
cce855bc 21437else
f73dda09 21438 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
f73dda09 21441ac_cv_type_u_bits32_t=no
cce855bc 21442fi
a82a04b3 21443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21444fi
a82a04b3 21445echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
f73dda09
JA
21446echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21447if test $ac_cv_type_u_bits32_t = yes; then
21448 :
21449else
21450
a82a04b3 21451cat >>confdefs.h <<_ACEOF
bb70624e 21452#define u_bits32_t unsigned long
a82a04b3 21453_ACEOF
cce855bc
JA
21454
21455fi
21456
cce855bc 21457else
a82a04b3 21458 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
f73dda09
JA
21459echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21460if test "${ac_cv_type_u_bits32_t+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21462else
f73dda09 21463 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
f73dda09
JA
21469$ac_includes_default
21470int
21471main ()
21472{
21473if ((u_bits32_t *) 0)
21474 return 0;
21475if (sizeof (u_bits32_t))
21476 return 0;
21477 ;
21478 return 0;
21479}
21480_ACEOF
21481rm -f conftest.$ac_objext
a82a04b3
CR
21482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21483 (eval $ac_compile) 2>conftest.er1
f73dda09 21484 ac_status=$?
a82a04b3
CR
21485 grep -v '^ *+' conftest.er1 >conftest.err
21486 rm -f conftest.er1
21487 cat conftest.err >&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21489 (exit $ac_status); } &&
a82a04b3
CR
21490 { ac_try='test -z "$ac_c_werror_flag"
21491 || test ! -s conftest.err'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; } &&
21497 { ac_try='test -s conftest.$ac_objext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
a82a04b3 21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21502 (exit $ac_status); }; }; then
bb70624e 21503 ac_cv_type_u_bits32_t=yes
b72432fd 21504else
f73dda09 21505 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21506sed 's/^/| /' conftest.$ac_ext >&5
21507
f73dda09 21508ac_cv_type_u_bits32_t=no
b72432fd 21509fi
a82a04b3 21510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21511fi
a82a04b3 21512echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
f73dda09
JA
21513echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21514if test $ac_cv_type_u_bits32_t = yes; then
21515 :
21516else
21517
a82a04b3 21518cat >>confdefs.h <<_ACEOF
bb70624e 21519#define u_bits32_t unsigned int
a82a04b3 21520_ACEOF
b72432fd
JA
21521
21522fi
cce855bc 21523
b72432fd
JA
21524fi
21525
a82a04b3 21526
f73dda09 21527if test "$ac_cv_sizeof_char_p" = 8; then
a82a04b3 21528 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
21529echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21530if test "${ac_cv_type_bits64_t+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21532else
f73dda09 21533 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
f73dda09
JA
21539$ac_includes_default
21540int
21541main ()
21542{
21543if ((bits64_t *) 0)
21544 return 0;
21545if (sizeof (bits64_t))
21546 return 0;
21547 ;
21548 return 0;
21549}
21550_ACEOF
21551rm -f conftest.$ac_objext
a82a04b3
CR
21552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21553 (eval $ac_compile) 2>conftest.er1
f73dda09 21554 ac_status=$?
a82a04b3
CR
21555 grep -v '^ *+' conftest.er1 >conftest.err
21556 rm -f conftest.er1
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21559 (exit $ac_status); } &&
a82a04b3
CR
21560 { ac_try='test -z "$ac_c_werror_flag"
21561 || test ! -s conftest.err'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
a82a04b3
CR
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; } &&
21567 { ac_try='test -s conftest.$ac_objext'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21572 (exit $ac_status); }; }; then
b72432fd
JA
21573 ac_cv_type_bits64_t=yes
21574else
f73dda09 21575 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21576sed 's/^/| /' conftest.$ac_ext >&5
21577
f73dda09 21578ac_cv_type_bits64_t=no
b72432fd 21579fi
a82a04b3 21580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21581fi
a82a04b3 21582echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
21583echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21584if test $ac_cv_type_bits64_t = yes; then
21585 :
21586else
21587
a82a04b3 21588cat >>confdefs.h <<_ACEOF
b72432fd 21589#define bits64_t char *
a82a04b3 21590_ACEOF
b72432fd
JA
21591
21592fi
21593
21594elif test "$ac_cv_sizeof_double" = 8; then
a82a04b3 21595 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
21596echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21597if test "${ac_cv_type_bits64_t+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 21599else
f73dda09 21600 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21601/* confdefs.h. */
21602_ACEOF
21603cat confdefs.h >>conftest.$ac_ext
21604cat >>conftest.$ac_ext <<_ACEOF
21605/* end confdefs.h. */
f73dda09
JA
21606$ac_includes_default
21607int
21608main ()
21609{
21610if ((bits64_t *) 0)
21611 return 0;
21612if (sizeof (bits64_t))
21613 return 0;
21614 ;
21615 return 0;
21616}
21617_ACEOF
21618rm -f conftest.$ac_objext
a82a04b3
CR
21619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21620 (eval $ac_compile) 2>conftest.er1
f73dda09 21621 ac_status=$?
a82a04b3
CR
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21626 (exit $ac_status); } &&
a82a04b3
CR
21627 { ac_try='test -z "$ac_c_werror_flag"
21628 || test ! -s conftest.err'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
a82a04b3
CR
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest.$ac_objext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21639 (exit $ac_status); }; }; then
b72432fd 21640 ac_cv_type_bits64_t=yes
cce855bc 21641else
f73dda09 21642 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
f73dda09 21645ac_cv_type_bits64_t=no
cce855bc 21646fi
a82a04b3 21647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21648fi
a82a04b3 21649echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
21650echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21651if test $ac_cv_type_bits64_t = yes; then
21652 :
21653else
21654
a82a04b3 21655cat >>confdefs.h <<_ACEOF
b72432fd 21656#define bits64_t double
a82a04b3 21657_ACEOF
cce855bc
JA
21658
21659fi
21660
f73dda09 21661elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
a82a04b3 21662 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
21663echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21664if test "${ac_cv_type_bits64_t+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 21666else
f73dda09 21667 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h. */
f73dda09
JA
21673$ac_includes_default
21674int
21675main ()
21676{
21677if ((bits64_t *) 0)
21678 return 0;
21679if (sizeof (bits64_t))
21680 return 0;
21681 ;
21682 return 0;
21683}
21684_ACEOF
21685rm -f conftest.$ac_objext
a82a04b3
CR
21686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21687 (eval $ac_compile) 2>conftest.er1
f73dda09 21688 ac_status=$?
a82a04b3
CR
21689 grep -v '^ *+' conftest.er1 >conftest.err
21690 rm -f conftest.er1
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21693 (exit $ac_status); } &&
a82a04b3
CR
21694 { ac_try='test -z "$ac_c_werror_flag"
21695 || test ! -s conftest.err'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21697 (eval $ac_try) 2>&5
21698 ac_status=$?
a82a04b3
CR
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; } &&
21701 { ac_try='test -s conftest.$ac_objext'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21706 (exit $ac_status); }; }; then
b72432fd
JA
21707 ac_cv_type_bits64_t=yes
21708else
f73dda09 21709 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
f73dda09
JA
21712ac_cv_type_bits64_t=no
21713fi
a82a04b3 21714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21715fi
a82a04b3 21716echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
21717echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21718if test $ac_cv_type_bits64_t = yes; then
21719 :
21720else
21721
a82a04b3 21722cat >>confdefs.h <<_ACEOF
f73dda09 21723#define bits64_t long long
a82a04b3 21724_ACEOF
f73dda09 21725
cce855bc 21726fi
b72432fd 21727
f73dda09 21728elif test "$ac_cv_sizeof_long" = 8; then
a82a04b3 21729 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
21730echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21731if test "${ac_cv_type_bits64_t+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733else
21734 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21735/* confdefs.h. */
21736_ACEOF
21737cat confdefs.h >>conftest.$ac_ext
21738cat >>conftest.$ac_ext <<_ACEOF
21739/* end confdefs.h. */
f73dda09
JA
21740$ac_includes_default
21741int
21742main ()
21743{
21744if ((bits64_t *) 0)
21745 return 0;
21746if (sizeof (bits64_t))
21747 return 0;
21748 ;
21749 return 0;
21750}
21751_ACEOF
21752rm -f conftest.$ac_objext
a82a04b3
CR
21753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21754 (eval $ac_compile) 2>conftest.er1
f73dda09 21755 ac_status=$?
a82a04b3
CR
21756 grep -v '^ *+' conftest.er1 >conftest.err
21757 rm -f conftest.er1
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21760 (exit $ac_status); } &&
a82a04b3
CR
21761 { ac_try='test -z "$ac_c_werror_flag"
21762 || test ! -s conftest.err'
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21764 (eval $ac_try) 2>&5
21765 ac_status=$?
a82a04b3
CR
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; } &&
21768 { ac_try='test -s conftest.$ac_objext'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21771 ac_status=$?
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21773 (exit $ac_status); }; }; then
21774 ac_cv_type_bits64_t=yes
21775else
21776 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21777sed 's/^/| /' conftest.$ac_ext >&5
21778
f73dda09
JA
21779ac_cv_type_bits64_t=no
21780fi
a82a04b3 21781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21782fi
a82a04b3 21783echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
21784echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21785if test $ac_cv_type_bits64_t = yes; then
21786 :
21787else
21788
a82a04b3 21789cat >>confdefs.h <<_ACEOF
b72432fd 21790#define bits64_t long
a82a04b3 21791_ACEOF
cce855bc 21792
b72432fd
JA
21793fi
21794
cce855bc 21795else
a82a04b3 21796 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
21797echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21798if test "${ac_cv_type_bits64_t+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 21800else
f73dda09 21801 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21802/* confdefs.h. */
21803_ACEOF
21804cat confdefs.h >>conftest.$ac_ext
21805cat >>conftest.$ac_ext <<_ACEOF
21806/* end confdefs.h. */
f73dda09
JA
21807$ac_includes_default
21808int
21809main ()
21810{
21811if ((bits64_t *) 0)
21812 return 0;
21813if (sizeof (bits64_t))
21814 return 0;
21815 ;
21816 return 0;
21817}
21818_ACEOF
21819rm -f conftest.$ac_objext
a82a04b3
CR
21820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21821 (eval $ac_compile) 2>conftest.er1
f73dda09 21822 ac_status=$?
a82a04b3
CR
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21827 (exit $ac_status); } &&
a82a04b3
CR
21828 { ac_try='test -z "$ac_c_werror_flag"
21829 || test ! -s conftest.err'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
a82a04b3
CR
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; } &&
21835 { ac_try='test -s conftest.$ac_objext'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21840 (exit $ac_status); }; }; then
b72432fd
JA
21841 ac_cv_type_bits64_t=yes
21842else
f73dda09 21843 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21844sed 's/^/| /' conftest.$ac_ext >&5
21845
f73dda09 21846ac_cv_type_bits64_t=no
b72432fd 21847fi
a82a04b3 21848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21849fi
a82a04b3 21850echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
21851echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21852if test $ac_cv_type_bits64_t = yes; then
21853 :
21854else
21855
a82a04b3 21856cat >>confdefs.h <<_ACEOF
b72432fd 21857#define bits64_t double
a82a04b3 21858_ACEOF
cce855bc
JA
21859
21860fi
21861
21862fi
21863
a82a04b3
CR
21864
21865
bb70624e 21866if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
a82a04b3 21867 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
21868echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21869if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21870 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 21871else
f73dda09 21872 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21873/* confdefs.h. */
21874_ACEOF
21875cat confdefs.h >>conftest.$ac_ext
21876cat >>conftest.$ac_ext <<_ACEOF
21877/* end confdefs.h. */
f73dda09
JA
21878$ac_includes_default
21879int
21880main ()
21881{
21882if ((ptrdiff_t *) 0)
21883 return 0;
21884if (sizeof (ptrdiff_t))
21885 return 0;
21886 ;
21887 return 0;
21888}
21889_ACEOF
21890rm -f conftest.$ac_objext
a82a04b3
CR
21891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21892 (eval $ac_compile) 2>conftest.er1
f73dda09 21893 ac_status=$?
a82a04b3
CR
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21898 (exit $ac_status); } &&
a82a04b3
CR
21899 { ac_try='test -z "$ac_c_werror_flag"
21900 || test ! -s conftest.err'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest.$ac_objext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
a82a04b3 21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21911 (exit $ac_status); }; }; then
bb70624e
JA
21912 ac_cv_type_ptrdiff_t=yes
21913else
f73dda09 21914 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21915sed 's/^/| /' conftest.$ac_ext >&5
21916
f73dda09 21917ac_cv_type_ptrdiff_t=no
bb70624e 21918fi
a82a04b3 21919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 21920fi
a82a04b3 21921echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
21922echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21923if test $ac_cv_type_ptrdiff_t = yes; then
21924 :
21925else
21926
a82a04b3 21927cat >>confdefs.h <<_ACEOF
bb70624e 21928#define ptrdiff_t int
a82a04b3 21929_ACEOF
bb70624e
JA
21930
21931fi
21932
21933elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
a82a04b3 21934 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
21935echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21936if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 21938else
f73dda09 21939 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
21940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
f73dda09
JA
21945$ac_includes_default
21946int
21947main ()
21948{
21949if ((ptrdiff_t *) 0)
21950 return 0;
21951if (sizeof (ptrdiff_t))
21952 return 0;
21953 ;
21954 return 0;
21955}
21956_ACEOF
21957rm -f conftest.$ac_objext
a82a04b3
CR
21958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959 (eval $ac_compile) 2>conftest.er1
f73dda09 21960 ac_status=$?
a82a04b3
CR
21961 grep -v '^ *+' conftest.er1 >conftest.err
21962 rm -f conftest.er1
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21965 (exit $ac_status); } &&
a82a04b3
CR
21966 { ac_try='test -z "$ac_c_werror_flag"
21967 || test ! -s conftest.err'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
a82a04b3 21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21978 (exit $ac_status); }; }; then
bb70624e
JA
21979 ac_cv_type_ptrdiff_t=yes
21980else
f73dda09 21981 echo "$as_me: failed program was:" >&5
a82a04b3
CR
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
f73dda09 21984ac_cv_type_ptrdiff_t=no
bb70624e 21985fi
a82a04b3 21986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 21987fi
a82a04b3 21988echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
21989echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21990if test $ac_cv_type_ptrdiff_t = yes; then
21991 :
21992else
21993
a82a04b3 21994cat >>confdefs.h <<_ACEOF
bb70624e 21995#define ptrdiff_t long
a82a04b3 21996_ACEOF
bb70624e
JA
21997
21998fi
21999
f73dda09 22000elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
a82a04b3 22001 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
22002echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22003if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 22005else
f73dda09 22006 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
f73dda09
JA
22012$ac_includes_default
22013int
22014main ()
22015{
22016if ((ptrdiff_t *) 0)
22017 return 0;
22018if (sizeof (ptrdiff_t))
22019 return 0;
22020 ;
22021 return 0;
22022}
22023_ACEOF
22024rm -f conftest.$ac_objext
a82a04b3
CR
22025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22026 (eval $ac_compile) 2>conftest.er1
f73dda09 22027 ac_status=$?
a82a04b3
CR
22028 grep -v '^ *+' conftest.er1 >conftest.err
22029 rm -f conftest.er1
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22032 (exit $ac_status); } &&
a82a04b3
CR
22033 { ac_try='test -z "$ac_c_werror_flag"
22034 || test ! -s conftest.err'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; } &&
22040 { ac_try='test -s conftest.$ac_objext'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22042 (eval $ac_try) 2>&5
22043 ac_status=$?
a82a04b3 22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22045 (exit $ac_status); }; }; then
bb70624e
JA
22046 ac_cv_type_ptrdiff_t=yes
22047else
f73dda09 22048 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22049sed 's/^/| /' conftest.$ac_ext >&5
22050
f73dda09
JA
22051ac_cv_type_ptrdiff_t=no
22052fi
a82a04b3 22053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22054fi
a82a04b3 22055echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
22056echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22057if test $ac_cv_type_ptrdiff_t = yes; then
22058 :
22059else
22060
a82a04b3 22061cat >>confdefs.h <<_ACEOF
f73dda09 22062#define ptrdiff_t long long
a82a04b3 22063_ACEOF
f73dda09 22064
bb70624e 22065fi
bb70624e 22066
f73dda09 22067else
a82a04b3 22068 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
22069echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22070if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22071 echo $ECHO_N "(cached) $ECHO_C" >&6
22072else
22073 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22074/* confdefs.h. */
22075_ACEOF
22076cat confdefs.h >>conftest.$ac_ext
22077cat >>conftest.$ac_ext <<_ACEOF
22078/* end confdefs.h. */
f73dda09
JA
22079$ac_includes_default
22080int
22081main ()
22082{
22083if ((ptrdiff_t *) 0)
22084 return 0;
22085if (sizeof (ptrdiff_t))
22086 return 0;
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091rm -f conftest.$ac_objext
a82a04b3
CR
22092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22093 (eval $ac_compile) 2>conftest.er1
f73dda09 22094 ac_status=$?
a82a04b3
CR
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22099 (exit $ac_status); } &&
a82a04b3
CR
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
a82a04b3 22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22112 (exit $ac_status); }; }; then
22113 ac_cv_type_ptrdiff_t=yes
22114else
22115 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22116sed 's/^/| /' conftest.$ac_ext >&5
22117
f73dda09 22118ac_cv_type_ptrdiff_t=no
bb70624e 22119fi
a82a04b3 22120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22121fi
a82a04b3 22122echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
22123echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22124if test $ac_cv_type_ptrdiff_t = yes; then
22125 :
22126else
22127
a82a04b3 22128cat >>confdefs.h <<_ACEOF
bb70624e 22129#define ptrdiff_t int
a82a04b3 22130_ACEOF
bb70624e
JA
22131
22132fi
22133
22134fi
22135
a82a04b3
CR
22136
22137echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
f73dda09
JA
22138echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22139if test "${ac_cv_header_stat_broken+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 22141else
f73dda09 22142 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22143/* confdefs.h. */
22144_ACEOF
22145cat confdefs.h >>conftest.$ac_ext
22146cat >>conftest.$ac_ext <<_ACEOF
22147/* end confdefs.h. */
ccc6cda3
JA
22148#include <sys/types.h>
22149#include <sys/stat.h>
22150
22151#if defined(S_ISBLK) && defined(S_IFDIR)
22152# if S_ISBLK (S_IFDIR)
22153You lose.
22154# endif
22155#endif
22156
22157#if defined(S_ISBLK) && defined(S_IFCHR)
22158# if S_ISBLK (S_IFCHR)
22159You lose.
22160# endif
22161#endif
22162
22163#if defined(S_ISLNK) && defined(S_IFREG)
22164# if S_ISLNK (S_IFREG)
22165You lose.
22166# endif
22167#endif
22168
22169#if defined(S_ISSOCK) && defined(S_IFREG)
22170# if S_ISSOCK (S_IFREG)
22171You lose.
f73dda09
JA
22172# endif
22173#endif
22174
22175_ACEOF
22176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 22177 $EGREP "You lose" >/dev/null 2>&1; then
f73dda09 22178 ac_cv_header_stat_broken=yes
ccc6cda3 22179else
f73dda09 22180 ac_cv_header_stat_broken=no
ccc6cda3
JA
22181fi
22182rm -f conftest*
ccc6cda3
JA
22183
22184fi
a82a04b3 22185echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
f73dda09
JA
22186echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22187if test $ac_cv_header_stat_broken = yes; then
ccc6cda3 22188
a82a04b3 22189cat >>confdefs.h <<\_ACEOF
f73dda09 22190#define STAT_MACROS_BROKEN 1
a82a04b3 22191_ACEOF
ccc6cda3
JA
22192
22193fi
22194
a82a04b3
CR
22195
22196echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
f73dda09
JA
22197echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
22198if test "${ac_cv_sys_interpreter+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22200else
22201 echo '#! /bin/cat
22202exit 69
f73dda09 22203' >conftest
ccc6cda3
JA
22204chmod u+x conftest
22205(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
22206if test $? -ne 69; then
22207 ac_cv_sys_interpreter=yes
22208else
22209 ac_cv_sys_interpreter=no
22210fi
22211rm -f conftest
22212fi
a82a04b3 22213echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
f73dda09
JA
22214echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22215interpval=$ac_cv_sys_interpreter
ccc6cda3
JA
22216
22217if test $ac_cv_sys_interpreter = yes; then
a82a04b3 22218cat >>confdefs.h <<\_ACEOF
ccc6cda3 22219#define HAVE_HASH_BANG_EXEC 1
a82a04b3 22220_ACEOF
ccc6cda3 22221
ccc6cda3
JA
22222fi
22223
ccc6cda3 22224if test "$ac_cv_func_lstat" = "no"; then
a82a04b3 22225echo "$as_me:$LINENO: checking for lstat" >&5
f73dda09
JA
22226echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22227if test "${bash_cv_func_lstat+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 22229else
f73dda09 22230 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22231/* confdefs.h. */
22232_ACEOF
22233cat confdefs.h >>conftest.$ac_ext
22234cat >>conftest.$ac_ext <<_ACEOF
22235/* end confdefs.h. */
ccc6cda3
JA
22236
22237#include <sys/types.h>
22238#include <sys/stat.h>
22239
f73dda09
JA
22240int
22241main ()
22242{
22243 lstat(".",(struct stat *)0);
22244 ;
22245 return 0;
22246}
22247_ACEOF
22248rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
22249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22250 (eval $ac_link) 2>conftest.er1
f73dda09 22251 ac_status=$?
a82a04b3
CR
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22256 (exit $ac_status); } &&
a82a04b3
CR
22257 { ac_try='test -z "$ac_c_werror_flag"
22258 || test ! -s conftest.err'
22259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22261 ac_status=$?
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); }; } &&
22264 { ac_try='test -s conftest$ac_exeext'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22266 (eval $ac_try) 2>&5
22267 ac_status=$?
a82a04b3 22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22269 (exit $ac_status); }; }; then
ccc6cda3
JA
22270 bash_cv_func_lstat=yes
22271else
f73dda09 22272 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22273sed 's/^/| /' conftest.$ac_ext >&5
22274
f73dda09 22275bash_cv_func_lstat=no
ccc6cda3 22276fi
a82a04b3
CR
22277rm -f conftest.err conftest.$ac_objext \
22278 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 22279fi
a82a04b3 22280echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
f73dda09 22281echo "${ECHO_T}$bash_cv_func_lstat" >&6
ccc6cda3 22282if test $bash_cv_func_lstat = yes; then
a82a04b3 22283 cat >>confdefs.h <<\_ACEOF
ccc6cda3 22284#define HAVE_LSTAT 1
a82a04b3 22285_ACEOF
ccc6cda3
JA
22286
22287fi
22288
22289fi
22290
a82a04b3
CR
22291
22292echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
d3a24ed2
CR
22293echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22294if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22296else
22297 if test "$cross_compiling" = yes; then
a82a04b3 22298 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
d3a24ed2
CR
22299echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22300 bash_cv_func_ctype_nonascii=no
22301
22302else
22303 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22304/* confdefs.h. */
22305_ACEOF
22306cat confdefs.h >>conftest.$ac_ext
22307cat >>conftest.$ac_ext <<_ACEOF
22308/* end confdefs.h. */
d3a24ed2
CR
22309
22310#ifdef HAVE_LOCALE_H
22311#include <locale.h>
22312#endif
22313#include <stdio.h>
22314#include <ctype.h>
22315
22316main(c, v)
22317int c;
22318char *v[];
22319{
22320 char *deflocale;
22321 unsigned char x;
22322 int r1, r2;
22323
22324#ifdef HAVE_SETLOCALE
22325 /* We take a shot here. If that locale is not known, try the
22326 system default. We try this one because '\342' (226) is
22327 known to be a printable character in that locale. */
22328 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22329 if (deflocale == 0)
22330 deflocale = setlocale(LC_ALL, "");
22331#endif
22332
22333 x = '\342';
22334 r1 = isprint(x);
22335 x -= 128;
22336 r2 = isprint(x);
22337 exit (r1 == 0 || r2 == 0);
22338}
22339
22340_ACEOF
22341rm -f conftest$ac_exeext
a82a04b3 22342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d3a24ed2
CR
22343 (eval $ac_link) 2>&5
22344 ac_status=$?
a82a04b3 22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 22346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
a82a04b3 22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
22351 (exit $ac_status); }; }; then
22352 bash_cv_func_ctype_nonascii=yes
22353else
22354 echo "$as_me: program exited with status $ac_status" >&5
22355echo "$as_me: failed program was:" >&5
a82a04b3
CR
22356sed 's/^/| /' conftest.$ac_ext >&5
22357
22358( exit $ac_status )
d3a24ed2
CR
22359bash_cv_func_ctype_nonascii=no
22360fi
a82a04b3 22361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d3a24ed2
CR
22362fi
22363fi
22364
a82a04b3 22365echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
d3a24ed2
CR
22366echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22367if test $bash_cv_func_ctype_nonascii = yes; then
a82a04b3 22368cat >>confdefs.h <<\_ACEOF
d3a24ed2 22369#define CTYPE_NON_ASCII 1
a82a04b3 22370_ACEOF
d3a24ed2
CR
22371
22372fi
22373
a82a04b3 22374echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
f73dda09
JA
22375echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22376if test "${bash_cv_dup2_broken+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22378else
22379 if test "$cross_compiling" = yes; then
a82a04b3 22380 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
f73dda09 22381echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
cce855bc 22382 bash_cv_dup2_broken=no
ccc6cda3 22383else
f73dda09 22384 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22385/* confdefs.h. */
22386_ACEOF
22387cat confdefs.h >>conftest.$ac_ext
22388cat >>conftest.$ac_ext <<_ACEOF
22389/* end confdefs.h. */
ccc6cda3
JA
22390
22391#include <sys/types.h>
22392#include <fcntl.h>
22393main()
22394{
22395 int fd1, fd2, fl;
22396 fd1 = open("/dev/null", 2);
22397 if (fcntl(fd1, 2, 1) < 0)
22398 exit(1);
22399 fd2 = dup2(fd1, 1);
22400 if (fd2 < 0)
22401 exit(2);
22402 fl = fcntl(fd2, 1, 0);
22403 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22404 exit(fl != 1);
22405}
22406
f73dda09
JA
22407_ACEOF
22408rm -f conftest$ac_exeext
a82a04b3 22409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
22410 (eval $ac_link) 2>&5
22411 ac_status=$?
a82a04b3 22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
a82a04b3 22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22418 (exit $ac_status); }; }; then
ccc6cda3
JA
22419 bash_cv_dup2_broken=yes
22420else
f73dda09
JA
22421 echo "$as_me: program exited with status $ac_status" >&5
22422echo "$as_me: failed program was:" >&5
a82a04b3
CR
22423sed 's/^/| /' conftest.$ac_ext >&5
22424
22425( exit $ac_status )
f73dda09 22426bash_cv_dup2_broken=no
ccc6cda3 22427fi
a82a04b3 22428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
22429fi
22430
ccc6cda3
JA
22431fi
22432
a82a04b3 22433echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
f73dda09 22434echo "${ECHO_T}$bash_cv_dup2_broken" >&6
ccc6cda3 22435if test $bash_cv_dup2_broken = yes; then
a82a04b3 22436cat >>confdefs.h <<\_ACEOF
ccc6cda3 22437#define DUP2_BROKEN 1
a82a04b3 22438_ACEOF
ccc6cda3
JA
22439
22440fi
22441
a82a04b3
CR
22442
22443echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
f73dda09
JA
22444echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
22445if test "${bash_cv_pgrp_pipe+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22447else
22448 if test "$cross_compiling" = yes; then
a82a04b3 22449 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
f73dda09 22450echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
cce855bc 22451 bash_cv_pgrp_pipe=no
ccc6cda3 22452else
f73dda09 22453 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22454/* confdefs.h. */
22455_ACEOF
22456cat confdefs.h >>conftest.$ac_ext
22457cat >>conftest.$ac_ext <<_ACEOF
22458/* end confdefs.h. */
ccc6cda3
JA
22459
22460#ifdef HAVE_UNISTD_H
22461# include <unistd.h>
22462#endif
22463main()
22464{
22465# ifdef GETPGRP_VOID
22466# define getpgID() getpgrp()
22467# else
22468# define getpgID() getpgrp(0)
22469# define setpgid(x,y) setpgrp(x,y)
22470# endif
22471 int pid1, pid2, fds[2];
22472 int status;
22473 char ok;
22474
22475 switch (pid1 = fork()) {
22476 case -1:
22477 exit(1);
22478 case 0:
22479 setpgid(0, getpid());
22480 exit(0);
22481 }
22482 setpgid(pid1, pid1);
22483
22484 sleep(2); /* let first child die */
22485
22486 if (pipe(fds) < 0)
22487 exit(2);
22488
22489 switch (pid2 = fork()) {
22490 case -1:
22491 exit(3);
22492 case 0:
22493 setpgid(0, pid1);
22494 ok = getpgID() == pid1;
22495 write(fds[1], &ok, 1);
22496 exit(0);
22497 }
22498 setpgid(pid2, pid1);
22499
22500 close(fds[1]);
22501 if (read(fds[0], &ok, 1) != 1)
22502 exit(4);
22503 wait(&status);
22504 wait(&status);
22505 exit(ok ? 0 : 5);
22506}
22507
f73dda09
JA
22508_ACEOF
22509rm -f conftest$ac_exeext
a82a04b3 22510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
22511 (eval $ac_link) 2>&5
22512 ac_status=$?
a82a04b3 22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22516 (eval $ac_try) 2>&5
22517 ac_status=$?
a82a04b3 22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22519 (exit $ac_status); }; }; then
ccc6cda3
JA
22520 bash_cv_pgrp_pipe=no
22521else
f73dda09
JA
22522 echo "$as_me: program exited with status $ac_status" >&5
22523echo "$as_me: failed program was:" >&5
a82a04b3
CR
22524sed 's/^/| /' conftest.$ac_ext >&5
22525
22526( exit $ac_status )
f73dda09 22527bash_cv_pgrp_pipe=yes
ccc6cda3 22528fi
a82a04b3 22529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
22530fi
22531
ccc6cda3
JA
22532fi
22533
a82a04b3 22534echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
f73dda09 22535echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
ccc6cda3 22536if test $bash_cv_pgrp_pipe = yes; then
a82a04b3 22537cat >>confdefs.h <<\_ACEOF
ccc6cda3 22538#define PGRP_PIPE 1
a82a04b3 22539_ACEOF
ccc6cda3
JA
22540
22541fi
22542
a82a04b3
CR
22543
22544echo "$as_me:$LINENO: checking for type of signal functions" >&5
f73dda09
JA
22545echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
22546if test "${bash_cv_signal_vintage+set}" = set; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 22548else
f73dda09
JA
22549
22550 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22551/* confdefs.h. */
22552_ACEOF
22553cat confdefs.h >>conftest.$ac_ext
22554cat >>conftest.$ac_ext <<_ACEOF
22555/* end confdefs.h. */
d166f048 22556#include <signal.h>
f73dda09
JA
22557int
22558main ()
22559{
d166f048
JA
22560
22561 sigset_t ss;
22562 struct sigaction sa;
22563 sigemptyset(&ss); sigsuspend(&ss);
22564 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22565 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
f73dda09
JA
22566
22567 ;
22568 return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
22572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22573 (eval $ac_link) 2>conftest.er1
f73dda09 22574 ac_status=$?
a82a04b3
CR
22575 grep -v '^ *+' conftest.er1 >conftest.err
22576 rm -f conftest.er1
22577 cat conftest.err >&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22579 (exit $ac_status); } &&
a82a04b3
CR
22580 { ac_try='test -z "$ac_c_werror_flag"
22581 || test ! -s conftest.err'
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22584 ac_status=$?
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; } &&
22587 { ac_try='test -s conftest$ac_exeext'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
a82a04b3 22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22592 (exit $ac_status); }; }; then
d166f048 22593 bash_cv_signal_vintage=posix
ccc6cda3 22594else
f73dda09 22595 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22596sed 's/^/| /' conftest.$ac_ext >&5
22597
f73dda09
JA
22598
22599 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
d166f048 22605#include <signal.h>
f73dda09
JA
22606int
22607main ()
22608{
d166f048
JA
22609
22610 int mask = sigmask(SIGINT);
22611 sigsetmask(mask); sigblock(mask); sigpause(mask);
f73dda09
JA
22612
22613 ;
22614 return 0;
22615}
22616_ACEOF
22617rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
22618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22619 (eval $ac_link) 2>conftest.er1
f73dda09 22620 ac_status=$?
a82a04b3
CR
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22625 (exit $ac_status); } &&
a82a04b3
CR
22626 { ac_try='test -z "$ac_c_werror_flag"
22627 || test ! -s conftest.err'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try='test -s conftest$ac_exeext'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
a82a04b3 22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22638 (exit $ac_status); }; }; then
d166f048
JA
22639 bash_cv_signal_vintage=4.2bsd
22640else
f73dda09 22641 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
f73dda09
JA
22644
22645 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22646/* confdefs.h. */
22647_ACEOF
22648cat confdefs.h >>conftest.$ac_ext
22649cat >>conftest.$ac_ext <<_ACEOF
22650/* end confdefs.h. */
d166f048
JA
22651
22652 #include <signal.h>
22653 RETSIGTYPE foo() { }
f73dda09
JA
22654int
22655main ()
22656{
d166f048
JA
22657
22658 int mask = sigmask(SIGINT);
22659 sigset(SIGINT, foo); sigrelse(SIGINT);
22660 sighold(SIGINT); sigpause(SIGINT);
f73dda09
JA
22661
22662 ;
22663 return 0;
22664}
22665_ACEOF
22666rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
22667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668 (eval $ac_link) 2>conftest.er1
f73dda09 22669 ac_status=$?
a82a04b3
CR
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22674 (exit $ac_status); } &&
a82a04b3
CR
22675 { ac_try='test -z "$ac_c_werror_flag"
22676 || test ! -s conftest.err'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; } &&
22682 { ac_try='test -s conftest$ac_exeext'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
a82a04b3 22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22687 (exit $ac_status); }; }; then
d166f048
JA
22688 bash_cv_signal_vintage=svr3
22689else
f73dda09 22690 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22691sed 's/^/| /' conftest.$ac_ext >&5
22692
f73dda09
JA
22693bash_cv_signal_vintage=v7
22694
d166f048 22695fi
a82a04b3
CR
22696rm -f conftest.err conftest.$ac_objext \
22697 conftest$ac_exeext conftest.$ac_ext
f73dda09 22698
d166f048 22699fi
a82a04b3
CR
22700rm -f conftest.err conftest.$ac_objext \
22701 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
22702
22703fi
a82a04b3
CR
22704rm -f conftest.err conftest.$ac_objext \
22705 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
22706
22707fi
22708
a82a04b3 22709echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
f73dda09 22710echo "${ECHO_T}$bash_cv_signal_vintage" >&6
d166f048 22711if test "$bash_cv_signal_vintage" = posix; then
a82a04b3 22712cat >>confdefs.h <<\_ACEOF
d166f048 22713#define HAVE_POSIX_SIGNALS 1
a82a04b3 22714_ACEOF
d166f048
JA
22715
22716elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
a82a04b3 22717cat >>confdefs.h <<\_ACEOF
d166f048 22718#define HAVE_BSD_SIGNALS 1
a82a04b3 22719_ACEOF
d166f048
JA
22720
22721elif test "$bash_cv_signal_vintage" = svr3; then
a82a04b3 22722cat >>confdefs.h <<\_ACEOF
d166f048 22723#define HAVE_USG_SIGHOLD 1
a82a04b3 22724_ACEOF
d166f048
JA
22725
22726fi
22727
a82a04b3
CR
22728
22729echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
f73dda09
JA
22730echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
22731if test "${bash_cv_sys_errlist+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 22733else
f73dda09 22734 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22735/* confdefs.h. */
22736_ACEOF
22737cat confdefs.h >>conftest.$ac_ext
22738cat >>conftest.$ac_ext <<_ACEOF
22739/* end confdefs.h. */
f73dda09
JA
22740#include <errno.h>
22741int
cce855bc
JA
22742main ()
22743{
d166f048
JA
22744extern char *sys_errlist[];
22745 extern int sys_nerr;
22746 char *msg = sys_errlist[sys_nerr - 1];
f73dda09
JA
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
22752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22753 (eval $ac_link) 2>conftest.er1
f73dda09 22754 ac_status=$?
a82a04b3
CR
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22759 (exit $ac_status); } &&
a82a04b3
CR
22760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
a82a04b3
CR
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest$ac_exeext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22772 (exit $ac_status); }; }; then
d166f048
JA
22773 bash_cv_sys_errlist=yes
22774else
f73dda09 22775 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22776sed 's/^/| /' conftest.$ac_ext >&5
22777
f73dda09 22778bash_cv_sys_errlist=no
d166f048 22779fi
a82a04b3
CR
22780rm -f conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
d166f048 22782fi
a82a04b3 22783echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
f73dda09 22784echo "${ECHO_T}$bash_cv_sys_errlist" >&6
d166f048 22785if test $bash_cv_sys_errlist = yes; then
a82a04b3 22786cat >>confdefs.h <<\_ACEOF
d166f048 22787#define HAVE_SYS_ERRLIST 1
a82a04b3 22788_ACEOF
d166f048
JA
22789
22790fi
22791
a82a04b3
CR
22792
22793echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
f73dda09
JA
22794echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
22795if test "${bash_cv_sys_siglist+set}" = set; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22797else
22798 if test "$cross_compiling" = yes; then
a82a04b3 22799 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
f73dda09 22800echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 22801 bash_cv_sys_siglist=no
ccc6cda3 22802else
f73dda09 22803 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22804/* confdefs.h. */
22805_ACEOF
22806cat confdefs.h >>conftest.$ac_ext
22807cat >>conftest.$ac_ext <<_ACEOF
22808/* end confdefs.h. */
ccc6cda3
JA
22809
22810#include <sys/types.h>
22811#include <signal.h>
22812#ifdef HAVE_UNISTD_H
22813#include <unistd.h>
22814#endif
22815#ifndef SYS_SIGLIST_DECLARED
22816extern char *sys_siglist[];
22817#endif
22818main()
22819{
22820char *msg = sys_siglist[2];
22821exit(msg == 0);
22822}
f73dda09
JA
22823_ACEOF
22824rm -f conftest$ac_exeext
a82a04b3 22825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
22826 (eval $ac_link) 2>&5
22827 ac_status=$?
a82a04b3 22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 22830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
a82a04b3 22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22834 (exit $ac_status); }; }; then
ccc6cda3
JA
22835 bash_cv_sys_siglist=yes
22836else
f73dda09
JA
22837 echo "$as_me: program exited with status $ac_status" >&5
22838echo "$as_me: failed program was:" >&5
a82a04b3
CR
22839sed 's/^/| /' conftest.$ac_ext >&5
22840
22841( exit $ac_status )
f73dda09 22842bash_cv_sys_siglist=no
ccc6cda3 22843fi
a82a04b3 22844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 22845fi
ccc6cda3 22846fi
cce855bc 22847
a82a04b3 22848echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
f73dda09 22849echo "${ECHO_T}$bash_cv_sys_siglist" >&6
ccc6cda3 22850if test $bash_cv_sys_siglist = yes; then
a82a04b3 22851cat >>confdefs.h <<\_ACEOF
ccc6cda3 22852#define HAVE_SYS_SIGLIST 1
a82a04b3 22853_ACEOF
ccc6cda3
JA
22854
22855fi
22856
a82a04b3 22857echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
f73dda09
JA
22858echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
22859if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
e8ce775d 22861else
f73dda09 22862 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
e8ce775d
JA
22868
22869#include <sys/types.h>
22870#include <signal.h>
22871#ifdef HAVE_UNISTD_H
22872#include <unistd.h>
22873#endif
f73dda09
JA
22874int
22875main ()
22876{
22877 char *msg = _sys_siglist[2];
22878 ;
22879 return 0;
22880}
22881_ACEOF
22882rm -f conftest.$ac_objext
a82a04b3
CR
22883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22884 (eval $ac_compile) 2>conftest.er1
f73dda09 22885 ac_status=$?
a82a04b3
CR
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22890 (exit $ac_status); } &&
a82a04b3
CR
22891 { ac_try='test -z "$ac_c_werror_flag"
22892 || test ! -s conftest.err'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
a82a04b3
CR
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; } &&
22898 { ac_try='test -s conftest.$ac_objext'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22903 (exit $ac_status); }; }; then
e8ce775d
JA
22904 bash_cv_decl_under_sys_siglist=yes
22905else
f73dda09 22906 echo "$as_me: failed program was:" >&5
a82a04b3
CR
22907sed 's/^/| /' conftest.$ac_ext >&5
22908
f73dda09 22909bash_cv_decl_under_sys_siglist=no
e8ce775d 22910fi
a82a04b3 22911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e8ce775d 22912fi
a82a04b3 22913echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
f73dda09 22914echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
e8ce775d 22915if test $bash_cv_decl_under_sys_siglist = yes; then
a82a04b3 22916cat >>confdefs.h <<\_ACEOF
e8ce775d 22917#define UNDER_SYS_SIGLIST_DECLARED 1
a82a04b3 22918_ACEOF
e8ce775d
JA
22919
22920fi
22921
a82a04b3
CR
22922
22923echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
f73dda09
JA
22924echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
22925if test "${bash_cv_under_sys_siglist+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22927else
22928 if test "$cross_compiling" = yes; then
a82a04b3 22929 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
f73dda09 22930echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 22931 bash_cv_under_sys_siglist=no
ccc6cda3 22932else
f73dda09 22933 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22934/* confdefs.h. */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
22938/* end confdefs.h. */
ccc6cda3
JA
22939
22940#include <sys/types.h>
22941#include <signal.h>
22942#ifdef HAVE_UNISTD_H
22943#include <unistd.h>
22944#endif
e8ce775d 22945#ifndef UNDER_SYS_SIGLIST_DECLARED
ccc6cda3
JA
22946extern char *_sys_siglist[];
22947#endif
22948main()
22949{
e8ce775d 22950char *msg = (char *)_sys_siglist[2];
ccc6cda3
JA
22951exit(msg == 0);
22952}
f73dda09
JA
22953_ACEOF
22954rm -f conftest$ac_exeext
a82a04b3 22955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
22956 (eval $ac_link) 2>&5
22957 ac_status=$?
a82a04b3 22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
a82a04b3 22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22964 (exit $ac_status); }; }; then
ccc6cda3
JA
22965 bash_cv_under_sys_siglist=yes
22966else
f73dda09
JA
22967 echo "$as_me: program exited with status $ac_status" >&5
22968echo "$as_me: failed program was:" >&5
a82a04b3
CR
22969sed 's/^/| /' conftest.$ac_ext >&5
22970
22971( exit $ac_status )
f73dda09 22972bash_cv_under_sys_siglist=no
ccc6cda3 22973fi
a82a04b3 22974rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 22975fi
ccc6cda3 22976fi
cce855bc 22977
a82a04b3 22978echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
f73dda09 22979echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
ccc6cda3 22980if test $bash_cv_under_sys_siglist = yes; then
a82a04b3 22981cat >>confdefs.h <<\_ACEOF
ccc6cda3 22982#define HAVE_UNDER_SYS_SIGLIST 1
a82a04b3 22983_ACEOF
ccc6cda3
JA
22984
22985fi
22986
a82a04b3
CR
22987
22988echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
f73dda09
JA
22989echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
22990if test "${bash_cv_void_sighandler+set}" = set; then
22991 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 22992else
f73dda09 22993 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
22994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
ccc6cda3
JA
22999#include <sys/types.h>
23000#include <signal.h>
23001#ifdef signal
23002#undef signal
23003#endif
23004#ifdef __cplusplus
23005extern "C"
23006#endif
23007void (*signal ()) ();
f73dda09
JA
23008int
23009main ()
23010{
ccc6cda3 23011int i;
f73dda09
JA
23012 ;
23013 return 0;
23014}
23015_ACEOF
23016rm -f conftest.$ac_objext
a82a04b3
CR
23017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23018 (eval $ac_compile) 2>conftest.er1
f73dda09 23019 ac_status=$?
a82a04b3
CR
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23024 (exit $ac_status); } &&
a82a04b3
CR
23025 { ac_try='test -z "$ac_c_werror_flag"
23026 || test ! -s conftest.err'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; } &&
23032 { ac_try='test -s conftest.$ac_objext'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
a82a04b3 23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23037 (exit $ac_status); }; }; then
ccc6cda3
JA
23038 bash_cv_void_sighandler=yes
23039else
f73dda09 23040 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23041sed 's/^/| /' conftest.$ac_ext >&5
23042
f73dda09 23043bash_cv_void_sighandler=no
ccc6cda3 23044fi
a82a04b3 23045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23046fi
a82a04b3 23047echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
f73dda09 23048echo "${ECHO_T}$bash_cv_void_sighandler" >&6
ccc6cda3 23049if test $bash_cv_void_sighandler = yes; then
a82a04b3 23050cat >>confdefs.h <<\_ACEOF
ccc6cda3 23051#define VOID_SIGHANDLER 1
a82a04b3 23052_ACEOF
ccc6cda3
JA
23053
23054fi
23055
a82a04b3
CR
23056
23057
23058echo "$as_me:$LINENO: checking for clock_t" >&5
f73dda09
JA
23059echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23060if test "${bash_cv_type_clock_t+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23062else
f73dda09 23063 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23064/* confdefs.h. */
23065_ACEOF
23066cat confdefs.h >>conftest.$ac_ext
23067cat >>conftest.$ac_ext <<_ACEOF
23068/* end confdefs.h. */
ccc6cda3
JA
23069#include <sys/types.h>
23070#if STDC_HEADERS
23071#include <stdlib.h>
f73dda09
JA
23072#include <stddef.h>
23073#endif
23074#if HAVE_INTTYPES_H
23075#include <inttypes.h>
ccc6cda3
JA
23076#endif
23077#include <sys/times.h>
23078
f73dda09 23079_ACEOF
ccc6cda3 23080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 23081 $EGREP "clock_t" >/dev/null 2>&1; then
ccc6cda3
JA
23082 bash_cv_type_clock_t=yes
23083else
ccc6cda3
JA
23084 bash_cv_type_clock_t=no
23085fi
23086rm -f conftest*
23087
23088fi
23089
a82a04b3 23090echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
f73dda09 23091echo "${ECHO_T}$bash_cv_type_clock_t" >&6
ccc6cda3
JA
23092
23093if test $bash_cv_type_clock_t = no; then
a82a04b3 23094 cat >>confdefs.h <<_ACEOF
ccc6cda3 23095#define clock_t long
a82a04b3 23096_ACEOF
ccc6cda3
JA
23097
23098fi
23099
a82a04b3
CR
23100
23101
23102echo "$as_me:$LINENO: checking for sigset_t" >&5
f73dda09
JA
23103echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23104if test "${bash_cv_type_sigset_t+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23106else
f73dda09 23107 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23108/* confdefs.h. */
23109_ACEOF
23110cat confdefs.h >>conftest.$ac_ext
23111cat >>conftest.$ac_ext <<_ACEOF
23112/* end confdefs.h. */
ccc6cda3
JA
23113#include <sys/types.h>
23114#if STDC_HEADERS
23115#include <stdlib.h>
f73dda09
JA
23116#include <stddef.h>
23117#endif
23118#if HAVE_INTTYPES_H
23119#include <inttypes.h>
ccc6cda3
JA
23120#endif
23121#include <signal.h>
23122
f73dda09 23123_ACEOF
ccc6cda3 23124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 23125 $EGREP "sigset_t" >/dev/null 2>&1; then
ccc6cda3
JA
23126 bash_cv_type_sigset_t=yes
23127else
ccc6cda3
JA
23128 bash_cv_type_sigset_t=no
23129fi
23130rm -f conftest*
23131
23132fi
23133
a82a04b3 23134echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
f73dda09 23135echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
ccc6cda3
JA
23136
23137if test $bash_cv_type_sigset_t = no; then
a82a04b3 23138 cat >>confdefs.h <<_ACEOF
ccc6cda3 23139#define sigset_t int
a82a04b3 23140_ACEOF
ccc6cda3
JA
23141
23142fi
23143
a82a04b3
CR
23144
23145
23146echo "$as_me:$LINENO: checking for quad_t" >&5
f73dda09
JA
23147echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23148if test "${bash_cv_type_quad_t+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23150else
f73dda09 23151 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23152/* confdefs.h. */
23153_ACEOF
23154cat confdefs.h >>conftest.$ac_ext
23155cat >>conftest.$ac_ext <<_ACEOF
23156/* end confdefs.h. */
ccc6cda3
JA
23157#include <sys/types.h>
23158#if STDC_HEADERS
23159#include <stdlib.h>
f73dda09
JA
23160#include <stddef.h>
23161#endif
23162#if HAVE_INTTYPES_H
23163#include <inttypes.h>
ccc6cda3
JA
23164#endif
23165
a82a04b3 23166
f73dda09 23167_ACEOF
ccc6cda3 23168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 23169 $EGREP "quad_t" >/dev/null 2>&1; then
ccc6cda3
JA
23170 bash_cv_type_quad_t=yes
23171else
ccc6cda3
JA
23172 bash_cv_type_quad_t=no
23173fi
23174rm -f conftest*
23175
23176fi
23177
a82a04b3 23178echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
f73dda09 23179echo "${ECHO_T}$bash_cv_type_quad_t" >&6
ccc6cda3 23180if test $bash_cv_type_quad_t = yes; then
a82a04b3 23181 cat >>confdefs.h <<\_ACEOF
ccc6cda3 23182#define HAVE_QUAD_T 1
a82a04b3 23183_ACEOF
ccc6cda3
JA
23184
23185 fi
23186if test $bash_cv_type_quad_t = no; then
a82a04b3 23187 cat >>confdefs.h <<_ACEOF
ccc6cda3 23188#define quad_t long
a82a04b3 23189_ACEOF
ccc6cda3
JA
23190
23191fi
23192
a82a04b3
CR
23193
23194
23195echo "$as_me:$LINENO: checking for intmax_t" >&5
f73dda09
JA
23196echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23197if test "${bash_cv_type_intmax_t+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199else
23200 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23201/* confdefs.h. */
23202_ACEOF
23203cat confdefs.h >>conftest.$ac_ext
23204cat >>conftest.$ac_ext <<_ACEOF
23205/* end confdefs.h. */
f73dda09
JA
23206#include <sys/types.h>
23207#if STDC_HEADERS
23208#include <stdlib.h>
23209#include <stddef.h>
23210#endif
23211#if HAVE_INTTYPES_H
23212#include <inttypes.h>
23213#endif
23214
a82a04b3 23215
f73dda09
JA
23216_ACEOF
23217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 23218 $EGREP "intmax_t" >/dev/null 2>&1; then
f73dda09
JA
23219 bash_cv_type_intmax_t=yes
23220else
23221 bash_cv_type_intmax_t=no
23222fi
23223rm -f conftest*
23224
23225fi
23226
a82a04b3 23227echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
f73dda09
JA
23228echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23229
23230if test $bash_cv_type_intmax_t = no; then
a82a04b3 23231 cat >>confdefs.h <<_ACEOF
f73dda09 23232#define intmax_t $bash_cv_type_long_long
a82a04b3 23233_ACEOF
f73dda09
JA
23234
23235fi
23236
a82a04b3
CR
23237
23238
23239echo "$as_me:$LINENO: checking for uintmax_t" >&5
f73dda09
JA
23240echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23241if test "${bash_cv_type_uintmax_t+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23243else
23244 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23245/* confdefs.h. */
23246_ACEOF
23247cat confdefs.h >>conftest.$ac_ext
23248cat >>conftest.$ac_ext <<_ACEOF
23249/* end confdefs.h. */
f73dda09
JA
23250#include <sys/types.h>
23251#if STDC_HEADERS
23252#include <stdlib.h>
23253#include <stddef.h>
23254#endif
23255#if HAVE_INTTYPES_H
23256#include <inttypes.h>
23257#endif
23258
a82a04b3 23259
f73dda09
JA
23260_ACEOF
23261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 23262 $EGREP "uintmax_t" >/dev/null 2>&1; then
f73dda09
JA
23263 bash_cv_type_uintmax_t=yes
23264else
23265 bash_cv_type_uintmax_t=no
23266fi
23267rm -f conftest*
23268
23269fi
23270
a82a04b3 23271echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
f73dda09
JA
23272echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23273
23274if test $bash_cv_type_uintmax_t = no; then
a82a04b3 23275 cat >>confdefs.h <<_ACEOF
f73dda09 23276#define uintmax_t $bash_cv_type_unsigned_long_long
a82a04b3 23277_ACEOF
f73dda09
JA
23278
23279fi
23280
23281if test "$ac_cv_header_sys_socket_h" = "yes"; then
23282
a82a04b3
CR
23283
23284echo "$as_me:$LINENO: checking for socklen_t" >&5
f73dda09
JA
23285echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23286if test "${bash_cv_type_socklen_t+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23288else
23289 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23290/* confdefs.h. */
23291_ACEOF
23292cat confdefs.h >>conftest.$ac_ext
23293cat >>conftest.$ac_ext <<_ACEOF
23294/* end confdefs.h. */
f73dda09
JA
23295#include <sys/types.h>
23296#if STDC_HEADERS
23297#include <stdlib.h>
23298#include <stddef.h>
23299#endif
23300#if HAVE_INTTYPES_H
23301#include <inttypes.h>
23302#endif
23303#include <sys/socket.h>
23304
23305_ACEOF
23306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 23307 $EGREP "socklen_t" >/dev/null 2>&1; then
f73dda09
JA
23308 bash_cv_type_socklen_t=yes
23309else
23310 bash_cv_type_socklen_t=no
23311fi
23312rm -f conftest*
23313
23314fi
23315
a82a04b3 23316echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
f73dda09
JA
23317echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23318if test $bash_cv_type_socklen_t = yes; then
a82a04b3 23319 cat >>confdefs.h <<\_ACEOF
f73dda09 23320#define HAVE_SOCKLEN_T 1
a82a04b3 23321_ACEOF
f73dda09
JA
23322
23323 fi
23324if test $bash_cv_type_socklen_t = no; then
a82a04b3 23325 cat >>confdefs.h <<_ACEOF
f73dda09 23326#define socklen_t int
a82a04b3 23327_ACEOF
f73dda09
JA
23328
23329fi
23330
23331fi
a82a04b3 23332echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
f73dda09
JA
23333echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23334if test "${bash_cv_type_rlimit+set}" = set; then
23335 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23336else
f73dda09 23337 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23338/* confdefs.h. */
23339_ACEOF
23340cat confdefs.h >>conftest.$ac_ext
23341cat >>conftest.$ac_ext <<_ACEOF
23342/* end confdefs.h. */
ccc6cda3 23343#include <sys/types.h>
cce855bc 23344#include <sys/resource.h>
f73dda09
JA
23345int
23346main ()
23347{
ccc6cda3 23348rlim_t xxx;
f73dda09
JA
23349 ;
23350 return 0;
23351}
23352_ACEOF
23353rm -f conftest.$ac_objext
a82a04b3
CR
23354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23355 (eval $ac_compile) 2>conftest.er1
f73dda09 23356 ac_status=$?
a82a04b3
CR
23357 grep -v '^ *+' conftest.er1 >conftest.err
23358 rm -f conftest.er1
23359 cat conftest.err >&5
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23361 (exit $ac_status); } &&
a82a04b3
CR
23362 { ac_try='test -z "$ac_c_werror_flag"
23363 || test ! -s conftest.err'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; } &&
23369 { ac_try='test -s conftest.$ac_objext'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
a82a04b3 23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23374 (exit $ac_status); }; }; then
ccc6cda3
JA
23375 bash_cv_type_rlimit=rlim_t
23376else
f73dda09 23377 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23378sed 's/^/| /' conftest.$ac_ext >&5
23379
f73dda09 23380
ccc6cda3 23381if test "$cross_compiling" = yes; then
a82a04b3 23382 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
f73dda09 23383echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
cce855bc 23384 bash_cv_type_rlimit=long
ccc6cda3 23385else
f73dda09 23386 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23387/* confdefs.h. */
23388_ACEOF
23389cat confdefs.h >>conftest.$ac_ext
23390cat >>conftest.$ac_ext <<_ACEOF
23391/* end confdefs.h. */
ccc6cda3
JA
23392
23393#include <sys/types.h>
23394#include <sys/time.h>
23395#include <sys/resource.h>
23396main()
23397{
23398#ifdef HAVE_QUAD_T
23399 struct rlimit rl;
23400 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23401 exit(0);
23402#endif
23403 exit(1);
23404}
f73dda09
JA
23405_ACEOF
23406rm -f conftest$ac_exeext
a82a04b3 23407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
23408 (eval $ac_link) 2>&5
23409 ac_status=$?
a82a04b3 23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
a82a04b3 23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23416 (exit $ac_status); }; }; then
ccc6cda3
JA
23417 bash_cv_type_rlimit=quad_t
23418else
f73dda09
JA
23419 echo "$as_me: program exited with status $ac_status" >&5
23420echo "$as_me: failed program was:" >&5
a82a04b3
CR
23421sed 's/^/| /' conftest.$ac_ext >&5
23422
23423( exit $ac_status )
f73dda09 23424bash_cv_type_rlimit=long
ccc6cda3 23425fi
a82a04b3 23426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23427fi
ccc6cda3 23428fi
a82a04b3 23429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
23430
23431fi
23432
a82a04b3 23433echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
f73dda09 23434echo "${ECHO_T}$bash_cv_type_rlimit" >&6
ccc6cda3 23435if test $bash_cv_type_rlimit = quad_t; then
a82a04b3 23436cat >>confdefs.h <<\_ACEOF
ccc6cda3 23437#define RLIMTYPE quad_t
a82a04b3 23438_ACEOF
ccc6cda3
JA
23439
23440elif test $bash_cv_type_rlimit = rlim_t; then
a82a04b3 23441cat >>confdefs.h <<\_ACEOF
ccc6cda3 23442#define RLIMTYPE rlim_t
a82a04b3 23443_ACEOF
ccc6cda3
JA
23444
23445fi
23446
a82a04b3
CR
23447
23448
23449echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
f73dda09
JA
23450echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
23451if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23453else
f73dda09 23454 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
f73dda09 23460
ccc6cda3
JA
23461#include <sys/types.h>
23462#include <termios.h>
f73dda09 23463
a82a04b3 23464
f73dda09
JA
23465int
23466main ()
23467{
23468static struct termios ac_aggr;
23469if (ac_aggr.c_line)
23470return 0;
23471 ;
23472 return 0;
23473}
23474_ACEOF
23475rm -f conftest.$ac_objext
a82a04b3
CR
23476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23477 (eval $ac_compile) 2>conftest.er1
23478 ac_status=$?
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } &&
23484 { ac_try='test -z "$ac_c_werror_flag"
23485 || test ! -s conftest.err'
23486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487 (eval $ac_try) 2>&5
23488 ac_status=$?
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); }; } &&
23491 { ac_try='test -s conftest.$ac_objext'
23492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493 (eval $ac_try) 2>&5
f73dda09 23494 ac_status=$?
a82a04b3
CR
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; }; then
23497 ac_cv_member_struct_termios_c_line=yes
23498else
23499 echo "$as_me: failed program was:" >&5
23500sed 's/^/| /' conftest.$ac_ext >&5
23501
23502cat >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
23509#include <sys/types.h>
23510#include <termios.h>
23511
23512
23513int
23514main ()
23515{
23516static struct termios ac_aggr;
23517if (sizeof ac_aggr.c_line)
23518return 0;
23519 ;
23520 return 0;
23521}
23522_ACEOF
23523rm -f conftest.$ac_objext
23524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23525 (eval $ac_compile) 2>conftest.er1
23526 ac_status=$?
23527 grep -v '^ *+' conftest.er1 >conftest.err
23528 rm -f conftest.er1
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23531 (exit $ac_status); } &&
a82a04b3
CR
23532 { ac_try='test -z "$ac_c_werror_flag"
23533 || test ! -s conftest.err'
23534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535 (eval $ac_try) 2>&5
23536 ac_status=$?
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); }; } &&
23539 { ac_try='test -s conftest.$ac_objext'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
a82a04b3 23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
23544 (exit $ac_status); }; }; then
23545 ac_cv_member_struct_termios_c_line=yes
23546else
23547 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23548sed 's/^/| /' conftest.$ac_ext >&5
23549
f73dda09
JA
23550ac_cv_member_struct_termios_c_line=no
23551fi
a82a04b3 23552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 23553fi
a82a04b3
CR
23554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23555fi
23556echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
f73dda09
JA
23557echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
23558if test $ac_cv_member_struct_termios_c_line = yes; then
a82a04b3 23559 cat >>confdefs.h <<\_ACEOF
ccc6cda3 23560#define TERMIOS_LDISC 1
a82a04b3 23561_ACEOF
ccc6cda3
JA
23562
23563fi
23564
a82a04b3
CR
23565
23566
23567echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
f73dda09
JA
23568echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
23569if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23571else
e624d0f7 23572 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23573/* confdefs.h. */
23574_ACEOF
23575cat confdefs.h >>conftest.$ac_ext
23576cat >>conftest.$ac_ext <<_ACEOF
23577/* end confdefs.h. */
f73dda09 23578
ccc6cda3
JA
23579#include <sys/types.h>
23580#include <termio.h>
f73dda09 23581
a82a04b3 23582
f73dda09
JA
23583int
23584main ()
23585{
23586static struct termio ac_aggr;
e624d0f7 23587if (ac_aggr.c_line)
f73dda09
JA
23588return 0;
23589 ;
23590 return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext
a82a04b3
CR
23594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23595 (eval $ac_compile) 2>conftest.er1
23596 ac_status=$?
23597 grep -v '^ *+' conftest.er1 >conftest.err
23598 rm -f conftest.er1
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); } &&
23602 { ac_try='test -z "$ac_c_werror_flag"
23603 || test ! -s conftest.err'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; } &&
23609 { ac_try='test -s conftest.$ac_objext'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
23615 ac_cv_member_struct_termio_c_line=yes
23616else
23617 echo "$as_me: failed program was:" >&5
23618sed 's/^/| /' conftest.$ac_ext >&5
23619
23620cat >conftest.$ac_ext <<_ACEOF
23621/* confdefs.h. */
23622_ACEOF
23623cat confdefs.h >>conftest.$ac_ext
23624cat >>conftest.$ac_ext <<_ACEOF
23625/* end confdefs.h. */
23626
23627#include <sys/types.h>
23628#include <termio.h>
23629
23630
23631int
23632main ()
23633{
23634static struct termio ac_aggr;
23635if (sizeof ac_aggr.c_line)
23636return 0;
23637 ;
23638 return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext
23642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23643 (eval $ac_compile) 2>conftest.er1
f73dda09 23644 ac_status=$?
a82a04b3
CR
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23649 (exit $ac_status); } &&
a82a04b3
CR
23650 { ac_try='test -z "$ac_c_werror_flag"
23651 || test ! -s conftest.err'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest.$ac_objext'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
a82a04b3 23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
23662 (exit $ac_status); }; }; then
23663 ac_cv_member_struct_termio_c_line=yes
23664else
23665 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23666sed 's/^/| /' conftest.$ac_ext >&5
23667
f73dda09
JA
23668ac_cv_member_struct_termio_c_line=no
23669fi
a82a04b3 23670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 23671fi
a82a04b3
CR
23672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23673fi
23674echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
f73dda09
JA
23675echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
23676if test $ac_cv_member_struct_termio_c_line = yes; then
a82a04b3 23677 cat >>confdefs.h <<\_ACEOF
ccc6cda3 23678#define TERMIO_LDISC 1
a82a04b3 23679_ACEOF
ccc6cda3
JA
23680
23681fi
23682
a82a04b3
CR
23683
23684
23685echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
4931aca6 23686echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
f73dda09
JA
23687if test "${bash_cv_dirent_has_dino+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23689else
f73dda09 23690 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23691/* confdefs.h. */
23692_ACEOF
23693cat confdefs.h >>conftest.$ac_ext
23694cat >>conftest.$ac_ext <<_ACEOF
23695/* end confdefs.h. */
ccc6cda3
JA
23696
23697#include <stdio.h>
23698#include <sys/types.h>
23699#ifdef HAVE_UNISTD_H
23700# include <unistd.h>
23701#endif /* HAVE_UNISTD_H */
23702#if defined(HAVE_DIRENT_H)
23703# include <dirent.h>
23704#else
23705# define dirent direct
23706# ifdef HAVE_SYS_NDIR_H
23707# include <sys/ndir.h>
23708# endif /* SYSNDIR */
23709# ifdef HAVE_SYS_DIR_H
23710# include <sys/dir.h>
23711# endif /* SYSDIR */
23712# ifdef HAVE_NDIR_H
23713# include <ndir.h>
23714# endif
23715#endif /* HAVE_DIRENT_H */
23716
f73dda09
JA
23717int
23718main ()
23719{
ccc6cda3
JA
23720
23721struct dirent d; int z; z = d.d_ino;
23722
f73dda09
JA
23723 ;
23724 return 0;
23725}
23726_ACEOF
23727rm -f conftest.$ac_objext
a82a04b3
CR
23728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23729 (eval $ac_compile) 2>conftest.er1
f73dda09 23730 ac_status=$?
a82a04b3
CR
23731 grep -v '^ *+' conftest.er1 >conftest.err
23732 rm -f conftest.er1
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23735 (exit $ac_status); } &&
a82a04b3
CR
23736 { ac_try='test -z "$ac_c_werror_flag"
23737 || test ! -s conftest.err'
23738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; } &&
23743 { ac_try='test -s conftest.$ac_objext'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
a82a04b3 23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23748 (exit $ac_status); }; }; then
ccc6cda3
JA
23749 bash_cv_dirent_has_dino=yes
23750else
f73dda09 23751 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23752sed 's/^/| /' conftest.$ac_ext >&5
23753
f73dda09 23754bash_cv_dirent_has_dino=no
ccc6cda3 23755fi
a82a04b3 23756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
23757fi
23758
a82a04b3 23759echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
f73dda09 23760echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
ccc6cda3 23761if test $bash_cv_dirent_has_dino = yes; then
a82a04b3 23762cat >>confdefs.h <<\_ACEOF
4931aca6 23763#define HAVE_STRUCT_DIRENT_D_INO 1
a82a04b3 23764_ACEOF
ccc6cda3
JA
23765
23766fi
23767
a82a04b3
CR
23768
23769echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
4931aca6 23770echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
f73dda09
JA
23771if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
23772 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 23773else
f73dda09 23774 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23775/* confdefs.h. */
23776_ACEOF
23777cat confdefs.h >>conftest.$ac_ext
23778cat >>conftest.$ac_ext <<_ACEOF
23779/* end confdefs.h. */
d166f048
JA
23780
23781#include <stdio.h>
23782#include <sys/types.h>
23783#ifdef HAVE_UNISTD_H
23784# include <unistd.h>
23785#endif /* HAVE_UNISTD_H */
23786#if defined(HAVE_DIRENT_H)
23787# include <dirent.h>
23788#else
23789# define dirent direct
23790# ifdef HAVE_SYS_NDIR_H
23791# include <sys/ndir.h>
23792# endif /* SYSNDIR */
23793# ifdef HAVE_SYS_DIR_H
23794# include <sys/dir.h>
23795# endif /* SYSDIR */
23796# ifdef HAVE_NDIR_H
23797# include <ndir.h>
23798# endif
23799#endif /* HAVE_DIRENT_H */
23800
f73dda09
JA
23801int
23802main ()
23803{
d166f048
JA
23804
23805struct dirent d; int z; z = d.d_fileno;
23806
f73dda09
JA
23807 ;
23808 return 0;
23809}
23810_ACEOF
23811rm -f conftest.$ac_objext
a82a04b3
CR
23812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23813 (eval $ac_compile) 2>conftest.er1
f73dda09 23814 ac_status=$?
a82a04b3
CR
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23819 (exit $ac_status); } &&
a82a04b3
CR
23820 { ac_try='test -z "$ac_c_werror_flag"
23821 || test ! -s conftest.err'
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest.$ac_objext'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
a82a04b3 23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23832 (exit $ac_status); }; }; then
d166f048
JA
23833 bash_cv_dirent_has_d_fileno=yes
23834else
f73dda09 23835 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23836sed 's/^/| /' conftest.$ac_ext >&5
23837
f73dda09 23838bash_cv_dirent_has_d_fileno=no
d166f048 23839fi
a82a04b3 23840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
23841fi
23842
a82a04b3 23843echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
f73dda09 23844echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
d166f048 23845if test $bash_cv_dirent_has_d_fileno = yes; then
a82a04b3 23846cat >>confdefs.h <<\_ACEOF
4931aca6 23847#define HAVE_STRUCT_DIRENT_D_FILENO 1
a82a04b3 23848_ACEOF
4931aca6
CR
23849
23850fi
23851
a82a04b3
CR
23852
23853echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
4931aca6
CR
23854echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
23855if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23857else
23858 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23859/* confdefs.h. */
23860_ACEOF
23861cat confdefs.h >>conftest.$ac_ext
23862cat >>conftest.$ac_ext <<_ACEOF
23863/* end confdefs.h. */
4931aca6
CR
23864
23865#include <stdio.h>
23866#include <sys/types.h>
23867#ifdef HAVE_UNISTD_H
23868# include <unistd.h>
23869#endif /* HAVE_UNISTD_H */
23870#if defined(HAVE_DIRENT_H)
23871# include <dirent.h>
23872#else
23873# define dirent direct
23874# ifdef HAVE_SYS_NDIR_H
23875# include <sys/ndir.h>
23876# endif /* SYSNDIR */
23877# ifdef HAVE_SYS_DIR_H
23878# include <sys/dir.h>
23879# endif /* SYSDIR */
23880# ifdef HAVE_NDIR_H
23881# include <ndir.h>
23882# endif
23883#endif /* HAVE_DIRENT_H */
23884
23885int
23886main ()
23887{
23888
23889struct dirent d; int z; z = d.d_namlen;
23890
23891 ;
23892 return 0;
23893}
23894_ACEOF
23895rm -f conftest.$ac_objext
a82a04b3
CR
23896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23897 (eval $ac_compile) 2>conftest.er1
4931aca6 23898 ac_status=$?
a82a04b3
CR
23899 grep -v '^ *+' conftest.er1 >conftest.err
23900 rm -f conftest.er1
23901 cat conftest.err >&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931aca6 23903 (exit $ac_status); } &&
a82a04b3
CR
23904 { ac_try='test -z "$ac_c_werror_flag"
23905 || test ! -s conftest.err'
23906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931aca6
CR
23907 (eval $ac_try) 2>&5
23908 ac_status=$?
a82a04b3
CR
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); }; } &&
23911 { ac_try='test -s conftest.$ac_objext'
23912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931aca6
CR
23916 (exit $ac_status); }; }; then
23917 bash_cv_dirent_has_d_namlen=yes
23918else
23919 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23920sed 's/^/| /' conftest.$ac_ext >&5
23921
4931aca6
CR
23922bash_cv_dirent_has_d_namlen=no
23923fi
a82a04b3 23924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4931aca6
CR
23925fi
23926
a82a04b3 23927echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
4931aca6
CR
23928echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
23929if test $bash_cv_dirent_has_d_namlen = yes; then
a82a04b3 23930cat >>confdefs.h <<\_ACEOF
4931aca6 23931#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
a82a04b3 23932_ACEOF
d166f048
JA
23933
23934fi
23935
a82a04b3 23936echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
f73dda09
JA
23937echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
23938if test "${bash_cv_struct_winsize_header+set}" = set; then
23939 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 23940else
f73dda09 23941 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23942/* confdefs.h. */
23943_ACEOF
23944cat confdefs.h >>conftest.$ac_ext
23945cat >>conftest.$ac_ext <<_ACEOF
23946/* end confdefs.h. */
d166f048
JA
23947#include <sys/types.h>
23948#include <sys/ioctl.h>
f73dda09
JA
23949int
23950main ()
23951{
d166f048 23952struct winsize x;
f73dda09
JA
23953 ;
23954 return 0;
23955}
23956_ACEOF
23957rm -f conftest.$ac_objext
a82a04b3
CR
23958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23959 (eval $ac_compile) 2>conftest.er1
f73dda09 23960 ac_status=$?
a82a04b3
CR
23961 grep -v '^ *+' conftest.er1 >conftest.err
23962 rm -f conftest.er1
23963 cat conftest.err >&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23965 (exit $ac_status); } &&
a82a04b3
CR
23966 { ac_try='test -z "$ac_c_werror_flag"
23967 || test ! -s conftest.err'
23968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23969 (eval $ac_try) 2>&5
23970 ac_status=$?
a82a04b3
CR
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }; } &&
23973 { ac_try='test -s conftest.$ac_objext'
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23978 (exit $ac_status); }; }; then
cce855bc
JA
23979 bash_cv_struct_winsize_header=ioctl_h
23980else
f73dda09 23981 echo "$as_me: failed program was:" >&5
a82a04b3
CR
23982sed 's/^/| /' conftest.$ac_ext >&5
23983
f73dda09 23984cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
23985/* confdefs.h. */
23986_ACEOF
23987cat confdefs.h >>conftest.$ac_ext
23988cat >>conftest.$ac_ext <<_ACEOF
23989/* end confdefs.h. */
cce855bc
JA
23990#include <sys/types.h>
23991#include <termios.h>
f73dda09
JA
23992int
23993main ()
23994{
cce855bc 23995struct winsize x;
f73dda09
JA
23996 ;
23997 return 0;
23998}
23999_ACEOF
24000rm -f conftest.$ac_objext
a82a04b3
CR
24001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24002 (eval $ac_compile) 2>conftest.er1
f73dda09 24003 ac_status=$?
a82a04b3
CR
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24008 (exit $ac_status); } &&
a82a04b3
CR
24009 { ac_try='test -z "$ac_c_werror_flag"
24010 || test ! -s conftest.err'
24011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); }; } &&
24016 { ac_try='test -s conftest.$ac_objext'
24017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24018 (eval $ac_try) 2>&5
24019 ac_status=$?
a82a04b3 24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24021 (exit $ac_status); }; }; then
cce855bc 24022 bash_cv_struct_winsize_header=termios_h
d166f048 24023else
f73dda09 24024 echo "$as_me: failed program was:" >&5
a82a04b3
CR
24025sed 's/^/| /' conftest.$ac_ext >&5
24026
f73dda09 24027bash_cv_struct_winsize_header=other
cce855bc 24028fi
a82a04b3 24029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 24030
d166f048 24031fi
a82a04b3 24032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
24033fi
24034
cce855bc 24035if test $bash_cv_struct_winsize_header = ioctl_h; then
a82a04b3 24036 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
f73dda09 24037echo "${ECHO_T}sys/ioctl.h" >&6
a82a04b3 24038 cat >>confdefs.h <<\_ACEOF
d166f048 24039#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
a82a04b3 24040_ACEOF
d166f048 24041
cce855bc 24042elif test $bash_cv_struct_winsize_header = termios_h; then
a82a04b3 24043 echo "$as_me:$LINENO: result: termios.h" >&5
f73dda09 24044echo "${ECHO_T}termios.h" >&6
a82a04b3 24045 cat >>confdefs.h <<\_ACEOF
cce855bc 24046#define STRUCT_WINSIZE_IN_TERMIOS 1
a82a04b3 24047_ACEOF
cce855bc
JA
24048
24049else
a82a04b3 24050 echo "$as_me:$LINENO: result: not found" >&5
f73dda09 24051echo "${ECHO_T}not found" >&6
d166f048
JA
24052fi
24053
a82a04b3 24054echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
f73dda09
JA
24055echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24056if test "${bash_cv_struct_timeval+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 24058else
f73dda09
JA
24059
24060cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24061/* confdefs.h. */
24062_ACEOF
24063cat confdefs.h >>conftest.$ac_ext
24064cat >>conftest.$ac_ext <<_ACEOF
24065/* end confdefs.h. */
bb70624e 24066#include <sys/time.h>
f73dda09
JA
24067
24068_ACEOF
bb70624e 24069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 24070 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
24071 bash_cv_struct_timeval=yes
24072else
f73dda09 24073 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24074/* confdefs.h. */
24075_ACEOF
24076cat confdefs.h >>conftest.$ac_ext
24077cat >>conftest.$ac_ext <<_ACEOF
24078/* end confdefs.h. */
bb70624e 24079#include <time.h>
f73dda09
JA
24080
24081_ACEOF
bb70624e 24082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 24083 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
24084 bash_cv_struct_timeval=yes
24085else
bb70624e
JA
24086 bash_cv_struct_timeval=no
24087fi
24088rm -f conftest*
24089
24090fi
24091rm -f conftest*
24092
a82a04b3 24093
bb70624e
JA
24094fi
24095
a82a04b3 24096echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
f73dda09 24097echo "${ECHO_T}$bash_cv_struct_timeval" >&6
bb70624e 24098if test $bash_cv_struct_timeval = yes; then
a82a04b3 24099 cat >>confdefs.h <<\_ACEOF
bb70624e 24100#define HAVE_TIMEVAL 1
a82a04b3 24101_ACEOF
bb70624e
JA
24102
24103fi
24104
a82a04b3 24105echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
f73dda09
JA
24106echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24107if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24109else
24110 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24111/* confdefs.h. */
24112_ACEOF
24113cat confdefs.h >>conftest.$ac_ext
24114cat >>conftest.$ac_ext <<_ACEOF
24115/* end confdefs.h. */
f73dda09
JA
24116$ac_includes_default
24117int
24118main ()
24119{
24120static struct stat ac_aggr;
24121if (ac_aggr.st_blocks)
24122return 0;
24123 ;
24124 return 0;
24125}
24126_ACEOF
24127rm -f conftest.$ac_objext
a82a04b3
CR
24128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24129 (eval $ac_compile) 2>conftest.er1
24130 ac_status=$?
24131 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1
24133 cat conftest.err >&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } &&
24136 { ac_try='test -z "$ac_c_werror_flag"
24137 || test ! -s conftest.err'
24138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139 (eval $ac_try) 2>&5
24140 ac_status=$?
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; } &&
24143 { ac_try='test -s conftest.$ac_objext'
24144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145 (eval $ac_try) 2>&5
24146 ac_status=$?
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; }; then
24149 ac_cv_member_struct_stat_st_blocks=yes
24150else
24151 echo "$as_me: failed program was:" >&5
24152sed 's/^/| /' conftest.$ac_ext >&5
24153
24154cat >conftest.$ac_ext <<_ACEOF
24155/* confdefs.h. */
24156_ACEOF
24157cat confdefs.h >>conftest.$ac_ext
24158cat >>conftest.$ac_ext <<_ACEOF
24159/* end confdefs.h. */
24160$ac_includes_default
24161int
24162main ()
24163{
24164static struct stat ac_aggr;
24165if (sizeof ac_aggr.st_blocks)
24166return 0;
24167 ;
24168 return 0;
24169}
24170_ACEOF
24171rm -f conftest.$ac_objext
24172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24173 (eval $ac_compile) 2>conftest.er1
f73dda09 24174 ac_status=$?
a82a04b3
CR
24175 grep -v '^ *+' conftest.er1 >conftest.err
24176 rm -f conftest.er1
24177 cat conftest.err >&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24179 (exit $ac_status); } &&
a82a04b3
CR
24180 { ac_try='test -z "$ac_c_werror_flag"
24181 || test ! -s conftest.err'
24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; } &&
24187 { ac_try='test -s conftest.$ac_objext'
24188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24189 (eval $ac_try) 2>&5
24190 ac_status=$?
a82a04b3 24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
24192 (exit $ac_status); }; }; then
24193 ac_cv_member_struct_stat_st_blocks=yes
24194else
24195 echo "$as_me: failed program was:" >&5
a82a04b3
CR
24196sed 's/^/| /' conftest.$ac_ext >&5
24197
f73dda09
JA
24198ac_cv_member_struct_stat_st_blocks=no
24199fi
a82a04b3
CR
24200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24201fi
24202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24203fi
a82a04b3 24204echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
f73dda09
JA
24205echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24206if test $ac_cv_member_struct_stat_st_blocks = yes; then
24207
a82a04b3 24208cat >>confdefs.h <<_ACEOF
f73dda09 24209#define HAVE_STRUCT_STAT_ST_BLOCKS 1
a82a04b3
CR
24210_ACEOF
24211
f73dda09
JA
24212
24213fi
d166f048 24214
a82a04b3 24215echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7117c2d2
JA
24216echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24217if test "${ac_cv_struct_tm+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24219else
24220 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24221/* confdefs.h. */
24222_ACEOF
24223cat confdefs.h >>conftest.$ac_ext
24224cat >>conftest.$ac_ext <<_ACEOF
24225/* end confdefs.h. */
7117c2d2
JA
24226#include <sys/types.h>
24227#include <time.h>
24228
24229int
24230main ()
24231{
24232struct tm *tp; tp->tm_sec;
24233 ;
24234 return 0;
24235}
24236_ACEOF
24237rm -f conftest.$ac_objext
a82a04b3
CR
24238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24239 (eval $ac_compile) 2>conftest.er1
7117c2d2 24240 ac_status=$?
a82a04b3
CR
24241 grep -v '^ *+' conftest.er1 >conftest.err
24242 rm -f conftest.er1
24243 cat conftest.err >&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 24245 (exit $ac_status); } &&
a82a04b3
CR
24246 { ac_try='test -z "$ac_c_werror_flag"
24247 || test ! -s conftest.err'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
a82a04b3
CR
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; } &&
24253 { ac_try='test -s conftest.$ac_objext'
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
24258 (exit $ac_status); }; }; then
24259 ac_cv_struct_tm=time.h
24260else
24261 echo "$as_me: failed program was:" >&5
a82a04b3
CR
24262sed 's/^/| /' conftest.$ac_ext >&5
24263
7117c2d2
JA
24264ac_cv_struct_tm=sys/time.h
24265fi
a82a04b3 24266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 24267fi
a82a04b3 24268echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7117c2d2
JA
24269echo "${ECHO_T}$ac_cv_struct_tm" >&6
24270if test $ac_cv_struct_tm = sys/time.h; then
24271
a82a04b3 24272cat >>confdefs.h <<\_ACEOF
7117c2d2 24273#define TM_IN_SYS_TIME 1
a82a04b3 24274_ACEOF
7117c2d2
JA
24275
24276fi
24277
a82a04b3 24278echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7117c2d2
JA
24279echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24280if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24281 echo $ECHO_N "(cached) $ECHO_C" >&6
24282else
a82a04b3
CR
24283 cat >conftest.$ac_ext <<_ACEOF
24284/* confdefs.h. */
24285_ACEOF
24286cat confdefs.h >>conftest.$ac_ext
24287cat >>conftest.$ac_ext <<_ACEOF
24288/* end confdefs.h. */
24289#include <sys/types.h>
24290#include <$ac_cv_struct_tm>
24291
24292
24293int
24294main ()
24295{
24296static struct tm ac_aggr;
24297if (ac_aggr.tm_zone)
24298return 0;
24299 ;
24300 return 0;
24301}
24302_ACEOF
24303rm -f conftest.$ac_objext
24304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24305 (eval $ac_compile) 2>conftest.er1
24306 ac_status=$?
24307 grep -v '^ *+' conftest.er1 >conftest.err
24308 rm -f conftest.er1
24309 cat conftest.err >&5
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); } &&
24312 { ac_try='test -z "$ac_c_werror_flag"
24313 || test ! -s conftest.err'
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; } &&
24319 { ac_try='test -s conftest.$ac_objext'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_cv_member_struct_tm_tm_zone=yes
24326else
24327 echo "$as_me: failed program was:" >&5
24328sed 's/^/| /' conftest.$ac_ext >&5
24329
24330cat >conftest.$ac_ext <<_ACEOF
24331/* confdefs.h. */
24332_ACEOF
24333cat confdefs.h >>conftest.$ac_ext
24334cat >>conftest.$ac_ext <<_ACEOF
24335/* end confdefs.h. */
7117c2d2
JA
24336#include <sys/types.h>
24337#include <$ac_cv_struct_tm>
24338
a82a04b3 24339
7117c2d2
JA
24340int
24341main ()
24342{
24343static struct tm ac_aggr;
a82a04b3 24344if (sizeof ac_aggr.tm_zone)
7117c2d2
JA
24345return 0;
24346 ;
24347 return 0;
24348}
24349_ACEOF
24350rm -f conftest.$ac_objext
a82a04b3
CR
24351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24352 (eval $ac_compile) 2>conftest.er1
7117c2d2 24353 ac_status=$?
a82a04b3
CR
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 24358 (exit $ac_status); } &&
a82a04b3
CR
24359 { ac_try='test -z "$ac_c_werror_flag"
24360 || test ! -s conftest.err'
24361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362 (eval $ac_try) 2>&5
24363 ac_status=$?
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; } &&
24366 { ac_try='test -s conftest.$ac_objext'
24367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
24368 (eval $ac_try) 2>&5
24369 ac_status=$?
a82a04b3 24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
24371 (exit $ac_status); }; }; then
24372 ac_cv_member_struct_tm_tm_zone=yes
24373else
24374 echo "$as_me: failed program was:" >&5
a82a04b3
CR
24375sed 's/^/| /' conftest.$ac_ext >&5
24376
7117c2d2
JA
24377ac_cv_member_struct_tm_tm_zone=no
24378fi
a82a04b3
CR
24379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24380fi
24381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 24382fi
a82a04b3 24383echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7117c2d2
JA
24384echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24385if test $ac_cv_member_struct_tm_tm_zone = yes; then
24386
a82a04b3 24387cat >>confdefs.h <<_ACEOF
7117c2d2 24388#define HAVE_STRUCT_TM_TM_ZONE 1
a82a04b3
CR
24389_ACEOF
24390
7117c2d2
JA
24391
24392fi
24393
24394if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24395
a82a04b3 24396cat >>confdefs.h <<\_ACEOF
7117c2d2 24397#define HAVE_TM_ZONE 1
a82a04b3 24398_ACEOF
7117c2d2
JA
24399
24400else
a82a04b3 24401 echo "$as_me:$LINENO: checking for tzname" >&5
7117c2d2
JA
24402echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24403if test "${ac_cv_var_tzname+set}" = set; then
24404 echo $ECHO_N "(cached) $ECHO_C" >&6
24405else
24406 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24407/* confdefs.h. */
24408_ACEOF
24409cat confdefs.h >>conftest.$ac_ext
24410cat >>conftest.$ac_ext <<_ACEOF
24411/* end confdefs.h. */
7117c2d2
JA
24412#include <time.h>
24413#ifndef tzname /* For SGI. */
24414extern char *tzname[]; /* RS6000 and others reject char **tzname. */
24415#endif
24416
24417int
24418main ()
24419{
24420atoi(*tzname);
24421 ;
24422 return 0;
24423}
24424_ACEOF
24425rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
24426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24427 (eval $ac_link) 2>conftest.er1
7117c2d2 24428 ac_status=$?
a82a04b3
CR
24429 grep -v '^ *+' conftest.er1 >conftest.err
24430 rm -f conftest.er1
24431 cat conftest.err >&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 24433 (exit $ac_status); } &&
a82a04b3
CR
24434 { ac_try='test -z "$ac_c_werror_flag"
24435 || test ! -s conftest.err'
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; } &&
24441 { ac_try='test -s conftest$ac_exeext'
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
a82a04b3 24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
24446 (exit $ac_status); }; }; then
24447 ac_cv_var_tzname=yes
24448else
24449 echo "$as_me: failed program was:" >&5
a82a04b3
CR
24450sed 's/^/| /' conftest.$ac_ext >&5
24451
7117c2d2
JA
24452ac_cv_var_tzname=no
24453fi
a82a04b3
CR
24454rm -f conftest.err conftest.$ac_objext \
24455 conftest$ac_exeext conftest.$ac_ext
7117c2d2 24456fi
a82a04b3 24457echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7117c2d2
JA
24458echo "${ECHO_T}$ac_cv_var_tzname" >&6
24459 if test $ac_cv_var_tzname = yes; then
24460
a82a04b3 24461cat >>confdefs.h <<\_ACEOF
7117c2d2 24462#define HAVE_TZNAME 1
a82a04b3 24463_ACEOF
7117c2d2
JA
24464
24465 fi
24466fi
24467
a82a04b3 24468echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
d3a24ed2
CR
24469echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
24470if test "${bash_cv_struct_timezone+set}" = set; then
24471 echo $ECHO_N "(cached) $ECHO_C" >&6
24472else
24473
24474cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
d3a24ed2
CR
24480#include <sys/time.h>
24481
24482_ACEOF
24483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 24484 $EGREP "struct timezone" >/dev/null 2>&1; then
d3a24ed2
CR
24485 bash_cv_struct_timezone=yes
24486else
24487 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24488/* confdefs.h. */
24489_ACEOF
24490cat confdefs.h >>conftest.$ac_ext
24491cat >>conftest.$ac_ext <<_ACEOF
24492/* end confdefs.h. */
d3a24ed2
CR
24493#include <time.h>
24494
24495_ACEOF
24496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 24497 $EGREP "struct timezone" >/dev/null 2>&1; then
d3a24ed2
CR
24498 bash_cv_struct_timezone=yes
24499else
24500 bash_cv_struct_timezone=no
24501fi
24502rm -f conftest*
24503
24504fi
24505rm -f conftest*
24506
a82a04b3 24507
d3a24ed2
CR
24508fi
24509
a82a04b3 24510echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
d3a24ed2
CR
24511echo "${ECHO_T}$bash_cv_struct_timezone" >&6
24512if test $bash_cv_struct_timezone = yes; then
a82a04b3 24513 cat >>confdefs.h <<\_ACEOF
d3a24ed2 24514#define HAVE_STRUCT_TIMEZONE 1
a82a04b3 24515_ACEOF
d3a24ed2
CR
24516
24517fi
24518
a82a04b3
CR
24519
24520echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
f73dda09
JA
24521echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
24522if test "${bash_cv_have_strsignal+set}" = set; then
24523 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 24524else
f73dda09 24525 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24526/* confdefs.h. */
24527_ACEOF
24528cat confdefs.h >>conftest.$ac_ext
24529cat >>conftest.$ac_ext <<_ACEOF
24530/* end confdefs.h. */
ccc6cda3
JA
24531#include <sys/types.h>
24532#include <signal.h>
f73dda09
JA
24533int
24534main ()
24535{
ccc6cda3 24536char *s = (char *)strsignal(2);
f73dda09
JA
24537 ;
24538 return 0;
24539}
24540_ACEOF
24541rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
24542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24543 (eval $ac_link) 2>conftest.er1
f73dda09 24544 ac_status=$?
a82a04b3
CR
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24549 (exit $ac_status); } &&
a82a04b3
CR
24550 { ac_try='test -z "$ac_c_werror_flag"
24551 || test ! -s conftest.err'
24552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553 (eval $ac_try) 2>&5
24554 ac_status=$?
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; } &&
24557 { ac_try='test -s conftest$ac_exeext'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
a82a04b3 24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24562 (exit $ac_status); }; }; then
ccc6cda3
JA
24563 bash_cv_have_strsignal=yes
24564else
f73dda09 24565 echo "$as_me: failed program was:" >&5
a82a04b3
CR
24566sed 's/^/| /' conftest.$ac_ext >&5
24567
f73dda09 24568bash_cv_have_strsignal=no
ccc6cda3 24569fi
a82a04b3
CR
24570rm -f conftest.err conftest.$ac_objext \
24571 conftest$ac_exeext conftest.$ac_ext
ccc6cda3
JA
24572fi
24573
a82a04b3 24574echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
f73dda09 24575echo "${ECHO_T}$bash_cv_have_strsignal" >&6
ccc6cda3 24576if test $bash_cv_have_strsignal = yes; then
a82a04b3 24577cat >>confdefs.h <<\_ACEOF
ccc6cda3 24578#define HAVE_STRSIGNAL 1
a82a04b3 24579_ACEOF
ccc6cda3
JA
24580
24581fi
24582
a82a04b3 24583echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
f73dda09
JA
24584echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
24585if test "${bash_cv_opendir_not_robust+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
24587else
24588 if test "$cross_compiling" = yes; then
a82a04b3 24589 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
f73dda09 24590echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
24591 bash_cv_opendir_not_robust=no
24592
ccc6cda3 24593else
f73dda09 24594 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24595/* confdefs.h. */
24596_ACEOF
24597cat confdefs.h >>conftest.$ac_ext
24598cat >>conftest.$ac_ext <<_ACEOF
24599/* end confdefs.h. */
ccc6cda3
JA
24600
24601#include <stdio.h>
24602#include <sys/types.h>
24603#include <fcntl.h>
24604#ifdef HAVE_UNISTD_H
24605# include <unistd.h>
24606#endif /* HAVE_UNISTD_H */
24607#if defined(HAVE_DIRENT_H)
24608# include <dirent.h>
24609#else
24610# define dirent direct
24611# ifdef HAVE_SYS_NDIR_H
24612# include <sys/ndir.h>
24613# endif /* SYSNDIR */
24614# ifdef HAVE_SYS_DIR_H
24615# include <sys/dir.h>
24616# endif /* SYSDIR */
24617# ifdef HAVE_NDIR_H
24618# include <ndir.h>
24619# endif
24620#endif /* HAVE_DIRENT_H */
24621main()
24622{
24623DIR *dir;
bb70624e
JA
24624int fd, err;
24625err = mkdir("/tmp/bash-aclocal", 0700);
24626if (err < 0) {
24627 perror("mkdir");
24628 exit(1);
24629}
24630unlink("/tmp/bash-aclocal/not_a_directory");
24631fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
ccc6cda3
JA
24632write(fd, "\n", 1);
24633close(fd);
bb70624e
JA
24634dir = opendir("/tmp/bash-aclocal/not_a_directory");
24635unlink("/tmp/bash-aclocal/not_a_directory");
24636rmdir("/tmp/bash-aclocal");
ccc6cda3
JA
24637exit (dir == 0);
24638}
f73dda09
JA
24639_ACEOF
24640rm -f conftest$ac_exeext
a82a04b3 24641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
24642 (eval $ac_link) 2>&5
24643 ac_status=$?
a82a04b3 24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
a82a04b3 24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24650 (exit $ac_status); }; }; then
ccc6cda3
JA
24651 bash_cv_opendir_not_robust=yes
24652else
f73dda09
JA
24653 echo "$as_me: program exited with status $ac_status" >&5
24654echo "$as_me: failed program was:" >&5
a82a04b3
CR
24655sed 's/^/| /' conftest.$ac_ext >&5
24656
24657( exit $ac_status )
f73dda09 24658bash_cv_opendir_not_robust=no
ccc6cda3 24659fi
a82a04b3 24660rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24661fi
ccc6cda3
JA
24662fi
24663
a82a04b3 24664echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
f73dda09 24665echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
ccc6cda3 24666if test $bash_cv_opendir_not_robust = yes; then
a82a04b3 24667cat >>confdefs.h <<\_ACEOF
ccc6cda3 24668#define OPENDIR_NOT_ROBUST 1
a82a04b3 24669_ACEOF
ccc6cda3
JA
24670
24671fi
24672
a82a04b3 24673echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
f73dda09
JA
24674echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
24675if test "${bash_cv_ulimit_maxfds+set}" = set; then
24676 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
24677else
24678 if test "$cross_compiling" = yes; then
a82a04b3 24679 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
f73dda09 24680echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
24681 bash_cv_ulimit_maxfds=no
24682
ccc6cda3 24683else
f73dda09 24684 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24685/* confdefs.h. */
24686_ACEOF
24687cat confdefs.h >>conftest.$ac_ext
24688cat >>conftest.$ac_ext <<_ACEOF
24689/* end confdefs.h. */
ccc6cda3
JA
24690
24691main()
24692{
24693long maxfds = ulimit(4, 0L);
24694exit (maxfds == -1L);
24695}
24696
f73dda09
JA
24697_ACEOF
24698rm -f conftest$ac_exeext
a82a04b3 24699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
24700 (eval $ac_link) 2>&5
24701 ac_status=$?
a82a04b3 24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 24704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24705 (eval $ac_try) 2>&5
24706 ac_status=$?
a82a04b3 24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24708 (exit $ac_status); }; }; then
ccc6cda3
JA
24709 bash_cv_ulimit_maxfds=yes
24710else
f73dda09
JA
24711 echo "$as_me: program exited with status $ac_status" >&5
24712echo "$as_me: failed program was:" >&5
a82a04b3
CR
24713sed 's/^/| /' conftest.$ac_ext >&5
24714
24715( exit $ac_status )
f73dda09 24716bash_cv_ulimit_maxfds=no
ccc6cda3 24717fi
a82a04b3 24718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24719fi
ccc6cda3
JA
24720fi
24721
a82a04b3 24722echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
f73dda09 24723echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
ccc6cda3 24724if test $bash_cv_ulimit_maxfds = yes; then
a82a04b3 24725cat >>confdefs.h <<\_ACEOF
ccc6cda3 24726#define ULIMIT_MAXFDS 1
a82a04b3 24727_ACEOF
ccc6cda3
JA
24728
24729fi
24730
a82a04b3 24731echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
f73dda09
JA
24732echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
24733if test "${bash_cv_getenv_redef+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
24735else
24736 if test "$cross_compiling" = yes; then
a82a04b3 24737 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
f73dda09 24738echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
cce855bc
JA
24739 bash_cv_getenv_redef=yes
24740
ccc6cda3 24741else
f73dda09 24742 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24743/* confdefs.h. */
24744_ACEOF
24745cat confdefs.h >>conftest.$ac_ext
24746cat >>conftest.$ac_ext <<_ACEOF
24747/* end confdefs.h. */
ccc6cda3
JA
24748
24749#ifdef HAVE_UNISTD_H
24750# include <unistd.h>
24751#endif
24752#ifndef __STDC__
24753# ifndef const
24754# define const
24755# endif
24756#endif
24757char *
24758getenv (name)
24759#if defined (__linux__) || defined (__bsdi__) || defined (convex)
24760 const char *name;
24761#else
24762 char const *name;
24763#endif /* !__linux__ && !__bsdi__ && !convex */
24764{
24765return "42";
24766}
24767main()
24768{
24769char *s;
24770/* The next allows this program to run, but does not allow bash to link
24771 when it redefines getenv. I'm not really interested in figuring out
24772 why not. */
24773#if defined (NeXT)
24774exit(1);
24775#endif
24776s = getenv("ABCDE");
24777exit(s == 0); /* force optimizer to leave getenv in */
24778}
24779
f73dda09
JA
24780_ACEOF
24781rm -f conftest$ac_exeext
a82a04b3 24782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
24783 (eval $ac_link) 2>&5
24784 ac_status=$?
a82a04b3 24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
a82a04b3 24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24791 (exit $ac_status); }; }; then
ccc6cda3
JA
24792 bash_cv_getenv_redef=yes
24793else
f73dda09
JA
24794 echo "$as_me: program exited with status $ac_status" >&5
24795echo "$as_me: failed program was:" >&5
a82a04b3
CR
24796sed 's/^/| /' conftest.$ac_ext >&5
24797
24798( exit $ac_status )
f73dda09 24799bash_cv_getenv_redef=no
ccc6cda3 24800fi
a82a04b3 24801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24802fi
ccc6cda3
JA
24803fi
24804
a82a04b3 24805echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
f73dda09 24806echo "${ECHO_T}$bash_cv_getenv_redef" >&6
ccc6cda3 24807if test $bash_cv_getenv_redef = yes; then
a82a04b3 24808cat >>confdefs.h <<\_ACEOF
ccc6cda3 24809#define CAN_REDEFINE_GETENV 1
a82a04b3 24810_ACEOF
ccc6cda3
JA
24811
24812fi
24813
7117c2d2 24814if test "$ac_cv_func_getcwd" = "yes"; then
a82a04b3 24815echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
f085a21f
CR
24816echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
24817if test "${bash_cv_getcwd_malloc+set}" = set; then
f73dda09 24818 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
24819else
24820 if test "$cross_compiling" = yes; then
a82a04b3 24821 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
f085a21f
CR
24822echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
24823 bash_cv_getcwd_malloc=no
cce855bc 24824
ccc6cda3 24825else
f73dda09 24826 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
ccc6cda3
JA
24832
24833#include <stdio.h>
24834#ifdef HAVE_UNISTD_H
24835#include <unistd.h>
24836#endif
24837
ccc6cda3
JA
24838main()
24839{
f085a21f
CR
24840 char *xpwd;
24841 xpwd = getcwd(0, 0);
24842 exit (xpwd == 0);
ccc6cda3
JA
24843}
24844
f73dda09
JA
24845_ACEOF
24846rm -f conftest$ac_exeext
a82a04b3 24847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
24848 (eval $ac_link) 2>&5
24849 ac_status=$?
a82a04b3 24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
a82a04b3 24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24856 (exit $ac_status); }; }; then
f085a21f 24857 bash_cv_getcwd_malloc=yes
ccc6cda3 24858else
f73dda09
JA
24859 echo "$as_me: program exited with status $ac_status" >&5
24860echo "$as_me: failed program was:" >&5
a82a04b3
CR
24861sed 's/^/| /' conftest.$ac_ext >&5
24862
24863( exit $ac_status )
f085a21f 24864bash_cv_getcwd_malloc=no
ccc6cda3 24865fi
a82a04b3 24866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24867fi
ccc6cda3
JA
24868fi
24869
a82a04b3 24870echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
f085a21f
CR
24871echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
24872if test $bash_cv_getcwd_malloc = no; then
a82a04b3 24873cat >>confdefs.h <<\_ACEOF
ccc6cda3 24874#define GETCWD_BROKEN 1
a82a04b3
CR
24875_ACEOF
24876
24877case $LIBOBJS in
24878 "getcwd.$ac_objext" | \
24879 *" getcwd.$ac_objext" | \
24880 "getcwd.$ac_objext "* | \
24881 *" getcwd.$ac_objext "* ) ;;
24882 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
24883esac
ccc6cda3
JA
24884
24885fi
24886
ccc6cda3
JA
24887fi
24888
a82a04b3 24889echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
f73dda09
JA
24890echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
24891if test "${bash_cv_func_sigsetjmp+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
24893else
24894 if test "$cross_compiling" = yes; then
a82a04b3 24895 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
f73dda09 24896echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
24897 bash_cv_func_sigsetjmp=missing
24898
ccc6cda3 24899else
f73dda09 24900 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24901/* confdefs.h. */
24902_ACEOF
24903cat confdefs.h >>conftest.$ac_ext
24904cat >>conftest.$ac_ext <<_ACEOF
24905/* end confdefs.h. */
ccc6cda3
JA
24906
24907#ifdef HAVE_UNISTD_H
24908#include <unistd.h>
24909#endif
24910#include <sys/types.h>
24911#include <signal.h>
24912#include <setjmp.h>
24913
24914main()
24915{
24916#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
24917exit (1);
24918#else
24919
24920int code;
24921sigset_t set, oset;
24922sigjmp_buf xx;
24923
24924/* get the mask */
24925sigemptyset(&set);
24926sigemptyset(&oset);
24927sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
24928sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
24929
24930/* save it */
24931code = sigsetjmp(xx, 1);
24932if (code)
24933 exit(0); /* could get sigmask and compare to oset here. */
24934
24935/* change it */
24936sigaddset(&set, SIGINT);
24937sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
24938
24939/* and siglongjmp */
24940siglongjmp(xx, 10);
24941exit(1);
24942#endif
24943}
f73dda09
JA
24944_ACEOF
24945rm -f conftest$ac_exeext
a82a04b3 24946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
24947 (eval $ac_link) 2>&5
24948 ac_status=$?
a82a04b3 24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
a82a04b3 24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24955 (exit $ac_status); }; }; then
ccc6cda3
JA
24956 bash_cv_func_sigsetjmp=present
24957else
f73dda09
JA
24958 echo "$as_me: program exited with status $ac_status" >&5
24959echo "$as_me: failed program was:" >&5
a82a04b3
CR
24960sed 's/^/| /' conftest.$ac_ext >&5
24961
24962( exit $ac_status )
f73dda09 24963bash_cv_func_sigsetjmp=missing
ccc6cda3 24964fi
a82a04b3 24965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24966fi
ccc6cda3
JA
24967fi
24968
a82a04b3 24969echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
f73dda09 24970echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
ccc6cda3 24971if test $bash_cv_func_sigsetjmp = present; then
a82a04b3 24972cat >>confdefs.h <<\_ACEOF
ccc6cda3 24973#define HAVE_POSIX_SIGSETJMP 1
a82a04b3 24974_ACEOF
ccc6cda3
JA
24975
24976fi
24977
a82a04b3
CR
24978
24979echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
f73dda09
JA
24980echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
24981if test "${bash_cv_func_strcoll_broken+set}" = set; then
24982 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048
JA
24983else
24984 if test "$cross_compiling" = yes; then
a82a04b3 24985 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
f73dda09 24986echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
24987 bash_cv_func_strcoll_broken=no
24988
d166f048 24989else
f73dda09 24990 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
24991/* confdefs.h. */
24992_ACEOF
24993cat confdefs.h >>conftest.$ac_ext
24994cat >>conftest.$ac_ext <<_ACEOF
24995/* end confdefs.h. */
d166f048
JA
24996
24997#include <stdio.h>
24998#if defined (HAVE_LOCALE_H)
24999#include <locale.h>
25000#endif
25001
25002main(c, v)
25003int c;
25004char *v[];
25005{
25006 int r1, r2;
25007 char *deflocale, *defcoll;
25008
25009#ifdef HAVE_SETLOCALE
25010 deflocale = setlocale(LC_ALL, "");
25011 defcoll = setlocale(LC_COLLATE, "");
25012#endif
25013
25014#ifdef HAVE_STRCOLL
25015 /* These two values are taken from tests/glob-test. */
25016 r1 = strcoll("abd", "aXd");
25017#else
25018 r1 = 0;
25019#endif
25020 r2 = strcmp("abd", "aXd");
25021
25022 /* These two should both be greater than 0. It is permissible for
25023 a system to return different values, as long as the sign is the
25024 same. */
25025
25026 /* Exit with 1 (failure) if these two values are both > 0, since
25027 this tests whether strcoll(3) is broken with respect to strcmp(3)
25028 in the default locale. */
25029 exit (r1 > 0 && r2 > 0);
25030}
25031
f73dda09
JA
25032_ACEOF
25033rm -f conftest$ac_exeext
a82a04b3 25034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25035 (eval $ac_link) 2>&5
25036 ac_status=$?
a82a04b3 25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
a82a04b3 25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25043 (exit $ac_status); }; }; then
d166f048
JA
25044 bash_cv_func_strcoll_broken=yes
25045else
f73dda09
JA
25046 echo "$as_me: program exited with status $ac_status" >&5
25047echo "$as_me: failed program was:" >&5
a82a04b3
CR
25048sed 's/^/| /' conftest.$ac_ext >&5
25049
25050( exit $ac_status )
f73dda09 25051bash_cv_func_strcoll_broken=no
d166f048 25052fi
a82a04b3 25053rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d166f048 25054fi
d166f048
JA
25055fi
25056
a82a04b3 25057echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
f73dda09 25058echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
d166f048 25059if test $bash_cv_func_strcoll_broken = yes; then
a82a04b3 25060cat >>confdefs.h <<\_ACEOF
d166f048 25061#define STRCOLL_BROKEN 1
a82a04b3 25062_ACEOF
d166f048
JA
25063
25064fi
25065
a82a04b3
CR
25066
25067
7117c2d2
JA
25068if test "$ac_cv_func_putenv" = "yes"; then
25069
a82a04b3
CR
25070
25071
25072echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
7117c2d2
JA
25073echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25074if test "${bash_cv_std_putenv+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076else
25077 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25078/* confdefs.h. */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h. */
7117c2d2
JA
25083
25084#if STDC_HEADERS
25085#include <stdlib.h>
25086#include <stddef.h>
25087#endif
25088#ifndef __STDC__
25089# ifndef const
25090# define const
25091# endif
25092#endif
25093#ifdef PROTOTYPES
25094extern int putenv (char *);
25095#else
25096extern int putenv ();
25097#endif
25098
25099int
25100main ()
25101{
25102return (putenv == 0);
25103 ;
25104 return 0;
25105}
25106_ACEOF
25107rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
25108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25109 (eval $ac_link) 2>conftest.er1
7117c2d2 25110 ac_status=$?
a82a04b3
CR
25111 grep -v '^ *+' conftest.er1 >conftest.err
25112 rm -f conftest.er1
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 25115 (exit $ac_status); } &&
a82a04b3
CR
25116 { ac_try='test -z "$ac_c_werror_flag"
25117 || test ! -s conftest.err'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; } &&
25123 { ac_try='test -s conftest$ac_exeext'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
a82a04b3 25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
25128 (exit $ac_status); }; }; then
25129 bash_cv_std_putenv=yes
25130else
25131 echo "$as_me: failed program was:" >&5
a82a04b3
CR
25132sed 's/^/| /' conftest.$ac_ext >&5
25133
7117c2d2
JA
25134bash_cv_std_putenv=no
25135
25136fi
a82a04b3
CR
25137rm -f conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
7117c2d2 25139fi
a82a04b3 25140echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
7117c2d2
JA
25141echo "${ECHO_T}$bash_cv_std_putenv" >&6
25142if test $bash_cv_std_putenv = yes; then
a82a04b3 25143cat >>confdefs.h <<\_ACEOF
7117c2d2 25144#define HAVE_STD_PUTENV 1
a82a04b3 25145_ACEOF
7117c2d2
JA
25146
25147fi
25148
25149else
a82a04b3 25150cat >>confdefs.h <<\_ACEOF
7117c2d2 25151#define HAVE_STD_PUTENV 1
a82a04b3 25152_ACEOF
7117c2d2
JA
25153
25154fi
25155if test "$ac_cv_func_unsetenv" = "yes"; then
25156
a82a04b3
CR
25157
25158
25159echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
7117c2d2
JA
25160echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25161if test "${bash_cv_std_unsetenv+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25163else
25164 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25165/* confdefs.h. */
25166_ACEOF
25167cat confdefs.h >>conftest.$ac_ext
25168cat >>conftest.$ac_ext <<_ACEOF
25169/* end confdefs.h. */
7117c2d2
JA
25170
25171#if STDC_HEADERS
25172#include <stdlib.h>
25173#include <stddef.h>
25174#endif
25175#ifndef __STDC__
25176# ifndef const
25177# define const
25178# endif
25179#endif
25180#ifdef PROTOTYPES
25181extern int unsetenv (const char *);
25182#else
25183extern int unsetenv ();
25184#endif
25185
25186int
25187main ()
25188{
25189return (unsetenv == 0);
25190 ;
25191 return 0;
25192}
25193_ACEOF
25194rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
25195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25196 (eval $ac_link) 2>conftest.er1
7117c2d2 25197 ac_status=$?
a82a04b3
CR
25198 grep -v '^ *+' conftest.er1 >conftest.err
25199 rm -f conftest.er1
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 25202 (exit $ac_status); } &&
a82a04b3
CR
25203 { ac_try='test -z "$ac_c_werror_flag"
25204 || test ! -s conftest.err'
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } &&
25210 { ac_try='test -s conftest$ac_exeext'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
a82a04b3 25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
25215 (exit $ac_status); }; }; then
25216 bash_cv_std_unsetenv=yes
25217else
25218 echo "$as_me: failed program was:" >&5
a82a04b3
CR
25219sed 's/^/| /' conftest.$ac_ext >&5
25220
7117c2d2
JA
25221bash_cv_std_unsetenv=no
25222
25223fi
a82a04b3
CR
25224rm -f conftest.err conftest.$ac_objext \
25225 conftest$ac_exeext conftest.$ac_ext
7117c2d2 25226fi
a82a04b3 25227echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
7117c2d2
JA
25228echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25229if test $bash_cv_std_unsetenv = yes; then
a82a04b3 25230cat >>confdefs.h <<\_ACEOF
7117c2d2 25231#define HAVE_STD_UNSETENV 1
a82a04b3 25232_ACEOF
7117c2d2
JA
25233
25234fi
25235
25236else
a82a04b3 25237cat >>confdefs.h <<\_ACEOF
7117c2d2 25238#define HAVE_STD_UNSETENV 1
a82a04b3 25239_ACEOF
7117c2d2
JA
25240
25241fi
25242
a82a04b3 25243echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
f73dda09
JA
25244echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25245if test "${bash_cv_printf_a_format+set}" = set; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25247else
25248 if test "$cross_compiling" = yes; then
a82a04b3 25249 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
f73dda09
JA
25250echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25251 bash_cv_printf_a_format=no
25252
25253else
25254 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25255/* confdefs.h. */
25256_ACEOF
25257cat confdefs.h >>conftest.$ac_ext
25258cat >>conftest.$ac_ext <<_ACEOF
25259/* end confdefs.h. */
f73dda09
JA
25260
25261#include <stdio.h>
25262#include <string.h>
25263
25264int
25265main()
25266{
25267 double y = 0.0;
25268 char abuf[1024];
25269
25270 sprintf(abuf, "%A", y);
25271 exit(strchr(abuf, 'P') == (char *)0);
25272}
25273
25274_ACEOF
25275rm -f conftest$ac_exeext
a82a04b3 25276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25277 (eval $ac_link) 2>&5
25278 ac_status=$?
a82a04b3 25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
a82a04b3 25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
25285 (exit $ac_status); }; }; then
25286 bash_cv_printf_a_format=yes
25287else
25288 echo "$as_me: program exited with status $ac_status" >&5
25289echo "$as_me: failed program was:" >&5
a82a04b3
CR
25290sed 's/^/| /' conftest.$ac_ext >&5
25291
25292( exit $ac_status )
f73dda09
JA
25293bash_cv_printf_a_format=no
25294fi
a82a04b3 25295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
25296fi
25297fi
d166f048 25298
a82a04b3 25299echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
f73dda09
JA
25300echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25301if test $bash_cv_printf_a_format = yes; then
a82a04b3 25302cat >>confdefs.h <<\_ACEOF
f73dda09 25303#define HAVE_PRINTF_A_FORMAT 1
a82a04b3 25304_ACEOF
d166f048 25305
f73dda09 25306fi
ccc6cda3 25307
a82a04b3
CR
25308
25309
25310
25311echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
f73dda09
JA
25312echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25313if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25314 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25315else
25316 if test "$cross_compiling" = yes; then
a82a04b3 25317 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
f73dda09 25318echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
25319 bash_cv_must_reinstall_sighandlers=no
25320
ccc6cda3 25321else
f73dda09 25322 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25323/* confdefs.h. */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h. */
ccc6cda3
JA
25328
25329#include <signal.h>
25330#ifdef HAVE_UNISTD_H
25331#include <unistd.h>
25332#endif
25333
25334typedef RETSIGTYPE sigfunc();
25335
25336int nsigint;
25337
25338#ifdef HAVE_POSIX_SIGNALS
25339sigfunc *
25340set_signal_handler(sig, handler)
25341 int sig;
25342 sigfunc *handler;
25343{
25344 struct sigaction act, oact;
25345 act.sa_handler = handler;
25346 act.sa_flags = 0;
25347 sigemptyset (&act.sa_mask);
25348 sigemptyset (&oact.sa_mask);
25349 sigaction (sig, &act, &oact);
25350 return (oact.sa_handler);
25351}
25352#else
25353#define set_signal_handler(s, h) signal(s, h)
25354#endif
25355
25356RETSIGTYPE
25357sigint(s)
25358int s;
25359{
25360 nsigint++;
25361}
25362
25363main()
25364{
25365 nsigint = 0;
25366 set_signal_handler(SIGINT, sigint);
25367 kill((int)getpid(), SIGINT);
25368 kill((int)getpid(), SIGINT);
25369 exit(nsigint != 2);
25370}
25371
f73dda09
JA
25372_ACEOF
25373rm -f conftest$ac_exeext
a82a04b3 25374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25375 (eval $ac_link) 2>&5
25376 ac_status=$?
a82a04b3 25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
a82a04b3 25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25383 (exit $ac_status); }; }; then
ccc6cda3
JA
25384 bash_cv_must_reinstall_sighandlers=no
25385else
f73dda09
JA
25386 echo "$as_me: program exited with status $ac_status" >&5
25387echo "$as_me: failed program was:" >&5
a82a04b3
CR
25388sed 's/^/| /' conftest.$ac_ext >&5
25389
25390( exit $ac_status )
f73dda09 25391bash_cv_must_reinstall_sighandlers=yes
ccc6cda3 25392fi
a82a04b3 25393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25394fi
ccc6cda3
JA
25395fi
25396
a82a04b3 25397echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
f73dda09 25398echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
ccc6cda3 25399if test $bash_cv_must_reinstall_sighandlers = yes; then
a82a04b3 25400cat >>confdefs.h <<\_ACEOF
ccc6cda3 25401#define MUST_REINSTALL_SIGHANDLERS 1
a82a04b3 25402_ACEOF
ccc6cda3
JA
25403
25404fi
25405
a82a04b3
CR
25406
25407echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
f73dda09
JA
25408echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25409if test "${bash_cv_job_control_missing+set}" = set; then
25410 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25411else
25412 if test "$cross_compiling" = yes; then
a82a04b3 25413 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
f73dda09 25414echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
25415 bash_cv_job_control_missing=missing
25416
ccc6cda3 25417else
f73dda09 25418 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25419/* confdefs.h. */
25420_ACEOF
25421cat confdefs.h >>conftest.$ac_ext
25422cat >>conftest.$ac_ext <<_ACEOF
25423/* end confdefs.h. */
ccc6cda3
JA
25424
25425#include <sys/types.h>
25426#ifdef HAVE_SYS_WAIT_H
25427#include <sys/wait.h>
25428#endif
25429#ifdef HAVE_UNISTD_H
25430#include <unistd.h>
25431#endif
25432#include <signal.h>
25433
25434/* Add more tests in here as appropriate. */
25435main()
25436{
25437/* signal type */
25438#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
25439exit(1);
25440#endif
25441
25442/* signals and tty control. */
25443#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
25444exit (1);
25445#endif
25446
25447/* process control */
f73dda09 25448#if !defined (WNOHANG) || !defined (WUNTRACED)
ccc6cda3
JA
25449exit(1);
25450#endif
25451
25452/* Posix systems have tcgetpgrp and waitpid. */
25453#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
25454exit(1);
25455#endif
25456
25457#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
25458exit(1);
25459#endif
25460
25461/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
25462#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
25463exit(1);
25464#endif
25465
25466exit(0);
25467}
f73dda09
JA
25468_ACEOF
25469rm -f conftest$ac_exeext
a82a04b3 25470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25471 (eval $ac_link) 2>&5
25472 ac_status=$?
a82a04b3 25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 25475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
a82a04b3 25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25479 (exit $ac_status); }; }; then
ccc6cda3
JA
25480 bash_cv_job_control_missing=present
25481else
f73dda09
JA
25482 echo "$as_me: program exited with status $ac_status" >&5
25483echo "$as_me: failed program was:" >&5
a82a04b3
CR
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486( exit $ac_status )
f73dda09 25487bash_cv_job_control_missing=missing
ccc6cda3 25488fi
a82a04b3 25489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25490fi
ccc6cda3
JA
25491fi
25492
a82a04b3 25493echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
f73dda09 25494echo "${ECHO_T}$bash_cv_job_control_missing" >&6
ccc6cda3 25495if test $bash_cv_job_control_missing = missing; then
a82a04b3 25496cat >>confdefs.h <<\_ACEOF
ccc6cda3 25497#define JOB_CONTROL_MISSING 1
a82a04b3 25498_ACEOF
ccc6cda3
JA
25499
25500fi
25501
a82a04b3 25502echo "$as_me:$LINENO: checking for presence of named pipes" >&5
f73dda09
JA
25503echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
25504if test "${bash_cv_sys_named_pipes+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25506else
25507 if test "$cross_compiling" = yes; then
a82a04b3 25508 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
f73dda09 25509echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
25510 bash_cv_sys_named_pipes=missing
25511
ccc6cda3 25512else
f73dda09 25513 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25514/* confdefs.h. */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h. */
ccc6cda3
JA
25519
25520#include <sys/types.h>
25521#include <sys/stat.h>
25522#ifdef HAVE_UNISTD_H
25523#include <unistd.h>
25524#endif
25525
25526/* Add more tests in here as appropriate. */
25527main()
25528{
bb70624e 25529int fd, err;
ccc6cda3
JA
25530
25531#if defined (HAVE_MKFIFO)
25532exit (0);
25533#endif
25534
25535#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
25536exit (1);
25537#endif
25538
25539#if defined (NeXT)
25540exit (1);
25541#endif
bb70624e
JA
25542err = mkdir("/tmp/bash-aclocal", 0700);
25543if (err < 0) {
25544 perror ("mkdir");
25545 exit(1);
25546}
25547fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
25548if (fd == -1) {
25549 rmdir ("/tmp/bash-aclocal");
ccc6cda3 25550 exit (1);
bb70624e 25551}
ccc6cda3 25552close(fd);
bb70624e
JA
25553unlink ("/tmp/bash-aclocal/sh-np-autoconf");
25554rmdir ("/tmp/bash-aclocal");
ccc6cda3
JA
25555exit(0);
25556}
f73dda09
JA
25557_ACEOF
25558rm -f conftest$ac_exeext
a82a04b3 25559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25560 (eval $ac_link) 2>&5
25561 ac_status=$?
a82a04b3 25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 25564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25565 (eval $ac_try) 2>&5
25566 ac_status=$?
a82a04b3 25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25568 (exit $ac_status); }; }; then
ccc6cda3
JA
25569 bash_cv_sys_named_pipes=present
25570else
f73dda09
JA
25571 echo "$as_me: program exited with status $ac_status" >&5
25572echo "$as_me: failed program was:" >&5
a82a04b3
CR
25573sed 's/^/| /' conftest.$ac_ext >&5
25574
25575( exit $ac_status )
f73dda09 25576bash_cv_sys_named_pipes=missing
ccc6cda3 25577fi
a82a04b3 25578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25579fi
ccc6cda3
JA
25580fi
25581
a82a04b3 25582echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
f73dda09 25583echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
ccc6cda3 25584if test $bash_cv_sys_named_pipes = missing; then
a82a04b3 25585cat >>confdefs.h <<\_ACEOF
ccc6cda3 25586#define NAMED_PIPES_MISSING 1
a82a04b3 25587_ACEOF
ccc6cda3
JA
25588
25589fi
25590
f73dda09 25591
a82a04b3 25592echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
f73dda09
JA
25593echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
25594if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596else
25597 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25598/* confdefs.h. */
25599_ACEOF
25600cat confdefs.h >>conftest.$ac_ext
25601cat >>conftest.$ac_ext <<_ACEOF
25602/* end confdefs.h. */
f73dda09
JA
25603#include <sys/types.h>
25604#include <termios.h>
25605#ifdef TIOCGWINSZ
25606 yes
25607#endif
25608
25609_ACEOF
25610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 25611 $EGREP "yes" >/dev/null 2>&1; then
f73dda09
JA
25612 ac_cv_sys_tiocgwinsz_in_termios_h=yes
25613else
25614 ac_cv_sys_tiocgwinsz_in_termios_h=no
25615fi
25616rm -f conftest*
25617
25618fi
a82a04b3 25619echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
f73dda09 25620echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
d166f048 25621
f73dda09 25622if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
a82a04b3 25623 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
f73dda09
JA
25624echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
25625if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 25627else
f73dda09 25628 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25629/* confdefs.h. */
25630_ACEOF
25631cat confdefs.h >>conftest.$ac_ext
25632cat >>conftest.$ac_ext <<_ACEOF
25633/* end confdefs.h. */
ccc6cda3
JA
25634#include <sys/types.h>
25635#include <sys/ioctl.h>
f73dda09
JA
25636#ifdef TIOCGWINSZ
25637 yes
25638#endif
25639
25640_ACEOF
25641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 25642 $EGREP "yes" >/dev/null 2>&1; then
f73dda09 25643 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
ccc6cda3 25644else
f73dda09 25645 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
ccc6cda3
JA
25646fi
25647rm -f conftest*
f73dda09 25648
ccc6cda3 25649fi
a82a04b3 25650echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
f73dda09
JA
25651echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
25652
25653 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
ccc6cda3 25654
a82a04b3 25655cat >>confdefs.h <<\_ACEOF
ccc6cda3 25656#define GWINSZ_IN_SYS_IOCTL 1
a82a04b3 25657_ACEOF
ccc6cda3 25658
f73dda09 25659 fi
ccc6cda3
JA
25660fi
25661
a82a04b3 25662echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
f73dda09
JA
25663echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
25664if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 25666else
f73dda09 25667 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25668/* confdefs.h. */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h. */
ccc6cda3
JA
25673#include <sys/types.h>
25674#include <sys/ioctl.h>
f73dda09
JA
25675int
25676main ()
25677{
ccc6cda3 25678int x = TIOCSTAT;
f73dda09
JA
25679 ;
25680 return 0;
25681}
25682_ACEOF
25683rm -f conftest.$ac_objext
a82a04b3
CR
25684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25685 (eval $ac_compile) 2>conftest.er1
f73dda09 25686 ac_status=$?
a82a04b3
CR
25687 grep -v '^ *+' conftest.er1 >conftest.err
25688 rm -f conftest.er1
25689 cat conftest.err >&5
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25691 (exit $ac_status); } &&
a82a04b3
CR
25692 { ac_try='test -z "$ac_c_werror_flag"
25693 || test ! -s conftest.err'
25694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); }; } &&
25699 { ac_try='test -s conftest.$ac_objext'
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
a82a04b3 25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25704 (exit $ac_status); }; }; then
ccc6cda3
JA
25705 bash_cv_tiocstat_in_ioctl=yes
25706else
f73dda09 25707 echo "$as_me: failed program was:" >&5
a82a04b3
CR
25708sed 's/^/| /' conftest.$ac_ext >&5
25709
f73dda09 25710bash_cv_tiocstat_in_ioctl=no
ccc6cda3 25711fi
a82a04b3 25712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
25713fi
25714
a82a04b3 25715echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
f73dda09
JA
25716echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
25717if test $bash_cv_tiocstat_in_ioctl = yes; then
a82a04b3 25718cat >>confdefs.h <<\_ACEOF
ccc6cda3 25719#define TIOCSTAT_IN_SYS_IOCTL 1
a82a04b3 25720_ACEOF
ccc6cda3
JA
25721
25722fi
25723
a82a04b3 25724echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
f73dda09
JA
25725echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
25726if test "${bash_cv_fionread_in_ioctl+set}" = set; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 25728else
f73dda09 25729 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25730/* confdefs.h. */
25731_ACEOF
25732cat confdefs.h >>conftest.$ac_ext
25733cat >>conftest.$ac_ext <<_ACEOF
25734/* end confdefs.h. */
ccc6cda3
JA
25735#include <sys/types.h>
25736#include <sys/ioctl.h>
f73dda09
JA
25737int
25738main ()
25739{
ccc6cda3 25740int x = FIONREAD;
f73dda09
JA
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
a82a04b3
CR
25746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747 (eval $ac_compile) 2>conftest.er1
f73dda09 25748 ac_status=$?
a82a04b3
CR
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25753 (exit $ac_status); } &&
a82a04b3
CR
25754 { ac_try='test -z "$ac_c_werror_flag"
25755 || test ! -s conftest.err'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; } &&
25761 { ac_try='test -s conftest.$ac_objext'
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25763 (eval $ac_try) 2>&5
25764 ac_status=$?
a82a04b3 25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25766 (exit $ac_status); }; }; then
ccc6cda3
JA
25767 bash_cv_fionread_in_ioctl=yes
25768else
f73dda09 25769 echo "$as_me: failed program was:" >&5
a82a04b3
CR
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
f73dda09 25772bash_cv_fionread_in_ioctl=no
ccc6cda3 25773fi
a82a04b3 25774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
25775fi
25776
a82a04b3 25777echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
f73dda09
JA
25778echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
25779if test $bash_cv_fionread_in_ioctl = yes; then
a82a04b3 25780cat >>confdefs.h <<\_ACEOF
ccc6cda3 25781#define FIONREAD_IN_SYS_IOCTL 1
a82a04b3 25782_ACEOF
ccc6cda3
JA
25783
25784fi
25785
a82a04b3
CR
25786
25787
25788echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
cac4cdbf
CR
25789echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
25790if test "${bash_cv_wcontinued_broken+set}" = set; then
25791 echo $ECHO_N "(cached) $ECHO_C" >&6
25792else
25793 if test "$cross_compiling" = yes; then
a82a04b3 25794 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
cac4cdbf
CR
25795echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
25796 bash_cv_wcontinued_broken=no
25797
25798else
25799 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25800/* confdefs.h. */
25801_ACEOF
25802cat confdefs.h >>conftest.$ac_ext
25803cat >>conftest.$ac_ext <<_ACEOF
25804/* end confdefs.h. */
cac4cdbf
CR
25805
25806#include <sys/types.h>
25807#include <sys/wait.h>
25808#include <unistd.h>
25809#include <errno.h>
25810
25811#ifndef errno
25812extern int errno;
25813#endif
25814main()
25815{
25816 int x;
25817
25818 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
25819 if (x == -1 && errno == EINVAL)
25820 exit (1);
25821 else
25822 exit (0);
25823}
25824
25825_ACEOF
25826rm -f conftest$ac_exeext
a82a04b3 25827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cac4cdbf
CR
25828 (eval $ac_link) 2>&5
25829 ac_status=$?
a82a04b3 25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cac4cdbf 25831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 25832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
cac4cdbf
CR
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
a82a04b3 25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cac4cdbf
CR
25836 (exit $ac_status); }; }; then
25837 bash_cv_wcontinued_broken=no
25838else
25839 echo "$as_me: program exited with status $ac_status" >&5
25840echo "$as_me: failed program was:" >&5
a82a04b3
CR
25841sed 's/^/| /' conftest.$ac_ext >&5
25842
25843( exit $ac_status )
cac4cdbf
CR
25844bash_cv_wcontinued_broken=yes
25845fi
a82a04b3 25846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cac4cdbf
CR
25847fi
25848fi
25849
a82a04b3 25850echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
cac4cdbf
CR
25851echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
25852if test $bash_cv_wcontinued_broken = yes; then
a82a04b3 25853cat >>confdefs.h <<\_ACEOF
cac4cdbf 25854#define WCONTINUED_BROKEN 1
a82a04b3 25855_ACEOF
cac4cdbf
CR
25856
25857fi
25858
a82a04b3
CR
25859
25860echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
f73dda09
JA
25861echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
25862if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 25864else
f73dda09 25865 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25866/* confdefs.h. */
25867_ACEOF
25868cat confdefs.h >>conftest.$ac_ext
25869cat >>conftest.$ac_ext <<_ACEOF
25870/* end confdefs.h. */
d166f048 25871#include <sys/types.h>
f73dda09
JA
25872int
25873main ()
25874{
d166f048 25875speed_t x;
f73dda09
JA
25876 ;
25877 return 0;
25878}
25879_ACEOF
25880rm -f conftest.$ac_objext
a82a04b3
CR
25881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25882 (eval $ac_compile) 2>conftest.er1
f73dda09 25883 ac_status=$?
a82a04b3
CR
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25888 (exit $ac_status); } &&
a82a04b3
CR
25889 { ac_try='test -z "$ac_c_werror_flag"
25890 || test ! -s conftest.err'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
25896 { ac_try='test -s conftest.$ac_objext'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
a82a04b3 25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25901 (exit $ac_status); }; }; then
d166f048
JA
25902 bash_cv_speed_t_in_sys_types=yes
25903else
f73dda09 25904 echo "$as_me: failed program was:" >&5
a82a04b3
CR
25905sed 's/^/| /' conftest.$ac_ext >&5
25906
f73dda09 25907bash_cv_speed_t_in_sys_types=no
d166f048 25908fi
a82a04b3 25909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
25910fi
25911
a82a04b3 25912echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
f73dda09
JA
25913echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
25914if test $bash_cv_speed_t_in_sys_types = yes; then
a82a04b3 25915cat >>confdefs.h <<\_ACEOF
d166f048 25916#define SPEED_T_IN_SYS_TYPES 1
a82a04b3 25917_ACEOF
d166f048
JA
25918
25919fi
25920
a82a04b3 25921echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
f73dda09
JA
25922echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
25923if test "${bash_cv_getpw_declared+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 25925else
f73dda09 25926 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25927/* confdefs.h. */
25928_ACEOF
25929cat confdefs.h >>conftest.$ac_ext
25930cat >>conftest.$ac_ext <<_ACEOF
25931/* end confdefs.h. */
28ef6c31 25932
ccc6cda3 25933#include <sys/types.h>
28ef6c31
JA
25934#ifdef HAVE_UNISTD_H
25935# include <unistd.h>
25936#endif
ccc6cda3 25937#include <pwd.h>
28ef6c31 25938
f73dda09 25939_ACEOF
28ef6c31 25940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a82a04b3 25941 $EGREP "getpwuid" >/dev/null 2>&1; then
28ef6c31 25942 bash_cv_getpw_declared=yes
ccc6cda3 25943else
28ef6c31 25944 bash_cv_getpw_declared=no
ccc6cda3
JA
25945fi
25946rm -f conftest*
28ef6c31 25947
ccc6cda3
JA
25948fi
25949
a82a04b3 25950echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
f73dda09 25951echo "${ECHO_T}$bash_cv_getpw_declared" >&6
28ef6c31 25952if test $bash_cv_getpw_declared = yes; then
a82a04b3 25953cat >>confdefs.h <<\_ACEOF
ccc6cda3 25954#define HAVE_GETPW_DECLS 1
a82a04b3 25955_ACEOF
ccc6cda3
JA
25956
25957fi
25958
a82a04b3 25959echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
f73dda09
JA
25960echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
25961if test "${bash_cv_unusable_rtsigs+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
28ef6c31
JA
25963else
25964 if test "$cross_compiling" = yes; then
a82a04b3 25965 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
f73dda09 25966echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28ef6c31
JA
25967 bash_cv_unusable_rtsigs=yes
25968
25969else
f73dda09 25970 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
25971/* confdefs.h. */
25972_ACEOF
25973cat confdefs.h >>conftest.$ac_ext
25974cat >>conftest.$ac_ext <<_ACEOF
25975/* end confdefs.h. */
28ef6c31
JA
25976
25977#include <sys/types.h>
25978#include <signal.h>
25979
25980#ifndef NSIG
25981# define NSIG 64
25982#endif
25983
25984main ()
25985{
25986 int n_sigs = 2 * NSIG;
25987#ifdef SIGRTMIN
25988 int rtmin = SIGRTMIN;
25989#else
25990 int rtmin = 0;
25991#endif
25992
25993 exit(rtmin < n_sigs);
25994}
f73dda09
JA
25995_ACEOF
25996rm -f conftest$ac_exeext
a82a04b3 25997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25998 (eval $ac_link) 2>&5
25999 ac_status=$?
a82a04b3 26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a82a04b3 26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
a82a04b3 26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26006 (exit $ac_status); }; }; then
28ef6c31
JA
26007 bash_cv_unusable_rtsigs=yes
26008else
f73dda09
JA
26009 echo "$as_me: program exited with status $ac_status" >&5
26010echo "$as_me: failed program was:" >&5
a82a04b3
CR
26011sed 's/^/| /' conftest.$ac_ext >&5
26012
26013( exit $ac_status )
f73dda09 26014bash_cv_unusable_rtsigs=no
28ef6c31 26015fi
a82a04b3 26016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28ef6c31 26017fi
28ef6c31
JA
26018fi
26019
a82a04b3 26020echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
f73dda09 26021echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
28ef6c31 26022if test $bash_cv_unusable_rtsigs = yes; then
a82a04b3 26023cat >>confdefs.h <<\_ACEOF
28ef6c31 26024#define UNUSABLE_RT_SIGNALS 1
a82a04b3 26025_ACEOF
28ef6c31
JA
26026
26027fi
26028
a82a04b3
CR
26029
26030
26031
26032
f73dda09
JA
26033if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
26034 SIGLIST_O=siglist.o
26035else
26036 SIGLIST_O=
26037fi
ccc6cda3 26038
a82a04b3
CR
26039
26040
ccc6cda3 26041case "$host_os" in
a82a04b3 26042hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
f73dda09
JA
26043echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26044if test "${bash_cv_kernel_rlimit+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26046else
f73dda09 26047 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26048/* confdefs.h. */
26049_ACEOF
26050cat confdefs.h >>conftest.$ac_ext
26051cat >>conftest.$ac_ext <<_ACEOF
26052/* end confdefs.h. */
ccc6cda3
JA
26053
26054#include <sys/types.h>
26055#include <sys/resource.h>
26056
f73dda09
JA
26057int
26058main ()
26059{
ccc6cda3
JA
26060
26061 int f;
26062 f = RLIMIT_DATA;
26063
f73dda09
JA
26064 ;
26065 return 0;
26066}
26067_ACEOF
26068rm -f conftest.$ac_objext
a82a04b3
CR
26069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26070 (eval $ac_compile) 2>conftest.er1
f73dda09 26071 ac_status=$?
a82a04b3
CR
26072 grep -v '^ *+' conftest.er1 >conftest.err
26073 rm -f conftest.er1
26074 cat conftest.err >&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26076 (exit $ac_status); } &&
a82a04b3
CR
26077 { ac_try='test -z "$ac_c_werror_flag"
26078 || test ! -s conftest.err'
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
a82a04b3
CR
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; } &&
26084 { ac_try='test -s conftest.$ac_objext'
26085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26089 (exit $ac_status); }; }; then
ccc6cda3
JA
26090 bash_cv_kernel_rlimit=no
26091else
f73dda09 26092 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26093sed 's/^/| /' conftest.$ac_ext >&5
26094
f73dda09 26095cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26096/* confdefs.h. */
26097_ACEOF
26098cat confdefs.h >>conftest.$ac_ext
26099cat >>conftest.$ac_ext <<_ACEOF
26100/* end confdefs.h. */
ccc6cda3 26101
cce855bc
JA
26102#include <sys/types.h>
26103#define _KERNEL
26104#include <sys/resource.h>
26105#undef _KERNEL
26106
f73dda09
JA
26107int
26108main ()
26109{
ccc6cda3
JA
26110
26111 int f;
26112 f = RLIMIT_DATA;
cce855bc 26113
f73dda09
JA
26114 ;
26115 return 0;
26116}
26117_ACEOF
26118rm -f conftest.$ac_objext
a82a04b3
CR
26119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26120 (eval $ac_compile) 2>conftest.er1
f73dda09 26121 ac_status=$?
a82a04b3
CR
26122 grep -v '^ *+' conftest.er1 >conftest.err
26123 rm -f conftest.er1
26124 cat conftest.err >&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26126 (exit $ac_status); } &&
a82a04b3
CR
26127 { ac_try='test -z "$ac_c_werror_flag"
26128 || test ! -s conftest.err'
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26131 ac_status=$?
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; } &&
26134 { ac_try='test -s conftest.$ac_objext'
26135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
a82a04b3 26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26139 (exit $ac_status); }; }; then
ccc6cda3
JA
26140 bash_cv_kernel_rlimit=yes
26141else
f73dda09 26142 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26143sed 's/^/| /' conftest.$ac_ext >&5
26144
f73dda09 26145bash_cv_kernel_rlimit=no
ccc6cda3 26146fi
a82a04b3 26147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26148
26149fi
a82a04b3 26150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26151fi
26152
a82a04b3 26153echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
f73dda09 26154echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
ccc6cda3 26155if test $bash_cv_kernel_rlimit = yes; then
a82a04b3 26156cat >>confdefs.h <<\_ACEOF
ccc6cda3 26157#define RLIMIT_NEEDS_KERNEL 1
a82a04b3 26158_ACEOF
ccc6cda3
JA
26159
26160fi
26161 ;;
26162esac
26163
26164if test "$opt_readline" = yes; then
d166f048
JA
26165case "$host_os" in
26166aix*) prefer_curses=yes ;;
26167esac
ccc6cda3
JA
26168
26169if test "X$bash_cv_termcap_lib" = "X"; then
26170_bash_needmsg=yes
26171else
a82a04b3 26172echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 26173echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
ccc6cda3
JA
26174_bash_needmsg=
26175fi
f73dda09
JA
26176if test "${bash_cv_termcap_lib+set}" = set; then
26177 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26178else
a82a04b3 26179 echo "$as_me:$LINENO: checking for tgetent" >&5
d3a24ed2
CR
26180echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26181if test "${ac_cv_func_tgetent+set}" = set; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26183else
26184 cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26185/* confdefs.h. */
26186_ACEOF
26187cat confdefs.h >>conftest.$ac_ext
26188cat >>conftest.$ac_ext <<_ACEOF
26189/* end confdefs.h. */
26190/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192#define tgetent innocuous_tgetent
26193
d3a24ed2 26194/* System header to define __stub macros and hopefully few prototypes,
a82a04b3
CR
26195 which can conflict with char tgetent (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26198
26199#ifdef __STDC__
26200# include <limits.h>
26201#else
26202# include <assert.h>
26203#endif
26204
26205#undef tgetent
26206
d3a24ed2
CR
26207/* Override any gcc2 internal prototype to avoid an error. */
26208#ifdef __cplusplus
26209extern "C"
a82a04b3 26210{
d3a24ed2
CR
26211#endif
26212/* We use char because int might match the return type of a gcc2
26213 builtin and then its argument prototype would still apply. */
26214char tgetent ();
d3a24ed2
CR
26215/* The GNU C library defines this for functions which it implements
26216 to always fail with ENOSYS. Some functions are actually named
26217 something starting with __ and the normal name is an alias. */
26218#if defined (__stub_tgetent) || defined (__stub___tgetent)
26219choke me
26220#else
a82a04b3
CR
26221char (*f) () = tgetent;
26222#endif
26223#ifdef __cplusplus
26224}
d3a24ed2
CR
26225#endif
26226
a82a04b3
CR
26227int
26228main ()
26229{
26230return f != tgetent;
d3a24ed2
CR
26231 ;
26232 return 0;
26233}
26234_ACEOF
26235rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
26236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237 (eval $ac_link) 2>conftest.er1
d3a24ed2 26238 ac_status=$?
a82a04b3
CR
26239 grep -v '^ *+' conftest.er1 >conftest.err
26240 rm -f conftest.er1
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2 26243 (exit $ac_status); } &&
a82a04b3
CR
26244 { ac_try='test -z "$ac_c_werror_flag"
26245 || test ! -s conftest.err'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
d3a24ed2
CR
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
a82a04b3
CR
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; } &&
26251 { ac_try='test -s conftest$ac_exeext'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d3a24ed2
CR
26256 (exit $ac_status); }; }; then
26257 ac_cv_func_tgetent=yes
26258else
26259 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26260sed 's/^/| /' conftest.$ac_ext >&5
26261
d3a24ed2
CR
26262ac_cv_func_tgetent=no
26263fi
a82a04b3
CR
26264rm -f conftest.err conftest.$ac_objext \
26265 conftest$ac_exeext conftest.$ac_ext
d3a24ed2 26266fi
a82a04b3 26267echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
d3a24ed2
CR
26268echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26269if test $ac_cv_func_tgetent = yes; then
26270 bash_cv_termcap_lib=libc
26271else
a82a04b3 26272 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
f73dda09
JA
26273echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26274if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26276else
f73dda09 26277 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 26278LIBS="-ltermcap $LIBS"
f73dda09 26279cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26280/* confdefs.h. */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h. */
f73dda09 26285
ccc6cda3 26286/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
26287#ifdef __cplusplus
26288extern "C"
26289#endif
ccc6cda3 26290/* We use char because int might match the return type of a gcc2
f73dda09
JA
26291 builtin and then its argument prototype would still apply. */
26292char tgetent ();
26293int
26294main ()
26295{
26296tgetent ();
26297 ;
26298 return 0;
26299}
26300_ACEOF
26301rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
26302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26303 (eval $ac_link) 2>conftest.er1
f73dda09 26304 ac_status=$?
a82a04b3
CR
26305 grep -v '^ *+' conftest.er1 >conftest.err
26306 rm -f conftest.er1
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26309 (exit $ac_status); } &&
a82a04b3
CR
26310 { ac_try='test -z "$ac_c_werror_flag"
26311 || test ! -s conftest.err'
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; } &&
26317 { ac_try='test -s conftest$ac_exeext'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
a82a04b3 26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
26322 (exit $ac_status); }; }; then
26323 ac_cv_lib_termcap_tgetent=yes
26324else
26325 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26326sed 's/^/| /' conftest.$ac_ext >&5
26327
f73dda09
JA
26328ac_cv_lib_termcap_tgetent=no
26329fi
a82a04b3
CR
26330rm -f conftest.err conftest.$ac_objext \
26331 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
26332LIBS=$ac_check_lib_save_LIBS
26333fi
a82a04b3 26334echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
f73dda09
JA
26335echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26336if test $ac_cv_lib_termcap_tgetent = yes; then
ccc6cda3
JA
26337 bash_cv_termcap_lib=libtermcap
26338else
a82a04b3 26339 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
f73dda09
JA
26340echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26341if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26343else
f73dda09
JA
26344 ac_check_lib_save_LIBS=$LIBS
26345LIBS="-ltinfo $LIBS"
26346cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26347/* confdefs.h. */
26348_ACEOF
26349cat confdefs.h >>conftest.$ac_ext
26350cat >>conftest.$ac_ext <<_ACEOF
26351/* end confdefs.h. */
f73dda09 26352
ccc6cda3 26353/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
26354#ifdef __cplusplus
26355extern "C"
26356#endif
ccc6cda3 26357/* We use char because int might match the return type of a gcc2
f73dda09
JA
26358 builtin and then its argument prototype would still apply. */
26359char tgetent ();
26360int
26361main ()
26362{
26363tgetent ();
26364 ;
26365 return 0;
26366}
26367_ACEOF
26368rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
26369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26370 (eval $ac_link) 2>conftest.er1
f73dda09 26371 ac_status=$?
a82a04b3
CR
26372 grep -v '^ *+' conftest.er1 >conftest.err
26373 rm -f conftest.er1
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26376 (exit $ac_status); } &&
a82a04b3
CR
26377 { ac_try='test -z "$ac_c_werror_flag"
26378 || test ! -s conftest.err'
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; } &&
26384 { ac_try='test -s conftest$ac_exeext'
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
a82a04b3 26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
26389 (exit $ac_status); }; }; then
26390 ac_cv_lib_tinfo_tgetent=yes
26391else
26392 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26393sed 's/^/| /' conftest.$ac_ext >&5
26394
f73dda09
JA
26395ac_cv_lib_tinfo_tgetent=no
26396fi
a82a04b3
CR
26397rm -f conftest.err conftest.$ac_objext \
26398 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
26399LIBS=$ac_check_lib_save_LIBS
26400fi
a82a04b3 26401echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
f73dda09
JA
26402echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26403if test $ac_cv_lib_tinfo_tgetent = yes; then
7117c2d2 26404 bash_cv_termcap_lib=libtinfo
f73dda09 26405else
a82a04b3 26406 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
f73dda09
JA
26407echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26408if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26409 echo $ECHO_N "(cached) $ECHO_C" >&6
26410else
26411 ac_check_lib_save_LIBS=$LIBS
26412LIBS="-lcurses $LIBS"
26413cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26414/* confdefs.h. */
26415_ACEOF
26416cat confdefs.h >>conftest.$ac_ext
26417cat >>conftest.$ac_ext <<_ACEOF
26418/* end confdefs.h. */
ccc6cda3 26419
f73dda09
JA
26420/* Override any gcc2 internal prototype to avoid an error. */
26421#ifdef __cplusplus
26422extern "C"
26423#endif
26424/* We use char because int might match the return type of a gcc2
26425 builtin and then its argument prototype would still apply. */
26426char tgetent ();
26427int
26428main ()
26429{
26430tgetent ();
26431 ;
26432 return 0;
26433}
26434_ACEOF
26435rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
26436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26437 (eval $ac_link) 2>conftest.er1
f73dda09 26438 ac_status=$?
a82a04b3
CR
26439 grep -v '^ *+' conftest.er1 >conftest.err
26440 rm -f conftest.er1
26441 cat conftest.err >&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26443 (exit $ac_status); } &&
a82a04b3
CR
26444 { ac_try='test -z "$ac_c_werror_flag"
26445 || test ! -s conftest.err'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; } &&
26451 { ac_try='test -s conftest$ac_exeext'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
a82a04b3 26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
26456 (exit $ac_status); }; }; then
26457 ac_cv_lib_curses_tgetent=yes
26458else
26459 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26460sed 's/^/| /' conftest.$ac_ext >&5
26461
f73dda09
JA
26462ac_cv_lib_curses_tgetent=no
26463fi
a82a04b3
CR
26464rm -f conftest.err conftest.$ac_objext \
26465 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
26466LIBS=$ac_check_lib_save_LIBS
26467fi
a82a04b3 26468echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
f73dda09
JA
26469echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
26470if test $ac_cv_lib_curses_tgetent = yes; then
ccc6cda3
JA
26471 bash_cv_termcap_lib=libcurses
26472else
a82a04b3 26473 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
f73dda09
JA
26474echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
26475if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
26476 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26477else
f73dda09 26478 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 26479LIBS="-lncurses $LIBS"
f73dda09 26480cat >conftest.$ac_ext <<_ACEOF
a82a04b3
CR
26481/* confdefs.h. */
26482_ACEOF
26483cat confdefs.h >>conftest.$ac_ext
26484cat >>conftest.$ac_ext <<_ACEOF
26485/* end confdefs.h. */
f73dda09 26486
ccc6cda3 26487/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
26488#ifdef __cplusplus
26489extern "C"
26490#endif
ccc6cda3 26491/* We use char because int might match the return type of a gcc2
f73dda09
JA
26492 builtin and then its argument prototype would still apply. */
26493char tgetent ();
26494int
26495main ()
26496{
26497tgetent ();
26498 ;
26499 return 0;
26500}
26501_ACEOF
26502rm -f conftest.$ac_objext conftest$ac_exeext
a82a04b3
CR
26503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26504 (eval $ac_link) 2>conftest.er1
f73dda09 26505 ac_status=$?
a82a04b3
CR
26506 grep -v '^ *+' conftest.er1 >conftest.err
26507 rm -f conftest.er1
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26510 (exit $ac_status); } &&
a82a04b3
CR
26511 { ac_try='test -z "$ac_c_werror_flag"
26512 || test ! -s conftest.err'
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
a82a04b3
CR
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; } &&
26518 { ac_try='test -s conftest$ac_exeext'
26519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26520 (eval $ac_try) 2>&5
26521 ac_status=$?
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
26523 (exit $ac_status); }; }; then
26524 ac_cv_lib_ncurses_tgetent=yes
26525else
26526 echo "$as_me: failed program was:" >&5
a82a04b3
CR
26527sed 's/^/| /' conftest.$ac_ext >&5
26528
f73dda09
JA
26529ac_cv_lib_ncurses_tgetent=no
26530fi
a82a04b3
CR
26531rm -f conftest.err conftest.$ac_objext \
26532 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
26533LIBS=$ac_check_lib_save_LIBS
26534fi
a82a04b3 26535echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
f73dda09
JA
26536echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
26537if test $ac_cv_lib_ncurses_tgetent = yes; then
26538 bash_cv_termcap_lib=libncurses
ccc6cda3 26539else
f73dda09 26540 bash_cv_termcap_lib=gnutermcap
ccc6cda3 26541fi
ccc6cda3 26542
ccc6cda3
JA
26543fi
26544
26545fi
26546
26547fi
26548
26549fi
26550
d3a24ed2
CR
26551fi
26552
ccc6cda3 26553if test "X$_bash_needmsg" = "Xyes"; then
a82a04b3 26554echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 26555echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
ccc6cda3 26556fi
a82a04b3 26557echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
f73dda09 26558echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
cce855bc 26559if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
26560LDFLAGS="$LDFLAGS -L./lib/termcap"
26561TERMCAP_LIB="./lib/termcap/libtermcap.a"
26562TERMCAP_DEP="./lib/termcap/libtermcap.a"
d166f048 26563elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
26564TERMCAP_LIB=-ltermcap
26565TERMCAP_DEP=
f73dda09
JA
26566elif test $bash_cv_termcap_lib = libtinfo; then
26567TERMCAP_LIB=-ltinfo
26568TERMCAP_DEP=
ccc6cda3
JA
26569elif test $bash_cv_termcap_lib = libncurses; then
26570TERMCAP_LIB=-lncurses
26571TERMCAP_DEP=
d3a24ed2
CR
26572elif test $bash_cv_termcap_lib = libc; then
26573TERMCAP_LIB=
26574TERMCAP_DEP=
ccc6cda3
JA
26575else
26576TERMCAP_LIB=-lcurses
26577TERMCAP_DEP=
26578fi
26579
26580fi
26581
a82a04b3
CR
26582
26583
26584echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
f73dda09
JA
26585echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
26586if test "${bash_cv_dev_fd+set}" = set; then
26587 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 26588else
d3a24ed2 26589 if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
de3341d1
CR
26590# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
26591 exec 3<&0
26592 if test -r /dev/fd/3; then
26593 bash_cv_dev_fd=standard
26594 else
26595 bash_cv_dev_fd=absent
26596 fi
26597 exec 3<&-
d3a24ed2 26598 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
d166f048
JA
26599 bash_cv_dev_fd=whacky
26600 else
26601 bash_cv_dev_fd=absent
26602 fi
26603
26604fi
26605
a82a04b3 26606echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
f73dda09 26607echo "${ECHO_T}$bash_cv_dev_fd" >&6
d166f048 26608if test $bash_cv_dev_fd = "standard"; then
a82a04b3 26609 cat >>confdefs.h <<\_ACEOF
d166f048 26610#define HAVE_DEV_FD 1
a82a04b3 26611_ACEOF
d166f048 26612
a82a04b3 26613 cat >>confdefs.h <<\_ACEOF
d166f048 26614#define DEV_FD_PREFIX "/dev/fd/"
a82a04b3 26615_ACEOF
d166f048
JA
26616
26617elif test $bash_cv_dev_fd = "whacky"; then
a82a04b3 26618 cat >>confdefs.h <<\_ACEOF
d166f048 26619#define HAVE_DEV_FD 1
a82a04b3 26620_ACEOF
d166f048 26621
a82a04b3 26622 cat >>confdefs.h <<\_ACEOF
d166f048 26623#define DEV_FD_PREFIX "/proc/self/fd/"
a82a04b3 26624_ACEOF
d166f048
JA
26625
26626fi
26627
a82a04b3 26628echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
f73dda09
JA
26629echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
26630if test "${bash_cv_dev_stdin+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 26632else
d3a24ed2 26633 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
bb70624e 26634 bash_cv_dev_stdin=present
d3a24ed2 26635 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
bb70624e
JA
26636 bash_cv_dev_stdin=present
26637 else
26638 bash_cv_dev_stdin=absent
26639 fi
26640
26641fi
26642
a82a04b3 26643echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
f73dda09 26644echo "${ECHO_T}$bash_cv_dev_stdin" >&6
bb70624e 26645if test $bash_cv_dev_stdin = "present"; then
a82a04b3 26646 cat >>confdefs.h <<\_ACEOF
bb70624e 26647#define HAVE_DEV_STDIN 1
a82a04b3 26648_ACEOF
bb70624e
JA
26649
26650fi
26651
a82a04b3 26652echo "$as_me:$LINENO: checking for default mail directory" >&5
f73dda09
JA
26653echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
26654if test "${bash_cv_mail_dir+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
26656else
26657 if test -d /var/mail; then
26658 bash_cv_mail_dir=/var/mail
ccc6cda3
JA
26659 elif test -d /var/spool/mail; then
26660 bash_cv_mail_dir=/var/spool/mail
7117c2d2
JA
26661 elif test -d /usr/mail; then
26662 bash_cv_mail_dir=/usr/mail
e8ce775d
JA
26663 elif test -d /usr/spool/mail; then
26664 bash_cv_mail_dir=/usr/spool/mail
ccc6cda3
JA
26665 else
26666 bash_cv_mail_dir=unknown
26667 fi
26668
26669fi
26670
a82a04b3 26671echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
f73dda09 26672echo "${ECHO_T}$bash_cv_mail_dir" >&6
a82a04b3 26673cat >>confdefs.h <<_ACEOF
7117c2d2 26674#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
a82a04b3
CR
26675_ACEOF
26676
26677
ccc6cda3 26678
ccc6cda3
JA
26679if test "$bash_cv_job_control_missing" = missing; then
26680 opt_job_control=no
26681fi
26682
26683if test "$opt_job_control" = yes; then
a82a04b3 26684cat >>confdefs.h <<\_ACEOF
ccc6cda3 26685#define JOB_CONTROL 1
a82a04b3 26686_ACEOF
ccc6cda3
JA
26687
26688JOBS_O=jobs.o
26689else
26690JOBS_O=nojobs.o
26691fi
26692
a82a04b3
CR
26693
26694
26695
d166f048
JA
26696LOCAL_DEFS=-DSHELL
26697
a82a04b3 26698
b72432fd 26699case "${host_os}" in
a82a04b3 26700sysv4.2*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 26701#define SVR4_2 1
a82a04b3 26702_ACEOF
ccc6cda3 26703
a82a04b3 26704 cat >>confdefs.h <<\_ACEOF
ccc6cda3 26705#define SVR4 1
a82a04b3 26706_ACEOF
ccc6cda3 26707 ;;
a82a04b3 26708sysv4*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 26709#define SVR4 1
a82a04b3 26710_ACEOF
ccc6cda3 26711 ;;
a82a04b3 26712sysv5*) cat >>confdefs.h <<\_ACEOF
b72432fd 26713#define SVR5 1
a82a04b3 26714_ACEOF
b72432fd
JA
26715 ;;
26716hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
ccc6cda3
JA
26717hpux*) LOCAL_CFLAGS=-DHPUX ;;
26718dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
bb70624e
JA
26719isc*) LOCAL_CFLAGS=-Disc386 ;;
26720rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
f73dda09 26721darwin*) LOCAL_CFLAGS=-DMACOSX ;;
7117c2d2
JA
26722sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
26723sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
ccc6cda3 26724sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
d166f048
JA
26725sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
26726solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
b72432fd 26727lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
3ffb039a
CR
26728linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26729 case "`uname -r`" in
26730 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
26731#define PGRP_PIPE 1
26732_ACEOF
26733 ;;
26734 esac ;;
7117c2d2 26735*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
b72432fd 26736powerux*) LOCAL_LIBS="-lgen" ;;
d3a24ed2 26737cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
e624d0f7 26738opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
b72432fd
JA
26739esac
26740
26741case "${host_os}-${CC}" in
26742aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
26743aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
26744bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
ccc6cda3
JA
26745esac
26746
bb70624e 26747case "${host_os}" in
28ef6c31
JA
26748freebsd[3-9]*)
26749 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
bb70624e
JA
26750 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26751 fi ;;
28ef6c31 26752freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
bb70624e
JA
26753esac
26754
ccc6cda3
JA
26755case "$host_cpu" in
26756*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
26757esac
26758
26759case "$host_cpu-$host_os" in
26760ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
26761esac
26762
26763case "$host_cpu-$host_vendor-$host_os" in
26764m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
26765mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
26766esac
26767
b72432fd
JA
26768#
26769# Shared object configuration section. These values are generated by
26770# ${srcdir}/support/shobj-conf
26771#
26772if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
26773then
a82a04b3 26774 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
f73dda09 26775echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
28ef6c31 26776 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
f73dda09 26777
a82a04b3
CR
26778
26779
26780
26781
26782
26783
26784 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
f73dda09 26785echo "${ECHO_T}$SHOBJ_STATUS" >&6
b72432fd
JA
26786fi
26787
ccc6cda3
JA
26788# try to create a directory tree if the source is elsewhere
26789# this should be packaged into a script accessible via ${srcdir}/support
26790case "$srcdir" in
26791.) ;;
cce855bc 26792*) for d in doc tests support lib examples; do # dirs
ccc6cda3
JA
26793 test -d $d || mkdir $d
26794 done
cce855bc 26795 for ld in readline glob tilde malloc sh termcap; do # libdirs
ccc6cda3
JA
26796 test -d lib/$ld || mkdir lib/$ld
26797 done
cce855bc 26798 test -d examples/loadables || mkdir examples/loadables # loadable builtins
bb70624e 26799 test -d examples/loadables/perl || mkdir examples/loadables/perl
ccc6cda3
JA
26800 ;;
26801esac
26802
26803BUILD_DIR=`pwd`
10590446
CR
26804case "$BUILD_DIR" in
26805*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
26806*) ;;
26807esac
ccc6cda3 26808
a82a04b3
CR
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
d166f048
JA
26832#AC_SUBST(ALLOCA_SOURCE)
26833#AC_SUBST(ALLOCA_OBJECT)
26834
a82a04b3
CR
26835 ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile pathnames.h"
26836 ac_config_commands="$ac_config_commands default"
f73dda09 26837cat >confcache <<\_ACEOF
ccc6cda3
JA
26838# This file is a shell script that caches the results of configure
26839# tests run on this system so they can be shared between configure
f73dda09
JA
26840# scripts and configure runs, see configure's option --config-cache.
26841# It is not useful on other systems. If it contains results you don't
26842# want to keep, you may remove or edit it.
726f6388 26843#
f73dda09
JA
26844# config.status only pays attention to the cache file if you give it
26845# the --recheck option to rerun configure.
ccc6cda3 26846#
a82a04b3 26847# `ac_cv_env_foo' variables (set or unset) will be overridden when
f73dda09
JA
26848# loading this file, other *unset* `ac_cv_foo' will be assigned the
26849# following values.
26850
26851_ACEOF
26852
ccc6cda3
JA
26853# The following way of writing the cache mishandles newlines in values,
26854# but we know of no workaround that is simple, portable, and efficient.
26855# So, don't put newlines in cache variables' values.
26856# Ultrix sh set writes to stderr and can't be redirected directly,
26857# and sets the high bit in the cache file unless we assign to the vars.
f73dda09
JA
26858{
26859 (set) 2>&1 |
26860 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26861 *ac_space=\ *)
26862 # `set' does not quote correctly, so add quotes (double-quote
26863 # substitution turns \\\\ into \\, and sed turns \\ into \).
26864 sed -n \
a82a04b3
CR
26865 "s/'/'\\\\''/g;
26866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
f73dda09
JA
26867 ;;
26868 *)
26869 # `set' quotes correctly as required by POSIX, so do not add quotes.
26870 sed -n \
a82a04b3 26871 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
f73dda09
JA
26872 ;;
26873 esac;
26874} |
26875 sed '
26876 t clear
26877 : clear
26878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26879 t end
26880 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26881 : end' >>confcache
a82a04b3 26882if diff $cache_file confcache >/dev/null 2>&1; then :; else
ccc6cda3 26883 if test -w $cache_file; then
f73dda09
JA
26884 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26885 cat confcache >$cache_file
ccc6cda3
JA
26886 else
26887 echo "not updating unwritable cache $cache_file"
26888 fi
26889fi
26890rm -f confcache
26891
ccc6cda3
JA
26892test "x$prefix" = xNONE && prefix=$ac_default_prefix
26893# Let make expand exec_prefix.
26894test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26895
f73dda09
JA
26896# VPATH may cause trouble with some makes, so we remove $(srcdir),
26897# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26898# trailing colons and then remove the whole line if VPATH becomes empty
26899# (actually we leave an empty line to preserve line numbers).
ccc6cda3 26900if test "x$srcdir" = x.; then
a82a04b3 26901 ac_vpsub='/^[ ]*VPATH[ ]*=/{
f73dda09
JA
26902s/:*\$(srcdir):*/:/;
26903s/:*\${srcdir}:*/:/;
26904s/:*@srcdir@:*/:/;
a82a04b3 26905s/^\([^=]*=[ ]*\):*/\1/;
f73dda09 26906s/:*$//;
a82a04b3 26907s/^[^=]*=[ ]*$//;
f73dda09 26908}'
ccc6cda3
JA
26909fi
26910
ccc6cda3
JA
26911DEFS=-DHAVE_CONFIG_H
26912
a82a04b3
CR
26913ac_libobjs=
26914ac_ltlibobjs=
26915for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26916 # 1. Remove the extension, and $U if already installed.
26917 ac_i=`echo "$ac_i" |
26918 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26919 # 2. Add them.
26920 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26921 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26922done
26923LIBOBJS=$ac_libobjs
26924
26925LTLIBOBJS=$ac_ltlibobjs
26926
26927
26928
ccc6cda3 26929: ${CONFIG_STATUS=./config.status}
f73dda09
JA
26930ac_clean_files_save=$ac_clean_files
26931ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a82a04b3 26932{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f73dda09
JA
26933echo "$as_me: creating $CONFIG_STATUS" >&6;}
26934cat >$CONFIG_STATUS <<_ACEOF
26935#! $SHELL
a82a04b3 26936# Generated by $as_me.
ccc6cda3 26937# Run this file to recreate the current configuration.
ccc6cda3 26938# Compiler output produced by configure, useful for debugging
f73dda09 26939# configure, is in config.log if it exists.
ccc6cda3 26940
f73dda09 26941debug=false
a82a04b3
CR
26942ac_cs_recheck=false
26943ac_cs_silent=false
f73dda09 26944SHELL=\${CONFIG_SHELL-$SHELL}
f73dda09
JA
26945_ACEOF
26946
26947cat >>$CONFIG_STATUS <<\_ACEOF
a82a04b3
CR
26948## --------------------- ##
26949## M4sh Initialization. ##
26950## --------------------- ##
26951
f73dda09
JA
26952# Be Bourne compatible
26953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26954 emulate sh
26955 NULLCMD=:
a82a04b3
CR
26956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26957 # is contrary to our usage. Disable this feature.
26958 alias -g '${1+"$@"}'='"$@"'
f73dda09
JA
26959elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26960 set -o posix
26961fi
a82a04b3
CR
26962DUALCASE=1; export DUALCASE # for MKS sh
26963
26964# Support unset when possible.
26965if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26966 as_unset=unset
26967else
26968 as_unset=false
26969fi
26970
26971
26972# Work around bugs in pre-3.0 UWIN ksh.
26973$as_unset ENV MAIL MAILPATH
26974PS1='$ '
26975PS2='> '
26976PS4='+ '
26977
26978# NLS nuisances.
26979for as_var in \
26980 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26981 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26982 LC_TELEPHONE LC_TIME
26983do
26984 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26985 eval $as_var=C; export $as_var
26986 else
26987 $as_unset $as_var
26988 fi
26989done
26990
26991# Required to use basename.
26992if expr a : '\(a\)' >/dev/null 2>&1; then
26993 as_expr=expr
26994else
26995 as_expr=false
26996fi
26997
26998if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26999 as_basename=basename
27000else
27001 as_basename=false
27002fi
27003
f73dda09
JA
27004
27005# Name of the executable.
a82a04b3
CR
27006as_me=`$as_basename "$0" ||
27007$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27008 X"$0" : 'X\(//\)$' \| \
27009 X"$0" : 'X\(/\)$' \| \
27010 . : '\(.\)' 2>/dev/null ||
27011echo X/"$0" |
27012 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27013 /^X\/\(\/\/\)$/{ s//\1/; q; }
27014 /^X\/\(\/\).*/{ s//\1/; q; }
27015 s/.*/./; q'`
27016
27017
27018# PATH needs CR, and LINENO needs CR and PATH.
27019# Avoid depending upon Character Ranges.
27020as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27021as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27022as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27023as_cr_digits='0123456789'
27024as_cr_alnum=$as_cr_Letters$as_cr_digits
27025
27026# The user is always right.
27027if test "${PATH_SEPARATOR+set}" != set; then
27028 echo "#! /bin/sh" >conf$$.sh
27029 echo "exit 0" >>conf$$.sh
27030 chmod +x conf$$.sh
27031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27032 PATH_SEPARATOR=';'
27033 else
27034 PATH_SEPARATOR=:
27035 fi
27036 rm -f conf$$.sh
27037fi
27038
27039
27040 as_lineno_1=$LINENO
27041 as_lineno_2=$LINENO
27042 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27043 test "x$as_lineno_1" != "x$as_lineno_2" &&
27044 test "x$as_lineno_3" = "x$as_lineno_2" || {
27045 # Find who we are. Look in the path if we contain no path at all
27046 # relative or not.
27047 case $0 in
27048 *[\\/]* ) as_myself=$0 ;;
27049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27050for as_dir in $PATH
27051do
27052 IFS=$as_save_IFS
27053 test -z "$as_dir" && as_dir=.
27054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27055done
27056
27057 ;;
27058 esac
27059 # We did not find ourselves, most probably we were run as `sh COMMAND'
27060 # in which case we are not to be found in the path.
27061 if test "x$as_myself" = x; then
27062 as_myself=$0
27063 fi
27064 if test ! -f "$as_myself"; then
27065 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27066echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27067 { (exit 1); exit 1; }; }
27068 fi
27069 case $CONFIG_SHELL in
27070 '')
27071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27072for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27073do
27074 IFS=$as_save_IFS
27075 test -z "$as_dir" && as_dir=.
27076 for as_base in sh bash ksh sh5; do
27077 case $as_dir in
27078 /*)
27079 if ("$as_dir/$as_base" -c '
27080 as_lineno_1=$LINENO
27081 as_lineno_2=$LINENO
27082 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27083 test "x$as_lineno_1" != "x$as_lineno_2" &&
27084 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27085 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27086 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27087 CONFIG_SHELL=$as_dir/$as_base
27088 export CONFIG_SHELL
27089 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27090 fi;;
27091 esac
27092 done
27093done
27094;;
27095 esac
27096
27097 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27098 # uniformly replaced by the line number. The first 'sed' inserts a
27099 # line-number line before each line; the second 'sed' does the real
27100 # work. The second script uses 'N' to pair each line-number line
27101 # with the numbered line, and appends trailing '-' during
27102 # substitution so that $LINENO is not a special case at line end.
27103 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27104 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27105 sed '=' <$as_myself |
27106 sed '
27107 N
27108 s,$,-,
27109 : loop
27110 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27111 t loop
27112 s,-$,,
27113 s,^['$as_cr_digits']*\n,,
27114 ' >$as_me.lineno &&
27115 chmod +x $as_me.lineno ||
27116 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27117echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27118 { (exit 1); exit 1; }; }
27119
27120 # Don't try to exec as it changes $[0], causing all sort of problems
27121 # (the dirname of $[0] is not the place where we might find the
27122 # original and so on. Autoconf is especially sensible to this).
27123 . ./$as_me.lineno
27124 # Exit status is that of the last command.
27125 exit
27126}
27127
27128
27129case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27130 *c*,-n*) ECHO_N= ECHO_C='
27131' ECHO_T=' ' ;;
27132 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27133 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27134esac
f73dda09
JA
27135
27136if expr a : '\(a\)' >/dev/null 2>&1; then
27137 as_expr=expr
27138else
27139 as_expr=false
27140fi
27141
27142rm -f conf$$ conf$$.exe conf$$.file
27143echo >conf$$.file
27144if ln -s conf$$.file conf$$ 2>/dev/null; then
27145 # We could just check for DJGPP; but this test a) works b) is more generic
27146 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27147 if test -f conf$$.exe; then
27148 # Don't use ln at all; we don't have any links
27149 as_ln_s='cp -p'
27150 else
27151 as_ln_s='ln -s'
27152 fi
27153elif ln conf$$.file conf$$ 2>/dev/null; then
27154 as_ln_s=ln
27155else
27156 as_ln_s='cp -p'
27157fi
27158rm -f conf$$ conf$$.exe conf$$.file
27159
a82a04b3
CR
27160if mkdir -p . 2>/dev/null; then
27161 as_mkdir_p=:
e624d0f7 27162else
a82a04b3
CR
27163 test -d ./-p && rmdir ./-p
27164 as_mkdir_p=false
e624d0f7 27165fi
545f34cf 27166
a82a04b3
CR
27167as_executable_p="test -f"
27168
27169# Sed expression to map a string onto a valid CPP name.
27170as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27171
27172# Sed expression to map a string onto a valid variable name.
27173as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27174
f73dda09
JA
27175
27176# IFS
27177# We need space, tab and new line, in precisely that order.
27178as_nl='
27179'
27180IFS=" $as_nl"
27181
27182# CDPATH.
a82a04b3 27183$as_unset CDPATH
f73dda09
JA
27184
27185exec 6>&1
27186
a82a04b3
CR
27187# Open the log real soon, to keep \$[0] and so on meaningful, and to
27188# report actual input values of CONFIG_FILES etc. instead of their
27189# values after options handling. Logging --version etc. is OK.
27190exec 5>>config.log
27191{
27192 echo
27193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27194## Running $as_me. ##
27195_ASBOX
27196} >&5
27197cat >&5 <<_CSEOF
27198
27199This file was extended by bash $as_me 3.1-devel, which was
27200generated by GNU Autoconf 2.59. Invocation command line was
27201
27202 CONFIG_FILES = $CONFIG_FILES
27203 CONFIG_HEADERS = $CONFIG_HEADERS
27204 CONFIG_LINKS = $CONFIG_LINKS
27205 CONFIG_COMMANDS = $CONFIG_COMMANDS
27206 $ $0 $@
27207
27208_CSEOF
27209echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27210echo >&5
f73dda09
JA
27211_ACEOF
27212
27213# Files that config.status was made for.
27214if test -n "$ac_config_files"; then
27215 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27216fi
27217
27218if test -n "$ac_config_headers"; then
27219 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27220fi
27221
27222if test -n "$ac_config_links"; then
27223 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27224fi
27225
27226if test -n "$ac_config_commands"; then
27227 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27228fi
27229
a82a04b3 27230cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27231
27232ac_cs_usage="\
27233\`$as_me' instantiates files from templates according to the
27234current configuration.
27235
27236Usage: $0 [OPTIONS] [FILE]...
27237
27238 -h, --help print this help, then exit
27239 -V, --version print version number, then exit
a82a04b3 27240 -q, --quiet do not print progress messages
f73dda09
JA
27241 -d, --debug don't remove temporary files
27242 --recheck update $as_me by reconfiguring in the same conditions
27243 --file=FILE[:TEMPLATE]
a82a04b3 27244 instantiate the configuration file FILE
f73dda09 27245 --header=FILE[:TEMPLATE]
a82a04b3 27246 instantiate the configuration header FILE
f73dda09
JA
27247
27248Configuration files:
27249$config_files
27250
27251Configuration headers:
27252$config_headers
27253
27254Configuration commands:
27255$config_commands
27256
27257Report bugs to <bug-autoconf@gnu.org>."
a82a04b3 27258_ACEOF
f73dda09 27259
a82a04b3 27260cat >>$CONFIG_STATUS <<_ACEOF
f73dda09 27261ac_cs_version="\\
301e2142 27262bash config.status 3.1-devel
a82a04b3 27263configured by $0, generated by GNU Autoconf 2.59,
f73dda09
JA
27264 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27265
a82a04b3 27266Copyright (C) 2003 Free Software Foundation, Inc.
f73dda09
JA
27267This config.status script is free software; the Free Software Foundation
27268gives unlimited permission to copy, distribute and modify it."
27269srcdir=$srcdir
27270INSTALL="$INSTALL"
a82a04b3 27271_ACEOF
f73dda09 27272
a82a04b3 27273cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27274# If no file are specified by the user, then we need to provide default
27275# value. By we need to know if files were specified by the user.
27276ac_need_defaults=:
27277while test $# != 0
ccc6cda3 27278do
f73dda09
JA
27279 case $1 in
27280 --*=*)
27281 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27282 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a82a04b3
CR
27283 ac_shift=:
27284 ;;
27285 -*)
27286 ac_option=$1
27287 ac_optarg=$2
27288 ac_shift=shift
f73dda09 27289 ;;
f73dda09
JA
27290 *) # This is not an option, so the user has probably given explicit
27291 # arguments.
a82a04b3 27292 ac_option=$1
f73dda09
JA
27293 ac_need_defaults=false;;
27294 esac
27295
a82a04b3 27296 case $ac_option in
f73dda09 27297 # Handling of the options.
a82a04b3
CR
27298_ACEOF
27299cat >>$CONFIG_STATUS <<\_ACEOF
ccc6cda3 27300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a82a04b3 27301 ac_cs_recheck=: ;;
f73dda09
JA
27302 --version | --vers* | -V )
27303 echo "$ac_cs_version"; exit 0 ;;
27304 --he | --h)
27305 # Conflict between --help and --header
a82a04b3 27306 { { echo "$as_me:$LINENO: error: ambiguous option: $1
f73dda09
JA
27307Try \`$0 --help' for more information." >&5
27308echo "$as_me: error: ambiguous option: $1
27309Try \`$0 --help' for more information." >&2;}
27310 { (exit 1); exit 1; }; };;
27311 --help | --hel | -h )
27312 echo "$ac_cs_usage"; exit 0 ;;
27313 --debug | --d* | -d )
27314 debug=: ;;
27315 --file | --fil | --fi | --f )
a82a04b3
CR
27316 $ac_shift
27317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f73dda09
JA
27318 ac_need_defaults=false;;
27319 --header | --heade | --head | --hea )
a82a04b3
CR
27320 $ac_shift
27321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f73dda09 27322 ac_need_defaults=false;;
a82a04b3
CR
27323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27325 ac_cs_silent=: ;;
f73dda09
JA
27326
27327 # This is an error.
a82a04b3 27328 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
f73dda09
JA
27329Try \`$0 --help' for more information." >&5
27330echo "$as_me: error: unrecognized option: $1
27331Try \`$0 --help' for more information." >&2;}
27332 { (exit 1); exit 1; }; } ;;
27333
27334 *) ac_config_targets="$ac_config_targets $1" ;;
27335
ccc6cda3 27336 esac
f73dda09 27337 shift
ccc6cda3
JA
27338done
27339
a82a04b3 27340ac_configure_extra_args=
ccc6cda3 27341
a82a04b3
CR
27342if $ac_cs_silent; then
27343 exec 6>/dev/null
27344 ac_configure_extra_args="$ac_configure_extra_args --silent"
27345fi
f73dda09 27346
a82a04b3
CR
27347_ACEOF
27348cat >>$CONFIG_STATUS <<_ACEOF
27349if \$ac_cs_recheck; then
27350 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27351 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27352fi
f73dda09
JA
27353
27354_ACEOF
ccc6cda3 27355
a82a04b3 27356cat >>$CONFIG_STATUS <<_ACEOF
5e13499c
CR
27357#
27358# INIT-COMMANDS section.
27359#
27360
27361# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27362 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27363 # from automake.
27364 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27365 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27366 LINGUAS="${LINGUAS-%UNSET%}"
27367
5e13499c 27368
a82a04b3
CR
27369_ACEOF
27370
27371
27372
27373cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27374for ac_config_target in $ac_config_targets
27375do
27376 case "$ac_config_target" in
27377 # Handling of arguments.
27378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27379 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27380 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27381 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
5e13499c 27382 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
f73dda09
JA
27383 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27384 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27385 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27386 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27387 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27388 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
5e13499c 27389 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
f73dda09
JA
27390 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27391 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
d3a24ed2 27392 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
5e13499c 27393 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
f73dda09
JA
27394 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27395 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
a82a04b3 27396 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f73dda09
JA
27397echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27398 { (exit 1); exit 1; }; };;
27399 esac
27400done
27401
27402# If the user did not use the arguments to specify the items to instantiate,
27403# then the envvar interface is used. Set only those that are not.
27404# We use the long form for the default assignment because of an extremely
27405# bizarre bug on SunOS 4.1.3.
27406if $ac_need_defaults; then
27407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27410fi
27411
a82a04b3
CR
27412# Have a temporary directory for convenience. Make it in the build tree
27413# simply because there is no reason to put it here, and in addition,
27414# creating and moving files from /tmp can sometimes cause problems.
f73dda09
JA
27415# Create a temporary directory, and hook for its removal unless debugging.
27416$debug ||
27417{
27418 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27419 trap '{ (exit 1); exit 1; }' 1 2 13 15
27420}
27421
27422# Create a (secure) tmp directory for tmp files.
a82a04b3 27423
f73dda09 27424{
a82a04b3 27425 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
f73dda09
JA
27426 test -n "$tmp" && test -d "$tmp"
27427} ||
27428{
a82a04b3 27429 tmp=./confstat$$-$RANDOM
f73dda09
JA
27430 (umask 077 && mkdir $tmp)
27431} ||
27432{
a82a04b3 27433 echo "$me: cannot create a temporary directory in ." >&2
f73dda09
JA
27434 { (exit 1); exit 1; }
27435}
ccc6cda3 27436
a82a04b3 27437_ACEOF
ccc6cda3 27438
a82a04b3 27439cat >>$CONFIG_STATUS <<_ACEOF
ccc6cda3 27440
f73dda09
JA
27441#
27442# CONFIG_FILES section.
27443#
27444
27445# No need to generate the scripts if there are no CONFIG_FILES.
27446# This happens for instance when ./config.status config.h
27447if test -n "\$CONFIG_FILES"; then
27448 # Protect against being on the right side of a sed subst in config.status.
27449 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27450 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27451s,@SHELL@,$SHELL,;t t
a82a04b3
CR
27452s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27453s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27454s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27455s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27456s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27457s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
f73dda09
JA
27458s,@exec_prefix@,$exec_prefix,;t t
27459s,@prefix@,$prefix,;t t
27460s,@program_transform_name@,$program_transform_name,;t t
27461s,@bindir@,$bindir,;t t
27462s,@sbindir@,$sbindir,;t t
27463s,@libexecdir@,$libexecdir,;t t
27464s,@datadir@,$datadir,;t t
27465s,@sysconfdir@,$sysconfdir,;t t
27466s,@sharedstatedir@,$sharedstatedir,;t t
27467s,@localstatedir@,$localstatedir,;t t
27468s,@libdir@,$libdir,;t t
27469s,@includedir@,$includedir,;t t
27470s,@oldincludedir@,$oldincludedir,;t t
27471s,@infodir@,$infodir,;t t
27472s,@mandir@,$mandir,;t t
f73dda09
JA
27473s,@build_alias@,$build_alias,;t t
27474s,@host_alias@,$host_alias,;t t
27475s,@target_alias@,$target_alias,;t t
a82a04b3 27476s,@DEFS@,$DEFS,;t t
f73dda09
JA
27477s,@ECHO_C@,$ECHO_C,;t t
27478s,@ECHO_N@,$ECHO_N,;t t
27479s,@ECHO_T@,$ECHO_T,;t t
f73dda09
JA
27480s,@LIBS@,$LIBS,;t t
27481s,@build@,$build,;t t
27482s,@build_cpu@,$build_cpu,;t t
27483s,@build_vendor@,$build_vendor,;t t
27484s,@build_os@,$build_os,;t t
27485s,@host@,$host,;t t
27486s,@host_cpu@,$host_cpu,;t t
27487s,@host_vendor@,$host_vendor,;t t
27488s,@host_os@,$host_os,;t t
d3a24ed2
CR
27489s,@EMACS@,$EMACS,;t t
27490s,@lispdir@,$lispdir,;t t
27491s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
f73dda09
JA
27492s,@TESTSCRIPT@,$TESTSCRIPT,;t t
27493s,@PURIFY@,$PURIFY,;t t
27494s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
27495s,@MALLOC_SRC@,$MALLOC_SRC,;t t
27496s,@MALLOC_LIB@,$MALLOC_LIB,;t t
27497s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
27498s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
27499s,@MALLOC_DEP@,$MALLOC_DEP,;t t
27500s,@htmldir@,$htmldir,;t t
7117c2d2
JA
27501s,@HELPDIR@,$HELPDIR,;t t
27502s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
27503s,@HELPINSTALL@,$HELPINSTALL,;t t
01ed5ba4 27504s,@HELPSTRINGS@,$HELPSTRINGS,;t t
f73dda09
JA
27505s,@CC@,$CC,;t t
27506s,@CFLAGS@,$CFLAGS,;t t
27507s,@LDFLAGS@,$LDFLAGS,;t t
27508s,@CPPFLAGS@,$CPPFLAGS,;t t
27509s,@ac_ct_CC@,$ac_ct_CC,;t t
27510s,@EXEEXT@,$EXEEXT,;t t
27511s,@OBJEXT@,$OBJEXT,;t t
27512s,@CPP@,$CPP,;t t
a82a04b3 27513s,@EGREP@,$EGREP,;t t
9607141c 27514s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
f73dda09
JA
27515s,@SIGNAMES_H@,$SIGNAMES_H,;t t
27516s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
27517s,@STATIC_LD@,$STATIC_LD,;t t
7117c2d2
JA
27518s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
27519s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
27520s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
f73dda09
JA
27521s,@RL_VERSION@,$RL_VERSION,;t t
27522s,@RL_MAJOR@,$RL_MAJOR,;t t
27523s,@RL_MINOR@,$RL_MINOR,;t t
27524s,@READLINE_LIB@,$READLINE_LIB,;t t
27525s,@READLINE_DEP@,$READLINE_DEP,;t t
27526s,@RL_LIBDIR@,$RL_LIBDIR,;t t
27527s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
27528s,@RL_INCLUDE@,$RL_INCLUDE,;t t
27529s,@HISTORY_LIB@,$HISTORY_LIB,;t t
27530s,@HISTORY_DEP@,$HISTORY_DEP,;t t
27531s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
27532s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27533s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27534s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27535s,@AR@,$AR,;t t
27536s,@RANLIB@,$RANLIB,;t t
27537s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27538s,@YACC@,$YACC,;t t
27539s,@SET_MAKE@,$SET_MAKE,;t t
27540s,@MAKE_SHELL@,$MAKE_SHELL,;t t
10590446 27541s,@SIZE@,$SIZE,;t t
5e13499c
CR
27542s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27543s,@USE_NLS@,$USE_NLS,;t t
27544s,@MSGFMT@,$MSGFMT,;t t
27545s,@GMSGFMT@,$GMSGFMT,;t t
27546s,@XGETTEXT@,$XGETTEXT,;t t
27547s,@MSGMERGE@,$MSGMERGE,;t t
f73dda09 27548s,@ALLOCA@,$ALLOCA,;t t
5e13499c
CR
27549s,@GLIBC21@,$GLIBC21,;t t
27550s,@LIBICONV@,$LIBICONV,;t t
27551s,@LTLIBICONV@,$LTLIBICONV,;t t
27552s,@INTLBISON@,$INTLBISON,;t t
27553s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27554s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27555s,@CATOBJEXT@,$CATOBJEXT,;t t
27556s,@DATADIRNAME@,$DATADIRNAME,;t t
27557s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27558s,@GENCAT@,$GENCAT,;t t
27559s,@INTLOBJS@,$INTLOBJS,;t t
27560s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27561s,@INTLLIBS@,$INTLLIBS,;t t
27562s,@LIBINTL@,$LIBINTL,;t t
27563s,@LTLIBINTL@,$LTLIBINTL,;t t
27564s,@POSUB@,$POSUB,;t t
f73dda09 27565s,@LIBOBJS@,$LIBOBJS,;t t
5e13499c
CR
27566s,@INTL_DEP@,$INTL_DEP,;t t
27567s,@INTL_INC@,$INTL_INC,;t t
12d937f9 27568s,@LIBINTL_H@,$LIBINTL_H,;t t
f73dda09
JA
27569s,@SIGLIST_O@,$SIGLIST_O,;t t
27570s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
27571s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
27572s,@JOBS_O@,$JOBS_O,;t t
27573s,@SHOBJ_CC@,$SHOBJ_CC,;t t
27574s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
27575s,@SHOBJ_LD@,$SHOBJ_LD,;t t
27576s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
27577s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
27578s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
27579s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
27580s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
27581s,@incdir@,$incdir,;t t
27582s,@BUILD_DIR@,$BUILD_DIR,;t t
27583s,@ARFLAGS@,$ARFLAGS,;t t
27584s,@BASHVERS@,$BASHVERS,;t t
7117c2d2
JA
27585s,@RELSTATUS@,$RELSTATUS,;t t
27586s,@DEBUG@,$DEBUG,;t t
27587s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
f73dda09
JA
27588s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
27589s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
27590s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27591s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
a82a04b3 27592s,@LTLIBOBJS@,$LTLIBOBJS,;t t
f73dda09
JA
27593CEOF
27594
a82a04b3 27595_ACEOF
f73dda09 27596
a82a04b3 27597 cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27598 # Split the substitutions into bite-sized pieces for seds with
27599 # small command number limits, like on Digital OSF/1 and HP-UX.
27600 ac_max_sed_lines=48
27601 ac_sed_frag=1 # Number of current file.
27602 ac_beg=1 # First line for current file.
27603 ac_end=$ac_max_sed_lines # Line after last line for current file.
27604 ac_more_lines=:
27605 ac_sed_cmds=
27606 while $ac_more_lines; do
27607 if test $ac_beg -gt 1; then
27608 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27609 else
27610 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27611 fi
27612 if test ! -s $tmp/subs.frag; then
27613 ac_more_lines=false
ccc6cda3 27614 else
f73dda09
JA
27615 # The purpose of the label and of the branching condition is to
27616 # speed up the sed processing (if there are no `@' at all, there
27617 # is no need to browse any of the substitutions).
27618 # These are the two extra sed commands mentioned above.
27619 (echo ':t
27620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27621 if test -z "$ac_sed_cmds"; then
a82a04b3 27622 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
f73dda09 27623 else
a82a04b3 27624 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
f73dda09
JA
27625 fi
27626 ac_sed_frag=`expr $ac_sed_frag + 1`
27627 ac_beg=$ac_end
27628 ac_end=`expr $ac_end + $ac_max_sed_lines`
ccc6cda3 27629 fi
f73dda09
JA
27630 done
27631 if test -z "$ac_sed_cmds"; then
27632 ac_sed_cmds=cat
ccc6cda3 27633 fi
f73dda09 27634fi # test -n "$CONFIG_FILES"
ccc6cda3 27635
a82a04b3
CR
27636_ACEOF
27637cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09 27638for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
ccc6cda3 27639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f73dda09
JA
27640 case $ac_file in
27641 - | *:- | *:-:* ) # input from stdin
a82a04b3
CR
27642 cat >$tmp/stdin
27643 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 27645 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a82a04b3 27646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 27647 * ) ac_file_in=$ac_file.in ;;
ccc6cda3
JA
27648 esac
27649
f73dda09 27650 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a82a04b3
CR
27651 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27652$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27653 X"$ac_file" : 'X\(//\)[^/]' \| \
27654 X"$ac_file" : 'X\(//\)$' \| \
27655 X"$ac_file" : 'X\(/\)' \| \
27656 . : '\(.\)' 2>/dev/null ||
f73dda09
JA
27657echo X"$ac_file" |
27658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27660 /^X\(\/\/\)$/{ s//\1/; q; }
27661 /^X\(\/\).*/{ s//\1/; q; }
27662 s/.*/./; q'`
a82a04b3
CR
27663 { if $as_mkdir_p; then
27664 mkdir -p "$ac_dir"
e624d0f7 27665 else
a82a04b3
CR
27666 as_dir="$ac_dir"
27667 as_dirs=
27668 while test ! -d "$as_dir"; do
27669 as_dirs="$as_dir $as_dirs"
27670 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27672 X"$as_dir" : 'X\(//\)[^/]' \| \
27673 X"$as_dir" : 'X\(//\)$' \| \
27674 X"$as_dir" : 'X\(/\)' \| \
27675 . : '\(.\)' 2>/dev/null ||
27676echo X"$as_dir" |
27677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27679 /^X\(\/\/\)$/{ s//\1/; q; }
27680 /^X\(\/\).*/{ s//\1/; q; }
27681 s/.*/./; q'`
27682 done
27683 test ! -n "$as_dirs" || mkdir $as_dirs
27684 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27685echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27686 { (exit 1); exit 1; }; }; }
545f34cf 27687
a82a04b3
CR
27688 ac_builddir=.
27689
27690if test "$ac_dir" != .; then
27691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27692 # A "../" for each directory in $ac_dir_suffix.
27693 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27694else
27695 ac_dir_suffix= ac_top_builddir=
27696fi
27697
27698case $srcdir in
27699 .) # No --srcdir option. We are building in place.
27700 ac_srcdir=.
27701 if test -z "$ac_top_builddir"; then
27702 ac_top_srcdir=.
27703 else
27704 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27705 fi ;;
27706 [\\/]* | ?:[\\/]* ) # Absolute path.
27707 ac_srcdir=$srcdir$ac_dir_suffix;
27708 ac_top_srcdir=$srcdir ;;
ccc6cda3 27709 *) # Relative path.
a82a04b3
CR
27710 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27711 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27712esac
27713
27714# Do not use `cd foo && pwd` to compute absolute paths, because
27715# the directories may not exist.
27716case `pwd` in
27717.) ac_abs_builddir="$ac_dir";;
27718*)
27719 case "$ac_dir" in
27720 .) ac_abs_builddir=`pwd`;;
27721 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27722 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27723 esac;;
27724esac
27725case $ac_abs_builddir in
27726.) ac_abs_top_builddir=${ac_top_builddir}.;;
27727*)
27728 case ${ac_top_builddir}. in
27729 .) ac_abs_top_builddir=$ac_abs_builddir;;
27730 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27731 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27732 esac;;
27733esac
27734case $ac_abs_builddir in
27735.) ac_abs_srcdir=$ac_srcdir;;
27736*)
27737 case $ac_srcdir in
27738 .) ac_abs_srcdir=$ac_abs_builddir;;
27739 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27740 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27741 esac;;
27742esac
27743case $ac_abs_builddir in
27744.) ac_abs_top_srcdir=$ac_top_srcdir;;
27745*)
27746 case $ac_top_srcdir in
27747 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27748 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27749 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27750 esac;;
27751esac
27752
ccc6cda3 27753
f73dda09
JA
27754 case $INSTALL in
27755 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a82a04b3 27756 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ccc6cda3
JA
27757 esac
27758
f73dda09 27759 if test x"$ac_file" != x-; then
a82a04b3 27760 { echo "$as_me:$LINENO: creating $ac_file" >&5
f73dda09
JA
27761echo "$as_me: creating $ac_file" >&6;}
27762 rm -f "$ac_file"
27763 fi
27764 # Let's still pretend it is `configure' which instantiates (i.e., don't
27765 # use $as_me), people would be surprised to read:
a82a04b3
CR
27766 # /* config.h. Generated by config.status. */
27767 if test x"$ac_file" = x-; then
27768 configure_input=
27769 else
27770 configure_input="$ac_file. "
27771 fi
27772 configure_input=$configure_input"Generated from `echo $ac_file_in |
27773 sed 's,.*/,,'` by configure."
f73dda09
JA
27774
27775 # First look for the input files in the build tree, otherwise in the
27776 # src tree.
27777 ac_file_inputs=`IFS=:
27778 for f in $ac_file_in; do
27779 case $f in
27780 -) echo $tmp/stdin ;;
27781 [\\/$]*)
a82a04b3
CR
27782 # Absolute (can't be DOS-style, as IFS=:)
27783 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
27784echo "$as_me: error: cannot find input file: $f" >&2;}
27785 { (exit 1); exit 1; }; }
a82a04b3 27786 echo "$f";;
f73dda09 27787 *) # Relative
a82a04b3
CR
27788 if test -f "$f"; then
27789 # Build tree
27790 echo "$f"
27791 elif test -f "$srcdir/$f"; then
27792 # Source tree
27793 echo "$srcdir/$f"
27794 else
27795 # /dev/null tree
27796 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
27797echo "$as_me: error: cannot find input file: $f" >&2;}
27798 { (exit 1); exit 1; }; }
a82a04b3 27799 fi;;
f73dda09
JA
27800 esac
27801 done` || { (exit 1); exit 1; }
a82a04b3
CR
27802_ACEOF
27803cat >>$CONFIG_STATUS <<_ACEOF
f73dda09
JA
27804 sed "$ac_vpsub
27805$extrasub
a82a04b3
CR
27806_ACEOF
27807cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27808:t
27809/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27810s,@configure_input@,$configure_input,;t t
27811s,@srcdir@,$ac_srcdir,;t t
a82a04b3 27812s,@abs_srcdir@,$ac_abs_srcdir,;t t
f73dda09 27813s,@top_srcdir@,$ac_top_srcdir,;t t
a82a04b3
CR
27814s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27815s,@builddir@,$ac_builddir,;t t
27816s,@abs_builddir@,$ac_abs_builddir,;t t
27817s,@top_builddir@,$ac_top_builddir,;t t
27818s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
f73dda09
JA
27819s,@INSTALL@,$ac_INSTALL,;t t
27820" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27821 rm -f $tmp/stdin
27822 if test x"$ac_file" != x-; then
27823 mv $tmp/out $ac_file
27824 else
27825 cat $tmp/out
27826 rm -f $tmp/out
27827 fi
27828
27829done
a82a04b3
CR
27830_ACEOF
27831cat >>$CONFIG_STATUS <<\_ACEOF
ccc6cda3 27832
f73dda09
JA
27833#
27834# CONFIG_HEADER section.
27835#
ccc6cda3
JA
27836
27837# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27838# NAME is the cpp macro being defined and VALUE is the value it is being given.
27839#
27840# ac_d sets the value in "#define NAME VALUE" lines.
a82a04b3
CR
27841ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27842ac_dB='[ ].*$,\1#\2'
f73dda09
JA
27843ac_dC=' '
27844ac_dD=',;t'
27845# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
a82a04b3 27846ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
f73dda09 27847ac_uB='$,\1#\2define\3'
ccc6cda3 27848ac_uC=' '
f73dda09 27849ac_uD=',;t'
ccc6cda3 27850
f73dda09 27851for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
ccc6cda3 27852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f73dda09
JA
27853 case $ac_file in
27854 - | *:- | *:-:* ) # input from stdin
a82a04b3
CR
27855 cat >$tmp/stdin
27856 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 27858 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a82a04b3 27859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 27860 * ) ac_file_in=$ac_file.in ;;
ccc6cda3
JA
27861 esac
27862
a82a04b3 27863 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
f73dda09
JA
27864echo "$as_me: creating $ac_file" >&6;}
27865
27866 # First look for the input files in the build tree, otherwise in the
27867 # src tree.
27868 ac_file_inputs=`IFS=:
27869 for f in $ac_file_in; do
27870 case $f in
27871 -) echo $tmp/stdin ;;
27872 [\\/$]*)
a82a04b3
CR
27873 # Absolute (can't be DOS-style, as IFS=:)
27874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
27875echo "$as_me: error: cannot find input file: $f" >&2;}
27876 { (exit 1); exit 1; }; }
a82a04b3
CR
27877 # Do quote $f, to prevent DOS paths from being IFS'd.
27878 echo "$f";;
f73dda09 27879 *) # Relative
a82a04b3
CR
27880 if test -f "$f"; then
27881 # Build tree
27882 echo "$f"
27883 elif test -f "$srcdir/$f"; then
27884 # Source tree
27885 echo "$srcdir/$f"
27886 else
27887 # /dev/null tree
27888 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
27889echo "$as_me: error: cannot find input file: $f" >&2;}
27890 { (exit 1); exit 1; }; }
a82a04b3 27891 fi;;
f73dda09
JA
27892 esac
27893 done` || { (exit 1); exit 1; }
27894 # Remove the trailing spaces.
a82a04b3 27895 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
f73dda09 27896
a82a04b3 27897_ACEOF
f73dda09
JA
27898
27899# Transform confdefs.h into two sed scripts, `conftest.defines' and
27900# `conftest.undefs', that substitutes the proper values into
27901# config.h.in to produce config.h. The first handles `#define'
27902# templates, and the second `#undef' templates.
27903# And first: Protect against being on the right side of a sed subst in
27904# config.status. Protect against being in an unquoted here document
27905# in config.status.
27906rm -f conftest.defines conftest.undefs
27907# Using a here document instead of a string reduces the quoting nightmare.
27908# Putting comments in sed scripts is not portable.
27909#
27910# `end' is used to avoid that the second main sed command (meant for
27911# 0-ary CPP macros) applies to n-ary macro definitions.
27912# See the Autoconf documentation for `clear'.
a82a04b3 27913cat >confdef2sed.sed <<\_ACEOF
f73dda09
JA
27914s/[\\&,]/\\&/g
27915s,[\\$`],\\&,g
27916t clear
27917: clear
a82a04b3 27918s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
f73dda09 27919t end
a82a04b3 27920s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
f73dda09 27921: end
a82a04b3 27922_ACEOF
f73dda09
JA
27923# If some macros were called several times there might be several times
27924# the same #defines, which is useless. Nevertheless, we may not want to
27925# sort them, since we want the *last* AC-DEFINE to be honored.
27926uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27927sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27928rm -f confdef2sed.sed
ccc6cda3
JA
27929
27930# This sed command replaces #undef with comments. This is necessary, for
27931# example, in the case of _POSIX_SOURCE, which is predefined and required
27932# on some systems where configure will not decide to define it.
a82a04b3
CR
27933cat >>conftest.undefs <<\_ACEOF
27934s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27935_ACEOF
ccc6cda3 27936
f73dda09
JA
27937# Break up conftest.defines because some shells have a limit on the size
27938# of here documents, and old seds have small limits too (100 cmds).
27939echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
a82a04b3 27940echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
f73dda09
JA
27941echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27942echo ' :' >>$CONFIG_STATUS
27943rm -f conftest.tail
27944while grep . conftest.defines >/dev/null
27945do
27946 # Write a limited-size here document to $tmp/defines.sed.
27947 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27948 # Speed up: don't consider the non `#define' lines.
a82a04b3 27949 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
f73dda09
JA
27950 # Work around the forget-to-reset-the-flag bug.
27951 echo 't clr' >>$CONFIG_STATUS
27952 echo ': clr' >>$CONFIG_STATUS
27953 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27954 echo 'CEOF
27955 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27956 rm -f $tmp/in
27957 mv $tmp/out $tmp/in
27958' >>$CONFIG_STATUS
27959 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27960 rm -f conftest.defines
27961 mv conftest.tail conftest.defines
27962done
27963rm -f conftest.defines
a82a04b3 27964echo ' fi # grep' >>$CONFIG_STATUS
f73dda09 27965echo >>$CONFIG_STATUS
ccc6cda3 27966
f73dda09
JA
27967# Break up conftest.undefs because some shells have a limit on the size
27968# of here documents, and old seds have small limits too (100 cmds).
27969echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
ccc6cda3 27970rm -f conftest.tail
f73dda09 27971while grep . conftest.undefs >/dev/null
ccc6cda3 27972do
f73dda09
JA
27973 # Write a limited-size here document to $tmp/undefs.sed.
27974 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27975 # Speed up: don't consider the non `#undef'
a82a04b3 27976 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
f73dda09
JA
27977 # Work around the forget-to-reset-the-flag bug.
27978 echo 't clr' >>$CONFIG_STATUS
27979 echo ': clr' >>$CONFIG_STATUS
27980 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
ccc6cda3 27981 echo 'CEOF
f73dda09
JA
27982 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27983 rm -f $tmp/in
27984 mv $tmp/out $tmp/in
27985' >>$CONFIG_STATUS
27986 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27987 rm -f conftest.undefs
27988 mv conftest.tail conftest.undefs
ccc6cda3 27989done
f73dda09
JA
27990rm -f conftest.undefs
27991
a82a04b3 27992cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27993 # Let's still pretend it is `configure' which instantiates (i.e., don't
27994 # use $as_me), people would be surprised to read:
a82a04b3 27995 # /* config.h. Generated by config.status. */
f73dda09 27996 if test x"$ac_file" = x-; then
a82a04b3 27997 echo "/* Generated by configure. */" >$tmp/config.h
ccc6cda3 27998 else
a82a04b3 27999 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
f73dda09
JA
28000 fi
28001 cat $tmp/in >>$tmp/config.h
28002 rm -f $tmp/in
28003 if test x"$ac_file" != x-; then
a82a04b3
CR
28004 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28005 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f73dda09
JA
28006echo "$as_me: $ac_file is unchanged" >&6;}
28007 else
a82a04b3
CR
28008 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28009$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28010 X"$ac_file" : 'X\(//\)[^/]' \| \
28011 X"$ac_file" : 'X\(//\)$' \| \
28012 X"$ac_file" : 'X\(/\)' \| \
28013 . : '\(.\)' 2>/dev/null ||
f73dda09
JA
28014echo X"$ac_file" |
28015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28017 /^X\(\/\/\)$/{ s//\1/; q; }
28018 /^X\(\/\).*/{ s//\1/; q; }
28019 s/.*/./; q'`
a82a04b3
CR
28020 { if $as_mkdir_p; then
28021 mkdir -p "$ac_dir"
28022 else
28023 as_dir="$ac_dir"
28024 as_dirs=
28025 while test ! -d "$as_dir"; do
28026 as_dirs="$as_dir $as_dirs"
28027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28029 X"$as_dir" : 'X\(//\)[^/]' \| \
28030 X"$as_dir" : 'X\(//\)$' \| \
28031 X"$as_dir" : 'X\(/\)' \| \
28032 . : '\(.\)' 2>/dev/null ||
28033echo X"$as_dir" |
28034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28036 /^X\(\/\/\)$/{ s//\1/; q; }
28037 /^X\(\/\).*/{ s//\1/; q; }
28038 s/.*/./; q'`
28039 done
28040 test ! -n "$as_dirs" || mkdir $as_dirs
28041 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28042echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28043 { (exit 1); exit 1; }; }; }
f73dda09 28044
f73dda09
JA
28045 rm -f $ac_file
28046 mv $tmp/config.h $ac_file
ccc6cda3 28047 fi
f73dda09
JA
28048 else
28049 cat $tmp/config.h
28050 rm -f $tmp/config.h
ccc6cda3 28051 fi
f73dda09 28052done
a82a04b3
CR
28053_ACEOF
28054cat >>$CONFIG_STATUS <<\_ACEOF
ccc6cda3 28055
f73dda09
JA
28056#
28057# CONFIG_COMMANDS section.
28058#
28059for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28060 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28061 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
a82a04b3
CR
28062 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28063$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28064 X"$ac_dest" : 'X\(//\)[^/]' \| \
28065 X"$ac_dest" : 'X\(//\)$' \| \
28066 X"$ac_dest" : 'X\(/\)' \| \
28067 . : '\(.\)' 2>/dev/null ||
28068echo X"$ac_dest" |
28069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28071 /^X\(\/\/\)$/{ s//\1/; q; }
28072 /^X\(\/\).*/{ s//\1/; q; }
28073 s/.*/./; q'`
28074 { if $as_mkdir_p; then
28075 mkdir -p "$ac_dir"
28076 else
28077 as_dir="$ac_dir"
28078 as_dirs=
28079 while test ! -d "$as_dir"; do
28080 as_dirs="$as_dir $as_dirs"
28081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28083 X"$as_dir" : 'X\(//\)[^/]' \| \
28084 X"$as_dir" : 'X\(//\)$' \| \
28085 X"$as_dir" : 'X\(/\)' \| \
28086 . : '\(.\)' 2>/dev/null ||
28087echo X"$as_dir" |
28088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28090 /^X\(\/\/\)$/{ s//\1/; q; }
28091 /^X\(\/\).*/{ s//\1/; q; }
28092 s/.*/./; q'`
28093 done
28094 test ! -n "$as_dirs" || mkdir $as_dirs
28095 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28096echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28097 { (exit 1); exit 1; }; }; }
28098
28099 ac_builddir=.
28100
28101if test "$ac_dir" != .; then
28102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28103 # A "../" for each directory in $ac_dir_suffix.
28104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28105else
28106 ac_dir_suffix= ac_top_builddir=
28107fi
28108
28109case $srcdir in
28110 .) # No --srcdir option. We are building in place.
28111 ac_srcdir=.
28112 if test -z "$ac_top_builddir"; then
28113 ac_top_srcdir=.
28114 else
28115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28116 fi ;;
28117 [\\/]* | ?:[\\/]* ) # Absolute path.
28118 ac_srcdir=$srcdir$ac_dir_suffix;
28119 ac_top_srcdir=$srcdir ;;
28120 *) # Relative path.
28121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28123esac
28124
28125# Do not use `cd foo && pwd` to compute absolute paths, because
28126# the directories may not exist.
28127case `pwd` in
28128.) ac_abs_builddir="$ac_dir";;
28129*)
28130 case "$ac_dir" in
28131 .) ac_abs_builddir=`pwd`;;
28132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28134 esac;;
28135esac
28136case $ac_abs_builddir in
28137.) ac_abs_top_builddir=${ac_top_builddir}.;;
28138*)
28139 case ${ac_top_builddir}. in
28140 .) ac_abs_top_builddir=$ac_abs_builddir;;
28141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28143 esac;;
28144esac
28145case $ac_abs_builddir in
28146.) ac_abs_srcdir=$ac_srcdir;;
28147*)
28148 case $ac_srcdir in
28149 .) ac_abs_srcdir=$ac_abs_builddir;;
28150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28152 esac;;
28153esac
28154case $ac_abs_builddir in
28155.) ac_abs_top_srcdir=$ac_top_srcdir;;
28156*)
28157 case $ac_top_srcdir in
28158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28161 esac;;
28162esac
28163
ccc6cda3 28164
a82a04b3
CR
28165 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28166echo "$as_me: executing $ac_dest commands" >&6;}
f73dda09 28167 case $ac_dest in
5e13499c
CR
28168 default-1 )
28169 for ac_file in $CONFIG_FILES; do
28170 # Support "outfile[:infile[:infile...]]"
28171 case "$ac_file" in
28172 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28173 esac
28174 # PO directories have a Makefile.in generated from Makefile.in.in.
28175 case "$ac_file" in */Makefile.in)
28176 # Adjust a relative srcdir.
28177 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28178 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28179 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28180 # In autoconf-2.13 it is called $ac_given_srcdir.
28181 # In autoconf-2.50 it is called $srcdir.
28182 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28183 case "$ac_given_srcdir" in
28184 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28185 /*) top_srcdir="$ac_given_srcdir" ;;
28186 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28187 esac
28188 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28189 rm -f "$ac_dir/POTFILES"
28190 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28191 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28192 POMAKEFILEDEPS="POTFILES.in"
28193 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28194 # on $ac_dir but don't depend on user-specified configuration
28195 # parameters.
28196 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28197 # The LINGUAS file contains the set of available languages.
28198 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28199 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28200 fi
28201 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28202 # Hide the ALL_LINGUAS assigment from automake.
28203 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28204 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28205 else
28206 # The set of available languages was given in configure.in.
28207 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28208 fi
28209 case "$ac_given_srcdir" in
28210 .) srcdirpre= ;;
28211 *) srcdirpre='$(srcdir)/' ;;
28212 esac
28213 POFILES=
28214 GMOFILES=
28215 UPDATEPOFILES=
28216 DUMMYPOFILES=
28217 for lang in $ALL_LINGUAS; do
28218 POFILES="$POFILES $srcdirpre$lang.po"
28219 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28220 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28221 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28222 done
28223 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28224 # environment variable.
28225 INST_LINGUAS=
28226 if test -n "$ALL_LINGUAS"; then
28227 for presentlang in $ALL_LINGUAS; do
28228 useit=no
28229 if test "%UNSET%" != "$LINGUAS"; then
28230 desiredlanguages="$LINGUAS"
28231 else
28232 desiredlanguages="$ALL_LINGUAS"
28233 fi
28234 for desiredlang in $desiredlanguages; do
28235 # Use the presentlang catalog if desiredlang is
28236 # a. equal to presentlang, or
28237 # b. a variant of presentlang (because in this case,
28238 # presentlang can be used as a fallback for messages
28239 # which are not translated in the desiredlang catalog).
28240 case "$desiredlang" in
28241 "$presentlang"*) useit=yes;;
28242 esac
28243 done
28244 if test $useit = yes; then
28245 INST_LINGUAS="$INST_LINGUAS $presentlang"
28246 fi
28247 done
28248 fi
28249 CATALOGS=
28250 if test -n "$INST_LINGUAS"; then
28251 for lang in $INST_LINGUAS; do
28252 CATALOGS="$CATALOGS $lang.gmo"
28253 done
28254 fi
28255 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28256 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"
28257 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28258 if test -f "$f"; then
28259 case "$f" in
28260 *.orig | *.bak | *~) ;;
28261 *) cat "$f" >> "$ac_dir/Makefile" ;;
28262 esac
28263 fi
28264 done
28265 fi
28266 ;;
28267 esac
28268 done ;;
f73dda09 28269 default )
ccc6cda3
JA
28270# Makefile uses this timestamp file to record whether config.h is up to date.
28271echo timestamp > stamp-h
f73dda09
JA
28272 ;;
28273 esac
28274done
a82a04b3 28275_ACEOF
ccc6cda3 28276
a82a04b3 28277cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
28278
28279{ (exit 0); exit 0; }
a82a04b3 28280_ACEOF
ccc6cda3 28281chmod +x $CONFIG_STATUS
f73dda09
JA
28282ac_clean_files=$ac_clean_files_save
28283
a82a04b3 28284
f73dda09
JA
28285# configure is writing to config.log, and then calls config.status.
28286# config.status does its own redirection, appending to config.log.
28287# Unfortunately, on DOS this fails, as config.log is still kept open
28288# by configure, so config.status won't be able to write to it; its
28289# output is simply discarded. So we exec the FD to /dev/null,
28290# effectively closing config.log, so it can be properly (re)opened and
28291# appended to by config.status. When coming back to configure, we
28292# need to make the FD available again.
28293if test "$no_create" != yes; then
28294 ac_cs_success=:
a82a04b3
CR
28295 ac_config_status_args=
28296 test "$silent" = yes &&
28297 ac_config_status_args="$ac_config_status_args --quiet"
f73dda09 28298 exec 5>/dev/null
a82a04b3 28299 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f73dda09
JA
28300 exec 5>>config.log
28301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28302 # would make configure fail if this is the last instruction.
28303 $ac_cs_success || { (exit 1); exit 1; }
28304fi
ccc6cda3 28305