]> git.ipfire.org Git - thirdparty/bash.git/blame - configure
Imported from ../bash-3.2.48.tar.gz.
[thirdparty/bash.git] / configure
CommitLineData
ccc6cda3 1#! /bin/sh
0628567a 2# From configure.in for Bash 3.2, version 3.190.
f73dda09 3# Guess values for system-dependent variables and create Makefiles.
0628567a 4# Generated by GNU Autoconf 2.59 for bash 3.2-release.
f73dda09
JA
5#
6# Report bugs to <bug-bash@gnu.org>.
7#
0628567a 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.
b80f6443
JA
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
ccc6cda3 14
b80f6443
JA
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
0628567a
JA
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+"$@"}'='"$@"'
b80f6443
JA
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
0628567a 25DUALCASE=1; export DUALCASE # for MKS sh
b80f6443
JA
26
27# Support unset when possible.
0628567a 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b80f6443
JA
29 as_unset=unset
30else
31 as_unset=false
32fi
33
0628567a
JA
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
b80f6443
JA
66
67
68# Name of the executable.
0628567a 69as_me=`$as_basename "$0" ||
b80f6443
JA
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
0628567a 80
b80f6443 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
b80f6443
JA
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
0628567a
JA
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
b80f6443
JA
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
0628567a 99 rm -f conf$$.sh
b80f6443 100fi
ccc6cda3
JA
101
102
b80f6443
JA
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
ccc6cda3 119
b80f6443
JA
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
0628567a
JA
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; }
b80f6443
JA
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
0628567a
JA
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226fi
227
b80f6443
JA
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
0628567a 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b80f6443
JA
232
233# Sed expression to map a string onto a valid variable name.
0628567a 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b80f6443 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.
0628567a 244$as_unset CDPATH
b80f6443 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
0628567a 258ac_config_libobj_dir=.
f73dda09
JA
259cross_compiling=no
260subdirs=
b80f6443
JA
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
b80f6443
JA
270# Identity of this package.
271PACKAGE_NAME='bash'
272PACKAGE_TARNAME='bash'
0628567a
JA
273PACKAGE_VERSION='3.2-release'
274PACKAGE_STRING='bash 3.2-release'
b80f6443
JA
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
0628567a
JA
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 SIGNAMES_O 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 TILDE_LIB 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'
316ac_subst_files=''
b80f6443 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 \
b80f6443 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 | '' ) ;;
b80f6443 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 \
0628567a 674 localstatedir libdir includedir oldincludedir infodir mandir
ccc6cda3 675do
f73dda09
JA
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
b80f6443 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.
b80f6443 686# FIXME: To remove some day.
f73dda09
JA
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
b80f6443 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
b80f6443 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.
b80f6443
JA
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
0628567a
JA
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
b80f6443
JA
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
b80f6443 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
b80f6443 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
0628567a
JA
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
b80f6443
JA
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.
b80f6443 787 cat <<_ACEOF
0628567a 788\`configure' configures bash 3.2-release 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
b80f6443 808_ACEOF
ccc6cda3 809
b80f6443 810 cat <<_ACEOF
f73dda09
JA
811Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
0628567a 813 [$ac_default_prefix]
f73dda09 814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0628567a 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]
b80f6443 837_ACEOF
f73dda09 838
b80f6443 839 cat <<\_ACEOF
f73dda09
JA
840
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
b80f6443
JA
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
0628567a 849 short | recursive ) echo "Configuration of bash 3.2-release:";;
f73dda09 850 esac
b80f6443 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
b80f6443
JA
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
b80f6443 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
95732b49
JA
894 --enable-single-help-strings
895 store help documentation as a single string to ease
896 translation
897 --enable-strict-posix-default
898 configure bash to be posix-conformant by default
7117c2d2
JA
899 --enable-usg-echo-default
900 a synonym for --enable-xpg-echo-default
901 --enable-xpg-echo-default
902 make the echo builtin expand escape sequences by
903 default
904 --enable-mem-scramble scramble memory on calls to malloc and free
905 --enable-profiling allow profiling with gprof
906 --enable-static-link link bash statically, for use as a root shell
f73dda09 907 --disable-largefile omit support for large files
b80f6443
JA
908 --disable-nls do not use Native Language Support
909 --disable-rpath do not hardcode runtime library paths
f73dda09
JA
910
911Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b80f6443 914 --with-lispdir override the default lisp directory
7117c2d2
JA
915 --with-afs if you are running AFS
916 --with-bash-malloc use the Bash version of malloc
917 --with-curses use the curses library instead of the termcap
918 library
919 --with-gnu-malloc synonym for --with-bash-malloc
920 --with-installed-readline
921 use a version of the readline library that is
922 already installed
923 --with-purecov configure to postprocess with pure coverage
924 --with-purify configure to postprocess with purify
b80f6443
JA
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-included-gettext use the GNU gettext library included here
929 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
930 --without-libintl-prefix don't search for libintl in includedir and libdir
f73dda09
JA
931
932Some influential environment variables:
b80f6443
JA
933 DEBUGGER_START_FILE
934 location of bash debugger initialization file
f73dda09
JA
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CPP C preprocessor
942
943Use these variables to override the choices made by `configure' or to help
944it to find libraries and programs with nonstandard names/locations.
945
946Report bugs to <bug-bash@gnu.org>.
b80f6443 947_ACEOF
f73dda09
JA
948fi
949
950if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
b80f6443
JA
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
956
957if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961else
962 ac_dir_suffix= ac_top_builddir=
963fi
ccc6cda3 964
b80f6443
JA
965case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979esac
0628567a
JA
980
981# Do not use `cd foo && pwd` to compute absolute paths, because
982# the directories may not exist.
983case `pwd` in
984.) ac_abs_builddir="$ac_dir";;
985*)
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991esac
992case $ac_abs_builddir in
993.) ac_abs_top_builddir=${ac_top_builddir}.;;
994*)
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000esac
1001case $ac_abs_builddir in
1002.) ac_abs_srcdir=$ac_srcdir;;
1003*)
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009esac
1010case $ac_abs_builddir in
1011.) ac_abs_top_srcdir=$ac_top_srcdir;;
1012*)
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018esac
b80f6443
JA
1019
1020 cd $ac_dir
f73dda09 1021 # Check for guested configure; otherwise get Cygnus style configure.
b80f6443 1022 if test -f $ac_srcdir/configure.gnu; then
f73dda09 1023 echo
b80f6443
JA
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
f73dda09 1026 echo
b80f6443
JA
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
0628567a 1029 test -f $ac_srcdir/configure.in; then
f73dda09
JA
1030 echo
1031 $ac_configure --help
1032 else
b80f6443 1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f73dda09
JA
1034 fi
1035 cd $ac_popdir
1036 done
1037fi
ccc6cda3 1038
f73dda09
JA
1039test -n "$ac_init_help" && exit 0
1040if $ac_init_version; then
b80f6443 1041 cat <<\_ACEOF
0628567a
JA
1042bash configure 3.2-release
1043generated by GNU Autoconf 2.59
ccc6cda3 1044
0628567a 1045Copyright (C) 2003 Free Software Foundation, Inc.
f73dda09
JA
1046This configure script is free software; the Free Software Foundation
1047gives unlimited permission to copy, distribute and modify it.
b80f6443 1048_ACEOF
f73dda09
JA
1049 exit 0
1050fi
1051exec 5>config.log
b80f6443 1052cat >&5 <<_ACEOF
f73dda09
JA
1053This file contains any messages produced by compilers while
1054running configure, to aid debugging if configure makes a mistake.
ccc6cda3 1055
0628567a
JA
1056It was created by bash $as_me 3.2-release, which was
1057generated by GNU Autoconf 2.59. Invocation command line was
ccc6cda3 1058
f73dda09 1059 $ $0 $@
bb70624e 1060
b80f6443 1061_ACEOF
f73dda09
JA
1062{
1063cat <<_ASUNAME
b80f6443
JA
1064## --------- ##
1065## Platform. ##
1066## --------- ##
f73dda09
JA
1067
1068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073
1074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076
1077/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1078/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1081/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1082/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1083/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084
f73dda09 1085_ASUNAME
b80f6443
JA
1086
1087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1088for as_dir in $PATH
1089do
1090 IFS=$as_save_IFS
1091 test -z "$as_dir" && as_dir=.
1092 echo "PATH: $as_dir"
1093done
1094
f73dda09
JA
1095} >&5
1096
b80f6443
JA
1097cat >&5 <<_ACEOF
1098
1099
1100## ----------- ##
1101## Core tests. ##
1102## ----------- ##
1103
1104_ACEOF
f73dda09 1105
f73dda09
JA
1106
1107# Keep a trace of the command line.
1108# Strip out --no-create and --no-recursion so they do not pile up.
0628567a 1109# Strip out --silent because we don't want to record it for future runs.
f73dda09 1110# Also quote any args containing shell meta-characters.
0628567a 1111# Make two passes to allow for proper duplicate-argument suppression.
f73dda09 1112ac_configure_args=
0628567a
JA
1113ac_configure_args0=
1114ac_configure_args1=
f73dda09 1115ac_sep=
0628567a
JA
1116ac_must_keep_next=false
1117for ac_pass in 1 2
f73dda09 1118do
0628567a
JA
1119 for ac_arg
1120 do
1121 case $ac_arg in
1122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 continue ;;
1126 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1128 esac
1129 case $ac_pass in
1130 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 2)
1132 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133 if test $ac_must_keep_next = true; then
1134 ac_must_keep_next=false # Got value, back to normal.
1135 else
1136 case $ac_arg in
1137 *=* | --config-cache | -C | -disable-* | --disable-* \
1138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140 | -with-* | --with-* | -without-* | --without-* | --x)
1141 case "$ac_configure_args0 " in
1142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 esac
1144 ;;
1145 -* ) ac_must_keep_next=true ;;
1146 esac
1147 fi
1148 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149 # Get rid of the leading space.
1150 ac_sep=" "
1151 ;;
1152 esac
1153 done
f73dda09 1154done
0628567a
JA
1155$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f73dda09
JA
1157
1158# When interrupted or exit'd, cleanup temporary files, and complete
1159# config.log. We remove comments because anyway the quotes in there
1160# would cause problems or look ugly.
b80f6443
JA
1161# WARNING: Be sure not to use single quotes in there, as some shells,
1162# such as our DU 5.0 friend, will then `close' the trap.
f73dda09
JA
1163trap 'exit_status=$?
1164 # Save into config.log some information that might help in debugging.
b80f6443
JA
1165 {
1166 echo
0628567a 1167
b80f6443
JA
1168 cat <<\_ASBOX
1169## ---------------- ##
1170## Cache variables. ##
1171## ---------------- ##
1172_ASBOX
1173 echo
1174 # The following way of writing the cache mishandles newlines in values,
f73dda09
JA
1175{
1176 (set) 2>&1 |
1177 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 *ac_space=\ *)
1179 sed -n \
0628567a
JA
1180 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
f73dda09
JA
1182 ;;
1183 *)
1184 sed -n \
0628567a 1185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
f73dda09
JA
1186 ;;
1187 esac;
b80f6443
JA
1188}
1189 echo
0628567a
JA
1190
1191 cat <<\_ASBOX
1192## ----------------- ##
1193## Output variables. ##
1194## ----------------- ##
1195_ASBOX
1196 echo
1197 for ac_var in $ac_subst_vars
1198 do
1199 eval ac_val=$`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1201 done | sort
1202 echo
1203
1204 if test -n "$ac_subst_files"; then
1205 cat <<\_ASBOX
1206## ------------- ##
1207## Output files. ##
1208## ------------- ##
1209_ASBOX
1210 echo
1211 for ac_var in $ac_subst_files
1212 do
1213 eval ac_val=$`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1215 done | sort
1216 echo
1217 fi
1218
b80f6443
JA
1219 if test -s confdefs.h; then
1220 cat <<\_ASBOX
1221## ----------- ##
1222## confdefs.h. ##
1223## ----------- ##
1224_ASBOX
1225 echo
0628567a 1226 sed "/^$/d" confdefs.h | sort
b80f6443
JA
1227 echo
1228 fi
1229 test "$ac_signal" != 0 &&
1230 echo "$as_me: caught signal $ac_signal"
1231 echo "$as_me: exit $exit_status"
1232 } >&5
0628567a 1233 rm -f core *.core &&
b80f6443 1234 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
f73dda09
JA
1235 exit $exit_status
1236 ' 0
1237for ac_signal in 1 2 13 15; do
1238 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1239done
1240ac_signal=0
1241
1242# confdefs.h avoids OS command line length limits that DEFS can exceed.
1243rm -rf conftest* confdefs.h
1244# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245echo >confdefs.h
1246
b80f6443
JA
1247# Predefined preprocessor variables.
1248
1249cat >>confdefs.h <<_ACEOF
1250#define PACKAGE_NAME "$PACKAGE_NAME"
1251_ACEOF
1252
1253
1254cat >>confdefs.h <<_ACEOF
1255#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1256_ACEOF
1257
1258
1259cat >>confdefs.h <<_ACEOF
1260#define PACKAGE_VERSION "$PACKAGE_VERSION"
1261_ACEOF
1262
1263
1264cat >>confdefs.h <<_ACEOF
1265#define PACKAGE_STRING "$PACKAGE_STRING"
1266_ACEOF
1267
1268
1269cat >>confdefs.h <<_ACEOF
1270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1271_ACEOF
1272
1273
f73dda09
JA
1274# Let the site file select an alternate cache file if it wants to.
1275# Prefer explicitly selected file to automatically selected ones.
1276if test -z "$CONFIG_SITE"; then
1277 if test "x$prefix" != xNONE; then
1278 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 else
1280 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 fi
1282fi
1283for ac_site_file in $CONFIG_SITE; do
1284 if test -r "$ac_site_file"; then
b80f6443 1285 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f73dda09 1286echo "$as_me: loading site script $ac_site_file" >&6;}
b80f6443 1287 sed 's/^/| /' "$ac_site_file" >&5
f73dda09
JA
1288 . "$ac_site_file"
1289 fi
1290done
1291
1292if test -r "$cache_file"; then
1293 # Some versions of bash will fail to source /dev/null (special
1294 # files actually), so we avoid doing that.
1295 if test -f "$cache_file"; then
b80f6443 1296 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f73dda09
JA
1297echo "$as_me: loading cache $cache_file" >&6;}
1298 case $cache_file in
1299 [\\/]* | ?:[\\/]* ) . $cache_file;;
1300 *) . ./$cache_file;;
1301 esac
1302 fi
1303else
b80f6443 1304 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f73dda09
JA
1305echo "$as_me: creating cache $cache_file" >&6;}
1306 >$cache_file
1307fi
1308
1309# Check that the precious variables saved in the cache have kept the same
1310# value.
1311ac_cache_corrupted=false
1312for ac_var in `(set) 2>&1 |
0628567a 1313 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
f73dda09
JA
1314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315 eval ac_new_set=\$ac_env_${ac_var}_set
1316 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317 eval ac_new_val="\$ac_env_${ac_var}_value"
1318 case $ac_old_set,$ac_new_set in
1319 set,)
b80f6443 1320 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f73dda09
JA
1321echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1323 ,set)
b80f6443 1324 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f73dda09
JA
1325echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326 ac_cache_corrupted=: ;;
1327 ,);;
1328 *)
1329 if test "x$ac_old_val" != "x$ac_new_val"; then
0628567a 1330 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f73dda09 1331echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
0628567a 1332 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f73dda09 1333echo "$as_me: former value: $ac_old_val" >&2;}
0628567a 1334 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f73dda09 1335echo "$as_me: current value: $ac_new_val" >&2;}
0628567a 1336 ac_cache_corrupted=:
f73dda09
JA
1337 fi;;
1338 esac
b80f6443 1339 # Pass precious variables to config.status.
f73dda09
JA
1340 if test "$ac_new_set" = set; then
1341 case $ac_new_val in
1342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
b80f6443
JA
1343 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344 *) ac_arg=$ac_var=$ac_new_val ;;
1345 esac
1346 case " $ac_configure_args " in
1347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1348 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f73dda09
JA
1349 esac
1350 fi
1351done
1352if $ac_cache_corrupted; then
b80f6443 1353 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f73dda09 1354echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b80f6443 1355 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f73dda09
JA
1356echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357 { (exit 1); exit 1; }; }
1358fi
1359
1360ac_ext=c
1361ac_cpp='$CPP $CPPFLAGS'
1362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365
b80f6443
JA
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
0628567a 1393
b80f6443 1394
f73dda09
JA
1395
1396ac_aux_dir=
1397for ac_dir in ./support $srcdir/./support; do
1398 if test -f $ac_dir/install-sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 break
1402 elif test -f $ac_dir/install.sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 break
1406 elif test -f $ac_dir/shtool; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 break
1410 fi
1411done
1412if test -z "$ac_aux_dir"; then
b80f6443 1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
f73dda09
JA
1414echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1415 { (exit 1); exit 1; }; }
1416fi
1417ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
0628567a 1421 ac_config_headers="$ac_config_headers config.h"
f73dda09 1422
b80f6443 1423
0628567a 1424BASHVERS=3.2
7117c2d2
JA
1425RELSTATUS=release
1426
1427case "$RELSTATUS" in
1428alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1429*) DEBUG= MALLOC_DEBUG= ;;
1430esac
f73dda09
JA
1431
1432# Make sure we can run config.sub.
1433$ac_config_sub sun4 >/dev/null 2>&1 ||
b80f6443 1434 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
f73dda09
JA
1435echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1436 { (exit 1); exit 1; }; }
1437
b80f6443 1438echo "$as_me:$LINENO: checking build system type" >&5
f73dda09
JA
1439echo $ECHO_N "checking build system type... $ECHO_C" >&6
1440if test "${ac_cv_build+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 ac_cv_build_alias=$build_alias
1444test -z "$ac_cv_build_alias" &&
1445 ac_cv_build_alias=`$ac_config_guess`
1446test -z "$ac_cv_build_alias" &&
b80f6443 1447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f73dda09
JA
1448echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1449 { (exit 1); exit 1; }; }
1450ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
b80f6443
JA
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1452echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
f73dda09
JA
1453 { (exit 1); exit 1; }; }
1454
1455fi
b80f6443 1456echo "$as_me:$LINENO: result: $ac_cv_build" >&5
f73dda09
JA
1457echo "${ECHO_T}$ac_cv_build" >&6
1458build=$ac_cv_build
1459build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462
b80f6443
JA
1463
1464echo "$as_me:$LINENO: checking host system type" >&5
f73dda09
JA
1465echo $ECHO_N "checking host system type... $ECHO_C" >&6
1466if test "${ac_cv_host+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469 ac_cv_host_alias=$host_alias
1470test -z "$ac_cv_host_alias" &&
1471 ac_cv_host_alias=$ac_cv_build_alias
1472ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
b80f6443 1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
f73dda09
JA
1474echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1476
1477fi
b80f6443 1478echo "$as_me:$LINENO: result: $ac_cv_host" >&5
f73dda09
JA
1479echo "${ECHO_T}$ac_cv_host" >&6
1480host=$ac_cv_host
1481host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484
b80f6443
JA
1485
1486
f73dda09
JA
1487opt_bash_malloc=yes
1488opt_purify=no
1489opt_purecov=no
1490opt_afs=no
1491opt_curses=no
1492opt_with_installed_readline=no
1493
1494#htmldir=
1495
1496case "${host_cpu}-${host_os}" in
1497alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1498*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1499*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1500sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1501sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
bb70624e
JA
1502mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1503m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1504sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
95732b49 1505#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
7117c2d2 1506#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
f73dda09 1507*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
bb70624e
JA
1508*-aix*) opt_bash_malloc=no ;; # AIX machines
1509*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
28ef6c31
JA
1510*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1511*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1512*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
bb70624e 1513*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
95732b49 1514*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
bb70624e
JA
1515*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1516*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1517*-beos*) opt_bash_malloc=no ;; # they say it's suitable
28ef6c31
JA
1518*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1519*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
ccc6cda3
JA
1520esac
1521
7117c2d2
JA
1522# memory scrambling on free()
1523case "${host_os}" in
1524sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1525*) opt_memscramble=yes ;;
1526esac
1527
b80f6443
JA
1528
1529# Check whether --with-lispdir or --without-lispdir was given.
1530if test "${with_lispdir+set}" = set; then
1531 withval="$with_lispdir"
1532 lispdir="$withval"
1533 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1534echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1535 echo "$as_me:$LINENO: result: $lispdir" >&5
1536echo "${ECHO_T}$lispdir" >&6
1537else
1538
1539 # If set to t, that means we are running in a shell under Emacs.
1540 # If you have an Emacs named "t", then use the full path.
1541 test x"$EMACS" = xt && EMACS=
1542 for ac_prog in emacs xemacs
1543do
1544 # Extract the first word of "$ac_prog", so it can be a program name with args.
1545set dummy $ac_prog; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_EMACS+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551 if test -n "$EMACS"; then
1552 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1553else
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_EMACS="$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565done
1566done
1567
1568fi
1569fi
1570EMACS=$ac_cv_prog_EMACS
1571if test -n "$EMACS"; then
1572 echo "$as_me:$LINENO: result: $EMACS" >&5
1573echo "${ECHO_T}$EMACS" >&6
1574else
1575 echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
1577fi
1578
1579 test -n "$EMACS" && break
1580done
1581test -n "$EMACS" || EMACS="no"
1582
1583 if test $EMACS != "no"; then
1584 if test x${lispdir+set} != xset; then
1585 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1586echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1587if test "${am_cv_lispdir+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 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;}'`
1591 if test -z "$am_cv_lispdir"; then
1592 am_cv_lispdir='${datadir}/emacs/site-lisp'
1593 fi
1594
1595fi
1596echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1597echo "${ECHO_T}$am_cv_lispdir" >&6
1598 lispdir="$am_cv_lispdir"
1599 fi
1600 fi
1601
1602fi;
1603
1604
1605
1606
1607
d166f048
JA
1608# Check whether --with-afs or --without-afs was given.
1609if test "${with_afs+set}" = set; then
1610 withval="$with_afs"
1611 opt_afs=$withval
f73dda09 1612fi;
d166f048 1613
bb70624e
JA
1614# Check whether --with-bash-malloc or --without-bash-malloc was given.
1615if test "${with_bash_malloc+set}" = set; then
1616 withval="$with_bash_malloc"
1617 opt_bash_malloc=$withval
f73dda09 1618fi;
bb70624e 1619
d166f048
JA
1620# Check whether --with-curses or --without-curses was given.
1621if test "${with_curses+set}" = set; then
1622 withval="$with_curses"
1623 opt_curses=$withval
f73dda09 1624fi;
ccc6cda3 1625
d166f048
JA
1626# Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1627if test "${with_gnu_malloc+set}" = set; then
1628 withval="$with_gnu_malloc"
bb70624e 1629 opt_bash_malloc=$withval
f73dda09 1630fi;
d166f048 1631
b72432fd
JA
1632# Check whether --with-installed-readline or --without-installed-readline was given.
1633if test "${with_installed_readline+set}" = set; then
1634 withval="$with_installed_readline"
1635 opt_with_installed_readline=$withval
f73dda09 1636fi;
b72432fd 1637
d166f048
JA
1638# Check whether --with-purecov or --without-purecov was given.
1639if test "${with_purecov+set}" = set; then
1640 withval="$with_purecov"
1641 opt_purecov=$withval
f73dda09 1642fi;
d166f048 1643
ccc6cda3
JA
1644# Check whether --with-purify or --without-purify was given.
1645if test "${with_purify+set}" = set; then
1646 withval="$with_purify"
1647 opt_purify=$withval
f73dda09 1648fi;
ccc6cda3 1649
f73dda09 1650if test "$opt_bash_malloc" = yes; then
d166f048
JA
1651 MALLOC_TARGET=malloc
1652 MALLOC_SRC=malloc.c
f73dda09
JA
1653
1654 MALLOC_LIB='-lmalloc'
1655 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1656 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1657 MALLOC_DEP='$(MALLOC_LIBRARY)'
1658
b80f6443 1659 cat >>confdefs.h <<\_ACEOF
bb70624e 1660#define USING_BASH_MALLOC 1
b80f6443 1661_ACEOF
bb70624e 1662
ccc6cda3 1663else
f73dda09
JA
1664 MALLOC_LIB=
1665 MALLOC_LIBRARY=
1666 MALLOC_LDFLAGS=
1667 MALLOC_DEP=
ccc6cda3
JA
1668fi
1669
1670if test "$opt_purify" = yes; then
d166f048 1671 PURIFY="purify "
b80f6443 1672 cat >>confdefs.h <<\_ACEOF
7117c2d2 1673#define DISABLE_MALLOC_WRAPPERS 1
b80f6443 1674_ACEOF
7117c2d2 1675
ccc6cda3
JA
1676else
1677 PURIFY=
1678fi
1679
d166f048
JA
1680if test "$opt_purecov" = yes; then
1681 PURIFY="${PURIFY}purecov"
1682fi
1683
ccc6cda3 1684if test "$opt_afs" = yes; then
b80f6443 1685 cat >>confdefs.h <<\_ACEOF
ccc6cda3 1686#define AFS 1
b80f6443 1687_ACEOF
ccc6cda3
JA
1688
1689fi
1690
d166f048
JA
1691if test "$opt_curses" = yes; then
1692 prefer_curses=yes
1693fi
1694
b80f6443 1695if test -z "${DEBUGGER_START_FILE}"; then
0628567a 1696 DEBUGGER_START_FILE=${ac_default_prefix}/share/bashdb/bashdb-main.inc
b80f6443
JA
1697fi
1698
ccc6cda3
JA
1699opt_minimal_config=no
1700
1701opt_job_control=yes
1702opt_alias=yes
1703opt_readline=yes
1704opt_history=yes
1705opt_bang_history=yes
1706opt_dirstack=yes
1707opt_restricted=yes
1708opt_process_subst=yes
1709opt_prompt_decoding=yes
1710opt_select=yes
1711opt_help=yes
1712opt_array_variables=yes
1713opt_dparen_arith=yes
cce855bc 1714opt_extended_glob=yes
ccc6cda3
JA
1715opt_brace_expansion=yes
1716opt_disabled_builtins=no
1717opt_command_timing=yes
bb70624e 1718opt_xpg_echo=no
95732b49 1719opt_strict_posix=no
cce855bc 1720opt_cond_command=yes
b80f6443 1721opt_cond_regexp=yes
bb70624e
JA
1722opt_arith_for_command=yes
1723opt_net_redirs=yes
1724opt_progcomp=yes
7117c2d2 1725opt_separate_help=no
b80f6443
JA
1726opt_multibyte=yes
1727opt_debugger=yes
95732b49 1728opt_single_longdoc_strings=yes
cce855bc
JA
1729
1730opt_static_link=no
1731opt_profiling=no
ccc6cda3
JA
1732
1733# Check whether --enable-minimal-config or --disable-minimal-config was given.
1734if test "${enable_minimal_config+set}" = set; then
1735 enableval="$enable_minimal_config"
1736 opt_minimal_config=$enableval
f73dda09 1737fi;
ccc6cda3
JA
1738
1739if test $opt_minimal_config = yes; then
1740 opt_job_control=no opt_alias=no opt_readline=no
1741 opt_history=no opt_bang_history=no opt_dirstack=no
1742 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1743 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1744 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
bb70624e 1745 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
7117c2d2 1746 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
b80f6443 1747 opt_multibyte=yes opt_cond_regexp=no
ccc6cda3
JA
1748fi
1749
ccc6cda3
JA
1750# Check whether --enable-alias or --disable-alias was given.
1751if test "${enable_alias+set}" = set; then
1752 enableval="$enable_alias"
1753 opt_alias=$enableval
f73dda09 1754fi;
bb70624e
JA
1755# Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1756if test "${enable_arith_for_command+set}" = set; then
1757 enableval="$enable_arith_for_command"
1758 opt_arith_for_command=$enableval
f73dda09 1759fi;
d166f048
JA
1760# Check whether --enable-array-variables or --disable-array-variables was given.
1761if test "${enable_array_variables+set}" = set; then
1762 enableval="$enable_array_variables"
1763 opt_array_variables=$enableval
f73dda09 1764fi;
ccc6cda3
JA
1765# Check whether --enable-bang-history or --disable-bang-history was given.
1766if test "${enable_bang_history+set}" = set; then
1767 enableval="$enable_bang_history"
1768 opt_bang_history=$enableval
f73dda09 1769fi;
d166f048
JA
1770# Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1771if test "${enable_brace_expansion+set}" = set; then
1772 enableval="$enable_brace_expansion"
1773 opt_brace_expansion=$enableval
f73dda09 1774fi;
d166f048
JA
1775# Check whether --enable-command-timing or --disable-command-timing was given.
1776if test "${enable_command_timing+set}" = set; then
1777 enableval="$enable_command_timing"
1778 opt_command_timing=$enableval
f73dda09 1779fi;
cce855bc
JA
1780# Check whether --enable-cond-command or --disable-cond-command was given.
1781if test "${enable_cond_command+set}" = set; then
1782 enableval="$enable_cond_command"
1783 opt_cond_command=$enableval
f73dda09 1784fi;
b80f6443
JA
1785# Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1786if test "${enable_cond_regexp+set}" = set; then
1787 enableval="$enable_cond_regexp"
1788 opt_cond_regexp=$enableval
1789fi;
1790# Check whether --enable-debugger or --disable-debugger was given.
1791if test "${enable_debugger+set}" = set; then
1792 enableval="$enable_debugger"
1793 opt_debugger=$enableval
1794fi;
d166f048
JA
1795# Check whether --enable-directory-stack or --disable-directory-stack was given.
1796if test "${enable_directory_stack+set}" = set; then
1797 enableval="$enable_directory_stack"
1798 opt_dirstack=$enableval
f73dda09 1799fi;
d166f048
JA
1800# Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1801if test "${enable_disabled_builtins+set}" = set; then
1802 enableval="$enable_disabled_builtins"
1803 opt_disabled_builtins=$enableval
f73dda09 1804fi;
d166f048
JA
1805# Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1806if test "${enable_dparen_arithmetic+set}" = set; then
1807 enableval="$enable_dparen_arithmetic"
1808 opt_dparen_arith=$enableval
f73dda09 1809fi;
cce855bc
JA
1810# Check whether --enable-extended-glob or --disable-extended-glob was given.
1811if test "${enable_extended_glob+set}" = set; then
1812 enableval="$enable_extended_glob"
1813 opt_extended_glob=$enableval
f73dda09 1814fi;
ccc6cda3
JA
1815# Check whether --enable-help-builtin or --disable-help-builtin was given.
1816if test "${enable_help_builtin+set}" = set; then
1817 enableval="$enable_help_builtin"
1818 opt_help=$enableval
f73dda09 1819fi;
d166f048
JA
1820# Check whether --enable-history or --disable-history was given.
1821if test "${enable_history+set}" = set; then
1822 enableval="$enable_history"
1823 opt_history=$enableval
f73dda09 1824fi;
d166f048
JA
1825# Check whether --enable-job-control or --disable-job-control was given.
1826if test "${enable_job_control+set}" = set; then
1827 enableval="$enable_job_control"
1828 opt_job_control=$enableval
f73dda09 1829fi;
b80f6443
JA
1830# Check whether --enable-multibyte or --disable-multibyte was given.
1831if test "${enable_multibyte+set}" = set; then
1832 enableval="$enable_multibyte"
1833 opt_multibyte=$enableval
1834fi;
bb70624e
JA
1835# Check whether --enable-net-redirections or --disable-net-redirections was given.
1836if test "${enable_net_redirections+set}" = set; then
1837 enableval="$enable_net_redirections"
1838 opt_net_redirs=$enableval
f73dda09 1839fi;
d166f048
JA
1840# Check whether --enable-process-substitution or --disable-process-substitution was given.
1841if test "${enable_process_substitution+set}" = set; then
1842 enableval="$enable_process_substitution"
1843 opt_process_subst=$enableval
f73dda09 1844fi;
bb70624e
JA
1845# Check whether --enable-progcomp or --disable-progcomp was given.
1846if test "${enable_progcomp+set}" = set; then
1847 enableval="$enable_progcomp"
1848 opt_progcomp=$enableval
f73dda09 1849fi;
d166f048
JA
1850# Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1851if test "${enable_prompt_string_decoding+set}" = set; then
1852 enableval="$enable_prompt_string_decoding"
1853 opt_prompt_decoding=$enableval
f73dda09 1854fi;
d166f048
JA
1855# Check whether --enable-readline or --disable-readline was given.
1856if test "${enable_readline+set}" = set; then
1857 enableval="$enable_readline"
1858 opt_readline=$enableval
f73dda09 1859fi;
d166f048
JA
1860# Check whether --enable-restricted or --disable-restricted was given.
1861if test "${enable_restricted+set}" = set; then
1862 enableval="$enable_restricted"
1863 opt_restricted=$enableval
f73dda09 1864fi;
d166f048
JA
1865# Check whether --enable-select or --disable-select was given.
1866if test "${enable_select+set}" = set; then
1867 enableval="$enable_select"
1868 opt_select=$enableval
f73dda09 1869fi;
7117c2d2
JA
1870# Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1871if test "${enable_separate_helpfiles+set}" = set; then
1872 enableval="$enable_separate_helpfiles"
1873 opt_separate_help=$enableval
1874fi;
95732b49
JA
1875# Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1876if test "${enable_single_help_strings+set}" = set; then
1877 enableval="$enable_single_help_strings"
1878 opt_single_longdoc_strings=$enableval
1879fi;
1880# Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1881if test "${enable_strict_posix_default+set}" = set; then
1882 enableval="$enable_strict_posix_default"
1883 opt_strict_posix=$enableval
1884fi;
ccc6cda3
JA
1885# Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1886if test "${enable_usg_echo_default+set}" = set; then
1887 enableval="$enable_usg_echo_default"
bb70624e 1888 opt_xpg_echo=$enableval
f73dda09 1889fi;
bb70624e
JA
1890# Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1891if test "${enable_xpg_echo_default+set}" = set; then
1892 enableval="$enable_xpg_echo_default"
1893 opt_xpg_echo=$enableval
f73dda09 1894fi;
ccc6cda3 1895
7117c2d2
JA
1896# Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1897if test "${enable_mem_scramble+set}" = set; then
1898 enableval="$enable_mem_scramble"
1899 opt_memscramble=$enableval
1900fi;
cce855bc
JA
1901# Check whether --enable-profiling or --disable-profiling was given.
1902if test "${enable_profiling+set}" = set; then
1903 enableval="$enable_profiling"
1904 opt_profiling=$enableval
f73dda09 1905fi;
cce855bc
JA
1906# Check whether --enable-static-link or --disable-static-link was given.
1907if test "${enable_static_link+set}" = set; then
1908 enableval="$enable_static_link"
1909 opt_static_link=$enableval
f73dda09 1910fi;
b72432fd 1911
b80f6443
JA
1912
1913
ccc6cda3 1914if test $opt_alias = yes; then
b80f6443 1915cat >>confdefs.h <<\_ACEOF
ccc6cda3 1916#define ALIAS 1
b80f6443 1917_ACEOF
ccc6cda3 1918
ccc6cda3
JA
1919fi
1920if test $opt_dirstack = yes; then
b80f6443 1921cat >>confdefs.h <<\_ACEOF
ccc6cda3 1922#define PUSHD_AND_POPD 1
b80f6443 1923_ACEOF
ccc6cda3
JA
1924
1925fi
1926if test $opt_restricted = yes; then
b80f6443 1927cat >>confdefs.h <<\_ACEOF
ccc6cda3 1928#define RESTRICTED_SHELL 1
b80f6443 1929_ACEOF
ccc6cda3
JA
1930
1931fi
1932if test $opt_process_subst = yes; then
b80f6443 1933cat >>confdefs.h <<\_ACEOF
ccc6cda3 1934#define PROCESS_SUBSTITUTION 1
b80f6443 1935_ACEOF
ccc6cda3
JA
1936
1937fi
1938if test $opt_prompt_decoding = yes; then
b80f6443 1939cat >>confdefs.h <<\_ACEOF
ccc6cda3 1940#define PROMPT_STRING_DECODE 1
b80f6443 1941_ACEOF
ccc6cda3
JA
1942
1943fi
1944if test $opt_select = yes; then
b80f6443 1945cat >>confdefs.h <<\_ACEOF
ccc6cda3 1946#define SELECT_COMMAND 1
b80f6443 1947_ACEOF
ccc6cda3
JA
1948
1949fi
1950if test $opt_help = yes; then
b80f6443 1951cat >>confdefs.h <<\_ACEOF
ccc6cda3 1952#define HELP_BUILTIN 1
b80f6443 1953_ACEOF
ccc6cda3
JA
1954
1955fi
1956if test $opt_array_variables = yes; then
b80f6443 1957cat >>confdefs.h <<\_ACEOF
ccc6cda3 1958#define ARRAY_VARS 1
b80f6443 1959_ACEOF
ccc6cda3
JA
1960
1961fi
1962if test $opt_dparen_arith = yes; then
b80f6443 1963cat >>confdefs.h <<\_ACEOF
ccc6cda3 1964#define DPAREN_ARITHMETIC 1
b80f6443 1965_ACEOF
ccc6cda3
JA
1966
1967fi
1968if test $opt_brace_expansion = yes; then
b80f6443 1969cat >>confdefs.h <<\_ACEOF
ccc6cda3 1970#define BRACE_EXPANSION 1
b80f6443 1971_ACEOF
ccc6cda3
JA
1972
1973fi
1974if test $opt_disabled_builtins = yes; then
b80f6443 1975cat >>confdefs.h <<\_ACEOF
ccc6cda3 1976#define DISABLED_BUILTINS 1
b80f6443 1977_ACEOF
ccc6cda3
JA
1978
1979fi
1980if test $opt_command_timing = yes; then
b80f6443 1981cat >>confdefs.h <<\_ACEOF
ccc6cda3 1982#define COMMAND_TIMING 1
b80f6443 1983_ACEOF
ccc6cda3
JA
1984
1985fi
bb70624e 1986if test $opt_xpg_echo = yes ; then
b80f6443 1987cat >>confdefs.h <<\_ACEOF
bb70624e 1988#define DEFAULT_ECHO_TO_XPG 1
b80f6443 1989_ACEOF
ccc6cda3 1990
95732b49
JA
1991fi
1992if test $opt_strict_posix = yes; then
1993cat >>confdefs.h <<\_ACEOF
1994#define STRICT_POSIX 1
1995_ACEOF
1996
cce855bc
JA
1997fi
1998if test $opt_extended_glob = yes ; then
b80f6443 1999cat >>confdefs.h <<\_ACEOF
cce855bc 2000#define EXTENDED_GLOB 1
b80f6443 2001_ACEOF
cce855bc
JA
2002
2003fi
2004if test $opt_cond_command = yes ; then
b80f6443 2005cat >>confdefs.h <<\_ACEOF
cce855bc 2006#define COND_COMMAND 1
b80f6443
JA
2007_ACEOF
2008
2009fi
2010if test $opt_cond_regexp = yes ; then
2011cat >>confdefs.h <<\_ACEOF
2012#define COND_REGEXP 1
2013_ACEOF
cce855bc 2014
bb70624e
JA
2015fi
2016if test $opt_arith_for_command = yes; then
b80f6443 2017cat >>confdefs.h <<\_ACEOF
bb70624e 2018#define ARITH_FOR_COMMAND 1
b80f6443 2019_ACEOF
bb70624e
JA
2020
2021fi
2022if test $opt_net_redirs = yes; then
b80f6443 2023cat >>confdefs.h <<\_ACEOF
bb70624e 2024#define NETWORK_REDIRECTIONS 1
b80f6443 2025_ACEOF
bb70624e
JA
2026
2027fi
2028if test $opt_progcomp = yes; then
b80f6443 2029cat >>confdefs.h <<\_ACEOF
bb70624e 2030#define PROGRAMMABLE_COMPLETION 1
b80f6443
JA
2031_ACEOF
2032
2033fi
2034if test $opt_multibyte = no; then
2035cat >>confdefs.h <<\_ACEOF
2036#define NO_MULTIBYTE_SUPPORT 1
2037_ACEOF
2038
2039fi
2040if test $opt_debugger = yes; then
2041cat >>confdefs.h <<\_ACEOF
2042#define DEBUGGER 1
2043_ACEOF
bb70624e 2044
ccc6cda3
JA
2045fi
2046
7117c2d2 2047if test $opt_memscramble = yes; then
b80f6443 2048cat >>confdefs.h <<\_ACEOF
7117c2d2 2049#define MEMSCRAMBLE 1
b80f6443 2050_ACEOF
7117c2d2
JA
2051
2052fi
2053
d166f048
JA
2054if test "$opt_minimal_config" = yes; then
2055 TESTSCRIPT=run-minimal
2056else
2057 TESTSCRIPT=run-all
2058fi
2059
7117c2d2
JA
2060HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2061if test "$opt_separate_help" != no; then
2062 if test "$opt_separate_help" = "yes" ; then
2063 HELPDIR='${datadir}/bash'
2064 else
2065 HELPDIR=$opt_separate_help
2066 fi
2067 HELPDIRDEFINE='-H ${HELPDIR}'
2068 HELPINSTALL='install-help'
2069fi
95732b49
JA
2070HELPSTRINGS=
2071if test "$opt_single_longdoc_strings" != "yes"; then
2072 HELPSTRINGS='-S'
2073fi
2074
7117c2d2 2075
b80f6443
JA
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
f73dda09 2092echo ""
7117c2d2 2093echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
f73dda09 2094echo ""
d166f048 2095
f73dda09
JA
2096ac_ext=c
2097ac_cpp='$CPP $CPPFLAGS'
2098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101if test -n "$ac_tool_prefix"; then
2102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103set dummy ${ac_tool_prefix}gcc; ac_word=$2
b80f6443 2104echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2111else
b80f6443
JA
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 break 2
2122 fi
2123done
f73dda09 2124done
ccc6cda3 2125
f73dda09
JA
2126fi
2127fi
2128CC=$ac_cv_prog_CC
2129if test -n "$CC"; then
b80f6443 2130 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09
JA
2131echo "${ECHO_T}$CC" >&6
2132else
b80f6443 2133 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2134echo "${ECHO_T}no" >&6
2135fi
ccc6cda3 2136
f73dda09
JA
2137fi
2138if test -z "$ac_cv_prog_CC"; then
2139 ac_ct_CC=$CC
2140 # Extract the first word of "gcc", so it can be a program name with args.
2141set dummy gcc; ac_word=$2
b80f6443 2142echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146else
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149else
b80f6443
JA
2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2160 fi
2161done
f73dda09 2162done
ccc6cda3 2163
f73dda09
JA
2164fi
2165fi
2166ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167if test -n "$ac_ct_CC"; then
b80f6443 2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f73dda09
JA
2169echo "${ECHO_T}$ac_ct_CC" >&6
2170else
b80f6443 2171 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2172echo "${ECHO_T}no" >&6
2173fi
ccc6cda3 2174
f73dda09
JA
2175 CC=$ac_ct_CC
2176else
2177 CC="$ac_cv_prog_CC"
2178fi
bb70624e 2179
f73dda09
JA
2180if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2183set dummy ${ac_tool_prefix}cc; ac_word=$2
b80f6443 2184echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
2188else
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
b80f6443
JA
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="${ac_tool_prefix}cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
f73dda09
JA
2204done
2205
ccc6cda3
JA
2206fi
2207fi
f73dda09 2208CC=$ac_cv_prog_CC
ccc6cda3 2209if test -n "$CC"; then
b80f6443 2210 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09
JA
2211echo "${ECHO_T}$CC" >&6
2212else
b80f6443 2213 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217fi
2218if test -z "$ac_cv_prog_CC"; then
2219 ac_ct_CC=$CC
2220 # Extract the first word of "cc", so it can be a program name with args.
2221set dummy cc; ac_word=$2
b80f6443 2222echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 if test -n "$ac_ct_CC"; then
2228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229else
b80f6443
JA
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_ac_ct_CC="cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241done
f73dda09
JA
2242done
2243
2244fi
2245fi
2246ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247if test -n "$ac_ct_CC"; then
b80f6443 2248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f73dda09
JA
2249echo "${ECHO_T}$ac_ct_CC" >&6
2250else
b80f6443 2251 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
2252echo "${ECHO_T}no" >&6
2253fi
2254
2255 CC=$ac_ct_CC
ccc6cda3 2256else
f73dda09 2257 CC="$ac_cv_prog_CC"
ccc6cda3
JA
2258fi
2259
f73dda09 2260fi
ccc6cda3
JA
2261if test -z "$CC"; then
2262 # Extract the first word of "cc", so it can be a program name with args.
2263set dummy cc; ac_word=$2
b80f6443 2264echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
2268else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271else
ccc6cda3 2272 ac_prog_rejected=no
b80f6443
JA
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281 ac_prog_rejected=yes
2282 continue
2283 fi
2284 ac_cv_prog_CC="cc"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288done
f73dda09
JA
2289done
2290
ccc6cda3
JA
2291if test $ac_prog_rejected = yes; then
2292 # We found a bogon in the path, so make sure we never use it.
2293 set dummy $ac_cv_prog_CC
2294 shift
f73dda09 2295 if test $# != 0; then
ccc6cda3
JA
2296 # We chose a different compiler from the bogus one.
2297 # However, it has the same basename, so the bogon will be chosen
2298 # first if we set CC to just the basename; use the full file name.
2299 shift
0628567a 2300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ccc6cda3
JA
2301 fi
2302fi
2303fi
2304fi
f73dda09 2305CC=$ac_cv_prog_CC
ccc6cda3 2306if test -n "$CC"; then
b80f6443 2307 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09 2308echo "${ECHO_T}$CC" >&6
ccc6cda3 2309else
b80f6443 2310 echo "$as_me:$LINENO: result: no" >&5
f73dda09 2311echo "${ECHO_T}no" >&6
ccc6cda3
JA
2312fi
2313
f73dda09
JA
2314fi
2315if test -z "$CC"; then
2316 if test -n "$ac_tool_prefix"; then
2317 for ac_prog in cl
2318 do
2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b80f6443 2321echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323if test "${ac_cv_prog_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e
JA
2325else
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2328else
b80f6443
JA
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340done
f73dda09
JA
2341done
2342
bb70624e
JA
2343fi
2344fi
f73dda09 2345CC=$ac_cv_prog_CC
bb70624e 2346if test -n "$CC"; then
b80f6443 2347 echo "$as_me:$LINENO: result: $CC" >&5
f73dda09 2348echo "${ECHO_T}$CC" >&6
bb70624e 2349else
b80f6443 2350 echo "$as_me:$LINENO: result: no" >&5
f73dda09 2351echo "${ECHO_T}no" >&6
bb70624e 2352fi
ccc6cda3 2353
f73dda09
JA
2354 test -n "$CC" && break
2355 done
ccc6cda3 2356fi
f73dda09
JA
2357if test -z "$CC"; then
2358 ac_ct_CC=$CC
2359 for ac_prog in cl
2360do
2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
2362set dummy $ac_prog; ac_word=$2
b80f6443 2363echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370else
b80f6443
JA
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382done
f73dda09 2383done
ccc6cda3 2384
ccc6cda3 2385fi
ccc6cda3 2386fi
f73dda09
JA
2387ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388if test -n "$ac_ct_CC"; then
b80f6443 2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f73dda09
JA
2390echo "${ECHO_T}$ac_ct_CC" >&6
2391else
b80f6443 2392 echo "$as_me:$LINENO: result: no" >&5
f73dda09 2393echo "${ECHO_T}no" >&6
ccc6cda3
JA
2394fi
2395
f73dda09
JA
2396 test -n "$ac_ct_CC" && break
2397done
ccc6cda3 2398
f73dda09 2399 CC=$ac_ct_CC
bb70624e
JA
2400fi
2401
f73dda09
JA
2402fi
2403
b80f6443 2404
0628567a
JA
2405test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406See \`config.log' for more details." >&5
2407echo "$as_me: error: no acceptable C compiler found in \$PATH
2408See \`config.log' for more details." >&2;}
f73dda09
JA
2409 { (exit 1); exit 1; }; }
2410
2411# Provide some information about the compiler.
b80f6443 2412echo "$as_me:$LINENO:" \
f73dda09
JA
2413 "checking for C compiler version" >&5
2414ac_compiler=`set X $ac_compile; echo $2`
b80f6443 2415{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
f73dda09
JA
2416 (eval $ac_compiler --version </dev/null >&5) 2>&5
2417 ac_status=$?
b80f6443 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2419 (exit $ac_status); }
b80f6443 2420{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
f73dda09
JA
2421 (eval $ac_compiler -v </dev/null >&5) 2>&5
2422 ac_status=$?
b80f6443 2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2424 (exit $ac_status); }
b80f6443 2425{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
f73dda09
JA
2426 (eval $ac_compiler -V </dev/null >&5) 2>&5
2427 ac_status=$?
b80f6443 2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2429 (exit $ac_status); }
2430
2431cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h. */
f73dda09
JA
2437
2438int
2439main ()
2440{
2441
2442 ;
2443 return 0;
2444}
2445_ACEOF
2446ac_clean_files_save=$ac_clean_files
0628567a 2447ac_clean_files="$ac_clean_files a.out a.exe b.out"
f73dda09
JA
2448# Try to create an executable without -o first, disregard a.out.
2449# It will help us diagnose broken compilers, and finding out an intuition
2450# of exeext.
0628567a
JA
2451echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2452echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
f73dda09 2453ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
b80f6443 2454if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
f73dda09
JA
2455 (eval $ac_link_default) 2>&5
2456 ac_status=$?
b80f6443 2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2458 (exit $ac_status); }; then
2459 # Find the output, starting from the most likely. This scheme is
2460# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2461# resort.
b80f6443
JA
2462
2463# Be careful to initialize this variable, since it used to be cached.
2464# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2465ac_cv_exeext=
0628567a
JA
2466# b.out is created by i960 compilers.
2467for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2468do
2469 test -f "$ac_file" || continue
f73dda09 2470 case $ac_file in
0628567a
JA
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2472 ;;
2473 conftest.$ac_ext )
2474 # This is the source file.
2475 ;;
2476 [ab].out )
2477 # We found the default executable, but exeext='' is most
2478 # certainly right.
2479 break;;
2480 *.* )
2481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # FIXME: I believe we export ac_cv_exeext for Libtool,
2483 # but it would be cool to find out if it's true. Does anybody
2484 # maintain Libtool? --akim.
2485 export ac_cv_exeext
2486 break;;
2487 * )
2488 break;;
f73dda09
JA
2489 esac
2490done
ccc6cda3 2491else
f73dda09 2492 echo "$as_me: failed program was:" >&5
0628567a
JA
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2496See \`config.log' for more details." >&5
2497echo "$as_me: error: C compiler cannot create executables
2498See \`config.log' for more details." >&2;}
f73dda09
JA
2499 { (exit 77); exit 77; }; }
2500fi
2501
2502ac_exeext=$ac_cv_exeext
b80f6443 2503echo "$as_me:$LINENO: result: $ac_file" >&5
f73dda09
JA
2504echo "${ECHO_T}$ac_file" >&6
2505
2506# Check the compiler produces executables we can run. If not, either
2507# the compiler is broken, or we cross compile.
b80f6443 2508echo "$as_me:$LINENO: checking whether the C compiler works" >&5
f73dda09
JA
2509echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2510# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2511# If not cross compiling, check that we can run a simple program.
2512if test "$cross_compiling" != yes; then
2513 if { ac_try='./$ac_file'
b80f6443 2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
b80f6443 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2518 (exit $ac_status); }; }; then
2519 cross_compiling=no
2520 else
2521 if test "$cross_compiling" = maybe; then
2522 cross_compiling=yes
2523 else
b80f6443 2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
0628567a
JA
2525If you meant to cross compile, use \`--host'.
2526See \`config.log' for more details." >&5
f73dda09 2527echo "$as_me: error: cannot run C compiled programs.
0628567a
JA
2528If you meant to cross compile, use \`--host'.
2529See \`config.log' for more details." >&2;}
f73dda09
JA
2530 { (exit 1); exit 1; }; }
2531 fi
2532 fi
2533fi
b80f6443 2534echo "$as_me:$LINENO: result: yes" >&5
f73dda09
JA
2535echo "${ECHO_T}yes" >&6
2536
0628567a 2537rm -f a.out a.exe conftest$ac_cv_exeext b.out
f73dda09
JA
2538ac_clean_files=$ac_clean_files_save
2539# Check the compiler produces executables we can run. If not, either
2540# the compiler is broken, or we cross compile.
b80f6443 2541echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
f73dda09 2542echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
b80f6443 2543echo "$as_me:$LINENO: result: $cross_compiling" >&5
f73dda09
JA
2544echo "${ECHO_T}$cross_compiling" >&6
2545
b80f6443
JA
2546echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
2549 (eval $ac_link) 2>&5
2550 ac_status=$?
b80f6443 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555# work properly (i.e., refer to `conftest.exe'), while it won't with
2556# `rm'.
0628567a
JA
2557for ac_file in conftest.exe conftest conftest.*; do
2558 test -f "$ac_file" || continue
f73dda09 2559 case $ac_file in
0628567a 2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
f73dda09 2561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
0628567a
JA
2562 export ac_cv_exeext
2563 break;;
f73dda09
JA
2564 * ) break;;
2565 esac
2566done
ccc6cda3 2567else
0628567a
JA
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2571See \`config.log' for more details." >&2;}
f73dda09
JA
2572 { (exit 1); exit 1; }; }
2573fi
2574
2575rm -f conftest$ac_cv_exeext
b80f6443 2576echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
f73dda09
JA
2577echo "${ECHO_T}$ac_cv_exeext" >&6
2578
2579rm -f conftest.$ac_ext
2580EXEEXT=$ac_cv_exeext
2581ac_exeext=$EXEEXT
b80f6443
JA
2582echo "$as_me:$LINENO: checking for suffix of object files" >&5
2583echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
f73dda09
JA
2584if test "${ac_cv_objext+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
2587 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
2588/* confdefs.h. */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h. */
f73dda09
JA
2593
2594int
2595main ()
2596{
2597
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602rm -f conftest.o conftest.obj
b80f6443 2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f73dda09
JA
2604 (eval $ac_compile) 2>&5
2605 ac_status=$?
b80f6443 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2607 (exit $ac_status); }; then
2608 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2609 case $ac_file in
0628567a 2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
f73dda09
JA
2611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612 break;;
2613 esac
2614done
2615else
2616 echo "$as_me: failed program was:" >&5
0628567a
JA
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620See \`config.log' for more details." >&5
2621echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622See \`config.log' for more details." >&2;}
f73dda09 2623 { (exit 1); exit 1; }; }
ccc6cda3 2624fi
ccc6cda3 2625
f73dda09 2626rm -f conftest.$ac_cv_objext conftest.$ac_ext
ccc6cda3 2627fi
b80f6443 2628echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
f73dda09
JA
2629echo "${ECHO_T}$ac_cv_objext" >&6
2630OBJEXT=$ac_cv_objext
2631ac_objext=$OBJEXT
b80f6443 2632echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
f73dda09
JA
2633echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
f73dda09
JA
2643
2644int
2645main ()
2646{
2647#ifndef __GNUC__
2648 choke me
2649#endif
2650
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655rm -f conftest.$ac_objext
b80f6443 2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 2657 (eval $ac_compile) 2>conftest.er1
f73dda09 2658 ac_status=$?
0628567a
JA
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
b80f6443 2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2663 (exit $ac_status); } &&
0628567a
JA
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
b80f6443 2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
b80f6443 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2676 (exit $ac_status); }; }; then
2677 ac_compiler_gnu=yes
2678else
2679 echo "$as_me: failed program was:" >&5
0628567a
JA
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
f73dda09
JA
2682ac_compiler_gnu=no
2683fi
0628567a 2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
2685ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686
2687fi
b80f6443 2688echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
f73dda09
JA
2689echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690GCC=`test $ac_compiler_gnu = yes && echo yes`
2691ac_test_CFLAGS=${CFLAGS+set}
2692ac_save_CFLAGS=$CFLAGS
2693CFLAGS="-g"
b80f6443 2694echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
f73dda09
JA
2695echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
2700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
f73dda09
JA
2705
2706int
2707main ()
2708{
ccc6cda3 2709
f73dda09
JA
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
b80f6443 2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 2716 (eval $ac_compile) 2>conftest.er1
f73dda09 2717 ac_status=$?
0628567a
JA
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
b80f6443 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2722 (exit $ac_status); } &&
0628567a
JA
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
b80f6443 2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
b80f6443 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_g=yes
2737else
2738 echo "$as_me: failed program was:" >&5
0628567a
JA
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
f73dda09
JA
2741ac_cv_prog_cc_g=no
2742fi
0628567a 2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 2744fi
b80f6443 2745echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
f73dda09 2746echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
bb70624e 2747if test "$ac_test_CFLAGS" = set; then
f73dda09 2748 CFLAGS=$ac_save_CFLAGS
bb70624e
JA
2749elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
ccc6cda3
JA
2751 CFLAGS="-g -O2"
2752 else
bb70624e 2753 CFLAGS="-g"
ccc6cda3
JA
2754 fi
2755else
bb70624e
JA
2756 if test "$GCC" = yes; then
2757 CFLAGS="-O2"
2758 else
2759 CFLAGS=
2760 fi
ccc6cda3 2761fi
0628567a
JA
2762echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767 ac_cv_prog_cc_stdc=no
2768ac_save_CC=$CC
2769cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775#include <stdarg.h>
2776#include <stdio.h>
2777#include <sys/types.h>
2778#include <sys/stat.h>
2779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780struct buf { int x; };
2781FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782static char *e (p, i)
2783 char **p;
2784 int i;
2785{
2786 return p[i];
2787}
2788static char *f (char * (*g) (char **, int), char **p, ...)
2789{
2790 char *s;
2791 va_list v;
2792 va_start (v,p);
2793 s = g (p, va_arg (v,int));
2794 va_end (v);
2795 return s;
2796}
2797
2798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807int test (int i, double x);
2808struct s1 {int (*f) (int a);};
2809struct s2 {int (*f) (double a);};
2810int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811int argc;
2812char **argv;
2813int
2814main ()
2815{
2816return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821# Don't try gcc -ansi; that turns off useful extensions and
2822# breaks some systems' header files.
2823# AIX -qlanglvl=ansi
2824# Ultrix and OSF/1 -std1
2825# HP-UX 10.20 and later -Ae
2826# HP-UX older versions -Aa -D_HPUX_SOURCE
2827# SVR4 -Xc -D__EXTENSIONS__
2828for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829do
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc=$ac_arg
2854break
2855else
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859fi
2860rm -f conftest.err conftest.$ac_objext
2861done
2862rm -f conftest.$ac_ext conftest.$ac_objext
2863CC=$ac_save_CC
2864
2865fi
2866
2867case "x$ac_cv_prog_cc_stdc" in
2868 x|xno)
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870echo "${ECHO_T}none needed" >&6 ;;
2871 *)
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC="$CC $ac_cv_prog_cc_stdc" ;;
2875esac
2876
f73dda09
JA
2877# Some people use a C++ compiler to compile C. Since we use `exit',
2878# in C++ we need to declare it. In case someone uses the same compiler
2879# for both compiling C and C++ we need to have the C++ compiler decide
2880# the declaration of exit, since it's the most demanding environment.
2881cat >conftest.$ac_ext <<_ACEOF
2882#ifndef __cplusplus
2883 choke me
2884#endif
2885_ACEOF
2886rm -f conftest.$ac_objext
b80f6443 2887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 2888 (eval $ac_compile) 2>conftest.er1
f73dda09 2889 ac_status=$?
0628567a
JA
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
b80f6443 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2894 (exit $ac_status); } &&
0628567a
JA
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
b80f6443 2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
b80f6443 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2907 (exit $ac_status); }; }; then
2908 for ac_declaration in \
0628567a 2909 '' \
f73dda09
JA
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2914 'void exit (int);'
2915do
2916 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
f73dda09 2922$ac_declaration
0628567a 2923#include <stdlib.h>
f73dda09
JA
2924int
2925main ()
2926{
2927exit (42);
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext
b80f6443 2933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 2934 (eval $ac_compile) 2>conftest.er1
f73dda09 2935 ac_status=$?
0628567a
JA
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
b80f6443 2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2940 (exit $ac_status); } &&
0628567a
JA
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
b80f6443 2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
b80f6443 2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2953 (exit $ac_status); }; }; then
2954 :
2955else
2956 echo "$as_me: failed program was:" >&5
0628567a
JA
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
f73dda09
JA
2959continue
2960fi
0628567a 2961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 2962 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
2963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
f73dda09
JA
2968$ac_declaration
2969int
2970main ()
2971{
2972exit (42);
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977rm -f conftest.$ac_objext
b80f6443 2978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 2979 (eval $ac_compile) 2>conftest.er1
f73dda09 2980 ac_status=$?
0628567a
JA
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
b80f6443 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 2985 (exit $ac_status); } &&
0628567a
JA
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
b80f6443 2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
b80f6443 2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
2998 (exit $ac_status); }; }; then
2999 break
3000else
3001 echo "$as_me: failed program was:" >&5
0628567a
JA
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
f73dda09 3004fi
0628567a 3005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 3006done
f73dda09
JA
3007rm -f conftest*
3008if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3012fi
cce855bc 3013
f73dda09
JA
3014else
3015 echo "$as_me: failed program was:" >&5
0628567a
JA
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
f73dda09 3018fi
0628567a 3019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3020ac_ext=c
3021ac_cpp='$CPP $CPPFLAGS'
3022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_c_compiler_gnu
bb70624e 3025
f73dda09 3026
ccc6cda3 3027
b80f6443
JA
3028
3029 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3033else
b80f6443
JA
3034 ac_check_lib_save_LIBS=$LIBS
3035LIBS="-lcposix $LIBS"
3036cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
b80f6443
JA
3042
3043/* Override any gcc2 internal prototype to avoid an error. */
3044#ifdef __cplusplus
3045extern "C"
3046#endif
3047/* We use char because int might match the return type of a gcc2
3048 builtin and then its argument prototype would still apply. */
3049char strerror ();
3050int
3051main ()
3052{
3053strerror ();
3054 ;
3055 return 0;
3056}
3057_ACEOF
3058rm -f conftest.$ac_objext conftest$ac_exeext
3059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 3060 (eval $ac_link) 2>conftest.er1
b80f6443 3061 ac_status=$?
0628567a
JA
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
b80f6443
JA
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
0628567a
JA
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_cposix_strerror=yes
3081else
3082 echo "$as_me: failed program was:" >&5
0628567a
JA
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
b80f6443
JA
3085ac_cv_lib_cposix_strerror=no
3086fi
0628567a
JA
3087rm -f conftest.err conftest.$ac_objext \
3088 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
3089LIBS=$ac_check_lib_save_LIBS
3090fi
3091echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093if test $ac_cv_lib_cposix_strerror = yes; then
3094 LIBS="$LIBS -lcposix"
ccc6cda3
JA
3095fi
3096
b80f6443
JA
3097
3098
f73dda09
JA
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
b80f6443 3104echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
f73dda09 3105echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ccc6cda3
JA
3106# On Suns, sometimes $CPP names a directory.
3107if test -n "$CPP" && test -d "$CPP"; then
3108 CPP=
3109fi
3110if test -z "$CPP"; then
f73dda09
JA
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116 do
3117 ac_preproc_ok=false
3118for ac_c_preproc_warn_flag in '' yes
3119do
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
0628567a
JA
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
ccc6cda3 3124 # On the NeXT, cc -E runs the code through the compiler's parser,
f73dda09
JA
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132#ifdef __STDC__
3133# include <limits.h>
3134#else
3135# include <assert.h>
3136#endif
3137 Syntax error
f73dda09 3138_ACEOF
b80f6443 3139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
0628567a 3142 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3143 rm -f conftest.er1
3144 cat conftest.err >&5
b80f6443 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3150 else
3151 ac_cpp_err=
3152 fi
3153else
3154 ac_cpp_err=yes
3155fi
3156if test -z "$ac_cpp_err"; then
ccc6cda3
JA
3157 :
3158else
f73dda09 3159 echo "$as_me: failed program was:" >&5
0628567a
JA
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
f73dda09
JA
3162 # Broken: fails on valid input.
3163continue
3164fi
3165rm -f conftest.err conftest.$ac_ext
3166
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3170/* confdefs.h. */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h. */
f73dda09
JA
3175#include <ac_nonexistent.h>
3176_ACEOF
b80f6443 3177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179 ac_status=$?
0628567a 3180 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3181 rm -f conftest.er1
3182 cat conftest.err >&5
b80f6443 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3188 else
3189 ac_cpp_err=
3190 fi
3191else
3192 ac_cpp_err=yes
3193fi
3194if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3196continue
bb70624e 3197else
f73dda09 3198 echo "$as_me: failed program was:" >&5
0628567a
JA
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
f73dda09
JA
3201 # Passes both tests.
3202ac_preproc_ok=:
3203break
3204fi
3205rm -f conftest.err conftest.$ac_ext
3206
3207done
3208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209rm -f conftest.err conftest.$ac_ext
3210if $ac_preproc_ok; then
3211 break
3212fi
3213
3214 done
3215 ac_cv_prog_CPP=$CPP
3216
3217fi
3218 CPP=$ac_cv_prog_CPP
3219else
3220 ac_cv_prog_CPP=$CPP
3221fi
b80f6443 3222echo "$as_me:$LINENO: result: $CPP" >&5
f73dda09
JA
3223echo "${ECHO_T}$CPP" >&6
3224ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
0628567a
JA
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
f73dda09
JA
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
f73dda09 3245_ACEOF
b80f6443 3246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
0628567a 3249 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3250 rm -f conftest.er1
3251 cat conftest.err >&5
b80f6443 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3257 else
3258 ac_cpp_err=
3259 fi
3260else
3261 ac_cpp_err=yes
3262fi
3263if test -z "$ac_cpp_err"; then
ccc6cda3
JA
3264 :
3265else
f73dda09 3266 echo "$as_me: failed program was:" >&5
0628567a
JA
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
f73dda09
JA
3269 # Broken: fails on valid input.
3270continue
3271fi
3272rm -f conftest.err conftest.$ac_ext
3273
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
f73dda09
JA
3282#include <ac_nonexistent.h>
3283_ACEOF
b80f6443 3284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3286 ac_status=$?
0628567a 3287 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3288 rm -f conftest.er1
3289 cat conftest.err >&5
b80f6443 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3295 else
3296 ac_cpp_err=
3297 fi
3298else
3299 ac_cpp_err=yes
bb70624e 3300fi
f73dda09
JA
3301if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3303continue
3304else
3305 echo "$as_me: failed program was:" >&5
0628567a
JA
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
f73dda09
JA
3308 # Passes both tests.
3309ac_preproc_ok=:
3310break
ccc6cda3 3311fi
f73dda09
JA
3312rm -f conftest.err conftest.$ac_ext
3313
3314done
3315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316rm -f conftest.err conftest.$ac_ext
3317if $ac_preproc_ok; then
3318 :
ccc6cda3 3319else
0628567a
JA
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321See \`config.log' for more details." >&5
3322echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323See \`config.log' for more details." >&2;}
f73dda09 3324 { (exit 1); exit 1; }; }
ccc6cda3 3325fi
ccc6cda3 3326
f73dda09
JA
3327ac_ext=c
3328ac_cpp='$CPP $CPPFLAGS'
3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
b80f6443 3333
0628567a
JA
3334echo "$as_me:$LINENO: checking for egrep" >&5
3335echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3336if test "${ac_cv_prog_egrep+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3340 then ac_cv_prog_egrep='grep -E'
3341 else ac_cv_prog_egrep='egrep'
3342 fi
3343fi
3344echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3345echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3346 EGREP=$ac_cv_prog_egrep
3347
3348
b80f6443
JA
3349echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3351if test "${ac_cv_header_stdc+set}" = set; then
f73dda09 3352 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 3353else
f73dda09 3354 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */
b80f6443
JA
3360#include <stdlib.h>
3361#include <stdarg.h>
3362#include <string.h>
3363#include <float.h>
3364
0628567a
JA
3365int
3366main ()
3367{
3368
3369 ;
3370 return 0;
3371}
b80f6443 3372_ACEOF
0628567a
JA
3373rm -f conftest.$ac_objext
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
b80f6443 3376 ac_status=$?
0628567a 3377 grep -v '^ *+' conftest.er1 >conftest.err
95732b49
JA
3378 rm -f conftest.er1
3379 cat conftest.err >&5
b80f6443 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0628567a
JA
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
b80f6443
JA
3395 ac_cv_header_stdc=yes
3396else
3397 echo "$as_me: failed program was:" >&5
0628567a
JA
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400ac_cv_header_stdc=no
b80f6443 3401fi
0628567a 3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
3403
3404if test $ac_cv_header_stdc = yes; then
3405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3406 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
b80f6443
JA
3412#include <string.h>
3413
3414_ACEOF
3415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 3416 $EGREP "memchr" >/dev/null 2>&1; then
b80f6443
JA
3417 :
3418else
3419 ac_cv_header_stdc=no
3420fi
3421rm -f conftest*
3422
3423fi
3424
3425if test $ac_cv_header_stdc = yes; then
3426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3427 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
b80f6443
JA
3433#include <stdlib.h>
3434
3435_ACEOF
3436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 3437 $EGREP "free" >/dev/null 2>&1; then
b80f6443
JA
3438 :
3439else
3440 ac_cv_header_stdc=no
3441fi
3442rm -f conftest*
3443
3444fi
3445
3446if test $ac_cv_header_stdc = yes; then
3447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448 if test "$cross_compiling" = yes; then
3449 :
3450else
3451 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h. */
b80f6443
JA
3457#include <ctype.h>
3458#if ((' ' & 0x0FF) == 0x020)
3459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461#else
0628567a
JA
3462# define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
b80f6443
JA
3466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467#endif
3468
3469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3470int
3471main ()
3472{
3473 int i;
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
0628567a 3476 || toupper (i) != TOUPPER (i))
b80f6443
JA
3477 exit(2);
3478 exit (0);
3479}
3480_ACEOF
3481rm -f conftest$ac_exeext
3482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 :
3493else
3494 echo "$as_me: program exited with status $ac_status" >&5
3495echo "$as_me: failed program was:" >&5
0628567a
JA
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
b80f6443
JA
3498( exit $ac_status )
3499ac_cv_header_stdc=no
3500fi
0628567a 3501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
3502fi
3503fi
3504fi
3505echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507if test $ac_cv_header_stdc = yes; then
3508
3509cat >>confdefs.h <<\_ACEOF
3510#define STDC_HEADERS 1
3511_ACEOF
3512
3513fi
3514
3515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
0628567a 3526 inttypes.h stdint.h unistd.h
b80f6443
JA
3527do
3528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529echo "$as_me:$LINENO: checking for $ac_header" >&5
3530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
b80f6443
JA
3540$ac_includes_default
3541
3542#include <$ac_header>
3543_ACEOF
3544rm -f conftest.$ac_objext
3545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 3546 (eval $ac_compile) 2>conftest.er1
b80f6443 3547 ac_status=$?
0628567a
JA
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
b80f6443
JA
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
0628567a
JA
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 eval "$as_ac_Header=yes"
3567else
3568 echo "$as_me: failed program was:" >&5
0628567a
JA
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
b80f6443
JA
3571eval "$as_ac_Header=no"
3572fi
0628567a 3573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
3574fi
3575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577if test `eval echo '${'$as_ac_Header'}'` = yes; then
3578 cat >>confdefs.h <<_ACEOF
3579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3580_ACEOF
3581
3582fi
3583
3584done
3585
3586
3587if test "${ac_cv_header_minix_config_h+set}" = set; then
3588 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3589echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3590if test "${ac_cv_header_minix_config_h+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592fi
3593echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3594echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3595else
3596 # Is the header compilable?
3597echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3598echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3599cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
b80f6443
JA
3605$ac_includes_default
3606#include <minix/config.h>
3607_ACEOF
3608rm -f conftest.$ac_objext
3609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 3610 (eval $ac_compile) 2>conftest.er1
b80f6443 3611 ac_status=$?
0628567a
JA
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
b80f6443
JA
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
0628567a
JA
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_header_compiler=yes
3631else
3632 echo "$as_me: failed program was:" >&5
0628567a
JA
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
b80f6443
JA
3635ac_header_compiler=no
3636fi
0628567a 3637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
3638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3639echo "${ECHO_T}$ac_header_compiler" >&6
3640
3641# Is the header present?
3642echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3643echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3644cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
b80f6443
JA
3650#include <minix/config.h>
3651_ACEOF
3652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654 ac_status=$?
0628567a 3655 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } >/dev/null; then
3660 if test -s conftest.err; then
f73dda09 3661 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 3662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
3663 else
3664 ac_cpp_err=
3665 fi
3666else
3667 ac_cpp_err=yes
3668fi
3669if test -z "$ac_cpp_err"; then
b80f6443 3670 ac_header_preproc=yes
ccc6cda3 3671else
f73dda09 3672 echo "$as_me: failed program was:" >&5
0628567a
JA
3673sed 's/^/| /' conftest.$ac_ext >&5
3674
b80f6443 3675 ac_header_preproc=no
ccc6cda3 3676fi
f73dda09 3677rm -f conftest.err conftest.$ac_ext
b80f6443
JA
3678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3679echo "${ECHO_T}$ac_header_preproc" >&6
3680
3681# So? What about this header?
0628567a
JA
3682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3683 yes:no: )
b80f6443
JA
3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3685echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3687echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3688 ac_header_preproc=yes
3689 ;;
3690 no:yes:* )
b80f6443
JA
3691 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3692echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
0628567a
JA
3693 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3694echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3696echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3698echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 3699 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
0628567a
JA
3700echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3702echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3703 (
3704 cat <<\_ASBOX
3705## ------------------------------- ##
3706## Report this to bug-bash@gnu.org ##
3707## ------------------------------- ##
3708_ASBOX
3709 ) |
3710 sed "s/^/$as_me: WARNING: /" >&2
3711 ;;
b80f6443
JA
3712esac
3713echo "$as_me:$LINENO: checking for minix/config.h" >&5
3714echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3715if test "${ac_cv_header_minix_config_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 ac_cv_header_minix_config_h=$ac_header_preproc
ccc6cda3 3719fi
b80f6443 3720echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
f73dda09 3721echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
b80f6443
JA
3722
3723fi
f73dda09 3724if test $ac_cv_header_minix_config_h = yes; then
ccc6cda3
JA
3725 MINIX=yes
3726else
f73dda09 3727 MINIX=
ccc6cda3
JA
3728fi
3729
b80f6443 3730
ccc6cda3 3731if test "$MINIX" = yes; then
f73dda09 3732
b80f6443 3733cat >>confdefs.h <<\_ACEOF
ccc6cda3 3734#define _POSIX_SOURCE 1
b80f6443
JA
3735_ACEOF
3736
ccc6cda3 3737
b80f6443 3738cat >>confdefs.h <<\_ACEOF
ccc6cda3 3739#define _POSIX_1_SOURCE 2
b80f6443
JA
3740_ACEOF
3741
ccc6cda3 3742
b80f6443 3743cat >>confdefs.h <<\_ACEOF
ccc6cda3 3744#define _MINIX 1
b80f6443 3745_ACEOF
ccc6cda3
JA
3746
3747fi
3748
b80f6443 3749
f73dda09
JA
3750# Check whether --enable-largefile or --disable-largefile was given.
3751if test "${enable_largefile+set}" = set; then
3752 enableval="$enable_largefile"
3753
3754fi;
3755if test "$enable_largefile" != no; then
ccc6cda3 3756
b80f6443 3757 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
f73dda09
JA
3758echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3759if test "${ac_cv_sys_largefile_CC+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3761else
f73dda09
JA
3762 ac_cv_sys_largefile_CC=no
3763 if test "$GCC" != yes; then
3764 ac_save_CC=$CC
3765 while :; do
3766 # IRIX 6.2 and later do not support large files by default,
3767 # so use the C compiler's -n32 option if that helps.
0628567a
JA
3768 cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h. */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h. */
f73dda09
JA
3774#include <sys/types.h>
3775 /* Check that off_t can represent 2**63 - 1 correctly.
3776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777 since some C++ compilers masquerading as C compilers
3778 incorrectly reject 9223372036854775807. */
3779#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781 && LARGE_OFF_T % 2147483647 == 1)
3782 ? 1 : -1];
3783int
3784main ()
3785{
bb70624e 3786
f73dda09
JA
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791 rm -f conftest.$ac_objext
b80f6443 3792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 3793 (eval $ac_compile) 2>conftest.er1
f73dda09 3794 ac_status=$?
0628567a
JA
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
b80f6443 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3799 (exit $ac_status); } &&
0628567a
JA
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest.$ac_objext'
b80f6443 3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
b80f6443 3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3812 (exit $ac_status); }; }; then
3813 break
bb70624e 3814else
f73dda09 3815 echo "$as_me: failed program was:" >&5
0628567a
JA
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
f73dda09 3818fi
0628567a 3819rm -f conftest.err conftest.$ac_objext
f73dda09
JA
3820 CC="$CC -n32"
3821 rm -f conftest.$ac_objext
b80f6443 3822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 3823 (eval $ac_compile) 2>conftest.er1
f73dda09 3824 ac_status=$?
0628567a
JA
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
b80f6443 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3829 (exit $ac_status); } &&
0628567a
JA
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
b80f6443 3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
b80f6443 3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3842 (exit $ac_status); }; }; then
3843 ac_cv_sys_largefile_CC=' -n32'; break
3844else
3845 echo "$as_me: failed program was:" >&5
0628567a
JA
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
f73dda09 3848fi
0628567a
JA
3849rm -f conftest.err conftest.$ac_objext
3850 break
f73dda09
JA
3851 done
3852 CC=$ac_save_CC
3853 rm -f conftest.$ac_ext
3854 fi
bb70624e 3855fi
b80f6443 3856echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
f73dda09
JA
3857echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3858 if test "$ac_cv_sys_largefile_CC" != no; then
3859 CC=$CC$ac_cv_sys_largefile_CC
3860 fi
bb70624e 3861
b80f6443 3862 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
f73dda09
JA
3863echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3864if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3866else
f73dda09
JA
3867 while :; do
3868 ac_cv_sys_file_offset_bits=no
3869 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
f73dda09
JA
3875#include <sys/types.h>
3876 /* Check that off_t can represent 2**63 - 1 correctly.
3877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3878 since some C++ compilers masquerading as C compilers
3879 incorrectly reject 9223372036854775807. */
3880#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3882 && LARGE_OFF_T % 2147483647 == 1)
3883 ? 1 : -1];
3884int
3885main ()
3886{
bb70624e 3887
f73dda09
JA
3888 ;
3889 return 0;
3890}
3891_ACEOF
3892rm -f conftest.$ac_objext
b80f6443 3893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 3894 (eval $ac_compile) 2>conftest.er1
f73dda09 3895 ac_status=$?
0628567a
JA
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
b80f6443 3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3900 (exit $ac_status); } &&
0628567a
JA
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
b80f6443 3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
b80f6443 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3913 (exit $ac_status); }; }; then
3914 break
bb70624e 3915else
f73dda09 3916 echo "$as_me: failed program was:" >&5
0628567a
JA
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
bb70624e 3919fi
0628567a 3920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 3921 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h. */
f73dda09
JA
3927#define _FILE_OFFSET_BITS 64
3928#include <sys/types.h>
3929 /* Check that off_t can represent 2**63 - 1 correctly.
3930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3931 since some C++ compilers masquerading as C compilers
3932 incorrectly reject 9223372036854775807. */
3933#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3935 && LARGE_OFF_T % 2147483647 == 1)
3936 ? 1 : -1];
3937int
3938main ()
3939{
bb70624e 3940
f73dda09
JA
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945rm -f conftest.$ac_objext
b80f6443 3946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 3947 (eval $ac_compile) 2>conftest.er1
f73dda09 3948 ac_status=$?
0628567a
JA
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
b80f6443 3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3953 (exit $ac_status); } &&
0628567a
JA
3954 { ac_try='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
b80f6443 3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
b80f6443 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3966 (exit $ac_status); }; }; then
3967 ac_cv_sys_file_offset_bits=64; break
3968else
3969 echo "$as_me: failed program was:" >&5
0628567a
JA
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
f73dda09 3972fi
0628567a 3973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3974 break
3975done
3976fi
b80f6443 3977echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
f73dda09
JA
3978echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3979if test "$ac_cv_sys_file_offset_bits" != no; then
bb70624e 3980
b80f6443 3981cat >>confdefs.h <<_ACEOF
f73dda09 3982#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
b80f6443 3983_ACEOF
bb70624e 3984
f73dda09
JA
3985fi
3986rm -f conftest*
b80f6443 3987 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
f73dda09
JA
3988echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3989if test "${ac_cv_sys_large_files+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 3991else
f73dda09
JA
3992 while :; do
3993 ac_cv_sys_large_files=no
3994 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3995/* confdefs.h. */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h. */
f73dda09
JA
4000#include <sys/types.h>
4001 /* Check that off_t can represent 2**63 - 1 correctly.
4002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4003 since some C++ compilers masquerading as C compilers
4004 incorrectly reject 9223372036854775807. */
4005#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4007 && LARGE_OFF_T % 2147483647 == 1)
4008 ? 1 : -1];
4009int
4010main ()
4011{
4012
4013 ;
4014 return 0;
4015}
4016_ACEOF
4017rm -f conftest.$ac_objext
b80f6443 4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 4019 (eval $ac_compile) 2>conftest.er1
f73dda09 4020 ac_status=$?
0628567a
JA
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
b80f6443 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4025 (exit $ac_status); } &&
0628567a
JA
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
b80f6443 4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
b80f6443 4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4038 (exit $ac_status); }; }; then
4039 break
bb70624e 4040else
f73dda09 4041 echo "$as_me: failed program was:" >&5
0628567a
JA
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
bb70624e 4044fi
0628567a 4045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 4046 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4047/* confdefs.h. */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h. */
f73dda09
JA
4052#define _LARGE_FILES 1
4053#include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4061 ? 1 : -1];
4062int
4063main ()
4064{
bb70624e 4065
f73dda09
JA
4066 ;
4067 return 0;
4068}
4069_ACEOF
4070rm -f conftest.$ac_objext
b80f6443 4071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 4072 (eval $ac_compile) 2>conftest.er1
f73dda09 4073 ac_status=$?
0628567a
JA
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
b80f6443 4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4078 (exit $ac_status); } &&
0628567a
JA
4079 { ac_try='test -z "$ac_c_werror_flag"
4080 || test ! -s conftest.err'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
b80f6443 4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
b80f6443 4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4091 (exit $ac_status); }; }; then
4092 ac_cv_sys_large_files=1; break
4093else
4094 echo "$as_me: failed program was:" >&5
0628567a
JA
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
f73dda09 4097fi
0628567a 4098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
4099 break
4100done
4101fi
b80f6443 4102echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
f73dda09
JA
4103echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4104if test "$ac_cv_sys_large_files" != no; then
bb70624e 4105
b80f6443 4106cat >>confdefs.h <<_ACEOF
f73dda09 4107#define _LARGE_FILES $ac_cv_sys_large_files
b80f6443 4108_ACEOF
bb70624e 4109
f73dda09
JA
4110fi
4111rm -f conftest*
4112fi
cce855bc 4113
b80f6443
JA
4114
4115
0628567a 4116SIGNAMES_O=
b72432fd
JA
4117SIGNAMES_H=lsignames.h
4118
b80f6443
JA
4119
4120
0628567a 4121CROSS_COMPILE=
cce855bc
JA
4122if test "x$cross_compiling" = "xyes"; then
4123 case "${host}" in
28ef6c31 4124 *-cygwin*)
cce855bc 4125 cross_cache=${srcdir}/cross-build/cygwin32.cache
cce855bc 4126 ;;
95732b49
JA
4127 *-mingw*)
4128 cross_cache=${srcdir}/cross-build/cygwin32.cache
4129 ;;
b72432fd
JA
4130 i[3456]86-*-beos*)
4131 cross_cache=${srcdir}/cross-build/x86-beos.cache
b72432fd
JA
4132 ;;
4133 *) echo "configure: cross-compiling for $host is not supported" >&2
cce855bc
JA
4134 ;;
4135 esac
b72432fd
JA
4136 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4137 echo "loading cross-build cache file ${cross_cache}"
4138 . ${cross_cache}
4139 fi
4140 unset cross_cache
0628567a 4141 SIGNAMES_O='signames.o'
95732b49
JA
4142 CROSS_COMPILE='-DCROSS_COMPILING'
4143
cce855bc
JA
4144fi
4145
b80f6443 4146
0628567a 4147
cce855bc
JA
4148if test -z "$CC_FOR_BUILD"; then
4149 if test "x$cross_compiling" = "xno"; then
4150 CC_FOR_BUILD='$(CC)'
4151 else
4152 CC_FOR_BUILD=gcc
4153 fi
4154fi
4155
b80f6443
JA
4156
4157
ccc6cda3
JA
4158test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
4159
4160test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4161
cce855bc
JA
4162if test "$opt_profiling" = "yes"; then
4163 PROFILE_FLAGS=-pg
b72432fd
JA
4164 case "$host_os" in
4165 solaris2*) ;;
4166 *) opt_static_link=yes ;;
4167 esac
7117c2d2 4168 DEBUG= MALLOC_DEBUG=
cce855bc
JA
4169fi
4170
4171if test "$opt_static_link" = yes; then
f73dda09
JA
4172 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4173 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
b72432fd 4174 STATIC_LD="-static"
f73dda09
JA
4175 case "$host_os" in
4176 solaris2*) ;;
4177 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4178 esac
cce855bc
JA
4179 fi
4180fi
4181
b80f6443
JA
4182if test "X$cross_compiling" = "Xno"; then
4183 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4184 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4185else
4186 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4187 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4188fi
4189
7117c2d2
JA
4190test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4191
b80f6443
JA
4192
4193
4194
4195
4196
4197
4198
4199
4200
f73dda09 4201if test $ac_cv_c_compiler_gnu = yes; then
b80f6443 4202 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
f73dda09
JA
4203echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4204if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
4206else
4207 ac_pattern="Autoconf.*'x'"
f73dda09 4208 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
ccc6cda3
JA
4214#include <sgtty.h>
4215Autoconf TIOCGETP
f73dda09 4216_ACEOF
ccc6cda3 4217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 4218 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
4219 ac_cv_prog_gcc_traditional=yes
4220else
ccc6cda3
JA
4221 ac_cv_prog_gcc_traditional=no
4222fi
4223rm -f conftest*
4224
b80f6443 4225
ccc6cda3 4226 if test $ac_cv_prog_gcc_traditional = no; then
f73dda09 4227 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
ccc6cda3
JA
4233#include <termio.h>
4234Autoconf TCGETA
f73dda09 4235_ACEOF
ccc6cda3 4236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 4237 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
4238 ac_cv_prog_gcc_traditional=yes
4239fi
4240rm -f conftest*
4241
4242 fi
4243fi
b80f6443 4244echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
f73dda09 4245echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
ccc6cda3
JA
4246 if test $ac_cv_prog_gcc_traditional = yes; then
4247 CC="$CC -traditional"
4248 fi
4249fi
4250
b80f6443
JA
4251
4252
f73dda09 4253if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
b72432fd 4254then
f73dda09
JA
4255 # If the user specified --with-installed-readline=PREFIX and PREFIX
4256 # is not `yes', set ac_cv_rl_prefix to PREFIX
4257 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
b72432fd 4258
b80f6443 4259
bb70624e
JA
4260if test "X$bash_cv_termcap_lib" = "X"; then
4261_bash_needmsg=yes
4262else
b80f6443 4263echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 4264echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
bb70624e
JA
4265_bash_needmsg=
4266fi
f73dda09
JA
4267if test "${bash_cv_termcap_lib+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4269else
b80f6443
JA
4270 echo "$as_me:$LINENO: checking for tgetent" >&5
4271echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4272if test "${ac_cv_func_tgetent+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4283#define tgetent innocuous_tgetent
4284
b80f6443 4285/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
4286 which can conflict with char tgetent (); below.
4287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 <limits.h> exists even on freestanding compilers. */
4289
4290#ifdef __STDC__
4291# include <limits.h>
4292#else
4293# include <assert.h>
4294#endif
4295
4296#undef tgetent
4297
b80f6443
JA
4298/* Override any gcc2 internal prototype to avoid an error. */
4299#ifdef __cplusplus
4300extern "C"
0628567a 4301{
b80f6443
JA
4302#endif
4303/* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305char tgetent ();
4306/* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309#if defined (__stub_tgetent) || defined (__stub___tgetent)
4310choke me
4311#else
0628567a
JA
4312char (*f) () = tgetent;
4313#endif
4314#ifdef __cplusplus
4315}
b80f6443
JA
4316#endif
4317
0628567a
JA
4318int
4319main ()
4320{
4321return f != tgetent;
b80f6443
JA
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext conftest$ac_exeext
4327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 4328 (eval $ac_link) 2>conftest.er1
b80f6443 4329 ac_status=$?
0628567a
JA
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
b80f6443
JA
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
0628567a
JA
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_func_tgetent=yes
4349else
4350 echo "$as_me: failed program was:" >&5
0628567a
JA
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
b80f6443
JA
4353ac_cv_func_tgetent=no
4354fi
0628567a
JA
4355rm -f conftest.err conftest.$ac_objext \
4356 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4359echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4360if test $ac_cv_func_tgetent = yes; then
4361 bash_cv_termcap_lib=libc
4362else
4363 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
f73dda09
JA
4364echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4365if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4367else
f73dda09 4368 ac_check_lib_save_LIBS=$LIBS
bb70624e 4369LIBS="-ltermcap $LIBS"
f73dda09 4370cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4371/* confdefs.h. */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h. */
f73dda09 4376
bb70624e 4377/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4378#ifdef __cplusplus
4379extern "C"
4380#endif
bb70624e 4381/* We use char because int might match the return type of a gcc2
f73dda09
JA
4382 builtin and then its argument prototype would still apply. */
4383char tgetent ();
4384int
4385main ()
4386{
4387tgetent ();
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 4393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 4394 (eval $ac_link) 2>conftest.er1
f73dda09 4395 ac_status=$?
0628567a
JA
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
b80f6443 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4400 (exit $ac_status); } &&
0628567a
JA
4401 { ac_try='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest$ac_exeext'
b80f6443 4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
b80f6443 4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4413 (exit $ac_status); }; }; then
4414 ac_cv_lib_termcap_tgetent=yes
4415else
4416 echo "$as_me: failed program was:" >&5
0628567a
JA
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
f73dda09
JA
4419ac_cv_lib_termcap_tgetent=no
4420fi
0628567a
JA
4421rm -f conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4423LIBS=$ac_check_lib_save_LIBS
4424fi
b80f6443 4425echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
f73dda09
JA
4426echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4427if test $ac_cv_lib_termcap_tgetent = yes; then
bb70624e
JA
4428 bash_cv_termcap_lib=libtermcap
4429else
b80f6443 4430 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
f73dda09
JA
4431echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4432if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4434else
f73dda09
JA
4435 ac_check_lib_save_LIBS=$LIBS
4436LIBS="-ltinfo $LIBS"
4437cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4438/* confdefs.h. */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h. */
f73dda09 4443
bb70624e 4444/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4445#ifdef __cplusplus
4446extern "C"
4447#endif
bb70624e 4448/* We use char because int might match the return type of a gcc2
f73dda09
JA
4449 builtin and then its argument prototype would still apply. */
4450char tgetent ();
4451int
4452main ()
4453{
4454tgetent ();
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 4460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 4461 (eval $ac_link) 2>conftest.er1
f73dda09 4462 ac_status=$?
0628567a
JA
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
b80f6443 4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4467 (exit $ac_status); } &&
0628567a
JA
4468 { ac_try='test -z "$ac_c_werror_flag"
4469 || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest$ac_exeext'
b80f6443 4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
b80f6443 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4480 (exit $ac_status); }; }; then
4481 ac_cv_lib_tinfo_tgetent=yes
4482else
4483 echo "$as_me: failed program was:" >&5
0628567a
JA
4484sed 's/^/| /' conftest.$ac_ext >&5
4485
f73dda09
JA
4486ac_cv_lib_tinfo_tgetent=no
4487fi
0628567a
JA
4488rm -f conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4490LIBS=$ac_check_lib_save_LIBS
4491fi
b80f6443 4492echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
f73dda09
JA
4493echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4494if test $ac_cv_lib_tinfo_tgetent = yes; then
7117c2d2 4495 bash_cv_termcap_lib=libtinfo
f73dda09 4496else
b80f6443 4497 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
f73dda09
JA
4498echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4499if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502 ac_check_lib_save_LIBS=$LIBS
4503LIBS="-lcurses $LIBS"
4504cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4505/* confdefs.h. */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h. */
b72432fd 4510
f73dda09
JA
4511/* Override any gcc2 internal prototype to avoid an error. */
4512#ifdef __cplusplus
4513extern "C"
4514#endif
4515/* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4517char tgetent ();
4518int
4519main ()
4520{
4521tgetent ();
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 4527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 4528 (eval $ac_link) 2>conftest.er1
f73dda09 4529 ac_status=$?
0628567a
JA
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
b80f6443 4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4534 (exit $ac_status); } &&
0628567a
JA
4535 { ac_try='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest$ac_exeext'
b80f6443 4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
b80f6443 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4547 (exit $ac_status); }; }; then
4548 ac_cv_lib_curses_tgetent=yes
4549else
4550 echo "$as_me: failed program was:" >&5
0628567a
JA
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
f73dda09
JA
4553ac_cv_lib_curses_tgetent=no
4554fi
0628567a
JA
4555rm -f conftest.err conftest.$ac_objext \
4556 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4557LIBS=$ac_check_lib_save_LIBS
4558fi
b80f6443 4559echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
f73dda09
JA
4560echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4561if test $ac_cv_lib_curses_tgetent = yes; then
bb70624e
JA
4562 bash_cv_termcap_lib=libcurses
4563else
b80f6443 4564 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
f73dda09
JA
4565echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4566if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 4568else
f73dda09 4569 ac_check_lib_save_LIBS=$LIBS
bb70624e 4570LIBS="-lncurses $LIBS"
f73dda09 4571cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
f73dda09 4577
bb70624e 4578/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
4579#ifdef __cplusplus
4580extern "C"
4581#endif
bb70624e 4582/* We use char because int might match the return type of a gcc2
f73dda09
JA
4583 builtin and then its argument prototype would still apply. */
4584char tgetent ();
4585int
4586main ()
4587{
4588tgetent ();
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 4594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 4595 (eval $ac_link) 2>conftest.er1
f73dda09 4596 ac_status=$?
0628567a
JA
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
b80f6443 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4601 (exit $ac_status); } &&
0628567a
JA
4602 { ac_try='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest$ac_exeext'
b80f6443 4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
b80f6443 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4614 (exit $ac_status); }; }; then
4615 ac_cv_lib_ncurses_tgetent=yes
4616else
4617 echo "$as_me: failed program was:" >&5
0628567a
JA
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
f73dda09
JA
4620ac_cv_lib_ncurses_tgetent=no
4621fi
0628567a
JA
4622rm -f conftest.err conftest.$ac_objext \
4623 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
4624LIBS=$ac_check_lib_save_LIBS
4625fi
b80f6443 4626echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
f73dda09
JA
4627echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4628if test $ac_cv_lib_ncurses_tgetent = yes; then
4629 bash_cv_termcap_lib=libncurses
bb70624e 4630else
f73dda09 4631 bash_cv_termcap_lib=gnutermcap
bb70624e 4632fi
bb70624e 4633
bb70624e
JA
4634fi
4635
4636fi
4637
4638fi
4639
4640fi
4641
b80f6443
JA
4642fi
4643
bb70624e 4644if test "X$_bash_needmsg" = "Xyes"; then
b80f6443 4645echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 4646echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
bb70624e 4647fi
b80f6443 4648echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
f73dda09 4649echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
bb70624e
JA
4650if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4651LDFLAGS="$LDFLAGS -L./lib/termcap"
4652TERMCAP_LIB="./lib/termcap/libtermcap.a"
4653TERMCAP_DEP="./lib/termcap/libtermcap.a"
4654elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4655TERMCAP_LIB=-ltermcap
4656TERMCAP_DEP=
f73dda09
JA
4657elif test $bash_cv_termcap_lib = libtinfo; then
4658TERMCAP_LIB=-ltinfo
4659TERMCAP_DEP=
bb70624e
JA
4660elif test $bash_cv_termcap_lib = libncurses; then
4661TERMCAP_LIB=-lncurses
4662TERMCAP_DEP=
b80f6443
JA
4663elif test $bash_cv_termcap_lib = libc; then
4664TERMCAP_LIB=
4665TERMCAP_DEP=
bb70624e
JA
4666else
4667TERMCAP_LIB=-lcurses
4668TERMCAP_DEP=
4669fi
4670
b80f6443
JA
4671
4672
4673
4674echo "$as_me:$LINENO: checking version of installed readline library" >&5
f73dda09
JA
4675echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4676
4677# What a pain in the ass this is.
4678
4679# save cpp and ld options
4680_save_CFLAGS="$CFLAGS"
4681_save_LDFLAGS="$LDFLAGS"
4682_save_LIBS="$LIBS"
4683
4684# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4685# allows the caller to do something like $_rl_prefix=$withval if the user
4686# specifies --with-installed-readline=PREFIX as an argument to configure
4687
4688if test -z "$ac_cv_rl_prefix"; then
4689test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4690fi
4691
4692eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4693eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4694
4695LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4696CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4697LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4698
b80f6443
JA
4699if test "${ac_cv_rl_version+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 if test "$cross_compiling" = yes; then
f73dda09
JA
4703 ac_cv_rl_version='4.2'
4704else
4705 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
f73dda09
JA
4711
4712#include <stdio.h>
4713#include <readline/readline.h>
4714
95732b49
JA
4715extern int rl_gnu_readline_p;
4716
f73dda09
JA
4717main()
4718{
4719 FILE *fp;
4720 fp = fopen("conftest.rlv", "w");
95732b49
JA
4721 if (fp == 0)
4722 exit(1);
4723 if (rl_gnu_readline_p != 1)
4724 fprintf(fp, "0.0\n");
4725 else
4726 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
f73dda09
JA
4727 fclose(fp);
4728 exit(0);
4729}
4730
4731_ACEOF
4732rm -f conftest$ac_exeext
b80f6443 4733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
4734 (eval $ac_link) 2>&5
4735 ac_status=$?
b80f6443 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 4737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
b80f6443 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
4742 (exit $ac_status); }; }; then
4743 ac_cv_rl_version=`cat conftest.rlv`
4744else
4745 echo "$as_me: program exited with status $ac_status" >&5
4746echo "$as_me: failed program was:" >&5
0628567a
JA
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
b80f6443 4749( exit $ac_status )
f73dda09
JA
4750ac_cv_rl_version='0.0'
4751fi
0628567a 4752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 4753fi
b80f6443
JA
4754fi
4755
f73dda09
JA
4756
4757CFLAGS="$_save_CFLAGS"
4758LDFLAGS="$_save_LDFLAGS"
4759LIBS="$_save_LIBS"
4760
4761RL_MAJOR=0
4762RL_MINOR=0
4763
4764# (
4765case "$ac_cv_rl_version" in
47662*|3*|4*|5*|6*|7*|8*|9*)
4767 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
7117c2d2 4768 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
f73dda09
JA
4769 ;;
4770esac
4771
4772# (((
4773case $RL_MAJOR in
4774[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4775[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4776*) _RL_MAJOR=00 ;;
4777esac
4778
4779# (((
4780case $RL_MINOR in
4781[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4782[0-9]) _RL_MINOR=0$RL_MINOR ;;
4783*) _RL_MINOR=00 ;;
4784esac
4785
4786RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4787
4788# Readline versions greater than 4.2 have these defines in readline.h
4789
4790if test $ac_cv_rl_version = '0.0' ; then
b80f6443 4791 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
f73dda09
JA
4792echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4793elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4794 # set these for use by the caller
4795 RL_PREFIX=$ac_cv_rl_prefix
4796 RL_LIBDIR=$ac_cv_rl_libdir
4797 RL_INCLUDEDIR=$ac_cv_rl_includedir
b80f6443 4798 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
f73dda09
JA
4799echo "${ECHO_T}$ac_cv_rl_version" >&6
4800else
4801
b80f6443
JA
4802
4803cat >>confdefs.h <<_ACEOF
f73dda09 4804#define RL_READLINE_VERSION $RL_VERSION
b80f6443 4805_ACEOF
f73dda09 4806
b80f6443
JA
4807
4808cat >>confdefs.h <<_ACEOF
f73dda09 4809#define RL_VERSION_MAJOR $RL_MAJOR
b80f6443 4810_ACEOF
f73dda09 4811
b80f6443
JA
4812
4813cat >>confdefs.h <<_ACEOF
f73dda09 4814#define RL_VERSION_MINOR $RL_MINOR
b80f6443
JA
4815_ACEOF
4816
4817
4818
4819
4820
f73dda09
JA
4821
4822# set these for use by the caller
4823RL_PREFIX=$ac_cv_rl_prefix
4824RL_LIBDIR=$ac_cv_rl_libdir
4825RL_INCLUDEDIR=$ac_cv_rl_includedir
bb70624e 4826
b80f6443 4827echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
f73dda09 4828echo "${ECHO_T}$ac_cv_rl_version" >&6
bb70624e 4829
f73dda09 4830fi
bb70624e 4831
b80f6443 4832
f73dda09 4833 case "$ac_cv_rl_version" in
b80f6443 4834 5*|6*|7*|8*|9*) ;;
f73dda09 4835 *) opt_with_installed_readline=no
b80f6443 4836 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
f73dda09 4837echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
b80f6443 4838 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
f73dda09 4839echo "$as_me: WARNING: using private bash version" >&2;}
bb70624e
JA
4840 ;;
4841 esac
bb70624e
JA
4842fi
4843
95732b49 4844TILDE_LIB=-ltilde
bb70624e 4845if test $opt_readline = yes; then
b80f6443 4846 cat >>confdefs.h <<\_ACEOF
bb70624e 4847#define READLINE 1
b80f6443 4848_ACEOF
bb70624e 4849
f73dda09 4850 if test "$opt_with_installed_readline" != "no" ; then
b80f6443
JA
4851 case "$opt_with_installed_readline" in
4852 yes) RL_INCLUDE= ;;
4853 *) case "$RL_INCLUDEDIR" in
4854 /usr/include) ;;
4855 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4856 esac
4857 ;;
f73dda09 4858 esac
bb70624e 4859 READLINE_DEP=
95732b49
JA
4860 READLINE_LIB=-lreadline
4861 # section for OS versions that don't allow unresolved symbols
4862 # to be compiled into dynamic libraries.
4863 case "$host_os" in
4864 cygwin*) TILDE_LIB= ;;
4865 esac
bb70624e
JA
4866 else
4867 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4868 READLINE_DEP='$(READLINE_LIBRARY)'
95732b49
JA
4869 # section for OS versions that ship an older/broken version of
4870 # readline as a standard dynamic library and don't allow a
4871 # static version specified as -llibname to override the
4872 # dynamic version
4873 case "${host_os}" in
f1be666c 4874 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
95732b49
JA
4875 *) READLINE_LIB=-lreadline ;;
4876 esac
bb70624e
JA
4877 fi
4878else
4879 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4880 READLINE_LIB= READLINE_DEP=
4881fi
4882if test $opt_history = yes || test $opt_bang_history = yes; then
4883 if test $opt_history = yes; then
b80f6443 4884 cat >>confdefs.h <<\_ACEOF
bb70624e 4885#define HISTORY 1
b80f6443 4886_ACEOF
bb70624e
JA
4887
4888 fi
4889 if test $opt_bang_history = yes; then
b80f6443 4890 cat >>confdefs.h <<\_ACEOF
bb70624e 4891#define BANG_HISTORY 1
b80f6443 4892_ACEOF
b72432fd
JA
4893
4894 fi
f73dda09
JA
4895 if test "$opt_with_installed_readline" != "no"; then
4896 HIST_LIBDIR=$RL_LIBDIR
b72432fd 4897 HISTORY_DEP=
95732b49 4898 HISTORY_LIB=-lhistory
b80f6443
JA
4899 case "$opt_with_installed_readline" in
4900 yes) RL_INCLUDE= ;;
4901 *) case "$RL_INCLUDEDIR" in
4902 /usr/include) ;;
4903 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4904 esac
4905 ;;
f73dda09 4906 esac
b72432fd
JA
4907 else
4908 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4909 HISTORY_DEP='$(HISTORY_LIBRARY)'
95732b49
JA
4910 # section for OS versions that ship an older version of
4911 # readline as a standard dynamic library and don't allow a
4912 # static version specified as -llibname to override the
4913 # dynamic version
4914 case "${host_os}" in
4915 darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4916 *) HISTORY_LIB=-lhistory ;;
4917 esac
b72432fd
JA
4918 fi
4919else
4920 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4921 HISTORY_LIB= HISTORY_DEP=
4922fi
4923
b80f6443
JA
4924
4925
4926
4927
4928
4929
4930
4931
4932
95732b49 4933
ccc6cda3
JA
4934# Find a good install program. We prefer a C program (faster),
4935# so one script is as good as another. But avoid the broken or
4936# incompatible versions:
4937# SysV /etc/install, /usr/sbin/install
4938# SunOS /usr/etc/install
4939# IRIX /sbin/install
4940# AIX /bin/install
f73dda09 4941# AmigaOS /C/install, which installs bootblocks on floppy discs
bb70624e 4942# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccc6cda3
JA
4943# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4944# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0628567a 4945# OS/2's system install, which has a completely different semantic
ccc6cda3 4946# ./install, which can be erroneously created by make from ./install.sh.
b80f6443
JA
4947echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4948echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ccc6cda3 4949if test -z "$INSTALL"; then
f73dda09
JA
4950if test "${ac_cv_path_install+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 4952else
b80f6443
JA
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 # Account for people who put trailing slashes in PATH elements.
4959case $as_dir/ in
4960 ./ | .// | /cC/* | \
4961 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0628567a 4962 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
b80f6443
JA
4963 /usr/ucb/* ) ;;
4964 *)
4965 # OSF1 and SCO ODT 3.0 have their own names for install.
4966 # Don't use installbsd from OSF since it installs stuff as root
4967 # by default.
4968 for ac_prog in ginstall scoinst install; do
4969 for ac_exec_ext in '' $ac_executable_extensions; do
0628567a
JA
4970 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4971 if test $ac_prog = install &&
4972 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4973 # AIX install. It has an incompatible calling convention.
4974 :
4975 elif test $ac_prog = install &&
4976 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977 # program-specific install script used by HP pwplus--don't use.
4978 :
4979 else
4980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4981 break 3
4982 fi
4983 fi
ccc6cda3 4984 done
b80f6443
JA
4985 done
4986 ;;
4987esac
4988done
4989
ccc6cda3
JA
4990
4991fi
4992 if test "${ac_cv_path_install+set}" = set; then
f73dda09 4993 INSTALL=$ac_cv_path_install
ccc6cda3
JA
4994 else
4995 # As a last resort, use the slow shell script. We don't cache a
4996 # path for INSTALL within a source directory, because that will
4997 # break other packages using the cache if that directory is
4998 # removed, or if the path is relative.
f73dda09 4999 INSTALL=$ac_install_sh
ccc6cda3
JA
5000 fi
5001fi
b80f6443 5002echo "$as_me:$LINENO: result: $INSTALL" >&5
f73dda09 5003echo "${ECHO_T}$INSTALL" >&6
ccc6cda3
JA
5004
5005# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5006# It thinks the first close brace ends the variable substitution.
5007test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5008
f73dda09 5009test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
bb70624e 5010
ccc6cda3
JA
5011test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5012
5013# Extract the first word of "ar", so it can be a program name with args.
5014set dummy ar; ac_word=$2
b80f6443 5015echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017if test "${ac_cv_prog_AR+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
5019else
5020 if test -n "$AR"; then
5021 ac_cv_prog_AR="$AR" # Let the user override the test.
5022else
b80f6443
JA
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_AR=""
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
f73dda09
JA
5035done
5036
5037 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
ccc6cda3
JA
5038fi
5039fi
f73dda09 5040AR=$ac_cv_prog_AR
ccc6cda3 5041if test -n "$AR"; then
b80f6443 5042 echo "$as_me:$LINENO: result: $AR" >&5
f73dda09 5043echo "${ECHO_T}$AR" >&6
ccc6cda3 5044else
b80f6443 5045 echo "$as_me:$LINENO: result: no" >&5
f73dda09 5046echo "${ECHO_T}no" >&6
ccc6cda3
JA
5047fi
5048
b72432fd 5049test -n "$ARFLAGS" || ARFLAGS="cr"
f73dda09
JA
5050if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5052set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b80f6443 5053echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055if test "${ac_cv_prog_RANLIB+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
5057else
5058 if test -n "$RANLIB"; then
5059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5060else
b80f6443
JA
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072done
f73dda09
JA
5073done
5074
ccc6cda3
JA
5075fi
5076fi
f73dda09 5077RANLIB=$ac_cv_prog_RANLIB
ccc6cda3 5078if test -n "$RANLIB"; then
b80f6443 5079 echo "$as_me:$LINENO: result: $RANLIB" >&5
f73dda09
JA
5080echo "${ECHO_T}$RANLIB" >&6
5081else
b80f6443 5082 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
5083echo "${ECHO_T}no" >&6
5084fi
5085
5086fi
5087if test -z "$ac_cv_prog_RANLIB"; then
5088 ac_ct_RANLIB=$RANLIB
5089 # Extract the first word of "ranlib", so it can be a program name with args.
5090set dummy ranlib; ac_word=$2
b80f6443 5091echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 if test -n "$ac_ct_RANLIB"; then
5097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5098else
b80f6443
JA
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_ac_ct_RANLIB="ranlib"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110done
f73dda09
JA
5111done
5112
5113 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5114fi
5115fi
5116ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5117if test -n "$ac_ct_RANLIB"; then
b80f6443 5118 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
f73dda09 5119echo "${ECHO_T}$ac_ct_RANLIB" >&6
ccc6cda3 5120else
b80f6443 5121 echo "$as_me:$LINENO: result: no" >&5
f73dda09
JA
5122echo "${ECHO_T}no" >&6
5123fi
5124
5125 RANLIB=$ac_ct_RANLIB
5126else
5127 RANLIB="$ac_cv_prog_RANLIB"
ccc6cda3
JA
5128fi
5129
5130for ac_prog in 'bison -y' byacc
5131do
f73dda09 5132 # Extract the first word of "$ac_prog", so it can be a program name with args.
ccc6cda3 5133set dummy $ac_prog; ac_word=$2
b80f6443 5134echo "$as_me:$LINENO: checking for $ac_word" >&5
f73dda09
JA
5135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136if test "${ac_cv_prog_YACC+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
5138else
5139 if test -n "$YACC"; then
5140 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5141else
b80f6443
JA
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_YACC="$ac_prog"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153done
f73dda09
JA
5154done
5155
ccc6cda3
JA
5156fi
5157fi
f73dda09 5158YACC=$ac_cv_prog_YACC
ccc6cda3 5159if test -n "$YACC"; then
b80f6443 5160 echo "$as_me:$LINENO: result: $YACC" >&5
f73dda09 5161echo "${ECHO_T}$YACC" >&6
ccc6cda3 5162else
b80f6443 5163 echo "$as_me:$LINENO: result: no" >&5
f73dda09 5164echo "${ECHO_T}no" >&6
ccc6cda3
JA
5165fi
5166
f73dda09 5167 test -n "$YACC" && break
ccc6cda3
JA
5168done
5169test -n "$YACC" || YACC="yacc"
5170
0628567a
JA
5171echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5172echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5173set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
f73dda09
JA
5174if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5176else
b80f6443 5177 cat >conftest.make <<\_ACEOF
ccc6cda3 5178all:
0628567a 5179 @echo 'ac_maketemp="$(MAKE)"'
b80f6443 5180_ACEOF
ccc6cda3 5181# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f73dda09 5182eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
ccc6cda3
JA
5183if test -n "$ac_maketemp"; then
5184 eval ac_cv_prog_make_${ac_make}_set=yes
5185else
5186 eval ac_cv_prog_make_${ac_make}_set=no
5187fi
f73dda09 5188rm -f conftest.make
ccc6cda3
JA
5189fi
5190if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b80f6443 5191 echo "$as_me:$LINENO: result: yes" >&5
f73dda09 5192echo "${ECHO_T}yes" >&6
ccc6cda3
JA
5193 SET_MAKE=
5194else
b80f6443 5195 echo "$as_me:$LINENO: result: no" >&5
f73dda09 5196echo "${ECHO_T}no" >&6
ccc6cda3
JA
5197 SET_MAKE="MAKE=${MAKE-make}"
5198fi
5199
b80f6443 5200
b72432fd 5201case "$host_os" in
bb70624e 5202opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
b72432fd
JA
5203*) MAKE_SHELL=/bin/sh ;;
5204esac
5205
5206
95732b49
JA
5207if test x$SIZE = x; then
5208 if test x$ac_tool_prefix = x; then
5209 SIZE=size
5210 else
5211 SIZE=${ac_tool_prefix}size
5212 save_IFS=$IFS ; IFS=:
5213 size_found=0
5214 for dir in $PATH; do
5215 if test -x $dir/$SIZE ; then
5216 size_found=1
5217 break
5218 fi
5219 done
5220 if test $size_found -eq 0; then
5221 SIZE=:
5222 fi
5223 IFS=$save_IFS
5224 fi
5225fi
5226
5227
b80f6443
JA
5228cat >>confdefs.h <<\_ACEOF
5229#define _GNU_SOURCE 1
f73dda09 5230_ACEOF
ccc6cda3 5231
f73dda09 5232
0628567a
JA
5233echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5234echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5235if test "${ac_cv_c_const+set}" = set; then
95732b49
JA
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
0628567a
JA
5238 cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244
5245int
5246main ()
f73dda09
JA
5247{
5248/* FIXME: Include the comments suggested by Paul. */
5249#ifndef __cplusplus
5250 /* Ultrix mips cc rejects this. */
5251 typedef int charset[2];
5252 const charset x;
5253 /* SunOS 4.1.1 cc rejects this. */
5254 char const *const *ccp;
5255 char **p;
5256 /* NEC SVR4.0.2 mips cc rejects this. */
5257 struct point {int x, y;};
5258 static struct point const zero = {0,0};
5259 /* AIX XL C 1.02.0.0 rejects this.
5260 It does not let you subtract one const X* pointer from another in
5261 an arm of an if-expression whose if-part is not a constant
5262 expression */
5263 const char *g = "string";
5264 ccp = &g + (g ? g-g : 0);
5265 /* HPUX 7.0 cc rejects these. */
5266 ++ccp;
5267 p = (char**) ccp;
5268 ccp = (char const *const *) p;
5269 { /* SCO 3.2v4 cc rejects this. */
5270 char *t;
5271 char const *s = 0 ? (char *) 0 : (char const *) 0;
5272
5273 *t++ = 0;
5274 }
5275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5276 int x[] = {25, 17};
5277 const int *foo = &x[0];
5278 ++foo;
5279 }
5280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5281 typedef const int *iptr;
5282 iptr p = 0;
5283 ++p;
5284 }
5285 { /* AIX XL C 1.02.0.0 rejects this saying
5286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5287 struct s { int j; const int *ap[3]; };
5288 struct s *b; b->j = 5;
5289 }
5290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5291 const int foo = 10;
5292 }
ccc6cda3
JA
5293#endif
5294
f73dda09
JA
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
b80f6443 5300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5301 (eval $ac_compile) 2>conftest.er1
f73dda09 5302 ac_status=$?
0628567a
JA
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
b80f6443 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5307 (exit $ac_status); } &&
0628567a
JA
5308 { ac_try='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
b80f6443 5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
b80f6443 5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5320 (exit $ac_status); }; }; then
5321 ac_cv_c_const=yes
5322else
5323 echo "$as_me: failed program was:" >&5
0628567a
JA
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
f73dda09
JA
5326ac_cv_c_const=no
5327fi
0628567a 5328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 5329fi
b80f6443 5330echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
f73dda09
JA
5331echo "${ECHO_T}$ac_cv_c_const" >&6
5332if test $ac_cv_c_const = no; then
5333
b80f6443 5334cat >>confdefs.h <<\_ACEOF
f73dda09 5335#define const
b80f6443 5336_ACEOF
ccc6cda3
JA
5337
5338fi
5339
b80f6443 5340echo "$as_me:$LINENO: checking for inline" >&5
f73dda09
JA
5341echo $ECHO_N "checking for inline... $ECHO_C" >&6
5342if test "${ac_cv_c_inline+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5344else
f73dda09
JA
5345 ac_cv_c_inline=no
5346for ac_kw in inline __inline__ __inline; do
5347 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
f73dda09 5353#ifndef __cplusplus
0628567a
JA
5354typedef int foo_t;
5355static $ac_kw foo_t static_foo () {return 0; }
5356$ac_kw foo_t foo () {return 0; }
ccc6cda3
JA
5357#endif
5358
f73dda09
JA
5359_ACEOF
5360rm -f conftest.$ac_objext
b80f6443 5361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5362 (eval $ac_compile) 2>conftest.er1
f73dda09 5363 ac_status=$?
0628567a
JA
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
b80f6443 5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5368 (exit $ac_status); } &&
0628567a
JA
5369 { ac_try='test -z "$ac_c_werror_flag"
5370 || test ! -s conftest.err'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try='test -s conftest.$ac_objext'
b80f6443 5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
b80f6443 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5381 (exit $ac_status); }; }; then
5382 ac_cv_c_inline=$ac_kw; break
5383else
5384 echo "$as_me: failed program was:" >&5
0628567a
JA
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
f73dda09 5387fi
0628567a 5388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 5389done
ccc6cda3
JA
5390
5391fi
b80f6443 5392echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
f73dda09 5393echo "${ECHO_T}$ac_cv_c_inline" >&6
0628567a
JA
5394
5395
f73dda09
JA
5396case $ac_cv_c_inline in
5397 inline | yes) ;;
0628567a
JA
5398 *)
5399 case $ac_cv_c_inline in
5400 no) ac_val=;;
5401 *) ac_val=$ac_cv_c_inline;;
5402 esac
5403 cat >>confdefs.h <<_ACEOF
5404#ifndef __cplusplus
5405#define inline $ac_val
5406#endif
b80f6443 5407_ACEOF
0628567a 5408 ;;
f73dda09 5409esac
ccc6cda3 5410
b80f6443 5411echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
f73dda09
JA
5412echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5413if test "${ac_cv_c_bigendian+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5415else
b80f6443 5416 # See if sys/param.h defines the BYTE_ORDER macro.
f73dda09 5417cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
f73dda09
JA
5423#include <sys/types.h>
5424#include <sys/param.h>
ccc6cda3 5425
f73dda09
JA
5426int
5427main ()
5428{
5429#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5430 bogus endian macros
ccc6cda3
JA
5431#endif
5432
f73dda09
JA
5433 ;
5434 return 0;
5435}
5436_ACEOF
5437rm -f conftest.$ac_objext
b80f6443 5438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5439 (eval $ac_compile) 2>conftest.er1
f73dda09 5440 ac_status=$?
0628567a
JA
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
b80f6443 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5445 (exit $ac_status); } &&
0628567a
JA
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
b80f6443 5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
b80f6443 5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5458 (exit $ac_status); }; }; then
5459 # It does; now see whether it defined to BIG_ENDIAN or not.
5460cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5461/* confdefs.h. */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h. */
f73dda09
JA
5466#include <sys/types.h>
5467#include <sys/param.h>
ccc6cda3 5468
f73dda09
JA
5469int
5470main ()
5471{
5472#if BYTE_ORDER != BIG_ENDIAN
5473 not big endian
5474#endif
ccc6cda3 5475
f73dda09
JA
5476 ;
5477 return 0;
5478}
5479_ACEOF
5480rm -f conftest.$ac_objext
b80f6443 5481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5482 (eval $ac_compile) 2>conftest.er1
f73dda09 5483 ac_status=$?
0628567a
JA
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
b80f6443 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5488 (exit $ac_status); } &&
0628567a
JA
5489 { ac_try='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest.$ac_objext'
b80f6443 5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
b80f6443 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5501 (exit $ac_status); }; }; then
5502 ac_cv_c_bigendian=yes
ccc6cda3 5503else
f73dda09 5504 echo "$as_me: failed program was:" >&5
0628567a
JA
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
f73dda09 5507ac_cv_c_bigendian=no
ccc6cda3 5508fi
0628567a 5509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5510else
f73dda09 5511 echo "$as_me: failed program was:" >&5
0628567a
JA
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
b80f6443
JA
5514# It does not; compile a test program.
5515if test "$cross_compiling" = yes; then
0628567a 5516 # try to guess the endianness by grepping values into an object file
b80f6443
JA
5517 ac_cv_c_bigendian=unknown
5518 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
b80f6443
JA
5524short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5525short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5526void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5527short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5528short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5529void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5530int
5531main ()
5532{
5533 _ascii (); _ebcdic ();
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538rm -f conftest.$ac_objext
5539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5540 (eval $ac_compile) 2>conftest.er1
b80f6443 5541 ac_status=$?
0628567a
JA
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
b80f6443
JA
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
0628567a
JA
5547 { ac_try='test -z "$ac_c_werror_flag"
5548 || test ! -s conftest.err'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; } &&
5554 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
0628567a 5560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
b80f6443
JA
5561 ac_cv_c_bigendian=yes
5562fi
0628567a 5563if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
b80f6443
JA
5564 if test "$ac_cv_c_bigendian" = unknown; then
5565 ac_cv_c_bigendian=no
5566 else
5567 # finding both strings is unlikely to happen, but who knows?
5568 ac_cv_c_bigendian=unknown
5569 fi
5570fi
5571else
5572 echo "$as_me: failed program was:" >&5
0628567a
JA
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
f73dda09 5575fi
0628567a 5576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5577else
f73dda09 5578 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h. */
f73dda09
JA
5584int
5585main ()
ccc6cda3 5586{
f73dda09
JA
5587 /* Are we little or big endian? From Harbison&Steele. */
5588 union
5589 {
5590 long l;
5591 char c[sizeof (long)];
5592 } u;
5593 u.l = 1;
5594 exit (u.c[sizeof (long) - 1] == 1);
ccc6cda3 5595}
f73dda09
JA
5596_ACEOF
5597rm -f conftest$ac_exeext
b80f6443 5598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
5599 (eval $ac_link) 2>&5
5600 ac_status=$?
b80f6443 5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
b80f6443 5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5607 (exit $ac_status); }; }; then
5608 ac_cv_c_bigendian=no
ccc6cda3 5609else
f73dda09
JA
5610 echo "$as_me: program exited with status $ac_status" >&5
5611echo "$as_me: failed program was:" >&5
0628567a
JA
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
b80f6443 5614( exit $ac_status )
f73dda09
JA
5615ac_cv_c_bigendian=yes
5616fi
0628567a 5617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5618fi
ccc6cda3 5619fi
0628567a 5620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5621fi
b80f6443 5622echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
f73dda09 5623echo "${ECHO_T}$ac_cv_c_bigendian" >&6
b80f6443
JA
5624case $ac_cv_c_bigendian in
5625 yes)
ccc6cda3 5626
b80f6443 5627cat >>confdefs.h <<\_ACEOF
f73dda09 5628#define WORDS_BIGENDIAN 1
b80f6443
JA
5629_ACEOF
5630 ;;
5631 no)
5632 ;;
5633 *)
0628567a 5634 { { echo "$as_me:$LINENO: error: unknown endianness
b80f6443 5635presetting ac_cv_c_bigendian=no (or yes) will help" >&5
0628567a 5636echo "$as_me: error: unknown endianness
b80f6443
JA
5637presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5638 { (exit 1); exit 1; }; } ;;
5639esac
5640
5641echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5642echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5643if test "${ac_cv_c_stringize+set}" = set; then
f73dda09 5644 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5645else
f73dda09 5646 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
f73dda09 5652#define x(y) #y
ccc6cda3 5653
f73dda09
JA
5654char *s = x(teststring);
5655_ACEOF
5656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 5657 $EGREP "#teststring" >/dev/null 2>&1; then
f73dda09 5658 ac_cv_c_stringize=no
ccc6cda3 5659else
f73dda09 5660 ac_cv_c_stringize=yes
ccc6cda3 5661fi
f73dda09 5662rm -f conftest*
ccc6cda3
JA
5663
5664fi
b80f6443 5665echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
f73dda09
JA
5666echo "${ECHO_T}$ac_cv_c_stringize" >&6
5667if test $ac_cv_c_stringize = yes; then
ccc6cda3 5668
b80f6443 5669cat >>confdefs.h <<\_ACEOF
f73dda09 5670#define HAVE_STRINGIZE 1
b80f6443 5671_ACEOF
ccc6cda3
JA
5672
5673fi
5674
b80f6443
JA
5675echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5676echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
f73dda09
JA
5677if test "${ac_cv_c_long_double+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5679else
f73dda09 5680 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5681/* confdefs.h. */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h. */
b80f6443
JA
5686#include <float.h>
5687 long double foo = 0.0;
f73dda09
JA
5688int
5689main ()
5690{
b80f6443 5691static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
0628567a 5692 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
b80f6443
JA
5693 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5694test_array [0] = 0
5695
5696 ;
5697 return 0;
ccc6cda3 5698}
f73dda09 5699_ACEOF
b80f6443
JA
5700rm -f conftest.$ac_objext
5701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5702 (eval $ac_compile) 2>conftest.er1
f73dda09 5703 ac_status=$?
0628567a
JA
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
b80f6443
JA
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
0628567a
JA
5709 { ac_try='test -z "$ac_c_werror_flag"
5710 || test ! -s conftest.err'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; } &&
5716 { ac_try='test -s conftest.$ac_objext'
b80f6443 5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5718 (eval $ac_try) 2>&5
5719 ac_status=$?
b80f6443 5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5721 (exit $ac_status); }; }; then
5722 ac_cv_c_long_double=yes
ccc6cda3 5723else
b80f6443 5724 echo "$as_me: failed program was:" >&5
0628567a
JA
5725sed 's/^/| /' conftest.$ac_ext >&5
5726
f73dda09
JA
5727ac_cv_c_long_double=no
5728fi
0628567a 5729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5730fi
b80f6443 5731echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
f73dda09
JA
5732echo "${ECHO_T}$ac_cv_c_long_double" >&6
5733if test $ac_cv_c_long_double = yes; then
ccc6cda3 5734
b80f6443 5735cat >>confdefs.h <<\_ACEOF
f73dda09 5736#define HAVE_LONG_DOUBLE 1
b80f6443 5737_ACEOF
ccc6cda3
JA
5738
5739fi
5740
b80f6443 5741echo "$as_me:$LINENO: checking for function prototypes" >&5
f73dda09
JA
5742echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5743if test "$ac_cv_prog_cc_stdc" != no; then
b80f6443 5744 echo "$as_me:$LINENO: result: yes" >&5
f73dda09 5745echo "${ECHO_T}yes" >&6
ccc6cda3 5746
b80f6443 5747cat >>confdefs.h <<\_ACEOF
f73dda09 5748#define PROTOTYPES 1
f73dda09 5749_ACEOF
ccc6cda3 5750
f73dda09 5751
b80f6443
JA
5752cat >>confdefs.h <<\_ACEOF
5753#define __PROTOTYPES 1
f73dda09 5754_ACEOF
f73dda09 5755
f73dda09 5756else
b80f6443
JA
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
f73dda09 5759fi
ccc6cda3 5760
ccc6cda3 5761
b80f6443 5762echo "$as_me:$LINENO: checking whether char is unsigned" >&5
f73dda09
JA
5763echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5764if test "${ac_cv_c_char_unsigned+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5766else
f73dda09 5767 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
f73dda09
JA
5773$ac_includes_default
5774int
ccc6cda3
JA
5775main ()
5776{
b80f6443
JA
5777static int test_array [1 - 2 * !(((char) -1) < 0)];
5778test_array [0] = 0
5779
f73dda09
JA
5780 ;
5781 return 0;
ccc6cda3 5782}
f73dda09
JA
5783_ACEOF
5784rm -f conftest.$ac_objext
b80f6443 5785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 5786 (eval $ac_compile) 2>conftest.er1
f73dda09 5787 ac_status=$?
0628567a
JA
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
b80f6443 5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5792 (exit $ac_status); } &&
0628567a
JA
5793 { ac_try='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
b80f6443 5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
b80f6443 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5805 (exit $ac_status); }; }; then
5806 ac_cv_c_char_unsigned=no
ccc6cda3 5807else
f73dda09 5808 echo "$as_me: failed program was:" >&5
0628567a
JA
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
f73dda09 5811ac_cv_c_char_unsigned=yes
ccc6cda3 5812fi
0628567a 5813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 5814fi
b80f6443 5815echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
f73dda09
JA
5816echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5817if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
b80f6443 5818 cat >>confdefs.h <<\_ACEOF
f73dda09 5819#define __CHAR_UNSIGNED__ 1
b80f6443 5820_ACEOF
ccc6cda3 5821
ccc6cda3
JA
5822fi
5823
ccc6cda3 5824
b80f6443
JA
5825
5826 MKINSTALLDIRS=
5827 if test -n "$ac_aux_dir"; then
5828 case "$ac_aux_dir" in
5829 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5830 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5831 esac
5832 fi
5833 if test -z "$MKINSTALLDIRS"; then
5834 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5835 fi
5836
5837
5838
5839 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5840echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5841 # Check whether --enable-nls or --disable-nls was given.
5842if test "${enable_nls+set}" = set; then
5843 enableval="$enable_nls"
5844 USE_NLS=$enableval
ccc6cda3 5845else
b80f6443
JA
5846 USE_NLS=yes
5847fi;
5848 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5849echo "${ECHO_T}$USE_NLS" >&6
5850
5851
5852
5853
5854
5855
5856# Prepare PATH_SEPARATOR.
5857# The user is always right.
5858if test "${PATH_SEPARATOR+set}" != set; then
5859 echo "#! /bin/sh" >conf$$.sh
5860 echo "exit 0" >>conf$$.sh
5861 chmod +x conf$$.sh
5862 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5863 PATH_SEPARATOR=';'
5864 else
5865 PATH_SEPARATOR=:
5866 fi
5867 rm -f conf$$.sh
ccc6cda3 5868fi
ccc6cda3 5869
b80f6443
JA
5870# Find out how to test for executable files. Don't use a zero-byte file,
5871# as systems may use methods other than mode bits to determine executability.
5872cat >conf$$.file <<_ASEOF
5873#! /bin/sh
5874exit 0
5875_ASEOF
5876chmod +x conf$$.file
5877if test -x conf$$.file >/dev/null 2>&1; then
5878 ac_executable_p="test -x"
5879else
5880 ac_executable_p="test -f"
f73dda09 5881fi
b80f6443 5882rm -f conf$$.file
ccc6cda3 5883
b80f6443
JA
5884# Extract the first word of "msgfmt", so it can be a program name with args.
5885set dummy msgfmt; ac_word=$2
5886echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888if test "${ac_cv_path_MSGFMT+set}" = set; then
f73dda09 5889 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 5890else
b80f6443
JA
5891 case "$MSGFMT" in
5892 [\\/]* | ?:[\\/]*)
5893 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5894 ;;
5895 *)
5896 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5897 for ac_dir in $PATH; do
5898 IFS="$ac_save_IFS"
5899 test -z "$ac_dir" && ac_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5902 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5903 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5904 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5905 break 2
5906 fi
5907 fi
5908 done
5909 done
5910 IFS="$ac_save_IFS"
5911 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5912 ;;
5913esac
5914fi
5915MSGFMT="$ac_cv_path_MSGFMT"
5916if test "$MSGFMT" != ":"; then
5917 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5918echo "${ECHO_T}$MSGFMT" >&6
f73dda09 5919else
b80f6443
JA
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
f73dda09 5922fi
b80f6443
JA
5923
5924 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5925set dummy gmsgfmt; ac_word=$2
5926echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928if test "${ac_cv_path_GMSGFMT+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 case $GMSGFMT in
5932 [\\/]* | ?:[\\/]*)
5933 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5934 ;;
5935 *)
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948done
5949
5950 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5951 ;;
5952esac
5953fi
5954GMSGFMT=$ac_cv_path_GMSGFMT
5955
5956if test -n "$GMSGFMT"; then
5957 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5958echo "${ECHO_T}$GMSGFMT" >&6
5959else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
f73dda09 5962fi
b80f6443
JA
5963
5964
5965
5966# Prepare PATH_SEPARATOR.
5967# The user is always right.
5968if test "${PATH_SEPARATOR+set}" != set; then
5969 echo "#! /bin/sh" >conf$$.sh
5970 echo "exit 0" >>conf$$.sh
5971 chmod +x conf$$.sh
5972 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5973 PATH_SEPARATOR=';'
5974 else
5975 PATH_SEPARATOR=:
5976 fi
5977 rm -f conf$$.sh
f73dda09 5978fi
ccc6cda3 5979
b80f6443
JA
5980# Find out how to test for executable files. Don't use a zero-byte file,
5981# as systems may use methods other than mode bits to determine executability.
5982cat >conf$$.file <<_ASEOF
5983#! /bin/sh
5984exit 0
5985_ASEOF
5986chmod +x conf$$.file
5987if test -x conf$$.file >/dev/null 2>&1; then
5988 ac_executable_p="test -x"
ccc6cda3 5989else
b80f6443
JA
5990 ac_executable_p="test -f"
5991fi
5992rm -f conf$$.file
5993
5994# Extract the first word of "xgettext", so it can be a program name with args.
5995set dummy xgettext; ac_word=$2
5996echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998if test "${ac_cv_path_XGETTEXT+set}" = set; then
f73dda09 5999 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 6000else
b80f6443
JA
6001 case "$XGETTEXT" in
6002 [\\/]* | ?:[\\/]*)
6003 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6004 ;;
6005 *)
6006 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH; do
6008 IFS="$ac_save_IFS"
6009 test -z "$ac_dir" && ac_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6013 (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
6014 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6015 break 2
6016 fi
6017 fi
6018 done
6019 done
6020 IFS="$ac_save_IFS"
6021 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6022 ;;
6023esac
6024fi
6025XGETTEXT="$ac_cv_path_XGETTEXT"
6026if test "$XGETTEXT" != ":"; then
6027 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6028echo "${ECHO_T}$XGETTEXT" >&6
6029else
6030 echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032fi
f73dda09 6033
b80f6443
JA
6034 rm -f messages.po
6035
6036
6037# Prepare PATH_SEPARATOR.
6038# The user is always right.
6039if test "${PATH_SEPARATOR+set}" != set; then
6040 echo "#! /bin/sh" >conf$$.sh
6041 echo "exit 0" >>conf$$.sh
6042 chmod +x conf$$.sh
6043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6044 PATH_SEPARATOR=';'
6045 else
6046 PATH_SEPARATOR=:
6047 fi
6048 rm -f conf$$.sh
6049fi
6050
6051# Find out how to test for executable files. Don't use a zero-byte file,
6052# as systems may use methods other than mode bits to determine executability.
6053cat >conf$$.file <<_ASEOF
6054#! /bin/sh
6055exit 0
6056_ASEOF
6057chmod +x conf$$.file
6058if test -x conf$$.file >/dev/null 2>&1; then
6059 ac_executable_p="test -x"
6060else
6061 ac_executable_p="test -f"
6062fi
6063rm -f conf$$.file
6064
6065# Extract the first word of "msgmerge", so it can be a program name with args.
6066set dummy msgmerge; ac_word=$2
6067echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069if test "${ac_cv_path_MSGMERGE+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 case "$MSGMERGE" in
6073 [\\/]* | ?:[\\/]*)
6074 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6075 ;;
6076 *)
6077 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6078 for ac_dir in $PATH; do
6079 IFS="$ac_save_IFS"
6080 test -z "$ac_dir" && ac_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6083 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6084 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6085 break 2
6086 fi
6087 fi
6088 done
6089 done
6090 IFS="$ac_save_IFS"
6091 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6092 ;;
6093esac
6094fi
6095MSGMERGE="$ac_cv_path_MSGMERGE"
6096if test "$MSGMERGE" != ":"; then
6097 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6098echo "${ECHO_T}$MSGMERGE" >&6
6099else
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102fi
6103
6104
6105 if test "$GMSGFMT" != ":"; then
6106 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6107 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6108 : ;
6109 else
6110 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6111 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6112echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6113 GMSGFMT=":"
6114 fi
6115 fi
6116
6117 if test "$XGETTEXT" != ":"; then
6118 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6119 (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
6120 : ;
6121 else
6122 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6123echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6124 XGETTEXT=":"
6125 fi
6126 rm -f messages.po
6127 fi
6128
0628567a 6129 ac_config_commands="$ac_config_commands default-1"
b80f6443
JA
6130
6131
6132echo "$as_me:$LINENO: checking for off_t" >&5
6133echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6134if test "${ac_cv_type_off_t+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h. */
b80f6443 6143$ac_includes_default
f73dda09
JA
6144int
6145main ()
6146{
b80f6443
JA
6147if ((off_t *) 0)
6148 return 0;
6149if (sizeof (off_t))
6150 return 0;
f73dda09
JA
6151 ;
6152 return 0;
6153}
6154_ACEOF
b80f6443
JA
6155rm -f conftest.$ac_objext
6156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 6157 (eval $ac_compile) 2>conftest.er1
f73dda09 6158 ac_status=$?
0628567a
JA
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
b80f6443 6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6163 (exit $ac_status); } &&
0628567a
JA
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest.$ac_objext'
b80f6443 6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
b80f6443 6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6176 (exit $ac_status); }; }; then
b80f6443 6177 ac_cv_type_off_t=yes
f73dda09
JA
6178else
6179 echo "$as_me: failed program was:" >&5
0628567a
JA
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
b80f6443 6182ac_cv_type_off_t=no
f73dda09 6183fi
0628567a 6184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 6185fi
b80f6443
JA
6186echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6187echo "${ECHO_T}$ac_cv_type_off_t" >&6
6188if test $ac_cv_type_off_t = yes; then
6189 :
6190else
6191
6192cat >>confdefs.h <<_ACEOF
6193#define off_t long
6194_ACEOF
ccc6cda3 6195
f73dda09 6196fi
ccc6cda3 6197
b80f6443
JA
6198echo "$as_me:$LINENO: checking for size_t" >&5
6199echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6200if test "${ac_cv_type_size_t+set}" = set; then
f73dda09
JA
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
b80f6443 6209$ac_includes_default
f73dda09
JA
6210int
6211main ()
6212{
b80f6443
JA
6213if ((size_t *) 0)
6214 return 0;
6215if (sizeof (size_t))
6216 return 0;
f73dda09
JA
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221rm -f conftest.$ac_objext
b80f6443 6222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 6223 (eval $ac_compile) 2>conftest.er1
f73dda09 6224 ac_status=$?
0628567a
JA
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
b80f6443 6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6229 (exit $ac_status); } &&
0628567a
JA
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
b80f6443 6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
b80f6443 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6242 (exit $ac_status); }; }; then
b80f6443 6243 ac_cv_type_size_t=yes
ccc6cda3 6244else
f73dda09 6245 echo "$as_me: failed program was:" >&5
0628567a
JA
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
b80f6443 6248ac_cv_type_size_t=no
ccc6cda3 6249fi
0628567a 6250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6251fi
b80f6443
JA
6252echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6253echo "${ECHO_T}$ac_cv_type_size_t" >&6
6254if test $ac_cv_type_size_t = yes; then
6255 :
6256else
ccc6cda3 6257
b80f6443
JA
6258cat >>confdefs.h <<_ACEOF
6259#define size_t unsigned
6260_ACEOF
ccc6cda3 6261
ccc6cda3
JA
6262fi
6263
b80f6443
JA
6264# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6265# for constant arguments. Useless!
6266echo "$as_me:$LINENO: checking for working alloca.h" >&5
6267echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6268if test "${ac_cv_working_alloca_h+set}" = set; then
f73dda09
JA
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6272/* confdefs.h. */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h. */
b80f6443
JA
6277#include <alloca.h>
6278int
6279main ()
6280{
6281char *p = (char *) alloca (2 * sizeof (int));
6282 ;
6283 return 0;
6284}
6285_ACEOF
6286rm -f conftest.$ac_objext conftest$ac_exeext
6287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 6288 (eval $ac_link) 2>conftest.er1
f73dda09 6289 ac_status=$?
0628567a
JA
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
b80f6443
JA
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
0628567a
JA
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_working_alloca_h=yes
ccc6cda3 6309else
f73dda09 6310 echo "$as_me: failed program was:" >&5
0628567a
JA
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
b80f6443 6313ac_cv_working_alloca_h=no
ccc6cda3 6314fi
0628567a
JA
6315rm -f conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 6317fi
b80f6443
JA
6318echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6319echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6320if test $ac_cv_working_alloca_h = yes; then
6321
6322cat >>confdefs.h <<\_ACEOF
6323#define HAVE_ALLOCA_H 1
6324_ACEOF
ccc6cda3
JA
6325
6326fi
6327
b80f6443
JA
6328echo "$as_me:$LINENO: checking for alloca" >&5
6329echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6330if test "${ac_cv_func_alloca_works+set}" = set; then
f73dda09
JA
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
f73dda09
JA
6339#ifdef __GNUC__
6340# define alloca __builtin_alloca
ccc6cda3 6341#else
f73dda09
JA
6342# ifdef _MSC_VER
6343# include <malloc.h>
6344# define alloca _alloca
6345# else
6346# if HAVE_ALLOCA_H
6347# include <alloca.h>
6348# else
6349# ifdef _AIX
6350 #pragma alloca
6351# else
6352# ifndef alloca /* predefined by HP cc +Olibcalls */
6353char *alloca ();
6354# endif
6355# endif
6356# endif
6357# endif
ccc6cda3
JA
6358#endif
6359
f73dda09
JA
6360int
6361main ()
6362{
6363char *p = (char *) alloca (1);
6364 ;
6365 return 0;
6366}
6367_ACEOF
6368rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 6369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 6370 (eval $ac_link) 2>conftest.er1
f73dda09 6371 ac_status=$?
0628567a
JA
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
b80f6443 6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6376 (exit $ac_status); } &&
0628567a
JA
6377 { ac_try='test -z "$ac_c_werror_flag"
6378 || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest$ac_exeext'
b80f6443 6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
b80f6443 6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
6389 (exit $ac_status); }; }; then
6390 ac_cv_func_alloca_works=yes
ccc6cda3 6391else
f73dda09 6392 echo "$as_me: failed program was:" >&5
0628567a
JA
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
f73dda09 6395ac_cv_func_alloca_works=no
ccc6cda3 6396fi
0628567a
JA
6397rm -f conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 6399fi
b80f6443 6400echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
f73dda09
JA
6401echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6402
6403if test $ac_cv_func_alloca_works = yes; then
ccc6cda3 6404
b80f6443 6405cat >>confdefs.h <<\_ACEOF
f73dda09 6406#define HAVE_ALLOCA 1
b80f6443 6407_ACEOF
f73dda09 6408
ccc6cda3 6409else
f73dda09
JA
6410 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6411# that cause trouble. Some versions do not even contain alloca or
6412# contain a buggy version. If you still want to use their alloca,
6413# use ar to extract alloca.o from them instead of compiling alloca.c.
ccc6cda3 6414
f73dda09 6415ALLOCA=alloca.$ac_objext
ccc6cda3 6416
b80f6443 6417cat >>confdefs.h <<\_ACEOF
f73dda09 6418#define C_ALLOCA 1
b80f6443 6419_ACEOF
f73dda09 6420
b80f6443
JA
6421
6422echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
f73dda09
JA
6423echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6424if test "${ac_cv_os_cray+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 6426else
f73dda09 6427 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6428/* confdefs.h. */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */
f73dda09
JA
6433#if defined(CRAY) && ! defined(CRAY2)
6434webecray
6435#else
6436wenotbecray
6437#endif
ccc6cda3 6438
f73dda09
JA
6439_ACEOF
6440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 6441 $EGREP "webecray" >/dev/null 2>&1; then
f73dda09 6442 ac_cv_os_cray=yes
ccc6cda3 6443else
f73dda09 6444 ac_cv_os_cray=no
ccc6cda3
JA
6445fi
6446rm -f conftest*
ccc6cda3
JA
6447
6448fi
b80f6443 6449echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
f73dda09
JA
6450echo "${ECHO_T}$ac_cv_os_cray" >&6
6451if test $ac_cv_os_cray = yes; then
6452 for ac_func in _getb67 GETB67 getb67; do
6453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b80f6443 6454echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
6455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6456if eval "test \"\${$as_ac_var+set}\" = set"; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 6458else
f73dda09 6459 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6460/* confdefs.h. */
6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h. */
6465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6467#define $ac_func innocuous_$ac_func
6468
ccc6cda3 6469/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
6470 which can conflict with char $ac_func (); below.
6471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472 <limits.h> exists even on freestanding compilers. */
6473
6474#ifdef __STDC__
6475# include <limits.h>
6476#else
6477# include <assert.h>
6478#endif
6479
6480#undef $ac_func
6481
ccc6cda3 6482/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
6483#ifdef __cplusplus
6484extern "C"
0628567a 6485{
f73dda09 6486#endif
ccc6cda3 6487/* We use char because int might match the return type of a gcc2
f73dda09
JA
6488 builtin and then its argument prototype would still apply. */
6489char $ac_func ();
ccc6cda3
JA
6490/* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6494choke me
6495#else
0628567a
JA
6496char (*f) () = $ac_func;
6497#endif
6498#ifdef __cplusplus
6499}
ccc6cda3
JA
6500#endif
6501
0628567a
JA
6502int
6503main ()
6504{
6505return f != $ac_func;
f73dda09
JA
6506 ;
6507 return 0;
6508}
6509_ACEOF
6510rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 6511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 6512 (eval $ac_link) 2>conftest.er1
f73dda09 6513 ac_status=$?
0628567a
JA
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
b80f6443 6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6518 (exit $ac_status); } &&
0628567a
JA
6519 { ac_try='test -z "$ac_c_werror_flag"
6520 || test ! -s conftest.err'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; } &&
6526 { ac_try='test -s conftest$ac_exeext'
b80f6443 6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
b80f6443 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
6531 (exit $ac_status); }; }; then
6532 eval "$as_ac_var=yes"
6533else
6534 echo "$as_me: failed program was:" >&5
0628567a
JA
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
f73dda09
JA
6537eval "$as_ac_var=no"
6538fi
0628567a
JA
6539rm -f conftest.err conftest.$ac_objext \
6540 conftest$ac_exeext conftest.$ac_ext
f73dda09 6541fi
b80f6443 6542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
6543echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6544if test `eval echo '${'$as_ac_var'}'` = yes; then
6545
b80f6443 6546cat >>confdefs.h <<_ACEOF
f73dda09 6547#define CRAY_STACKSEG_END $ac_func
b80f6443 6548_ACEOF
ccc6cda3 6549
f73dda09 6550 break
ccc6cda3 6551fi
ccc6cda3 6552
f73dda09 6553 done
ccc6cda3
JA
6554fi
6555
b80f6443 6556echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
f73dda09
JA
6557echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6558if test "${ac_cv_c_stack_direction+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 6560else
f73dda09
JA
6561 if test "$cross_compiling" = yes; then
6562 ac_cv_c_stack_direction=0
6563else
6564 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
f73dda09
JA
6570int
6571find_stack_direction ()
6572{
6573 static char *addr = 0;
6574 auto char dummy;
6575 if (addr == 0)
6576 {
6577 addr = &dummy;
6578 return find_stack_direction ();
6579 }
6580 else
6581 return (&dummy > addr) ? 1 : -1;
6582}
ccc6cda3 6583
f73dda09
JA
6584int
6585main ()
6586{
6587 exit (find_stack_direction () < 0);
6588}
6589_ACEOF
6590rm -f conftest$ac_exeext
b80f6443 6591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
6592 (eval $ac_link) 2>&5
6593 ac_status=$?
b80f6443 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
b80f6443 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
6600 (exit $ac_status); }; }; then
6601 ac_cv_c_stack_direction=1
ccc6cda3 6602else
f73dda09
JA
6603 echo "$as_me: program exited with status $ac_status" >&5
6604echo "$as_me: failed program was:" >&5
0628567a
JA
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
b80f6443 6607( exit $ac_status )
f73dda09 6608ac_cv_c_stack_direction=-1
ccc6cda3 6609fi
0628567a 6610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6611fi
f73dda09 6612fi
b80f6443 6613echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
f73dda09 6614echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
ccc6cda3 6615
b80f6443 6616cat >>confdefs.h <<_ACEOF
f73dda09 6617#define STACK_DIRECTION $ac_cv_c_stack_direction
b80f6443
JA
6618_ACEOF
6619
ccc6cda3 6620
ccc6cda3
JA
6621fi
6622
b80f6443
JA
6623
6624
6625for ac_header in stdlib.h unistd.h
6626do
6627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629 echo "$as_me:$LINENO: checking for $ac_header" >&5
6630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6631if eval "test \"\${$as_ac_Header+set}\" = set"; then
f73dda09 6632 echo $ECHO_N "(cached) $ECHO_C" >&6
b80f6443
JA
6633fi
6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ccc6cda3 6636else
b80f6443
JA
6637 # Is the header compilable?
6638echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
f73dda09 6640cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h. */
f73dda09 6646$ac_includes_default
b80f6443 6647#include <$ac_header>
f73dda09
JA
6648_ACEOF
6649rm -f conftest.$ac_objext
b80f6443 6650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 6651 (eval $ac_compile) 2>conftest.er1
f73dda09 6652 ac_status=$?
0628567a
JA
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
b80f6443 6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6657 (exit $ac_status); } &&
0628567a
JA
6658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
b80f6443 6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
b80f6443 6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6670 (exit $ac_status); }; }; then
b80f6443 6671 ac_header_compiler=yes
f73dda09
JA
6672else
6673 echo "$as_me: failed program was:" >&5
0628567a
JA
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
b80f6443 6676ac_header_compiler=no
f73dda09 6677fi
0628567a 6678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
6679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6680echo "${ECHO_T}$ac_header_compiler" >&6
6681
6682# Is the header present?
6683echo "$as_me:$LINENO: checking $ac_header presence" >&5
6684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
f73dda09 6685cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6686/* confdefs.h. */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h. */
b80f6443
JA
6691#include <$ac_header>
6692_ACEOF
6693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f73dda09 6695 ac_status=$?
0628567a 6696 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } >/dev/null; then
6701 if test -s conftest.err; then
6702 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 6703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
6704 else
6705 ac_cpp_err=
6706 fi
f73dda09 6707else
b80f6443 6708 ac_cpp_err=yes
f73dda09 6709fi
b80f6443
JA
6710if test -z "$ac_cpp_err"; then
6711 ac_header_preproc=yes
f73dda09 6712else
b80f6443 6713 echo "$as_me: failed program was:" >&5
0628567a
JA
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
b80f6443
JA
6716 ac_header_preproc=no
6717fi
6718rm -f conftest.err conftest.$ac_ext
6719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6720echo "${ECHO_T}$ac_header_preproc" >&6
6721
6722# So? What about this header?
0628567a
JA
6723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6724 yes:no: )
b80f6443
JA
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6729 ac_header_preproc=yes
6730 ;;
6731 no:yes:* )
b80f6443
JA
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 6740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
6741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6744 (
6745 cat <<\_ASBOX
6746## ------------------------------- ##
6747## Report this to bug-bash@gnu.org ##
6748## ------------------------------- ##
6749_ASBOX
6750 ) |
6751 sed "s/^/$as_me: WARNING: /" >&2
6752 ;;
b80f6443
JA
6753esac
6754echo "$as_me:$LINENO: checking for $ac_header" >&5
6755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6756if eval "test \"\${$as_ac_Header+set}\" = set"; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 6758else
0628567a 6759 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 6760fi
b80f6443
JA
6761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f73dda09 6763
ccc6cda3 6764fi
b80f6443
JA
6765if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766 cat >>confdefs.h <<_ACEOF
6767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768_ACEOF
ccc6cda3 6769
cce855bc 6770fi
ccc6cda3 6771
b80f6443
JA
6772done
6773
6774
6775for ac_func in getpagesize
6776do
6777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6778echo "$as_me:$LINENO: checking for $ac_func" >&5
6779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6780if eval "test \"\${$as_ac_var+set}\" = set"; then
f73dda09 6781 echo $ECHO_N "(cached) $ECHO_C" >&6
f73dda09
JA
6782else
6783 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6791#define $ac_func innocuous_$ac_func
6792
f73dda09 6793/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
6794 which can conflict with char $ac_func (); below.
6795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6796 <limits.h> exists even on freestanding compilers. */
6797
6798#ifdef __STDC__
6799# include <limits.h>
6800#else
6801# include <assert.h>
6802#endif
6803
6804#undef $ac_func
6805
f73dda09
JA
6806/* Override any gcc2 internal prototype to avoid an error. */
6807#ifdef __cplusplus
6808extern "C"
0628567a 6809{
f73dda09
JA
6810#endif
6811/* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6813char $ac_func ();
f73dda09
JA
6814/* The GNU C library defines this for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6818choke me
6819#else
0628567a
JA
6820char (*f) () = $ac_func;
6821#endif
6822#ifdef __cplusplus
6823}
f73dda09
JA
6824#endif
6825
0628567a
JA
6826int
6827main ()
6828{
6829return f != $ac_func;
f73dda09
JA
6830 ;
6831 return 0;
6832}
6833_ACEOF
6834rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 6835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 6836 (eval $ac_link) 2>conftest.er1
f73dda09 6837 ac_status=$?
0628567a
JA
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
b80f6443 6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 6842 (exit $ac_status); } &&
0628567a
JA
6843 { ac_try='test -z "$ac_c_werror_flag"
6844 || test ! -s conftest.err'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try='test -s conftest$ac_exeext'
b80f6443 6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
b80f6443 6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
6855 (exit $ac_status); }; }; then
6856 eval "$as_ac_var=yes"
6857else
6858 echo "$as_me: failed program was:" >&5
0628567a
JA
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
f73dda09
JA
6861eval "$as_ac_var=no"
6862fi
0628567a
JA
6863rm -f conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
f73dda09 6865fi
b80f6443 6866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
6867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6868if test `eval echo '${'$as_ac_var'}'` = yes; then
b80f6443 6869 cat >>confdefs.h <<_ACEOF
f73dda09 6870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 6871_ACEOF
f73dda09 6872
b80f6443
JA
6873fi
6874done
6875
6876echo "$as_me:$LINENO: checking for working mmap" >&5
6877echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6878if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
f73dda09 6879 echo $ECHO_N "(cached) $ECHO_C" >&6
b80f6443
JA
6880else
6881 if test "$cross_compiling" = yes; then
6882 ac_cv_func_mmap_fixed_mapped=no
f73dda09
JA
6883else
6884 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6885/* confdefs.h. */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h. */
b80f6443
JA
6890$ac_includes_default
6891/* malloc might have been renamed as rpl_malloc. */
6892#undef malloc
6893
6894/* Thanks to Mike Haertel and Jim Avera for this test.
6895 Here is a matrix of mmap possibilities:
6896 mmap private not fixed
6897 mmap private fixed at somewhere currently unmapped
6898 mmap private fixed at somewhere already mapped
6899 mmap shared not fixed
6900 mmap shared fixed at somewhere currently unmapped
6901 mmap shared fixed at somewhere already mapped
6902 For private mappings, we should verify that changes cannot be read()
6903 back from the file, nor mmap's back from the file at a different
6904 address. (There have been systems where private was not correctly
6905 implemented like the infamous i386 svr4.0, and systems where the
6906 VM page cache was not coherent with the file system buffer cache
6907 like early versions of FreeBSD and possibly contemporary NetBSD.)
6908 For shared mappings, we should conversely verify that changes get
6909 propagated back to all the places they're supposed to be.
6910
6911 Grep wants private fixed already mapped.
6912 The main things grep needs to know about mmap are:
6913 * does it exist and is it safe to write into the mmap'd area
6914 * how to use it (BSD variants) */
6915
6916#include <fcntl.h>
6917#include <sys/mman.h>
6918
6919#if !STDC_HEADERS && !HAVE_STDLIB_H
6920char *malloc ();
f73dda09 6921#endif
b80f6443
JA
6922
6923/* This mess was copied from the GNU getpagesize.h. */
6924#if !HAVE_GETPAGESIZE
6925/* Assume that all systems that can run configure have sys/param.h. */
6926# if !HAVE_SYS_PARAM_H
6927# define HAVE_SYS_PARAM_H 1
6928# endif
6929
6930# ifdef _SC_PAGESIZE
6931# define getpagesize() sysconf(_SC_PAGESIZE)
6932# else /* no _SC_PAGESIZE */
6933# if HAVE_SYS_PARAM_H
6934# include <sys/param.h>
6935# ifdef EXEC_PAGESIZE
6936# define getpagesize() EXEC_PAGESIZE
6937# else /* no EXEC_PAGESIZE */
6938# ifdef NBPG
6939# define getpagesize() NBPG * CLSIZE
6940# ifndef CLSIZE
6941# define CLSIZE 1
6942# endif /* no CLSIZE */
6943# else /* no NBPG */
6944# ifdef NBPC
6945# define getpagesize() NBPC
6946# else /* no NBPC */
6947# ifdef PAGESIZE
6948# define getpagesize() PAGESIZE
6949# endif /* PAGESIZE */
6950# endif /* no NBPC */
6951# endif /* no NBPG */
6952# endif /* no EXEC_PAGESIZE */
6953# else /* no HAVE_SYS_PARAM_H */
6954# define getpagesize() 8192 /* punt totally */
6955# endif /* no HAVE_SYS_PARAM_H */
6956# endif /* no _SC_PAGESIZE */
6957
6958#endif /* no HAVE_GETPAGESIZE */
ccc6cda3 6959
f73dda09
JA
6960int
6961main ()
6962{
b80f6443
JA
6963 char *data, *data2, *data3;
6964 int i, pagesize;
6965 int fd;
f73dda09 6966
b80f6443
JA
6967 pagesize = getpagesize ();
6968
6969 /* First, make a file with some known garbage in it. */
6970 data = (char *) malloc (pagesize);
6971 if (!data)
6972 exit (1);
6973 for (i = 0; i < pagesize; ++i)
6974 *(data + i) = rand ();
6975 umask (0);
6976 fd = creat ("conftest.mmap", 0600);
6977 if (fd < 0)
6978 exit (1);
6979 if (write (fd, data, pagesize) != pagesize)
6980 exit (1);
6981 close (fd);
6982
6983 /* Next, try to mmap the file at a fixed address which already has
6984 something else allocated at it. If we can, also make sure that
6985 we see the same garbage. */
6986 fd = open ("conftest.mmap", O_RDWR);
6987 if (fd < 0)
6988 exit (1);
6989 data2 = (char *) malloc (2 * pagesize);
6990 if (!data2)
6991 exit (1);
0628567a 6992 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
b80f6443 6993 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
0628567a 6994 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b80f6443
JA
6995 exit (1);
6996 for (i = 0; i < pagesize; ++i)
6997 if (*(data + i) != *(data2 + i))
6998 exit (1);
6999
7000 /* Finally, make sure that changes to the mapped area do not
7001 percolate back to the file as seen by read(). (This is a bug on
7002 some variants of i386 svr4.0.) */
7003 for (i = 0; i < pagesize; ++i)
7004 *(data2 + i) = *(data2 + i) + 1;
7005 data3 = (char *) malloc (pagesize);
7006 if (!data3)
7007 exit (1);
7008 if (read (fd, data3, pagesize) != pagesize)
7009 exit (1);
7010 for (i = 0; i < pagesize; ++i)
7011 if (*(data + i) != *(data3 + i))
7012 exit (1);
7013 close (fd);
7014 exit (0);
f73dda09
JA
7015}
7016_ACEOF
b80f6443
JA
7017rm -f conftest$ac_exeext
7018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
7019 (eval $ac_link) 2>&5
7020 ac_status=$?
b80f6443
JA
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
b80f6443 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7027 (exit $ac_status); }; }; then
b80f6443 7028 ac_cv_func_mmap_fixed_mapped=yes
f73dda09 7029else
b80f6443
JA
7030 echo "$as_me: program exited with status $ac_status" >&5
7031echo "$as_me: failed program was:" >&5
0628567a
JA
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
b80f6443
JA
7034( exit $ac_status )
7035ac_cv_func_mmap_fixed_mapped=no
f73dda09 7036fi
0628567a 7037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 7038fi
b80f6443
JA
7039fi
7040echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7041echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7042if test $ac_cv_func_mmap_fixed_mapped = yes; then
f73dda09 7043
b80f6443
JA
7044cat >>confdefs.h <<\_ACEOF
7045#define HAVE_MMAP 1
7046_ACEOF
7047
7048fi
7049rm -f conftest.mmap
7050
7051
7052 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7053echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7054if test "${ac_cv_gnu_library_2_1+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056else
7057 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
b80f6443
JA
7063
7064#include <features.h>
7065#ifdef __GNU_LIBRARY__
7066 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7067 Lucky GNU user
7068 #endif
7069#endif
ccc6cda3 7070
b80f6443
JA
7071_ACEOF
7072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 7073 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
b80f6443
JA
7074 ac_cv_gnu_library_2_1=yes
7075else
7076 ac_cv_gnu_library_2_1=no
ccc6cda3 7077fi
b80f6443
JA
7078rm -f conftest*
7079
7080
f73dda09 7081
ccc6cda3 7082fi
b80f6443
JA
7083echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7084echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
ccc6cda3 7085
b80f6443
JA
7086 GLIBC21="$ac_cv_gnu_library_2_1"
7087
7088
7089
7090
7091 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7092echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7093if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
f73dda09 7094 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7095else
b80f6443
JA
7096
7097 if test "$cross_compiling" = yes; then
7098
7099 # Guess based on the CPU.
7100 case "$host_cpu" in
7101 alpha* | i3456786 | m68k | s390*)
7102 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7103 *)
7104 gt_cv_int_divbyzero_sigfpe="guessing no";;
7105 esac
7106
ccc6cda3 7107else
f73dda09 7108 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7109/* confdefs.h. */
7110_ACEOF
7111cat confdefs.h >>conftest.$ac_ext
7112cat >>conftest.$ac_ext <<_ACEOF
7113/* end confdefs.h. */
b80f6443
JA
7114
7115#include <stdlib.h>
7116#include <signal.h>
7117
7118static void
7119#ifdef __cplusplus
7120sigfpe_handler (int sig)
7121#else
7122sigfpe_handler (sig) int sig;
7123#endif
f73dda09 7124{
b80f6443
JA
7125 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7126 exit (sig != SIGFPE);
7127}
7128
7129int x = 1;
7130int y = 0;
7131int z;
7132int nan;
7133
7134int main ()
7135{
7136 signal (SIGFPE, sigfpe_handler);
7137/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7138#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7139 signal (SIGTRAP, sigfpe_handler);
7140#endif
7141/* Linux/SPARC yields signal SIGILL. */
7142#if defined (__sparc__) && defined (__linux__)
7143 signal (SIGILL, sigfpe_handler);
7144#endif
7145
7146 z = x / y;
7147 nan = y / y;
7148 exit (1);
f73dda09 7149}
b80f6443 7150
f73dda09
JA
7151_ACEOF
7152rm -f conftest$ac_exeext
b80f6443 7153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
7154 (eval $ac_link) 2>&5
7155 ac_status=$?
b80f6443 7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
b80f6443 7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7162 (exit $ac_status); }; }; then
b80f6443 7163 gt_cv_int_divbyzero_sigfpe=yes
ccc6cda3 7164else
f73dda09
JA
7165 echo "$as_me: program exited with status $ac_status" >&5
7166echo "$as_me: failed program was:" >&5
0628567a
JA
7167sed 's/^/| /' conftest.$ac_ext >&5
7168
b80f6443
JA
7169( exit $ac_status )
7170gt_cv_int_divbyzero_sigfpe=no
ccc6cda3 7171fi
0628567a 7172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
7173fi
7174
ccc6cda3 7175fi
b80f6443
JA
7176echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7177echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7178 case "$gt_cv_int_divbyzero_sigfpe" in
7179 *yes) value=1;;
7180 *) value=0;;
7181 esac
ccc6cda3 7182
b80f6443
JA
7183cat >>confdefs.h <<_ACEOF
7184#define INTDIV0_RAISES_SIGFPE $value
7185_ACEOF
ccc6cda3 7186
ccc6cda3
JA
7187
7188
b80f6443
JA
7189 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7190echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7191if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
f73dda09 7192 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7193else
f73dda09 7194 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h. */
f73dda09 7200#include <sys/types.h>
b80f6443 7201#include <inttypes.h>
f73dda09
JA
7202int
7203main ()
7204{
b80f6443 7205uintmax_t i = (uintmax_t) -1;
f73dda09
JA
7206 ;
7207 return 0;
7208}
7209_ACEOF
7210rm -f conftest.$ac_objext
b80f6443 7211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 7212 (eval $ac_compile) 2>conftest.er1
f73dda09 7213 ac_status=$?
0628567a
JA
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
b80f6443 7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7218 (exit $ac_status); } &&
0628567a
JA
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
b80f6443 7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
b80f6443 7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7231 (exit $ac_status); }; }; then
b80f6443 7232 jm_ac_cv_header_inttypes_h=yes
ccc6cda3 7233else
f73dda09 7234 echo "$as_me: failed program was:" >&5
0628567a
JA
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
b80f6443 7237jm_ac_cv_header_inttypes_h=no
ccc6cda3 7238fi
0628567a 7239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7240fi
b80f6443
JA
7241echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7242echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7243 if test $jm_ac_cv_header_inttypes_h = yes; then
f73dda09 7244
b80f6443
JA
7245cat >>confdefs.h <<_ACEOF
7246#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7247_ACEOF
ccc6cda3 7248
b80f6443
JA
7249 fi
7250
7251
7252 echo "$as_me:$LINENO: checking for stdint.h" >&5
7253echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7254if test "${jm_ac_cv_header_stdint_h+set}" = set; then
f73dda09 7255 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 7256else
f73dda09 7257 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7258/* confdefs.h. */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h. */
b80f6443
JA
7263#include <sys/types.h>
7264#include <stdint.h>
f73dda09
JA
7265int
7266main ()
7267{
b80f6443 7268uintmax_t i = (uintmax_t) -1;
f73dda09
JA
7269 ;
7270 return 0;
7271}
7272_ACEOF
b80f6443
JA
7273rm -f conftest.$ac_objext
7274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 7275 (eval $ac_compile) 2>conftest.er1
f73dda09 7276 ac_status=$?
0628567a
JA
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
b80f6443 7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7281 (exit $ac_status); } &&
0628567a
JA
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
b80f6443 7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
b80f6443 7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7294 (exit $ac_status); }; }; then
b80f6443 7295 jm_ac_cv_header_stdint_h=yes
f73dda09
JA
7296else
7297 echo "$as_me: failed program was:" >&5
0628567a
JA
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
b80f6443 7300jm_ac_cv_header_stdint_h=no
f73dda09 7301fi
0628567a 7302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 7303fi
b80f6443
JA
7304echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7305echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7306 if test $jm_ac_cv_header_stdint_h = yes; then
f73dda09 7307
b80f6443
JA
7308cat >>confdefs.h <<_ACEOF
7309#define HAVE_STDINT_H_WITH_UINTMAX 1
7310_ACEOF
f73dda09 7311
b80f6443
JA
7312 fi
7313
7314
7315 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7316echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7317if test "${ac_cv_type_unsigned_long_long+set}" = set; then
f73dda09
JA
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7321/* confdefs.h. */
7322_ACEOF
7323cat confdefs.h >>conftest.$ac_ext
7324cat >>conftest.$ac_ext <<_ACEOF
7325/* end confdefs.h. */
b80f6443 7326unsigned long long ull = 1; int i = 63;
f73dda09
JA
7327int
7328main ()
7329{
b80f6443
JA
7330unsigned long long ullmax = (unsigned long long) -1;
7331 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
f73dda09
JA
7332 ;
7333 return 0;
7334}
7335_ACEOF
7336rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 7337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 7338 (eval $ac_link) 2>conftest.er1
f73dda09 7339 ac_status=$?
0628567a
JA
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
b80f6443 7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7344 (exit $ac_status); } &&
0628567a
JA
7345 { ac_try='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest$ac_exeext'
b80f6443 7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
b80f6443 7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7357 (exit $ac_status); }; }; then
b80f6443 7358 ac_cv_type_unsigned_long_long=yes
f73dda09
JA
7359else
7360 echo "$as_me: failed program was:" >&5
0628567a
JA
7361sed 's/^/| /' conftest.$ac_ext >&5
7362
b80f6443 7363ac_cv_type_unsigned_long_long=no
f73dda09 7364fi
0628567a
JA
7365rm -f conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
f73dda09 7367fi
b80f6443
JA
7368echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7369echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7370 if test $ac_cv_type_unsigned_long_long = yes; then
f73dda09 7371
b80f6443
JA
7372cat >>confdefs.h <<\_ACEOF
7373#define HAVE_UNSIGNED_LONG_LONG 1
7374_ACEOF
f73dda09 7375
b80f6443 7376 fi
7117c2d2 7377
7117c2d2 7378
b80f6443
JA
7379
7380
7381 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7382
7383 test $ac_cv_type_unsigned_long_long = yes \
7384 && ac_type='unsigned long long' \
7385 || ac_type='unsigned long'
7386
7387cat >>confdefs.h <<_ACEOF
7388#define uintmax_t $ac_type
7117c2d2 7389_ACEOF
7117c2d2 7390
b80f6443 7391 else
7117c2d2 7392
b80f6443
JA
7393cat >>confdefs.h <<\_ACEOF
7394#define HAVE_UINTMAX_T 1
7395_ACEOF
7396
7397 fi
7398
7399
7400 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7401echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7402if test "${gt_cv_header_inttypes_h+set}" = set; then
f73dda09
JA
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
f73dda09 7405
b80f6443 7406 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7407/* confdefs.h. */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h. */
b80f6443
JA
7412#include <sys/types.h>
7413#include <inttypes.h>
f73dda09
JA
7414int
7415main ()
7416{
f73dda09
JA
7417
7418 ;
7419 return 0;
7420}
7421_ACEOF
b80f6443
JA
7422rm -f conftest.$ac_objext
7423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 7424 (eval $ac_compile) 2>conftest.er1
f73dda09 7425 ac_status=$?
0628567a
JA
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
b80f6443 7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7430 (exit $ac_status); } &&
0628567a
JA
7431 { ac_try='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest.$ac_objext'
b80f6443 7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
b80f6443 7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7443 (exit $ac_status); }; }; then
b80f6443 7444 gt_cv_header_inttypes_h=yes
f73dda09
JA
7445else
7446 echo "$as_me: failed program was:" >&5
0628567a
JA
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
b80f6443 7449gt_cv_header_inttypes_h=no
f73dda09 7450fi
0628567a 7451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 7452
f73dda09 7453fi
b80f6443
JA
7454echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7455echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7456 if test $gt_cv_header_inttypes_h = yes; then
f73dda09 7457
b80f6443
JA
7458cat >>confdefs.h <<_ACEOF
7459#define HAVE_INTTYPES_H 1
7460_ACEOF
f73dda09 7461
b80f6443 7462 fi
f73dda09 7463
b80f6443
JA
7464
7465
7466 if test $gt_cv_header_inttypes_h = yes; then
7467 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7468echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7469if test "${gt_cv_inttypes_pri_broken+set}" = set; then
f73dda09
JA
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
b80f6443
JA
7472
7473 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
b80f6443
JA
7479#include <inttypes.h>
7480#ifdef PRId32
7481char *p = PRId32;
f73dda09 7482#endif
f73dda09
JA
7483
7484int
7485main ()
7486{
f73dda09
JA
7487
7488 ;
7489 return 0;
7490}
7491_ACEOF
b80f6443
JA
7492rm -f conftest.$ac_objext
7493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 7494 (eval $ac_compile) 2>conftest.er1
f73dda09 7495 ac_status=$?
0628567a
JA
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
b80f6443 7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7500 (exit $ac_status); } &&
0628567a
JA
7501 { ac_try='test -z "$ac_c_werror_flag"
7502 || test ! -s conftest.err'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; } &&
7508 { ac_try='test -s conftest.$ac_objext'
b80f6443 7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
b80f6443 7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7513 (exit $ac_status); }; }; then
b80f6443 7514 gt_cv_inttypes_pri_broken=no
f73dda09
JA
7515else
7516 echo "$as_me: failed program was:" >&5
0628567a
JA
7517sed 's/^/| /' conftest.$ac_ext >&5
7518
b80f6443 7519gt_cv_inttypes_pri_broken=yes
f73dda09 7520fi
0628567a 7521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
7522
7523fi
b80f6443
JA
7524echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7525echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7526 fi
7527 if test "$gt_cv_inttypes_pri_broken" = yes; then
f73dda09 7528
b80f6443
JA
7529cat >>confdefs.h <<_ACEOF
7530#define PRI_MACROS_BROKEN 1
7531_ACEOF
f73dda09 7532
b80f6443 7533 fi
f73dda09 7534
b80f6443
JA
7535
7536 if test "X$prefix" = "XNONE"; then
7537 acl_final_prefix="$ac_default_prefix"
7538 else
7539 acl_final_prefix="$prefix"
7540 fi
7541 if test "X$exec_prefix" = "XNONE"; then
7542 acl_final_exec_prefix='${prefix}'
7543 else
7544 acl_final_exec_prefix="$exec_prefix"
7545 fi
7546 acl_save_prefix="$prefix"
7547 prefix="$acl_final_prefix"
7548 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7549 prefix="$acl_save_prefix"
7550
7551
7552# Check whether --with-gnu-ld or --without-gnu-ld was given.
7553if test "${with_gnu_ld+set}" = set; then
7554 withval="$with_gnu_ld"
7555 test "$withval" = no || with_gnu_ld=yes
f73dda09 7556else
b80f6443
JA
7557 with_gnu_ld=no
7558fi;
7559# Prepare PATH_SEPARATOR.
7560# The user is always right.
7561if test "${PATH_SEPARATOR+set}" != set; then
7562 echo "#! /bin/sh" >conf$$.sh
7563 echo "exit 0" >>conf$$.sh
7564 chmod +x conf$$.sh
7565 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7566 PATH_SEPARATOR=';'
7567 else
7568 PATH_SEPARATOR=:
7569 fi
7570 rm -f conf$$.sh
7571fi
7572ac_prog=ld
7573if test "$GCC" = yes; then
7574 # Check if gcc -print-prog-name=ld gives a path.
7575 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7576echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7577 case $host in
7578 *-*-mingw*)
7579 # gcc leaves a trailing carriage return which upsets mingw
7580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7581 *)
7582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7583 esac
7584 case $ac_prog in
7585 # Accept absolute paths.
7586 [\\/]* | [A-Za-z]:[\\/]*)
7587 re_direlt='/[^/][^/]*/\.\./'
7588 # Canonicalize the path of ld
7589 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7590 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7591 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7592 done
7593 test -z "$LD" && LD="$ac_prog"
7594 ;;
7595 "")
7596 # If it fails, then pretend we aren't using GCC.
7597 ac_prog=ld
7598 ;;
7599 *)
7600 # If it is relative, then search for the first ld in PATH.
7601 with_gnu_ld=unknown
7602 ;;
7603 esac
7604elif test "$with_gnu_ld" = yes; then
7605 echo "$as_me:$LINENO: checking for GNU ld" >&5
7606echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7607else
7608 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7609echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7610fi
7611if test "${acl_cv_path_LD+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 if test -z "$LD"; then
7615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7616 for ac_dir in $PATH; do
7617 test -z "$ac_dir" && ac_dir=.
7618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7619 acl_cv_path_LD="$ac_dir/$ac_prog"
7620 # Check to see if the program is GNU ld. I'd rather use --version,
7621 # but apparently some GNU ld's only accept -v.
7622 # Break only if it was the GNU/non-GNU ld that we prefer.
7623 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7624 test "$with_gnu_ld" != no && break
7625 else
7626 test "$with_gnu_ld" != yes && break
7627 fi
7628 fi
7629 done
7630 IFS="$ac_save_ifs"
7631else
7632 acl_cv_path_LD="$LD" # Let the user override the test with a path.
f73dda09 7633fi
f73dda09 7634fi
f73dda09 7635
b80f6443
JA
7636LD="$acl_cv_path_LD"
7637if test -n "$LD"; then
7638 echo "$as_me:$LINENO: result: $LD" >&5
7639echo "${ECHO_T}$LD" >&6
f73dda09 7640else
b80f6443
JA
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
f73dda09 7643fi
b80f6443
JA
7644test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7645echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7646 { (exit 1); exit 1; }; }
7647echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7648echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7649if test "${acl_cv_prog_gnu_ld+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7653if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7654 acl_cv_prog_gnu_ld=yes
7655else
7656 acl_cv_prog_gnu_ld=no
7657fi
7658fi
7659echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7660echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7661with_gnu_ld=$acl_cv_prog_gnu_ld
7662
7663
7664
7665 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7666echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7667if test "${acl_cv_rpath+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670
7671 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7672 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7673 . ./conftest.sh
7674 rm -f ./conftest.sh
7675 acl_cv_rpath=done
7676
7677fi
7678echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7679echo "${ECHO_T}$acl_cv_rpath" >&6
7680 wl="$acl_cv_wl"
7681 libext="$acl_cv_libext"
7682 shlibext="$acl_cv_shlibext"
7683 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7684 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7685 hardcode_direct="$acl_cv_hardcode_direct"
7686 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7687 # Check whether --enable-rpath or --disable-rpath was given.
7688if test "${enable_rpath+set}" = set; then
7689 enableval="$enable_rpath"
7690 :
7691else
7692 enable_rpath=yes
7693fi;
7694
7695
7696
7697
7698
7699
7700
7701 use_additional=yes
7702
7703 acl_save_prefix="$prefix"
7704 prefix="$acl_final_prefix"
7705 acl_save_exec_prefix="$exec_prefix"
7706 exec_prefix="$acl_final_exec_prefix"
7707
7708 eval additional_includedir=\"$includedir\"
7709 eval additional_libdir=\"$libdir\"
7710
7711 exec_prefix="$acl_save_exec_prefix"
7712 prefix="$acl_save_prefix"
7713
7714
7715# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7716if test "${with_libiconv_prefix+set}" = set; then
7717 withval="$with_libiconv_prefix"
7718
7719 if test "X$withval" = "Xno"; then
7720 use_additional=no
7721 else
7722 if test "X$withval" = "X"; then
7723
7724 acl_save_prefix="$prefix"
7725 prefix="$acl_final_prefix"
7726 acl_save_exec_prefix="$exec_prefix"
7727 exec_prefix="$acl_final_exec_prefix"
7728
7729 eval additional_includedir=\"$includedir\"
7730 eval additional_libdir=\"$libdir\"
7731
7732 exec_prefix="$acl_save_exec_prefix"
7733 prefix="$acl_save_prefix"
7734
7735 else
7736 additional_includedir="$withval/include"
7737 additional_libdir="$withval/lib"
7738 fi
7739 fi
7740
7741fi;
7742 LIBICONV=
7743 LTLIBICONV=
7744 INCICONV=
7745 rpathdirs=
7746 ltrpathdirs=
7747 names_already_handled=
7748 names_next_round='iconv '
7749 while test -n "$names_next_round"; do
7750 names_this_round="$names_next_round"
7751 names_next_round=
7752 for name in $names_this_round; do
7753 already_handled=
7754 for n in $names_already_handled; do
7755 if test "$n" = "$name"; then
7756 already_handled=yes
7757 break
7758 fi
7759 done
7760 if test -z "$already_handled"; then
7761 names_already_handled="$names_already_handled $name"
7762 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7763 eval value=\"\$HAVE_LIB$uppername\"
7764 if test -n "$value"; then
7765 if test "$value" = yes; then
7766 eval value=\"\$LIB$uppername\"
7767 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7768 eval value=\"\$LTLIB$uppername\"
7769 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7770 else
7771 :
7772 fi
7773 else
7774 found_dir=
7775 found_la=
7776 found_so=
7777 found_a=
7778 if test $use_additional = yes; then
7779 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7780 found_dir="$additional_libdir"
7781 found_so="$additional_libdir/lib$name.$shlibext"
7782 if test -f "$additional_libdir/lib$name.la"; then
7783 found_la="$additional_libdir/lib$name.la"
7784 fi
7785 else
7786 if test -f "$additional_libdir/lib$name.$libext"; then
7787 found_dir="$additional_libdir"
7788 found_a="$additional_libdir/lib$name.$libext"
7789 if test -f "$additional_libdir/lib$name.la"; then
7790 found_la="$additional_libdir/lib$name.la"
7791 fi
7792 fi
7793 fi
7794 fi
7795 if test "X$found_dir" = "X"; then
7796 for x in $LDFLAGS $LTLIBICONV; do
7797
7798 acl_save_prefix="$prefix"
7799 prefix="$acl_final_prefix"
7800 acl_save_exec_prefix="$exec_prefix"
7801 exec_prefix="$acl_final_exec_prefix"
7802 eval x=\"$x\"
7803 exec_prefix="$acl_save_exec_prefix"
7804 prefix="$acl_save_prefix"
7805
7806 case "$x" in
7807 -L*)
7808 dir=`echo "X$x" | sed -e 's/^X-L//'`
7809 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7810 found_dir="$dir"
7811 found_so="$dir/lib$name.$shlibext"
7812 if test -f "$dir/lib$name.la"; then
7813 found_la="$dir/lib$name.la"
7814 fi
7815 else
7816 if test -f "$dir/lib$name.$libext"; then
7817 found_dir="$dir"
7818 found_a="$dir/lib$name.$libext"
7819 if test -f "$dir/lib$name.la"; then
7820 found_la="$dir/lib$name.la"
7821 fi
7822 fi
7823 fi
7824 ;;
7825 esac
7826 if test "X$found_dir" != "X"; then
7827 break
7828 fi
7829 done
7830 fi
7831 if test "X$found_dir" != "X"; then
7832 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7833 if test "X$found_so" != "X"; then
7834 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7836 else
7837 haveit=
7838 for x in $ltrpathdirs; do
7839 if test "X$x" = "X$found_dir"; then
7840 haveit=yes
7841 break
7842 fi
7843 done
7844 if test -z "$haveit"; then
7845 ltrpathdirs="$ltrpathdirs $found_dir"
7846 fi
7847 if test "$hardcode_direct" = yes; then
7848 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7849 else
7850 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7852 haveit=
7853 for x in $rpathdirs; do
7854 if test "X$x" = "X$found_dir"; then
7855 haveit=yes
7856 break
7857 fi
7858 done
7859 if test -z "$haveit"; then
7860 rpathdirs="$rpathdirs $found_dir"
7861 fi
7862 else
7863 haveit=
7864 for x in $LDFLAGS $LIBICONV; do
7865
7866 acl_save_prefix="$prefix"
7867 prefix="$acl_final_prefix"
7868 acl_save_exec_prefix="$exec_prefix"
7869 exec_prefix="$acl_final_exec_prefix"
7870 eval x=\"$x\"
7871 exec_prefix="$acl_save_exec_prefix"
7872 prefix="$acl_save_prefix"
7873
7874 if test "X$x" = "X-L$found_dir"; then
7875 haveit=yes
7876 break
7877 fi
7878 done
7879 if test -z "$haveit"; then
7880 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7881 fi
7882 if test "$hardcode_minus_L" != no; then
7883 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7884 else
7885 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7886 fi
7887 fi
7888 fi
7889 fi
7890 else
7891 if test "X$found_a" != "X"; then
7892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7893 else
7894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7895 fi
7896 fi
7897 additional_includedir=
7898 case "$found_dir" in
7899 */lib | */lib/)
7900 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7901 additional_includedir="$basedir/include"
7902 ;;
7903 esac
7904 if test "X$additional_includedir" != "X"; then
7905 if test "X$additional_includedir" != "X/usr/include"; then
7906 haveit=
7907 if test "X$additional_includedir" = "X/usr/local/include"; then
7908 if test -n "$GCC"; then
7909 case $host_os in
7910 linux*) haveit=yes;;
7911 esac
7912 fi
7913 fi
7914 if test -z "$haveit"; then
7915 for x in $CPPFLAGS $INCICONV; do
7916
7917 acl_save_prefix="$prefix"
7918 prefix="$acl_final_prefix"
7919 acl_save_exec_prefix="$exec_prefix"
7920 exec_prefix="$acl_final_exec_prefix"
7921 eval x=\"$x\"
7922 exec_prefix="$acl_save_exec_prefix"
7923 prefix="$acl_save_prefix"
7924
7925 if test "X$x" = "X-I$additional_includedir"; then
7926 haveit=yes
7927 break
7928 fi
7929 done
7930 if test -z "$haveit"; then
7931 if test -d "$additional_includedir"; then
7932 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7933 fi
7934 fi
7935 fi
7936 fi
7937 fi
7938 if test -n "$found_la"; then
7939 save_libdir="$libdir"
7940 case "$found_la" in
7941 */* | *\\*) . "$found_la" ;;
7942 *) . "./$found_la" ;;
7943 esac
7944 libdir="$save_libdir"
7945 for dep in $dependency_libs; do
7946 case "$dep" in
7947 -L*)
7948 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7949 if test "X$additional_libdir" != "X/usr/lib"; then
7950 haveit=
7951 if test "X$additional_libdir" = "X/usr/local/lib"; then
7952 if test -n "$GCC"; then
7953 case $host_os in
7954 linux*) haveit=yes;;
7955 esac
7956 fi
7957 fi
7958 if test -z "$haveit"; then
7959 haveit=
7960 for x in $LDFLAGS $LIBICONV; do
7961
7962 acl_save_prefix="$prefix"
7963 prefix="$acl_final_prefix"
7964 acl_save_exec_prefix="$exec_prefix"
7965 exec_prefix="$acl_final_exec_prefix"
7966 eval x=\"$x\"
7967 exec_prefix="$acl_save_exec_prefix"
7968 prefix="$acl_save_prefix"
7969
7970 if test "X$x" = "X-L$additional_libdir"; then
7971 haveit=yes
7972 break
7973 fi
7974 done
7975 if test -z "$haveit"; then
7976 if test -d "$additional_libdir"; then
7977 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7978 fi
7979 fi
7980 haveit=
7981 for x in $LDFLAGS $LTLIBICONV; do
7982
7983 acl_save_prefix="$prefix"
7984 prefix="$acl_final_prefix"
7985 acl_save_exec_prefix="$exec_prefix"
7986 exec_prefix="$acl_final_exec_prefix"
7987 eval x=\"$x\"
7988 exec_prefix="$acl_save_exec_prefix"
7989 prefix="$acl_save_prefix"
7990
7991 if test "X$x" = "X-L$additional_libdir"; then
7992 haveit=yes
7993 break
7994 fi
7995 done
7996 if test -z "$haveit"; then
7997 if test -d "$additional_libdir"; then
7998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7999 fi
8000 fi
8001 fi
8002 fi
8003 ;;
8004 -R*)
8005 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8006 if test "$enable_rpath" != no; then
8007 haveit=
8008 for x in $rpathdirs; do
8009 if test "X$x" = "X$dir"; then
8010 haveit=yes
8011 break
8012 fi
8013 done
8014 if test -z "$haveit"; then
8015 rpathdirs="$rpathdirs $dir"
8016 fi
8017 haveit=
8018 for x in $ltrpathdirs; do
8019 if test "X$x" = "X$dir"; then
8020 haveit=yes
8021 break
8022 fi
8023 done
8024 if test -z "$haveit"; then
8025 ltrpathdirs="$ltrpathdirs $dir"
8026 fi
8027 fi
8028 ;;
8029 -l*)
8030 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8031 ;;
8032 *.la)
8033 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8034 ;;
8035 *)
8036 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8038 ;;
8039 esac
8040 done
8041 fi
8042 else
8043 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8044 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8045 fi
8046 fi
8047 fi
8048 done
8049 done
8050 if test "X$rpathdirs" != "X"; then
8051 if test -n "$hardcode_libdir_separator"; then
8052 alldirs=
8053 for found_dir in $rpathdirs; do
8054 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8055 done
8056 acl_save_libdir="$libdir"
8057 libdir="$alldirs"
8058 eval flag=\"$hardcode_libdir_flag_spec\"
8059 libdir="$acl_save_libdir"
8060 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8061 else
8062 for found_dir in $rpathdirs; do
8063 acl_save_libdir="$libdir"
8064 libdir="$found_dir"
8065 eval flag=\"$hardcode_libdir_flag_spec\"
8066 libdir="$acl_save_libdir"
8067 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8068 done
8069 fi
8070 fi
8071 if test "X$ltrpathdirs" != "X"; then
8072 for found_dir in $ltrpathdirs; do
8073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8074 done
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8091stdlib.h string.h unistd.h sys/param.h
8092do
8093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8094if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo "$as_me:$LINENO: checking for $ac_header" >&5
8096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099fi
8100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8102else
8103 # Is the header compilable?
8104echo "$as_me:$LINENO: checking $ac_header usability" >&5
8105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8106cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
b80f6443
JA
8112$ac_includes_default
8113#include <$ac_header>
8114_ACEOF
8115rm -f conftest.$ac_objext
8116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 8117 (eval $ac_compile) 2>conftest.er1
b80f6443 8118 ac_status=$?
0628567a
JA
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
b80f6443
JA
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
0628567a
JA
8124 { ac_try='test -z "$ac_c_werror_flag"
8125 || test ! -s conftest.err'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 (eval $ac_try) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_header_compiler=yes
8138else
8139 echo "$as_me: failed program was:" >&5
0628567a
JA
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
b80f6443
JA
8142ac_header_compiler=no
8143fi
0628567a 8144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
8145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8146echo "${ECHO_T}$ac_header_compiler" >&6
8147
8148# Is the header present?
8149echo "$as_me:$LINENO: checking $ac_header presence" >&5
8150echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8151cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
b80f6443
JA
8157#include <$ac_header>
8158_ACEOF
8159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8161 ac_status=$?
0628567a 8162 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } >/dev/null; then
8167 if test -s conftest.err; then
8168 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 8169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
8170 else
8171 ac_cpp_err=
8172 fi
8173else
8174 ac_cpp_err=yes
8175fi
8176if test -z "$ac_cpp_err"; then
8177 ac_header_preproc=yes
8178else
8179 echo "$as_me: failed program was:" >&5
0628567a
JA
8180sed 's/^/| /' conftest.$ac_ext >&5
8181
b80f6443
JA
8182 ac_header_preproc=no
8183fi
8184rm -f conftest.err conftest.$ac_ext
8185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8186echo "${ECHO_T}$ac_header_preproc" >&6
8187
8188# So? What about this header?
0628567a
JA
8189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8190 yes:no: )
b80f6443
JA
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8195 ac_header_preproc=yes
8196 ;;
8197 no:yes:* )
b80f6443
JA
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 8206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
8207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8210 (
8211 cat <<\_ASBOX
8212## ------------------------------- ##
8213## Report this to bug-bash@gnu.org ##
8214## ------------------------------- ##
8215_ASBOX
8216 ) |
8217 sed "s/^/$as_me: WARNING: /" >&2
8218 ;;
b80f6443
JA
8219esac
8220echo "$as_me:$LINENO: checking for $ac_header" >&5
8221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8222if eval "test \"\${$as_ac_Header+set}\" = set"; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
0628567a 8225 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
8226fi
8227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8229
8230fi
8231if test `eval echo '${'$as_ac_Header'}'` = yes; then
8232 cat >>confdefs.h <<_ACEOF
8233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8234_ACEOF
8235
8236fi
8237
f73dda09
JA
8238done
8239
b80f6443
JA
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8263geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8264strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8265__fsetlocking
f73dda09
JA
8266do
8267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b80f6443 8268echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
8269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8274/* confdefs.h. */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h. */
8279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8281#define $ac_func innocuous_$ac_func
8282
f73dda09 8283/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
8284 which can conflict with char $ac_func (); below.
8285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286 <limits.h> exists even on freestanding compilers. */
8287
8288#ifdef __STDC__
8289# include <limits.h>
8290#else
8291# include <assert.h>
8292#endif
8293
8294#undef $ac_func
8295
f73dda09
JA
8296/* Override any gcc2 internal prototype to avoid an error. */
8297#ifdef __cplusplus
8298extern "C"
0628567a 8299{
f73dda09
JA
8300#endif
8301/* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303char $ac_func ();
f73dda09
JA
8304/* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308choke me
8309#else
0628567a
JA
8310char (*f) () = $ac_func;
8311#endif
8312#ifdef __cplusplus
8313}
f73dda09
JA
8314#endif
8315
0628567a
JA
8316int
8317main ()
8318{
8319return f != $ac_func;
f73dda09
JA
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 8325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 8326 (eval $ac_link) 2>conftest.er1
f73dda09 8327 ac_status=$?
0628567a
JA
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
b80f6443 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8332 (exit $ac_status); } &&
0628567a
JA
8333 { ac_try='test -z "$ac_c_werror_flag"
8334 || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest$ac_exeext'
b80f6443 8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
b80f6443 8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
8345 (exit $ac_status); }; }; then
8346 eval "$as_ac_var=yes"
8347else
8348 echo "$as_me: failed program was:" >&5
0628567a
JA
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
f73dda09
JA
8351eval "$as_ac_var=no"
8352fi
0628567a
JA
8353rm -f conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
f73dda09 8355fi
b80f6443 8356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
8357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8358if test `eval echo '${'$as_ac_var'}'` = yes; then
b80f6443 8359 cat >>confdefs.h <<_ACEOF
f73dda09 8360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 8361_ACEOF
f73dda09
JA
8362
8363fi
8364done
8365
b80f6443
JA
8366
8367
8368
8369
8370
8371
8372 am_save_CPPFLAGS="$CPPFLAGS"
8373
8374 for element in $INCICONV; do
8375 haveit=
8376 for x in $CPPFLAGS; do
8377
8378 acl_save_prefix="$prefix"
8379 prefix="$acl_final_prefix"
8380 acl_save_exec_prefix="$exec_prefix"
8381 exec_prefix="$acl_final_exec_prefix"
8382 eval x=\"$x\"
8383 exec_prefix="$acl_save_exec_prefix"
8384 prefix="$acl_save_prefix"
8385
8386 if test "X$x" = "X$element"; then
8387 haveit=yes
8388 break
8389 fi
8390 done
8391 if test -z "$haveit"; then
8392 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8393 fi
8394 done
8395
8396
8397 echo "$as_me:$LINENO: checking for iconv" >&5
8398echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8399if test "${am_cv_func_iconv+set}" = set; then
f73dda09
JA
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
f73dda09 8402
b80f6443
JA
8403 am_cv_func_iconv="no, consider installing GNU libiconv"
8404 am_cv_lib_iconv=no
8405 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
b80f6443
JA
8411#include <stdlib.h>
8412#include <iconv.h>
f73dda09
JA
8413int
8414main ()
8415{
b80f6443
JA
8416iconv_t cd = iconv_open("","");
8417 iconv(cd,NULL,NULL,NULL,NULL);
8418 iconv_close(cd);
f73dda09
JA
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 8424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 8425 (eval $ac_link) 2>conftest.er1
f73dda09 8426 ac_status=$?
0628567a
JA
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
b80f6443 8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8431 (exit $ac_status); } &&
0628567a
JA
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest$ac_exeext'
b80f6443 8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
b80f6443 8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8444 (exit $ac_status); }; }; then
b80f6443 8445 am_cv_func_iconv=yes
f73dda09
JA
8446else
8447 echo "$as_me: failed program was:" >&5
0628567a
JA
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
f73dda09 8450fi
0628567a
JA
8451rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
8453 if test "$am_cv_func_iconv" != yes; then
8454 am_save_LIBS="$LIBS"
8455 LIBS="$LIBS $LIBICONV"
8456 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8457/* confdefs.h. */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h. */
b80f6443
JA
8462#include <stdlib.h>
8463#include <iconv.h>
f73dda09
JA
8464int
8465main ()
8466{
b80f6443
JA
8467iconv_t cd = iconv_open("","");
8468 iconv(cd,NULL,NULL,NULL,NULL);
8469 iconv_close(cd);
f73dda09
JA
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 8475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 8476 (eval $ac_link) 2>conftest.er1
f73dda09 8477 ac_status=$?
0628567a
JA
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
b80f6443 8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8482 (exit $ac_status); } &&
0628567a
JA
8483 { ac_try='test -z "$ac_c_werror_flag"
8484 || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
b80f6443 8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
b80f6443 8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8495 (exit $ac_status); }; }; then
b80f6443
JA
8496 am_cv_lib_iconv=yes
8497 am_cv_func_iconv=yes
f73dda09
JA
8498else
8499 echo "$as_me: failed program was:" >&5
0628567a
JA
8500sed 's/^/| /' conftest.$ac_ext >&5
8501
f73dda09 8502fi
0628567a
JA
8503rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
8505 LIBS="$am_save_LIBS"
8506 fi
8507
f73dda09 8508fi
b80f6443
JA
8509echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8510echo "${ECHO_T}$am_cv_func_iconv" >&6
8511 if test "$am_cv_func_iconv" = yes; then
f73dda09 8512
b80f6443
JA
8513cat >>confdefs.h <<\_ACEOF
8514#define HAVE_ICONV 1
8515_ACEOF
f73dda09 8516
b80f6443
JA
8517 fi
8518 if test "$am_cv_lib_iconv" = yes; then
8519 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8520echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8521 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8522echo "${ECHO_T}$LIBICONV" >&6
8523 else
8524 CPPFLAGS="$am_save_CPPFLAGS"
8525 LIBICONV=
8526 LTLIBICONV=
8527 fi
8528
8529
8530
8531 if test "$am_cv_func_iconv" = yes; then
8532 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8533echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8534 if test "${am_cv_proto_iconv+set}" = set; then
f73dda09
JA
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
b80f6443
JA
8537
8538 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
b80f6443
JA
8544
8545#include <stdlib.h>
8546#include <iconv.h>
8547extern
f73dda09 8548#ifdef __cplusplus
b80f6443
JA
8549"C"
8550#endif
8551#if defined(__STDC__) || defined(__cplusplus)
8552size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8553#else
8554size_t iconv();
f73dda09 8555#endif
f73dda09
JA
8556
8557int
8558main ()
8559{
f73dda09
JA
8560
8561 ;
8562 return 0;
8563}
8564_ACEOF
b80f6443
JA
8565rm -f conftest.$ac_objext
8566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 8567 (eval $ac_compile) 2>conftest.er1
f73dda09 8568 ac_status=$?
0628567a
JA
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
b80f6443 8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8573 (exit $ac_status); } &&
0628567a
JA
8574 { ac_try='test -z "$ac_c_werror_flag"
8575 || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest.$ac_objext'
b80f6443 8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
b80f6443 8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8586 (exit $ac_status); }; }; then
b80f6443 8587 am_cv_proto_iconv_arg1=""
f73dda09
JA
8588else
8589 echo "$as_me: failed program was:" >&5
0628567a
JA
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
b80f6443 8592am_cv_proto_iconv_arg1="const"
f73dda09 8593fi
0628567a 8594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 8595 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);"
f73dda09 8596fi
f73dda09 8597
b80f6443
JA
8598 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8599 echo "$as_me:$LINENO: result: ${ac_t:-
8600 }$am_cv_proto_iconv" >&5
8601echo "${ECHO_T}${ac_t:-
8602 }$am_cv_proto_iconv" >&6
f73dda09 8603
b80f6443
JA
8604cat >>confdefs.h <<_ACEOF
8605#define ICONV_CONST $am_cv_proto_iconv_arg1
8606_ACEOF
8607
8608 fi
8609
8610
8611 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8612echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8613if test "${am_cv_langinfo_codeset+set}" = set; then
f73dda09
JA
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8617/* confdefs.h. */
8618_ACEOF
8619cat confdefs.h >>conftest.$ac_ext
8620cat >>conftest.$ac_ext <<_ACEOF
8621/* end confdefs.h. */
b80f6443 8622#include <langinfo.h>
f73dda09
JA
8623int
8624main ()
8625{
b80f6443 8626char* cs = nl_langinfo(CODESET);
f73dda09
JA
8627 ;
8628 return 0;
8629}
8630_ACEOF
b80f6443
JA
8631rm -f conftest.$ac_objext conftest$ac_exeext
8632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 8633 (eval $ac_link) 2>conftest.er1
f73dda09 8634 ac_status=$?
0628567a
JA
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
b80f6443 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8639 (exit $ac_status); } &&
0628567a
JA
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
b80f6443 8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
b80f6443 8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8652 (exit $ac_status); }; }; then
b80f6443 8653 am_cv_langinfo_codeset=yes
f73dda09
JA
8654else
8655 echo "$as_me: failed program was:" >&5
0628567a
JA
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
b80f6443 8658am_cv_langinfo_codeset=no
f73dda09 8659fi
0628567a
JA
8660rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
b80f6443 8662
f73dda09 8663fi
b80f6443
JA
8664echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8665echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8666 if test $am_cv_langinfo_codeset = yes; then
f73dda09 8667
b80f6443
JA
8668cat >>confdefs.h <<\_ACEOF
8669#define HAVE_LANGINFO_CODESET 1
8670_ACEOF
f73dda09 8671
b80f6443 8672 fi
f73dda09 8673
b80f6443 8674 if test $ac_cv_header_locale_h = yes; then
f73dda09 8675
b80f6443
JA
8676 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8677echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8678if test "${am_cv_val_LC_MESSAGES+set}" = set; then
f73dda09
JA
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680else
8681 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8682/* confdefs.h. */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h. */
b80f6443 8687#include <locale.h>
f73dda09
JA
8688int
8689main ()
8690{
b80f6443 8691return LC_MESSAGES
f73dda09
JA
8692 ;
8693 return 0;
8694}
8695_ACEOF
b80f6443
JA
8696rm -f conftest.$ac_objext conftest$ac_exeext
8697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 8698 (eval $ac_link) 2>conftest.er1
f73dda09 8699 ac_status=$?
0628567a
JA
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
b80f6443 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8704 (exit $ac_status); } &&
0628567a
JA
8705 { ac_try='test -z "$ac_c_werror_flag"
8706 || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest$ac_exeext'
b80f6443 8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
b80f6443 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8717 (exit $ac_status); }; }; then
b80f6443 8718 am_cv_val_LC_MESSAGES=yes
f73dda09
JA
8719else
8720 echo "$as_me: failed program was:" >&5
0628567a
JA
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
b80f6443 8723am_cv_val_LC_MESSAGES=no
f73dda09 8724fi
0628567a
JA
8725rm -f conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
f73dda09 8727fi
b80f6443
JA
8728echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8729echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8730 if test $am_cv_val_LC_MESSAGES = yes; then
f73dda09 8731
b80f6443
JA
8732cat >>confdefs.h <<\_ACEOF
8733#define HAVE_LC_MESSAGES 1
8734_ACEOF
8735
8736 fi
8737
8738 fi
f73dda09 8739
b80f6443
JA
8740 for ac_prog in bison
8741do
8742 # Extract the first word of "$ac_prog", so it can be a program name with args.
8743set dummy $ac_prog; ac_word=$2
8744echo "$as_me:$LINENO: checking for $ac_word" >&5
8745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8746if test "${ac_cv_prog_INTLBISON+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
f73dda09 8748else
b80f6443
JA
8749 if test -n "$INTLBISON"; then
8750 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8751else
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_INTLBISON="$ac_prog"
8760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764done
f73dda09 8765
b80f6443
JA
8766fi
8767fi
8768INTLBISON=$ac_cv_prog_INTLBISON
8769if test -n "$INTLBISON"; then
8770 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8771echo "${ECHO_T}$INTLBISON" >&6
8772else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
f73dda09
JA
8775fi
8776
b80f6443
JA
8777 test -n "$INTLBISON" && break
8778done
8779
8780 if test -z "$INTLBISON"; then
8781 ac_verc_fail=yes
8782 else
8783 echo "$as_me:$LINENO: checking version of bison" >&5
8784echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8785 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8786 case $ac_prog_version in
8787 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8788 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8789 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8790 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8791 esac
8792 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8793echo "${ECHO_T}$ac_prog_version" >&6
8794 fi
8795 if test $ac_verc_fail = yes; then
8796 INTLBISON=:
8797 fi
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8815echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8816 # Check whether --enable-nls or --disable-nls was given.
8817if test "${enable_nls+set}" = set; then
8818 enableval="$enable_nls"
8819 USE_NLS=$enableval
8820else
8821 USE_NLS=yes
8822fi;
8823 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8824echo "${ECHO_T}$USE_NLS" >&6
8825
8826
8827
8828
8829 BUILD_INCLUDED_LIBINTL=no
8830 USE_INCLUDED_LIBINTL=no
8831
8832 LIBINTL=
8833 LTLIBINTL=
8834 POSUB=
8835
8836 if test "$USE_NLS" = "yes"; then
8837 gt_use_preinstalled_gnugettext=no
8838
8839 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8840echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8841
8842# Check whether --with-included-gettext or --without-included-gettext was given.
8843if test "${with_included_gettext+set}" = set; then
8844 withval="$with_included_gettext"
8845 nls_cv_force_use_gnu_gettext=$withval
8846else
8847 nls_cv_force_use_gnu_gettext=no
8848fi;
8849 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8850echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8851
8852 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8853 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8854
8855
8856
8857
8858
8859
8860 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8861echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8862if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
f73dda09
JA
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
b80f6443
JA
8871#include <libintl.h>
8872extern int _nl_msg_cat_cntr;
8873extern int *_nl_domain_bindings;
f73dda09
JA
8874int
8875main ()
8876{
b80f6443
JA
8877bindtextdomain ("", "");
8878return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
f73dda09
JA
8879 ;
8880 return 0;
8881}
8882_ACEOF
b80f6443
JA
8883rm -f conftest.$ac_objext conftest$ac_exeext
8884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 8885 (eval $ac_link) 2>conftest.er1
f73dda09 8886 ac_status=$?
0628567a
JA
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
b80f6443 8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8891 (exit $ac_status); } &&
0628567a
JA
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest$ac_exeext'
b80f6443 8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
b80f6443 8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8904 (exit $ac_status); }; }; then
b80f6443 8905 gt_cv_func_gnugettext2_libc=yes
f73dda09
JA
8906else
8907 echo "$as_me: failed program was:" >&5
0628567a
JA
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
b80f6443 8910gt_cv_func_gnugettext2_libc=no
f73dda09 8911fi
0628567a
JA
8912rm -f conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
f73dda09 8914fi
b80f6443
JA
8915echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8916echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
f73dda09 8917
b80f6443 8918 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
f73dda09 8919
f73dda09 8920
f73dda09 8921
b80f6443
JA
8922 use_additional=yes
8923
8924 acl_save_prefix="$prefix"
8925 prefix="$acl_final_prefix"
8926 acl_save_exec_prefix="$exec_prefix"
8927 exec_prefix="$acl_final_exec_prefix"
8928
8929 eval additional_includedir=\"$includedir\"
8930 eval additional_libdir=\"$libdir\"
8931
8932 exec_prefix="$acl_save_exec_prefix"
8933 prefix="$acl_save_prefix"
8934
8935
8936# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8937if test "${with_libintl_prefix+set}" = set; then
8938 withval="$with_libintl_prefix"
8939
8940 if test "X$withval" = "Xno"; then
8941 use_additional=no
8942 else
8943 if test "X$withval" = "X"; then
8944
8945 acl_save_prefix="$prefix"
8946 prefix="$acl_final_prefix"
8947 acl_save_exec_prefix="$exec_prefix"
8948 exec_prefix="$acl_final_exec_prefix"
8949
8950 eval additional_includedir=\"$includedir\"
8951 eval additional_libdir=\"$libdir\"
8952
8953 exec_prefix="$acl_save_exec_prefix"
8954 prefix="$acl_save_prefix"
8955
8956 else
8957 additional_includedir="$withval/include"
8958 additional_libdir="$withval/lib"
8959 fi
8960 fi
8961
8962fi;
8963 LIBINTL=
8964 LTLIBINTL=
8965 INCINTL=
8966 rpathdirs=
8967 ltrpathdirs=
8968 names_already_handled=
8969 names_next_round='intl '
8970 while test -n "$names_next_round"; do
8971 names_this_round="$names_next_round"
8972 names_next_round=
8973 for name in $names_this_round; do
8974 already_handled=
8975 for n in $names_already_handled; do
8976 if test "$n" = "$name"; then
8977 already_handled=yes
8978 break
8979 fi
8980 done
8981 if test -z "$already_handled"; then
8982 names_already_handled="$names_already_handled $name"
8983 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8984 eval value=\"\$HAVE_LIB$uppername\"
8985 if test -n "$value"; then
8986 if test "$value" = yes; then
8987 eval value=\"\$LIB$uppername\"
8988 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8989 eval value=\"\$LTLIB$uppername\"
8990 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8991 else
8992 :
8993 fi
8994 else
8995 found_dir=
8996 found_la=
8997 found_so=
8998 found_a=
8999 if test $use_additional = yes; then
9000 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9001 found_dir="$additional_libdir"
9002 found_so="$additional_libdir/lib$name.$shlibext"
9003 if test -f "$additional_libdir/lib$name.la"; then
9004 found_la="$additional_libdir/lib$name.la"
9005 fi
9006 else
9007 if test -f "$additional_libdir/lib$name.$libext"; then
9008 found_dir="$additional_libdir"
9009 found_a="$additional_libdir/lib$name.$libext"
9010 if test -f "$additional_libdir/lib$name.la"; then
9011 found_la="$additional_libdir/lib$name.la"
9012 fi
9013 fi
9014 fi
9015 fi
9016 if test "X$found_dir" = "X"; then
9017 for x in $LDFLAGS $LTLIBINTL; do
9018
9019 acl_save_prefix="$prefix"
9020 prefix="$acl_final_prefix"
9021 acl_save_exec_prefix="$exec_prefix"
9022 exec_prefix="$acl_final_exec_prefix"
9023 eval x=\"$x\"
9024 exec_prefix="$acl_save_exec_prefix"
9025 prefix="$acl_save_prefix"
9026
9027 case "$x" in
9028 -L*)
9029 dir=`echo "X$x" | sed -e 's/^X-L//'`
9030 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9031 found_dir="$dir"
9032 found_so="$dir/lib$name.$shlibext"
9033 if test -f "$dir/lib$name.la"; then
9034 found_la="$dir/lib$name.la"
9035 fi
9036 else
9037 if test -f "$dir/lib$name.$libext"; then
9038 found_dir="$dir"
9039 found_a="$dir/lib$name.$libext"
9040 if test -f "$dir/lib$name.la"; then
9041 found_la="$dir/lib$name.la"
9042 fi
9043 fi
9044 fi
9045 ;;
9046 esac
9047 if test "X$found_dir" != "X"; then
9048 break
9049 fi
9050 done
9051 fi
9052 if test "X$found_dir" != "X"; then
9053 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9054 if test "X$found_so" != "X"; then
9055 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9056 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9057 else
9058 haveit=
9059 for x in $ltrpathdirs; do
9060 if test "X$x" = "X$found_dir"; then
9061 haveit=yes
9062 break
9063 fi
9064 done
9065 if test -z "$haveit"; then
9066 ltrpathdirs="$ltrpathdirs $found_dir"
9067 fi
9068 if test "$hardcode_direct" = yes; then
9069 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9070 else
9071 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9072 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9073 haveit=
9074 for x in $rpathdirs; do
9075 if test "X$x" = "X$found_dir"; then
9076 haveit=yes
9077 break
9078 fi
9079 done
9080 if test -z "$haveit"; then
9081 rpathdirs="$rpathdirs $found_dir"
9082 fi
9083 else
9084 haveit=
9085 for x in $LDFLAGS $LIBINTL; do
9086
9087 acl_save_prefix="$prefix"
9088 prefix="$acl_final_prefix"
9089 acl_save_exec_prefix="$exec_prefix"
9090 exec_prefix="$acl_final_exec_prefix"
9091 eval x=\"$x\"
9092 exec_prefix="$acl_save_exec_prefix"
9093 prefix="$acl_save_prefix"
9094
9095 if test "X$x" = "X-L$found_dir"; then
9096 haveit=yes
9097 break
9098 fi
9099 done
9100 if test -z "$haveit"; then
9101 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9102 fi
9103 if test "$hardcode_minus_L" != no; then
9104 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9105 else
9106 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9107 fi
9108 fi
9109 fi
9110 fi
9111 else
9112 if test "X$found_a" != "X"; then
9113 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9114 else
9115 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9116 fi
9117 fi
9118 additional_includedir=
9119 case "$found_dir" in
9120 */lib | */lib/)
9121 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9122 additional_includedir="$basedir/include"
9123 ;;
9124 esac
9125 if test "X$additional_includedir" != "X"; then
9126 if test "X$additional_includedir" != "X/usr/include"; then
9127 haveit=
9128 if test "X$additional_includedir" = "X/usr/local/include"; then
9129 if test -n "$GCC"; then
9130 case $host_os in
9131 linux*) haveit=yes;;
9132 esac
9133 fi
9134 fi
9135 if test -z "$haveit"; then
9136 for x in $CPPFLAGS $INCINTL; do
9137
9138 acl_save_prefix="$prefix"
9139 prefix="$acl_final_prefix"
9140 acl_save_exec_prefix="$exec_prefix"
9141 exec_prefix="$acl_final_exec_prefix"
9142 eval x=\"$x\"
9143 exec_prefix="$acl_save_exec_prefix"
9144 prefix="$acl_save_prefix"
9145
9146 if test "X$x" = "X-I$additional_includedir"; then
9147 haveit=yes
9148 break
9149 fi
9150 done
9151 if test -z "$haveit"; then
9152 if test -d "$additional_includedir"; then
9153 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9154 fi
9155 fi
9156 fi
9157 fi
9158 fi
9159 if test -n "$found_la"; then
9160 save_libdir="$libdir"
9161 case "$found_la" in
9162 */* | *\\*) . "$found_la" ;;
9163 *) . "./$found_la" ;;
9164 esac
9165 libdir="$save_libdir"
9166 for dep in $dependency_libs; do
9167 case "$dep" in
9168 -L*)
9169 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9170 if test "X$additional_libdir" != "X/usr/lib"; then
9171 haveit=
9172 if test "X$additional_libdir" = "X/usr/local/lib"; then
9173 if test -n "$GCC"; then
9174 case $host_os in
9175 linux*) haveit=yes;;
9176 esac
9177 fi
9178 fi
9179 if test -z "$haveit"; then
9180 haveit=
9181 for x in $LDFLAGS $LIBINTL; do
9182
9183 acl_save_prefix="$prefix"
9184 prefix="$acl_final_prefix"
9185 acl_save_exec_prefix="$exec_prefix"
9186 exec_prefix="$acl_final_exec_prefix"
9187 eval x=\"$x\"
9188 exec_prefix="$acl_save_exec_prefix"
9189 prefix="$acl_save_prefix"
9190
9191 if test "X$x" = "X-L$additional_libdir"; then
9192 haveit=yes
9193 break
9194 fi
9195 done
9196 if test -z "$haveit"; then
9197 if test -d "$additional_libdir"; then
9198 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9199 fi
9200 fi
9201 haveit=
9202 for x in $LDFLAGS $LTLIBINTL; do
9203
9204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9208 eval x=\"$x\"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
9211
9212 if test "X$x" = "X-L$additional_libdir"; then
9213 haveit=yes
9214 break
9215 fi
9216 done
9217 if test -z "$haveit"; then
9218 if test -d "$additional_libdir"; then
9219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9220 fi
9221 fi
9222 fi
9223 fi
9224 ;;
9225 -R*)
9226 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9227 if test "$enable_rpath" != no; then
9228 haveit=
9229 for x in $rpathdirs; do
9230 if test "X$x" = "X$dir"; then
9231 haveit=yes
9232 break
9233 fi
9234 done
9235 if test -z "$haveit"; then
9236 rpathdirs="$rpathdirs $dir"
9237 fi
9238 haveit=
9239 for x in $ltrpathdirs; do
9240 if test "X$x" = "X$dir"; then
9241 haveit=yes
9242 break
9243 fi
9244 done
9245 if test -z "$haveit"; then
9246 ltrpathdirs="$ltrpathdirs $dir"
9247 fi
9248 fi
9249 ;;
9250 -l*)
9251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9252 ;;
9253 *.la)
9254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9255 ;;
9256 *)
9257 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9259 ;;
9260 esac
9261 done
9262 fi
9263 else
9264 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9266 fi
9267 fi
9268 fi
9269 done
9270 done
9271 if test "X$rpathdirs" != "X"; then
9272 if test -n "$hardcode_libdir_separator"; then
9273 alldirs=
9274 for found_dir in $rpathdirs; do
9275 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9276 done
9277 acl_save_libdir="$libdir"
9278 libdir="$alldirs"
9279 eval flag=\"$hardcode_libdir_flag_spec\"
9280 libdir="$acl_save_libdir"
9281 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9282 else
9283 for found_dir in $rpathdirs; do
9284 acl_save_libdir="$libdir"
9285 libdir="$found_dir"
9286 eval flag=\"$hardcode_libdir_flag_spec\"
9287 libdir="$acl_save_libdir"
9288 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9289 done
9290 fi
9291 fi
9292 if test "X$ltrpathdirs" != "X"; then
9293 for found_dir in $ltrpathdirs; do
9294 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9295 done
9296 fi
9297
9298 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9299echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9300if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
f73dda09
JA
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302else
b80f6443
JA
9303 gt_save_CPPFLAGS="$CPPFLAGS"
9304 CPPFLAGS="$CPPFLAGS $INCINTL"
9305 gt_save_LIBS="$LIBS"
9306 LIBS="$LIBS $LIBINTL"
9307 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9308/* confdefs.h. */
9309_ACEOF
9310cat confdefs.h >>conftest.$ac_ext
9311cat >>conftest.$ac_ext <<_ACEOF
9312/* end confdefs.h. */
b80f6443
JA
9313#include <libintl.h>
9314extern int _nl_msg_cat_cntr;
9315extern
9316#ifdef __cplusplus
9317"C"
9318#endif
9319const char *_nl_expand_alias ();
f73dda09
JA
9320int
9321main ()
9322{
b80f6443
JA
9323bindtextdomain ("", "");
9324return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
f73dda09
JA
9325 ;
9326 return 0;
9327}
9328_ACEOF
b80f6443
JA
9329rm -f conftest.$ac_objext conftest$ac_exeext
9330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 9331 (eval $ac_link) 2>conftest.er1
f73dda09 9332 ac_status=$?
0628567a
JA
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
b80f6443 9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9337 (exit $ac_status); } &&
0628567a
JA
9338 { ac_try='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try='test -s conftest$ac_exeext'
b80f6443 9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
b80f6443 9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9350 (exit $ac_status); }; }; then
b80f6443 9351 gt_cv_func_gnugettext2_libintl=yes
f73dda09
JA
9352else
9353 echo "$as_me: failed program was:" >&5
0628567a
JA
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
b80f6443 9356gt_cv_func_gnugettext2_libintl=no
f73dda09 9357fi
0628567a
JA
9358rm -f conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9360 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9361 LIBS="$LIBS $LIBICONV"
9362 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h. */
b80f6443
JA
9368#include <libintl.h>
9369extern int _nl_msg_cat_cntr;
9370extern
9371#ifdef __cplusplus
9372"C"
9373#endif
9374const char *_nl_expand_alias ();
f73dda09
JA
9375int
9376main ()
9377{
b80f6443
JA
9378bindtextdomain ("", "");
9379return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
f73dda09
JA
9380 ;
9381 return 0;
9382}
9383_ACEOF
b80f6443
JA
9384rm -f conftest.$ac_objext conftest$ac_exeext
9385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 9386 (eval $ac_link) 2>conftest.er1
f73dda09 9387 ac_status=$?
0628567a
JA
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
b80f6443 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9392 (exit $ac_status); } &&
0628567a
JA
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest$ac_exeext'
b80f6443 9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
b80f6443 9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9405 (exit $ac_status); }; }; then
b80f6443
JA
9406 LIBINTL="$LIBINTL $LIBICONV"
9407 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9408 gt_cv_func_gnugettext2_libintl=yes
9409
f73dda09
JA
9410else
9411 echo "$as_me: failed program was:" >&5
0628567a
JA
9412sed 's/^/| /' conftest.$ac_ext >&5
9413
f73dda09 9414fi
0628567a
JA
9415rm -f conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9417 fi
9418 CPPFLAGS="$gt_save_CPPFLAGS"
9419 LIBS="$gt_save_LIBS"
9420fi
9421echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9422echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9423 fi
9424
9425 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9426 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9427 && test "$PACKAGE" != gettext-runtime \
9428 && test "$PACKAGE" != gettext-tools; }; then
9429 gt_use_preinstalled_gnugettext=yes
9430 else
9431 LIBINTL=
9432 LTLIBINTL=
9433 INCINTL=
9434 fi
9435
9436
9437 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9438 nls_cv_use_gnu_gettext=yes
9439 fi
9440 fi
f73dda09 9441
b80f6443
JA
9442 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9443 BUILD_INCLUDED_LIBINTL=yes
9444 USE_INCLUDED_LIBINTL=yes
9445 LIBINTL="lib/intl/libintl.a $LIBICONV"
9446 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9447 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9448 fi
f73dda09 9449
b80f6443
JA
9450 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9451 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9452 CATOBJEXT=.gmo
9453 fi
f73dda09 9454
f73dda09 9455
b80f6443
JA
9456 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9457 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9458
9459cat >>confdefs.h <<\_ACEOF
9460#define ENABLE_NLS 1
9461_ACEOF
9462
9463 else
9464 USE_NLS=no
9465 fi
9466 fi
9467
9468 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9469echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9470 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9471echo "${ECHO_T}$USE_NLS" >&6
9472 if test "$USE_NLS" = "yes"; then
9473 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9474echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9475 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9476 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9477 gt_source="external libintl"
9478 else
9479 gt_source="libc"
9480 fi
9481 else
9482 gt_source="included intl directory"
9483 fi
9484 echo "$as_me:$LINENO: result: $gt_source" >&5
9485echo "${ECHO_T}$gt_source" >&6
9486 fi
9487
9488 if test "$USE_NLS" = "yes"; then
9489
9490 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9491 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9492 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9493echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9494 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9495echo "${ECHO_T}$LIBINTL" >&6
9496
9497 for element in $INCINTL; do
9498 haveit=
9499 for x in $CPPFLAGS; do
9500
9501 acl_save_prefix="$prefix"
9502 prefix="$acl_final_prefix"
9503 acl_save_exec_prefix="$exec_prefix"
9504 exec_prefix="$acl_final_exec_prefix"
9505 eval x=\"$x\"
9506 exec_prefix="$acl_save_exec_prefix"
9507 prefix="$acl_save_prefix"
9508
9509 if test "X$x" = "X$element"; then
9510 haveit=yes
9511 break
9512 fi
9513 done
9514 if test -z "$haveit"; then
9515 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9516 fi
9517 done
9518
9519 fi
9520
9521
9522cat >>confdefs.h <<\_ACEOF
9523#define HAVE_GETTEXT 1
9524_ACEOF
9525
9526
9527cat >>confdefs.h <<\_ACEOF
9528#define HAVE_DCGETTEXT 1
9529_ACEOF
9530
9531 fi
9532
9533 POSUB=po
9534 fi
9535
9536
9537 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9538 BUILD_INCLUDED_LIBINTL=yes
9539 fi
9540
9541
9542
9543
9544
9545 nls_cv_header_intl=
9546 nls_cv_header_libgt=
9547
9548 DATADIRNAME=share
9549
9550
9551 INSTOBJEXT=.mo
9552
9553
9554 GENCAT=gencat
9555
9556
9557 if test "$USE_INCLUDED_LIBINTL" = yes; then
9558 INTLOBJS="\$(GETTOBJS)"
9559 fi
9560
9561
9562 INTL_LIBTOOL_SUFFIX_PREFIX=
9563
9564
9565
9566 INTLLIBS="$LIBINTL"
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579ac_header_dirent=no
9580for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9581 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9582echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9583echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9584if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117c2d2
JA
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586else
9587 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9588/* confdefs.h. */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h. */
b80f6443
JA
9593#include <sys/types.h>
9594#include <$ac_hdr>
9595
7117c2d2
JA
9596int
9597main ()
9598{
b80f6443
JA
9599if ((DIR *) 0)
9600return 0;
7117c2d2
JA
9601 ;
9602 return 0;
9603}
9604_ACEOF
9605rm -f conftest.$ac_objext
b80f6443 9606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 9607 (eval $ac_compile) 2>conftest.er1
7117c2d2 9608 ac_status=$?
0628567a
JA
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
b80f6443 9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 9613 (exit $ac_status); } &&
0628567a
JA
9614 { ac_try='test -z "$ac_c_werror_flag"
9615 || test ! -s conftest.err'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest.$ac_objext'
b80f6443 9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
b80f6443 9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 9626 (exit $ac_status); }; }; then
b80f6443 9627 eval "$as_ac_Header=yes"
7117c2d2
JA
9628else
9629 echo "$as_me: failed program was:" >&5
0628567a
JA
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
b80f6443 9632eval "$as_ac_Header=no"
7117c2d2 9633fi
0628567a 9634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 9635fi
b80f6443
JA
9636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9638if test `eval echo '${'$as_ac_Header'}'` = yes; then
9639 cat >>confdefs.h <<_ACEOF
9640#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9641_ACEOF
7117c2d2 9642
b80f6443 9643ac_header_dirent=$ac_hdr; break
7117c2d2
JA
9644fi
9645
b80f6443
JA
9646done
9647# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9648if test $ac_header_dirent = dirent.h; then
9649 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9650echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9651if test "${ac_cv_search_opendir+set}" = set; then
f73dda09
JA
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
b80f6443
JA
9654 ac_func_search_save_LIBS=$LIBS
9655ac_cv_search_opendir=no
9656cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
f73dda09 9662
b80f6443
JA
9663/* Override any gcc2 internal prototype to avoid an error. */
9664#ifdef __cplusplus
9665extern "C"
f73dda09 9666#endif
b80f6443
JA
9667/* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9669char opendir ();
f73dda09
JA
9670int
9671main ()
9672{
b80f6443 9673opendir ();
f73dda09
JA
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 9679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 9680 (eval $ac_link) 2>conftest.er1
f73dda09 9681 ac_status=$?
0628567a
JA
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
b80f6443 9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9686 (exit $ac_status); } &&
0628567a
JA
9687 { ac_try='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest$ac_exeext'
b80f6443 9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
b80f6443 9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9699 (exit $ac_status); }; }; then
b80f6443 9700 ac_cv_search_opendir="none required"
f73dda09
JA
9701else
9702 echo "$as_me: failed program was:" >&5
0628567a
JA
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
f73dda09 9705fi
0628567a
JA
9706rm -f conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9708if test "$ac_cv_search_opendir" = no; then
9709 for ac_lib in dir; do
9710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9711 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9712/* confdefs.h. */
9713_ACEOF
9714cat confdefs.h >>conftest.$ac_ext
9715cat >>conftest.$ac_ext <<_ACEOF
9716/* end confdefs.h. */
f73dda09 9717
b80f6443
JA
9718/* Override any gcc2 internal prototype to avoid an error. */
9719#ifdef __cplusplus
9720extern "C"
f73dda09 9721#endif
b80f6443
JA
9722/* We use char because int might match the return type of a gcc2
9723 builtin and then its argument prototype would still apply. */
9724char opendir ();
f73dda09
JA
9725int
9726main ()
9727{
b80f6443 9728opendir ();
f73dda09
JA
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 9734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 9735 (eval $ac_link) 2>conftest.er1
f73dda09 9736 ac_status=$?
0628567a
JA
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
b80f6443 9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9741 (exit $ac_status); } &&
0628567a
JA
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
b80f6443 9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
b80f6443 9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9754 (exit $ac_status); }; }; then
b80f6443
JA
9755 ac_cv_search_opendir="-l$ac_lib"
9756break
f73dda09
JA
9757else
9758 echo "$as_me: failed program was:" >&5
0628567a
JA
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
f73dda09 9761fi
0628567a
JA
9762rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
b80f6443 9764 done
f73dda09 9765fi
b80f6443
JA
9766LIBS=$ac_func_search_save_LIBS
9767fi
9768echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9769echo "${ECHO_T}$ac_cv_search_opendir" >&6
9770if test "$ac_cv_search_opendir" != no; then
9771 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
f73dda09
JA
9772
9773fi
9774
b80f6443
JA
9775else
9776 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9777echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9778if test "${ac_cv_search_opendir+set}" = set; then
f73dda09
JA
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
b80f6443
JA
9781 ac_func_search_save_LIBS=$LIBS
9782ac_cv_search_opendir=no
9783cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
f73dda09 9789
b80f6443
JA
9790/* Override any gcc2 internal prototype to avoid an error. */
9791#ifdef __cplusplus
9792extern "C"
f73dda09 9793#endif
b80f6443
JA
9794/* We use char because int might match the return type of a gcc2
9795 builtin and then its argument prototype would still apply. */
9796char opendir ();
f73dda09
JA
9797int
9798main ()
9799{
b80f6443 9800opendir ();
f73dda09
JA
9801 ;
9802 return 0;
9803}
9804_ACEOF
9805rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 9806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 9807 (eval $ac_link) 2>conftest.er1
f73dda09 9808 ac_status=$?
0628567a
JA
9809 grep -v '^ *+' conftest.er1 >conftest.err
9810 rm -f conftest.er1
9811 cat conftest.err >&5
b80f6443 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9813 (exit $ac_status); } &&
0628567a
JA
9814 { ac_try='test -z "$ac_c_werror_flag"
9815 || test ! -s conftest.err'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; } &&
9821 { ac_try='test -s conftest$ac_exeext'
b80f6443 9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9823 (eval $ac_try) 2>&5
9824 ac_status=$?
b80f6443 9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9826 (exit $ac_status); }; }; then
b80f6443 9827 ac_cv_search_opendir="none required"
f73dda09
JA
9828else
9829 echo "$as_me: failed program was:" >&5
0628567a
JA
9830sed 's/^/| /' conftest.$ac_ext >&5
9831
f73dda09 9832fi
0628567a
JA
9833rm -f conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9835if test "$ac_cv_search_opendir" = no; then
9836 for ac_lib in x; do
9837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9838 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9839/* confdefs.h. */
9840_ACEOF
9841cat confdefs.h >>conftest.$ac_ext
9842cat >>conftest.$ac_ext <<_ACEOF
9843/* end confdefs.h. */
f73dda09 9844
b80f6443
JA
9845/* Override any gcc2 internal prototype to avoid an error. */
9846#ifdef __cplusplus
9847extern "C"
f73dda09 9848#endif
b80f6443
JA
9849/* We use char because int might match the return type of a gcc2
9850 builtin and then its argument prototype would still apply. */
9851char opendir ();
f73dda09
JA
9852int
9853main ()
9854{
b80f6443 9855opendir ();
f73dda09
JA
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 9861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 9862 (eval $ac_link) 2>conftest.er1
f73dda09 9863 ac_status=$?
0628567a
JA
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
b80f6443 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9868 (exit $ac_status); } &&
0628567a
JA
9869 { ac_try='test -z "$ac_c_werror_flag"
9870 || test ! -s conftest.err'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try='test -s conftest$ac_exeext'
b80f6443 9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
b80f6443 9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9881 (exit $ac_status); }; }; then
b80f6443
JA
9882 ac_cv_search_opendir="-l$ac_lib"
9883break
f73dda09
JA
9884else
9885 echo "$as_me: failed program was:" >&5
0628567a
JA
9886sed 's/^/| /' conftest.$ac_ext >&5
9887
f73dda09 9888fi
0628567a
JA
9889rm -f conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
b80f6443 9891 done
f73dda09 9892fi
b80f6443
JA
9893LIBS=$ac_func_search_save_LIBS
9894fi
9895echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9896echo "${ECHO_T}$ac_cv_search_opendir" >&6
9897if test "$ac_cv_search_opendir" != no; then
9898 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
f73dda09 9899
b80f6443 9900fi
f73dda09
JA
9901
9902fi
9903
b80f6443
JA
9904echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9905echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9906if test "${ac_cv_header_time+set}" = set; then
f73dda09
JA
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
b80f6443
JA
9915#include <sys/types.h>
9916#include <sys/time.h>
9917#include <time.h>
f73dda09
JA
9918
9919int
9920main ()
9921{
b80f6443
JA
9922if ((struct tm *) 0)
9923return 0;
f73dda09
JA
9924 ;
9925 return 0;
9926}
9927_ACEOF
b80f6443
JA
9928rm -f conftest.$ac_objext
9929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 9930 (eval $ac_compile) 2>conftest.er1
f73dda09 9931 ac_status=$?
0628567a
JA
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
b80f6443 9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9936 (exit $ac_status); } &&
0628567a
JA
9937 { ac_try='test -z "$ac_c_werror_flag"
9938 || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try='test -s conftest.$ac_objext'
b80f6443 9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
b80f6443 9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 9949 (exit $ac_status); }; }; then
b80f6443 9950 ac_cv_header_time=yes
f73dda09
JA
9951else
9952 echo "$as_me: failed program was:" >&5
0628567a
JA
9953sed 's/^/| /' conftest.$ac_ext >&5
9954
b80f6443 9955ac_cv_header_time=no
f73dda09 9956fi
0628567a 9957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 9958fi
b80f6443
JA
9959echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9960echo "${ECHO_T}$ac_cv_header_time" >&6
9961if test $ac_cv_header_time = yes; then
f73dda09 9962
b80f6443
JA
9963cat >>confdefs.h <<\_ACEOF
9964#define TIME_WITH_SYS_TIME 1
9965_ACEOF
f73dda09
JA
9966
9967fi
9968
f73dda09 9969
f73dda09 9970
b80f6443
JA
9971
9972for ac_header in inttypes.h
9973do
9974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9975if eval "test \"\${$as_ac_Header+set}\" = set"; then
9976 echo "$as_me:$LINENO: checking for $ac_header" >&5
9977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9978if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980fi
9981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9983else
9984 # Is the header compilable?
9985echo "$as_me:$LINENO: checking $ac_header usability" >&5
9986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9987cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
b80f6443
JA
9993$ac_includes_default
9994#include <$ac_header>
9995_ACEOF
9996rm -f conftest.$ac_objext
9997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 9998 (eval $ac_compile) 2>conftest.er1
f73dda09 9999 ac_status=$?
0628567a
JA
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
b80f6443 10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10004 (exit $ac_status); } &&
0628567a
JA
10005 { ac_try='test -z "$ac_c_werror_flag"
10006 || test ! -s conftest.err'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try='test -s conftest.$ac_objext'
b80f6443 10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
b80f6443 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10017 (exit $ac_status); }; }; then
b80f6443 10018 ac_header_compiler=yes
f73dda09
JA
10019else
10020 echo "$as_me: failed program was:" >&5
0628567a
JA
10021sed 's/^/| /' conftest.$ac_ext >&5
10022
b80f6443 10023ac_header_compiler=no
f73dda09 10024fi
0628567a 10025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
10026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10027echo "${ECHO_T}$ac_header_compiler" >&6
f73dda09 10028
b80f6443
JA
10029# Is the header present?
10030echo "$as_me:$LINENO: checking $ac_header presence" >&5
10031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10032cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
f73dda09
JA
10038#include <$ac_header>
10039_ACEOF
b80f6443 10040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f73dda09
JA
10041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10042 ac_status=$?
0628567a 10043 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
10044 rm -f conftest.er1
10045 cat conftest.err >&5
b80f6443 10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
10047 (exit $ac_status); } >/dev/null; then
10048 if test -s conftest.err; then
10049 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 10050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f73dda09
JA
10051 else
10052 ac_cpp_err=
10053 fi
10054else
10055 ac_cpp_err=yes
10056fi
10057if test -z "$ac_cpp_err"; then
b80f6443 10058 ac_header_preproc=yes
f73dda09
JA
10059else
10060 echo "$as_me: failed program was:" >&5
0628567a
JA
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
b80f6443 10063 ac_header_preproc=no
f73dda09
JA
10064fi
10065rm -f conftest.err conftest.$ac_ext
b80f6443
JA
10066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10067echo "${ECHO_T}$ac_header_preproc" >&6
10068
10069# So? What about this header?
0628567a
JA
10070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10071 yes:no: )
b80f6443
JA
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10076 ac_header_preproc=yes
10077 ;;
10078 no:yes:* )
b80f6443
JA
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
10088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10091 (
10092 cat <<\_ASBOX
10093## ------------------------------- ##
10094## Report this to bug-bash@gnu.org ##
10095## ------------------------------- ##
10096_ASBOX
10097 ) |
10098 sed "s/^/$as_me: WARNING: /" >&2
10099 ;;
b80f6443
JA
10100esac
10101echo "$as_me:$LINENO: checking for $ac_header" >&5
10102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
0628567a 10106 eval "$as_ac_Header=\$ac_header_preproc"
f73dda09 10107fi
b80f6443 10108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f73dda09 10109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b80f6443
JA
10110
10111fi
f73dda09 10112if test `eval echo '${'$as_ac_Header'}'` = yes; then
b80f6443 10113 cat >>confdefs.h <<_ACEOF
f73dda09 10114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 10115_ACEOF
f73dda09
JA
10116
10117fi
b80f6443 10118
f73dda09
JA
10119done
10120
b80f6443
JA
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
95732b49 10139
b80f6443
JA
10140
10141
10142for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10143 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
95732b49 10144 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
f73dda09 10145do
b80f6443
JA
10146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10147if eval "test \"\${$as_ac_Header+set}\" = set"; then
10148 echo "$as_me:$LINENO: checking for $ac_header" >&5
10149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10150if eval "test \"\${$as_ac_Header+set}\" = set"; then
f73dda09 10151 echo $ECHO_N "(cached) $ECHO_C" >&6
b80f6443
JA
10152fi
10153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f73dda09 10155else
b80f6443
JA
10156 # Is the header compilable?
10157echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10159cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
b80f6443
JA
10165$ac_includes_default
10166#include <$ac_header>
10167_ACEOF
10168rm -f conftest.$ac_objext
10169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 10170 (eval $ac_compile) 2>conftest.er1
f73dda09 10171 ac_status=$?
0628567a
JA
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
b80f6443 10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10176 (exit $ac_status); } &&
0628567a
JA
10177 { ac_try='test -z "$ac_c_werror_flag"
10178 || test ! -s conftest.err'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest.$ac_objext'
b80f6443 10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
b80f6443 10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 10189 (exit $ac_status); }; }; then
b80f6443 10190 ac_header_compiler=yes
f73dda09
JA
10191else
10192 echo "$as_me: failed program was:" >&5
0628567a
JA
10193sed 's/^/| /' conftest.$ac_ext >&5
10194
b80f6443 10195ac_header_compiler=no
f73dda09 10196fi
0628567a 10197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
10198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10199echo "${ECHO_T}$ac_header_compiler" >&6
f73dda09 10200
b80f6443
JA
10201# Is the header present?
10202echo "$as_me:$LINENO: checking $ac_header presence" >&5
10203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10204cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10205/* confdefs.h. */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h. */
b80f6443
JA
10210#include <$ac_header>
10211_ACEOF
10212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10214 ac_status=$?
0628567a 10215 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } >/dev/null; then
10220 if test -s conftest.err; then
10221 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 10222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
10223 else
10224 ac_cpp_err=
10225 fi
f73dda09 10226else
b80f6443
JA
10227 ac_cpp_err=yes
10228fi
10229if test -z "$ac_cpp_err"; then
10230 ac_header_preproc=yes
7117c2d2 10231else
b80f6443 10232 echo "$as_me: failed program was:" >&5
0628567a
JA
10233sed 's/^/| /' conftest.$ac_ext >&5
10234
b80f6443
JA
10235 ac_header_preproc=no
10236fi
10237rm -f conftest.err conftest.$ac_ext
10238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10239echo "${ECHO_T}$ac_header_preproc" >&6
10240
10241# So? What about this header?
0628567a
JA
10242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10243 yes:no: )
b80f6443
JA
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10248 ac_header_preproc=yes
10249 ;;
10250 no:yes:* )
b80f6443
JA
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 10259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
10260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10263 (
10264 cat <<\_ASBOX
10265## ------------------------------- ##
10266## Report this to bug-bash@gnu.org ##
10267## ------------------------------- ##
10268_ASBOX
10269 ) |
10270 sed "s/^/$as_me: WARNING: /" >&2
10271 ;;
b80f6443
JA
10272esac
10273echo "$as_me:$LINENO: checking for $ac_header" >&5
10274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10275if eval "test \"\${$as_ac_Header+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277else
0628567a 10278 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
10279fi
10280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10282
10283fi
10284if test `eval echo '${'$as_ac_Header'}'` = yes; then
10285 cat >>confdefs.h <<_ACEOF
10286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10287_ACEOF
10288
10289fi
10290
10291done
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
95732b49 10305for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
b80f6443
JA
10306 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10307 sys/time.h sys/times.h sys/types.h sys/wait.h
10308do
10309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315fi
10316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318else
10319 # Is the header compilable?
10320echo "$as_me:$LINENO: checking $ac_header usability" >&5
10321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10322cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
b80f6443
JA
10328$ac_includes_default
10329#include <$ac_header>
10330_ACEOF
10331rm -f conftest.$ac_objext
10332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 10333 (eval $ac_compile) 2>conftest.er1
b80f6443 10334 ac_status=$?
0628567a
JA
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
b80f6443
JA
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
0628567a
JA
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_header_compiler=yes
10354else
10355 echo "$as_me: failed program was:" >&5
0628567a
JA
10356sed 's/^/| /' conftest.$ac_ext >&5
10357
b80f6443
JA
10358ac_header_compiler=no
10359fi
0628567a 10360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
10361echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362echo "${ECHO_T}$ac_header_compiler" >&6
10363
10364# Is the header present?
10365echo "$as_me:$LINENO: checking $ac_header presence" >&5
10366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10367cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10368/* confdefs.h. */
10369_ACEOF
10370cat confdefs.h >>conftest.$ac_ext
10371cat >>conftest.$ac_ext <<_ACEOF
10372/* end confdefs.h. */
b80f6443
JA
10373#include <$ac_header>
10374_ACEOF
10375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10377 ac_status=$?
0628567a 10378 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } >/dev/null; then
10383 if test -s conftest.err; then
10384 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 10385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
10386 else
10387 ac_cpp_err=
10388 fi
10389else
10390 ac_cpp_err=yes
10391fi
10392if test -z "$ac_cpp_err"; then
10393 ac_header_preproc=yes
10394else
10395 echo "$as_me: failed program was:" >&5
0628567a
JA
10396sed 's/^/| /' conftest.$ac_ext >&5
10397
b80f6443
JA
10398 ac_header_preproc=no
10399fi
10400rm -f conftest.err conftest.$ac_ext
10401echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10402echo "${ECHO_T}$ac_header_preproc" >&6
10403
10404# So? What about this header?
0628567a
JA
10405case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10406 yes:no: )
b80f6443
JA
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10408echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10410echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10411 ac_header_preproc=yes
10412 ;;
10413 no:yes:* )
b80f6443
JA
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10415echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10417echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10419echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10421echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 10422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
10423echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10425echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10426 (
10427 cat <<\_ASBOX
10428## ------------------------------- ##
10429## Report this to bug-bash@gnu.org ##
10430## ------------------------------- ##
10431_ASBOX
10432 ) |
10433 sed "s/^/$as_me: WARNING: /" >&2
10434 ;;
b80f6443
JA
10435esac
10436echo "$as_me:$LINENO: checking for $ac_header" >&5
10437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10438if eval "test \"\${$as_ac_Header+set}\" = set"; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
0628567a 10441 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
10442fi
10443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10445
10446fi
10447if test `eval echo '${'$as_ac_Header'}'` = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10450_ACEOF
10451
10452fi
10453
10454done
10455
10456
10457
10458for ac_header in netinet/in.h arpa/inet.h
10459do
10460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10461if eval "test \"\${$as_ac_Header+set}\" = set"; then
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466fi
10467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10469else
10470 # Is the header compilable?
10471echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10473cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
b80f6443
JA
10479$ac_includes_default
10480#include <$ac_header>
10481_ACEOF
10482rm -f conftest.$ac_objext
10483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 10484 (eval $ac_compile) 2>conftest.er1
b80f6443 10485 ac_status=$?
0628567a
JA
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
b80f6443
JA
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
0628567a
JA
10491 { ac_try='test -z "$ac_c_werror_flag"
10492 || test ! -s conftest.err'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 ac_header_compiler=yes
10505else
10506 echo "$as_me: failed program was:" >&5
0628567a
JA
10507sed 's/^/| /' conftest.$ac_ext >&5
10508
b80f6443
JA
10509ac_header_compiler=no
10510fi
0628567a 10511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
10512echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10513echo "${ECHO_T}$ac_header_compiler" >&6
10514
10515# Is the header present?
10516echo "$as_me:$LINENO: checking $ac_header presence" >&5
10517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10518cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10519/* confdefs.h. */
10520_ACEOF
10521cat confdefs.h >>conftest.$ac_ext
10522cat >>conftest.$ac_ext <<_ACEOF
10523/* end confdefs.h. */
b80f6443
JA
10524#include <$ac_header>
10525_ACEOF
10526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10528 ac_status=$?
0628567a 10529 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } >/dev/null; then
10534 if test -s conftest.err; then
10535 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 10536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
10537 else
10538 ac_cpp_err=
10539 fi
10540else
10541 ac_cpp_err=yes
10542fi
10543if test -z "$ac_cpp_err"; then
10544 ac_header_preproc=yes
10545else
10546 echo "$as_me: failed program was:" >&5
0628567a
JA
10547sed 's/^/| /' conftest.$ac_ext >&5
10548
b80f6443
JA
10549 ac_header_preproc=no
10550fi
10551rm -f conftest.err conftest.$ac_ext
10552echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10553echo "${ECHO_T}$ac_header_preproc" >&6
10554
10555# So? What about this header?
0628567a
JA
10556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10557 yes:no: )
b80f6443
JA
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10562 ac_header_preproc=yes
10563 ;;
10564 no:yes:* )
b80f6443
JA
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10572echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
10574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10577 (
10578 cat <<\_ASBOX
10579## ------------------------------- ##
10580## Report this to bug-bash@gnu.org ##
10581## ------------------------------- ##
10582_ASBOX
10583 ) |
10584 sed "s/^/$as_me: WARNING: /" >&2
10585 ;;
b80f6443
JA
10586esac
10587echo "$as_me:$LINENO: checking for $ac_header" >&5
10588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10589if eval "test \"\${$as_ac_Header+set}\" = set"; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591else
0628567a 10592 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
10593fi
10594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10596
10597fi
10598if test `eval echo '${'$as_ac_Header'}'` = yes; then
10599 cat >>confdefs.h <<_ACEOF
10600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10601_ACEOF
10602
10603fi
10604
10605done
10606
10607
95732b49
JA
10608echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10609echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10610if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
95732b49
JA
10619
10620#if HAVE_SYS_STREAM_H
10621# include <sys/stream.h>
10622#endif
10623
10624
10625#include <sys/ptem.h>
10626_ACEOF
10627rm -f conftest.$ac_objext
10628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 10629 (eval $ac_compile) 2>conftest.er1
95732b49 10630 ac_status=$?
0628567a
JA
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
95732b49
JA
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
0628567a
JA
10636 { ac_try='test -z "$ac_c_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try='test -s conftest.$ac_objext'
95732b49
JA
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_header_sys_ptem_h=yes
10650else
10651 echo "$as_me: failed program was:" >&5
0628567a
JA
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
95732b49
JA
10654ac_cv_header_sys_ptem_h=no
10655fi
0628567a 10656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
95732b49
JA
10657fi
10658echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10659echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10660
10661
10662
b80f6443
JA
10663# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10664# for constant arguments. Useless!
10665echo "$as_me:$LINENO: checking for working alloca.h" >&5
10666echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10667if test "${ac_cv_working_alloca_h+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
b80f6443
JA
10676#include <alloca.h>
10677int
10678main ()
10679{
10680char *p = (char *) alloca (2 * sizeof (int));
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685rm -f conftest.$ac_objext conftest$ac_exeext
10686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 10687 (eval $ac_link) 2>conftest.er1
b80f6443 10688 ac_status=$?
0628567a
JA
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
b80f6443
JA
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
0628567a
JA
10694 { ac_try='test -z "$ac_c_werror_flag"
10695 || test ! -s conftest.err'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; } &&
10701 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_working_alloca_h=yes
10708else
10709 echo "$as_me: failed program was:" >&5
0628567a
JA
10710sed 's/^/| /' conftest.$ac_ext >&5
10711
b80f6443
JA
10712ac_cv_working_alloca_h=no
10713fi
0628567a
JA
10714rm -f conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10716fi
10717echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10718echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10719if test $ac_cv_working_alloca_h = yes; then
10720
10721cat >>confdefs.h <<\_ACEOF
10722#define HAVE_ALLOCA_H 1
10723_ACEOF
10724
10725fi
10726
10727echo "$as_me:$LINENO: checking for alloca" >&5
10728echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10729if test "${ac_cv_func_alloca_works+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10731else
10732 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
b80f6443
JA
10738#ifdef __GNUC__
10739# define alloca __builtin_alloca
10740#else
10741# ifdef _MSC_VER
10742# include <malloc.h>
10743# define alloca _alloca
10744# else
10745# if HAVE_ALLOCA_H
10746# include <alloca.h>
10747# else
10748# ifdef _AIX
10749 #pragma alloca
10750# else
10751# ifndef alloca /* predefined by HP cc +Olibcalls */
10752char *alloca ();
10753# endif
10754# endif
10755# endif
10756# endif
10757#endif
10758
10759int
10760main ()
10761{
10762char *p = (char *) alloca (1);
10763 ;
10764 return 0;
10765}
10766_ACEOF
10767rm -f conftest.$ac_objext conftest$ac_exeext
10768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 10769 (eval $ac_link) 2>conftest.er1
b80f6443 10770 ac_status=$?
0628567a
JA
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
b80f6443
JA
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
0628567a
JA
10776 { ac_try='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_func_alloca_works=yes
10790else
10791 echo "$as_me: failed program was:" >&5
0628567a
JA
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
b80f6443
JA
10794ac_cv_func_alloca_works=no
10795fi
0628567a
JA
10796rm -f conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10798fi
10799echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10800echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10801
10802if test $ac_cv_func_alloca_works = yes; then
10803
10804cat >>confdefs.h <<\_ACEOF
10805#define HAVE_ALLOCA 1
10806_ACEOF
10807
10808else
10809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10810# that cause trouble. Some versions do not even contain alloca or
10811# contain a buggy version. If you still want to use their alloca,
10812# use ar to extract alloca.o from them instead of compiling alloca.c.
10813
10814ALLOCA=alloca.$ac_objext
10815
10816cat >>confdefs.h <<\_ACEOF
10817#define C_ALLOCA 1
10818_ACEOF
10819
10820
10821echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10822echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10823if test "${ac_cv_os_cray+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10827/* confdefs.h. */
10828_ACEOF
10829cat confdefs.h >>conftest.$ac_ext
10830cat >>conftest.$ac_ext <<_ACEOF
10831/* end confdefs.h. */
b80f6443
JA
10832#if defined(CRAY) && ! defined(CRAY2)
10833webecray
10834#else
10835wenotbecray
10836#endif
10837
10838_ACEOF
10839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 10840 $EGREP "webecray" >/dev/null 2>&1; then
b80f6443
JA
10841 ac_cv_os_cray=yes
10842else
10843 ac_cv_os_cray=no
10844fi
10845rm -f conftest*
10846
10847fi
10848echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10849echo "${ECHO_T}$ac_cv_os_cray" >&6
10850if test $ac_cv_os_cray = yes; then
10851 for ac_func in _getb67 GETB67 getb67; do
10852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853echo "$as_me:$LINENO: checking for $ac_func" >&5
10854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10855if eval "test \"\${$as_ac_var+set}\" = set"; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866#define $ac_func innocuous_$ac_func
10867
b80f6443 10868/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
10869 which can conflict with char $ac_func (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10872
10873#ifdef __STDC__
10874# include <limits.h>
10875#else
10876# include <assert.h>
10877#endif
10878
10879#undef $ac_func
10880
b80f6443
JA
10881/* Override any gcc2 internal prototype to avoid an error. */
10882#ifdef __cplusplus
10883extern "C"
0628567a 10884{
b80f6443
JA
10885#endif
10886/* We use char because int might match the return type of a gcc2
10887 builtin and then its argument prototype would still apply. */
10888char $ac_func ();
10889/* The GNU C library defines this for functions which it implements
10890 to always fail with ENOSYS. Some functions are actually named
10891 something starting with __ and the normal name is an alias. */
10892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10893choke me
10894#else
0628567a
JA
10895char (*f) () = $ac_func;
10896#endif
10897#ifdef __cplusplus
10898}
b80f6443
JA
10899#endif
10900
0628567a
JA
10901int
10902main ()
10903{
10904return f != $ac_func;
b80f6443
JA
10905 ;
10906 return 0;
10907}
10908_ACEOF
10909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 10911 (eval $ac_link) 2>conftest.er1
b80f6443 10912 ac_status=$?
0628567a
JA
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
b80f6443
JA
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
0628567a
JA
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 eval "$as_ac_var=yes"
10932else
10933 echo "$as_me: failed program was:" >&5
0628567a
JA
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
b80f6443
JA
10936eval "$as_ac_var=no"
10937fi
0628567a
JA
10938rm -f conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10940fi
10941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10943if test `eval echo '${'$as_ac_var'}'` = yes; then
10944
10945cat >>confdefs.h <<_ACEOF
10946#define CRAY_STACKSEG_END $ac_func
10947_ACEOF
10948
10949 break
10950fi
10951
10952 done
10953fi
10954
10955echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10956echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10957if test "${ac_cv_c_stack_direction+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 if test "$cross_compiling" = yes; then
10961 ac_cv_c_stack_direction=0
10962else
10963 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
b80f6443
JA
10969int
10970find_stack_direction ()
10971{
10972 static char *addr = 0;
10973 auto char dummy;
10974 if (addr == 0)
10975 {
10976 addr = &dummy;
10977 return find_stack_direction ();
10978 }
10979 else
10980 return (&dummy > addr) ? 1 : -1;
10981}
10982
10983int
10984main ()
10985{
10986 exit (find_stack_direction () < 0);
10987}
10988_ACEOF
10989rm -f conftest$ac_exeext
10990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_c_stack_direction=1
11001else
11002 echo "$as_me: program exited with status $ac_status" >&5
11003echo "$as_me: failed program was:" >&5
0628567a
JA
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
b80f6443
JA
11006( exit $ac_status )
11007ac_cv_c_stack_direction=-1
11008fi
0628567a 11009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
11010fi
11011fi
11012echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11013echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11014
11015cat >>confdefs.h <<_ACEOF
11016#define STACK_DIRECTION $ac_cv_c_stack_direction
11017_ACEOF
11018
11019
11020fi
11021
11022echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11023echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11024if test "${ac_cv_func_getpgrp_void+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 # Use it with a single arg.
11028cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11029/* confdefs.h. */
11030_ACEOF
11031cat confdefs.h >>conftest.$ac_ext
11032cat >>conftest.$ac_ext <<_ACEOF
11033/* end confdefs.h. */
b80f6443
JA
11034$ac_includes_default
11035int
11036main ()
11037{
11038getpgrp (0);
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043rm -f conftest.$ac_objext
11044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 11045 (eval $ac_compile) 2>conftest.er1
b80f6443 11046 ac_status=$?
0628567a
JA
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
b80f6443
JA
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
0628567a
JA
11052 { ac_try='test -z "$ac_c_werror_flag"
11053 || test ! -s conftest.err'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_func_getpgrp_void=no
11066else
11067 echo "$as_me: failed program was:" >&5
0628567a
JA
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
b80f6443
JA
11070ac_cv_func_getpgrp_void=yes
11071fi
0628567a 11072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
11073
11074fi
11075echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11076echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11077if test $ac_cv_func_getpgrp_void = yes; then
11078
11079cat >>confdefs.h <<\_ACEOF
11080#define GETPGRP_VOID 1
11081_ACEOF
11082
11083fi
11084
11085echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11086echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11087if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089else
0628567a
JA
11090 ac_cv_func_setvbuf_reversed=no
11091 cat >conftest.$ac_ext <<_ACEOF
11092/* confdefs.h. */
11093_ACEOF
11094cat confdefs.h >>conftest.$ac_ext
11095cat >>conftest.$ac_ext <<_ACEOF
11096/* end confdefs.h. */
11097#include <stdio.h>
11098# if PROTOTYPES
11099 int (setvbuf) (FILE *, int, char *, size_t);
11100# endif
11101int
11102main ()
11103{
11104char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11105 ;
11106 return 0;
11107}
11108_ACEOF
11109rm -f conftest.$ac_objext conftest$ac_exeext
11110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag"
11119 || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h. */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h. */
11137#include <stdio.h>
11138# if PROTOTYPES
11139 int (setvbuf) (FILE *, int, char *, size_t);
11140# endif
11141int
11142main ()
11143{
11144char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext conftest$ac_exeext
11150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 # It compiles and links either way, so it must not be declared
11172 # with a prototype and most likely this is a K&R C compiler.
11173 # Try running it.
11174 if test "$cross_compiling" = yes; then
11175 : # Assume setvbuf is not reversed when cross-compiling.
95732b49
JA
11176else
11177 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
b80f6443 11183#include <stdio.h>
b80f6443
JA
11184int
11185main ()
11186{
0628567a
JA
11187/* This call has the arguments reversed.
11188 A reversed system may check and see that the address of buf
11189 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11190 char buf;
11191 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11192 exit (1);
11193 putchar ('\r');
11194 exit (0); /* Non-reversed systems SEGV here. */
11195 ;
11196 return 0;
b80f6443
JA
11197}
11198_ACEOF
95732b49 11199rm -f conftest$ac_exeext
b80f6443
JA
11200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
95732b49 11204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443
JA
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_func_setvbuf_reversed=yes
11211else
11212 echo "$as_me: program exited with status $ac_status" >&5
11213echo "$as_me: failed program was:" >&5
0628567a
JA
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
b80f6443 11216( exit $ac_status )
0628567a
JA
11217rm -f core *.core
11218fi
11219rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 11220fi
0628567a
JA
11221 ac_cv_func_setvbuf_reversed=yes
11222else
11223 echo "$as_me: failed program was:" >&5
11224sed 's/^/| /' conftest.$ac_ext >&5
11225
11226fi
11227rm -f conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
11229else
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
b80f6443 11233fi
0628567a
JA
11234rm -f conftest.err conftest.$ac_objext \
11235 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
11236fi
11237echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11238echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11239if test $ac_cv_func_setvbuf_reversed = yes; then
11240
11241cat >>confdefs.h <<\_ACEOF
11242#define SETVBUF_REVERSED 1
11243_ACEOF
11244
11245fi
11246
11247
11248for ac_func in vprintf
11249do
11250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251echo "$as_me:$LINENO: checking for $ac_func" >&5
11252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11253if eval "test \"\${$as_ac_var+set}\" = set"; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
11262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264#define $ac_func innocuous_$ac_func
11265
b80f6443 11266/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11270
11271#ifdef __STDC__
11272# include <limits.h>
11273#else
11274# include <assert.h>
11275#endif
11276
11277#undef $ac_func
11278
b80f6443
JA
11279/* Override any gcc2 internal prototype to avoid an error. */
11280#ifdef __cplusplus
11281extern "C"
0628567a 11282{
b80f6443
JA
11283#endif
11284/* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286char $ac_func ();
11287/* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11291choke me
11292#else
0628567a
JA
11293char (*f) () = $ac_func;
11294#endif
11295#ifdef __cplusplus
11296}
b80f6443
JA
11297#endif
11298
0628567a
JA
11299int
11300main ()
11301{
11302return f != $ac_func;
b80f6443
JA
11303 ;
11304 return 0;
11305}
11306_ACEOF
11307rm -f conftest.$ac_objext conftest$ac_exeext
11308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 11309 (eval $ac_link) 2>conftest.er1
b80f6443 11310 ac_status=$?
0628567a
JA
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
b80f6443
JA
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
0628567a
JA
11316 { ac_try='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 eval "$as_ac_var=yes"
11330else
11331 echo "$as_me: failed program was:" >&5
0628567a
JA
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
b80f6443
JA
11334eval "$as_ac_var=no"
11335fi
0628567a
JA
11336rm -f conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
11338fi
11339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344_ACEOF
11345
11346echo "$as_me:$LINENO: checking for _doprnt" >&5
11347echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11348if test "${ac_cv_func__doprnt+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11352/* confdefs.h. */
11353_ACEOF
11354cat confdefs.h >>conftest.$ac_ext
11355cat >>conftest.$ac_ext <<_ACEOF
11356/* end confdefs.h. */
11357/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359#define _doprnt innocuous__doprnt
11360
b80f6443 11361/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
11362 which can conflict with char _doprnt (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11365
11366#ifdef __STDC__
11367# include <limits.h>
11368#else
11369# include <assert.h>
11370#endif
11371
11372#undef _doprnt
11373
11374/* Override any gcc2 internal prototype to avoid an error. */
11375#ifdef __cplusplus
11376extern "C"
11377{
b80f6443
JA
11378#endif
11379/* We use char because int might match the return type of a gcc2
11380 builtin and then its argument prototype would still apply. */
11381char _doprnt ();
11382/* The GNU C library defines this for functions which it implements
11383 to always fail with ENOSYS. Some functions are actually named
11384 something starting with __ and the normal name is an alias. */
11385#if defined (__stub__doprnt) || defined (__stub____doprnt)
11386choke me
11387#else
0628567a
JA
11388char (*f) () = _doprnt;
11389#endif
11390#ifdef __cplusplus
11391}
b80f6443
JA
11392#endif
11393
0628567a
JA
11394int
11395main ()
11396{
11397return f != _doprnt;
b80f6443
JA
11398 ;
11399 return 0;
11400}
11401_ACEOF
11402rm -f conftest.$ac_objext conftest$ac_exeext
11403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 11404 (eval $ac_link) 2>conftest.er1
b80f6443 11405 ac_status=$?
0628567a
JA
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
b80f6443
JA
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
0628567a
JA
11411 { ac_try='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_func__doprnt=yes
11425else
11426 echo "$as_me: failed program was:" >&5
0628567a
JA
11427sed 's/^/| /' conftest.$ac_ext >&5
11428
b80f6443
JA
11429ac_cv_func__doprnt=no
11430fi
0628567a
JA
11431rm -f conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
11433fi
11434echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11435echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11436if test $ac_cv_func__doprnt = yes; then
11437
11438cat >>confdefs.h <<\_ACEOF
11439#define HAVE_DOPRNT 1
11440_ACEOF
11441
11442fi
11443
11444fi
11445done
11446
11447
11448echo "$as_me:$LINENO: checking for working strcoll" >&5
11449echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11450if test "${ac_cv_func_strcoll_works+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453 if test "$cross_compiling" = yes; then
11454 ac_cv_func_strcoll_works=no
11455else
11456 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
b80f6443
JA
11462$ac_includes_default
11463int
11464main ()
11465{
11466exit (strcoll ("abc", "def") >= 0 ||
11467 strcoll ("ABC", "DEF") >= 0 ||
11468 strcoll ("123", "456") >= 0)
11469 ;
11470 return 0;
11471}
11472_ACEOF
11473rm -f conftest$ac_exeext
11474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11475 (eval $ac_link) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_cv_func_strcoll_works=yes
11485else
11486 echo "$as_me: program exited with status $ac_status" >&5
11487echo "$as_me: failed program was:" >&5
0628567a
JA
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
b80f6443
JA
11490( exit $ac_status )
11491ac_cv_func_strcoll_works=no
11492fi
0628567a 11493rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
11494fi
11495fi
11496echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11497echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11498if test $ac_cv_func_strcoll_works = yes; then
11499
11500cat >>confdefs.h <<\_ACEOF
11501#define HAVE_STRCOLL 1
11502_ACEOF
11503
11504fi
11505
11506
11507
11508if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11509 MALLOC_TARGET=alloca
11510 MALLOC_SRC=alloca.c
11511
11512 MALLOC_LIB='-lmalloc'
11513 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11514 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11515 MALLOC_DEP='$(MALLOC_LIBRARY)'
11516fi
11517
11518if test "$ac_cv_func_vprintf" = no; then
11519 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11520echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11521 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
b80f6443
JA
11527#include <stdio.h>
11528
11529_ACEOF
11530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 11531 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
b80f6443
JA
11532 ac_cv_func_vprintf=yes
11533fi
11534rm -f conftest*
11535
11536 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11537echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11538 if test $ac_cv_func_vprintf = yes; then
11539 cat >>confdefs.h <<\_ACEOF
11540#define HAVE_VPRINTF 1
11541_ACEOF
11542
11543 fi
11544fi
11545
11546if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
0628567a
JA
11547 case $LIBOBJS in
11548 "vprint.$ac_objext" | \
11549 *" vprint.$ac_objext" | \
11550 "vprint.$ac_objext "* | \
11551 *" vprint.$ac_objext "* ) ;;
11552 *) LIBOBJS="$LIBOBJS vprint.$ac_objext" ;;
11553esac
11554
b80f6443
JA
11555fi
11556
11557echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11558echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11559if test "${ac_cv_type_signal+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
b80f6443
JA
11568#include <sys/types.h>
11569#include <signal.h>
11570#ifdef signal
11571# undef signal
11572#endif
11573#ifdef __cplusplus
11574extern "C" void (*signal (int, void (*)(int)))(int);
11575#else
11576void (*signal ()) ();
11577#endif
11578
11579int
11580main ()
11581{
11582int i;
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 11589 (eval $ac_compile) 2>conftest.er1
b80f6443 11590 ac_status=$?
0628567a
JA
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
b80f6443
JA
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
0628567a
JA
11596 { ac_try='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_type_signal=void
11610else
11611 echo "$as_me: failed program was:" >&5
0628567a
JA
11612sed 's/^/| /' conftest.$ac_ext >&5
11613
b80f6443
JA
11614ac_cv_type_signal=int
11615fi
0628567a 11616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
11617fi
11618echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11619echo "${ECHO_T}$ac_cv_type_signal" >&6
11620
11621cat >>confdefs.h <<_ACEOF
11622#define RETSIGTYPE $ac_cv_type_signal
11623_ACEOF
11624
11625
11626
11627echo "$as_me:$LINENO: checking for __setostype" >&5
11628echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11629if test "${ac_cv_func___setostype+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640#define __setostype innocuous___setostype
11641
b80f6443 11642/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
11643 which can conflict with char __setostype (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11646
11647#ifdef __STDC__
11648# include <limits.h>
11649#else
11650# include <assert.h>
11651#endif
11652
11653#undef __setostype
11654
b80f6443
JA
11655/* Override any gcc2 internal prototype to avoid an error. */
11656#ifdef __cplusplus
11657extern "C"
0628567a 11658{
b80f6443
JA
11659#endif
11660/* We use char because int might match the return type of a gcc2
11661 builtin and then its argument prototype would still apply. */
11662char __setostype ();
11663/* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666#if defined (__stub___setostype) || defined (__stub_____setostype)
11667choke me
11668#else
0628567a
JA
11669char (*f) () = __setostype;
11670#endif
11671#ifdef __cplusplus
11672}
b80f6443
JA
11673#endif
11674
0628567a
JA
11675int
11676main ()
11677{
11678return f != __setostype;
b80f6443
JA
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext conftest$ac_exeext
11684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 11685 (eval $ac_link) 2>conftest.er1
b80f6443 11686 ac_status=$?
0628567a
JA
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
b80f6443
JA
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
0628567a
JA
11692 { ac_try='test -z "$ac_c_werror_flag"
11693 || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_cv_func___setostype=yes
11706else
11707 echo "$as_me: failed program was:" >&5
0628567a
JA
11708sed 's/^/| /' conftest.$ac_ext >&5
11709
b80f6443
JA
11710ac_cv_func___setostype=no
11711fi
0628567a
JA
11712rm -f conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
11714fi
11715echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11716echo "${ECHO_T}$ac_cv_func___setostype" >&6
11717if test $ac_cv_func___setostype = yes; then
11718 cat >>confdefs.h <<\_ACEOF
11719#define HAVE_SETOSTYPE 1
11720_ACEOF
11721
11722fi
11723
11724echo "$as_me:$LINENO: checking for wait3" >&5
11725echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11726if test "${ac_cv_func_wait3+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
11735/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11737#define wait3 innocuous_wait3
11738
b80f6443 11739/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
11740 which can conflict with char wait3 (); below.
11741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742 <limits.h> exists even on freestanding compilers. */
11743
11744#ifdef __STDC__
11745# include <limits.h>
11746#else
11747# include <assert.h>
11748#endif
11749
11750#undef wait3
11751
b80f6443
JA
11752/* Override any gcc2 internal prototype to avoid an error. */
11753#ifdef __cplusplus
11754extern "C"
0628567a 11755{
b80f6443
JA
11756#endif
11757/* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11759char wait3 ();
11760/* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763#if defined (__stub_wait3) || defined (__stub___wait3)
11764choke me
11765#else
0628567a
JA
11766char (*f) () = wait3;
11767#endif
11768#ifdef __cplusplus
11769}
b80f6443
JA
11770#endif
11771
0628567a
JA
11772int
11773main ()
11774{
11775return f != wait3;
b80f6443
JA
11776 ;
11777 return 0;
11778}
11779_ACEOF
11780rm -f conftest.$ac_objext conftest$ac_exeext
11781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 11782 (eval $ac_link) 2>conftest.er1
b80f6443 11783 ac_status=$?
0628567a
JA
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
b80f6443
JA
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
0628567a
JA
11789 { ac_try='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_func_wait3=yes
11803else
11804 echo "$as_me: failed program was:" >&5
0628567a
JA
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
b80f6443
JA
11807ac_cv_func_wait3=no
11808fi
0628567a
JA
11809rm -f conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
11811fi
11812echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11813echo "${ECHO_T}$ac_cv_func_wait3" >&6
11814if test $ac_cv_func_wait3 = yes; then
11815 cat >>confdefs.h <<\_ACEOF
11816#define HAVE_WAIT3 1
11817_ACEOF
11818
11819fi
11820
11821echo "$as_me:$LINENO: checking for isinf" >&5
11822echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11823if test "${ac_cv_func_isinf+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
11832/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834#define isinf innocuous_isinf
11835
b80f6443 11836/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
11837 which can conflict with char isinf (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11840
11841#ifdef __STDC__
11842# include <limits.h>
11843#else
11844# include <assert.h>
11845#endif
11846
11847#undef isinf
11848
b80f6443
JA
11849/* Override any gcc2 internal prototype to avoid an error. */
11850#ifdef __cplusplus
11851extern "C"
0628567a 11852{
b80f6443
JA
11853#endif
11854/* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856char isinf ();
11857/* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860#if defined (__stub_isinf) || defined (__stub___isinf)
11861choke me
11862#else
0628567a
JA
11863char (*f) () = isinf;
11864#endif
11865#ifdef __cplusplus
11866}
b80f6443
JA
11867#endif
11868
0628567a
JA
11869int
11870main ()
11871{
11872return f != isinf;
b80f6443
JA
11873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 11879 (eval $ac_link) 2>conftest.er1
b80f6443 11880 ac_status=$?
0628567a
JA
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
b80f6443
JA
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
0628567a
JA
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_isinf=yes
11900else
11901 echo "$as_me: failed program was:" >&5
0628567a
JA
11902sed 's/^/| /' conftest.$ac_ext >&5
11903
b80f6443
JA
11904ac_cv_func_isinf=no
11905fi
0628567a
JA
11906rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
11908fi
11909echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11910echo "${ECHO_T}$ac_cv_func_isinf" >&6
11911if test $ac_cv_func_isinf = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913#define HAVE_ISINF_IN_LIBC 1
11914_ACEOF
11915
11916fi
11917
0628567a
JA
11918echo "$as_me:$LINENO: checking for isnan" >&5
11919echo $ECHO_N "checking for isnan... $ECHO_C" >&6
11920if test "${ac_cv_func_isnan+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922else
11923 cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929/* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
11930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11931#define isnan innocuous_isnan
11932
11933/* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char isnan (); below.
11935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 <limits.h> exists even on freestanding compilers. */
11937
11938#ifdef __STDC__
11939# include <limits.h>
11940#else
11941# include <assert.h>
11942#endif
11943
11944#undef isnan
11945
11946/* Override any gcc2 internal prototype to avoid an error. */
11947#ifdef __cplusplus
11948extern "C"
11949{
11950#endif
11951/* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11953char isnan ();
11954/* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957#if defined (__stub_isnan) || defined (__stub___isnan)
11958choke me
11959#else
11960char (*f) () = isnan;
11961#endif
11962#ifdef __cplusplus
11963}
11964#endif
11965
11966int
11967main ()
11968{
11969return f != isnan;
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext conftest$ac_exeext
11975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_func_isnan=yes
11997else
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
12001ac_cv_func_isnan=no
12002fi
12003rm -f conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005fi
12006echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
12007echo "${ECHO_T}$ac_cv_func_isnan" >&6
12008if test $ac_cv_func_isnan = yes; then
12009 cat >>confdefs.h <<\_ACEOF
12010#define HAVE_ISNAN_IN_LIBC 1
12011_ACEOF
12012
12013fi
12014
b80f6443
JA
12015
12016echo "$as_me:$LINENO: checking for mkfifo" >&5
12017echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
12018if test "${ac_cv_func_mkfifo+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
12028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12029#define mkfifo innocuous_mkfifo
12030
b80f6443 12031/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12032 which can conflict with char mkfifo (); below.
12033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 <limits.h> exists even on freestanding compilers. */
12035
12036#ifdef __STDC__
12037# include <limits.h>
12038#else
12039# include <assert.h>
12040#endif
12041
12042#undef mkfifo
12043
b80f6443
JA
12044/* Override any gcc2 internal prototype to avoid an error. */
12045#ifdef __cplusplus
12046extern "C"
0628567a 12047{
b80f6443
JA
12048#endif
12049/* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051char mkfifo ();
12052/* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
12055#if defined (__stub_mkfifo) || defined (__stub___mkfifo)
12056choke me
12057#else
0628567a
JA
12058char (*f) () = mkfifo;
12059#endif
12060#ifdef __cplusplus
12061}
b80f6443
JA
12062#endif
12063
0628567a
JA
12064int
12065main ()
12066{
12067return f != mkfifo;
b80f6443
JA
12068 ;
12069 return 0;
12070}
12071_ACEOF
12072rm -f conftest.$ac_objext conftest$ac_exeext
12073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12074 (eval $ac_link) 2>conftest.er1
b80f6443 12075 ac_status=$?
0628567a
JA
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
b80f6443
JA
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
0628567a
JA
12081 { ac_try='test -z "$ac_c_werror_flag"
12082 || test ! -s conftest.err'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 ac_cv_func_mkfifo=yes
12095else
12096 echo "$as_me: failed program was:" >&5
0628567a
JA
12097sed 's/^/| /' conftest.$ac_ext >&5
12098
b80f6443
JA
12099ac_cv_func_mkfifo=no
12100fi
0628567a
JA
12101rm -f conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
12103fi
12104echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
12105echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
12106if test $ac_cv_func_mkfifo = yes; then
12107 cat >>confdefs.h <<\_ACEOF
12108#define HAVE_MKFIFO 1
12109_ACEOF
12110
12111else
12112 cat >>confdefs.h <<\_ACEOF
12113#define MKFIFO_MISSING 1
12114_ACEOF
12115
12116fi
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
95732b49
JA
12136
12137
12138
12139
0628567a
JA
12140
12141for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
12142 getpagesize getpeername getrlimit getrusage gettimeofday \
12143 kill killpg lstat readlink sbrk select setdtablesize \
12144 tcgetpgrp uname ulimit waitpid
b80f6443
JA
12145do
12146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12147echo "$as_me:$LINENO: checking for $ac_func" >&5
12148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12149if eval "test \"\${$as_ac_var+set}\" = set"; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12153/* confdefs.h. */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h. */
12158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12160#define $ac_func innocuous_$ac_func
12161
b80f6443 12162/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12163 which can conflict with char $ac_func (); below.
12164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12165 <limits.h> exists even on freestanding compilers. */
12166
12167#ifdef __STDC__
12168# include <limits.h>
12169#else
12170# include <assert.h>
12171#endif
12172
12173#undef $ac_func
12174
95732b49
JA
12175/* Override any gcc2 internal prototype to avoid an error. */
12176#ifdef __cplusplus
12177extern "C"
0628567a 12178{
95732b49
JA
12179#endif
12180/* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12182char $ac_func ();
95732b49
JA
12183/* The GNU C library defines this for functions which it implements
12184 to always fail with ENOSYS. Some functions are actually named
12185 something starting with __ and the normal name is an alias. */
12186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12187choke me
b80f6443 12188#else
0628567a
JA
12189char (*f) () = $ac_func;
12190#endif
12191#ifdef __cplusplus
12192}
b80f6443 12193#endif
95732b49 12194
0628567a
JA
12195int
12196main ()
12197{
12198return f != $ac_func;
95732b49
JA
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203rm -f conftest.$ac_objext conftest$ac_exeext
12204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12205 (eval $ac_link) 2>conftest.er1
95732b49 12206 ac_status=$?
0628567a
JA
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
95732b49
JA
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
0628567a
JA
12212 { ac_try='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
95732b49
JA
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 eval "$as_ac_var=yes"
12226else
12227 echo "$as_me: failed program was:" >&5
0628567a
JA
12228sed 's/^/| /' conftest.$ac_ext >&5
12229
95732b49
JA
12230eval "$as_ac_var=no"
12231fi
0628567a
JA
12232rm -f conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
95732b49
JA
12234fi
12235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12237if test `eval echo '${'$as_ac_var'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12240_ACEOF
12241
12242fi
12243done
12244
12245
12246for ac_func in rename
12247do
12248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12249echo "$as_me:$LINENO: checking for $ac_func" >&5
12250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12251if eval "test \"\${$as_ac_var+set}\" = set"; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
12260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12262#define $ac_func innocuous_$ac_func
12263
95732b49 12264/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12265 which can conflict with char $ac_func (); below.
12266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12267 <limits.h> exists even on freestanding compilers. */
12268
12269#ifdef __STDC__
12270# include <limits.h>
12271#else
12272# include <assert.h>
12273#endif
12274
12275#undef $ac_func
12276
b80f6443
JA
12277/* Override any gcc2 internal prototype to avoid an error. */
12278#ifdef __cplusplus
12279extern "C"
0628567a 12280{
b80f6443
JA
12281#endif
12282/* We use char because int might match the return type of a gcc2
12283 builtin and then its argument prototype would still apply. */
12284char $ac_func ();
12285/* The GNU C library defines this for functions which it implements
12286 to always fail with ENOSYS. Some functions are actually named
12287 something starting with __ and the normal name is an alias. */
12288#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12289choke me
12290#else
0628567a
JA
12291char (*f) () = $ac_func;
12292#endif
12293#ifdef __cplusplus
12294}
b80f6443 12295#endif
95732b49 12296
0628567a
JA
12297int
12298main ()
12299{
12300return f != $ac_func;
95732b49
JA
12301 ;
12302 return 0;
b80f6443 12303}
95732b49
JA
12304_ACEOF
12305rm -f conftest.$ac_objext conftest$ac_exeext
12306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12307 (eval $ac_link) 2>conftest.er1
95732b49 12308 ac_status=$?
0628567a
JA
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
95732b49
JA
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
0628567a
JA
12314 { ac_try='test -z "$ac_c_werror_flag"
12315 || test ! -s conftest.err'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try='test -s conftest$ac_exeext'
95732b49
JA
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 eval "$as_ac_var=yes"
12328else
12329 echo "$as_me: failed program was:" >&5
0628567a
JA
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
95732b49
JA
12332eval "$as_ac_var=no"
12333fi
0628567a
JA
12334rm -f conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
95732b49
JA
12336fi
12337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12339if test `eval echo '${'$as_ac_var'}'` = yes; then
12340 cat >>confdefs.h <<_ACEOF
12341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12342_ACEOF
12343
12344else
0628567a
JA
12345 case $LIBOBJS in
12346 "$ac_func.$ac_objext" | \
12347 *" $ac_func.$ac_objext" | \
12348 "$ac_func.$ac_objext "* | \
12349 *" $ac_func.$ac_objext "* ) ;;
12350 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12351esac
12352
95732b49
JA
12353fi
12354done
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385for ac_func in bcopy bzero confstr fnmatch \
12386 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12387 memmove pathconf putenv raise regcomp regexec \
12388 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12389 sysconf tcgetattr times ttyname tzset unsetenv
12390do
12391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12392echo "$as_me:$LINENO: checking for $ac_func" >&5
12393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12394if eval "test \"\${$as_ac_var+set}\" = set"; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12396else
12397 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12405#define $ac_func innocuous_$ac_func
12406
95732b49 12407/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12408 which can conflict with char $ac_func (); below.
12409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12410 <limits.h> exists even on freestanding compilers. */
12411
12412#ifdef __STDC__
12413# include <limits.h>
12414#else
12415# include <assert.h>
12416#endif
12417
12418#undef $ac_func
12419
95732b49
JA
12420/* Override any gcc2 internal prototype to avoid an error. */
12421#ifdef __cplusplus
12422extern "C"
0628567a 12423{
b80f6443 12424#endif
95732b49
JA
12425/* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427char $ac_func ();
95732b49
JA
12428/* The GNU C library defines this for functions which it implements
12429 to always fail with ENOSYS. Some functions are actually named
12430 something starting with __ and the normal name is an alias. */
12431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12432choke me
12433#else
0628567a
JA
12434char (*f) () = $ac_func;
12435#endif
12436#ifdef __cplusplus
12437}
95732b49
JA
12438#endif
12439
0628567a
JA
12440int
12441main ()
12442{
12443return f != $ac_func;
b80f6443
JA
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448rm -f conftest.$ac_objext conftest$ac_exeext
12449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12450 (eval $ac_link) 2>conftest.er1
b80f6443 12451 ac_status=$?
0628567a
JA
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
b80f6443
JA
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
0628567a
JA
12457 { ac_try='test -z "$ac_c_werror_flag"
12458 || test ! -s conftest.err'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 eval "$as_ac_var=yes"
12471else
12472 echo "$as_me: failed program was:" >&5
0628567a
JA
12473sed 's/^/| /' conftest.$ac_ext >&5
12474
b80f6443
JA
12475eval "$as_ac_var=no"
12476fi
0628567a
JA
12477rm -f conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
12479fi
12480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12482if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485_ACEOF
12486
12487fi
12488done
12489
12490
95732b49
JA
12491
12492
12493
12494
12495for ac_func in vsnprintf snprintf vasprintf asprintf
b80f6443
JA
12496do
12497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12498echo "$as_me:$LINENO: checking for $ac_func" >&5
12499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12500if eval "test \"\${$as_ac_var+set}\" = set"; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502else
12503 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511#define $ac_func innocuous_$ac_func
12512
b80f6443 12513/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12517
12518#ifdef __STDC__
12519# include <limits.h>
12520#else
12521# include <assert.h>
12522#endif
12523
12524#undef $ac_func
12525
b80f6443
JA
12526/* Override any gcc2 internal prototype to avoid an error. */
12527#ifdef __cplusplus
12528extern "C"
0628567a 12529{
b80f6443
JA
12530#endif
12531/* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12533char $ac_func ();
12534/* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12538choke me
12539#else
0628567a
JA
12540char (*f) () = $ac_func;
12541#endif
12542#ifdef __cplusplus
12543}
b80f6443
JA
12544#endif
12545
0628567a
JA
12546int
12547main ()
12548{
12549return f != $ac_func;
b80f6443
JA
12550 ;
12551 return 0;
12552}
12553_ACEOF
12554rm -f conftest.$ac_objext conftest$ac_exeext
12555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12556 (eval $ac_link) 2>conftest.er1
b80f6443 12557 ac_status=$?
0628567a
JA
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
b80f6443
JA
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
0628567a
JA
12563 { ac_try='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 eval "$as_ac_var=yes"
12577else
12578 echo "$as_me: failed program was:" >&5
0628567a
JA
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
b80f6443
JA
12581eval "$as_ac_var=no"
12582fi
0628567a
JA
12583rm -f conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
12585fi
12586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12588if test `eval echo '${'$as_ac_var'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12591_ACEOF
12592
b80f6443
JA
12593fi
12594done
12595
12596
12597
12598
12599
12600
12601
95732b49 12602for ac_func in isascii isblank isgraph isprint isspace isxdigit
b80f6443
JA
12603do
12604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12605echo "$as_me:$LINENO: checking for $ac_func" >&5
12606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12607if eval "test \"\${$as_ac_var+set}\" = set"; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609else
12610 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
12616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12618#define $ac_func innocuous_$ac_func
12619
b80f6443 12620/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12621 which can conflict with char $ac_func (); below.
12622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12623 <limits.h> exists even on freestanding compilers. */
12624
12625#ifdef __STDC__
12626# include <limits.h>
12627#else
12628# include <assert.h>
12629#endif
12630
12631#undef $ac_func
12632
b80f6443
JA
12633/* Override any gcc2 internal prototype to avoid an error. */
12634#ifdef __cplusplus
12635extern "C"
0628567a 12636{
b80f6443
JA
12637#endif
12638/* We use char because int might match the return type of a gcc2
12639 builtin and then its argument prototype would still apply. */
12640char $ac_func ();
12641/* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12645choke me
12646#else
0628567a
JA
12647char (*f) () = $ac_func;
12648#endif
12649#ifdef __cplusplus
12650}
b80f6443
JA
12651#endif
12652
0628567a
JA
12653int
12654main ()
12655{
12656return f != $ac_func;
b80f6443
JA
12657 ;
12658 return 0;
12659}
12660_ACEOF
12661rm -f conftest.$ac_objext conftest$ac_exeext
12662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12663 (eval $ac_link) 2>conftest.er1
b80f6443 12664 ac_status=$?
0628567a
JA
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
b80f6443
JA
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
0628567a
JA
12670 { ac_try='test -z "$ac_c_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12684else
12685 echo "$as_me: failed program was:" >&5
0628567a
JA
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
b80f6443
JA
12688eval "$as_ac_var=no"
12689fi
0628567a
JA
12690rm -f conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
12692fi
12693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12694echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12695if test `eval echo '${'$as_ac_var'}'` = yes; then
12696 cat >>confdefs.h <<_ACEOF
12697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12698_ACEOF
12699
12700fi
12701done
12702
12703
12704
12705
95732b49 12706for ac_func in getpwent getpwnam getpwuid
b80f6443
JA
12707do
12708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12709echo "$as_me:$LINENO: checking for $ac_func" >&5
12710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12711if eval "test \"\${$as_ac_var+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
12714 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12722#define $ac_func innocuous_$ac_func
12723
b80f6443 12724/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12725 which can conflict with char $ac_func (); below.
12726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12727 <limits.h> exists even on freestanding compilers. */
12728
12729#ifdef __STDC__
12730# include <limits.h>
12731#else
12732# include <assert.h>
12733#endif
12734
12735#undef $ac_func
12736
b80f6443
JA
12737/* Override any gcc2 internal prototype to avoid an error. */
12738#ifdef __cplusplus
12739extern "C"
0628567a 12740{
b80f6443
JA
12741#endif
12742/* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12744char $ac_func ();
12745/* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749choke me
12750#else
0628567a
JA
12751char (*f) () = $ac_func;
12752#endif
12753#ifdef __cplusplus
12754}
b80f6443
JA
12755#endif
12756
0628567a
JA
12757int
12758main ()
12759{
12760return f != $ac_func;
b80f6443
JA
12761 ;
12762 return 0;
12763}
12764_ACEOF
12765rm -f conftest.$ac_objext conftest$ac_exeext
12766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12767 (eval $ac_link) 2>conftest.er1
b80f6443 12768 ac_status=$?
0628567a
JA
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
b80f6443
JA
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
0628567a
JA
12774 { ac_try='test -z "$ac_c_werror_flag"
12775 || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 eval "$as_ac_var=yes"
12788else
12789 echo "$as_me: failed program was:" >&5
0628567a
JA
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
b80f6443
JA
12792eval "$as_ac_var=no"
12793fi
0628567a
JA
12794rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
12796fi
12797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12799if test `eval echo '${'$as_ac_var'}'` = yes; then
12800 cat >>confdefs.h <<_ACEOF
12801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12802_ACEOF
12803
12804fi
12805done
12806
12807
12808
12809
12810
12811
12812
12813
95732b49
JA
12814
12815for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
b80f6443
JA
12816do
12817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12818echo "$as_me:$LINENO: checking for $ac_func" >&5
12819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12820if eval "test \"\${$as_ac_var+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822else
12823 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831#define $ac_func innocuous_$ac_func
12832
b80f6443 12833/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12837
12838#ifdef __STDC__
12839# include <limits.h>
12840#else
12841# include <assert.h>
12842#endif
12843
12844#undef $ac_func
12845
b80f6443
JA
12846/* Override any gcc2 internal prototype to avoid an error. */
12847#ifdef __cplusplus
12848extern "C"
0628567a 12849{
b80f6443
JA
12850#endif
12851/* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853char $ac_func ();
12854/* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12858choke me
12859#else
0628567a
JA
12860char (*f) () = $ac_func;
12861#endif
12862#ifdef __cplusplus
12863}
b80f6443
JA
12864#endif
12865
0628567a
JA
12866int
12867main ()
12868{
12869return f != $ac_func;
b80f6443
JA
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext conftest$ac_exeext
12875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12876 (eval $ac_link) 2>conftest.er1
b80f6443 12877 ac_status=$?
0628567a
JA
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
b80f6443
JA
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
0628567a
JA
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 eval "$as_ac_var=yes"
12897else
12898 echo "$as_me: failed program was:" >&5
0628567a
JA
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
b80f6443
JA
12901eval "$as_ac_var=no"
12902fi
0628567a
JA
12903rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
12905fi
12906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908if test `eval echo '${'$as_ac_var'}'` = yes; then
12909 cat >>confdefs.h <<_ACEOF
12910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12911_ACEOF
12912
12913else
0628567a
JA
12914 case $LIBOBJS in
12915 "$ac_func.$ac_objext" | \
12916 *" $ac_func.$ac_objext" | \
12917 "$ac_func.$ac_objext "* | \
12918 *" $ac_func.$ac_objext "* ) ;;
12919 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12920esac
12921
b80f6443
JA
12922fi
12923done
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12934do
12935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12936echo "$as_me:$LINENO: checking for $ac_func" >&5
12937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12938if eval "test \"\${$as_ac_var+set}\" = set"; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940else
12941 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12949#define $ac_func innocuous_$ac_func
12950
b80f6443 12951/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12952 which can conflict with char $ac_func (); below.
12953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12954 <limits.h> exists even on freestanding compilers. */
12955
12956#ifdef __STDC__
12957# include <limits.h>
12958#else
12959# include <assert.h>
12960#endif
12961
12962#undef $ac_func
12963
b80f6443
JA
12964/* Override any gcc2 internal prototype to avoid an error. */
12965#ifdef __cplusplus
12966extern "C"
0628567a 12967{
b80f6443
JA
12968#endif
12969/* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12971char $ac_func ();
12972/* The GNU C library defines this for functions which it implements
12973 to always fail with ENOSYS. Some functions are actually named
12974 something starting with __ and the normal name is an alias. */
12975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976choke me
12977#else
0628567a
JA
12978char (*f) () = $ac_func;
12979#endif
12980#ifdef __cplusplus
12981}
b80f6443
JA
12982#endif
12983
0628567a
JA
12984int
12985main ()
12986{
12987return f != $ac_func;
b80f6443
JA
12988 ;
12989 return 0;
12990}
12991_ACEOF
12992rm -f conftest.$ac_objext conftest$ac_exeext
12993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 12994 (eval $ac_link) 2>conftest.er1
b80f6443 12995 ac_status=$?
0628567a
JA
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
b80f6443
JA
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
0628567a
JA
13001 { ac_try='test -z "$ac_c_werror_flag"
13002 || test ! -s conftest.err'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 eval "$as_ac_var=yes"
13015else
13016 echo "$as_me: failed program was:" >&5
0628567a
JA
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
b80f6443
JA
13019eval "$as_ac_var=no"
13020fi
0628567a
JA
13021rm -f conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
13023fi
13024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13026if test `eval echo '${'$as_ac_var'}'` = yes; then
13027 cat >>confdefs.h <<_ACEOF
13028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13029_ACEOF
13030
13031else
0628567a
JA
13032 case $LIBOBJS in
13033 "$ac_func.$ac_objext" | \
13034 *" $ac_func.$ac_objext" | \
13035 "$ac_func.$ac_objext "* | \
13036 *" $ac_func.$ac_objext "* ) ;;
13037 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
13038esac
13039
b80f6443
JA
13040fi
13041done
13042
13043
13044
13045echo "$as_me:$LINENO: checking whether confstr is declared" >&5
13046echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
13047if test "${ac_cv_have_decl_confstr+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049else
13050 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
b80f6443
JA
13056$ac_includes_default
13057int
13058main ()
13059{
13060#ifndef confstr
13061 char *p = (char *) confstr;
13062#endif
13063
13064 ;
13065 return 0;
13066}
13067_ACEOF
13068rm -f conftest.$ac_objext
13069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13070 (eval $ac_compile) 2>conftest.er1
b80f6443 13071 ac_status=$?
0628567a
JA
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
b80f6443
JA
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
0628567a
JA
13077 { ac_try='test -z "$ac_c_werror_flag"
13078 || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_have_decl_confstr=yes
13091else
13092 echo "$as_me: failed program was:" >&5
0628567a
JA
13093sed 's/^/| /' conftest.$ac_ext >&5
13094
b80f6443
JA
13095ac_cv_have_decl_confstr=no
13096fi
0628567a 13097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
13098fi
13099echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
13100echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
13101if test $ac_cv_have_decl_confstr = yes; then
13102
13103cat >>confdefs.h <<_ACEOF
13104#define HAVE_DECL_CONFSTR 1
13105_ACEOF
13106
13107
13108else
13109 cat >>confdefs.h <<_ACEOF
13110#define HAVE_DECL_CONFSTR 0
13111_ACEOF
13112
13113
13114fi
13115
13116
13117echo "$as_me:$LINENO: checking whether printf is declared" >&5
13118echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13119if test "${ac_cv_have_decl_printf+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13123/* confdefs.h. */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h. */
b80f6443
JA
13128$ac_includes_default
13129int
13130main ()
13131{
13132#ifndef printf
13133 char *p = (char *) printf;
13134#endif
13135
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13142 (eval $ac_compile) 2>conftest.er1
b80f6443 13143 ac_status=$?
0628567a
JA
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
b80f6443
JA
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
0628567a
JA
13149 { ac_try='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_have_decl_printf=yes
13163else
13164 echo "$as_me: failed program was:" >&5
0628567a
JA
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
b80f6443
JA
13167ac_cv_have_decl_printf=no
13168fi
0628567a 13169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
13170fi
13171echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
13172echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13173if test $ac_cv_have_decl_printf = yes; then
13174
13175cat >>confdefs.h <<_ACEOF
13176#define HAVE_DECL_PRINTF 1
13177_ACEOF
13178
13179
13180else
13181 cat >>confdefs.h <<_ACEOF
13182#define HAVE_DECL_PRINTF 0
13183_ACEOF
13184
13185
13186fi
13187
13188
13189echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13190echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13191if test "${ac_cv_have_decl_sbrk+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
b80f6443
JA
13200$ac_includes_default
13201int
13202main ()
13203{
13204#ifndef sbrk
13205 char *p = (char *) sbrk;
13206#endif
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13214 (eval $ac_compile) 2>conftest.er1
b80f6443 13215 ac_status=$?
0628567a
JA
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
b80f6443
JA
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
0628567a
JA
13221 { ac_try='test -z "$ac_c_werror_flag"
13222 || test ! -s conftest.err'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 ac_cv_have_decl_sbrk=yes
13235else
13236 echo "$as_me: failed program was:" >&5
0628567a
JA
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
b80f6443
JA
13239ac_cv_have_decl_sbrk=no
13240fi
0628567a 13241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
13242fi
13243echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13244echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13245if test $ac_cv_have_decl_sbrk = yes; then
13246
13247cat >>confdefs.h <<_ACEOF
13248#define HAVE_DECL_SBRK 1
13249_ACEOF
13250
13251
13252else
13253 cat >>confdefs.h <<_ACEOF
13254#define HAVE_DECL_SBRK 0
13255_ACEOF
13256
13257
13258fi
13259
13260
0628567a
JA
13261echo "$as_me:$LINENO: checking whether setregid is declared" >&5
13262echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6
13263if test "${ac_cv_have_decl_setregid+set}" = set; then
b80f6443
JA
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265else
13266 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
b80f6443
JA
13272$ac_includes_default
13273int
13274main ()
13275{
0628567a
JA
13276#ifndef setregid
13277 char *p = (char *) setregid;
b80f6443
JA
13278#endif
13279
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext
13285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13286 (eval $ac_compile) 2>conftest.er1
b80f6443 13287 ac_status=$?
0628567a
JA
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
b80f6443
JA
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
0628567a
JA
13293 { ac_try='test -z "$ac_c_werror_flag"
13294 || test ! -s conftest.err'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
0628567a 13306 ac_cv_have_decl_setregid=yes
b80f6443
JA
13307else
13308 echo "$as_me: failed program was:" >&5
0628567a
JA
13309sed 's/^/| /' conftest.$ac_ext >&5
13310
13311ac_cv_have_decl_setregid=no
b80f6443 13312fi
0628567a 13313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 13314fi
0628567a
JA
13315echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
13316echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6
13317if test $ac_cv_have_decl_setregid = yes; then
b80f6443
JA
13318
13319cat >>confdefs.h <<_ACEOF
0628567a 13320#define HAVE_DECL_SETREGID 1
b80f6443
JA
13321_ACEOF
13322
13323
13324else
13325 cat >>confdefs.h <<_ACEOF
0628567a 13326#define HAVE_DECL_SETREGID 0
b80f6443
JA
13327_ACEOF
13328
13329
13330fi
13331
13332
0628567a
JA
13333echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
13334echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13335if test "${ac_cv_have_decl_strcpy+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337else
b80f6443 13338 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13339/* confdefs.h. */
13340_ACEOF
13341cat confdefs.h >>conftest.$ac_ext
13342cat >>conftest.$ac_ext <<_ACEOF
13343/* end confdefs.h. */
b80f6443 13344$ac_includes_default
0628567a
JA
13345int
13346main ()
13347{
13348#ifndef strcpy
13349 char *p = (char *) strcpy;
95732b49 13350#endif
0628567a
JA
13351
13352 ;
13353 return 0;
13354}
13355_ACEOF
13356rm -f conftest.$ac_objext
13357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_have_decl_strcpy=yes
13379else
13380 echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383ac_cv_have_decl_strcpy=no
13384fi
13385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386fi
13387echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
13388echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13389if test $ac_cv_have_decl_strcpy = yes; then
13390
13391cat >>confdefs.h <<_ACEOF
13392#define HAVE_DECL_STRCPY 1
13393_ACEOF
13394
13395
13396else
13397 cat >>confdefs.h <<_ACEOF
13398#define HAVE_DECL_STRCPY 0
13399_ACEOF
13400
13401
13402fi
13403
13404
13405echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13406echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13407if test "${ac_cv_have_decl_strsignal+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13409else
13410 cat >conftest.$ac_ext <<_ACEOF
13411/* confdefs.h. */
13412_ACEOF
13413cat confdefs.h >>conftest.$ac_ext
13414cat >>conftest.$ac_ext <<_ACEOF
13415/* end confdefs.h. */
13416$ac_includes_default
b80f6443
JA
13417int
13418main ()
13419{
13420#ifndef strsignal
13421 char *p = (char *) strsignal;
13422#endif
13423
13424 ;
13425 return 0;
13426}
13427_ACEOF
13428rm -f conftest.$ac_objext
13429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13430 (eval $ac_compile) 2>conftest.er1
b80f6443 13431 ac_status=$?
0628567a
JA
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
b80f6443
JA
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
0628567a
JA
13437 { ac_try='test -z "$ac_c_werror_flag"
13438 || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_cv_have_decl_strsignal=yes
13451else
13452 echo "$as_me: failed program was:" >&5
0628567a
JA
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
b80f6443
JA
13455ac_cv_have_decl_strsignal=no
13456fi
0628567a 13457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
13458fi
13459echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13460echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13461if test $ac_cv_have_decl_strsignal = yes; then
13462
13463cat >>confdefs.h <<_ACEOF
13464#define HAVE_DECL_STRSIGNAL 1
13465_ACEOF
13466
13467
13468else
13469 cat >>confdefs.h <<_ACEOF
13470#define HAVE_DECL_STRSIGNAL 0
13471_ACEOF
13472
13473
13474fi
13475
13476
13477
13478echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13479echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13480if test "${ac_cv_have_decl_strtold+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
b80f6443
JA
13489$ac_includes_default
13490int
13491main ()
13492{
13493#ifndef strtold
13494 char *p = (char *) strtold;
13495#endif
13496
13497 ;
13498 return 0;
13499}
13500_ACEOF
13501rm -f conftest.$ac_objext
13502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13503 (eval $ac_compile) 2>conftest.er1
b80f6443 13504 ac_status=$?
0628567a
JA
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
b80f6443
JA
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
0628567a
JA
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_have_decl_strtold=yes
13524else
13525 echo "$as_me: failed program was:" >&5
0628567a
JA
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
b80f6443
JA
13528ac_cv_have_decl_strtold=no
13529fi
0628567a 13530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
13531fi
13532echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13533echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13534if test $ac_cv_have_decl_strtold = yes; then
13535
13536cat >>confdefs.h <<_ACEOF
13537#define HAVE_DECL_STRTOLD 1
13538_ACEOF
13539
13540
13541 echo "$as_me:$LINENO: checking for broken strtold" >&5
13542echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13543 if test "${bash_cv_strtold_broken+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545else
13546 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
b80f6443
JA
13552#include <stdlib.h>
13553int
13554main ()
13555{
13556int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13557 ;
13558 return 0;
13559}
13560_ACEOF
13561rm -f conftest.$ac_objext
13562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 13563 (eval $ac_compile) 2>conftest.er1
b80f6443 13564 ac_status=$?
0628567a
JA
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
b80f6443
JA
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
0628567a
JA
13570 { ac_try='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 bash_cv_strtold_broken=no
13584else
13585 echo "$as_me: failed program was:" >&5
0628567a
JA
13586sed 's/^/| /' conftest.$ac_ext >&5
13587
b80f6443
JA
13588bash_cv_strtold_broken=yes
13589fi
0628567a 13590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
13591
13592
13593fi
13594
13595 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13596echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13597 if test "$bash_cv_strtold_broken" = "yes" ; then
13598 cat >>confdefs.h <<\_ACEOF
13599#define STRTOLD_BROKEN 1
13600_ACEOF
13601
13602 fi
13603
13604else
13605 cat >>confdefs.h <<_ACEOF
13606#define HAVE_DECL_STRTOLD 0
13607_ACEOF
13608
13609
13610fi
13611
13612
13613
13614
13615
13616
13617
13618echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13619echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13620if test "${bash_cv_decl_strtoimax+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622else
13623 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13624/* confdefs.h. */
13625_ACEOF
13626cat confdefs.h >>conftest.$ac_ext
13627cat >>conftest.$ac_ext <<_ACEOF
13628/* end confdefs.h. */
b80f6443
JA
13629
13630#if STDC_HEADERS
13631# include <stdlib.h>
13632#endif
13633#if HAVE_INTTYPES_H
13634# include <inttypes.h>
13635#endif
13636
13637int
13638main ()
13639{
13640return !strtoimax;
13641 ;
13642 return 0;
13643}
13644_ACEOF
13645rm -f conftest.$ac_objext conftest$ac_exeext
13646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 13647 (eval $ac_link) 2>conftest.er1
b80f6443 13648 ac_status=$?
0628567a
JA
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
b80f6443
JA
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
0628567a
JA
13654 { ac_try='test -z "$ac_c_werror_flag"
13655 || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 bash_cv_decl_strtoimax=yes
13668else
13669 echo "$as_me: failed program was:" >&5
0628567a
JA
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
b80f6443
JA
13672bash_cv_decl_strtoimax=no
13673fi
0628567a
JA
13674rm -f conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
13676fi
13677echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13678echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13679bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13680if test $bash_cv_decl_strtoimax = yes; then
13681 cat >>confdefs.h <<_ACEOF
13682#define $bash_tr_func 1
13683_ACEOF
13684
13685else
13686 cat >>confdefs.h <<_ACEOF
13687#define $bash_tr_func 0
13688_ACEOF
13689
13690fi
13691
13692
13693
13694
13695echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13696echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13697if test "${bash_cv_decl_strtol+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
13705/* end confdefs.h. */
b80f6443
JA
13706
13707#if STDC_HEADERS
13708# include <stdlib.h>
13709#endif
13710#if HAVE_INTTYPES_H
13711# include <inttypes.h>
13712#endif
13713
13714int
13715main ()
13716{
13717return !strtol;
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 13724 (eval $ac_link) 2>conftest.er1
b80f6443 13725 ac_status=$?
0628567a
JA
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
b80f6443
JA
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
0628567a
JA
13731 { ac_try='test -z "$ac_c_werror_flag"
13732 || test ! -s conftest.err'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 bash_cv_decl_strtol=yes
13745else
13746 echo "$as_me: failed program was:" >&5
0628567a
JA
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
b80f6443
JA
13749bash_cv_decl_strtol=no
13750fi
0628567a
JA
13751rm -f conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
13753fi
13754echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13755echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13756bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13757if test $bash_cv_decl_strtol = yes; then
13758 cat >>confdefs.h <<_ACEOF
13759#define $bash_tr_func 1
13760_ACEOF
13761
13762else
13763 cat >>confdefs.h <<_ACEOF
13764#define $bash_tr_func 0
13765_ACEOF
13766
13767fi
13768
13769
13770
13771
13772echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13773echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13774if test "${bash_cv_decl_strtoll+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
b80f6443
JA
13783
13784#if STDC_HEADERS
13785# include <stdlib.h>
13786#endif
13787#if HAVE_INTTYPES_H
13788# include <inttypes.h>
13789#endif
13790
13791int
13792main ()
13793{
13794return !strtoll;
13795 ;
13796 return 0;
13797}
13798_ACEOF
13799rm -f conftest.$ac_objext conftest$ac_exeext
13800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 13801 (eval $ac_link) 2>conftest.er1
b80f6443 13802 ac_status=$?
0628567a
JA
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
b80f6443
JA
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
0628567a
JA
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 bash_cv_decl_strtoll=yes
13822else
13823 echo "$as_me: failed program was:" >&5
0628567a
JA
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
b80f6443
JA
13826bash_cv_decl_strtoll=no
13827fi
0628567a
JA
13828rm -f conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
13830fi
13831echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13832echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13833bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13834if test $bash_cv_decl_strtoll = yes; then
13835 cat >>confdefs.h <<_ACEOF
13836#define $bash_tr_func 1
13837_ACEOF
13838
13839else
13840 cat >>confdefs.h <<_ACEOF
13841#define $bash_tr_func 0
13842_ACEOF
13843
13844fi
13845
13846
13847
13848
13849echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13850echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13851if test "${bash_cv_decl_strtoul+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853else
13854 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
b80f6443
JA
13860
13861#if STDC_HEADERS
13862# include <stdlib.h>
13863#endif
13864#if HAVE_INTTYPES_H
13865# include <inttypes.h>
13866#endif
13867
13868int
13869main ()
13870{
13871return !strtoul;
13872 ;
13873 return 0;
13874}
13875_ACEOF
13876rm -f conftest.$ac_objext conftest$ac_exeext
13877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 13878 (eval $ac_link) 2>conftest.er1
b80f6443 13879 ac_status=$?
0628567a
JA
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
b80f6443
JA
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
0628567a
JA
13885 { ac_try='test -z "$ac_c_werror_flag"
13886 || test ! -s conftest.err'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 bash_cv_decl_strtoul=yes
13899else
13900 echo "$as_me: failed program was:" >&5
0628567a
JA
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
b80f6443
JA
13903bash_cv_decl_strtoul=no
13904fi
0628567a
JA
13905rm -f conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
13907fi
13908echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13909echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13910bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13911if test $bash_cv_decl_strtoul = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define $bash_tr_func 1
13914_ACEOF
13915
13916else
13917 cat >>confdefs.h <<_ACEOF
13918#define $bash_tr_func 0
13919_ACEOF
13920
13921fi
13922
13923
13924
13925
13926echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13927echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13928if test "${bash_cv_decl_strtoull+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
b80f6443
JA
13937
13938#if STDC_HEADERS
13939# include <stdlib.h>
13940#endif
13941#if HAVE_INTTYPES_H
13942# include <inttypes.h>
13943#endif
13944
13945int
13946main ()
13947{
13948return !strtoull;
13949 ;
13950 return 0;
13951}
13952_ACEOF
13953rm -f conftest.$ac_objext conftest$ac_exeext
13954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 13955 (eval $ac_link) 2>conftest.er1
b80f6443 13956 ac_status=$?
0628567a
JA
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
b80f6443
JA
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
0628567a
JA
13962 { ac_try='test -z "$ac_c_werror_flag"
13963 || test ! -s conftest.err'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 bash_cv_decl_strtoull=yes
13976else
13977 echo "$as_me: failed program was:" >&5
0628567a
JA
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
b80f6443
JA
13980bash_cv_decl_strtoull=no
13981fi
0628567a
JA
13982rm -f conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
13984fi
13985echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13986echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13987bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13988if test $bash_cv_decl_strtoull = yes; then
13989 cat >>confdefs.h <<_ACEOF
13990#define $bash_tr_func 1
13991_ACEOF
13992
13993else
13994 cat >>confdefs.h <<_ACEOF
13995#define $bash_tr_func 0
13996_ACEOF
13997
13998fi
13999
14000
14001
14002
14003echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
14004echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
14005if test "${bash_cv_decl_strtoumax+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14009/* confdefs.h. */
14010_ACEOF
14011cat confdefs.h >>conftest.$ac_ext
14012cat >>conftest.$ac_ext <<_ACEOF
14013/* end confdefs.h. */
b80f6443
JA
14014
14015#if STDC_HEADERS
14016# include <stdlib.h>
14017#endif
14018#if HAVE_INTTYPES_H
14019# include <inttypes.h>
14020#endif
14021
14022int
14023main ()
14024{
14025return !strtoumax;
14026 ;
14027 return 0;
14028}
14029_ACEOF
14030rm -f conftest.$ac_objext conftest$ac_exeext
14031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 14032 (eval $ac_link) 2>conftest.er1
b80f6443 14033 ac_status=$?
0628567a
JA
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
b80f6443
JA
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
0628567a
JA
14039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 bash_cv_decl_strtoumax=yes
14053else
14054 echo "$as_me: failed program was:" >&5
0628567a
JA
14055sed 's/^/| /' conftest.$ac_ext >&5
14056
b80f6443
JA
14057bash_cv_decl_strtoumax=no
14058fi
0628567a
JA
14059rm -f conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
14061fi
14062echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
14063echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
14064bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14065if test $bash_cv_decl_strtoumax = yes; then
14066 cat >>confdefs.h <<_ACEOF
14067#define $bash_tr_func 1
14068_ACEOF
14069
14070else
14071 cat >>confdefs.h <<_ACEOF
14072#define $bash_tr_func 0
14073_ACEOF
14074
14075fi
14076
14077
14078
14079
0628567a
JA
14080
14081for ac_header in stdlib.h sys/time.h unistd.h
b80f6443
JA
14082do
14083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14084if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo "$as_me:$LINENO: checking for $ac_header" >&5
14086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14087if eval "test \"\${$as_ac_Header+set}\" = set"; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089fi
14090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14092else
14093 # Is the header compilable?
14094echo "$as_me:$LINENO: checking $ac_header usability" >&5
14095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14096cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
b80f6443
JA
14102$ac_includes_default
14103#include <$ac_header>
14104_ACEOF
14105rm -f conftest.$ac_objext
14106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 14107 (eval $ac_compile) 2>conftest.er1
b80f6443 14108 ac_status=$?
0628567a
JA
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
b80f6443
JA
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
0628567a
JA
14114 { ac_try='test -z "$ac_c_werror_flag"
14115 || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ac_header_compiler=yes
14128else
14129 echo "$as_me: failed program was:" >&5
0628567a
JA
14130sed 's/^/| /' conftest.$ac_ext >&5
14131
b80f6443
JA
14132ac_header_compiler=no
14133fi
0628567a 14134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
14135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14136echo "${ECHO_T}$ac_header_compiler" >&6
14137
14138# Is the header present?
14139echo "$as_me:$LINENO: checking $ac_header presence" >&5
14140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14141cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
14146/* end confdefs.h. */
b80f6443
JA
14147#include <$ac_header>
14148_ACEOF
14149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 ac_status=$?
0628567a 14152 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null; then
14157 if test -s conftest.err; then
14158 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 14159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
14160 else
14161 ac_cpp_err=
14162 fi
14163else
14164 ac_cpp_err=yes
14165fi
14166if test -z "$ac_cpp_err"; then
14167 ac_header_preproc=yes
14168else
14169 echo "$as_me: failed program was:" >&5
0628567a
JA
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
b80f6443
JA
14172 ac_header_preproc=no
14173fi
14174rm -f conftest.err conftest.$ac_ext
14175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176echo "${ECHO_T}$ac_header_preproc" >&6
14177
14178# So? What about this header?
0628567a
JA
14179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14180 yes:no: )
b80f6443
JA
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14185 ac_header_preproc=yes
14186 ;;
14187 no:yes:* )
b80f6443
JA
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 14196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
14197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14200 (
14201 cat <<\_ASBOX
14202## ------------------------------- ##
14203## Report this to bug-bash@gnu.org ##
14204## ------------------------------- ##
14205_ASBOX
14206 ) |
14207 sed "s/^/$as_me: WARNING: /" >&2
14208 ;;
b80f6443
JA
14209esac
14210echo "$as_me:$LINENO: checking for $ac_header" >&5
14211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214else
0628567a 14215 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
14216fi
14217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14219
14220fi
14221if test `eval echo '${'$as_ac_Header'}'` = yes; then
14222 cat >>confdefs.h <<_ACEOF
14223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14224_ACEOF
14225
14226fi
14227
14228done
14229
14230
14231for ac_func in alarm
14232do
14233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14234echo "$as_me:$LINENO: checking for $ac_func" >&5
14235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14236if eval "test \"\${$as_ac_var+set}\" = set"; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238else
14239 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14240/* confdefs.h. */
14241_ACEOF
14242cat confdefs.h >>conftest.$ac_ext
14243cat >>conftest.$ac_ext <<_ACEOF
14244/* end confdefs.h. */
14245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14247#define $ac_func innocuous_$ac_func
14248
b80f6443 14249/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
14250 which can conflict with char $ac_func (); below.
14251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14252 <limits.h> exists even on freestanding compilers. */
14253
14254#ifdef __STDC__
14255# include <limits.h>
14256#else
14257# include <assert.h>
14258#endif
14259
14260#undef $ac_func
14261
b80f6443
JA
14262/* Override any gcc2 internal prototype to avoid an error. */
14263#ifdef __cplusplus
14264extern "C"
0628567a 14265{
b80f6443
JA
14266#endif
14267/* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14269char $ac_func ();
14270/* The GNU C library defines this for functions which it implements
14271 to always fail with ENOSYS. Some functions are actually named
14272 something starting with __ and the normal name is an alias. */
14273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274choke me
14275#else
0628567a
JA
14276char (*f) () = $ac_func;
14277#endif
14278#ifdef __cplusplus
14279}
b80f6443
JA
14280#endif
14281
0628567a
JA
14282int
14283main ()
14284{
14285return f != $ac_func;
b80f6443
JA
14286 ;
14287 return 0;
14288}
14289_ACEOF
14290rm -f conftest.$ac_objext conftest$ac_exeext
14291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 14292 (eval $ac_link) 2>conftest.er1
b80f6443 14293 ac_status=$?
0628567a
JA
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
b80f6443
JA
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } &&
0628567a
JA
14299 { ac_try='test -z "$ac_c_werror_flag"
14300 || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 eval "$as_ac_var=yes"
14313else
14314 echo "$as_me: failed program was:" >&5
0628567a
JA
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
b80f6443
JA
14317eval "$as_ac_var=no"
14318fi
0628567a
JA
14319rm -f conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
14321fi
14322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14324if test `eval echo '${'$as_ac_var'}'` = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14327_ACEOF
14328
14329fi
14330done
14331
14332echo "$as_me:$LINENO: checking for working mktime" >&5
14333echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14334if test "${ac_cv_func_working_mktime+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336else
14337 if test "$cross_compiling" = yes; then
14338 ac_cv_func_working_mktime=no
14339else
14340 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
14345/* end confdefs.h. */
b80f6443
JA
14346/* Test program from Paul Eggert and Tony Leneis. */
14347#if TIME_WITH_SYS_TIME
14348# include <sys/time.h>
14349# include <time.h>
14350#else
14351# if HAVE_SYS_TIME_H
14352# include <sys/time.h>
14353# else
14354# include <time.h>
14355# endif
14356#endif
14357
0628567a
JA
14358#if HAVE_STDLIB_H
14359# include <stdlib.h>
14360#endif
14361
b80f6443
JA
14362#if HAVE_UNISTD_H
14363# include <unistd.h>
14364#endif
14365
14366#if !HAVE_ALARM
14367# define alarm(X) /* empty */
14368#endif
7117c2d2
JA
14369
14370/* Work around redefinition to rpl_putenv by other config tests. */
14371#undef putenv
14372
b80f6443 14373static time_t time_t_max;
0628567a 14374static time_t time_t_min;
b80f6443
JA
14375
14376/* Values we'll use to set the TZ environment variable. */
0628567a
JA
14377static char *tz_strings[] = {
14378 (char *) 0, "TZ=GMT0", "TZ=JST-9",
b80f6443
JA
14379 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14380};
14381#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14382
14383/* Fail if mktime fails to convert a date in the spring-forward gap.
14384 Based on a problem report from Andreas Jaeger. */
14385static void
14386spring_forward_gap ()
14387{
14388 /* glibc (up to about 1998-10-07) failed this test. */
14389 struct tm tm;
14390
14391 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14392 instead of "TZ=America/Vancouver" in order to detect the bug even
14393 on systems that don't support the Olson extension, or don't have the
14394 full zoneinfo tables installed. */
14395 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14396
14397 tm.tm_year = 98;
14398 tm.tm_mon = 3;
14399 tm.tm_mday = 5;
14400 tm.tm_hour = 2;
14401 tm.tm_min = 0;
14402 tm.tm_sec = 0;
14403 tm.tm_isdst = -1;
14404 if (mktime (&tm) == (time_t)-1)
14405 exit (1);
14406}
14407
14408static void
0628567a 14409mktime_test1 (now)
b80f6443
JA
14410 time_t now;
14411{
14412 struct tm *lt;
14413 if ((lt = localtime (&now)) && mktime (lt) != now)
14414 exit (1);
0628567a
JA
14415}
14416
14417static void
14418mktime_test (now)
14419 time_t now;
14420{
14421 mktime_test1 (now);
14422 mktime_test1 ((time_t) (time_t_max - now));
14423 mktime_test1 ((time_t) (time_t_min + now));
b80f6443
JA
14424}
14425
14426static void
14427irix_6_4_bug ()
14428{
14429 /* Based on code from Ariel Faigon. */
14430 struct tm tm;
14431 tm.tm_year = 96;
14432 tm.tm_mon = 3;
14433 tm.tm_mday = 0;
14434 tm.tm_hour = 0;
14435 tm.tm_min = 0;
14436 tm.tm_sec = 0;
14437 tm.tm_isdst = -1;
14438 mktime (&tm);
14439 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14440 exit (1);
14441}
14442
14443static void
14444bigtime_test (j)
14445 int j;
14446{
14447 struct tm tm;
14448 time_t now;
14449 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14450 now = mktime (&tm);
14451 if (now != (time_t) -1)
14452 {
14453 struct tm *lt = localtime (&now);
14454 if (! (lt
14455 && lt->tm_year == tm.tm_year
14456 && lt->tm_mon == tm.tm_mon
14457 && lt->tm_mday == tm.tm_mday
14458 && lt->tm_hour == tm.tm_hour
14459 && lt->tm_min == tm.tm_min
14460 && lt->tm_sec == tm.tm_sec
14461 && lt->tm_yday == tm.tm_yday
14462 && lt->tm_wday == tm.tm_wday
14463 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14464 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14465 exit (1);
14466 }
14467}
14468
14469int
14470main ()
14471{
14472 time_t t, delta;
14473 int i, j;
14474
14475 /* This test makes some buggy mktime implementations loop.
14476 Give up after 60 seconds; a mktime slower than that
14477 isn't worth using anyway. */
14478 alarm (60);
14479
14480 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14481 continue;
14482 time_t_max--;
0628567a
JA
14483 if ((time_t) -1 < 0)
14484 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14485 continue;
b80f6443
JA
14486 delta = time_t_max / 997; /* a suitable prime number */
14487 for (i = 0; i < N_STRINGS; i++)
14488 {
14489 if (tz_strings[i])
14490 putenv (tz_strings[i]);
14491
14492 for (t = 0; t <= time_t_max - delta; t += delta)
14493 mktime_test (t);
0628567a
JA
14494 mktime_test ((time_t) 1);
14495 mktime_test ((time_t) (60 * 60));
14496 mktime_test ((time_t) (60 * 60 * 24));
b80f6443
JA
14497
14498 for (j = 1; 0 < j; j *= 2)
0628567a 14499 bigtime_test (j);
b80f6443
JA
14500 bigtime_test (j - 1);
14501 }
14502 irix_6_4_bug ();
14503 spring_forward_gap ();
14504 exit (0);
14505}
14506_ACEOF
14507rm -f conftest$ac_exeext
14508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_cv_func_working_mktime=yes
14519else
14520 echo "$as_me: program exited with status $ac_status" >&5
14521echo "$as_me: failed program was:" >&5
0628567a
JA
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
b80f6443
JA
14524( exit $ac_status )
14525ac_cv_func_working_mktime=no
14526fi
0628567a 14527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
14528fi
14529fi
14530echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14531echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14532if test $ac_cv_func_working_mktime = no; then
0628567a
JA
14533 case $LIBOBJS in
14534 "mktime.$ac_objext" | \
14535 *" mktime.$ac_objext" | \
14536 "mktime.$ac_objext "* | \
14537 *" mktime.$ac_objext "* ) ;;
14538 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14539esac
14540
b80f6443
JA
14541fi
14542
14543
14544
14545
14546
14547
14548
14549
14550for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14551do
14552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14553if eval "test \"\${$as_ac_Header+set}\" = set"; then
14554 echo "$as_me:$LINENO: checking for $ac_header" >&5
14555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14556if eval "test \"\${$as_ac_Header+set}\" = set"; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558fi
14559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14561else
14562 # Is the header compilable?
14563echo "$as_me:$LINENO: checking $ac_header usability" >&5
14564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14565cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14566/* confdefs.h. */
14567_ACEOF
14568cat confdefs.h >>conftest.$ac_ext
14569cat >>conftest.$ac_ext <<_ACEOF
14570/* end confdefs.h. */
b80f6443
JA
14571$ac_includes_default
14572#include <$ac_header>
14573_ACEOF
14574rm -f conftest.$ac_objext
14575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 14576 (eval $ac_compile) 2>conftest.er1
b80f6443 14577 ac_status=$?
0628567a
JA
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
b80f6443
JA
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
0628567a
JA
14583 { ac_try='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_header_compiler=yes
14597else
14598 echo "$as_me: failed program was:" >&5
0628567a
JA
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
b80f6443
JA
14601ac_header_compiler=no
14602fi
0628567a 14603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
14604echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14605echo "${ECHO_T}$ac_header_compiler" >&6
14606
14607# Is the header present?
14608echo "$as_me:$LINENO: checking $ac_header presence" >&5
14609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14610cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14611/* confdefs.h. */
14612_ACEOF
14613cat confdefs.h >>conftest.$ac_ext
14614cat >>conftest.$ac_ext <<_ACEOF
14615/* end confdefs.h. */
b80f6443
JA
14616#include <$ac_header>
14617_ACEOF
14618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14620 ac_status=$?
0628567a 14621 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } >/dev/null; then
14626 if test -s conftest.err; then
14627 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 14628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
14629 else
14630 ac_cpp_err=
14631 fi
14632else
14633 ac_cpp_err=yes
14634fi
14635if test -z "$ac_cpp_err"; then
14636 ac_header_preproc=yes
14637else
14638 echo "$as_me: failed program was:" >&5
0628567a
JA
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
b80f6443
JA
14641 ac_header_preproc=no
14642fi
14643rm -f conftest.err conftest.$ac_ext
14644echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14645echo "${ECHO_T}$ac_header_preproc" >&6
14646
14647# So? What about this header?
0628567a
JA
14648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14649 yes:no: )
b80f6443
JA
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14654 ac_header_preproc=yes
14655 ;;
14656 no:yes:* )
b80f6443
JA
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 14665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
14666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14669 (
14670 cat <<\_ASBOX
14671## ------------------------------- ##
14672## Report this to bug-bash@gnu.org ##
14673## ------------------------------- ##
14674_ASBOX
14675 ) |
14676 sed "s/^/$as_me: WARNING: /" >&2
14677 ;;
b80f6443
JA
14678esac
14679echo "$as_me:$LINENO: checking for $ac_header" >&5
14680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14681if eval "test \"\${$as_ac_Header+set}\" = set"; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683else
0628567a 14684 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
14685fi
14686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14688
14689fi
14690if test `eval echo '${'$as_ac_Header'}'` = yes; then
14691 cat >>confdefs.h <<_ACEOF
14692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14693_ACEOF
14694
14695fi
14696
14697done
14698
14699
14700
14701
14702for ac_header in stdlib.h unistd.h
14703do
14704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14705if eval "test \"\${$as_ac_Header+set}\" = set"; then
14706 echo "$as_me:$LINENO: checking for $ac_header" >&5
14707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14708if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710fi
14711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14713else
14714 # Is the header compilable?
14715echo "$as_me:$LINENO: checking $ac_header usability" >&5
14716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14717cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
b80f6443
JA
14723$ac_includes_default
14724#include <$ac_header>
14725_ACEOF
14726rm -f conftest.$ac_objext
14727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 14728 (eval $ac_compile) 2>conftest.er1
b80f6443 14729 ac_status=$?
0628567a
JA
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
b80f6443
JA
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
0628567a
JA
14735 { ac_try='test -z "$ac_c_werror_flag"
14736 || test ! -s conftest.err'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; } &&
14742 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_header_compiler=yes
14749else
14750 echo "$as_me: failed program was:" >&5
0628567a
JA
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
b80f6443
JA
14753ac_header_compiler=no
14754fi
0628567a 14755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
14756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14757echo "${ECHO_T}$ac_header_compiler" >&6
14758
14759# Is the header present?
14760echo "$as_me:$LINENO: checking $ac_header presence" >&5
14761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14762cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14763/* confdefs.h. */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h. */
b80f6443
JA
14768#include <$ac_header>
14769_ACEOF
14770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14772 ac_status=$?
0628567a 14773 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 14780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
14781 else
14782 ac_cpp_err=
14783 fi
14784else
14785 ac_cpp_err=yes
14786fi
14787if test -z "$ac_cpp_err"; then
14788 ac_header_preproc=yes
14789else
14790 echo "$as_me: failed program was:" >&5
0628567a
JA
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
b80f6443
JA
14793 ac_header_preproc=no
14794fi
14795rm -f conftest.err conftest.$ac_ext
14796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14797echo "${ECHO_T}$ac_header_preproc" >&6
14798
14799# So? What about this header?
0628567a
JA
14800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14801 yes:no: )
b80f6443
JA
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14806 ac_header_preproc=yes
14807 ;;
14808 no:yes:* )
b80f6443
JA
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
14818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14821 (
14822 cat <<\_ASBOX
14823## ------------------------------- ##
14824## Report this to bug-bash@gnu.org ##
14825## ------------------------------- ##
14826_ASBOX
14827 ) |
14828 sed "s/^/$as_me: WARNING: /" >&2
14829 ;;
b80f6443
JA
14830esac
14831echo "$as_me:$LINENO: checking for $ac_header" >&5
14832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14833if eval "test \"\${$as_ac_Header+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835else
0628567a 14836 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
14837fi
14838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14840
14841fi
14842if test `eval echo '${'$as_ac_Header'}'` = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845_ACEOF
14846
14847fi
14848
14849done
14850
14851
14852for ac_func in getpagesize
14853do
14854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14855echo "$as_me:$LINENO: checking for $ac_func" >&5
14856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14857if eval "test \"\${$as_ac_var+set}\" = set"; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14861/* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h. */
14866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14868#define $ac_func innocuous_$ac_func
14869
14870/* System header to define __stub macros and hopefully few prototypes,
14871 which can conflict with char $ac_func (); below.
14872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14873 <limits.h> exists even on freestanding compilers. */
14874
14875#ifdef __STDC__
14876# include <limits.h>
14877#else
14878# include <assert.h>
14879#endif
14880
14881#undef $ac_func
14882
b80f6443
JA
14883/* Override any gcc2 internal prototype to avoid an error. */
14884#ifdef __cplusplus
14885extern "C"
0628567a 14886{
b80f6443
JA
14887#endif
14888/* We use char because int might match the return type of a gcc2
14889 builtin and then its argument prototype would still apply. */
14890char $ac_func ();
14891/* The GNU C library defines this for functions which it implements
14892 to always fail with ENOSYS. Some functions are actually named
14893 something starting with __ and the normal name is an alias. */
14894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14895choke me
14896#else
0628567a
JA
14897char (*f) () = $ac_func;
14898#endif
14899#ifdef __cplusplus
14900}
b80f6443
JA
14901#endif
14902
0628567a
JA
14903int
14904main ()
14905{
14906return f != $ac_func;
b80f6443
JA
14907 ;
14908 return 0;
14909}
14910_ACEOF
14911rm -f conftest.$ac_objext conftest$ac_exeext
14912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 14913 (eval $ac_link) 2>conftest.er1
b80f6443 14914 ac_status=$?
0628567a
JA
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
b80f6443
JA
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
0628567a
JA
14920 { ac_try='test -z "$ac_c_werror_flag"
14921 || test ! -s conftest.err'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 eval "$as_ac_var=yes"
14934else
14935 echo "$as_me: failed program was:" >&5
0628567a
JA
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
b80f6443
JA
14938eval "$as_ac_var=no"
14939fi
0628567a
JA
14940rm -f conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
14942fi
14943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14945if test `eval echo '${'$as_ac_var'}'` = yes; then
14946 cat >>confdefs.h <<_ACEOF
14947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14948_ACEOF
14949
14950fi
14951done
14952
14953echo "$as_me:$LINENO: checking for working mmap" >&5
14954echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14955if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957else
14958 if test "$cross_compiling" = yes; then
14959 ac_cv_func_mmap_fixed_mapped=no
14960else
14961 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14962/* confdefs.h. */
14963_ACEOF
14964cat confdefs.h >>conftest.$ac_ext
14965cat >>conftest.$ac_ext <<_ACEOF
14966/* end confdefs.h. */
b80f6443
JA
14967$ac_includes_default
14968/* malloc might have been renamed as rpl_malloc. */
14969#undef malloc
14970
14971/* Thanks to Mike Haertel and Jim Avera for this test.
14972 Here is a matrix of mmap possibilities:
14973 mmap private not fixed
14974 mmap private fixed at somewhere currently unmapped
14975 mmap private fixed at somewhere already mapped
14976 mmap shared not fixed
14977 mmap shared fixed at somewhere currently unmapped
14978 mmap shared fixed at somewhere already mapped
14979 For private mappings, we should verify that changes cannot be read()
14980 back from the file, nor mmap's back from the file at a different
14981 address. (There have been systems where private was not correctly
14982 implemented like the infamous i386 svr4.0, and systems where the
14983 VM page cache was not coherent with the file system buffer cache
14984 like early versions of FreeBSD and possibly contemporary NetBSD.)
14985 For shared mappings, we should conversely verify that changes get
14986 propagated back to all the places they're supposed to be.
14987
14988 Grep wants private fixed already mapped.
14989 The main things grep needs to know about mmap are:
14990 * does it exist and is it safe to write into the mmap'd area
14991 * how to use it (BSD variants) */
14992
14993#include <fcntl.h>
14994#include <sys/mman.h>
14995
14996#if !STDC_HEADERS && !HAVE_STDLIB_H
14997char *malloc ();
14998#endif
14999
15000/* This mess was copied from the GNU getpagesize.h. */
15001#if !HAVE_GETPAGESIZE
15002/* Assume that all systems that can run configure have sys/param.h. */
15003# if !HAVE_SYS_PARAM_H
15004# define HAVE_SYS_PARAM_H 1
15005# endif
15006
15007# ifdef _SC_PAGESIZE
15008# define getpagesize() sysconf(_SC_PAGESIZE)
15009# else /* no _SC_PAGESIZE */
15010# if HAVE_SYS_PARAM_H
15011# include <sys/param.h>
15012# ifdef EXEC_PAGESIZE
15013# define getpagesize() EXEC_PAGESIZE
15014# else /* no EXEC_PAGESIZE */
15015# ifdef NBPG
15016# define getpagesize() NBPG * CLSIZE
15017# ifndef CLSIZE
15018# define CLSIZE 1
15019# endif /* no CLSIZE */
15020# else /* no NBPG */
15021# ifdef NBPC
15022# define getpagesize() NBPC
15023# else /* no NBPC */
15024# ifdef PAGESIZE
15025# define getpagesize() PAGESIZE
15026# endif /* PAGESIZE */
15027# endif /* no NBPC */
15028# endif /* no NBPG */
15029# endif /* no EXEC_PAGESIZE */
15030# else /* no HAVE_SYS_PARAM_H */
15031# define getpagesize() 8192 /* punt totally */
15032# endif /* no HAVE_SYS_PARAM_H */
15033# endif /* no _SC_PAGESIZE */
15034
15035#endif /* no HAVE_GETPAGESIZE */
15036
15037int
15038main ()
15039{
15040 char *data, *data2, *data3;
15041 int i, pagesize;
15042 int fd;
15043
15044 pagesize = getpagesize ();
15045
15046 /* First, make a file with some known garbage in it. */
15047 data = (char *) malloc (pagesize);
15048 if (!data)
15049 exit (1);
15050 for (i = 0; i < pagesize; ++i)
15051 *(data + i) = rand ();
15052 umask (0);
15053 fd = creat ("conftest.mmap", 0600);
15054 if (fd < 0)
15055 exit (1);
15056 if (write (fd, data, pagesize) != pagesize)
15057 exit (1);
15058 close (fd);
15059
15060 /* Next, try to mmap the file at a fixed address which already has
15061 something else allocated at it. If we can, also make sure that
15062 we see the same garbage. */
15063 fd = open ("conftest.mmap", O_RDWR);
15064 if (fd < 0)
15065 exit (1);
15066 data2 = (char *) malloc (2 * pagesize);
15067 if (!data2)
15068 exit (1);
0628567a 15069 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
b80f6443 15070 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
0628567a 15071 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b80f6443
JA
15072 exit (1);
15073 for (i = 0; i < pagesize; ++i)
15074 if (*(data + i) != *(data2 + i))
15075 exit (1);
15076
15077 /* Finally, make sure that changes to the mapped area do not
15078 percolate back to the file as seen by read(). (This is a bug on
15079 some variants of i386 svr4.0.) */
15080 for (i = 0; i < pagesize; ++i)
15081 *(data2 + i) = *(data2 + i) + 1;
15082 data3 = (char *) malloc (pagesize);
15083 if (!data3)
15084 exit (1);
15085 if (read (fd, data3, pagesize) != pagesize)
15086 exit (1);
15087 for (i = 0; i < pagesize; ++i)
15088 if (*(data + i) != *(data3 + i))
15089 exit (1);
15090 close (fd);
15091 exit (0);
15092}
15093_ACEOF
15094rm -f conftest$ac_exeext
15095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_func_mmap_fixed_mapped=yes
15106else
15107 echo "$as_me: program exited with status $ac_status" >&5
15108echo "$as_me: failed program was:" >&5
0628567a
JA
15109sed 's/^/| /' conftest.$ac_ext >&5
15110
b80f6443
JA
15111( exit $ac_status )
15112ac_cv_func_mmap_fixed_mapped=no
15113fi
0628567a 15114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
15115fi
15116fi
15117echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15118echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15119if test $ac_cv_func_mmap_fixed_mapped = yes; then
15120
15121cat >>confdefs.h <<\_ACEOF
15122#define HAVE_MMAP 1
15123_ACEOF
15124
15125fi
15126rm -f conftest.mmap
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
15138 munmap stpcpy strcspn strdup
15139do
15140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15141echo "$as_me:$LINENO: checking for $ac_func" >&5
15142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15143if eval "test \"\${$as_ac_var+set}\" = set"; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145else
15146 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h. */
15152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15154#define $ac_func innocuous_$ac_func
15155
b80f6443 15156/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
15157 which can conflict with char $ac_func (); below.
15158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15159 <limits.h> exists even on freestanding compilers. */
15160
15161#ifdef __STDC__
15162# include <limits.h>
15163#else
15164# include <assert.h>
15165#endif
15166
15167#undef $ac_func
15168
b80f6443
JA
15169/* Override any gcc2 internal prototype to avoid an error. */
15170#ifdef __cplusplus
15171extern "C"
0628567a 15172{
b80f6443
JA
15173#endif
15174/* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15176char $ac_func ();
15177/* The GNU C library defines this for functions which it implements
15178 to always fail with ENOSYS. Some functions are actually named
15179 something starting with __ and the normal name is an alias. */
15180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15181choke me
15182#else
0628567a
JA
15183char (*f) () = $ac_func;
15184#endif
15185#ifdef __cplusplus
15186}
b80f6443
JA
15187#endif
15188
0628567a
JA
15189int
15190main ()
15191{
15192return f != $ac_func;
b80f6443
JA
15193 ;
15194 return 0;
15195}
15196_ACEOF
15197rm -f conftest.$ac_objext conftest$ac_exeext
15198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 15199 (eval $ac_link) 2>conftest.er1
b80f6443 15200 ac_status=$?
0628567a
JA
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
b80f6443
JA
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
0628567a
JA
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 eval "$as_ac_var=yes"
15220else
15221 echo "$as_me: failed program was:" >&5
0628567a
JA
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
b80f6443
JA
15224eval "$as_ac_var=no"
15225fi
0628567a
JA
15226rm -f conftest.err conftest.$ac_objext \
15227 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
15228fi
15229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15231if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h <<_ACEOF
15233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234_ACEOF
7117c2d2 15235
b80f6443
JA
15236fi
15237done
7117c2d2 15238
7117c2d2 15239
b80f6443
JA
15240INTL_DEP= INTL_INC= LIBINTL_H=
15241if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15242 INTL_DEP='${INTL_LIBDIR}/libintl.a'
15243 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15244 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15245fi
7117c2d2 15246
7117c2d2 15247
7117c2d2 15248
7117c2d2 15249
7117c2d2 15250
7117c2d2 15251
7117c2d2 15252
b80f6443
JA
15253for ac_header in wctype.h
15254do
15255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15256if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257 echo "$as_me:$LINENO: checking for $ac_header" >&5
15258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15259if eval "test \"\${$as_ac_Header+set}\" = set"; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261fi
15262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15264else
15265 # Is the header compilable?
15266echo "$as_me:$LINENO: checking $ac_header usability" >&5
15267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15268cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15269/* confdefs.h. */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h. */
b80f6443
JA
15274$ac_includes_default
15275#include <$ac_header>
15276_ACEOF
15277rm -f conftest.$ac_objext
15278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 15279 (eval $ac_compile) 2>conftest.er1
b80f6443 15280 ac_status=$?
0628567a
JA
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
b80f6443
JA
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
0628567a
JA
15286 { ac_try='test -z "$ac_c_werror_flag"
15287 || test ! -s conftest.err'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_header_compiler=yes
15300else
15301 echo "$as_me: failed program was:" >&5
0628567a
JA
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
b80f6443
JA
15304ac_header_compiler=no
15305fi
0628567a 15306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
15307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15308echo "${ECHO_T}$ac_header_compiler" >&6
7117c2d2 15309
b80f6443
JA
15310# Is the header present?
15311echo "$as_me:$LINENO: checking $ac_header presence" >&5
15312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15313cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15314/* confdefs.h. */
15315_ACEOF
15316cat confdefs.h >>conftest.$ac_ext
15317cat >>conftest.$ac_ext <<_ACEOF
15318/* end confdefs.h. */
b80f6443
JA
15319#include <$ac_header>
15320_ACEOF
15321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f73dda09 15323 ac_status=$?
0628567a 15324 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } >/dev/null; then
15329 if test -s conftest.err; then
15330 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 15331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
15332 else
15333 ac_cpp_err=
15334 fi
15335else
15336 ac_cpp_err=yes
15337fi
15338if test -z "$ac_cpp_err"; then
15339 ac_header_preproc=yes
15340else
15341 echo "$as_me: failed program was:" >&5
0628567a
JA
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
b80f6443
JA
15344 ac_header_preproc=no
15345fi
15346rm -f conftest.err conftest.$ac_ext
15347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15348echo "${ECHO_T}$ac_header_preproc" >&6
15349
15350# So? What about this header?
0628567a
JA
15351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15352 yes:no: )
b80f6443
JA
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15357 ac_header_preproc=yes
15358 ;;
15359 no:yes:* )
b80f6443
JA
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 15368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
15369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15372 (
15373 cat <<\_ASBOX
15374## ------------------------------- ##
15375## Report this to bug-bash@gnu.org ##
15376## ------------------------------- ##
15377_ASBOX
15378 ) |
15379 sed "s/^/$as_me: WARNING: /" >&2
15380 ;;
b80f6443
JA
15381esac
15382echo "$as_me:$LINENO: checking for $ac_header" >&5
15383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15384if eval "test \"\${$as_ac_Header+set}\" = set"; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386else
0628567a 15387 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443
JA
15388fi
15389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15391
15392fi
15393if test `eval echo '${'$as_ac_Header'}'` = yes; then
15394 cat >>confdefs.h <<_ACEOF
15395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15396_ACEOF
15397
15398fi
15399
15400done
15401
15402
15403for ac_header in wchar.h
15404do
15405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15406if eval "test \"\${$as_ac_Header+set}\" = set"; then
15407 echo "$as_me:$LINENO: checking for $ac_header" >&5
15408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15409if eval "test \"\${$as_ac_Header+set}\" = set"; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411fi
15412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15414else
15415 # Is the header compilable?
15416echo "$as_me:$LINENO: checking $ac_header usability" >&5
15417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15418cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
b80f6443
JA
15424$ac_includes_default
15425#include <$ac_header>
15426_ACEOF
15427rm -f conftest.$ac_objext
15428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 15429 (eval $ac_compile) 2>conftest.er1
b80f6443 15430 ac_status=$?
0628567a
JA
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
b80f6443
JA
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
0628567a
JA
15436 { ac_try='test -z "$ac_c_werror_flag"
15437 || test ! -s conftest.err'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
b80f6443 15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
b80f6443 15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 15448 (exit $ac_status); }; }; then
b80f6443
JA
15449 ac_header_compiler=yes
15450else
15451 echo "$as_me: failed program was:" >&5
0628567a
JA
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
b80f6443
JA
15454ac_header_compiler=no
15455fi
0628567a 15456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
15457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458echo "${ECHO_T}$ac_header_compiler" >&6
15459
15460# Is the header present?
15461echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15463cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
b80f6443
JA
15469#include <$ac_header>
15470_ACEOF
15471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15473 ac_status=$?
0628567a 15474 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev/null; then
15479 if test -s conftest.err; then
15480 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 15481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
b80f6443
JA
15482 else
15483 ac_cpp_err=
15484 fi
15485else
15486 ac_cpp_err=yes
15487fi
15488if test -z "$ac_cpp_err"; then
15489 ac_header_preproc=yes
15490else
15491 echo "$as_me: failed program was:" >&5
0628567a
JA
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
b80f6443
JA
15494 ac_header_preproc=no
15495fi
15496rm -f conftest.err conftest.$ac_ext
15497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15498echo "${ECHO_T}$ac_header_preproc" >&6
15499
15500# So? What about this header?
0628567a
JA
15501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15502 yes:no: )
b80f6443
JA
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15507 ac_header_preproc=yes
15508 ;;
15509 no:yes:* )
b80f6443
JA
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 15518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
15519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15522 (
15523 cat <<\_ASBOX
15524## ------------------------------- ##
15525## Report this to bug-bash@gnu.org ##
15526## ------------------------------- ##
15527_ASBOX
15528 ) |
15529 sed "s/^/$as_me: WARNING: /" >&2
15530 ;;
b80f6443
JA
15531esac
15532echo "$as_me:$LINENO: checking for $ac_header" >&5
15533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15534if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
7117c2d2 15536else
0628567a 15537 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 15538fi
b80f6443
JA
15539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15541
7117c2d2 15542fi
b80f6443
JA
15543if test `eval echo '${'$as_ac_Header'}'` = yes; then
15544 cat >>confdefs.h <<_ACEOF
15545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546_ACEOF
15547
7117c2d2
JA
15548fi
15549
b80f6443
JA
15550done
15551
15552
15553for ac_header in langinfo.h
7117c2d2
JA
15554do
15555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b80f6443
JA
15556if eval "test \"\${$as_ac_Header+set}\" = set"; then
15557 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117c2d2
JA
15558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15559if eval "test \"\${$as_ac_Header+set}\" = set"; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
b80f6443
JA
15561fi
15562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117c2d2 15564else
b80f6443
JA
15565 # Is the header compilable?
15566echo "$as_me:$LINENO: checking $ac_header usability" >&5
15567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15568cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
b80f6443
JA
15574$ac_includes_default
15575#include <$ac_header>
15576_ACEOF
15577rm -f conftest.$ac_objext
15578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 15579 (eval $ac_compile) 2>conftest.er1
b80f6443 15580 ac_status=$?
0628567a
JA
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
b80f6443
JA
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
0628567a
JA
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_header_compiler=yes
15600else
15601 echo "$as_me: failed program was:" >&5
0628567a
JA
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
b80f6443
JA
15604ac_header_compiler=no
15605fi
0628567a 15606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
15607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15608echo "${ECHO_T}$ac_header_compiler" >&6
15609
15610# Is the header present?
15611echo "$as_me:$LINENO: checking $ac_header presence" >&5
15612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15613cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15614/* confdefs.h. */
15615_ACEOF
15616cat confdefs.h >>conftest.$ac_ext
15617cat >>conftest.$ac_ext <<_ACEOF
15618/* end confdefs.h. */
7117c2d2
JA
15619#include <$ac_header>
15620_ACEOF
b80f6443 15621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117c2d2
JA
15622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15623 ac_status=$?
0628567a 15624 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
15625 rm -f conftest.er1
15626 cat conftest.err >&5
b80f6443 15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
15628 (exit $ac_status); } >/dev/null; then
15629 if test -s conftest.err; then
15630 ac_cpp_err=$ac_c_preproc_warn_flag
0628567a 15631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7117c2d2
JA
15632 else
15633 ac_cpp_err=
15634 fi
15635else
15636 ac_cpp_err=yes
15637fi
15638if test -z "$ac_cpp_err"; then
b80f6443 15639 ac_header_preproc=yes
7117c2d2
JA
15640else
15641 echo "$as_me: failed program was:" >&5
0628567a
JA
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
b80f6443 15644 ac_header_preproc=no
7117c2d2
JA
15645fi
15646rm -f conftest.err conftest.$ac_ext
b80f6443
JA
15647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15648echo "${ECHO_T}$ac_header_preproc" >&6
15649
15650# So? What about this header?
0628567a
JA
15651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15652 yes:no: )
b80f6443
JA
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
0628567a
JA
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15657 ac_header_preproc=yes
15658 ;;
15659 no:yes:* )
b80f6443
JA
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
0628567a
JA
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
b80f6443 15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
0628567a
JA
15669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15672 (
15673 cat <<\_ASBOX
15674## ------------------------------- ##
15675## Report this to bug-bash@gnu.org ##
15676## ------------------------------- ##
15677_ASBOX
15678 ) |
15679 sed "s/^/$as_me: WARNING: /" >&2
15680 ;;
b80f6443
JA
15681esac
15682echo "$as_me:$LINENO: checking for $ac_header" >&5
15683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15684if eval "test \"\${$as_ac_Header+set}\" = set"; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15686else
0628567a 15687 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 15688fi
b80f6443 15689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117c2d2 15690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b80f6443
JA
15691
15692fi
7117c2d2 15693if test `eval echo '${'$as_ac_Header'}'` = yes; then
b80f6443 15694 cat >>confdefs.h <<_ACEOF
7117c2d2 15695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 15696_ACEOF
7117c2d2
JA
15697
15698fi
b80f6443 15699
7117c2d2
JA
15700done
15701
b80f6443
JA
15702
15703echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15704echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15705if test "${ac_cv_func_mbsrtowcs+set}" = set; then
7117c2d2
JA
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15709/* confdefs.h. */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h. */
15714/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15716#define mbsrtowcs innocuous_mbsrtowcs
15717
7117c2d2 15718/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
15719 which can conflict with char mbsrtowcs (); below.
15720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15721 <limits.h> exists even on freestanding compilers. */
15722
15723#ifdef __STDC__
15724# include <limits.h>
15725#else
15726# include <assert.h>
15727#endif
15728
15729#undef mbsrtowcs
15730
7117c2d2
JA
15731/* Override any gcc2 internal prototype to avoid an error. */
15732#ifdef __cplusplus
15733extern "C"
0628567a 15734{
7117c2d2
JA
15735#endif
15736/* We use char because int might match the return type of a gcc2
15737 builtin and then its argument prototype would still apply. */
b80f6443 15738char mbsrtowcs ();
7117c2d2
JA
15739/* The GNU C library defines this for functions which it implements
15740 to always fail with ENOSYS. Some functions are actually named
15741 something starting with __ and the normal name is an alias. */
b80f6443 15742#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7117c2d2
JA
15743choke me
15744#else
0628567a
JA
15745char (*f) () = mbsrtowcs;
15746#endif
15747#ifdef __cplusplus
15748}
7117c2d2
JA
15749#endif
15750
0628567a
JA
15751int
15752main ()
15753{
15754return f != mbsrtowcs;
7117c2d2
JA
15755 ;
15756 return 0;
15757}
15758_ACEOF
15759rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 15760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 15761 (eval $ac_link) 2>conftest.er1
7117c2d2 15762 ac_status=$?
0628567a
JA
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
b80f6443 15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 15767 (exit $ac_status); } &&
0628567a
JA
15768 { ac_try='test -z "$ac_c_werror_flag"
15769 || test ! -s conftest.err'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest$ac_exeext'
b80f6443 15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
b80f6443 15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 15780 (exit $ac_status); }; }; then
b80f6443 15781 ac_cv_func_mbsrtowcs=yes
7117c2d2
JA
15782else
15783 echo "$as_me: failed program was:" >&5
0628567a
JA
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
b80f6443 15786ac_cv_func_mbsrtowcs=no
7117c2d2 15787fi
0628567a
JA
15788rm -f conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
7117c2d2 15790fi
b80f6443
JA
15791echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15792echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15793if test $ac_cv_func_mbsrtowcs = yes; then
15794 cat >>confdefs.h <<\_ACEOF
15795#define HAVE_MBSRTOWCS 1
15796_ACEOF
7117c2d2
JA
15797
15798fi
7117c2d2 15799
0628567a
JA
15800echo "$as_me:$LINENO: checking for mbrlen" >&5
15801echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15802if test "${ac_cv_func_mbrlen+set}" = set; then
7117c2d2
JA
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804else
b80f6443 15805 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15813#define mbrlen innocuous_mbrlen
15814
b80f6443 15815/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
15816 which can conflict with char mbrlen (); below.
15817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15818 <limits.h> exists even on freestanding compilers. */
15819
15820#ifdef __STDC__
15821# include <limits.h>
15822#else
15823# include <assert.h>
15824#endif
15825
15826#undef mbrlen
15827
7117c2d2
JA
15828/* Override any gcc2 internal prototype to avoid an error. */
15829#ifdef __cplusplus
15830extern "C"
0628567a 15831{
7117c2d2
JA
15832#endif
15833/* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
0628567a 15835char mbrlen ();
b80f6443
JA
15836/* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
0628567a 15839#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
b80f6443
JA
15840choke me
15841#else
0628567a
JA
15842char (*f) () = mbrlen;
15843#endif
15844#ifdef __cplusplus
15845}
b80f6443
JA
15846#endif
15847
0628567a
JA
15848int
15849main ()
15850{
15851return f != mbrlen;
7117c2d2
JA
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 15857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 15858 (eval $ac_link) 2>conftest.er1
7117c2d2 15859 ac_status=$?
0628567a
JA
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
b80f6443 15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 15864 (exit $ac_status); } &&
0628567a
JA
15865 { ac_try='test -z "$ac_c_werror_flag"
15866 || test ! -s conftest.err'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; } &&
15872 { ac_try='test -s conftest$ac_exeext'
b80f6443 15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
b80f6443 15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 15877 (exit $ac_status); }; }; then
0628567a 15878 ac_cv_func_mbrlen=yes
f73dda09
JA
15879else
15880 echo "$as_me: failed program was:" >&5
0628567a
JA
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883ac_cv_func_mbrlen=no
f73dda09 15884fi
0628567a
JA
15885rm -f conftest.err conftest.$ac_objext \
15886 conftest$ac_exeext conftest.$ac_ext
f73dda09 15887fi
0628567a
JA
15888echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15889echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15890if test $ac_cv_func_mbrlen = yes; then
b80f6443 15891 cat >>confdefs.h <<\_ACEOF
0628567a 15892#define HAVE_MBRLEN 1
b80f6443 15893_ACEOF
f73dda09
JA
15894
15895fi
15896
0628567a
JA
15897
15898echo "$as_me:$LINENO: checking for wcrtomb" >&5
15899echo $ECHO_N "checking for wcrtomb... $ECHO_C" >&6
15900if test "${ac_cv_func_wcrtomb+set}" = set; then
f73dda09
JA
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902else
15903 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15904/* confdefs.h. */
15905_ACEOF
15906cat confdefs.h >>conftest.$ac_ext
15907cat >>conftest.$ac_ext <<_ACEOF
15908/* end confdefs.h. */
15909/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
15910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15911#define wcrtomb innocuous_wcrtomb
15912
f73dda09 15913/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
15914 which can conflict with char wcrtomb (); below.
15915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15916 <limits.h> exists even on freestanding compilers. */
15917
15918#ifdef __STDC__
15919# include <limits.h>
15920#else
15921# include <assert.h>
15922#endif
15923
15924#undef wcrtomb
15925
f73dda09
JA
15926/* Override any gcc2 internal prototype to avoid an error. */
15927#ifdef __cplusplus
15928extern "C"
0628567a 15929{
f73dda09
JA
15930#endif
15931/* We use char because int might match the return type of a gcc2
15932 builtin and then its argument prototype would still apply. */
0628567a 15933char wcrtomb ();
f73dda09
JA
15934/* The GNU C library defines this for functions which it implements
15935 to always fail with ENOSYS. Some functions are actually named
15936 something starting with __ and the normal name is an alias. */
0628567a 15937#if defined (__stub_wcrtomb) || defined (__stub___wcrtomb)
f73dda09
JA
15938choke me
15939#else
0628567a
JA
15940char (*f) () = wcrtomb;
15941#endif
15942#ifdef __cplusplus
15943}
f73dda09
JA
15944#endif
15945
0628567a
JA
15946int
15947main ()
15948{
15949return f != wcrtomb;
f73dda09
JA
15950 ;
15951 return 0;
15952}
15953_ACEOF
15954rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 15955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 15956 (eval $ac_link) 2>conftest.er1
f73dda09 15957 ac_status=$?
0628567a
JA
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
b80f6443 15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 15962 (exit $ac_status); } &&
0628567a
JA
15963 { ac_try='test -z "$ac_c_werror_flag"
15964 || test ! -s conftest.err'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest$ac_exeext'
b80f6443 15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
b80f6443 15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 15975 (exit $ac_status); }; }; then
0628567a 15976 ac_cv_func_wcrtomb=yes
f73dda09
JA
15977else
15978 echo "$as_me: failed program was:" >&5
0628567a
JA
15979sed 's/^/| /' conftest.$ac_ext >&5
15980
15981ac_cv_func_wcrtomb=no
ccc6cda3 15982fi
0628567a
JA
15983rm -f conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 15985fi
0628567a
JA
15986echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
15987echo "${ECHO_T}$ac_cv_func_wcrtomb" >&6
15988if test $ac_cv_func_wcrtomb = yes; then
b80f6443 15989 cat >>confdefs.h <<\_ACEOF
0628567a 15990#define HAVE_WCRTOMB 1
7117c2d2 15991_ACEOF
7117c2d2
JA
15992
15993fi
7117c2d2 15994
0628567a
JA
15995echo "$as_me:$LINENO: checking for wcscoll" >&5
15996echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6
15997if test "${ac_cv_func_wcscoll+set}" = set; then
7117c2d2
JA
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999else
16000 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
16007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16008#define wcscoll innocuous_wcscoll
16009
b80f6443 16010/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
16011 which can conflict with char wcscoll (); below.
16012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16013 <limits.h> exists even on freestanding compilers. */
16014
16015#ifdef __STDC__
16016# include <limits.h>
16017#else
16018# include <assert.h>
16019#endif
16020
16021#undef wcscoll
16022
b80f6443
JA
16023/* Override any gcc2 internal prototype to avoid an error. */
16024#ifdef __cplusplus
16025extern "C"
0628567a 16026{
b80f6443
JA
16027#endif
16028/* We use char because int might match the return type of a gcc2
16029 builtin and then its argument prototype would still apply. */
0628567a 16030char wcscoll ();
b80f6443
JA
16031/* The GNU C library defines this for functions which it implements
16032 to always fail with ENOSYS. Some functions are actually named
16033 something starting with __ and the normal name is an alias. */
0628567a 16034#if defined (__stub_wcscoll) || defined (__stub___wcscoll)
b80f6443
JA
16035choke me
16036#else
0628567a
JA
16037char (*f) () = wcscoll;
16038#endif
16039#ifdef __cplusplus
16040}
b80f6443 16041#endif
7117c2d2 16042
0628567a
JA
16043int
16044main ()
16045{
16046return f != wcscoll;
b80f6443
JA
16047 ;
16048 return 0;
16049}
7117c2d2 16050_ACEOF
b80f6443
JA
16051rm -f conftest.$ac_objext conftest$ac_exeext
16052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 16053 (eval $ac_link) 2>conftest.er1
b80f6443 16054 ac_status=$?
0628567a
JA
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
b80f6443
JA
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
0628567a
JA
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
7117c2d2 16070 ac_status=$?
b80f6443
JA
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
0628567a 16073 ac_cv_func_wcscoll=yes
7117c2d2
JA
16074else
16075 echo "$as_me: failed program was:" >&5
0628567a
JA
16076sed 's/^/| /' conftest.$ac_ext >&5
16077
16078ac_cv_func_wcscoll=no
7117c2d2 16079fi
0628567a
JA
16080rm -f conftest.err conftest.$ac_objext \
16081 conftest$ac_exeext conftest.$ac_ext
7117c2d2 16082fi
0628567a
JA
16083echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
16084echo "${ECHO_T}$ac_cv_func_wcscoll" >&6
16085if test $ac_cv_func_wcscoll = yes; then
b80f6443 16086 cat >>confdefs.h <<\_ACEOF
0628567a 16087#define HAVE_WCSCOLL 1
b80f6443 16088_ACEOF
7117c2d2
JA
16089
16090fi
7117c2d2 16091
0628567a
JA
16092echo "$as_me:$LINENO: checking for wcsdup" >&5
16093echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16094if test "${ac_cv_func_wcsdup+set}" = set; then
7117c2d2
JA
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16096else
16097 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16105#define wcsdup innocuous_wcsdup
16106
16107/* System header to define __stub macros and hopefully few prototypes,
16108 which can conflict with char wcsdup (); below.
16109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16110 <limits.h> exists even on freestanding compilers. */
16111
16112#ifdef __STDC__
16113# include <limits.h>
16114#else
16115# include <assert.h>
16116#endif
16117
16118#undef wcsdup
16119
7117c2d2
JA
16120/* Override any gcc2 internal prototype to avoid an error. */
16121#ifdef __cplusplus
16122extern "C"
0628567a 16123{
7117c2d2
JA
16124#endif
16125/* We use char because int might match the return type of a gcc2
16126 builtin and then its argument prototype would still apply. */
0628567a
JA
16127char wcsdup ();
16128/* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16132choke me
16133#else
16134char (*f) () = wcsdup;
16135#endif
16136#ifdef __cplusplus
16137}
95732b49 16138#endif
0628567a 16139
95732b49
JA
16140int
16141main ()
16142{
0628567a
JA
16143return f != wcsdup;
16144 ;
16145 return 0;
16146}
16147_ACEOF
16148rm -f conftest.$ac_objext conftest$ac_exeext
16149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150 (eval $ac_link) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_cv_func_wcsdup=yes
16171else
16172 echo "$as_me: failed program was:" >&5
16173sed 's/^/| /' conftest.$ac_ext >&5
16174
16175ac_cv_func_wcsdup=no
16176fi
16177rm -f conftest.err conftest.$ac_objext \
16178 conftest$ac_exeext conftest.$ac_ext
16179fi
16180echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
16181echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16182if test $ac_cv_func_wcsdup = yes; then
16183 cat >>confdefs.h <<\_ACEOF
16184#define HAVE_WCSDUP 1
16185_ACEOF
16186
16187fi
16188
16189echo "$as_me:$LINENO: checking for wcwidth" >&5
16190echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
16191if test "${ac_cv_func_wcwidth+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193else
16194 cat >conftest.$ac_ext <<_ACEOF
16195/* confdefs.h. */
16196_ACEOF
16197cat confdefs.h >>conftest.$ac_ext
16198cat >>conftest.$ac_ext <<_ACEOF
16199/* end confdefs.h. */
16200/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
16201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16202#define wcwidth innocuous_wcwidth
16203
16204/* System header to define __stub macros and hopefully few prototypes,
16205 which can conflict with char wcwidth (); below.
16206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16207 <limits.h> exists even on freestanding compilers. */
16208
16209#ifdef __STDC__
16210# include <limits.h>
16211#else
16212# include <assert.h>
16213#endif
16214
16215#undef wcwidth
16216
16217/* Override any gcc2 internal prototype to avoid an error. */
16218#ifdef __cplusplus
16219extern "C"
16220{
16221#endif
16222/* We use char because int might match the return type of a gcc2
16223 builtin and then its argument prototype would still apply. */
16224char wcwidth ();
7117c2d2
JA
16225/* The GNU C library defines this for functions which it implements
16226 to always fail with ENOSYS. Some functions are actually named
16227 something starting with __ and the normal name is an alias. */
b80f6443 16228#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7117c2d2
JA
16229choke me
16230#else
0628567a
JA
16231char (*f) () = wcwidth;
16232#endif
16233#ifdef __cplusplus
16234}
7117c2d2
JA
16235#endif
16236
0628567a
JA
16237int
16238main ()
16239{
16240return f != wcwidth;
7117c2d2
JA
16241 ;
16242 return 0;
16243}
16244_ACEOF
16245rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 16246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 16247 (eval $ac_link) 2>conftest.er1
7117c2d2 16248 ac_status=$?
0628567a
JA
16249 grep -v '^ *+' conftest.er1 >conftest.err
16250 rm -f conftest.er1
16251 cat conftest.err >&5
b80f6443 16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16253 (exit $ac_status); } &&
0628567a
JA
16254 { ac_try='test -z "$ac_c_werror_flag"
16255 || test ! -s conftest.err'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest$ac_exeext'
b80f6443 16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
b80f6443 16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16266 (exit $ac_status); }; }; then
b80f6443 16267 ac_cv_func_wcwidth=yes
7117c2d2
JA
16268else
16269 echo "$as_me: failed program was:" >&5
0628567a
JA
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
b80f6443 16272ac_cv_func_wcwidth=no
7117c2d2 16273fi
0628567a
JA
16274rm -f conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
7117c2d2 16276fi
b80f6443
JA
16277echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
16278echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
16279if test $ac_cv_func_wcwidth = yes; then
16280 cat >>confdefs.h <<\_ACEOF
16281#define HAVE_WCWIDTH 1
16282_ACEOF
7117c2d2
JA
16283
16284fi
16285
0628567a
JA
16286echo "$as_me:$LINENO: checking for wctype" >&5
16287echo $ECHO_N "checking for wctype... $ECHO_C" >&6
16288if test "${ac_cv_func_wctype+set}" = set; then
7117c2d2
JA
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290else
16291 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
16297/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
16298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16299#define wctype innocuous_wctype
16300
7117c2d2 16301/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
16302 which can conflict with char wctype (); below.
16303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16304 <limits.h> exists even on freestanding compilers. */
16305
16306#ifdef __STDC__
16307# include <limits.h>
16308#else
16309# include <assert.h>
16310#endif
16311
16312#undef wctype
16313
7117c2d2
JA
16314/* Override any gcc2 internal prototype to avoid an error. */
16315#ifdef __cplusplus
16316extern "C"
0628567a 16317{
7117c2d2
JA
16318#endif
16319/* We use char because int might match the return type of a gcc2
16320 builtin and then its argument prototype would still apply. */
0628567a
JA
16321char wctype ();
16322/* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325#if defined (__stub_wctype) || defined (__stub___wctype)
16326choke me
16327#else
16328char (*f) () = wctype;
95732b49 16329#endif
0628567a
JA
16330#ifdef __cplusplus
16331}
16332#endif
16333
95732b49
JA
16334int
16335main ()
16336{
0628567a
JA
16337return f != wctype;
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext conftest$ac_exeext
16343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_func_wctype=yes
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369ac_cv_func_wctype=no
16370fi
16371rm -f conftest.err conftest.$ac_objext \
16372 conftest$ac_exeext conftest.$ac_ext
16373fi
16374echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
16375echo "${ECHO_T}$ac_cv_func_wctype" >&6
16376if test $ac_cv_func_wctype = yes; then
16377 cat >>confdefs.h <<\_ACEOF
16378#define HAVE_WCTYPE 1
16379_ACEOF
16380
16381fi
16382
16383
16384
16385 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
16386echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
16387if test "${ac_cv_func_mbrtowc+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389else
16390 cat >conftest.$ac_ext <<_ACEOF
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
16396#include <wchar.h>
16397int
16398main ()
16399{
16400mbstate_t state; return ! (sizeof state && mbrtowc);
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405rm -f conftest.$ac_objext conftest$ac_exeext
16406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag"
16415 || test ! -s conftest.err'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; } &&
16421 { ac_try='test -s conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_cv_func_mbrtowc=yes
16428else
16429 echo "$as_me: failed program was:" >&5
16430sed 's/^/| /' conftest.$ac_ext >&5
16431
16432ac_cv_func_mbrtowc=no
16433fi
16434rm -f conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16436fi
16437echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
16438echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
16439 if test $ac_cv_func_mbrtowc = yes; then
16440
16441cat >>confdefs.h <<\_ACEOF
16442#define HAVE_MBRTOWC 1
16443_ACEOF
16444
16445 fi
16446
16447if test $ac_cv_func_mbrtowc = yes; then
16448 cat >>confdefs.h <<\_ACEOF
16449#define HAVE_MBSTATE_T 1
16450_ACEOF
16451
16452fi
16453
16454
16455
16456
16457
16458
16459for ac_func in iswlower iswupper towlower towupper iswctype
16460do
16461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16462echo "$as_me:$LINENO: checking for $ac_func" >&5
16463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16464if eval "test \"\${$as_ac_var+set}\" = set"; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16475#define $ac_func innocuous_$ac_func
16476
16477/* System header to define __stub macros and hopefully few prototypes,
16478 which can conflict with char $ac_func (); below.
16479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480 <limits.h> exists even on freestanding compilers. */
16481
16482#ifdef __STDC__
16483# include <limits.h>
16484#else
16485# include <assert.h>
16486#endif
16487
16488#undef $ac_func
16489
16490/* Override any gcc2 internal prototype to avoid an error. */
16491#ifdef __cplusplus
16492extern "C"
16493{
16494#endif
16495/* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16497char $ac_func ();
7117c2d2
JA
16498/* The GNU C library defines this for functions which it implements
16499 to always fail with ENOSYS. Some functions are actually named
16500 something starting with __ and the normal name is an alias. */
0628567a 16501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7117c2d2
JA
16502choke me
16503#else
0628567a
JA
16504char (*f) () = $ac_func;
16505#endif
16506#ifdef __cplusplus
16507}
7117c2d2
JA
16508#endif
16509
0628567a
JA
16510int
16511main ()
16512{
16513return f != $ac_func;
16514 ;
16515 return 0;
16516}
16517_ACEOF
16518rm -f conftest.$ac_objext conftest$ac_exeext
16519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520 (eval $ac_link) 2>conftest.er1
16521 ac_status=$?
16522 grep -v '^ *+' conftest.er1 >conftest.err
16523 rm -f conftest.er1
16524 cat conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } &&
16527 { ac_try='test -z "$ac_c_werror_flag"
16528 || test ! -s conftest.err'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; } &&
16534 { ac_try='test -s conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 eval "$as_ac_var=yes"
16541else
16542 echo "$as_me: failed program was:" >&5
16543sed 's/^/| /' conftest.$ac_ext >&5
16544
16545eval "$as_ac_var=no"
16546fi
16547rm -f conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
16549fi
16550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16552if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16555_ACEOF
16556
16557fi
16558done
16559
16560
16561echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16562echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16563if test "${bash_cv_langinfo_codeset+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16565else
16566 cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572#include <langinfo.h>
16573int
16574main ()
16575{
16576char* cs = nl_langinfo(CODESET);
16577 ;
16578 return 0;
16579}
16580_ACEOF
16581rm -f conftest.$ac_objext conftest$ac_exeext
16582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16583 (eval $ac_link) 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag"
16591 || test ! -s conftest.err'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest$ac_exeext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 bash_cv_langinfo_codeset=yes
16604else
16605 echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608bash_cv_langinfo_codeset=no
16609fi
16610rm -f conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
16612fi
16613echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16614echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16615if test $bash_cv_langinfo_codeset = yes; then
16616 cat >>confdefs.h <<\_ACEOF
16617#define HAVE_LANGINFO_CODESET 1
16618_ACEOF
16619
16620fi
16621
16622echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
16623echo $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6
16624if test "${bash_cv_type_wchar_t+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626else
16627 cat >conftest.$ac_ext <<_ACEOF
16628/* confdefs.h. */
16629_ACEOF
16630cat confdefs.h >>conftest.$ac_ext
16631cat >>conftest.$ac_ext <<_ACEOF
16632/* end confdefs.h. */
16633#include <wchar.h>
16634
16635int
16636main ()
16637{
16638
16639 wchar_t foo;
16640 foo = 0;
16641
7117c2d2
JA
16642 ;
16643 return 0;
16644}
16645_ACEOF
0628567a
JA
16646rm -f conftest.$ac_objext
16647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>conftest.er1
7117c2d2 16649 ac_status=$?
0628567a
JA
16650 grep -v '^ *+' conftest.er1 >conftest.err
16651 rm -f conftest.er1
16652 cat conftest.err >&5
b80f6443 16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16654 (exit $ac_status); } &&
0628567a
JA
16655 { ac_try='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
b80f6443 16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
b80f6443 16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16667 (exit $ac_status); }; }; then
0628567a 16668 bash_cv_type_wchar_t=yes
7117c2d2
JA
16669else
16670 echo "$as_me: failed program was:" >&5
0628567a
JA
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673bash_cv_type_wchar_t=no
7117c2d2 16674fi
0628567a 16675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 16676fi
0628567a
JA
16677echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
16678echo "${ECHO_T}$bash_cv_type_wchar_t" >&6
16679if test $bash_cv_type_wchar_t = yes; then
16680
16681cat >>confdefs.h <<\_ACEOF
16682#define HAVE_WCHAR_T 1
b80f6443 16683_ACEOF
7117c2d2
JA
16684
16685fi
16686
0628567a
JA
16687echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
16688echo $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6
16689if test "${bash_cv_type_wctype_t+set}" = set; then
7117c2d2 16690 echo $ECHO_N "(cached) $ECHO_C" >&6
7117c2d2
JA
16691else
16692 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16693/* confdefs.h. */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h. */
16698#include <wctype.h>
7117c2d2
JA
16699int
16700main ()
16701{
b80f6443 16702
0628567a
JA
16703 wctype_t foo;
16704 foo = 0;
b80f6443
JA
16705
16706 ;
7117c2d2
JA
16707 return 0;
16708}
16709_ACEOF
b80f6443
JA
16710rm -f conftest.$ac_objext
16711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 16712 (eval $ac_compile) 2>conftest.er1
7117c2d2 16713 ac_status=$?
0628567a
JA
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
b80f6443
JA
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
0628567a
JA
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
b80f6443 16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
b80f6443 16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16731 (exit $ac_status); }; }; then
0628567a 16732 bash_cv_type_wctype_t=yes
7117c2d2 16733else
b80f6443 16734 echo "$as_me: failed program was:" >&5
0628567a
JA
16735sed 's/^/| /' conftest.$ac_ext >&5
16736
16737bash_cv_type_wctype_t=no
7117c2d2 16738fi
0628567a 16739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 16740fi
0628567a
JA
16741echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
16742echo "${ECHO_T}$bash_cv_type_wctype_t" >&6
16743if test $bash_cv_type_wctype_t = yes; then
16744
16745cat >>confdefs.h <<\_ACEOF
16746#define HAVE_WCTYPE_T 1
b80f6443 16747_ACEOF
7117c2d2
JA
16748
16749fi
16750
0628567a
JA
16751echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
16752echo $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6
16753if test "${bash_cv_type_wint_t+set}" = set; then
7117c2d2
JA
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h. */
16762#include <wctype.h>
7117c2d2
JA
16763int
16764main ()
16765{
0628567a
JA
16766
16767 wint_t foo;
16768 foo = 0;
16769
7117c2d2
JA
16770 ;
16771 return 0;
16772}
16773_ACEOF
0628567a
JA
16774rm -f conftest.$ac_objext
16775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
7117c2d2 16777 ac_status=$?
0628567a
JA
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
b80f6443 16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16782 (exit $ac_status); } &&
0628567a
JA
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_objext'
b80f6443 16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
b80f6443 16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 16795 (exit $ac_status); }; }; then
0628567a 16796 bash_cv_type_wint_t=yes
7117c2d2
JA
16797else
16798 echo "$as_me: failed program was:" >&5
0628567a
JA
16799sed 's/^/| /' conftest.$ac_ext >&5
16800
16801bash_cv_type_wint_t=no
7117c2d2 16802fi
0628567a 16803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 16804fi
0628567a
JA
16805echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
16806echo "${ECHO_T}$bash_cv_type_wint_t" >&6
16807if test $bash_cv_type_wint_t = yes; then
16808
16809cat >>confdefs.h <<\_ACEOF
16810#define HAVE_WINT_T 1
b80f6443 16811_ACEOF
7117c2d2
JA
16812
16813fi
16814
b80f6443
JA
16815
16816
f73dda09
JA
16817if test "$opt_static_link" != yes; then
16818
b80f6443 16819echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
f73dda09
JA
16820echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16821if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 16823else
f73dda09
JA
16824 ac_check_lib_save_LIBS=$LIBS
16825LIBS="-ldl $LIBS"
16826cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
f73dda09
JA
16832
16833/* Override any gcc2 internal prototype to avoid an error. */
16834#ifdef __cplusplus
16835extern "C"
16836#endif
16837/* We use char because int might match the return type of a gcc2
16838 builtin and then its argument prototype would still apply. */
16839char dlopen ();
16840int
16841main ()
16842{
16843dlopen ();
16844 ;
16845 return 0;
16846}
16847_ACEOF
16848rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 16849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 16850 (eval $ac_link) 2>conftest.er1
f73dda09 16851 ac_status=$?
0628567a
JA
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
b80f6443 16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16856 (exit $ac_status); } &&
0628567a
JA
16857 { ac_try='test -z "$ac_c_werror_flag"
16858 || test ! -s conftest.err'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
b80f6443 16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
b80f6443 16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16869 (exit $ac_status); }; }; then
16870 ac_cv_lib_dl_dlopen=yes
16871else
16872 echo "$as_me: failed program was:" >&5
0628567a
JA
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
f73dda09
JA
16875ac_cv_lib_dl_dlopen=no
16876fi
0628567a
JA
16877rm -f conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
16879LIBS=$ac_check_lib_save_LIBS
16880fi
b80f6443 16881echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
f73dda09
JA
16882echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16883if test $ac_cv_lib_dl_dlopen = yes; then
b80f6443 16884 cat >>confdefs.h <<_ACEOF
f73dda09 16885#define HAVE_LIBDL 1
b80f6443 16886_ACEOF
f73dda09
JA
16887
16888 LIBS="-ldl $LIBS"
16889
ccc6cda3 16890fi
ccc6cda3 16891
b80f6443
JA
16892
16893
16894
f73dda09 16895for ac_func in dlopen dlclose dlsym
bb70624e 16896do
f73dda09 16897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b80f6443 16898echo "$as_me:$LINENO: checking for $ac_func" >&5
f73dda09
JA
16899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900if eval "test \"\${$as_ac_var+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 16902else
f73dda09 16903 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
16909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911#define $ac_func innocuous_$ac_func
16912
f73dda09 16913/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16917
16918#ifdef __STDC__
16919# include <limits.h>
16920#else
16921# include <assert.h>
16922#endif
16923
16924#undef $ac_func
16925
f73dda09
JA
16926/* Override any gcc2 internal prototype to avoid an error. */
16927#ifdef __cplusplus
16928extern "C"
0628567a 16929{
f73dda09
JA
16930#endif
16931/* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16933char $ac_func ();
f73dda09
JA
16934/* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938choke me
16939#else
0628567a
JA
16940char (*f) () = $ac_func;
16941#endif
16942#ifdef __cplusplus
16943}
f73dda09
JA
16944#endif
16945
0628567a
JA
16946int
16947main ()
16948{
16949return f != $ac_func;
f73dda09
JA
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 16955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 16956 (eval $ac_link) 2>conftest.er1
f73dda09 16957 ac_status=$?
0628567a
JA
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
b80f6443 16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 16962 (exit $ac_status); } &&
0628567a
JA
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
b80f6443 16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
b80f6443 16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16977else
16978 echo "$as_me: failed program was:" >&5
0628567a
JA
16979sed 's/^/| /' conftest.$ac_ext >&5
16980
f73dda09
JA
16981eval "$as_ac_var=no"
16982fi
0628567a
JA
16983rm -f conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
f73dda09 16985fi
b80f6443 16986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f73dda09
JA
16987echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988if test `eval echo '${'$as_ac_var'}'` = yes; then
b80f6443 16989 cat >>confdefs.h <<_ACEOF
f73dda09 16990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 16991_ACEOF
f73dda09 16992
bb70624e 16993fi
f73dda09
JA
16994done
16995
bb70624e 16996fi
f73dda09 16997
0628567a
JA
16998echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16999echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
17000if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
f73dda09
JA
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
95732b49
JA
17009#include <signal.h>
17010/* NetBSD declares sys_siglist in unistd.h. */
17011#if HAVE_UNISTD_H
17012# include <unistd.h>
17013#endif
17014
0628567a 17015
f73dda09
JA
17016int
17017main ()
17018{
0628567a
JA
17019#ifndef sys_siglist
17020 char *p = (char *) sys_siglist;
17021#endif
17022
f73dda09
JA
17023 ;
17024 return 0;
17025}
17026_ACEOF
17027rm -f conftest.$ac_objext
b80f6443 17028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 17029 (eval $ac_compile) 2>conftest.er1
f73dda09 17030 ac_status=$?
0628567a
JA
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
b80f6443 17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17035 (exit $ac_status); } &&
0628567a
JA
17036 { ac_try='test -z "$ac_c_werror_flag"
17037 || test ! -s conftest.err'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest.$ac_objext'
b80f6443 17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
b80f6443 17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17048 (exit $ac_status); }; }; then
0628567a 17049 ac_cv_have_decl_sys_siglist=yes
bb70624e 17050else
f73dda09 17051 echo "$as_me: failed program was:" >&5
0628567a
JA
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054ac_cv_have_decl_sys_siglist=no
bb70624e 17055fi
0628567a 17056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17057fi
0628567a
JA
17058echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17059echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
17060if test $ac_cv_have_decl_sys_siglist = yes; then
b80f6443 17061
0628567a
JA
17062cat >>confdefs.h <<_ACEOF
17063#define HAVE_DECL_SYS_SIGLIST 1
17064_ACEOF
17065
17066
17067else
17068 cat >>confdefs.h <<_ACEOF
17069#define HAVE_DECL_SYS_SIGLIST 0
b80f6443 17070_ACEOF
bb70624e 17071
0628567a 17072
f73dda09 17073fi
bb70624e 17074
b80f6443 17075
0628567a
JA
17076
17077
bb70624e
JA
17078if test "$ac_cv_func_inet_aton" != 'yes'; then
17079
b80f6443 17080echo "$as_me:$LINENO: checking for inet_aton" >&5
f73dda09
JA
17081echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
17082if test "${bash_cv_func_inet_aton+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 17084else
f73dda09 17085 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
bb70624e
JA
17091
17092#include <sys/types.h>
17093#include <netinet/in.h>
17094#include <arpa/inet.h>
17095struct in_addr ap;
f73dda09
JA
17096int
17097main ()
17098{
17099 inet_aton("127.0.0.1", &ap);
17100 ;
17101 return 0;
17102}
17103_ACEOF
17104rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 17105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 17106 (eval $ac_link) 2>conftest.er1
f73dda09 17107 ac_status=$?
0628567a
JA
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
b80f6443 17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17112 (exit $ac_status); } &&
0628567a
JA
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
b80f6443 17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
b80f6443 17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17125 (exit $ac_status); }; }; then
bb70624e
JA
17126 bash_cv_func_inet_aton=yes
17127else
f73dda09 17128 echo "$as_me: failed program was:" >&5
0628567a
JA
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
f73dda09 17131bash_cv_func_inet_aton=no
bb70624e 17132fi
0628567a
JA
17133rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
bb70624e 17135fi
b80f6443 17136echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
f73dda09 17137echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
bb70624e 17138if test $bash_cv_func_inet_aton = yes; then
b80f6443 17139 cat >>confdefs.h <<\_ACEOF
bb70624e 17140#define HAVE_INET_ATON 1
b80f6443 17141_ACEOF
bb70624e 17142
f73dda09 17143else
0628567a
JA
17144 case $LIBOBJS in
17145 "inet_aton.$ac_objext" | \
17146 *" inet_aton.$ac_objext" | \
17147 "inet_aton.$ac_objext "* | \
17148 *" inet_aton.$ac_objext "* ) ;;
17149 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
17150esac
17151
bb70624e
JA
17152fi
17153
17154fi
17155
17156case "$host_os" in
f73dda09 17157irix4*)
b80f6443 17158echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
f73dda09
JA
17159echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
17160if test "${ac_cv_lib_sun_getpwent+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 17162else
f73dda09 17163 ac_check_lib_save_LIBS=$LIBS
bb70624e 17164LIBS="-lsun $LIBS"
f73dda09 17165cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
f73dda09 17171
bb70624e 17172/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
17173#ifdef __cplusplus
17174extern "C"
17175#endif
bb70624e 17176/* We use char because int might match the return type of a gcc2
f73dda09
JA
17177 builtin and then its argument prototype would still apply. */
17178char getpwent ();
17179int
17180main ()
17181{
17182getpwent ();
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 17188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 17189 (eval $ac_link) 2>conftest.er1
f73dda09 17190 ac_status=$?
0628567a
JA
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
b80f6443 17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17195 (exit $ac_status); } &&
0628567a
JA
17196 { ac_try='test -z "$ac_c_werror_flag"
17197 || test ! -s conftest.err'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest$ac_exeext'
b80f6443 17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
b80f6443 17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17208 (exit $ac_status); }; }; then
17209 ac_cv_lib_sun_getpwent=yes
17210else
17211 echo "$as_me: failed program was:" >&5
0628567a
JA
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
f73dda09
JA
17214ac_cv_lib_sun_getpwent=no
17215fi
0628567a
JA
17216rm -f conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
17218LIBS=$ac_check_lib_save_LIBS
17219fi
b80f6443 17220echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
f73dda09
JA
17221echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
17222if test $ac_cv_lib_sun_getpwent = yes; then
b80f6443 17223 cat >>confdefs.h <<_ACEOF
f73dda09 17224#define HAVE_LIBSUN 1
b80f6443 17225_ACEOF
bb70624e
JA
17226
17227 LIBS="-lsun $LIBS"
17228
bb70624e
JA
17229fi
17230 ;;
17231esac
ccc6cda3 17232
d166f048 17233if test "$ac_cv_func_getpeername" = no; then
f73dda09 17234
ccc6cda3
JA
17235if test "X$bash_cv_have_socklib" = "X"; then
17236_bash_needmsg=
17237else
b80f6443 17238echo "$as_me:$LINENO: checking for socket library" >&5
f73dda09 17239echo $ECHO_N "checking for socket library... $ECHO_C" >&6
ccc6cda3
JA
17240_bash_needmsg=yes
17241fi
f73dda09
JA
17242if test "${bash_cv_have_socklib+set}" = set; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17244else
b80f6443 17245 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
f73dda09
JA
17246echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
17247if test "${ac_cv_lib_socket_getpeername+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17249else
f73dda09 17250 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 17251LIBS="-lsocket -lnsl $LIBS"
f73dda09 17252cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17253/* confdefs.h. */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h. */
f73dda09 17258
ccc6cda3 17259/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
17260#ifdef __cplusplus
17261extern "C"
17262#endif
ccc6cda3 17263/* We use char because int might match the return type of a gcc2
f73dda09
JA
17264 builtin and then its argument prototype would still apply. */
17265char getpeername ();
17266int
17267main ()
17268{
17269getpeername ();
17270 ;
17271 return 0;
17272}
17273_ACEOF
17274rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 17275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 17276 (eval $ac_link) 2>conftest.er1
f73dda09 17277 ac_status=$?
0628567a
JA
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
b80f6443 17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17282 (exit $ac_status); } &&
0628567a
JA
17283 { ac_try='test -z "$ac_c_werror_flag"
17284 || test ! -s conftest.err'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; } &&
17290 { ac_try='test -s conftest$ac_exeext'
b80f6443 17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
b80f6443 17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17295 (exit $ac_status); }; }; then
17296 ac_cv_lib_socket_getpeername=yes
17297else
17298 echo "$as_me: failed program was:" >&5
0628567a
JA
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
f73dda09
JA
17301ac_cv_lib_socket_getpeername=no
17302fi
0628567a
JA
17303rm -f conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
17305LIBS=$ac_check_lib_save_LIBS
17306fi
b80f6443 17307echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
f73dda09
JA
17308echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
17309if test $ac_cv_lib_socket_getpeername = yes; then
ccc6cda3
JA
17310 bash_cv_have_socklib=yes
17311else
f73dda09 17312 bash_cv_have_socklib=no
ccc6cda3
JA
17313fi
17314
17315fi
17316
17317if test "X$_bash_needmsg" = Xyes; then
b80f6443 17318 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
f73dda09 17319echo "${ECHO_T}$bash_cv_have_socklib" >&6
ccc6cda3
JA
17320 _bash_needmsg=
17321fi
17322if test $bash_cv_have_socklib = yes; then
17323 # check for libnsl, add it to LIBS if present
17324 if test "X$bash_cv_have_libnsl" = "X"; then
17325 _bash_needmsg=
17326 else
b80f6443 17327 echo "$as_me:$LINENO: checking for libnsl" >&5
f73dda09 17328echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
ccc6cda3
JA
17329 _bash_needmsg=yes
17330 fi
f73dda09
JA
17331 if test "${bash_cv_have_libnsl+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17333else
b80f6443 17334 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
f73dda09
JA
17335echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
17336if test "${ac_cv_lib_nsl_t_open+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17338else
f73dda09 17339 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 17340LIBS="-lnsl $LIBS"
f73dda09 17341cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17342/* confdefs.h. */
17343_ACEOF
17344cat confdefs.h >>conftest.$ac_ext
17345cat >>conftest.$ac_ext <<_ACEOF
17346/* end confdefs.h. */
f73dda09 17347
ccc6cda3 17348/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
17349#ifdef __cplusplus
17350extern "C"
17351#endif
ccc6cda3 17352/* We use char because int might match the return type of a gcc2
f73dda09
JA
17353 builtin and then its argument prototype would still apply. */
17354char t_open ();
17355int
17356main ()
17357{
17358t_open ();
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 17364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 17365 (eval $ac_link) 2>conftest.er1
f73dda09 17366 ac_status=$?
0628567a
JA
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
b80f6443 17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17371 (exit $ac_status); } &&
0628567a
JA
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest$ac_exeext'
b80f6443 17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
b80f6443 17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17384 (exit $ac_status); }; }; then
17385 ac_cv_lib_nsl_t_open=yes
17386else
17387 echo "$as_me: failed program was:" >&5
0628567a
JA
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
f73dda09
JA
17390ac_cv_lib_nsl_t_open=no
17391fi
0628567a
JA
17392rm -f conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
17394LIBS=$ac_check_lib_save_LIBS
17395fi
b80f6443 17396echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
f73dda09
JA
17397echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
17398if test $ac_cv_lib_nsl_t_open = yes; then
ccc6cda3
JA
17399 bash_cv_have_libnsl=yes
17400else
f73dda09 17401 bash_cv_have_libnsl=no
ccc6cda3
JA
17402fi
17403
17404fi
17405
17406 if test "X$_bash_needmsg" = Xyes; then
b80f6443 17407 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
f73dda09 17408echo "${ECHO_T}$bash_cv_have_libnsl" >&6
ccc6cda3
JA
17409 _bash_needmsg=
17410 fi
17411 if test $bash_cv_have_libnsl = yes; then
17412 LIBS="-lsocket -lnsl $LIBS"
17413 else
17414 LIBS="-lsocket $LIBS"
17415 fi
b80f6443 17416 cat >>confdefs.h <<\_ACEOF
ccc6cda3 17417#define HAVE_LIBSOCKET 1
b80f6443 17418_ACEOF
ccc6cda3 17419
b80f6443 17420 cat >>confdefs.h <<\_ACEOF
ccc6cda3 17421#define HAVE_GETPEERNAME 1
b80f6443 17422_ACEOF
ccc6cda3
JA
17423
17424fi
17425
bb70624e
JA
17426fi
17427if test "$ac_cv_func_gethostbyname" = no; then
17428 if test "X$bash_cv_have_gethostbyname" = "X"; then
17429_bash_needmsg=yes
17430else
b80f6443 17431echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
f73dda09 17432echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
bb70624e
JA
17433_bash_needmsg=
17434fi
f73dda09
JA
17435if test "${bash_cv_have_gethostbyname+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 17437else
f73dda09 17438 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17439/* confdefs.h. */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h. */
bb70624e 17444#include <netdb.h>
f73dda09
JA
17445int
17446main ()
17447{
bb70624e
JA
17448 struct hostent *hp;
17449 hp = gethostbyname("localhost");
17450
f73dda09
JA
17451 ;
17452 return 0;
17453}
17454_ACEOF
17455rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 17456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 17457 (eval $ac_link) 2>conftest.er1
f73dda09 17458 ac_status=$?
0628567a
JA
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
b80f6443 17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17463 (exit $ac_status); } &&
0628567a
JA
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest$ac_exeext'
b80f6443 17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
b80f6443 17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17476 (exit $ac_status); }; }; then
bb70624e
JA
17477 bash_cv_have_gethostbyname=yes
17478else
f73dda09 17479 echo "$as_me: failed program was:" >&5
0628567a
JA
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
f73dda09
JA
17482bash_cv_have_gethostbyname=no
17483fi
0628567a
JA
17484rm -f conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
17486
17487fi
17488
17489if test "X$_bash_needmsg" = Xyes; then
b80f6443 17490 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
f73dda09
JA
17491echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
17492fi
b80f6443 17493echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
f73dda09
JA
17494echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
17495if test "$bash_cv_have_gethostbyname" = yes; then
b80f6443 17496cat >>confdefs.h <<\_ACEOF
f73dda09 17497#define HAVE_GETHOSTBYNAME 1
b80f6443 17498_ACEOF
f73dda09
JA
17499
17500fi
17501
17502fi
17503
b80f6443 17504echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
f73dda09
JA
17505echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17506if test "${ac_cv_type_uid_t+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508else
17509 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
f73dda09
JA
17515#include <sys/types.h>
17516
17517_ACEOF
17518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 17519 $EGREP "uid_t" >/dev/null 2>&1; then
f73dda09
JA
17520 ac_cv_type_uid_t=yes
17521else
17522 ac_cv_type_uid_t=no
17523fi
17524rm -f conftest*
17525
17526fi
b80f6443 17527echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
f73dda09
JA
17528echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17529if test $ac_cv_type_uid_t = no; then
17530
b80f6443 17531cat >>confdefs.h <<\_ACEOF
f73dda09 17532#define uid_t int
b80f6443
JA
17533_ACEOF
17534
f73dda09 17535
b80f6443 17536cat >>confdefs.h <<\_ACEOF
f73dda09 17537#define gid_t int
b80f6443 17538_ACEOF
f73dda09
JA
17539
17540fi
17541
b80f6443 17542echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
f73dda09
JA
17543echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
17544if test "${ac_cv_type_getgroups+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546else
17547 if test "$cross_compiling" = yes; then
17548 ac_cv_type_getgroups=cross
17549else
17550 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17551/* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
f73dda09
JA
17556/* Thanks to Mike Rendell for this test. */
17557#include <sys/types.h>
17558#define NGID 256
17559#undef MAX
17560#define MAX(x, y) ((x) > (y) ? (x) : (y))
17561
17562int
17563main ()
17564{
17565 gid_t gidset[NGID];
17566 int i, n;
17567 union { gid_t gval; long lval; } val;
17568
17569 val.lval = -1;
17570 for (i = 0; i < NGID; i++)
17571 gidset[i] = val.gval;
17572 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
0628567a 17573 gidset);
f73dda09
JA
17574 /* Exit non-zero if getgroups seems to require an array of ints. This
17575 happens when gid_t is short but getgroups modifies an array of ints. */
17576 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
17577}
17578_ACEOF
17579rm -f conftest$ac_exeext
b80f6443 17580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
17581 (eval $ac_link) 2>&5
17582 ac_status=$?
b80f6443 17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
b80f6443 17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17589 (exit $ac_status); }; }; then
17590 ac_cv_type_getgroups=gid_t
17591else
17592 echo "$as_me: program exited with status $ac_status" >&5
17593echo "$as_me: failed program was:" >&5
0628567a
JA
17594sed 's/^/| /' conftest.$ac_ext >&5
17595
b80f6443 17596( exit $ac_status )
f73dda09
JA
17597ac_cv_type_getgroups=int
17598fi
0628567a 17599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
17600fi
17601if test $ac_cv_type_getgroups = cross; then
17602 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
f73dda09
JA
17608#include <unistd.h>
17609
17610_ACEOF
17611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 17612 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
f73dda09
JA
17613 ac_cv_type_getgroups=gid_t
17614else
17615 ac_cv_type_getgroups=int
bb70624e
JA
17616fi
17617rm -f conftest*
17618
17619fi
f73dda09 17620fi
b80f6443 17621echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
f73dda09
JA
17622echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17623
b80f6443 17624cat >>confdefs.h <<_ACEOF
f73dda09 17625#define GETGROUPS_T $ac_cv_type_getgroups
b80f6443
JA
17626_ACEOF
17627
f73dda09 17628
b80f6443 17629echo "$as_me:$LINENO: checking for off_t" >&5
f73dda09
JA
17630echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17631if test "${ac_cv_type_off_t+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17633else
17634 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
f73dda09
JA
17640$ac_includes_default
17641int
17642main ()
17643{
17644if ((off_t *) 0)
17645 return 0;
17646if (sizeof (off_t))
17647 return 0;
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext
b80f6443 17653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 17654 (eval $ac_compile) 2>conftest.er1
f73dda09 17655 ac_status=$?
0628567a
JA
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
b80f6443 17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17660 (exit $ac_status); } &&
0628567a
JA
17661 { ac_try='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
b80f6443 17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
b80f6443 17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17673 (exit $ac_status); }; }; then
17674 ac_cv_type_off_t=yes
17675else
17676 echo "$as_me: failed program was:" >&5
0628567a
JA
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
f73dda09
JA
17679ac_cv_type_off_t=no
17680fi
0628567a 17681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17682fi
b80f6443 17683echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
f73dda09
JA
17684echo "${ECHO_T}$ac_cv_type_off_t" >&6
17685if test $ac_cv_type_off_t = yes; then
17686 :
17687else
17688
b80f6443 17689cat >>confdefs.h <<_ACEOF
f73dda09 17690#define off_t long
b80f6443 17691_ACEOF
f73dda09
JA
17692
17693fi
17694
b80f6443 17695echo "$as_me:$LINENO: checking for mode_t" >&5
f73dda09
JA
17696echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17697if test "${ac_cv_type_mode_t+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
f73dda09
JA
17706$ac_includes_default
17707int
17708main ()
17709{
17710if ((mode_t *) 0)
17711 return 0;
17712if (sizeof (mode_t))
17713 return 0;
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext
b80f6443 17719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 17720 (eval $ac_compile) 2>conftest.er1
f73dda09 17721 ac_status=$?
0628567a
JA
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
b80f6443 17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17726 (exit $ac_status); } &&
0628567a
JA
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest.$ac_objext'
b80f6443 17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
b80f6443 17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17739 (exit $ac_status); }; }; then
17740 ac_cv_type_mode_t=yes
17741else
17742 echo "$as_me: failed program was:" >&5
0628567a
JA
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
f73dda09
JA
17745ac_cv_type_mode_t=no
17746fi
0628567a 17747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17748fi
b80f6443 17749echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
f73dda09
JA
17750echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17751if test $ac_cv_type_mode_t = yes; then
17752 :
17753else
bb70624e 17754
b80f6443 17755cat >>confdefs.h <<_ACEOF
f73dda09 17756#define mode_t int
b80f6443 17757_ACEOF
bb70624e
JA
17758
17759fi
17760
b80f6443 17761echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
f73dda09
JA
17762echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17763if test "${ac_cv_type_uid_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17765else
f73dda09 17766 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
ccc6cda3 17772#include <sys/types.h>
f73dda09
JA
17773
17774_ACEOF
ccc6cda3 17775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 17776 $EGREP "uid_t" >/dev/null 2>&1; then
ccc6cda3
JA
17777 ac_cv_type_uid_t=yes
17778else
ccc6cda3
JA
17779 ac_cv_type_uid_t=no
17780fi
17781rm -f conftest*
17782
17783fi
b80f6443 17784echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
f73dda09 17785echo "${ECHO_T}$ac_cv_type_uid_t" >&6
ccc6cda3 17786if test $ac_cv_type_uid_t = no; then
f73dda09 17787
b80f6443 17788cat >>confdefs.h <<\_ACEOF
ccc6cda3 17789#define uid_t int
b80f6443 17790_ACEOF
ccc6cda3 17791
b80f6443
JA
17792
17793cat >>confdefs.h <<\_ACEOF
ccc6cda3 17794#define gid_t int
b80f6443 17795_ACEOF
ccc6cda3
JA
17796
17797fi
17798
b80f6443 17799echo "$as_me:$LINENO: checking for pid_t" >&5
f73dda09
JA
17800echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17801if test "${ac_cv_type_pid_t+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17803else
f73dda09 17804 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
f73dda09
JA
17810$ac_includes_default
17811int
17812main ()
ccc6cda3 17813{
f73dda09
JA
17814if ((pid_t *) 0)
17815 return 0;
17816if (sizeof (pid_t))
17817 return 0;
17818 ;
17819 return 0;
ccc6cda3 17820}
f73dda09
JA
17821_ACEOF
17822rm -f conftest.$ac_objext
b80f6443 17823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 17824 (eval $ac_compile) 2>conftest.er1
f73dda09 17825 ac_status=$?
0628567a
JA
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
b80f6443 17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17830 (exit $ac_status); } &&
0628567a
JA
17831 { ac_try='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
b80f6443 17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
b80f6443 17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17843 (exit $ac_status); }; }; then
17844 ac_cv_type_pid_t=yes
ccc6cda3 17845else
f73dda09 17846 echo "$as_me: failed program was:" >&5
0628567a
JA
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
f73dda09 17849ac_cv_type_pid_t=no
ccc6cda3 17850fi
0628567a 17851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 17852fi
b80f6443 17853echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
f73dda09
JA
17854echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17855if test $ac_cv_type_pid_t = yes; then
17856 :
17857else
ccc6cda3 17858
b80f6443 17859cat >>confdefs.h <<_ACEOF
f73dda09 17860#define pid_t int
b80f6443 17861_ACEOF
f73dda09 17862
ccc6cda3 17863fi
ccc6cda3 17864
b80f6443 17865echo "$as_me:$LINENO: checking for size_t" >&5
f73dda09
JA
17866echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17867if test "${ac_cv_type_size_t+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17869else
17870 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17871/* confdefs.h. */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h. */
f73dda09
JA
17876$ac_includes_default
17877int
17878main ()
17879{
17880if ((size_t *) 0)
17881 return 0;
17882if (sizeof (size_t))
17883 return 0;
17884 ;
17885 return 0;
17886}
17887_ACEOF
17888rm -f conftest.$ac_objext
b80f6443 17889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 17890 (eval $ac_compile) 2>conftest.er1
f73dda09 17891 ac_status=$?
0628567a
JA
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
b80f6443 17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17896 (exit $ac_status); } &&
0628567a
JA
17897 { ac_try='test -z "$ac_c_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try='test -s conftest.$ac_objext'
b80f6443 17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
b80f6443 17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17909 (exit $ac_status); }; }; then
17910 ac_cv_type_size_t=yes
17911else
17912 echo "$as_me: failed program was:" >&5
0628567a
JA
17913sed 's/^/| /' conftest.$ac_ext >&5
17914
f73dda09 17915ac_cv_type_size_t=no
ccc6cda3 17916fi
0628567a 17917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 17918fi
b80f6443 17919echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
f73dda09
JA
17920echo "${ECHO_T}$ac_cv_type_size_t" >&6
17921if test $ac_cv_type_size_t = yes; then
17922 :
17923else
ccc6cda3 17924
b80f6443 17925cat >>confdefs.h <<_ACEOF
f73dda09 17926#define size_t unsigned
b80f6443 17927_ACEOF
ccc6cda3 17928
f73dda09 17929fi
ccc6cda3 17930
b80f6443 17931echo "$as_me:$LINENO: checking for ssize_t" >&5
f73dda09
JA
17932echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17933if test "${ac_cv_type_ssize_t+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 17935else
f73dda09 17936 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17937/* confdefs.h. */
17938_ACEOF
17939cat confdefs.h >>conftest.$ac_ext
17940cat >>conftest.$ac_ext <<_ACEOF
17941/* end confdefs.h. */
f73dda09
JA
17942$ac_includes_default
17943int
17944main ()
17945{
17946if ((ssize_t *) 0)
17947 return 0;
17948if (sizeof (ssize_t))
17949 return 0;
17950 ;
17951 return 0;
17952}
17953_ACEOF
17954rm -f conftest.$ac_objext
b80f6443 17955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 17956 (eval $ac_compile) 2>conftest.er1
f73dda09 17957 ac_status=$?
0628567a
JA
17958 grep -v '^ *+' conftest.er1 >conftest.err
17959 rm -f conftest.er1
17960 cat conftest.err >&5
b80f6443 17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 17962 (exit $ac_status); } &&
0628567a
JA
17963 { ac_try='test -z "$ac_c_werror_flag"
17964 || test ! -s conftest.err'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest.$ac_objext'
b80f6443 17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
b80f6443 17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
17975 (exit $ac_status); }; }; then
17976 ac_cv_type_ssize_t=yes
17977else
17978 echo "$as_me: failed program was:" >&5
0628567a
JA
17979sed 's/^/| /' conftest.$ac_ext >&5
17980
f73dda09
JA
17981ac_cv_type_ssize_t=no
17982fi
0628567a 17983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 17984fi
b80f6443 17985echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
f73dda09
JA
17986echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17987if test $ac_cv_type_ssize_t = yes; then
17988 :
ccc6cda3 17989else
ccc6cda3 17990
b80f6443 17991cat >>confdefs.h <<_ACEOF
f73dda09 17992#define ssize_t int
b80f6443 17993_ACEOF
ccc6cda3
JA
17994
17995fi
17996
b80f6443 17997echo "$as_me:$LINENO: checking for time_t" >&5
f73dda09
JA
17998echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17999if test "${ac_cv_type_time_t+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001else
18002 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18003/* confdefs.h. */
18004_ACEOF
18005cat confdefs.h >>conftest.$ac_ext
18006cat >>conftest.$ac_ext <<_ACEOF
18007/* end confdefs.h. */
f73dda09
JA
18008$ac_includes_default
18009int
18010main ()
18011{
18012if ((time_t *) 0)
18013 return 0;
18014if (sizeof (time_t))
18015 return 0;
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020rm -f conftest.$ac_objext
b80f6443 18021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18022 (eval $ac_compile) 2>conftest.er1
f73dda09 18023 ac_status=$?
0628567a
JA
18024 grep -v '^ *+' conftest.er1 >conftest.err
18025 rm -f conftest.er1
18026 cat conftest.err >&5
b80f6443 18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18028 (exit $ac_status); } &&
0628567a
JA
18029 { ac_try='test -z "$ac_c_werror_flag"
18030 || test ! -s conftest.err'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest.$ac_objext'
b80f6443 18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18038 (eval $ac_try) 2>&5
18039 ac_status=$?
b80f6443 18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18041 (exit $ac_status); }; }; then
18042 ac_cv_type_time_t=yes
ccc6cda3 18043else
f73dda09 18044 echo "$as_me: failed program was:" >&5
0628567a
JA
18045sed 's/^/| /' conftest.$ac_ext >&5
18046
f73dda09 18047ac_cv_type_time_t=no
ccc6cda3 18048fi
0628567a 18049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18050fi
b80f6443 18051echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
f73dda09
JA
18052echo "${ECHO_T}$ac_cv_type_time_t" >&6
18053if test $ac_cv_type_time_t = yes; then
18054 :
18055else
18056
b80f6443 18057cat >>confdefs.h <<_ACEOF
f73dda09 18058#define time_t long
b80f6443 18059_ACEOF
ccc6cda3
JA
18060
18061fi
18062
b80f6443
JA
18063
18064
18065echo "$as_me:$LINENO: checking for long long" >&5
f73dda09
JA
18066echo $ECHO_N "checking for long long... $ECHO_C" >&6
18067if test "${bash_cv_type_long_long+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 18069else
f73dda09 18070 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
ccc6cda3 18076
f73dda09
JA
18077long long ll = 1; int i = 63;
18078int
18079main ()
18080{
18081
18082long long llm = (long long) -1;
18083return ll << i | ll >> i | llm / ll | llm % ll;
18084
18085 ;
18086 return 0;
18087}
18088_ACEOF
18089rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 18090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 18091 (eval $ac_link) 2>conftest.er1
f73dda09 18092 ac_status=$?
0628567a
JA
18093 grep -v '^ *+' conftest.er1 >conftest.err
18094 rm -f conftest.er1
18095 cat conftest.err >&5
b80f6443 18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18097 (exit $ac_status); } &&
0628567a
JA
18098 { ac_try='test -z "$ac_c_werror_flag"
18099 || test ! -s conftest.err'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest$ac_exeext'
b80f6443 18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
b80f6443 18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18110 (exit $ac_status); }; }; then
18111 bash_cv_type_long_long='long long'
ccc6cda3 18112else
f73dda09 18113 echo "$as_me: failed program was:" >&5
0628567a
JA
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
f73dda09 18116bash_cv_type_long_long='long'
ccc6cda3 18117fi
0628567a
JA
18118rm -f conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 18120fi
b80f6443 18121echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
f73dda09
JA
18122echo "${ECHO_T}$bash_cv_type_long_long" >&6
18123if test "$bash_cv_type_long_long" = 'long long'; then
b80f6443 18124 cat >>confdefs.h <<\_ACEOF
f73dda09 18125#define HAVE_LONG_LONG 1
b80f6443 18126_ACEOF
ccc6cda3 18127
ccc6cda3
JA
18128fi
18129
b80f6443
JA
18130
18131echo "$as_me:$LINENO: checking for unsigned long long" >&5
f73dda09
JA
18132echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
18133if test "${bash_cv_type_unsigned_long_long+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18135else
18136 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
f73dda09
JA
18142
18143unsigned long long ull = 1; int i = 63;
18144int
18145main ()
18146{
18147
18148unsigned long long ullmax = (unsigned long long) -1;
18149return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18150
18151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 18156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 18157 (eval $ac_link) 2>conftest.er1
f73dda09 18158 ac_status=$?
0628567a
JA
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
b80f6443 18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18163 (exit $ac_status); } &&
0628567a
JA
18164 { ac_try='test -z "$ac_c_werror_flag"
18165 || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
b80f6443 18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
b80f6443 18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18176 (exit $ac_status); }; }; then
18177 bash_cv_type_unsigned_long_long='unsigned long long'
18178else
18179 echo "$as_me: failed program was:" >&5
0628567a
JA
18180sed 's/^/| /' conftest.$ac_ext >&5
18181
f73dda09
JA
18182bash_cv_type_unsigned_long_long='unsigned long'
18183fi
0628567a
JA
18184rm -f conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
f73dda09 18186fi
b80f6443 18187echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
f73dda09
JA
18188echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
18189if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
b80f6443 18190 cat >>confdefs.h <<\_ACEOF
f73dda09 18191#define HAVE_UNSIGNED_LONG_LONG 1
b80f6443 18192_ACEOF
ccc6cda3
JA
18193
18194fi
18195
b80f6443
JA
18196
18197echo "$as_me:$LINENO: checking return type of signal handlers" >&5
f73dda09
JA
18198echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
18199if test "${ac_cv_type_signal+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 18201else
f73dda09 18202 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
ccc6cda3 18208#include <sys/types.h>
f73dda09
JA
18209#include <signal.h>
18210#ifdef signal
18211# undef signal
ccc6cda3 18212#endif
f73dda09
JA
18213#ifdef __cplusplus
18214extern "C" void (*signal (int, void (*)(int)))(int);
18215#else
18216void (*signal ()) ();
18217#endif
18218
18219int
18220main ()
18221{
18222int i;
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext
b80f6443 18228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18229 (eval $ac_compile) 2>conftest.er1
f73dda09 18230 ac_status=$?
0628567a
JA
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
b80f6443 18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18235 (exit $ac_status); } &&
0628567a
JA
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
b80f6443 18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
b80f6443 18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18248 (exit $ac_status); }; }; then
18249 ac_cv_type_signal=void
ccc6cda3 18250else
f73dda09 18251 echo "$as_me: failed program was:" >&5
0628567a
JA
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
f73dda09 18254ac_cv_type_signal=int
ccc6cda3 18255fi
0628567a 18256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18257fi
b80f6443 18258echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
f73dda09
JA
18259echo "${ECHO_T}$ac_cv_type_signal" >&6
18260
b80f6443 18261cat >>confdefs.h <<_ACEOF
f73dda09 18262#define RETSIGTYPE $ac_cv_type_signal
b80f6443
JA
18263_ACEOF
18264
ccc6cda3 18265
b80f6443
JA
18266
18267echo "$as_me:$LINENO: checking for char" >&5
f73dda09
JA
18268echo $ECHO_N "checking for char... $ECHO_C" >&6
18269if test "${ac_cv_type_char+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271else
18272 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18273/* confdefs.h. */
18274_ACEOF
18275cat confdefs.h >>conftest.$ac_ext
18276cat >>conftest.$ac_ext <<_ACEOF
18277/* end confdefs.h. */
f73dda09
JA
18278$ac_includes_default
18279int
18280main ()
18281{
18282if ((char *) 0)
18283 return 0;
18284if (sizeof (char))
18285 return 0;
18286 ;
18287 return 0;
18288}
18289_ACEOF
18290rm -f conftest.$ac_objext
b80f6443 18291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18292 (eval $ac_compile) 2>conftest.er1
f73dda09 18293 ac_status=$?
0628567a
JA
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
b80f6443 18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18298 (exit $ac_status); } &&
0628567a
JA
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest.$ac_objext'
b80f6443 18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
b80f6443 18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18311 (exit $ac_status); }; }; then
18312 ac_cv_type_char=yes
18313else
18314 echo "$as_me: failed program was:" >&5
0628567a
JA
18315sed 's/^/| /' conftest.$ac_ext >&5
18316
f73dda09
JA
18317ac_cv_type_char=no
18318fi
0628567a 18319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18320fi
b80f6443 18321echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
f73dda09
JA
18322echo "${ECHO_T}$ac_cv_type_char" >&6
18323
b80f6443 18324echo "$as_me:$LINENO: checking size of char" >&5
f73dda09
JA
18325echo $ECHO_N "checking size of char... $ECHO_C" >&6
18326if test "${ac_cv_sizeof_char+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329 if test "$ac_cv_type_char" = yes; then
b80f6443
JA
18330 # The cast to unsigned long works around a bug in the HP C Compiler
18331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18333 # This bug is HP SR number 8606223364.
f73dda09
JA
18334 if test "$cross_compiling" = yes; then
18335 # Depending upon the size, compute the lo and hi bounds.
18336cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
f73dda09
JA
18342$ac_includes_default
18343int
18344main ()
18345{
b80f6443
JA
18346static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18347test_array [0] = 0
18348
f73dda09
JA
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext
b80f6443 18354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18355 (eval $ac_compile) 2>conftest.er1
f73dda09 18356 ac_status=$?
0628567a
JA
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
b80f6443 18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18361 (exit $ac_status); } &&
0628567a
JA
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
b80f6443 18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
b80f6443 18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18374 (exit $ac_status); }; }; then
18375 ac_lo=0 ac_mid=0
18376 while :; do
18377 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
f73dda09
JA
18383$ac_includes_default
18384int
18385main ()
18386{
b80f6443
JA
18387static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18388test_array [0] = 0
18389
f73dda09
JA
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394rm -f conftest.$ac_objext
b80f6443 18395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18396 (eval $ac_compile) 2>conftest.er1
f73dda09 18397 ac_status=$?
0628567a
JA
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
b80f6443 18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18402 (exit $ac_status); } &&
0628567a
JA
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
b80f6443 18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
b80f6443 18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18415 (exit $ac_status); }; }; then
18416 ac_hi=$ac_mid; break
18417else
18418 echo "$as_me: failed program was:" >&5
0628567a
JA
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
b80f6443 18421ac_lo=`expr $ac_mid + 1`
0628567a
JA
18422 if test $ac_lo -le $ac_mid; then
18423 ac_lo= ac_hi=
18424 break
18425 fi
18426 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 18427fi
0628567a 18428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18429 done
18430else
18431 echo "$as_me: failed program was:" >&5
0628567a
JA
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
b80f6443 18434cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18435/* confdefs.h. */
18436_ACEOF
18437cat confdefs.h >>conftest.$ac_ext
18438cat >>conftest.$ac_ext <<_ACEOF
18439/* end confdefs.h. */
b80f6443
JA
18440$ac_includes_default
18441int
18442main ()
18443{
18444static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18445test_array [0] = 0
18446
18447 ;
18448 return 0;
18449}
18450_ACEOF
18451rm -f conftest.$ac_objext
18452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18453 (eval $ac_compile) 2>conftest.er1
b80f6443 18454 ac_status=$?
0628567a
JA
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
b80f6443
JA
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
0628567a
JA
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_hi=-1 ac_mid=-1
f73dda09
JA
18474 while :; do
18475 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18476/* confdefs.h. */
18477_ACEOF
18478cat confdefs.h >>conftest.$ac_ext
18479cat >>conftest.$ac_ext <<_ACEOF
18480/* end confdefs.h. */
f73dda09
JA
18481$ac_includes_default
18482int
18483main ()
18484{
b80f6443
JA
18485static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18486test_array [0] = 0
18487
f73dda09
JA
18488 ;
18489 return 0;
18490}
18491_ACEOF
18492rm -f conftest.$ac_objext
b80f6443 18493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18494 (eval $ac_compile) 2>conftest.er1
f73dda09 18495 ac_status=$?
0628567a
JA
18496 grep -v '^ *+' conftest.er1 >conftest.err
18497 rm -f conftest.er1
18498 cat conftest.err >&5
b80f6443 18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18500 (exit $ac_status); } &&
0628567a
JA
18501 { ac_try='test -z "$ac_c_werror_flag"
18502 || test ! -s conftest.err'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest.$ac_objext'
b80f6443 18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18510 (eval $ac_try) 2>&5
18511 ac_status=$?
b80f6443 18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18513 (exit $ac_status); }; }; then
18514 ac_lo=$ac_mid; break
18515else
18516 echo "$as_me: failed program was:" >&5
0628567a
JA
18517sed 's/^/| /' conftest.$ac_ext >&5
18518
b80f6443 18519ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
18520 if test $ac_mid -le $ac_hi; then
18521 ac_lo= ac_hi=
18522 break
18523 fi
18524 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 18525fi
0628567a 18526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18527 done
b80f6443
JA
18528else
18529 echo "$as_me: failed program was:" >&5
0628567a
JA
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
b80f6443
JA
18532ac_lo= ac_hi=
18533fi
0628567a 18534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18535fi
0628567a 18536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18537# Binary search between lo and hi bounds.
18538while test "x$ac_lo" != "x$ac_hi"; do
18539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18540 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
f73dda09
JA
18546$ac_includes_default
18547int
18548main ()
18549{
b80f6443
JA
18550static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18551test_array [0] = 0
18552
f73dda09
JA
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
b80f6443 18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18559 (eval $ac_compile) 2>conftest.er1
f73dda09 18560 ac_status=$?
0628567a
JA
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
b80f6443 18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18565 (exit $ac_status); } &&
0628567a
JA
18566 { ac_try='test -z "$ac_c_werror_flag"
18567 || test ! -s conftest.err'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try='test -s conftest.$ac_objext'
b80f6443 18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
b80f6443 18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18578 (exit $ac_status); }; }; then
18579 ac_hi=$ac_mid
18580else
18581 echo "$as_me: failed program was:" >&5
0628567a
JA
18582sed 's/^/| /' conftest.$ac_ext >&5
18583
b80f6443 18584ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 18585fi
0628567a 18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18587done
b80f6443
JA
18588case $ac_lo in
18589?*) ac_cv_sizeof_char=$ac_lo;;
0628567a
JA
18590'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18591See \`config.log' for more details." >&5
18592echo "$as_me: error: cannot compute sizeof (char), 77
18593See \`config.log' for more details." >&2;}
b80f6443
JA
18594 { (exit 1); exit 1; }; } ;;
18595esac
ccc6cda3 18596else
f73dda09 18597 if test "$cross_compiling" = yes; then
0628567a
JA
18598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18599See \`config.log' for more details." >&5
18600echo "$as_me: error: cannot run test program while cross compiling
18601See \`config.log' for more details." >&2;}
f73dda09
JA
18602 { (exit 1); exit 1; }; }
18603else
18604 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18605/* confdefs.h. */
18606_ACEOF
18607cat confdefs.h >>conftest.$ac_ext
18608cat >>conftest.$ac_ext <<_ACEOF
18609/* end confdefs.h. */
f73dda09 18610$ac_includes_default
b80f6443
JA
18611long longval () { return (long) (sizeof (char)); }
18612unsigned long ulongval () { return (long) (sizeof (char)); }
18613#include <stdio.h>
18614#include <stdlib.h>
f73dda09
JA
18615int
18616main ()
18617{
b80f6443
JA
18618
18619 FILE *f = fopen ("conftest.val", "w");
18620 if (! f)
18621 exit (1);
18622 if (((long) (sizeof (char))) < 0)
18623 {
18624 long i = longval ();
18625 if (i != ((long) (sizeof (char))))
18626 exit (1);
18627 fprintf (f, "%ld\n", i);
18628 }
18629 else
18630 {
18631 unsigned long i = ulongval ();
18632 if (i != ((long) (sizeof (char))))
18633 exit (1);
18634 fprintf (f, "%lu\n", i);
18635 }
18636 exit (ferror (f) || fclose (f) != 0);
18637
f73dda09
JA
18638 ;
18639 return 0;
18640}
18641_ACEOF
18642rm -f conftest$ac_exeext
b80f6443 18643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
18644 (eval $ac_link) 2>&5
18645 ac_status=$?
b80f6443 18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18649 (eval $ac_try) 2>&5
18650 ac_status=$?
b80f6443 18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18652 (exit $ac_status); }; }; then
18653 ac_cv_sizeof_char=`cat conftest.val`
ccc6cda3 18654else
f73dda09
JA
18655 echo "$as_me: program exited with status $ac_status" >&5
18656echo "$as_me: failed program was:" >&5
0628567a
JA
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
b80f6443 18659( exit $ac_status )
0628567a
JA
18660{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18661See \`config.log' for more details." >&5
18662echo "$as_me: error: cannot compute sizeof (char), 77
18663See \`config.log' for more details." >&2;}
b80f6443 18664 { (exit 1); exit 1; }; }
ccc6cda3 18665fi
0628567a 18666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18667fi
f73dda09
JA
18668fi
18669rm -f conftest.val
18670else
18671 ac_cv_sizeof_char=0
18672fi
18673fi
b80f6443 18674echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
f73dda09 18675echo "${ECHO_T}$ac_cv_sizeof_char" >&6
b80f6443 18676cat >>confdefs.h <<_ACEOF
f73dda09 18677#define SIZEOF_CHAR $ac_cv_sizeof_char
b80f6443 18678_ACEOF
ccc6cda3 18679
b80f6443
JA
18680
18681echo "$as_me:$LINENO: checking for short" >&5
f73dda09
JA
18682echo $ECHO_N "checking for short... $ECHO_C" >&6
18683if test "${ac_cv_type_short+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685else
18686 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
f73dda09
JA
18692$ac_includes_default
18693int
18694main ()
18695{
18696if ((short *) 0)
18697 return 0;
18698if (sizeof (short))
18699 return 0;
18700 ;
18701 return 0;
18702}
18703_ACEOF
18704rm -f conftest.$ac_objext
b80f6443 18705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18706 (eval $ac_compile) 2>conftest.er1
f73dda09 18707 ac_status=$?
0628567a
JA
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
b80f6443 18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18712 (exit $ac_status); } &&
0628567a
JA
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
b80f6443 18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
b80f6443 18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18725 (exit $ac_status); }; }; then
18726 ac_cv_type_short=yes
18727else
18728 echo "$as_me: failed program was:" >&5
0628567a
JA
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
f73dda09
JA
18731ac_cv_type_short=no
18732fi
0628567a 18733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18734fi
b80f6443 18735echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
f73dda09
JA
18736echo "${ECHO_T}$ac_cv_type_short" >&6
18737
b80f6443 18738echo "$as_me:$LINENO: checking size of short" >&5
f73dda09
JA
18739echo $ECHO_N "checking size of short... $ECHO_C" >&6
18740if test "${ac_cv_sizeof_short+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 if test "$ac_cv_type_short" = yes; then
b80f6443
JA
18744 # The cast to unsigned long works around a bug in the HP C Compiler
18745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18747 # This bug is HP SR number 8606223364.
f73dda09
JA
18748 if test "$cross_compiling" = yes; then
18749 # Depending upon the size, compute the lo and hi bounds.
18750cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
f73dda09
JA
18756$ac_includes_default
18757int
18758main ()
18759{
b80f6443
JA
18760static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18761test_array [0] = 0
18762
f73dda09
JA
18763 ;
18764 return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext
b80f6443 18768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18769 (eval $ac_compile) 2>conftest.er1
f73dda09 18770 ac_status=$?
0628567a
JA
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
b80f6443 18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18775 (exit $ac_status); } &&
0628567a
JA
18776 { ac_try='test -z "$ac_c_werror_flag"
18777 || test ! -s conftest.err'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest.$ac_objext'
b80f6443 18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
b80f6443 18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18788 (exit $ac_status); }; }; then
18789 ac_lo=0 ac_mid=0
18790 while :; do
18791 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18792/* confdefs.h. */
18793_ACEOF
18794cat confdefs.h >>conftest.$ac_ext
18795cat >>conftest.$ac_ext <<_ACEOF
18796/* end confdefs.h. */
f73dda09
JA
18797$ac_includes_default
18798int
18799main ()
18800{
b80f6443
JA
18801static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18802test_array [0] = 0
18803
f73dda09
JA
18804 ;
18805 return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext
b80f6443 18809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18810 (eval $ac_compile) 2>conftest.er1
f73dda09 18811 ac_status=$?
0628567a
JA
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
b80f6443 18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18816 (exit $ac_status); } &&
0628567a
JA
18817 { ac_try='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
b80f6443 18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
b80f6443 18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18829 (exit $ac_status); }; }; then
18830 ac_hi=$ac_mid; break
18831else
18832 echo "$as_me: failed program was:" >&5
0628567a
JA
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
b80f6443 18835ac_lo=`expr $ac_mid + 1`
0628567a
JA
18836 if test $ac_lo -le $ac_mid; then
18837 ac_lo= ac_hi=
18838 break
18839 fi
18840 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 18841fi
0628567a 18842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18843 done
18844else
18845 echo "$as_me: failed program was:" >&5
0628567a
JA
18846sed 's/^/| /' conftest.$ac_ext >&5
18847
b80f6443 18848cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18849/* confdefs.h. */
18850_ACEOF
18851cat confdefs.h >>conftest.$ac_ext
18852cat >>conftest.$ac_ext <<_ACEOF
18853/* end confdefs.h. */
b80f6443
JA
18854$ac_includes_default
18855int
18856main ()
18857{
18858static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18859test_array [0] = 0
18860
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865rm -f conftest.$ac_objext
18866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18867 (eval $ac_compile) 2>conftest.er1
b80f6443 18868 ac_status=$?
0628567a
JA
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -f conftest.er1
18871 cat conftest.err >&5
b80f6443
JA
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } &&
0628567a
JA
18874 { ac_try='test -z "$ac_c_werror_flag"
18875 || test ! -s conftest.err'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_hi=-1 ac_mid=-1
f73dda09
JA
18888 while :; do
18889 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18890/* confdefs.h. */
18891_ACEOF
18892cat confdefs.h >>conftest.$ac_ext
18893cat >>conftest.$ac_ext <<_ACEOF
18894/* end confdefs.h. */
f73dda09
JA
18895$ac_includes_default
18896int
18897main ()
18898{
b80f6443
JA
18899static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18900test_array [0] = 0
18901
f73dda09
JA
18902 ;
18903 return 0;
18904}
18905_ACEOF
18906rm -f conftest.$ac_objext
b80f6443 18907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18908 (eval $ac_compile) 2>conftest.er1
f73dda09 18909 ac_status=$?
0628567a
JA
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
b80f6443 18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18914 (exit $ac_status); } &&
0628567a
JA
18915 { ac_try='test -z "$ac_c_werror_flag"
18916 || test ! -s conftest.err'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest.$ac_objext'
b80f6443 18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
b80f6443 18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18927 (exit $ac_status); }; }; then
18928 ac_lo=$ac_mid; break
18929else
18930 echo "$as_me: failed program was:" >&5
0628567a
JA
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
b80f6443 18933ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
18934 if test $ac_mid -le $ac_hi; then
18935 ac_lo= ac_hi=
18936 break
18937 fi
18938 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 18939fi
0628567a 18940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18941 done
b80f6443
JA
18942else
18943 echo "$as_me: failed program was:" >&5
0628567a
JA
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
b80f6443
JA
18946ac_lo= ac_hi=
18947fi
0628567a 18948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 18949fi
0628567a 18950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
18951# Binary search between lo and hi bounds.
18952while test "x$ac_lo" != "x$ac_hi"; do
18953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18954 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18955/* confdefs.h. */
18956_ACEOF
18957cat confdefs.h >>conftest.$ac_ext
18958cat >>conftest.$ac_ext <<_ACEOF
18959/* end confdefs.h. */
f73dda09
JA
18960$ac_includes_default
18961int
18962main ()
18963{
b80f6443
JA
18964static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18965test_array [0] = 0
18966
f73dda09
JA
18967 ;
18968 return 0;
18969}
18970_ACEOF
18971rm -f conftest.$ac_objext
b80f6443 18972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 18973 (eval $ac_compile) 2>conftest.er1
f73dda09 18974 ac_status=$?
0628567a
JA
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
b80f6443 18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18979 (exit $ac_status); } &&
0628567a
JA
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest.$ac_objext'
b80f6443 18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
b80f6443 18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18992 (exit $ac_status); }; }; then
18993 ac_hi=$ac_mid
18994else
18995 echo "$as_me: failed program was:" >&5
0628567a
JA
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
b80f6443 18998ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 18999fi
0628567a 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19001done
b80f6443
JA
19002case $ac_lo in
19003?*) ac_cv_sizeof_short=$ac_lo;;
0628567a
JA
19004'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
19005See \`config.log' for more details." >&5
19006echo "$as_me: error: cannot compute sizeof (short), 77
19007See \`config.log' for more details." >&2;}
b80f6443
JA
19008 { (exit 1); exit 1; }; } ;;
19009esac
f73dda09
JA
19010else
19011 if test "$cross_compiling" = yes; then
0628567a
JA
19012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19013See \`config.log' for more details." >&5
19014echo "$as_me: error: cannot run test program while cross compiling
19015See \`config.log' for more details." >&2;}
f73dda09 19016 { (exit 1); exit 1; }; }
ccc6cda3 19017else
f73dda09 19018 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19019/* confdefs.h. */
19020_ACEOF
19021cat confdefs.h >>conftest.$ac_ext
19022cat >>conftest.$ac_ext <<_ACEOF
19023/* end confdefs.h. */
f73dda09 19024$ac_includes_default
b80f6443
JA
19025long longval () { return (long) (sizeof (short)); }
19026unsigned long ulongval () { return (long) (sizeof (short)); }
19027#include <stdio.h>
19028#include <stdlib.h>
f73dda09
JA
19029int
19030main ()
19031{
b80f6443
JA
19032
19033 FILE *f = fopen ("conftest.val", "w");
19034 if (! f)
19035 exit (1);
19036 if (((long) (sizeof (short))) < 0)
19037 {
19038 long i = longval ();
19039 if (i != ((long) (sizeof (short))))
19040 exit (1);
19041 fprintf (f, "%ld\n", i);
19042 }
19043 else
19044 {
19045 unsigned long i = ulongval ();
19046 if (i != ((long) (sizeof (short))))
19047 exit (1);
19048 fprintf (f, "%lu\n", i);
19049 }
19050 exit (ferror (f) || fclose (f) != 0);
19051
f73dda09
JA
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest$ac_exeext
b80f6443 19057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
19058 (eval $ac_link) 2>&5
19059 ac_status=$?
b80f6443 19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
b80f6443 19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19066 (exit $ac_status); }; }; then
19067 ac_cv_sizeof_short=`cat conftest.val`
ccc6cda3 19068else
f73dda09
JA
19069 echo "$as_me: program exited with status $ac_status" >&5
19070echo "$as_me: failed program was:" >&5
0628567a
JA
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
b80f6443 19073( exit $ac_status )
0628567a
JA
19074{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
19075See \`config.log' for more details." >&5
19076echo "$as_me: error: cannot compute sizeof (short), 77
19077See \`config.log' for more details." >&2;}
b80f6443 19078 { (exit 1); exit 1; }; }
ccc6cda3 19079fi
0628567a 19080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19081fi
ccc6cda3 19082fi
f73dda09 19083rm -f conftest.val
ccc6cda3 19084else
f73dda09 19085 ac_cv_sizeof_short=0
ccc6cda3 19086fi
ccc6cda3 19087fi
b80f6443 19088echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
f73dda09 19089echo "${ECHO_T}$ac_cv_sizeof_short" >&6
b80f6443 19090cat >>confdefs.h <<_ACEOF
f73dda09 19091#define SIZEOF_SHORT $ac_cv_sizeof_short
b80f6443 19092_ACEOF
ccc6cda3 19093
b80f6443
JA
19094
19095echo "$as_me:$LINENO: checking for int" >&5
f73dda09
JA
19096echo $ECHO_N "checking for int... $ECHO_C" >&6
19097if test "${ac_cv_type_int+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19101/* confdefs.h. */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h. */
f73dda09
JA
19106$ac_includes_default
19107int
19108main ()
19109{
19110if ((int *) 0)
19111 return 0;
19112if (sizeof (int))
19113 return 0;
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext
b80f6443 19119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19120 (eval $ac_compile) 2>conftest.er1
f73dda09 19121 ac_status=$?
0628567a
JA
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
b80f6443 19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19126 (exit $ac_status); } &&
0628567a
JA
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
b80f6443 19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
b80f6443 19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19139 (exit $ac_status); }; }; then
19140 ac_cv_type_int=yes
19141else
19142 echo "$as_me: failed program was:" >&5
0628567a
JA
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
f73dda09
JA
19145ac_cv_type_int=no
19146fi
0628567a 19147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19148fi
b80f6443 19149echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
f73dda09
JA
19150echo "${ECHO_T}$ac_cv_type_int" >&6
19151
b80f6443 19152echo "$as_me:$LINENO: checking size of int" >&5
f73dda09
JA
19153echo $ECHO_N "checking size of int... $ECHO_C" >&6
19154if test "${ac_cv_sizeof_int+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19156else
19157 if test "$ac_cv_type_int" = yes; then
b80f6443
JA
19158 # The cast to unsigned long works around a bug in the HP C Compiler
19159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19161 # This bug is HP SR number 8606223364.
f73dda09
JA
19162 if test "$cross_compiling" = yes; then
19163 # Depending upon the size, compute the lo and hi bounds.
19164cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
f73dda09
JA
19170$ac_includes_default
19171int
19172main ()
19173{
b80f6443
JA
19174static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19175test_array [0] = 0
19176
f73dda09
JA
19177 ;
19178 return 0;
19179}
19180_ACEOF
19181rm -f conftest.$ac_objext
b80f6443 19182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19183 (eval $ac_compile) 2>conftest.er1
f73dda09 19184 ac_status=$?
0628567a
JA
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
b80f6443 19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19189 (exit $ac_status); } &&
0628567a
JA
19190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest.$ac_objext'
b80f6443 19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
b80f6443 19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19202 (exit $ac_status); }; }; then
19203 ac_lo=0 ac_mid=0
19204 while :; do
19205 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
f73dda09
JA
19211$ac_includes_default
19212int
19213main ()
19214{
b80f6443
JA
19215static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19216test_array [0] = 0
19217
f73dda09
JA
19218 ;
19219 return 0;
19220}
19221_ACEOF
19222rm -f conftest.$ac_objext
b80f6443 19223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19224 (eval $ac_compile) 2>conftest.er1
f73dda09 19225 ac_status=$?
0628567a
JA
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
b80f6443 19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19230 (exit $ac_status); } &&
0628567a
JA
19231 { ac_try='test -z "$ac_c_werror_flag"
19232 || test ! -s conftest.err'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; } &&
19238 { ac_try='test -s conftest.$ac_objext'
b80f6443 19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
b80f6443 19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19243 (exit $ac_status); }; }; then
19244 ac_hi=$ac_mid; break
19245else
19246 echo "$as_me: failed program was:" >&5
0628567a
JA
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
b80f6443 19249ac_lo=`expr $ac_mid + 1`
0628567a
JA
19250 if test $ac_lo -le $ac_mid; then
19251 ac_lo= ac_hi=
19252 break
19253 fi
19254 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 19255fi
0628567a 19256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19257 done
19258else
19259 echo "$as_me: failed program was:" >&5
0628567a
JA
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
b80f6443 19262cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19263/* confdefs.h. */
19264_ACEOF
19265cat confdefs.h >>conftest.$ac_ext
19266cat >>conftest.$ac_ext <<_ACEOF
19267/* end confdefs.h. */
b80f6443
JA
19268$ac_includes_default
19269int
19270main ()
19271{
19272static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19273test_array [0] = 0
19274
19275 ;
19276 return 0;
19277}
19278_ACEOF
19279rm -f conftest.$ac_objext
19280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19281 (eval $ac_compile) 2>conftest.er1
b80f6443 19282 ac_status=$?
0628567a
JA
19283 grep -v '^ *+' conftest.er1 >conftest.err
19284 rm -f conftest.er1
19285 cat conftest.err >&5
b80f6443
JA
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
0628567a
JA
19288 { ac_try='test -z "$ac_c_werror_flag"
19289 || test ! -s conftest.err'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; } &&
19295 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_hi=-1 ac_mid=-1
f73dda09
JA
19302 while :; do
19303 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
f73dda09
JA
19309$ac_includes_default
19310int
19311main ()
19312{
b80f6443
JA
19313static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19314test_array [0] = 0
19315
f73dda09
JA
19316 ;
19317 return 0;
19318}
19319_ACEOF
19320rm -f conftest.$ac_objext
b80f6443 19321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19322 (eval $ac_compile) 2>conftest.er1
f73dda09 19323 ac_status=$?
0628567a
JA
19324 grep -v '^ *+' conftest.er1 >conftest.err
19325 rm -f conftest.er1
19326 cat conftest.err >&5
b80f6443 19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19328 (exit $ac_status); } &&
0628567a
JA
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
b80f6443 19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
b80f6443 19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19341 (exit $ac_status); }; }; then
19342 ac_lo=$ac_mid; break
19343else
19344 echo "$as_me: failed program was:" >&5
0628567a
JA
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
b80f6443 19347ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
19348 if test $ac_mid -le $ac_hi; then
19349 ac_lo= ac_hi=
19350 break
19351 fi
19352 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 19353fi
0628567a 19354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19355 done
b80f6443
JA
19356else
19357 echo "$as_me: failed program was:" >&5
0628567a
JA
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
b80f6443
JA
19360ac_lo= ac_hi=
19361fi
0628567a 19362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19363fi
0628567a 19364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19365# Binary search between lo and hi bounds.
19366while test "x$ac_lo" != "x$ac_hi"; do
19367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19368 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
f73dda09
JA
19374$ac_includes_default
19375int
19376main ()
19377{
b80f6443
JA
19378static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19379test_array [0] = 0
19380
f73dda09
JA
19381 ;
19382 return 0;
19383}
19384_ACEOF
19385rm -f conftest.$ac_objext
b80f6443 19386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a
JA
19387 (eval $ac_compile) 2>conftest.er1
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_c_werror_flag"
19395 || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
f73dda09 19398 ac_status=$?
b80f6443 19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0628567a
JA
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest.$ac_objext'
b80f6443 19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
b80f6443 19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19406 (exit $ac_status); }; }; then
19407 ac_hi=$ac_mid
19408else
19409 echo "$as_me: failed program was:" >&5
0628567a
JA
19410sed 's/^/| /' conftest.$ac_ext >&5
19411
b80f6443 19412ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 19413fi
0628567a 19414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19415done
b80f6443
JA
19416case $ac_lo in
19417?*) ac_cv_sizeof_int=$ac_lo;;
0628567a
JA
19418'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19419See \`config.log' for more details." >&5
19420echo "$as_me: error: cannot compute sizeof (int), 77
19421See \`config.log' for more details." >&2;}
b80f6443
JA
19422 { (exit 1); exit 1; }; } ;;
19423esac
f73dda09
JA
19424else
19425 if test "$cross_compiling" = yes; then
0628567a
JA
19426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19427See \`config.log' for more details." >&5
19428echo "$as_me: error: cannot run test program while cross compiling
19429See \`config.log' for more details." >&2;}
f73dda09 19430 { (exit 1); exit 1; }; }
ccc6cda3 19431else
f73dda09 19432 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
f73dda09 19438$ac_includes_default
b80f6443
JA
19439long longval () { return (long) (sizeof (int)); }
19440unsigned long ulongval () { return (long) (sizeof (int)); }
19441#include <stdio.h>
19442#include <stdlib.h>
f73dda09
JA
19443int
19444main ()
19445{
b80f6443
JA
19446
19447 FILE *f = fopen ("conftest.val", "w");
19448 if (! f)
19449 exit (1);
19450 if (((long) (sizeof (int))) < 0)
19451 {
19452 long i = longval ();
19453 if (i != ((long) (sizeof (int))))
19454 exit (1);
19455 fprintf (f, "%ld\n", i);
19456 }
19457 else
19458 {
19459 unsigned long i = ulongval ();
19460 if (i != ((long) (sizeof (int))))
19461 exit (1);
19462 fprintf (f, "%lu\n", i);
19463 }
19464 exit (ferror (f) || fclose (f) != 0);
19465
f73dda09
JA
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest$ac_exeext
b80f6443 19471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
19472 (eval $ac_link) 2>&5
19473 ac_status=$?
b80f6443 19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
b80f6443 19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19480 (exit $ac_status); }; }; then
19481 ac_cv_sizeof_int=`cat conftest.val`
ccc6cda3 19482else
f73dda09
JA
19483 echo "$as_me: program exited with status $ac_status" >&5
19484echo "$as_me: failed program was:" >&5
0628567a
JA
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
b80f6443 19487( exit $ac_status )
0628567a
JA
19488{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19489See \`config.log' for more details." >&5
19490echo "$as_me: error: cannot compute sizeof (int), 77
19491See \`config.log' for more details." >&2;}
b80f6443 19492 { (exit 1); exit 1; }; }
ccc6cda3 19493fi
0628567a 19494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19495fi
ccc6cda3 19496fi
f73dda09 19497rm -f conftest.val
ccc6cda3 19498else
f73dda09 19499 ac_cv_sizeof_int=0
ccc6cda3 19500fi
ccc6cda3 19501fi
b80f6443 19502echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
f73dda09 19503echo "${ECHO_T}$ac_cv_sizeof_int" >&6
b80f6443 19504cat >>confdefs.h <<_ACEOF
f73dda09 19505#define SIZEOF_INT $ac_cv_sizeof_int
b80f6443 19506_ACEOF
ccc6cda3 19507
b80f6443
JA
19508
19509echo "$as_me:$LINENO: checking for long" >&5
f73dda09
JA
19510echo $ECHO_N "checking for long... $ECHO_C" >&6
19511if test "${ac_cv_type_long+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 19513else
f73dda09 19514 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
f73dda09
JA
19520$ac_includes_default
19521int
19522main ()
19523{
19524if ((long *) 0)
19525 return 0;
19526if (sizeof (long))
19527 return 0;
19528 ;
19529 return 0;
19530}
19531_ACEOF
19532rm -f conftest.$ac_objext
b80f6443 19533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19534 (eval $ac_compile) 2>conftest.er1
f73dda09 19535 ac_status=$?
0628567a
JA
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
b80f6443 19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19540 (exit $ac_status); } &&
0628567a
JA
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
b80f6443 19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
b80f6443 19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19553 (exit $ac_status); }; }; then
19554 ac_cv_type_long=yes
19555else
19556 echo "$as_me: failed program was:" >&5
0628567a
JA
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
f73dda09
JA
19559ac_cv_type_long=no
19560fi
0628567a 19561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19562fi
b80f6443 19563echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
f73dda09
JA
19564echo "${ECHO_T}$ac_cv_type_long" >&6
19565
b80f6443 19566echo "$as_me:$LINENO: checking size of long" >&5
f73dda09
JA
19567echo $ECHO_N "checking size of long... $ECHO_C" >&6
19568if test "${ac_cv_sizeof_long+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570else
19571 if test "$ac_cv_type_long" = yes; then
b80f6443
JA
19572 # The cast to unsigned long works around a bug in the HP C Compiler
19573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19575 # This bug is HP SR number 8606223364.
f73dda09
JA
19576 if test "$cross_compiling" = yes; then
19577 # Depending upon the size, compute the lo and hi bounds.
19578cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
f73dda09
JA
19584$ac_includes_default
19585int
19586main ()
19587{
b80f6443
JA
19588static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19589test_array [0] = 0
19590
f73dda09
JA
19591 ;
19592 return 0;
19593}
19594_ACEOF
19595rm -f conftest.$ac_objext
b80f6443 19596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19597 (eval $ac_compile) 2>conftest.er1
f73dda09 19598 ac_status=$?
0628567a
JA
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
b80f6443 19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19603 (exit $ac_status); } &&
0628567a
JA
19604 { ac_try='test -z "$ac_c_werror_flag"
19605 || test ! -s conftest.err'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
b80f6443 19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
b80f6443 19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19616 (exit $ac_status); }; }; then
19617 ac_lo=0 ac_mid=0
19618 while :; do
19619 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
f73dda09
JA
19625$ac_includes_default
19626int
19627main ()
19628{
b80f6443
JA
19629static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19630test_array [0] = 0
19631
f73dda09
JA
19632 ;
19633 return 0;
19634}
19635_ACEOF
19636rm -f conftest.$ac_objext
b80f6443 19637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19638 (eval $ac_compile) 2>conftest.er1
f73dda09 19639 ac_status=$?
0628567a
JA
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
b80f6443 19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19644 (exit $ac_status); } &&
0628567a
JA
19645 { ac_try='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
b80f6443 19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
b80f6443 19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19657 (exit $ac_status); }; }; then
19658 ac_hi=$ac_mid; break
19659else
19660 echo "$as_me: failed program was:" >&5
0628567a
JA
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
b80f6443 19663ac_lo=`expr $ac_mid + 1`
0628567a
JA
19664 if test $ac_lo -le $ac_mid; then
19665 ac_lo= ac_hi=
19666 break
19667 fi
19668 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 19669fi
0628567a 19670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19671 done
ccc6cda3 19672else
f73dda09 19673 echo "$as_me: failed program was:" >&5
0628567a
JA
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
b80f6443 19676cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19677/* confdefs.h. */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
19681/* end confdefs.h. */
b80f6443
JA
19682$ac_includes_default
19683int
19684main ()
19685{
19686static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19687test_array [0] = 0
19688
19689 ;
19690 return 0;
19691}
19692_ACEOF
19693rm -f conftest.$ac_objext
19694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19695 (eval $ac_compile) 2>conftest.er1
b80f6443 19696 ac_status=$?
0628567a
JA
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
b80f6443
JA
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
0628567a
JA
19702 { ac_try='test -z "$ac_c_werror_flag"
19703 || test ! -s conftest.err'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } &&
19709 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19712 ac_status=$?
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 ac_hi=-1 ac_mid=-1
f73dda09
JA
19716 while :; do
19717 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
f73dda09
JA
19723$ac_includes_default
19724int
19725main ()
19726{
b80f6443
JA
19727static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19728test_array [0] = 0
19729
f73dda09
JA
19730 ;
19731 return 0;
19732}
19733_ACEOF
19734rm -f conftest.$ac_objext
b80f6443 19735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19736 (eval $ac_compile) 2>conftest.er1
f73dda09 19737 ac_status=$?
0628567a
JA
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
b80f6443 19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19742 (exit $ac_status); } &&
0628567a
JA
19743 { ac_try='test -z "$ac_c_werror_flag"
19744 || test ! -s conftest.err'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest.$ac_objext'
b80f6443 19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19752 (eval $ac_try) 2>&5
19753 ac_status=$?
b80f6443 19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19755 (exit $ac_status); }; }; then
19756 ac_lo=$ac_mid; break
19757else
19758 echo "$as_me: failed program was:" >&5
0628567a
JA
19759sed 's/^/| /' conftest.$ac_ext >&5
19760
b80f6443 19761ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
19762 if test $ac_mid -le $ac_hi; then
19763 ac_lo= ac_hi=
19764 break
19765 fi
19766 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 19767fi
0628567a 19768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19769 done
b80f6443
JA
19770else
19771 echo "$as_me: failed program was:" >&5
0628567a
JA
19772sed 's/^/| /' conftest.$ac_ext >&5
19773
b80f6443
JA
19774ac_lo= ac_hi=
19775fi
0628567a 19776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19777fi
0628567a 19778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19779# Binary search between lo and hi bounds.
19780while test "x$ac_lo" != "x$ac_hi"; do
19781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19782 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
19787/* end confdefs.h. */
f73dda09
JA
19788$ac_includes_default
19789int
19790main ()
19791{
b80f6443
JA
19792static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19793test_array [0] = 0
19794
f73dda09
JA
19795 ;
19796 return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
b80f6443 19800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19801 (eval $ac_compile) 2>conftest.er1
f73dda09 19802 ac_status=$?
0628567a
JA
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
b80f6443 19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19807 (exit $ac_status); } &&
0628567a
JA
19808 { ac_try='test -z "$ac_c_werror_flag"
19809 || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
b80f6443 19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
b80f6443 19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19820 (exit $ac_status); }; }; then
19821 ac_hi=$ac_mid
19822else
19823 echo "$as_me: failed program was:" >&5
0628567a
JA
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
b80f6443 19826ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 19827fi
0628567a 19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19829done
b80f6443
JA
19830case $ac_lo in
19831?*) ac_cv_sizeof_long=$ac_lo;;
0628567a
JA
19832'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19833See \`config.log' for more details." >&5
19834echo "$as_me: error: cannot compute sizeof (long), 77
19835See \`config.log' for more details." >&2;}
b80f6443
JA
19836 { (exit 1); exit 1; }; } ;;
19837esac
bb70624e
JA
19838else
19839 if test "$cross_compiling" = yes; then
0628567a
JA
19840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19841See \`config.log' for more details." >&5
19842echo "$as_me: error: cannot run test program while cross compiling
19843See \`config.log' for more details." >&2;}
f73dda09 19844 { (exit 1); exit 1; }; }
bb70624e 19845else
f73dda09 19846 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
f73dda09 19852$ac_includes_default
b80f6443
JA
19853long longval () { return (long) (sizeof (long)); }
19854unsigned long ulongval () { return (long) (sizeof (long)); }
19855#include <stdio.h>
19856#include <stdlib.h>
f73dda09
JA
19857int
19858main ()
bb70624e 19859{
b80f6443
JA
19860
19861 FILE *f = fopen ("conftest.val", "w");
19862 if (! f)
19863 exit (1);
19864 if (((long) (sizeof (long))) < 0)
19865 {
19866 long i = longval ();
19867 if (i != ((long) (sizeof (long))))
19868 exit (1);
19869 fprintf (f, "%ld\n", i);
19870 }
19871 else
19872 {
19873 unsigned long i = ulongval ();
19874 if (i != ((long) (sizeof (long))))
19875 exit (1);
19876 fprintf (f, "%lu\n", i);
19877 }
19878 exit (ferror (f) || fclose (f) != 0);
19879
f73dda09
JA
19880 ;
19881 return 0;
bb70624e 19882}
f73dda09
JA
19883_ACEOF
19884rm -f conftest$ac_exeext
b80f6443 19885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
19886 (eval $ac_link) 2>&5
19887 ac_status=$?
b80f6443 19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
b80f6443 19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19894 (exit $ac_status); }; }; then
19895 ac_cv_sizeof_long=`cat conftest.val`
bb70624e 19896else
f73dda09
JA
19897 echo "$as_me: program exited with status $ac_status" >&5
19898echo "$as_me: failed program was:" >&5
0628567a
JA
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
b80f6443 19901( exit $ac_status )
0628567a
JA
19902{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19903See \`config.log' for more details." >&5
19904echo "$as_me: error: cannot compute sizeof (long), 77
19905See \`config.log' for more details." >&2;}
b80f6443 19906 { (exit 1); exit 1; }; }
bb70624e 19907fi
0628567a 19908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 19909fi
bb70624e 19910fi
f73dda09
JA
19911rm -f conftest.val
19912else
19913 ac_cv_sizeof_long=0
19914fi
19915fi
b80f6443 19916echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
f73dda09 19917echo "${ECHO_T}$ac_cv_sizeof_long" >&6
b80f6443 19918cat >>confdefs.h <<_ACEOF
f73dda09 19919#define SIZEOF_LONG $ac_cv_sizeof_long
b80f6443 19920_ACEOF
bb70624e 19921
b80f6443
JA
19922
19923echo "$as_me:$LINENO: checking for char *" >&5
f73dda09
JA
19924echo $ECHO_N "checking for char *... $ECHO_C" >&6
19925if test "${ac_cv_type_char_p+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19927else
19928 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19929/* confdefs.h. */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h. */
f73dda09
JA
19934$ac_includes_default
19935int
19936main ()
19937{
19938if ((char * *) 0)
19939 return 0;
19940if (sizeof (char *))
19941 return 0;
19942 ;
19943 return 0;
19944}
19945_ACEOF
19946rm -f conftest.$ac_objext
b80f6443 19947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 19948 (eval $ac_compile) 2>conftest.er1
f73dda09 19949 ac_status=$?
0628567a
JA
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
b80f6443 19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 19954 (exit $ac_status); } &&
0628567a
JA
19955 { ac_try='test -z "$ac_c_werror_flag"
19956 || test ! -s conftest.err'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest.$ac_objext'
b80f6443 19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
b80f6443 19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
19967 (exit $ac_status); }; }; then
19968 ac_cv_type_char_p=yes
19969else
19970 echo "$as_me: failed program was:" >&5
0628567a
JA
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
f73dda09
JA
19973ac_cv_type_char_p=no
19974fi
0628567a 19975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19976fi
b80f6443 19977echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
f73dda09
JA
19978echo "${ECHO_T}$ac_cv_type_char_p" >&6
19979
b80f6443 19980echo "$as_me:$LINENO: checking size of char *" >&5
f73dda09
JA
19981echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19982if test "${ac_cv_sizeof_char_p+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984else
19985 if test "$ac_cv_type_char_p" = yes; then
b80f6443
JA
19986 # The cast to unsigned long works around a bug in the HP C Compiler
19987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19989 # This bug is HP SR number 8606223364.
f73dda09
JA
19990 if test "$cross_compiling" = yes; then
19991 # Depending upon the size, compute the lo and hi bounds.
19992cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
f73dda09
JA
19998$ac_includes_default
19999int
20000main ()
20001{
b80f6443
JA
20002static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
20003test_array [0] = 0
20004
f73dda09
JA
20005 ;
20006 return 0;
20007}
20008_ACEOF
20009rm -f conftest.$ac_objext
b80f6443 20010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20011 (eval $ac_compile) 2>conftest.er1
f73dda09 20012 ac_status=$?
0628567a
JA
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
b80f6443 20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20017 (exit $ac_status); } &&
0628567a
JA
20018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest.$ac_objext'
b80f6443 20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
b80f6443 20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20030 (exit $ac_status); }; }; then
20031 ac_lo=0 ac_mid=0
20032 while :; do
20033 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
f73dda09
JA
20039$ac_includes_default
20040int
20041main ()
20042{
b80f6443
JA
20043static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20044test_array [0] = 0
20045
f73dda09
JA
20046 ;
20047 return 0;
20048}
20049_ACEOF
20050rm -f conftest.$ac_objext
b80f6443 20051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20052 (eval $ac_compile) 2>conftest.er1
f73dda09 20053 ac_status=$?
0628567a
JA
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
b80f6443 20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20058 (exit $ac_status); } &&
0628567a
JA
20059 { ac_try='test -z "$ac_c_werror_flag"
20060 || test ! -s conftest.err'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest.$ac_objext'
b80f6443 20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
b80f6443 20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20071 (exit $ac_status); }; }; then
20072 ac_hi=$ac_mid; break
20073else
20074 echo "$as_me: failed program was:" >&5
0628567a
JA
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
b80f6443 20077ac_lo=`expr $ac_mid + 1`
0628567a
JA
20078 if test $ac_lo -le $ac_mid; then
20079 ac_lo= ac_hi=
20080 break
20081 fi
20082 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20083fi
0628567a 20084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20085 done
20086else
20087 echo "$as_me: failed program was:" >&5
0628567a
JA
20088sed 's/^/| /' conftest.$ac_ext >&5
20089
b80f6443 20090cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20091/* confdefs.h. */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h. */
b80f6443
JA
20096$ac_includes_default
20097int
20098main ()
20099{
20100static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
20101test_array [0] = 0
20102
20103 ;
20104 return 0;
20105}
20106_ACEOF
20107rm -f conftest.$ac_objext
20108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20109 (eval $ac_compile) 2>conftest.er1
b80f6443 20110 ac_status=$?
0628567a
JA
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
b80f6443
JA
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
0628567a
JA
20116 { ac_try='test -z "$ac_c_werror_flag"
20117 || test ! -s conftest.err'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } &&
20123 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 ac_hi=-1 ac_mid=-1
f73dda09
JA
20130 while :; do
20131 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20132/* confdefs.h. */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h. */
f73dda09
JA
20137$ac_includes_default
20138int
20139main ()
20140{
b80f6443
JA
20141static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
20142test_array [0] = 0
20143
f73dda09
JA
20144 ;
20145 return 0;
20146}
20147_ACEOF
20148rm -f conftest.$ac_objext
b80f6443 20149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20150 (eval $ac_compile) 2>conftest.er1
f73dda09 20151 ac_status=$?
0628567a
JA
20152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
b80f6443 20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20156 (exit $ac_status); } &&
0628567a
JA
20157 { ac_try='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest.$ac_objext'
b80f6443 20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
b80f6443 20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20169 (exit $ac_status); }; }; then
20170 ac_lo=$ac_mid; break
20171else
20172 echo "$as_me: failed program was:" >&5
0628567a
JA
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
b80f6443 20175ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
20176 if test $ac_mid -le $ac_hi; then
20177 ac_lo= ac_hi=
20178 break
20179 fi
20180 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20181fi
0628567a 20182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20183 done
b80f6443
JA
20184else
20185 echo "$as_me: failed program was:" >&5
0628567a
JA
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
b80f6443
JA
20188ac_lo= ac_hi=
20189fi
0628567a 20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20191fi
0628567a 20192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20193# Binary search between lo and hi bounds.
20194while test "x$ac_lo" != "x$ac_hi"; do
20195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20196 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
f73dda09
JA
20202$ac_includes_default
20203int
20204main ()
20205{
b80f6443
JA
20206static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
20207test_array [0] = 0
20208
f73dda09
JA
20209 ;
20210 return 0;
20211}
20212_ACEOF
20213rm -f conftest.$ac_objext
b80f6443 20214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20215 (eval $ac_compile) 2>conftest.er1
f73dda09 20216 ac_status=$?
0628567a
JA
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
b80f6443 20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20221 (exit $ac_status); } &&
0628567a
JA
20222 { ac_try='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
b80f6443 20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
b80f6443 20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20234 (exit $ac_status); }; }; then
20235 ac_hi=$ac_mid
20236else
20237 echo "$as_me: failed program was:" >&5
0628567a
JA
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
b80f6443 20240ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20241fi
0628567a 20242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20243done
b80f6443
JA
20244case $ac_lo in
20245?*) ac_cv_sizeof_char_p=$ac_lo;;
0628567a
JA
20246'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20247See \`config.log' for more details." >&5
20248echo "$as_me: error: cannot compute sizeof (char *), 77
20249See \`config.log' for more details." >&2;}
b80f6443
JA
20250 { (exit 1); exit 1; }; } ;;
20251esac
bb70624e
JA
20252else
20253 if test "$cross_compiling" = yes; then
0628567a
JA
20254 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20255See \`config.log' for more details." >&5
20256echo "$as_me: error: cannot run test program while cross compiling
20257See \`config.log' for more details." >&2;}
f73dda09 20258 { (exit 1); exit 1; }; }
bb70624e 20259else
f73dda09 20260 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20261/* confdefs.h. */
20262_ACEOF
20263cat confdefs.h >>conftest.$ac_ext
20264cat >>conftest.$ac_ext <<_ACEOF
20265/* end confdefs.h. */
f73dda09 20266$ac_includes_default
b80f6443
JA
20267long longval () { return (long) (sizeof (char *)); }
20268unsigned long ulongval () { return (long) (sizeof (char *)); }
20269#include <stdio.h>
20270#include <stdlib.h>
f73dda09
JA
20271int
20272main ()
bb70624e 20273{
b80f6443
JA
20274
20275 FILE *f = fopen ("conftest.val", "w");
20276 if (! f)
20277 exit (1);
20278 if (((long) (sizeof (char *))) < 0)
20279 {
20280 long i = longval ();
20281 if (i != ((long) (sizeof (char *))))
20282 exit (1);
20283 fprintf (f, "%ld\n", i);
20284 }
20285 else
20286 {
20287 unsigned long i = ulongval ();
20288 if (i != ((long) (sizeof (char *))))
20289 exit (1);
20290 fprintf (f, "%lu\n", i);
20291 }
20292 exit (ferror (f) || fclose (f) != 0);
20293
f73dda09
JA
20294 ;
20295 return 0;
bb70624e 20296}
f73dda09
JA
20297_ACEOF
20298rm -f conftest$ac_exeext
b80f6443 20299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
20300 (eval $ac_link) 2>&5
20301 ac_status=$?
b80f6443 20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
b80f6443 20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20308 (exit $ac_status); }; }; then
20309 ac_cv_sizeof_char_p=`cat conftest.val`
bb70624e 20310else
f73dda09
JA
20311 echo "$as_me: program exited with status $ac_status" >&5
20312echo "$as_me: failed program was:" >&5
0628567a
JA
20313sed 's/^/| /' conftest.$ac_ext >&5
20314
b80f6443 20315( exit $ac_status )
0628567a
JA
20316{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
20317See \`config.log' for more details." >&5
20318echo "$as_me: error: cannot compute sizeof (char *), 77
20319See \`config.log' for more details." >&2;}
b80f6443 20320 { (exit 1); exit 1; }; }
bb70624e 20321fi
0628567a 20322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 20323fi
bb70624e 20324fi
f73dda09
JA
20325rm -f conftest.val
20326else
20327 ac_cv_sizeof_char_p=0
20328fi
20329fi
b80f6443 20330echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
f73dda09 20331echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
b80f6443 20332cat >>confdefs.h <<_ACEOF
f73dda09 20333#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
b80f6443 20334_ACEOF
bb70624e 20335
b80f6443
JA
20336
20337echo "$as_me:$LINENO: checking for double" >&5
f73dda09
JA
20338echo $ECHO_N "checking for double... $ECHO_C" >&6
20339if test "${ac_cv_type_double+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 20341else
f73dda09 20342 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
f73dda09
JA
20348$ac_includes_default
20349int
20350main ()
20351{
20352if ((double *) 0)
20353 return 0;
20354if (sizeof (double))
20355 return 0;
20356 ;
20357 return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext
b80f6443 20361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20362 (eval $ac_compile) 2>conftest.er1
f73dda09 20363 ac_status=$?
0628567a
JA
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
b80f6443 20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20368 (exit $ac_status); } &&
0628567a
JA
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
b80f6443 20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
b80f6443 20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20381 (exit $ac_status); }; }; then
20382 ac_cv_type_double=yes
20383else
20384 echo "$as_me: failed program was:" >&5
0628567a
JA
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
f73dda09
JA
20387ac_cv_type_double=no
20388fi
0628567a 20389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20390fi
b80f6443 20391echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
f73dda09
JA
20392echo "${ECHO_T}$ac_cv_type_double" >&6
20393
b80f6443 20394echo "$as_me:$LINENO: checking size of double" >&5
f73dda09
JA
20395echo $ECHO_N "checking size of double... $ECHO_C" >&6
20396if test "${ac_cv_sizeof_double+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399 if test "$ac_cv_type_double" = yes; then
b80f6443
JA
20400 # The cast to unsigned long works around a bug in the HP C Compiler
20401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20403 # This bug is HP SR number 8606223364.
cce855bc 20404 if test "$cross_compiling" = yes; then
f73dda09
JA
20405 # Depending upon the size, compute the lo and hi bounds.
20406cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20407/* confdefs.h. */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h. */
f73dda09
JA
20412$ac_includes_default
20413int
20414main ()
cce855bc 20415{
b80f6443
JA
20416static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
20417test_array [0] = 0
20418
f73dda09
JA
20419 ;
20420 return 0;
cce855bc 20421}
f73dda09
JA
20422_ACEOF
20423rm -f conftest.$ac_objext
b80f6443 20424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20425 (eval $ac_compile) 2>conftest.er1
f73dda09 20426 ac_status=$?
0628567a
JA
20427 grep -v '^ *+' conftest.er1 >conftest.err
20428 rm -f conftest.er1
20429 cat conftest.err >&5
b80f6443 20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20431 (exit $ac_status); } &&
0628567a
JA
20432 { ac_try='test -z "$ac_c_werror_flag"
20433 || test ! -s conftest.err'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; } &&
20439 { ac_try='test -s conftest.$ac_objext'
b80f6443 20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
b80f6443 20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20444 (exit $ac_status); }; }; then
20445 ac_lo=0 ac_mid=0
20446 while :; do
20447 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
f73dda09
JA
20453$ac_includes_default
20454int
20455main ()
20456{
b80f6443
JA
20457static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20458test_array [0] = 0
20459
f73dda09
JA
20460 ;
20461 return 0;
20462}
20463_ACEOF
20464rm -f conftest.$ac_objext
b80f6443 20465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20466 (eval $ac_compile) 2>conftest.er1
f73dda09 20467 ac_status=$?
0628567a
JA
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
b80f6443 20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20472 (exit $ac_status); } &&
0628567a
JA
20473 { ac_try='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest.$ac_objext'
b80f6443 20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
b80f6443 20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20485 (exit $ac_status); }; }; then
20486 ac_hi=$ac_mid; break
20487else
20488 echo "$as_me: failed program was:" >&5
0628567a
JA
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
b80f6443 20491ac_lo=`expr $ac_mid + 1`
0628567a
JA
20492 if test $ac_lo -le $ac_mid; then
20493 ac_lo= ac_hi=
20494 break
20495 fi
20496 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20497fi
0628567a 20498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20499 done
cce855bc 20500else
f73dda09 20501 echo "$as_me: failed program was:" >&5
0628567a
JA
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
b80f6443 20504cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
b80f6443
JA
20510$ac_includes_default
20511int
20512main ()
20513{
20514static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
20515test_array [0] = 0
20516
20517 ;
20518 return 0;
20519}
20520_ACEOF
20521rm -f conftest.$ac_objext
20522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20523 (eval $ac_compile) 2>conftest.er1
b80f6443 20524 ac_status=$?
0628567a
JA
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
b80f6443
JA
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } &&
0628567a
JA
20530 { ac_try='test -z "$ac_c_werror_flag"
20531 || test ! -s conftest.err'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_hi=-1 ac_mid=-1
f73dda09
JA
20544 while :; do
20545 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
f73dda09
JA
20551$ac_includes_default
20552int
20553main ()
20554{
b80f6443
JA
20555static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
20556test_array [0] = 0
20557
f73dda09
JA
20558 ;
20559 return 0;
20560}
20561_ACEOF
20562rm -f conftest.$ac_objext
b80f6443 20563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20564 (eval $ac_compile) 2>conftest.er1
f73dda09 20565 ac_status=$?
0628567a
JA
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
b80f6443 20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20570 (exit $ac_status); } &&
0628567a
JA
20571 { ac_try='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest.$ac_objext'
b80f6443 20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
b80f6443 20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20583 (exit $ac_status); }; }; then
20584 ac_lo=$ac_mid; break
20585else
20586 echo "$as_me: failed program was:" >&5
0628567a
JA
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
b80f6443 20589ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
20590 if test $ac_mid -le $ac_hi; then
20591 ac_lo= ac_hi=
20592 break
20593 fi
20594 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20595fi
0628567a 20596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20597 done
b80f6443
JA
20598else
20599 echo "$as_me: failed program was:" >&5
0628567a
JA
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
b80f6443
JA
20602ac_lo= ac_hi=
20603fi
0628567a 20604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 20605fi
0628567a 20606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20607# Binary search between lo and hi bounds.
20608while test "x$ac_lo" != "x$ac_hi"; do
20609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20610 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
f73dda09
JA
20616$ac_includes_default
20617int
20618main ()
20619{
b80f6443
JA
20620static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20621test_array [0] = 0
20622
f73dda09
JA
20623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest.$ac_objext
b80f6443 20628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20629 (eval $ac_compile) 2>conftest.er1
f73dda09 20630 ac_status=$?
0628567a
JA
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
b80f6443 20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20635 (exit $ac_status); } &&
0628567a
JA
20636 { ac_try='test -z "$ac_c_werror_flag"
20637 || test ! -s conftest.err'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
b80f6443 20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
b80f6443 20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20648 (exit $ac_status); }; }; then
20649 ac_hi=$ac_mid
20650else
20651 echo "$as_me: failed program was:" >&5
0628567a
JA
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
b80f6443 20654ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20655fi
0628567a 20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20657done
b80f6443
JA
20658case $ac_lo in
20659?*) ac_cv_sizeof_double=$ac_lo;;
0628567a
JA
20660'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20661See \`config.log' for more details." >&5
20662echo "$as_me: error: cannot compute sizeof (double), 77
20663See \`config.log' for more details." >&2;}
b80f6443
JA
20664 { (exit 1); exit 1; }; } ;;
20665esac
cce855bc
JA
20666else
20667 if test "$cross_compiling" = yes; then
0628567a
JA
20668 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20669See \`config.log' for more details." >&5
20670echo "$as_me: error: cannot run test program while cross compiling
20671See \`config.log' for more details." >&2;}
f73dda09 20672 { (exit 1); exit 1; }; }
cce855bc 20673else
f73dda09 20674 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
f73dda09 20680$ac_includes_default
b80f6443
JA
20681long longval () { return (long) (sizeof (double)); }
20682unsigned long ulongval () { return (long) (sizeof (double)); }
20683#include <stdio.h>
20684#include <stdlib.h>
f73dda09
JA
20685int
20686main ()
cce855bc 20687{
b80f6443
JA
20688
20689 FILE *f = fopen ("conftest.val", "w");
20690 if (! f)
20691 exit (1);
20692 if (((long) (sizeof (double))) < 0)
20693 {
20694 long i = longval ();
20695 if (i != ((long) (sizeof (double))))
20696 exit (1);
20697 fprintf (f, "%ld\n", i);
20698 }
20699 else
20700 {
20701 unsigned long i = ulongval ();
20702 if (i != ((long) (sizeof (double))))
20703 exit (1);
20704 fprintf (f, "%lu\n", i);
20705 }
20706 exit (ferror (f) || fclose (f) != 0);
20707
f73dda09
JA
20708 ;
20709 return 0;
cce855bc 20710}
f73dda09
JA
20711_ACEOF
20712rm -f conftest$ac_exeext
b80f6443 20713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
20714 (eval $ac_link) 2>&5
20715 ac_status=$?
b80f6443 20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
b80f6443 20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20722 (exit $ac_status); }; }; then
20723 ac_cv_sizeof_double=`cat conftest.val`
cce855bc 20724else
f73dda09
JA
20725 echo "$as_me: program exited with status $ac_status" >&5
20726echo "$as_me: failed program was:" >&5
0628567a
JA
20727sed 's/^/| /' conftest.$ac_ext >&5
20728
b80f6443 20729( exit $ac_status )
0628567a
JA
20730{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20731See \`config.log' for more details." >&5
20732echo "$as_me: error: cannot compute sizeof (double), 77
20733See \`config.log' for more details." >&2;}
b80f6443 20734 { (exit 1); exit 1; }; }
cce855bc 20735fi
0628567a 20736rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cce855bc 20737fi
cce855bc 20738fi
f73dda09
JA
20739rm -f conftest.val
20740else
20741 ac_cv_sizeof_double=0
20742fi
20743fi
b80f6443 20744echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
f73dda09 20745echo "${ECHO_T}$ac_cv_sizeof_double" >&6
b80f6443 20746cat >>confdefs.h <<_ACEOF
f73dda09 20747#define SIZEOF_DOUBLE $ac_cv_sizeof_double
b80f6443 20748_ACEOF
cce855bc 20749
b80f6443
JA
20750
20751echo "$as_me:$LINENO: checking for long long" >&5
f73dda09
JA
20752echo $ECHO_N "checking for long long... $ECHO_C" >&6
20753if test "${ac_cv_type_long_long+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 20755else
f73dda09 20756 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20757/* confdefs.h. */
20758_ACEOF
20759cat confdefs.h >>conftest.$ac_ext
20760cat >>conftest.$ac_ext <<_ACEOF
20761/* end confdefs.h. */
f73dda09
JA
20762$ac_includes_default
20763int
20764main ()
20765{
20766if ((long long *) 0)
20767 return 0;
20768if (sizeof (long long))
20769 return 0;
20770 ;
20771 return 0;
20772}
20773_ACEOF
20774rm -f conftest.$ac_objext
b80f6443 20775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20776 (eval $ac_compile) 2>conftest.er1
f73dda09 20777 ac_status=$?
0628567a
JA
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
b80f6443 20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20782 (exit $ac_status); } &&
0628567a
JA
20783 { ac_try='test -z "$ac_c_werror_flag"
20784 || test ! -s conftest.err'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; } &&
20790 { ac_try='test -s conftest.$ac_objext'
b80f6443 20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20792 (eval $ac_try) 2>&5
20793 ac_status=$?
b80f6443 20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20795 (exit $ac_status); }; }; then
20796 ac_cv_type_long_long=yes
20797else
20798 echo "$as_me: failed program was:" >&5
0628567a
JA
20799sed 's/^/| /' conftest.$ac_ext >&5
20800
f73dda09
JA
20801ac_cv_type_long_long=no
20802fi
0628567a 20803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20804fi
b80f6443 20805echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
f73dda09
JA
20806echo "${ECHO_T}$ac_cv_type_long_long" >&6
20807
b80f6443 20808echo "$as_me:$LINENO: checking size of long long" >&5
f73dda09
JA
20809echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20810if test "${ac_cv_sizeof_long_long+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812else
20813 if test "$ac_cv_type_long_long" = yes; then
b80f6443
JA
20814 # The cast to unsigned long works around a bug in the HP C Compiler
20815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20817 # This bug is HP SR number 8606223364.
cce855bc 20818 if test "$cross_compiling" = yes; then
f73dda09
JA
20819 # Depending upon the size, compute the lo and hi bounds.
20820cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20821/* confdefs.h. */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h. */
f73dda09
JA
20826$ac_includes_default
20827int
20828main ()
cce855bc 20829{
b80f6443
JA
20830static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20831test_array [0] = 0
20832
f73dda09
JA
20833 ;
20834 return 0;
cce855bc 20835}
f73dda09
JA
20836_ACEOF
20837rm -f conftest.$ac_objext
b80f6443 20838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20839 (eval $ac_compile) 2>conftest.er1
f73dda09 20840 ac_status=$?
0628567a
JA
20841 grep -v '^ *+' conftest.er1 >conftest.err
20842 rm -f conftest.er1
20843 cat conftest.err >&5
b80f6443 20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20845 (exit $ac_status); } &&
0628567a
JA
20846 { ac_try='test -z "$ac_c_werror_flag"
20847 || test ! -s conftest.err'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; } &&
20853 { ac_try='test -s conftest.$ac_objext'
b80f6443 20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
b80f6443 20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20858 (exit $ac_status); }; }; then
20859 ac_lo=0 ac_mid=0
20860 while :; do
20861 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20862/* confdefs.h. */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h. */
f73dda09
JA
20867$ac_includes_default
20868int
20869main ()
20870{
b80f6443
JA
20871static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20872test_array [0] = 0
20873
f73dda09
JA
20874 ;
20875 return 0;
20876}
20877_ACEOF
20878rm -f conftest.$ac_objext
b80f6443 20879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20880 (eval $ac_compile) 2>conftest.er1
f73dda09 20881 ac_status=$?
0628567a
JA
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
b80f6443 20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20886 (exit $ac_status); } &&
0628567a
JA
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
b80f6443 20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20896 (eval $ac_try) 2>&5
20897 ac_status=$?
b80f6443 20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20899 (exit $ac_status); }; }; then
20900 ac_hi=$ac_mid; break
20901else
20902 echo "$as_me: failed program was:" >&5
0628567a
JA
20903sed 's/^/| /' conftest.$ac_ext >&5
20904
b80f6443 20905ac_lo=`expr $ac_mid + 1`
0628567a
JA
20906 if test $ac_lo -le $ac_mid; then
20907 ac_lo= ac_hi=
20908 break
20909 fi
20910 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20911fi
0628567a 20912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20913 done
cce855bc 20914else
f73dda09 20915 echo "$as_me: failed program was:" >&5
0628567a
JA
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
b80f6443 20918cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20919/* confdefs.h. */
20920_ACEOF
20921cat confdefs.h >>conftest.$ac_ext
20922cat >>conftest.$ac_ext <<_ACEOF
20923/* end confdefs.h. */
b80f6443
JA
20924$ac_includes_default
20925int
20926main ()
20927{
20928static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20929test_array [0] = 0
20930
20931 ;
20932 return 0;
20933}
20934_ACEOF
20935rm -f conftest.$ac_objext
20936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20937 (eval $ac_compile) 2>conftest.er1
b80f6443 20938 ac_status=$?
0628567a
JA
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
b80f6443
JA
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
0628567a
JA
20944 { ac_try='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 ac_hi=-1 ac_mid=-1
f73dda09
JA
20958 while :; do
20959 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20960/* confdefs.h. */
20961_ACEOF
20962cat confdefs.h >>conftest.$ac_ext
20963cat >>conftest.$ac_ext <<_ACEOF
20964/* end confdefs.h. */
f73dda09
JA
20965$ac_includes_default
20966int
20967main ()
20968{
b80f6443
JA
20969static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20970test_array [0] = 0
20971
f73dda09
JA
20972 ;
20973 return 0;
20974}
20975_ACEOF
20976rm -f conftest.$ac_objext
b80f6443 20977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 20978 (eval $ac_compile) 2>conftest.er1
f73dda09 20979 ac_status=$?
0628567a
JA
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
b80f6443 20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20984 (exit $ac_status); } &&
0628567a
JA
20985 { ac_try='test -z "$ac_c_werror_flag"
20986 || test ! -s conftest.err'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
b80f6443 20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
b80f6443 20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20997 (exit $ac_status); }; }; then
20998 ac_lo=$ac_mid; break
20999else
21000 echo "$as_me: failed program was:" >&5
0628567a
JA
21001sed 's/^/| /' conftest.$ac_ext >&5
21002
b80f6443 21003ac_hi=`expr '(' $ac_mid ')' - 1`
0628567a
JA
21004 if test $ac_mid -le $ac_hi; then
21005 ac_lo= ac_hi=
21006 break
21007 fi
21008 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21009fi
0628567a 21010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21011 done
b80f6443
JA
21012else
21013 echo "$as_me: failed program was:" >&5
0628567a
JA
21014sed 's/^/| /' conftest.$ac_ext >&5
21015
b80f6443
JA
21016ac_lo= ac_hi=
21017fi
0628567a 21018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21019fi
0628567a 21020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21021# Binary search between lo and hi bounds.
21022while test "x$ac_lo" != "x$ac_hi"; do
21023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21024 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
21029/* end confdefs.h. */
f73dda09
JA
21030$ac_includes_default
21031int
21032main ()
21033{
b80f6443
JA
21034static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21035test_array [0] = 0
21036
f73dda09
JA
21037 ;
21038 return 0;
21039}
21040_ACEOF
21041rm -f conftest.$ac_objext
b80f6443 21042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21043 (eval $ac_compile) 2>conftest.er1
f73dda09 21044 ac_status=$?
0628567a
JA
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
b80f6443 21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21049 (exit $ac_status); } &&
0628567a
JA
21050 { ac_try='test -z "$ac_c_werror_flag"
21051 || test ! -s conftest.err'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; } &&
21057 { ac_try='test -s conftest.$ac_objext'
b80f6443 21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21059 (eval $ac_try) 2>&5
21060 ac_status=$?
b80f6443 21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21062 (exit $ac_status); }; }; then
21063 ac_hi=$ac_mid
21064else
21065 echo "$as_me: failed program was:" >&5
0628567a
JA
21066sed 's/^/| /' conftest.$ac_ext >&5
21067
b80f6443 21068ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 21069fi
0628567a 21070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21071done
b80f6443
JA
21072case $ac_lo in
21073?*) ac_cv_sizeof_long_long=$ac_lo;;
0628567a
JA
21074'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21075See \`config.log' for more details." >&5
21076echo "$as_me: error: cannot compute sizeof (long long), 77
21077See \`config.log' for more details." >&2;}
b80f6443
JA
21078 { (exit 1); exit 1; }; } ;;
21079esac
b72432fd 21080else
bb70624e 21081 if test "$cross_compiling" = yes; then
0628567a
JA
21082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21083See \`config.log' for more details." >&5
21084echo "$as_me: error: cannot run test program while cross compiling
21085See \`config.log' for more details." >&2;}
f73dda09 21086 { (exit 1); exit 1; }; }
bb70624e 21087else
f73dda09 21088 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21089/* confdefs.h. */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h. */
f73dda09 21094$ac_includes_default
b80f6443
JA
21095long longval () { return (long) (sizeof (long long)); }
21096unsigned long ulongval () { return (long) (sizeof (long long)); }
21097#include <stdio.h>
21098#include <stdlib.h>
f73dda09
JA
21099int
21100main ()
bb70624e 21101{
b80f6443
JA
21102
21103 FILE *f = fopen ("conftest.val", "w");
21104 if (! f)
21105 exit (1);
21106 if (((long) (sizeof (long long))) < 0)
21107 {
21108 long i = longval ();
21109 if (i != ((long) (sizeof (long long))))
21110 exit (1);
21111 fprintf (f, "%ld\n", i);
21112 }
21113 else
21114 {
21115 unsigned long i = ulongval ();
21116 if (i != ((long) (sizeof (long long))))
21117 exit (1);
21118 fprintf (f, "%lu\n", i);
21119 }
21120 exit (ferror (f) || fclose (f) != 0);
21121
f73dda09
JA
21122 ;
21123 return 0;
bb70624e 21124}
f73dda09
JA
21125_ACEOF
21126rm -f conftest$ac_exeext
b80f6443 21127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
21128 (eval $ac_link) 2>&5
21129 ac_status=$?
b80f6443 21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
b80f6443 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21136 (exit $ac_status); }; }; then
21137 ac_cv_sizeof_long_long=`cat conftest.val`
bb70624e 21138else
f73dda09
JA
21139 echo "$as_me: program exited with status $ac_status" >&5
21140echo "$as_me: failed program was:" >&5
0628567a
JA
21141sed 's/^/| /' conftest.$ac_ext >&5
21142
b80f6443 21143( exit $ac_status )
0628567a
JA
21144{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21145See \`config.log' for more details." >&5
21146echo "$as_me: error: cannot compute sizeof (long long), 77
21147See \`config.log' for more details." >&2;}
b80f6443 21148 { (exit 1); exit 1; }; }
bb70624e 21149fi
0628567a 21150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 21151fi
bb70624e 21152fi
f73dda09
JA
21153rm -f conftest.val
21154else
21155 ac_cv_sizeof_long_long=0
21156fi
21157fi
b80f6443 21158echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
f73dda09 21159echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
b80f6443 21160cat >>confdefs.h <<_ACEOF
f73dda09 21161#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
b80f6443 21162_ACEOF
bb70624e 21163
b80f6443
JA
21164
21165
21166echo "$as_me:$LINENO: checking for u_int" >&5
f73dda09
JA
21167echo $ECHO_N "checking for u_int... $ECHO_C" >&6
21168if test "${ac_cv_type_u_int+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 21170else
f73dda09 21171 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
f73dda09
JA
21177$ac_includes_default
21178int
21179main ()
21180{
21181if ((u_int *) 0)
21182 return 0;
21183if (sizeof (u_int))
21184 return 0;
21185 ;
21186 return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext
b80f6443 21190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21191 (eval $ac_compile) 2>conftest.er1
f73dda09 21192 ac_status=$?
0628567a
JA
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
b80f6443 21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21197 (exit $ac_status); } &&
0628567a
JA
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
b80f6443 21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
b80f6443 21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21210 (exit $ac_status); }; }; then
bb70624e
JA
21211 ac_cv_type_u_int=yes
21212else
f73dda09 21213 echo "$as_me: failed program was:" >&5
0628567a
JA
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
f73dda09 21216ac_cv_type_u_int=no
bb70624e 21217fi
0628567a 21218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 21219fi
b80f6443 21220echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
f73dda09
JA
21221echo "${ECHO_T}$ac_cv_type_u_int" >&6
21222if test $ac_cv_type_u_int = yes; then
21223 :
21224else
21225
b80f6443 21226cat >>confdefs.h <<_ACEOF
bb70624e 21227#define u_int unsigned int
b80f6443 21228_ACEOF
bb70624e
JA
21229
21230fi
21231
b80f6443 21232echo "$as_me:$LINENO: checking for u_long" >&5
f73dda09
JA
21233echo $ECHO_N "checking for u_long... $ECHO_C" >&6
21234if test "${ac_cv_type_u_long+set}" = set; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 21236else
f73dda09 21237 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21238/* confdefs.h. */
21239_ACEOF
21240cat confdefs.h >>conftest.$ac_ext
21241cat >>conftest.$ac_ext <<_ACEOF
21242/* end confdefs.h. */
f73dda09
JA
21243$ac_includes_default
21244int
21245main ()
21246{
21247if ((u_long *) 0)
21248 return 0;
21249if (sizeof (u_long))
21250 return 0;
21251 ;
21252 return 0;
21253}
21254_ACEOF
21255rm -f conftest.$ac_objext
b80f6443 21256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21257 (eval $ac_compile) 2>conftest.er1
f73dda09 21258 ac_status=$?
0628567a
JA
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
b80f6443 21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21263 (exit $ac_status); } &&
0628567a
JA
21264 { ac_try='test -z "$ac_c_werror_flag"
21265 || test ! -s conftest.err'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
b80f6443 21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
b80f6443 21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21276 (exit $ac_status); }; }; then
bb70624e
JA
21277 ac_cv_type_u_long=yes
21278else
f73dda09 21279 echo "$as_me: failed program was:" >&5
0628567a
JA
21280sed 's/^/| /' conftest.$ac_ext >&5
21281
f73dda09 21282ac_cv_type_u_long=no
bb70624e 21283fi
0628567a 21284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 21285fi
b80f6443 21286echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
f73dda09
JA
21287echo "${ECHO_T}$ac_cv_type_u_long" >&6
21288if test $ac_cv_type_u_long = yes; then
21289 :
21290else
21291
b80f6443 21292cat >>confdefs.h <<_ACEOF
bb70624e 21293#define u_long unsigned long
b80f6443 21294_ACEOF
bb70624e
JA
21295
21296fi
21297
b80f6443
JA
21298
21299
bb70624e 21300if test "$ac_cv_sizeof_short" = 2; then
b80f6443 21301 echo "$as_me:$LINENO: checking for bits16_t" >&5
f73dda09
JA
21302echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
21303if test "${ac_cv_type_bits16_t+set}" = set; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 21305else
f73dda09 21306 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21307/* confdefs.h. */
21308_ACEOF
21309cat confdefs.h >>conftest.$ac_ext
21310cat >>conftest.$ac_ext <<_ACEOF
21311/* end confdefs.h. */
f73dda09
JA
21312$ac_includes_default
21313int
21314main ()
21315{
21316if ((bits16_t *) 0)
21317 return 0;
21318if (sizeof (bits16_t))
21319 return 0;
21320 ;
21321 return 0;
21322}
21323_ACEOF
21324rm -f conftest.$ac_objext
b80f6443 21325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21326 (eval $ac_compile) 2>conftest.er1
f73dda09 21327 ac_status=$?
0628567a
JA
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
b80f6443 21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21332 (exit $ac_status); } &&
0628567a
JA
21333 { ac_try='test -z "$ac_c_werror_flag"
21334 || test ! -s conftest.err'
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; } &&
21340 { ac_try='test -s conftest.$ac_objext'
b80f6443 21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
b80f6443 21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21345 (exit $ac_status); }; }; then
bb70624e
JA
21346 ac_cv_type_bits16_t=yes
21347else
f73dda09 21348 echo "$as_me: failed program was:" >&5
0628567a
JA
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
f73dda09 21351ac_cv_type_bits16_t=no
bb70624e 21352fi
0628567a 21353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 21354fi
b80f6443 21355echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
f73dda09
JA
21356echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21357if test $ac_cv_type_bits16_t = yes; then
21358 :
21359else
21360
b80f6443 21361cat >>confdefs.h <<_ACEOF
bb70624e 21362#define bits16_t short
b80f6443 21363_ACEOF
bb70624e
JA
21364
21365fi
21366
21367elif test "$ac_cv_sizeof_char" = 2; then
b80f6443 21368 echo "$as_me:$LINENO: checking for bits16_t" >&5
f73dda09
JA
21369echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
21370if test "${ac_cv_type_bits16_t+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 21372else
f73dda09 21373 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21374/* confdefs.h. */
21375_ACEOF
21376cat confdefs.h >>conftest.$ac_ext
21377cat >>conftest.$ac_ext <<_ACEOF
21378/* end confdefs.h. */
f73dda09
JA
21379$ac_includes_default
21380int
21381main ()
21382{
21383if ((bits16_t *) 0)
21384 return 0;
21385if (sizeof (bits16_t))
21386 return 0;
21387 ;
21388 return 0;
21389}
21390_ACEOF
21391rm -f conftest.$ac_objext
b80f6443 21392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21393 (eval $ac_compile) 2>conftest.er1
f73dda09 21394 ac_status=$?
0628567a
JA
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
b80f6443 21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21399 (exit $ac_status); } &&
0628567a
JA
21400 { ac_try='test -z "$ac_c_werror_flag"
21401 || test ! -s conftest.err'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21404 ac_status=$?
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; } &&
21407 { ac_try='test -s conftest.$ac_objext'
b80f6443 21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21409 (eval $ac_try) 2>&5
21410 ac_status=$?
b80f6443 21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21412 (exit $ac_status); }; }; then
bb70624e
JA
21413 ac_cv_type_bits16_t=yes
21414else
f73dda09 21415 echo "$as_me: failed program was:" >&5
0628567a
JA
21416sed 's/^/| /' conftest.$ac_ext >&5
21417
f73dda09 21418ac_cv_type_bits16_t=no
bb70624e 21419fi
0628567a 21420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 21421fi
b80f6443 21422echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
f73dda09
JA
21423echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21424if test $ac_cv_type_bits16_t = yes; then
21425 :
21426else
21427
b80f6443 21428cat >>confdefs.h <<_ACEOF
bb70624e 21429#define bits16_t char
b80f6443 21430_ACEOF
bb70624e
JA
21431
21432fi
21433
21434else
b80f6443 21435 echo "$as_me:$LINENO: checking for bits16_t" >&5
f73dda09
JA
21436echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
21437if test "${ac_cv_type_bits16_t+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 21439else
f73dda09 21440 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21441/* confdefs.h. */
21442_ACEOF
21443cat confdefs.h >>conftest.$ac_ext
21444cat >>conftest.$ac_ext <<_ACEOF
21445/* end confdefs.h. */
f73dda09
JA
21446$ac_includes_default
21447int
21448main ()
21449{
21450if ((bits16_t *) 0)
21451 return 0;
21452if (sizeof (bits16_t))
21453 return 0;
21454 ;
21455 return 0;
21456}
21457_ACEOF
21458rm -f conftest.$ac_objext
b80f6443 21459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21460 (eval $ac_compile) 2>conftest.er1
f73dda09 21461 ac_status=$?
0628567a
JA
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
b80f6443 21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21466 (exit $ac_status); } &&
0628567a
JA
21467 { ac_try='test -z "$ac_c_werror_flag"
21468 || test ! -s conftest.err'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } &&
21474 { ac_try='test -s conftest.$ac_objext'
b80f6443 21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
b80f6443 21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21479 (exit $ac_status); }; }; then
bb70624e 21480 ac_cv_type_bits16_t=yes
b72432fd 21481else
f73dda09 21482 echo "$as_me: failed program was:" >&5
0628567a
JA
21483sed 's/^/| /' conftest.$ac_ext >&5
21484
f73dda09 21485ac_cv_type_bits16_t=no
b72432fd 21486fi
0628567a 21487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21488fi
b80f6443 21489echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
f73dda09
JA
21490echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21491if test $ac_cv_type_bits16_t = yes; then
21492 :
21493else
21494
b80f6443 21495cat >>confdefs.h <<_ACEOF
bb70624e 21496#define bits16_t short
b80f6443 21497_ACEOF
b72432fd 21498
bb70624e 21499fi
b72432fd 21500
bb70624e 21501fi
b72432fd 21502
b80f6443 21503
bb70624e 21504if test "$ac_cv_sizeof_short" = 2; then
b80f6443 21505 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
f73dda09
JA
21506echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21507if test "${ac_cv_type_u_bits16_t+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21509else
f73dda09 21510 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21511/* confdefs.h. */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h. */
f73dda09
JA
21516$ac_includes_default
21517int
21518main ()
21519{
21520if ((u_bits16_t *) 0)
21521 return 0;
21522if (sizeof (u_bits16_t))
21523 return 0;
21524 ;
21525 return 0;
21526}
21527_ACEOF
21528rm -f conftest.$ac_objext
b80f6443 21529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21530 (eval $ac_compile) 2>conftest.er1
f73dda09 21531 ac_status=$?
0628567a
JA
21532 grep -v '^ *+' conftest.er1 >conftest.err
21533 rm -f conftest.er1
21534 cat conftest.err >&5
b80f6443 21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21536 (exit $ac_status); } &&
0628567a
JA
21537 { ac_try='test -z "$ac_c_werror_flag"
21538 || test ! -s conftest.err'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try='test -s conftest.$ac_objext'
b80f6443 21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
b80f6443 21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21549 (exit $ac_status); }; }; then
bb70624e 21550 ac_cv_type_u_bits16_t=yes
cce855bc 21551else
f73dda09 21552 echo "$as_me: failed program was:" >&5
0628567a
JA
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
f73dda09 21555ac_cv_type_u_bits16_t=no
cce855bc 21556fi
0628567a 21557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21558fi
b80f6443 21559echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
f73dda09
JA
21560echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21561if test $ac_cv_type_u_bits16_t = yes; then
21562 :
21563else
21564
b80f6443 21565cat >>confdefs.h <<_ACEOF
bb70624e 21566#define u_bits16_t unsigned short
b80f6443 21567_ACEOF
cce855bc
JA
21568
21569fi
21570
bb70624e 21571elif test "$ac_cv_sizeof_char" = 2; then
b80f6443 21572 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
f73dda09
JA
21573echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21574if test "${ac_cv_type_u_bits16_t+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21576else
f73dda09 21577 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
f73dda09
JA
21583$ac_includes_default
21584int
21585main ()
21586{
21587if ((u_bits16_t *) 0)
21588 return 0;
21589if (sizeof (u_bits16_t))
21590 return 0;
21591 ;
21592 return 0;
21593}
21594_ACEOF
21595rm -f conftest.$ac_objext
b80f6443 21596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21597 (eval $ac_compile) 2>conftest.er1
f73dda09 21598 ac_status=$?
0628567a
JA
21599 grep -v '^ *+' conftest.er1 >conftest.err
21600 rm -f conftest.er1
21601 cat conftest.err >&5
b80f6443 21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21603 (exit $ac_status); } &&
0628567a
JA
21604 { ac_try='test -z "$ac_c_werror_flag"
21605 || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try='test -s conftest.$ac_objext'
b80f6443 21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
b80f6443 21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21616 (exit $ac_status); }; }; then
bb70624e 21617 ac_cv_type_u_bits16_t=yes
cce855bc 21618else
f73dda09 21619 echo "$as_me: failed program was:" >&5
0628567a
JA
21620sed 's/^/| /' conftest.$ac_ext >&5
21621
f73dda09 21622ac_cv_type_u_bits16_t=no
cce855bc 21623fi
0628567a 21624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21625fi
b80f6443 21626echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
f73dda09
JA
21627echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21628if test $ac_cv_type_u_bits16_t = yes; then
21629 :
21630else
21631
b80f6443 21632cat >>confdefs.h <<_ACEOF
bb70624e 21633#define u_bits16_t unsigned char
b80f6443 21634_ACEOF
cce855bc
JA
21635
21636fi
21637
b72432fd 21638else
b80f6443 21639 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
f73dda09
JA
21640echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21641if test "${ac_cv_type_u_bits16_t+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 21643else
f73dda09 21644 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21645/* confdefs.h. */
21646_ACEOF
21647cat confdefs.h >>conftest.$ac_ext
21648cat >>conftest.$ac_ext <<_ACEOF
21649/* end confdefs.h. */
f73dda09
JA
21650$ac_includes_default
21651int
21652main ()
21653{
21654if ((u_bits16_t *) 0)
21655 return 0;
21656if (sizeof (u_bits16_t))
21657 return 0;
21658 ;
21659 return 0;
21660}
21661_ACEOF
21662rm -f conftest.$ac_objext
b80f6443 21663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21664 (eval $ac_compile) 2>conftest.er1
f73dda09 21665 ac_status=$?
0628567a
JA
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
b80f6443 21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21670 (exit $ac_status); } &&
0628567a
JA
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
b80f6443 21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
b80f6443 21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21683 (exit $ac_status); }; }; then
bb70624e 21684 ac_cv_type_u_bits16_t=yes
b72432fd 21685else
f73dda09 21686 echo "$as_me: failed program was:" >&5
0628567a
JA
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
f73dda09 21689ac_cv_type_u_bits16_t=no
cce855bc 21690fi
0628567a 21691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 21692fi
b80f6443 21693echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
f73dda09
JA
21694echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21695if test $ac_cv_type_u_bits16_t = yes; then
21696 :
21697else
21698
b80f6443 21699cat >>confdefs.h <<_ACEOF
bb70624e 21700#define u_bits16_t unsigned short
b80f6443 21701_ACEOF
cce855bc 21702
b72432fd
JA
21703fi
21704
21705fi
21706
b80f6443 21707
b72432fd 21708if test "$ac_cv_sizeof_int" = 4; then
b80f6443 21709 echo "$as_me:$LINENO: checking for bits32_t" >&5
f73dda09
JA
21710echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21711if test "${ac_cv_type_bits32_t+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21713else
f73dda09 21714 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21715/* confdefs.h. */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h. */
f73dda09
JA
21720$ac_includes_default
21721int
21722main ()
21723{
21724if ((bits32_t *) 0)
21725 return 0;
21726if (sizeof (bits32_t))
21727 return 0;
21728 ;
21729 return 0;
21730}
21731_ACEOF
21732rm -f conftest.$ac_objext
b80f6443 21733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21734 (eval $ac_compile) 2>conftest.er1
f73dda09 21735 ac_status=$?
0628567a
JA
21736 grep -v '^ *+' conftest.er1 >conftest.err
21737 rm -f conftest.er1
21738 cat conftest.err >&5
b80f6443 21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21740 (exit $ac_status); } &&
0628567a
JA
21741 { ac_try='test -z "$ac_c_werror_flag"
21742 || test ! -s conftest.err'
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; } &&
21748 { ac_try='test -s conftest.$ac_objext'
b80f6443 21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
b80f6443 21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21753 (exit $ac_status); }; }; then
bb70624e 21754 ac_cv_type_bits32_t=yes
b72432fd 21755else
f73dda09 21756 echo "$as_me: failed program was:" >&5
0628567a
JA
21757sed 's/^/| /' conftest.$ac_ext >&5
21758
f73dda09 21759ac_cv_type_bits32_t=no
b72432fd 21760fi
0628567a 21761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21762fi
b80f6443 21763echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
f73dda09
JA
21764echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21765if test $ac_cv_type_bits32_t = yes; then
21766 :
21767else
21768
b80f6443 21769cat >>confdefs.h <<_ACEOF
bb70624e 21770#define bits32_t int
b80f6443 21771_ACEOF
cce855bc
JA
21772
21773fi
b72432fd
JA
21774
21775elif test "$ac_cv_sizeof_long" = 4; then
b80f6443 21776 echo "$as_me:$LINENO: checking for bits32_t" >&5
f73dda09
JA
21777echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21778if test "${ac_cv_type_bits32_t+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21780else
f73dda09 21781 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21782/* confdefs.h. */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h. */
f73dda09
JA
21787$ac_includes_default
21788int
21789main ()
21790{
21791if ((bits32_t *) 0)
21792 return 0;
21793if (sizeof (bits32_t))
21794 return 0;
21795 ;
21796 return 0;
21797}
21798_ACEOF
21799rm -f conftest.$ac_objext
b80f6443 21800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21801 (eval $ac_compile) 2>conftest.er1
f73dda09 21802 ac_status=$?
0628567a
JA
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
b80f6443 21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21807 (exit $ac_status); } &&
0628567a
JA
21808 { ac_try='test -z "$ac_c_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest.$ac_objext'
b80f6443 21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
b80f6443 21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21820 (exit $ac_status); }; }; then
bb70624e 21821 ac_cv_type_bits32_t=yes
cce855bc 21822else
f73dda09 21823 echo "$as_me: failed program was:" >&5
0628567a
JA
21824sed 's/^/| /' conftest.$ac_ext >&5
21825
f73dda09 21826ac_cv_type_bits32_t=no
cce855bc 21827fi
0628567a 21828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21829fi
b80f6443 21830echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
f73dda09
JA
21831echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21832if test $ac_cv_type_bits32_t = yes; then
21833 :
21834else
21835
b80f6443 21836cat >>confdefs.h <<_ACEOF
bb70624e 21837#define bits32_t long
b80f6443 21838_ACEOF
cce855bc
JA
21839
21840fi
21841
cce855bc 21842else
b80f6443 21843 echo "$as_me:$LINENO: checking for bits32_t" >&5
f73dda09
JA
21844echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21845if test "${ac_cv_type_bits32_t+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21847else
f73dda09 21848 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21849/* confdefs.h. */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h. */
f73dda09
JA
21854$ac_includes_default
21855int
21856main ()
21857{
21858if ((bits32_t *) 0)
21859 return 0;
21860if (sizeof (bits32_t))
21861 return 0;
21862 ;
21863 return 0;
21864}
21865_ACEOF
21866rm -f conftest.$ac_objext
b80f6443 21867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21868 (eval $ac_compile) 2>conftest.er1
f73dda09 21869 ac_status=$?
0628567a
JA
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
b80f6443 21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21874 (exit $ac_status); } &&
0628567a
JA
21875 { ac_try='test -z "$ac_c_werror_flag"
21876 || test ! -s conftest.err'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; } &&
21882 { ac_try='test -s conftest.$ac_objext'
b80f6443 21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
b80f6443 21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21887 (exit $ac_status); }; }; then
bb70624e 21888 ac_cv_type_bits32_t=yes
cce855bc 21889else
f73dda09 21890 echo "$as_me: failed program was:" >&5
0628567a
JA
21891sed 's/^/| /' conftest.$ac_ext >&5
21892
f73dda09 21893ac_cv_type_bits32_t=no
cce855bc 21894fi
0628567a 21895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21896fi
b80f6443 21897echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
f73dda09
JA
21898echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21899if test $ac_cv_type_bits32_t = yes; then
21900 :
21901else
21902
b80f6443 21903cat >>confdefs.h <<_ACEOF
bb70624e 21904#define bits32_t int
b80f6443 21905_ACEOF
cce855bc
JA
21906
21907fi
21908
cce855bc 21909fi
cce855bc 21910
b80f6443 21911
bb70624e 21912if test "$ac_cv_sizeof_int" = 4; then
b80f6443 21913 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
f73dda09
JA
21914echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21915if test "${ac_cv_type_u_bits32_t+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21917else
f73dda09 21918 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21919/* confdefs.h. */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h. */
f73dda09
JA
21924$ac_includes_default
21925int
21926main ()
21927{
21928if ((u_bits32_t *) 0)
21929 return 0;
21930if (sizeof (u_bits32_t))
21931 return 0;
21932 ;
21933 return 0;
21934}
21935_ACEOF
21936rm -f conftest.$ac_objext
b80f6443 21937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 21938 (eval $ac_compile) 2>conftest.er1
f73dda09 21939 ac_status=$?
0628567a
JA
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
b80f6443 21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21944 (exit $ac_status); } &&
0628567a
JA
21945 { ac_try='test -z "$ac_c_werror_flag"
21946 || test ! -s conftest.err'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
b80f6443 21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
b80f6443 21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21957 (exit $ac_status); }; }; then
bb70624e 21958 ac_cv_type_u_bits32_t=yes
b72432fd 21959else
f73dda09 21960 echo "$as_me: failed program was:" >&5
0628567a
JA
21961sed 's/^/| /' conftest.$ac_ext >&5
21962
f73dda09 21963ac_cv_type_u_bits32_t=no
b72432fd 21964fi
0628567a 21965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21966fi
b80f6443 21967echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
f73dda09
JA
21968echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21969if test $ac_cv_type_u_bits32_t = yes; then
21970 :
21971else
21972
b80f6443 21973cat >>confdefs.h <<_ACEOF
bb70624e 21974#define u_bits32_t unsigned int
b80f6443 21975_ACEOF
cce855bc
JA
21976
21977fi
21978
bb70624e 21979elif test "$ac_cv_sizeof_long" = 4; then
b80f6443 21980 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
f73dda09
JA
21981echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21982if test "${ac_cv_type_u_bits32_t+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 21984else
f73dda09 21985 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21986/* confdefs.h. */
21987_ACEOF
21988cat confdefs.h >>conftest.$ac_ext
21989cat >>conftest.$ac_ext <<_ACEOF
21990/* end confdefs.h. */
f73dda09
JA
21991$ac_includes_default
21992int
21993main ()
21994{
21995if ((u_bits32_t *) 0)
21996 return 0;
21997if (sizeof (u_bits32_t))
21998 return 0;
21999 ;
22000 return 0;
22001}
22002_ACEOF
22003rm -f conftest.$ac_objext
b80f6443 22004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22005 (eval $ac_compile) 2>conftest.er1
f73dda09 22006 ac_status=$?
0628567a
JA
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
b80f6443 22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22011 (exit $ac_status); } &&
0628567a
JA
22012 { ac_try='test -z "$ac_c_werror_flag"
22013 || test ! -s conftest.err'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try='test -s conftest.$ac_objext'
b80f6443 22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
b80f6443 22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22024 (exit $ac_status); }; }; then
bb70624e 22025 ac_cv_type_u_bits32_t=yes
cce855bc 22026else
f73dda09 22027 echo "$as_me: failed program was:" >&5
0628567a
JA
22028sed 's/^/| /' conftest.$ac_ext >&5
22029
f73dda09 22030ac_cv_type_u_bits32_t=no
cce855bc 22031fi
0628567a 22032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22033fi
b80f6443 22034echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
f73dda09
JA
22035echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
22036if test $ac_cv_type_u_bits32_t = yes; then
22037 :
22038else
22039
b80f6443 22040cat >>confdefs.h <<_ACEOF
bb70624e 22041#define u_bits32_t unsigned long
b80f6443 22042_ACEOF
cce855bc
JA
22043
22044fi
22045
cce855bc 22046else
b80f6443 22047 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
f73dda09
JA
22048echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
22049if test "${ac_cv_type_u_bits32_t+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 22051else
f73dda09 22052 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22053/* confdefs.h. */
22054_ACEOF
22055cat confdefs.h >>conftest.$ac_ext
22056cat >>conftest.$ac_ext <<_ACEOF
22057/* end confdefs.h. */
f73dda09
JA
22058$ac_includes_default
22059int
22060main ()
22061{
22062if ((u_bits32_t *) 0)
22063 return 0;
22064if (sizeof (u_bits32_t))
22065 return 0;
22066 ;
22067 return 0;
22068}
22069_ACEOF
22070rm -f conftest.$ac_objext
b80f6443 22071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22072 (eval $ac_compile) 2>conftest.er1
f73dda09 22073 ac_status=$?
0628567a
JA
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
b80f6443 22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22078 (exit $ac_status); } &&
0628567a
JA
22079 { ac_try='test -z "$ac_c_werror_flag"
22080 || test ! -s conftest.err'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22083 ac_status=$?
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try='test -s conftest.$ac_objext'
b80f6443 22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22088 (eval $ac_try) 2>&5
22089 ac_status=$?
b80f6443 22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22091 (exit $ac_status); }; }; then
bb70624e 22092 ac_cv_type_u_bits32_t=yes
b72432fd 22093else
f73dda09 22094 echo "$as_me: failed program was:" >&5
0628567a
JA
22095sed 's/^/| /' conftest.$ac_ext >&5
22096
f73dda09 22097ac_cv_type_u_bits32_t=no
b72432fd 22098fi
0628567a 22099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22100fi
b80f6443 22101echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
f73dda09
JA
22102echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
22103if test $ac_cv_type_u_bits32_t = yes; then
22104 :
22105else
22106
b80f6443 22107cat >>confdefs.h <<_ACEOF
bb70624e 22108#define u_bits32_t unsigned int
b80f6443 22109_ACEOF
b72432fd
JA
22110
22111fi
cce855bc 22112
b72432fd
JA
22113fi
22114
b80f6443 22115
f73dda09 22116if test "$ac_cv_sizeof_char_p" = 8; then
b80f6443 22117 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
22118echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22119if test "${ac_cv_type_bits64_t+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 22121else
f73dda09 22122 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22123/* confdefs.h. */
22124_ACEOF
22125cat confdefs.h >>conftest.$ac_ext
22126cat >>conftest.$ac_ext <<_ACEOF
22127/* end confdefs.h. */
f73dda09
JA
22128$ac_includes_default
22129int
22130main ()
22131{
22132if ((bits64_t *) 0)
22133 return 0;
22134if (sizeof (bits64_t))
22135 return 0;
22136 ;
22137 return 0;
22138}
22139_ACEOF
22140rm -f conftest.$ac_objext
b80f6443 22141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22142 (eval $ac_compile) 2>conftest.er1
f73dda09 22143 ac_status=$?
0628567a
JA
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
b80f6443 22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22148 (exit $ac_status); } &&
0628567a
JA
22149 { ac_try='test -z "$ac_c_werror_flag"
22150 || test ! -s conftest.err'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try='test -s conftest.$ac_objext'
b80f6443 22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
b80f6443 22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22161 (exit $ac_status); }; }; then
b72432fd
JA
22162 ac_cv_type_bits64_t=yes
22163else
f73dda09 22164 echo "$as_me: failed program was:" >&5
0628567a
JA
22165sed 's/^/| /' conftest.$ac_ext >&5
22166
f73dda09 22167ac_cv_type_bits64_t=no
b72432fd 22168fi
0628567a 22169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22170fi
b80f6443 22171echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
22172echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22173if test $ac_cv_type_bits64_t = yes; then
22174 :
22175else
22176
b80f6443 22177cat >>confdefs.h <<_ACEOF
b72432fd 22178#define bits64_t char *
b80f6443 22179_ACEOF
b72432fd
JA
22180
22181fi
22182
22183elif test "$ac_cv_sizeof_double" = 8; then
b80f6443 22184 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
22185echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22186if test "${ac_cv_type_bits64_t+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 22188else
f73dda09 22189 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22190/* confdefs.h. */
22191_ACEOF
22192cat confdefs.h >>conftest.$ac_ext
22193cat >>conftest.$ac_ext <<_ACEOF
22194/* end confdefs.h. */
f73dda09
JA
22195$ac_includes_default
22196int
22197main ()
22198{
22199if ((bits64_t *) 0)
22200 return 0;
22201if (sizeof (bits64_t))
22202 return 0;
22203 ;
22204 return 0;
22205}
22206_ACEOF
22207rm -f conftest.$ac_objext
b80f6443 22208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22209 (eval $ac_compile) 2>conftest.er1
f73dda09 22210 ac_status=$?
0628567a
JA
22211 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1
22213 cat conftest.err >&5
b80f6443 22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22215 (exit $ac_status); } &&
0628567a
JA
22216 { ac_try='test -z "$ac_c_werror_flag"
22217 || test ! -s conftest.err'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } &&
22223 { ac_try='test -s conftest.$ac_objext'
b80f6443 22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
b80f6443 22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22228 (exit $ac_status); }; }; then
b72432fd 22229 ac_cv_type_bits64_t=yes
cce855bc 22230else
f73dda09 22231 echo "$as_me: failed program was:" >&5
0628567a
JA
22232sed 's/^/| /' conftest.$ac_ext >&5
22233
f73dda09 22234ac_cv_type_bits64_t=no
cce855bc 22235fi
0628567a 22236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22237fi
b80f6443 22238echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
22239echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22240if test $ac_cv_type_bits64_t = yes; then
22241 :
22242else
22243
b80f6443 22244cat >>confdefs.h <<_ACEOF
b72432fd 22245#define bits64_t double
b80f6443 22246_ACEOF
cce855bc
JA
22247
22248fi
22249
f73dda09 22250elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
b80f6443 22251 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
22252echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22253if test "${ac_cv_type_bits64_t+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 22255else
f73dda09 22256 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22257/* confdefs.h. */
22258_ACEOF
22259cat confdefs.h >>conftest.$ac_ext
22260cat >>conftest.$ac_ext <<_ACEOF
22261/* end confdefs.h. */
f73dda09
JA
22262$ac_includes_default
22263int
22264main ()
22265{
22266if ((bits64_t *) 0)
22267 return 0;
22268if (sizeof (bits64_t))
22269 return 0;
22270 ;
22271 return 0;
22272}
22273_ACEOF
22274rm -f conftest.$ac_objext
b80f6443 22275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22276 (eval $ac_compile) 2>conftest.er1
f73dda09 22277 ac_status=$?
0628567a
JA
22278 grep -v '^ *+' conftest.er1 >conftest.err
22279 rm -f conftest.er1
22280 cat conftest.err >&5
b80f6443 22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22282 (exit $ac_status); } &&
0628567a
JA
22283 { ac_try='test -z "$ac_c_werror_flag"
22284 || test ! -s conftest.err'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest.$ac_objext'
b80f6443 22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
b80f6443 22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22295 (exit $ac_status); }; }; then
b72432fd
JA
22296 ac_cv_type_bits64_t=yes
22297else
f73dda09 22298 echo "$as_me: failed program was:" >&5
0628567a
JA
22299sed 's/^/| /' conftest.$ac_ext >&5
22300
f73dda09
JA
22301ac_cv_type_bits64_t=no
22302fi
0628567a 22303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22304fi
b80f6443 22305echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
22306echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22307if test $ac_cv_type_bits64_t = yes; then
22308 :
22309else
22310
b80f6443 22311cat >>confdefs.h <<_ACEOF
f73dda09 22312#define bits64_t long long
b80f6443 22313_ACEOF
f73dda09 22314
cce855bc 22315fi
b72432fd 22316
f73dda09 22317elif test "$ac_cv_sizeof_long" = 8; then
b80f6443 22318 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
22319echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22320if test "${ac_cv_type_bits64_t+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322else
22323 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
f73dda09
JA
22329$ac_includes_default
22330int
22331main ()
22332{
22333if ((bits64_t *) 0)
22334 return 0;
22335if (sizeof (bits64_t))
22336 return 0;
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext
b80f6443 22342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22343 (eval $ac_compile) 2>conftest.er1
f73dda09 22344 ac_status=$?
0628567a
JA
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
b80f6443 22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22349 (exit $ac_status); } &&
0628567a
JA
22350 { ac_try='test -z "$ac_c_werror_flag"
22351 || test ! -s conftest.err'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
b80f6443 22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
b80f6443 22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22362 (exit $ac_status); }; }; then
22363 ac_cv_type_bits64_t=yes
22364else
22365 echo "$as_me: failed program was:" >&5
0628567a
JA
22366sed 's/^/| /' conftest.$ac_ext >&5
22367
f73dda09
JA
22368ac_cv_type_bits64_t=no
22369fi
0628567a 22370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22371fi
b80f6443 22372echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
22373echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22374if test $ac_cv_type_bits64_t = yes; then
22375 :
22376else
22377
b80f6443 22378cat >>confdefs.h <<_ACEOF
b72432fd 22379#define bits64_t long
b80f6443 22380_ACEOF
cce855bc 22381
b72432fd
JA
22382fi
22383
cce855bc 22384else
b80f6443 22385 echo "$as_me:$LINENO: checking for bits64_t" >&5
f73dda09
JA
22386echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
22387if test "${ac_cv_type_bits64_t+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
b72432fd 22389else
f73dda09 22390 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22391/* confdefs.h. */
22392_ACEOF
22393cat confdefs.h >>conftest.$ac_ext
22394cat >>conftest.$ac_ext <<_ACEOF
22395/* end confdefs.h. */
f73dda09
JA
22396$ac_includes_default
22397int
22398main ()
22399{
22400if ((bits64_t *) 0)
22401 return 0;
22402if (sizeof (bits64_t))
22403 return 0;
22404 ;
22405 return 0;
22406}
22407_ACEOF
22408rm -f conftest.$ac_objext
b80f6443 22409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22410 (eval $ac_compile) 2>conftest.er1
f73dda09 22411 ac_status=$?
0628567a
JA
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
b80f6443 22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22416 (exit $ac_status); } &&
0628567a
JA
22417 { ac_try='test -z "$ac_c_werror_flag"
22418 || test ! -s conftest.err'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest.$ac_objext'
b80f6443 22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
b80f6443 22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22429 (exit $ac_status); }; }; then
b72432fd
JA
22430 ac_cv_type_bits64_t=yes
22431else
f73dda09 22432 echo "$as_me: failed program was:" >&5
0628567a
JA
22433sed 's/^/| /' conftest.$ac_ext >&5
22434
f73dda09 22435ac_cv_type_bits64_t=no
b72432fd 22436fi
0628567a 22437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22438fi
b80f6443 22439echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
f73dda09
JA
22440echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
22441if test $ac_cv_type_bits64_t = yes; then
22442 :
22443else
22444
b80f6443 22445cat >>confdefs.h <<_ACEOF
b72432fd 22446#define bits64_t double
b80f6443 22447_ACEOF
cce855bc
JA
22448
22449fi
22450
22451fi
22452
b80f6443
JA
22453
22454
bb70624e 22455if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
b80f6443 22456 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
22457echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22458if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 22460else
f73dda09 22461 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
f73dda09
JA
22467$ac_includes_default
22468int
22469main ()
22470{
22471if ((ptrdiff_t *) 0)
22472 return 0;
22473if (sizeof (ptrdiff_t))
22474 return 0;
22475 ;
22476 return 0;
22477}
22478_ACEOF
22479rm -f conftest.$ac_objext
b80f6443 22480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a
JA
22481 (eval $ac_compile) 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try='test -z "$ac_c_werror_flag"
22489 || test ! -s conftest.err'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
f73dda09 22492 ac_status=$?
b80f6443 22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
0628567a
JA
22494 (exit $ac_status); }; } &&
22495 { ac_try='test -s conftest.$ac_objext'
b80f6443 22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
b80f6443 22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22500 (exit $ac_status); }; }; then
bb70624e
JA
22501 ac_cv_type_ptrdiff_t=yes
22502else
f73dda09 22503 echo "$as_me: failed program was:" >&5
0628567a
JA
22504sed 's/^/| /' conftest.$ac_ext >&5
22505
f73dda09 22506ac_cv_type_ptrdiff_t=no
bb70624e 22507fi
0628567a 22508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 22509fi
b80f6443 22510echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
22511echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22512if test $ac_cv_type_ptrdiff_t = yes; then
22513 :
22514else
22515
b80f6443 22516cat >>confdefs.h <<_ACEOF
bb70624e 22517#define ptrdiff_t int
b80f6443 22518_ACEOF
bb70624e
JA
22519
22520fi
22521
22522elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
b80f6443 22523 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
22524echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22525if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 22527else
f73dda09 22528 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22529/* confdefs.h. */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h. */
f73dda09
JA
22534$ac_includes_default
22535int
22536main ()
22537{
22538if ((ptrdiff_t *) 0)
22539 return 0;
22540if (sizeof (ptrdiff_t))
22541 return 0;
22542 ;
22543 return 0;
22544}
22545_ACEOF
22546rm -f conftest.$ac_objext
b80f6443 22547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22548 (eval $ac_compile) 2>conftest.er1
f73dda09 22549 ac_status=$?
0628567a
JA
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
b80f6443 22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22554 (exit $ac_status); } &&
0628567a
JA
22555 { ac_try='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest.$ac_objext'
b80f6443 22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
b80f6443 22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22567 (exit $ac_status); }; }; then
bb70624e
JA
22568 ac_cv_type_ptrdiff_t=yes
22569else
f73dda09 22570 echo "$as_me: failed program was:" >&5
0628567a
JA
22571sed 's/^/| /' conftest.$ac_ext >&5
22572
f73dda09 22573ac_cv_type_ptrdiff_t=no
bb70624e 22574fi
0628567a 22575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 22576fi
b80f6443 22577echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
22578echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22579if test $ac_cv_type_ptrdiff_t = yes; then
22580 :
22581else
22582
b80f6443 22583cat >>confdefs.h <<_ACEOF
bb70624e 22584#define ptrdiff_t long
b80f6443 22585_ACEOF
bb70624e
JA
22586
22587fi
22588
f73dda09 22589elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
b80f6443 22590 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
22591echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22592if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 22594else
f73dda09 22595 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22596/* confdefs.h. */
22597_ACEOF
22598cat confdefs.h >>conftest.$ac_ext
22599cat >>conftest.$ac_ext <<_ACEOF
22600/* end confdefs.h. */
f73dda09
JA
22601$ac_includes_default
22602int
22603main ()
22604{
22605if ((ptrdiff_t *) 0)
22606 return 0;
22607if (sizeof (ptrdiff_t))
22608 return 0;
22609 ;
22610 return 0;
22611}
22612_ACEOF
22613rm -f conftest.$ac_objext
b80f6443 22614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22615 (eval $ac_compile) 2>conftest.er1
f73dda09 22616 ac_status=$?
0628567a
JA
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
b80f6443 22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22621 (exit $ac_status); } &&
0628567a
JA
22622 { ac_try='test -z "$ac_c_werror_flag"
22623 || test ! -s conftest.err'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try='test -s conftest.$ac_objext'
b80f6443 22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
b80f6443 22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22634 (exit $ac_status); }; }; then
bb70624e
JA
22635 ac_cv_type_ptrdiff_t=yes
22636else
f73dda09 22637 echo "$as_me: failed program was:" >&5
0628567a
JA
22638sed 's/^/| /' conftest.$ac_ext >&5
22639
f73dda09
JA
22640ac_cv_type_ptrdiff_t=no
22641fi
0628567a 22642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22643fi
b80f6443 22644echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
22645echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22646if test $ac_cv_type_ptrdiff_t = yes; then
22647 :
22648else
22649
b80f6443 22650cat >>confdefs.h <<_ACEOF
f73dda09 22651#define ptrdiff_t long long
b80f6443 22652_ACEOF
f73dda09 22653
bb70624e 22654fi
bb70624e 22655
f73dda09 22656else
b80f6443 22657 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
f73dda09
JA
22658echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22659if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661else
22662 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22663/* confdefs.h. */
22664_ACEOF
22665cat confdefs.h >>conftest.$ac_ext
22666cat >>conftest.$ac_ext <<_ACEOF
22667/* end confdefs.h. */
f73dda09
JA
22668$ac_includes_default
22669int
22670main ()
22671{
22672if ((ptrdiff_t *) 0)
22673 return 0;
22674if (sizeof (ptrdiff_t))
22675 return 0;
22676 ;
22677 return 0;
22678}
22679_ACEOF
22680rm -f conftest.$ac_objext
b80f6443 22681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 22682 (eval $ac_compile) 2>conftest.er1
f73dda09 22683 ac_status=$?
0628567a
JA
22684 grep -v '^ *+' conftest.er1 >conftest.err
22685 rm -f conftest.er1
22686 cat conftest.err >&5
b80f6443 22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22688 (exit $ac_status); } &&
0628567a
JA
22689 { ac_try='test -z "$ac_c_werror_flag"
22690 || test ! -s conftest.err'
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; } &&
22696 { ac_try='test -s conftest.$ac_objext'
b80f6443 22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
b80f6443 22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22701 (exit $ac_status); }; }; then
22702 ac_cv_type_ptrdiff_t=yes
22703else
22704 echo "$as_me: failed program was:" >&5
0628567a
JA
22705sed 's/^/| /' conftest.$ac_ext >&5
22706
f73dda09 22707ac_cv_type_ptrdiff_t=no
bb70624e 22708fi
0628567a 22709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22710fi
b80f6443 22711echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
f73dda09
JA
22712echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22713if test $ac_cv_type_ptrdiff_t = yes; then
22714 :
22715else
22716
b80f6443 22717cat >>confdefs.h <<_ACEOF
bb70624e 22718#define ptrdiff_t int
b80f6443 22719_ACEOF
bb70624e
JA
22720
22721fi
22722
22723fi
22724
b80f6443
JA
22725
22726echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
f73dda09
JA
22727echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22728if test "${ac_cv_header_stat_broken+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 22730else
f73dda09 22731 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22732/* confdefs.h. */
22733_ACEOF
22734cat confdefs.h >>conftest.$ac_ext
22735cat >>conftest.$ac_ext <<_ACEOF
22736/* end confdefs.h. */
ccc6cda3
JA
22737#include <sys/types.h>
22738#include <sys/stat.h>
22739
22740#if defined(S_ISBLK) && defined(S_IFDIR)
22741# if S_ISBLK (S_IFDIR)
22742You lose.
22743# endif
22744#endif
22745
22746#if defined(S_ISBLK) && defined(S_IFCHR)
22747# if S_ISBLK (S_IFCHR)
22748You lose.
22749# endif
22750#endif
22751
22752#if defined(S_ISLNK) && defined(S_IFREG)
22753# if S_ISLNK (S_IFREG)
22754You lose.
22755# endif
22756#endif
22757
22758#if defined(S_ISSOCK) && defined(S_IFREG)
22759# if S_ISSOCK (S_IFREG)
22760You lose.
f73dda09
JA
22761# endif
22762#endif
22763
22764_ACEOF
22765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 22766 $EGREP "You lose" >/dev/null 2>&1; then
f73dda09 22767 ac_cv_header_stat_broken=yes
ccc6cda3 22768else
f73dda09 22769 ac_cv_header_stat_broken=no
ccc6cda3
JA
22770fi
22771rm -f conftest*
ccc6cda3
JA
22772
22773fi
b80f6443 22774echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
f73dda09
JA
22775echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22776if test $ac_cv_header_stat_broken = yes; then
ccc6cda3 22777
b80f6443 22778cat >>confdefs.h <<\_ACEOF
f73dda09 22779#define STAT_MACROS_BROKEN 1
b80f6443 22780_ACEOF
ccc6cda3
JA
22781
22782fi
22783
b80f6443
JA
22784
22785echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
f73dda09
JA
22786echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
22787if test "${ac_cv_sys_interpreter+set}" = set; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22789else
22790 echo '#! /bin/cat
22791exit 69
f73dda09 22792' >conftest
ccc6cda3
JA
22793chmod u+x conftest
22794(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
22795if test $? -ne 69; then
22796 ac_cv_sys_interpreter=yes
22797else
22798 ac_cv_sys_interpreter=no
22799fi
22800rm -f conftest
22801fi
b80f6443 22802echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
f73dda09
JA
22803echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22804interpval=$ac_cv_sys_interpreter
ccc6cda3
JA
22805
22806if test $ac_cv_sys_interpreter = yes; then
b80f6443 22807cat >>confdefs.h <<\_ACEOF
ccc6cda3 22808#define HAVE_HASH_BANG_EXEC 1
b80f6443 22809_ACEOF
ccc6cda3 22810
ccc6cda3
JA
22811fi
22812
ccc6cda3 22813if test "$ac_cv_func_lstat" = "no"; then
b80f6443 22814echo "$as_me:$LINENO: checking for lstat" >&5
f73dda09
JA
22815echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22816if test "${bash_cv_func_lstat+set}" = set; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 22818else
f73dda09 22819 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
ccc6cda3
JA
22825
22826#include <sys/types.h>
22827#include <sys/stat.h>
22828
f73dda09
JA
22829int
22830main ()
22831{
22832 lstat(".",(struct stat *)0);
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 22838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 22839 (eval $ac_link) 2>conftest.er1
f73dda09 22840 ac_status=$?
0628567a
JA
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
b80f6443 22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22845 (exit $ac_status); } &&
0628567a
JA
22846 { ac_try='test -z "$ac_c_werror_flag"
22847 || test ! -s conftest.err'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; } &&
22853 { ac_try='test -s conftest$ac_exeext'
b80f6443 22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
b80f6443 22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22858 (exit $ac_status); }; }; then
ccc6cda3
JA
22859 bash_cv_func_lstat=yes
22860else
f73dda09 22861 echo "$as_me: failed program was:" >&5
0628567a
JA
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
f73dda09 22864bash_cv_func_lstat=no
ccc6cda3 22865fi
0628567a
JA
22866rm -f conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 22868fi
b80f6443 22869echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
f73dda09 22870echo "${ECHO_T}$bash_cv_func_lstat" >&6
ccc6cda3 22871if test $bash_cv_func_lstat = yes; then
b80f6443 22872 cat >>confdefs.h <<\_ACEOF
ccc6cda3 22873#define HAVE_LSTAT 1
b80f6443
JA
22874_ACEOF
22875
22876fi
22877
22878fi
22879
22880
22881echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22882echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22883if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22885else
22886 if test "$cross_compiling" = yes; then
22887 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22888echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22889 bash_cv_func_ctype_nonascii=no
22890
22891else
22892 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22893/* confdefs.h. */
22894_ACEOF
22895cat confdefs.h >>conftest.$ac_ext
22896cat >>conftest.$ac_ext <<_ACEOF
22897/* end confdefs.h. */
b80f6443
JA
22898
22899#ifdef HAVE_LOCALE_H
22900#include <locale.h>
22901#endif
22902#include <stdio.h>
22903#include <ctype.h>
22904
22905main(c, v)
22906int c;
22907char *v[];
22908{
22909 char *deflocale;
22910 unsigned char x;
22911 int r1, r2;
22912
22913#ifdef HAVE_SETLOCALE
22914 /* We take a shot here. If that locale is not known, try the
22915 system default. We try this one because '\342' (226) is
22916 known to be a printable character in that locale. */
22917 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22918 if (deflocale == 0)
22919 deflocale = setlocale(LC_ALL, "");
22920#endif
22921
22922 x = '\342';
22923 r1 = isprint(x);
22924 x -= 128;
22925 r2 = isprint(x);
22926 exit (r1 == 0 || r2 == 0);
22927}
22928
22929_ACEOF
22930rm -f conftest$ac_exeext
22931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22932 (eval $ac_link) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 bash_cv_func_ctype_nonascii=yes
22942else
22943 echo "$as_me: program exited with status $ac_status" >&5
22944echo "$as_me: failed program was:" >&5
0628567a
JA
22945sed 's/^/| /' conftest.$ac_ext >&5
22946
b80f6443
JA
22947( exit $ac_status )
22948bash_cv_func_ctype_nonascii=no
22949fi
0628567a 22950rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 22951fi
b80f6443
JA
22952fi
22953
22954echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22955echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22956if test $bash_cv_func_ctype_nonascii = yes; then
22957cat >>confdefs.h <<\_ACEOF
22958#define CTYPE_NON_ASCII 1
22959_ACEOF
ccc6cda3
JA
22960
22961fi
22962
b80f6443 22963echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
f73dda09
JA
22964echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22965if test "${bash_cv_dup2_broken+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
22967else
22968 if test "$cross_compiling" = yes; then
b80f6443 22969 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
f73dda09 22970echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
cce855bc 22971 bash_cv_dup2_broken=no
ccc6cda3 22972else
f73dda09 22973 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22974/* confdefs.h. */
22975_ACEOF
22976cat confdefs.h >>conftest.$ac_ext
22977cat >>conftest.$ac_ext <<_ACEOF
22978/* end confdefs.h. */
ccc6cda3
JA
22979
22980#include <sys/types.h>
22981#include <fcntl.h>
22982main()
22983{
22984 int fd1, fd2, fl;
22985 fd1 = open("/dev/null", 2);
22986 if (fcntl(fd1, 2, 1) < 0)
22987 exit(1);
22988 fd2 = dup2(fd1, 1);
22989 if (fd2 < 0)
22990 exit(2);
22991 fl = fcntl(fd2, 1, 0);
22992 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22993 exit(fl != 1);
22994}
22995
f73dda09
JA
22996_ACEOF
22997rm -f conftest$ac_exeext
b80f6443 22998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
22999 (eval $ac_link) 2>&5
23000 ac_status=$?
b80f6443 23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23004 (eval $ac_try) 2>&5
23005 ac_status=$?
b80f6443 23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23007 (exit $ac_status); }; }; then
ccc6cda3
JA
23008 bash_cv_dup2_broken=yes
23009else
f73dda09
JA
23010 echo "$as_me: program exited with status $ac_status" >&5
23011echo "$as_me: failed program was:" >&5
0628567a
JA
23012sed 's/^/| /' conftest.$ac_ext >&5
23013
b80f6443 23014( exit $ac_status )
f73dda09 23015bash_cv_dup2_broken=no
ccc6cda3 23016fi
0628567a 23017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
23018fi
23019
ccc6cda3
JA
23020fi
23021
b80f6443 23022echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
f73dda09 23023echo "${ECHO_T}$bash_cv_dup2_broken" >&6
ccc6cda3 23024if test $bash_cv_dup2_broken = yes; then
b80f6443 23025cat >>confdefs.h <<\_ACEOF
ccc6cda3 23026#define DUP2_BROKEN 1
b80f6443 23027_ACEOF
ccc6cda3
JA
23028
23029fi
23030
b80f6443
JA
23031
23032echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
f73dda09
JA
23033echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
23034if test "${bash_cv_pgrp_pipe+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
23036else
23037 if test "$cross_compiling" = yes; then
b80f6443 23038 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
f73dda09 23039echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
cce855bc 23040 bash_cv_pgrp_pipe=no
ccc6cda3 23041else
f73dda09 23042 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23043/* confdefs.h. */
23044_ACEOF
23045cat confdefs.h >>conftest.$ac_ext
23046cat >>conftest.$ac_ext <<_ACEOF
23047/* end confdefs.h. */
ccc6cda3
JA
23048
23049#ifdef HAVE_UNISTD_H
23050# include <unistd.h>
23051#endif
23052main()
23053{
23054# ifdef GETPGRP_VOID
23055# define getpgID() getpgrp()
23056# else
23057# define getpgID() getpgrp(0)
23058# define setpgid(x,y) setpgrp(x,y)
23059# endif
23060 int pid1, pid2, fds[2];
23061 int status;
23062 char ok;
23063
23064 switch (pid1 = fork()) {
23065 case -1:
23066 exit(1);
23067 case 0:
23068 setpgid(0, getpid());
23069 exit(0);
23070 }
23071 setpgid(pid1, pid1);
23072
23073 sleep(2); /* let first child die */
23074
23075 if (pipe(fds) < 0)
23076 exit(2);
23077
23078 switch (pid2 = fork()) {
23079 case -1:
23080 exit(3);
23081 case 0:
23082 setpgid(0, pid1);
23083 ok = getpgID() == pid1;
23084 write(fds[1], &ok, 1);
23085 exit(0);
23086 }
23087 setpgid(pid2, pid1);
23088
23089 close(fds[1]);
23090 if (read(fds[0], &ok, 1) != 1)
23091 exit(4);
23092 wait(&status);
23093 wait(&status);
23094 exit(ok ? 0 : 5);
23095}
23096
f73dda09
JA
23097_ACEOF
23098rm -f conftest$ac_exeext
b80f6443 23099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
23100 (eval $ac_link) 2>&5
23101 ac_status=$?
b80f6443 23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
b80f6443 23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23108 (exit $ac_status); }; }; then
ccc6cda3
JA
23109 bash_cv_pgrp_pipe=no
23110else
f73dda09
JA
23111 echo "$as_me: program exited with status $ac_status" >&5
23112echo "$as_me: failed program was:" >&5
0628567a
JA
23113sed 's/^/| /' conftest.$ac_ext >&5
23114
b80f6443 23115( exit $ac_status )
f73dda09 23116bash_cv_pgrp_pipe=yes
ccc6cda3 23117fi
0628567a 23118rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
23119fi
23120
ccc6cda3
JA
23121fi
23122
b80f6443 23123echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
f73dda09 23124echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
ccc6cda3 23125if test $bash_cv_pgrp_pipe = yes; then
b80f6443 23126cat >>confdefs.h <<\_ACEOF
ccc6cda3 23127#define PGRP_PIPE 1
b80f6443 23128_ACEOF
ccc6cda3
JA
23129
23130fi
23131
b80f6443
JA
23132
23133echo "$as_me:$LINENO: checking for type of signal functions" >&5
f73dda09
JA
23134echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
23135if test "${bash_cv_signal_vintage+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23137else
f73dda09
JA
23138
23139 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23140/* confdefs.h. */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h. */
d166f048 23145#include <signal.h>
f73dda09
JA
23146int
23147main ()
23148{
d166f048
JA
23149
23150 sigset_t ss;
23151 struct sigaction sa;
23152 sigemptyset(&ss); sigsuspend(&ss);
23153 sigaction(SIGINT, &sa, (struct sigaction *) 0);
23154 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
f73dda09
JA
23155
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 23161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 23162 (eval $ac_link) 2>conftest.er1
f73dda09 23163 ac_status=$?
0628567a
JA
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
b80f6443 23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23168 (exit $ac_status); } &&
0628567a
JA
23169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest$ac_exeext'
b80f6443 23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23178 (eval $ac_try) 2>&5
23179 ac_status=$?
b80f6443 23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23181 (exit $ac_status); }; }; then
d166f048 23182 bash_cv_signal_vintage=posix
ccc6cda3 23183else
f73dda09 23184 echo "$as_me: failed program was:" >&5
0628567a
JA
23185sed 's/^/| /' conftest.$ac_ext >&5
23186
f73dda09
JA
23187
23188 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23189/* confdefs.h. */
23190_ACEOF
23191cat confdefs.h >>conftest.$ac_ext
23192cat >>conftest.$ac_ext <<_ACEOF
23193/* end confdefs.h. */
d166f048 23194#include <signal.h>
f73dda09
JA
23195int
23196main ()
23197{
d166f048
JA
23198
23199 int mask = sigmask(SIGINT);
23200 sigsetmask(mask); sigblock(mask); sigpause(mask);
f73dda09
JA
23201
23202 ;
23203 return 0;
23204}
23205_ACEOF
23206rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 23207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 23208 (eval $ac_link) 2>conftest.er1
f73dda09 23209 ac_status=$?
0628567a
JA
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
b80f6443 23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23214 (exit $ac_status); } &&
0628567a
JA
23215 { ac_try='test -z "$ac_c_werror_flag"
23216 || test ! -s conftest.err'
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try='test -s conftest$ac_exeext'
b80f6443 23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
b80f6443 23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23227 (exit $ac_status); }; }; then
d166f048
JA
23228 bash_cv_signal_vintage=4.2bsd
23229else
f73dda09 23230 echo "$as_me: failed program was:" >&5
0628567a
JA
23231sed 's/^/| /' conftest.$ac_ext >&5
23232
f73dda09
JA
23233
23234 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23235/* confdefs.h. */
23236_ACEOF
23237cat confdefs.h >>conftest.$ac_ext
23238cat >>conftest.$ac_ext <<_ACEOF
23239/* end confdefs.h. */
d166f048
JA
23240
23241 #include <signal.h>
23242 RETSIGTYPE foo() { }
f73dda09
JA
23243int
23244main ()
23245{
d166f048
JA
23246
23247 int mask = sigmask(SIGINT);
23248 sigset(SIGINT, foo); sigrelse(SIGINT);
23249 sighold(SIGINT); sigpause(SIGINT);
f73dda09
JA
23250
23251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 23256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 23257 (eval $ac_link) 2>conftest.er1
f73dda09 23258 ac_status=$?
0628567a
JA
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
b80f6443 23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23263 (exit $ac_status); } &&
0628567a
JA
23264 { ac_try='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest$ac_exeext'
b80f6443 23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
b80f6443 23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23276 (exit $ac_status); }; }; then
d166f048
JA
23277 bash_cv_signal_vintage=svr3
23278else
f73dda09 23279 echo "$as_me: failed program was:" >&5
0628567a
JA
23280sed 's/^/| /' conftest.$ac_ext >&5
23281
f73dda09
JA
23282bash_cv_signal_vintage=v7
23283
d166f048 23284fi
0628567a
JA
23285rm -f conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
f73dda09 23287
d166f048 23288fi
0628567a
JA
23289rm -f conftest.err conftest.$ac_objext \
23290 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
23291
23292fi
0628567a
JA
23293rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
23295
23296fi
23297
b80f6443 23298echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
f73dda09 23299echo "${ECHO_T}$bash_cv_signal_vintage" >&6
d166f048 23300if test "$bash_cv_signal_vintage" = posix; then
b80f6443 23301cat >>confdefs.h <<\_ACEOF
d166f048 23302#define HAVE_POSIX_SIGNALS 1
b80f6443 23303_ACEOF
d166f048
JA
23304
23305elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
b80f6443 23306cat >>confdefs.h <<\_ACEOF
d166f048 23307#define HAVE_BSD_SIGNALS 1
b80f6443 23308_ACEOF
d166f048
JA
23309
23310elif test "$bash_cv_signal_vintage" = svr3; then
b80f6443 23311cat >>confdefs.h <<\_ACEOF
d166f048 23312#define HAVE_USG_SIGHOLD 1
b80f6443 23313_ACEOF
d166f048
JA
23314
23315fi
23316
b80f6443
JA
23317
23318echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
f73dda09
JA
23319echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
23320if test "${bash_cv_sys_errlist+set}" = set; then
23321 echo $ECHO_N "(cached) $ECHO_C" >&6
cce855bc 23322else
f73dda09 23323 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23324/* confdefs.h. */
23325_ACEOF
23326cat confdefs.h >>conftest.$ac_ext
23327cat >>conftest.$ac_ext <<_ACEOF
23328/* end confdefs.h. */
f73dda09
JA
23329#include <errno.h>
23330int
cce855bc
JA
23331main ()
23332{
d166f048
JA
23333extern char *sys_errlist[];
23334 extern int sys_nerr;
23335 char *msg = sys_errlist[sys_nerr - 1];
f73dda09
JA
23336 ;
23337 return 0;
23338}
23339_ACEOF
23340rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 23341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 23342 (eval $ac_link) 2>conftest.er1
f73dda09 23343 ac_status=$?
0628567a
JA
23344 grep -v '^ *+' conftest.er1 >conftest.err
23345 rm -f conftest.er1
23346 cat conftest.err >&5
b80f6443 23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23348 (exit $ac_status); } &&
0628567a
JA
23349 { ac_try='test -z "$ac_c_werror_flag"
23350 || test ! -s conftest.err'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; } &&
23356 { ac_try='test -s conftest$ac_exeext'
b80f6443 23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
b80f6443 23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23361 (exit $ac_status); }; }; then
d166f048
JA
23362 bash_cv_sys_errlist=yes
23363else
f73dda09 23364 echo "$as_me: failed program was:" >&5
0628567a
JA
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
f73dda09 23367bash_cv_sys_errlist=no
d166f048 23368fi
0628567a
JA
23369rm -f conftest.err conftest.$ac_objext \
23370 conftest$ac_exeext conftest.$ac_ext
d166f048 23371fi
b80f6443 23372echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
f73dda09 23373echo "${ECHO_T}$bash_cv_sys_errlist" >&6
d166f048 23374if test $bash_cv_sys_errlist = yes; then
b80f6443 23375cat >>confdefs.h <<\_ACEOF
d166f048 23376#define HAVE_SYS_ERRLIST 1
b80f6443 23377_ACEOF
d166f048
JA
23378
23379fi
23380
b80f6443
JA
23381
23382echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
f73dda09
JA
23383echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
23384if test "${bash_cv_sys_siglist+set}" = set; then
23385 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
23386else
23387 if test "$cross_compiling" = yes; then
b80f6443 23388 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
f73dda09 23389echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 23390 bash_cv_sys_siglist=no
ccc6cda3 23391else
f73dda09 23392 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23393/* confdefs.h. */
23394_ACEOF
23395cat confdefs.h >>conftest.$ac_ext
23396cat >>conftest.$ac_ext <<_ACEOF
23397/* end confdefs.h. */
ccc6cda3
JA
23398
23399#include <sys/types.h>
23400#include <signal.h>
23401#ifdef HAVE_UNISTD_H
23402#include <unistd.h>
23403#endif
23404#ifndef SYS_SIGLIST_DECLARED
23405extern char *sys_siglist[];
23406#endif
23407main()
23408{
23409char *msg = sys_siglist[2];
23410exit(msg == 0);
23411}
f73dda09
JA
23412_ACEOF
23413rm -f conftest$ac_exeext
b80f6443 23414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
23415 (eval $ac_link) 2>&5
23416 ac_status=$?
b80f6443 23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
b80f6443 23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23423 (exit $ac_status); }; }; then
ccc6cda3
JA
23424 bash_cv_sys_siglist=yes
23425else
f73dda09
JA
23426 echo "$as_me: program exited with status $ac_status" >&5
23427echo "$as_me: failed program was:" >&5
0628567a
JA
23428sed 's/^/| /' conftest.$ac_ext >&5
23429
b80f6443 23430( exit $ac_status )
f73dda09 23431bash_cv_sys_siglist=no
ccc6cda3 23432fi
0628567a 23433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23434fi
ccc6cda3 23435fi
cce855bc 23436
b80f6443 23437echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
f73dda09 23438echo "${ECHO_T}$bash_cv_sys_siglist" >&6
ccc6cda3 23439if test $bash_cv_sys_siglist = yes; then
b80f6443 23440cat >>confdefs.h <<\_ACEOF
ccc6cda3 23441#define HAVE_SYS_SIGLIST 1
b80f6443 23442_ACEOF
ccc6cda3
JA
23443
23444fi
23445
b80f6443 23446echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
f73dda09
JA
23447echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
23448if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
e8ce775d 23450else
f73dda09 23451 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23452/* confdefs.h. */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h. */
e8ce775d
JA
23457
23458#include <sys/types.h>
23459#include <signal.h>
23460#ifdef HAVE_UNISTD_H
23461#include <unistd.h>
23462#endif
f73dda09
JA
23463int
23464main ()
23465{
23466 char *msg = _sys_siglist[2];
23467 ;
23468 return 0;
23469}
23470_ACEOF
23471rm -f conftest.$ac_objext
b80f6443 23472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 23473 (eval $ac_compile) 2>conftest.er1
f73dda09 23474 ac_status=$?
0628567a
JA
23475 grep -v '^ *+' conftest.er1 >conftest.err
23476 rm -f conftest.er1
23477 cat conftest.err >&5
b80f6443 23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23479 (exit $ac_status); } &&
0628567a
JA
23480 { ac_try='test -z "$ac_c_werror_flag"
23481 || test ! -s conftest.err'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; } &&
23487 { ac_try='test -s conftest.$ac_objext'
b80f6443 23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
b80f6443 23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23492 (exit $ac_status); }; }; then
e8ce775d
JA
23493 bash_cv_decl_under_sys_siglist=yes
23494else
f73dda09 23495 echo "$as_me: failed program was:" >&5
0628567a
JA
23496sed 's/^/| /' conftest.$ac_ext >&5
23497
f73dda09 23498bash_cv_decl_under_sys_siglist=no
e8ce775d 23499fi
0628567a 23500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e8ce775d 23501fi
b80f6443 23502echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
f73dda09 23503echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
e8ce775d 23504if test $bash_cv_decl_under_sys_siglist = yes; then
b80f6443 23505cat >>confdefs.h <<\_ACEOF
e8ce775d 23506#define UNDER_SYS_SIGLIST_DECLARED 1
b80f6443 23507_ACEOF
e8ce775d
JA
23508
23509fi
23510
b80f6443
JA
23511
23512echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
f73dda09
JA
23513echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
23514if test "${bash_cv_under_sys_siglist+set}" = set; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
23516else
23517 if test "$cross_compiling" = yes; then
b80f6443 23518 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
f73dda09 23519echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 23520 bash_cv_under_sys_siglist=no
ccc6cda3 23521else
f73dda09 23522 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23523/* confdefs.h. */
23524_ACEOF
23525cat confdefs.h >>conftest.$ac_ext
23526cat >>conftest.$ac_ext <<_ACEOF
23527/* end confdefs.h. */
ccc6cda3
JA
23528
23529#include <sys/types.h>
23530#include <signal.h>
23531#ifdef HAVE_UNISTD_H
23532#include <unistd.h>
23533#endif
e8ce775d 23534#ifndef UNDER_SYS_SIGLIST_DECLARED
ccc6cda3
JA
23535extern char *_sys_siglist[];
23536#endif
23537main()
23538{
e8ce775d 23539char *msg = (char *)_sys_siglist[2];
ccc6cda3
JA
23540exit(msg == 0);
23541}
f73dda09
JA
23542_ACEOF
23543rm -f conftest$ac_exeext
b80f6443 23544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
23545 (eval $ac_link) 2>&5
23546 ac_status=$?
b80f6443 23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23550 (eval $ac_try) 2>&5
23551 ac_status=$?
b80f6443 23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23553 (exit $ac_status); }; }; then
ccc6cda3
JA
23554 bash_cv_under_sys_siglist=yes
23555else
f73dda09
JA
23556 echo "$as_me: program exited with status $ac_status" >&5
23557echo "$as_me: failed program was:" >&5
0628567a
JA
23558sed 's/^/| /' conftest.$ac_ext >&5
23559
b80f6443 23560( exit $ac_status )
f73dda09 23561bash_cv_under_sys_siglist=no
ccc6cda3 23562fi
0628567a 23563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23564fi
ccc6cda3 23565fi
cce855bc 23566
b80f6443 23567echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
f73dda09 23568echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
ccc6cda3 23569if test $bash_cv_under_sys_siglist = yes; then
b80f6443 23570cat >>confdefs.h <<\_ACEOF
ccc6cda3 23571#define HAVE_UNDER_SYS_SIGLIST 1
b80f6443 23572_ACEOF
ccc6cda3
JA
23573
23574fi
23575
b80f6443
JA
23576
23577echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
f73dda09
JA
23578echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
23579if test "${bash_cv_void_sighandler+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23581else
f73dda09 23582 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23583/* confdefs.h. */
23584_ACEOF
23585cat confdefs.h >>conftest.$ac_ext
23586cat >>conftest.$ac_ext <<_ACEOF
23587/* end confdefs.h. */
ccc6cda3
JA
23588#include <sys/types.h>
23589#include <signal.h>
23590#ifdef signal
23591#undef signal
23592#endif
23593#ifdef __cplusplus
23594extern "C"
23595#endif
23596void (*signal ()) ();
f73dda09
JA
23597int
23598main ()
23599{
ccc6cda3 23600int i;
f73dda09
JA
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext
b80f6443 23606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 23607 (eval $ac_compile) 2>conftest.er1
f73dda09 23608 ac_status=$?
0628567a
JA
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
b80f6443 23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23613 (exit $ac_status); } &&
0628567a
JA
23614 { ac_try='test -z "$ac_c_werror_flag"
23615 || test ! -s conftest.err'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest.$ac_objext'
b80f6443 23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
b80f6443 23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23626 (exit $ac_status); }; }; then
ccc6cda3
JA
23627 bash_cv_void_sighandler=yes
23628else
f73dda09 23629 echo "$as_me: failed program was:" >&5
0628567a
JA
23630sed 's/^/| /' conftest.$ac_ext >&5
23631
f73dda09 23632bash_cv_void_sighandler=no
ccc6cda3 23633fi
0628567a 23634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 23635fi
b80f6443 23636echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
f73dda09 23637echo "${ECHO_T}$bash_cv_void_sighandler" >&6
ccc6cda3 23638if test $bash_cv_void_sighandler = yes; then
b80f6443 23639cat >>confdefs.h <<\_ACEOF
ccc6cda3 23640#define VOID_SIGHANDLER 1
b80f6443 23641_ACEOF
ccc6cda3
JA
23642
23643fi
23644
b80f6443
JA
23645
23646
23647echo "$as_me:$LINENO: checking for clock_t" >&5
f73dda09
JA
23648echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23649if test "${bash_cv_type_clock_t+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23651else
f73dda09 23652 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23653/* confdefs.h. */
23654_ACEOF
23655cat confdefs.h >>conftest.$ac_ext
23656cat >>conftest.$ac_ext <<_ACEOF
23657/* end confdefs.h. */
ccc6cda3
JA
23658#include <sys/types.h>
23659#if STDC_HEADERS
23660#include <stdlib.h>
f73dda09
JA
23661#include <stddef.h>
23662#endif
23663#if HAVE_INTTYPES_H
23664#include <inttypes.h>
ccc6cda3
JA
23665#endif
23666#include <sys/times.h>
23667
f73dda09 23668_ACEOF
ccc6cda3 23669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 23670 $EGREP "clock_t" >/dev/null 2>&1; then
ccc6cda3
JA
23671 bash_cv_type_clock_t=yes
23672else
ccc6cda3
JA
23673 bash_cv_type_clock_t=no
23674fi
23675rm -f conftest*
23676
23677fi
23678
b80f6443 23679echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
f73dda09 23680echo "${ECHO_T}$bash_cv_type_clock_t" >&6
ccc6cda3
JA
23681
23682if test $bash_cv_type_clock_t = no; then
b80f6443 23683 cat >>confdefs.h <<_ACEOF
ccc6cda3 23684#define clock_t long
b80f6443 23685_ACEOF
ccc6cda3
JA
23686
23687fi
23688
b80f6443
JA
23689
23690
23691echo "$as_me:$LINENO: checking for sigset_t" >&5
f73dda09
JA
23692echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23693if test "${bash_cv_type_sigset_t+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23695else
f73dda09 23696 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23697/* confdefs.h. */
23698_ACEOF
23699cat confdefs.h >>conftest.$ac_ext
23700cat >>conftest.$ac_ext <<_ACEOF
23701/* end confdefs.h. */
ccc6cda3
JA
23702#include <sys/types.h>
23703#if STDC_HEADERS
23704#include <stdlib.h>
f73dda09
JA
23705#include <stddef.h>
23706#endif
23707#if HAVE_INTTYPES_H
23708#include <inttypes.h>
ccc6cda3
JA
23709#endif
23710#include <signal.h>
23711
f73dda09 23712_ACEOF
ccc6cda3 23713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 23714 $EGREP "sigset_t" >/dev/null 2>&1; then
ccc6cda3
JA
23715 bash_cv_type_sigset_t=yes
23716else
ccc6cda3
JA
23717 bash_cv_type_sigset_t=no
23718fi
23719rm -f conftest*
23720
23721fi
23722
b80f6443 23723echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
f73dda09 23724echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
ccc6cda3
JA
23725
23726if test $bash_cv_type_sigset_t = no; then
b80f6443 23727 cat >>confdefs.h <<_ACEOF
ccc6cda3 23728#define sigset_t int
b80f6443 23729_ACEOF
ccc6cda3
JA
23730
23731fi
23732
b80f6443
JA
23733
23734
23735echo "$as_me:$LINENO: checking for quad_t" >&5
f73dda09
JA
23736echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23737if test "${bash_cv_type_quad_t+set}" = set; then
23738 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23739else
f73dda09 23740 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23741/* confdefs.h. */
23742_ACEOF
23743cat confdefs.h >>conftest.$ac_ext
23744cat >>conftest.$ac_ext <<_ACEOF
23745/* end confdefs.h. */
ccc6cda3
JA
23746#include <sys/types.h>
23747#if STDC_HEADERS
23748#include <stdlib.h>
f73dda09
JA
23749#include <stddef.h>
23750#endif
23751#if HAVE_INTTYPES_H
23752#include <inttypes.h>
ccc6cda3
JA
23753#endif
23754
b80f6443 23755
f73dda09 23756_ACEOF
ccc6cda3 23757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 23758 $EGREP "quad_t" >/dev/null 2>&1; then
ccc6cda3
JA
23759 bash_cv_type_quad_t=yes
23760else
ccc6cda3
JA
23761 bash_cv_type_quad_t=no
23762fi
23763rm -f conftest*
23764
23765fi
23766
b80f6443 23767echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
f73dda09 23768echo "${ECHO_T}$bash_cv_type_quad_t" >&6
ccc6cda3 23769if test $bash_cv_type_quad_t = yes; then
b80f6443 23770 cat >>confdefs.h <<\_ACEOF
ccc6cda3 23771#define HAVE_QUAD_T 1
b80f6443 23772_ACEOF
ccc6cda3
JA
23773
23774 fi
23775if test $bash_cv_type_quad_t = no; then
b80f6443 23776 cat >>confdefs.h <<_ACEOF
ccc6cda3 23777#define quad_t long
b80f6443 23778_ACEOF
ccc6cda3
JA
23779
23780fi
23781
b80f6443
JA
23782
23783
23784echo "$as_me:$LINENO: checking for intmax_t" >&5
f73dda09
JA
23785echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23786if test "${bash_cv_type_intmax_t+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23788else
23789 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23790/* confdefs.h. */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h. */
f73dda09
JA
23795#include <sys/types.h>
23796#if STDC_HEADERS
23797#include <stdlib.h>
23798#include <stddef.h>
23799#endif
23800#if HAVE_INTTYPES_H
23801#include <inttypes.h>
23802#endif
23803
b80f6443 23804
f73dda09
JA
23805_ACEOF
23806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 23807 $EGREP "intmax_t" >/dev/null 2>&1; then
f73dda09
JA
23808 bash_cv_type_intmax_t=yes
23809else
23810 bash_cv_type_intmax_t=no
23811fi
23812rm -f conftest*
23813
23814fi
23815
b80f6443 23816echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
f73dda09
JA
23817echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23818
23819if test $bash_cv_type_intmax_t = no; then
b80f6443 23820 cat >>confdefs.h <<_ACEOF
f73dda09 23821#define intmax_t $bash_cv_type_long_long
b80f6443 23822_ACEOF
f73dda09
JA
23823
23824fi
23825
b80f6443
JA
23826
23827
23828echo "$as_me:$LINENO: checking for uintmax_t" >&5
f73dda09
JA
23829echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23830if test "${bash_cv_type_uintmax_t+set}" = set; then
23831 echo $ECHO_N "(cached) $ECHO_C" >&6
23832else
23833 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23834/* confdefs.h. */
23835_ACEOF
23836cat confdefs.h >>conftest.$ac_ext
23837cat >>conftest.$ac_ext <<_ACEOF
23838/* end confdefs.h. */
f73dda09
JA
23839#include <sys/types.h>
23840#if STDC_HEADERS
23841#include <stdlib.h>
23842#include <stddef.h>
23843#endif
23844#if HAVE_INTTYPES_H
23845#include <inttypes.h>
23846#endif
23847
b80f6443 23848
f73dda09
JA
23849_ACEOF
23850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 23851 $EGREP "uintmax_t" >/dev/null 2>&1; then
f73dda09
JA
23852 bash_cv_type_uintmax_t=yes
23853else
23854 bash_cv_type_uintmax_t=no
23855fi
23856rm -f conftest*
23857
23858fi
23859
b80f6443 23860echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
f73dda09
JA
23861echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23862
23863if test $bash_cv_type_uintmax_t = no; then
b80f6443 23864 cat >>confdefs.h <<_ACEOF
f73dda09 23865#define uintmax_t $bash_cv_type_unsigned_long_long
b80f6443 23866_ACEOF
f73dda09
JA
23867
23868fi
23869
23870if test "$ac_cv_header_sys_socket_h" = "yes"; then
23871
b80f6443
JA
23872
23873echo "$as_me:$LINENO: checking for socklen_t" >&5
f73dda09
JA
23874echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23875if test "${bash_cv_type_socklen_t+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23877else
23878 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23879/* confdefs.h. */
23880_ACEOF
23881cat confdefs.h >>conftest.$ac_ext
23882cat >>conftest.$ac_ext <<_ACEOF
23883/* end confdefs.h. */
f73dda09
JA
23884#include <sys/types.h>
23885#if STDC_HEADERS
23886#include <stdlib.h>
23887#include <stddef.h>
23888#endif
23889#if HAVE_INTTYPES_H
23890#include <inttypes.h>
23891#endif
23892#include <sys/socket.h>
23893
23894_ACEOF
23895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 23896 $EGREP "socklen_t" >/dev/null 2>&1; then
f73dda09
JA
23897 bash_cv_type_socklen_t=yes
23898else
23899 bash_cv_type_socklen_t=no
23900fi
23901rm -f conftest*
23902
23903fi
23904
b80f6443 23905echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
f73dda09
JA
23906echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23907if test $bash_cv_type_socklen_t = yes; then
b80f6443 23908 cat >>confdefs.h <<\_ACEOF
f73dda09 23909#define HAVE_SOCKLEN_T 1
b80f6443 23910_ACEOF
f73dda09
JA
23911
23912 fi
23913if test $bash_cv_type_socklen_t = no; then
b80f6443 23914 cat >>confdefs.h <<_ACEOF
f73dda09 23915#define socklen_t int
b80f6443 23916_ACEOF
f73dda09
JA
23917
23918fi
23919
23920fi
b80f6443 23921echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
f73dda09
JA
23922echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23923if test "${bash_cv_type_rlimit+set}" = set; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 23925else
f73dda09 23926 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23927/* confdefs.h. */
23928_ACEOF
23929cat confdefs.h >>conftest.$ac_ext
23930cat >>conftest.$ac_ext <<_ACEOF
23931/* end confdefs.h. */
ccc6cda3 23932#include <sys/types.h>
cce855bc 23933#include <sys/resource.h>
f73dda09
JA
23934int
23935main ()
23936{
ccc6cda3 23937rlim_t xxx;
f73dda09
JA
23938 ;
23939 return 0;
23940}
23941_ACEOF
23942rm -f conftest.$ac_objext
b80f6443 23943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 23944 (eval $ac_compile) 2>conftest.er1
f73dda09 23945 ac_status=$?
0628567a
JA
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
b80f6443 23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23950 (exit $ac_status); } &&
0628567a
JA
23951 { ac_try='test -z "$ac_c_werror_flag"
23952 || test ! -s conftest.err'
23953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954 (eval $ac_try) 2>&5
23955 ac_status=$?
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); }; } &&
23958 { ac_try='test -s conftest.$ac_objext'
b80f6443 23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
b80f6443 23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 23963 (exit $ac_status); }; }; then
ccc6cda3
JA
23964 bash_cv_type_rlimit=rlim_t
23965else
f73dda09 23966 echo "$as_me: failed program was:" >&5
0628567a
JA
23967sed 's/^/| /' conftest.$ac_ext >&5
23968
f73dda09 23969
ccc6cda3 23970if test "$cross_compiling" = yes; then
b80f6443 23971 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
f73dda09 23972echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
cce855bc 23973 bash_cv_type_rlimit=long
ccc6cda3 23974else
f73dda09 23975 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
ccc6cda3
JA
23981
23982#include <sys/types.h>
23983#include <sys/time.h>
23984#include <sys/resource.h>
23985main()
23986{
23987#ifdef HAVE_QUAD_T
23988 struct rlimit rl;
23989 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23990 exit(0);
23991#endif
23992 exit(1);
23993}
f73dda09
JA
23994_ACEOF
23995rm -f conftest$ac_exeext
b80f6443 23996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
23997 (eval $ac_link) 2>&5
23998 ac_status=$?
b80f6443 23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
b80f6443 24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24005 (exit $ac_status); }; }; then
ccc6cda3
JA
24006 bash_cv_type_rlimit=quad_t
24007else
f73dda09
JA
24008 echo "$as_me: program exited with status $ac_status" >&5
24009echo "$as_me: failed program was:" >&5
0628567a
JA
24010sed 's/^/| /' conftest.$ac_ext >&5
24011
b80f6443 24012( exit $ac_status )
f73dda09 24013bash_cv_type_rlimit=long
ccc6cda3 24014fi
0628567a 24015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24016fi
ccc6cda3 24017fi
0628567a 24018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
24019
24020fi
24021
b80f6443 24022echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
f73dda09 24023echo "${ECHO_T}$bash_cv_type_rlimit" >&6
ccc6cda3 24024if test $bash_cv_type_rlimit = quad_t; then
b80f6443 24025cat >>confdefs.h <<\_ACEOF
ccc6cda3 24026#define RLIMTYPE quad_t
b80f6443 24027_ACEOF
ccc6cda3
JA
24028
24029elif test $bash_cv_type_rlimit = rlim_t; then
b80f6443 24030cat >>confdefs.h <<\_ACEOF
ccc6cda3 24031#define RLIMTYPE rlim_t
b80f6443 24032_ACEOF
ccc6cda3
JA
24033
24034fi
24035
b80f6443
JA
24036
24037
24038echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
f73dda09
JA
24039echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
24040if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 24042else
f73dda09 24043 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24044/* confdefs.h. */
24045_ACEOF
24046cat confdefs.h >>conftest.$ac_ext
24047cat >>conftest.$ac_ext <<_ACEOF
24048/* end confdefs.h. */
f73dda09 24049
ccc6cda3
JA
24050#include <sys/types.h>
24051#include <termios.h>
f73dda09 24052
b80f6443 24053
f73dda09
JA
24054int
24055main ()
24056{
24057static struct termios ac_aggr;
24058if (ac_aggr.c_line)
24059return 0;
24060 ;
24061 return 0;
24062}
24063_ACEOF
24064rm -f conftest.$ac_objext
b80f6443 24065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a
JA
24066 (eval $ac_compile) 2>conftest.er1
24067 ac_status=$?
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } &&
24073 { ac_try='test -z "$ac_c_werror_flag"
24074 || test ! -s conftest.err'
24075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24077 ac_status=$?
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); }; } &&
24080 { ac_try='test -s conftest.$ac_objext'
24081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082 (eval $ac_try) 2>&5
24083 ac_status=$?
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); }; }; then
24086 ac_cv_member_struct_termios_c_line=yes
24087else
24088 echo "$as_me: failed program was:" >&5
24089sed 's/^/| /' conftest.$ac_ext >&5
24090
24091cat >conftest.$ac_ext <<_ACEOF
24092/* confdefs.h. */
24093_ACEOF
24094cat confdefs.h >>conftest.$ac_ext
24095cat >>conftest.$ac_ext <<_ACEOF
24096/* end confdefs.h. */
24097
24098#include <sys/types.h>
24099#include <termios.h>
24100
24101
24102int
24103main ()
24104{
24105static struct termios ac_aggr;
24106if (sizeof ac_aggr.c_line)
24107return 0;
24108 ;
24109 return 0;
24110}
24111_ACEOF
24112rm -f conftest.$ac_objext
24113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24114 (eval $ac_compile) 2>conftest.er1
b80f6443 24115 ac_status=$?
0628567a
JA
24116 grep -v '^ *+' conftest.er1 >conftest.err
24117 rm -f conftest.er1
24118 cat conftest.err >&5
b80f6443
JA
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
0628567a
JA
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24125 ac_status=$?
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ac_cv_member_struct_termios_c_line=yes
24135else
24136 echo "$as_me: failed program was:" >&5
0628567a
JA
24137sed 's/^/| /' conftest.$ac_ext >&5
24138
f73dda09
JA
24139ac_cv_member_struct_termios_c_line=no
24140fi
0628567a
JA
24141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24142fi
24143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24144fi
b80f6443 24145echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
f73dda09
JA
24146echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
24147if test $ac_cv_member_struct_termios_c_line = yes; then
b80f6443 24148 cat >>confdefs.h <<\_ACEOF
ccc6cda3 24149#define TERMIOS_LDISC 1
b80f6443 24150_ACEOF
ccc6cda3
JA
24151
24152fi
24153
b80f6443
JA
24154
24155
24156echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
f73dda09
JA
24157echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
24158if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 24160else
f73dda09 24161 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24162/* confdefs.h. */
24163_ACEOF
24164cat confdefs.h >>conftest.$ac_ext
24165cat >>conftest.$ac_ext <<_ACEOF
24166/* end confdefs.h. */
f73dda09 24167
ccc6cda3
JA
24168#include <sys/types.h>
24169#include <termio.h>
f73dda09 24170
b80f6443 24171
f73dda09
JA
24172int
24173main ()
24174{
24175static struct termio ac_aggr;
24176if (ac_aggr.c_line)
24177return 0;
24178 ;
24179 return 0;
24180}
24181_ACEOF
24182rm -f conftest.$ac_objext
b80f6443 24183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a
JA
24184 (eval $ac_compile) 2>conftest.er1
24185 ac_status=$?
24186 grep -v '^ *+' conftest.er1 >conftest.err
24187 rm -f conftest.er1
24188 cat conftest.err >&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } &&
24191 { ac_try='test -z "$ac_c_werror_flag"
24192 || test ! -s conftest.err'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try='test -s conftest.$ac_objext'
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 ac_cv_member_struct_termio_c_line=yes
24205else
24206 echo "$as_me: failed program was:" >&5
24207sed 's/^/| /' conftest.$ac_ext >&5
24208
24209cat >conftest.$ac_ext <<_ACEOF
24210/* confdefs.h. */
24211_ACEOF
24212cat confdefs.h >>conftest.$ac_ext
24213cat >>conftest.$ac_ext <<_ACEOF
24214/* end confdefs.h. */
24215
24216#include <sys/types.h>
24217#include <termio.h>
24218
24219
24220int
24221main ()
24222{
24223static struct termio ac_aggr;
24224if (sizeof ac_aggr.c_line)
24225return 0;
24226 ;
24227 return 0;
24228}
24229_ACEOF
24230rm -f conftest.$ac_objext
24231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24232 (eval $ac_compile) 2>conftest.er1
b80f6443 24233 ac_status=$?
0628567a
JA
24234 grep -v '^ *+' conftest.er1 >conftest.err
24235 rm -f conftest.er1
24236 cat conftest.err >&5
b80f6443
JA
24237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238 (exit $ac_status); } &&
0628567a
JA
24239 { ac_try='test -z "$ac_c_werror_flag"
24240 || test ! -s conftest.err'
24241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; } &&
24246 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
24247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24248 (eval $ac_try) 2>&5
24249 ac_status=$?
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); }; }; then
24252 ac_cv_member_struct_termio_c_line=yes
24253else
24254 echo "$as_me: failed program was:" >&5
0628567a
JA
24255sed 's/^/| /' conftest.$ac_ext >&5
24256
f73dda09
JA
24257ac_cv_member_struct_termio_c_line=no
24258fi
0628567a
JA
24259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24260fi
24261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24262fi
b80f6443 24263echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
f73dda09
JA
24264echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
24265if test $ac_cv_member_struct_termio_c_line = yes; then
b80f6443 24266 cat >>confdefs.h <<\_ACEOF
ccc6cda3 24267#define TERMIO_LDISC 1
b80f6443 24268_ACEOF
ccc6cda3
JA
24269
24270fi
24271
b80f6443
JA
24272
24273
24274echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
24275echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
f73dda09
JA
24276if test "${bash_cv_dirent_has_dino+set}" = set; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 24278else
f73dda09 24279 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24280/* confdefs.h. */
24281_ACEOF
24282cat confdefs.h >>conftest.$ac_ext
24283cat >>conftest.$ac_ext <<_ACEOF
24284/* end confdefs.h. */
ccc6cda3
JA
24285
24286#include <stdio.h>
24287#include <sys/types.h>
24288#ifdef HAVE_UNISTD_H
24289# include <unistd.h>
24290#endif /* HAVE_UNISTD_H */
24291#if defined(HAVE_DIRENT_H)
24292# include <dirent.h>
24293#else
24294# define dirent direct
24295# ifdef HAVE_SYS_NDIR_H
24296# include <sys/ndir.h>
24297# endif /* SYSNDIR */
24298# ifdef HAVE_SYS_DIR_H
24299# include <sys/dir.h>
24300# endif /* SYSDIR */
24301# ifdef HAVE_NDIR_H
24302# include <ndir.h>
24303# endif
24304#endif /* HAVE_DIRENT_H */
24305
f73dda09
JA
24306int
24307main ()
24308{
ccc6cda3
JA
24309
24310struct dirent d; int z; z = d.d_ino;
24311
f73dda09
JA
24312 ;
24313 return 0;
24314}
24315_ACEOF
24316rm -f conftest.$ac_objext
b80f6443 24317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 24318 (eval $ac_compile) 2>conftest.er1
f73dda09 24319 ac_status=$?
0628567a
JA
24320 grep -v '^ *+' conftest.er1 >conftest.err
24321 rm -f conftest.er1
24322 cat conftest.err >&5
b80f6443 24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24324 (exit $ac_status); } &&
0628567a
JA
24325 { ac_try='test -z "$ac_c_werror_flag"
24326 || test ! -s conftest.err'
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest.$ac_objext'
b80f6443 24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
b80f6443 24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24337 (exit $ac_status); }; }; then
ccc6cda3
JA
24338 bash_cv_dirent_has_dino=yes
24339else
f73dda09 24340 echo "$as_me: failed program was:" >&5
0628567a
JA
24341sed 's/^/| /' conftest.$ac_ext >&5
24342
f73dda09 24343bash_cv_dirent_has_dino=no
ccc6cda3 24344fi
0628567a 24345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
24346fi
24347
b80f6443 24348echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
f73dda09 24349echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
ccc6cda3 24350if test $bash_cv_dirent_has_dino = yes; then
b80f6443
JA
24351cat >>confdefs.h <<\_ACEOF
24352#define HAVE_STRUCT_DIRENT_D_INO 1
24353_ACEOF
ccc6cda3
JA
24354
24355fi
24356
b80f6443
JA
24357
24358echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
24359echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
f73dda09
JA
24360if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 24362else
f73dda09 24363 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24364/* confdefs.h. */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h. */
d166f048
JA
24369
24370#include <stdio.h>
24371#include <sys/types.h>
24372#ifdef HAVE_UNISTD_H
24373# include <unistd.h>
24374#endif /* HAVE_UNISTD_H */
24375#if defined(HAVE_DIRENT_H)
24376# include <dirent.h>
24377#else
24378# define dirent direct
24379# ifdef HAVE_SYS_NDIR_H
24380# include <sys/ndir.h>
24381# endif /* SYSNDIR */
24382# ifdef HAVE_SYS_DIR_H
24383# include <sys/dir.h>
24384# endif /* SYSDIR */
24385# ifdef HAVE_NDIR_H
24386# include <ndir.h>
24387# endif
24388#endif /* HAVE_DIRENT_H */
24389
f73dda09
JA
24390int
24391main ()
24392{
d166f048
JA
24393
24394struct dirent d; int z; z = d.d_fileno;
24395
f73dda09
JA
24396 ;
24397 return 0;
24398}
24399_ACEOF
24400rm -f conftest.$ac_objext
b80f6443 24401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 24402 (eval $ac_compile) 2>conftest.er1
f73dda09 24403 ac_status=$?
0628567a
JA
24404 grep -v '^ *+' conftest.er1 >conftest.err
24405 rm -f conftest.er1
24406 cat conftest.err >&5
b80f6443 24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24408 (exit $ac_status); } &&
0628567a
JA
24409 { ac_try='test -z "$ac_c_werror_flag"
24410 || test ! -s conftest.err'
24411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412 (eval $ac_try) 2>&5
24413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; } &&
24416 { ac_try='test -s conftest.$ac_objext'
b80f6443 24417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
b80f6443 24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24421 (exit $ac_status); }; }; then
d166f048
JA
24422 bash_cv_dirent_has_d_fileno=yes
24423else
f73dda09 24424 echo "$as_me: failed program was:" >&5
0628567a
JA
24425sed 's/^/| /' conftest.$ac_ext >&5
24426
f73dda09 24427bash_cv_dirent_has_d_fileno=no
d166f048 24428fi
0628567a 24429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
24430fi
24431
b80f6443 24432echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
f73dda09 24433echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
d166f048 24434if test $bash_cv_dirent_has_d_fileno = yes; then
b80f6443
JA
24435cat >>confdefs.h <<\_ACEOF
24436#define HAVE_STRUCT_DIRENT_D_FILENO 1
24437_ACEOF
24438
24439fi
24440
24441
24442echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
24443echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
24444if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24446else
24447 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24448/* confdefs.h. */
24449_ACEOF
24450cat confdefs.h >>conftest.$ac_ext
24451cat >>conftest.$ac_ext <<_ACEOF
24452/* end confdefs.h. */
b80f6443
JA
24453
24454#include <stdio.h>
24455#include <sys/types.h>
24456#ifdef HAVE_UNISTD_H
24457# include <unistd.h>
24458#endif /* HAVE_UNISTD_H */
24459#if defined(HAVE_DIRENT_H)
24460# include <dirent.h>
24461#else
24462# define dirent direct
24463# ifdef HAVE_SYS_NDIR_H
24464# include <sys/ndir.h>
24465# endif /* SYSNDIR */
24466# ifdef HAVE_SYS_DIR_H
24467# include <sys/dir.h>
24468# endif /* SYSDIR */
24469# ifdef HAVE_NDIR_H
24470# include <ndir.h>
24471# endif
24472#endif /* HAVE_DIRENT_H */
24473
24474int
24475main ()
24476{
24477
24478struct dirent d; int z; z = d.d_namlen;
24479
24480 ;
24481 return 0;
24482}
24483_ACEOF
24484rm -f conftest.$ac_objext
24485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 24486 (eval $ac_compile) 2>conftest.er1
b80f6443 24487 ac_status=$?
0628567a
JA
24488 grep -v '^ *+' conftest.er1 >conftest.err
24489 rm -f conftest.er1
24490 cat conftest.err >&5
b80f6443
JA
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } &&
0628567a
JA
24493 { ac_try='test -z "$ac_c_werror_flag"
24494 || test ! -s conftest.err'
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
24501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502 (eval $ac_try) 2>&5
24503 ac_status=$?
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); }; }; then
24506 bash_cv_dirent_has_d_namlen=yes
24507else
24508 echo "$as_me: failed program was:" >&5
0628567a
JA
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
b80f6443 24511bash_cv_dirent_has_d_namlen=no
d166f048 24512fi
0628567a 24513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
24514fi
24515
24516echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
24517echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
24518if test $bash_cv_dirent_has_d_namlen = yes; then
24519cat >>confdefs.h <<\_ACEOF
24520#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
24521_ACEOF
d166f048 24522
b80f6443
JA
24523fi
24524
24525echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
f73dda09
JA
24526echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
24527if test "${bash_cv_struct_winsize_header+set}" = set; then
24528 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 24529else
f73dda09 24530 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24531/* confdefs.h. */
24532_ACEOF
24533cat confdefs.h >>conftest.$ac_ext
24534cat >>conftest.$ac_ext <<_ACEOF
24535/* end confdefs.h. */
d166f048
JA
24536#include <sys/types.h>
24537#include <sys/ioctl.h>
f73dda09
JA
24538int
24539main ()
24540{
d166f048 24541struct winsize x;
f73dda09
JA
24542 ;
24543 return 0;
24544}
24545_ACEOF
24546rm -f conftest.$ac_objext
b80f6443 24547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 24548 (eval $ac_compile) 2>conftest.er1
f73dda09 24549 ac_status=$?
0628567a
JA
24550 grep -v '^ *+' conftest.er1 >conftest.err
24551 rm -f conftest.er1
24552 cat conftest.err >&5
b80f6443 24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24554 (exit $ac_status); } &&
0628567a
JA
24555 { ac_try='test -z "$ac_c_werror_flag"
24556 || test ! -s conftest.err'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; } &&
24562 { ac_try='test -s conftest.$ac_objext'
b80f6443 24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
b80f6443 24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24567 (exit $ac_status); }; }; then
cce855bc
JA
24568 bash_cv_struct_winsize_header=ioctl_h
24569else
f73dda09 24570 echo "$as_me: failed program was:" >&5
0628567a
JA
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
f73dda09 24573cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24574/* confdefs.h. */
24575_ACEOF
24576cat confdefs.h >>conftest.$ac_ext
24577cat >>conftest.$ac_ext <<_ACEOF
24578/* end confdefs.h. */
cce855bc
JA
24579#include <sys/types.h>
24580#include <termios.h>
f73dda09
JA
24581int
24582main ()
24583{
cce855bc 24584struct winsize x;
f73dda09
JA
24585 ;
24586 return 0;
24587}
24588_ACEOF
24589rm -f conftest.$ac_objext
b80f6443 24590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 24591 (eval $ac_compile) 2>conftest.er1
f73dda09 24592 ac_status=$?
0628567a
JA
24593 grep -v '^ *+' conftest.er1 >conftest.err
24594 rm -f conftest.er1
24595 cat conftest.err >&5
b80f6443 24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24597 (exit $ac_status); } &&
0628567a
JA
24598 { ac_try='test -z "$ac_c_werror_flag"
24599 || test ! -s conftest.err'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; } &&
24605 { ac_try='test -s conftest.$ac_objext'
b80f6443 24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
b80f6443 24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 24610 (exit $ac_status); }; }; then
cce855bc 24611 bash_cv_struct_winsize_header=termios_h
d166f048 24612else
f73dda09 24613 echo "$as_me: failed program was:" >&5
0628567a
JA
24614sed 's/^/| /' conftest.$ac_ext >&5
24615
f73dda09 24616bash_cv_struct_winsize_header=other
cce855bc 24617fi
0628567a 24618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 24619
d166f048 24620fi
0628567a 24621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
24622fi
24623
cce855bc 24624if test $bash_cv_struct_winsize_header = ioctl_h; then
b80f6443 24625 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
f73dda09 24626echo "${ECHO_T}sys/ioctl.h" >&6
b80f6443 24627 cat >>confdefs.h <<\_ACEOF
d166f048 24628#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
b80f6443 24629_ACEOF
d166f048 24630
cce855bc 24631elif test $bash_cv_struct_winsize_header = termios_h; then
b80f6443 24632 echo "$as_me:$LINENO: result: termios.h" >&5
f73dda09 24633echo "${ECHO_T}termios.h" >&6
b80f6443 24634 cat >>confdefs.h <<\_ACEOF
cce855bc 24635#define STRUCT_WINSIZE_IN_TERMIOS 1
b80f6443 24636_ACEOF
cce855bc
JA
24637
24638else
b80f6443 24639 echo "$as_me:$LINENO: result: not found" >&5
f73dda09 24640echo "${ECHO_T}not found" >&6
d166f048
JA
24641fi
24642
b80f6443 24643echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
f73dda09
JA
24644echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24645if test "${bash_cv_struct_timeval+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 24647else
f73dda09
JA
24648
24649cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24650/* confdefs.h. */
24651_ACEOF
24652cat confdefs.h >>conftest.$ac_ext
24653cat >>conftest.$ac_ext <<_ACEOF
24654/* end confdefs.h. */
bb70624e 24655#include <sys/time.h>
f73dda09
JA
24656
24657_ACEOF
bb70624e 24658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 24659 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
24660 bash_cv_struct_timeval=yes
24661else
f73dda09 24662 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24663/* confdefs.h. */
24664_ACEOF
24665cat confdefs.h >>conftest.$ac_ext
24666cat >>conftest.$ac_ext <<_ACEOF
24667/* end confdefs.h. */
bb70624e 24668#include <time.h>
f73dda09
JA
24669
24670_ACEOF
bb70624e 24671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 24672 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
24673 bash_cv_struct_timeval=yes
24674else
bb70624e
JA
24675 bash_cv_struct_timeval=no
24676fi
24677rm -f conftest*
24678
24679fi
24680rm -f conftest*
24681
b80f6443 24682
bb70624e
JA
24683fi
24684
b80f6443 24685echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
f73dda09 24686echo "${ECHO_T}$bash_cv_struct_timeval" >&6
bb70624e 24687if test $bash_cv_struct_timeval = yes; then
b80f6443 24688 cat >>confdefs.h <<\_ACEOF
bb70624e 24689#define HAVE_TIMEVAL 1
b80f6443 24690_ACEOF
bb70624e
JA
24691
24692fi
24693
b80f6443 24694echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
f73dda09
JA
24695echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24696if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24698else
24699 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24700/* confdefs.h. */
24701_ACEOF
24702cat confdefs.h >>conftest.$ac_ext
24703cat >>conftest.$ac_ext <<_ACEOF
24704/* end confdefs.h. */
f73dda09
JA
24705$ac_includes_default
24706int
24707main ()
24708{
24709static struct stat ac_aggr;
24710if (ac_aggr.st_blocks)
24711return 0;
24712 ;
24713 return 0;
24714}
24715_ACEOF
24716rm -f conftest.$ac_objext
b80f6443 24717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a
JA
24718 (eval $ac_compile) 2>conftest.er1
24719 ac_status=$?
24720 grep -v '^ *+' conftest.er1 >conftest.err
24721 rm -f conftest.er1
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } &&
24725 { ac_try='test -z "$ac_c_werror_flag"
24726 || test ! -s conftest.err'
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; } &&
24732 { ac_try='test -s conftest.$ac_objext'
24733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; }; then
24738 ac_cv_member_struct_stat_st_blocks=yes
24739else
24740 echo "$as_me: failed program was:" >&5
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743cat >conftest.$ac_ext <<_ACEOF
24744/* confdefs.h. */
24745_ACEOF
24746cat confdefs.h >>conftest.$ac_ext
24747cat >>conftest.$ac_ext <<_ACEOF
24748/* end confdefs.h. */
24749$ac_includes_default
24750int
24751main ()
24752{
24753static struct stat ac_aggr;
24754if (sizeof ac_aggr.st_blocks)
24755return 0;
24756 ;
24757 return 0;
24758}
24759_ACEOF
24760rm -f conftest.$ac_objext
24761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24762 (eval $ac_compile) 2>conftest.er1
b80f6443 24763 ac_status=$?
0628567a
JA
24764 grep -v '^ *+' conftest.er1 >conftest.err
24765 rm -f conftest.er1
24766 cat conftest.err >&5
b80f6443
JA
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } &&
0628567a
JA
24769 { ac_try='test -z "$ac_c_werror_flag"
24770 || test ! -s conftest.err'
24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; } &&
24776 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24779 ac_status=$?
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 ac_cv_member_struct_stat_st_blocks=yes
24783else
24784 echo "$as_me: failed program was:" >&5
0628567a
JA
24785sed 's/^/| /' conftest.$ac_ext >&5
24786
f73dda09
JA
24787ac_cv_member_struct_stat_st_blocks=no
24788fi
0628567a
JA
24789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24790fi
24791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24792fi
b80f6443 24793echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
f73dda09
JA
24794echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24795if test $ac_cv_member_struct_stat_st_blocks = yes; then
24796
b80f6443 24797cat >>confdefs.h <<_ACEOF
f73dda09 24798#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b80f6443
JA
24799_ACEOF
24800
f73dda09
JA
24801
24802fi
d166f048 24803
b80f6443 24804echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7117c2d2
JA
24805echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24806if test "${ac_cv_struct_tm+set}" = set; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24808else
24809 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24810/* confdefs.h. */
24811_ACEOF
24812cat confdefs.h >>conftest.$ac_ext
24813cat >>conftest.$ac_ext <<_ACEOF
24814/* end confdefs.h. */
7117c2d2
JA
24815#include <sys/types.h>
24816#include <time.h>
24817
24818int
24819main ()
24820{
24821struct tm *tp; tp->tm_sec;
24822 ;
24823 return 0;
24824}
24825_ACEOF
24826rm -f conftest.$ac_objext
b80f6443 24827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 24828 (eval $ac_compile) 2>conftest.er1
7117c2d2 24829 ac_status=$?
0628567a
JA
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
b80f6443 24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 24834 (exit $ac_status); } &&
0628567a
JA
24835 { ac_try='test -z "$ac_c_werror_flag"
24836 || test ! -s conftest.err'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; } &&
24842 { ac_try='test -s conftest.$ac_objext'
b80f6443 24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
b80f6443 24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
24847 (exit $ac_status); }; }; then
24848 ac_cv_struct_tm=time.h
24849else
24850 echo "$as_me: failed program was:" >&5
0628567a
JA
24851sed 's/^/| /' conftest.$ac_ext >&5
24852
7117c2d2
JA
24853ac_cv_struct_tm=sys/time.h
24854fi
0628567a 24855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 24856fi
b80f6443 24857echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7117c2d2
JA
24858echo "${ECHO_T}$ac_cv_struct_tm" >&6
24859if test $ac_cv_struct_tm = sys/time.h; then
24860
b80f6443 24861cat >>confdefs.h <<\_ACEOF
7117c2d2 24862#define TM_IN_SYS_TIME 1
b80f6443 24863_ACEOF
7117c2d2
JA
24864
24865fi
24866
b80f6443 24867echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7117c2d2
JA
24868echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24869if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24870 echo $ECHO_N "(cached) $ECHO_C" >&6
24871else
b80f6443 24872 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24873/* confdefs.h. */
24874_ACEOF
24875cat confdefs.h >>conftest.$ac_ext
24876cat >>conftest.$ac_ext <<_ACEOF
24877/* end confdefs.h. */
b80f6443
JA
24878#include <sys/types.h>
24879#include <$ac_cv_struct_tm>
24880
24881
24882int
24883main ()
24884{
24885static struct tm ac_aggr;
24886if (ac_aggr.tm_zone)
24887return 0;
24888 ;
24889 return 0;
24890}
24891_ACEOF
24892rm -f conftest.$ac_objext
24893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a
JA
24894 (eval $ac_compile) 2>conftest.er1
24895 ac_status=$?
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try='test -z "$ac_c_werror_flag"
24902 || test ! -s conftest.err'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest.$ac_objext'
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 ac_cv_member_struct_tm_tm_zone=yes
24915else
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919cat >conftest.$ac_ext <<_ACEOF
24920/* confdefs.h. */
24921_ACEOF
24922cat confdefs.h >>conftest.$ac_ext
24923cat >>conftest.$ac_ext <<_ACEOF
24924/* end confdefs.h. */
24925#include <sys/types.h>
24926#include <$ac_cv_struct_tm>
24927
24928
24929int
24930main ()
24931{
24932static struct tm ac_aggr;
24933if (sizeof ac_aggr.tm_zone)
24934return 0;
24935 ;
24936 return 0;
24937}
24938_ACEOF
24939rm -f conftest.$ac_objext
24940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941 (eval $ac_compile) 2>conftest.er1
b80f6443 24942 ac_status=$?
0628567a
JA
24943 grep -v '^ *+' conftest.er1 >conftest.err
24944 rm -f conftest.er1
24945 cat conftest.err >&5
b80f6443
JA
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
0628567a
JA
24948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24952 ac_status=$?
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest.$ac_objext'
b80f6443
JA
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_cv_member_struct_tm_tm_zone=yes
24962else
24963 echo "$as_me: failed program was:" >&5
0628567a
JA
24964sed 's/^/| /' conftest.$ac_ext >&5
24965
7117c2d2
JA
24966ac_cv_member_struct_tm_tm_zone=no
24967fi
0628567a
JA
24968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24969fi
24970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 24971fi
b80f6443 24972echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7117c2d2
JA
24973echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24974if test $ac_cv_member_struct_tm_tm_zone = yes; then
24975
b80f6443 24976cat >>confdefs.h <<_ACEOF
7117c2d2 24977#define HAVE_STRUCT_TM_TM_ZONE 1
b80f6443
JA
24978_ACEOF
24979
7117c2d2
JA
24980
24981fi
24982
24983if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24984
b80f6443 24985cat >>confdefs.h <<\_ACEOF
7117c2d2 24986#define HAVE_TM_ZONE 1
b80f6443 24987_ACEOF
7117c2d2
JA
24988
24989else
b80f6443 24990 echo "$as_me:$LINENO: checking for tzname" >&5
7117c2d2
JA
24991echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24992if test "${ac_cv_var_tzname+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24994else
24995 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24996/* confdefs.h. */
24997_ACEOF
24998cat confdefs.h >>conftest.$ac_ext
24999cat >>conftest.$ac_ext <<_ACEOF
25000/* end confdefs.h. */
7117c2d2
JA
25001#include <time.h>
25002#ifndef tzname /* For SGI. */
25003extern char *tzname[]; /* RS6000 and others reject char **tzname. */
25004#endif
25005
25006int
25007main ()
25008{
25009atoi(*tzname);
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 25016 (eval $ac_link) 2>conftest.er1
7117c2d2 25017 ac_status=$?
0628567a
JA
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
b80f6443 25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 25022 (exit $ac_status); } &&
0628567a
JA
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
b80f6443 25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
b80f6443 25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
25035 (exit $ac_status); }; }; then
25036 ac_cv_var_tzname=yes
25037else
25038 echo "$as_me: failed program was:" >&5
0628567a
JA
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
7117c2d2
JA
25041ac_cv_var_tzname=no
25042fi
0628567a
JA
25043rm -f conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
7117c2d2 25045fi
b80f6443 25046echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7117c2d2
JA
25047echo "${ECHO_T}$ac_cv_var_tzname" >&6
25048 if test $ac_cv_var_tzname = yes; then
25049
b80f6443 25050cat >>confdefs.h <<\_ACEOF
7117c2d2 25051#define HAVE_TZNAME 1
b80f6443 25052_ACEOF
7117c2d2
JA
25053
25054 fi
25055fi
25056
b80f6443
JA
25057echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
25058echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
25059if test "${bash_cv_struct_timezone+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25061else
25062
25063cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
b80f6443
JA
25069#include <sys/time.h>
25070
25071_ACEOF
25072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25073 $EGREP "struct timezone" >/dev/null 2>&1; then
b80f6443
JA
25074 bash_cv_struct_timezone=yes
25075else
25076 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25077/* confdefs.h. */
25078_ACEOF
25079cat confdefs.h >>conftest.$ac_ext
25080cat >>conftest.$ac_ext <<_ACEOF
25081/* end confdefs.h. */
b80f6443
JA
25082#include <time.h>
25083
25084_ACEOF
25085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25086 $EGREP "struct timezone" >/dev/null 2>&1; then
b80f6443
JA
25087 bash_cv_struct_timezone=yes
25088else
25089 bash_cv_struct_timezone=no
25090fi
25091rm -f conftest*
25092
25093fi
25094rm -f conftest*
25095
25096
25097fi
25098
25099echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
25100echo "${ECHO_T}$bash_cv_struct_timezone" >&6
25101if test $bash_cv_struct_timezone = yes; then
25102 cat >>confdefs.h <<\_ACEOF
25103#define HAVE_STRUCT_TIMEZONE 1
25104_ACEOF
25105
25106fi
25107
25108
25109echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
f73dda09
JA
25110echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
25111if test "${bash_cv_have_strsignal+set}" = set; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 25113else
f73dda09 25114 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25115/* confdefs.h. */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h. */
ccc6cda3
JA
25120#include <sys/types.h>
25121#include <signal.h>
f73dda09
JA
25122int
25123main ()
25124{
ccc6cda3 25125char *s = (char *)strsignal(2);
f73dda09
JA
25126 ;
25127 return 0;
25128}
25129_ACEOF
25130rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 25131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 25132 (eval $ac_link) 2>conftest.er1
f73dda09 25133 ac_status=$?
0628567a
JA
25134 grep -v '^ *+' conftest.er1 >conftest.err
25135 rm -f conftest.er1
25136 cat conftest.err >&5
b80f6443 25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25138 (exit $ac_status); } &&
0628567a
JA
25139 { ac_try='test -z "$ac_c_werror_flag"
25140 || test ! -s conftest.err'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } &&
25146 { ac_try='test -s conftest$ac_exeext'
b80f6443 25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
b80f6443 25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25151 (exit $ac_status); }; }; then
ccc6cda3
JA
25152 bash_cv_have_strsignal=yes
25153else
f73dda09 25154 echo "$as_me: failed program was:" >&5
0628567a
JA
25155sed 's/^/| /' conftest.$ac_ext >&5
25156
f73dda09 25157bash_cv_have_strsignal=no
ccc6cda3 25158fi
0628567a
JA
25159rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
ccc6cda3
JA
25161fi
25162
b80f6443 25163echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
f73dda09 25164echo "${ECHO_T}$bash_cv_have_strsignal" >&6
ccc6cda3 25165if test $bash_cv_have_strsignal = yes; then
b80f6443 25166cat >>confdefs.h <<\_ACEOF
ccc6cda3 25167#define HAVE_STRSIGNAL 1
b80f6443 25168_ACEOF
ccc6cda3
JA
25169
25170fi
25171
b80f6443 25172echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
f73dda09
JA
25173echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
25174if test "${bash_cv_opendir_not_robust+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25176else
25177 if test "$cross_compiling" = yes; then
b80f6443 25178 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
f73dda09 25179echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
25180 bash_cv_opendir_not_robust=no
25181
ccc6cda3 25182else
f73dda09 25183 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25184/* confdefs.h. */
25185_ACEOF
25186cat confdefs.h >>conftest.$ac_ext
25187cat >>conftest.$ac_ext <<_ACEOF
25188/* end confdefs.h. */
ccc6cda3
JA
25189
25190#include <stdio.h>
25191#include <sys/types.h>
25192#include <fcntl.h>
25193#ifdef HAVE_UNISTD_H
25194# include <unistd.h>
25195#endif /* HAVE_UNISTD_H */
25196#if defined(HAVE_DIRENT_H)
25197# include <dirent.h>
25198#else
25199# define dirent direct
25200# ifdef HAVE_SYS_NDIR_H
25201# include <sys/ndir.h>
25202# endif /* SYSNDIR */
25203# ifdef HAVE_SYS_DIR_H
25204# include <sys/dir.h>
25205# endif /* SYSDIR */
25206# ifdef HAVE_NDIR_H
25207# include <ndir.h>
25208# endif
25209#endif /* HAVE_DIRENT_H */
25210main()
25211{
25212DIR *dir;
bb70624e
JA
25213int fd, err;
25214err = mkdir("/tmp/bash-aclocal", 0700);
25215if (err < 0) {
25216 perror("mkdir");
25217 exit(1);
25218}
25219unlink("/tmp/bash-aclocal/not_a_directory");
25220fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
ccc6cda3
JA
25221write(fd, "\n", 1);
25222close(fd);
bb70624e
JA
25223dir = opendir("/tmp/bash-aclocal/not_a_directory");
25224unlink("/tmp/bash-aclocal/not_a_directory");
25225rmdir("/tmp/bash-aclocal");
ccc6cda3
JA
25226exit (dir == 0);
25227}
f73dda09
JA
25228_ACEOF
25229rm -f conftest$ac_exeext
b80f6443 25230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25231 (eval $ac_link) 2>&5
25232 ac_status=$?
b80f6443 25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
b80f6443 25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25239 (exit $ac_status); }; }; then
ccc6cda3
JA
25240 bash_cv_opendir_not_robust=yes
25241else
f73dda09
JA
25242 echo "$as_me: program exited with status $ac_status" >&5
25243echo "$as_me: failed program was:" >&5
0628567a
JA
25244sed 's/^/| /' conftest.$ac_ext >&5
25245
b80f6443 25246( exit $ac_status )
f73dda09 25247bash_cv_opendir_not_robust=no
ccc6cda3 25248fi
0628567a 25249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25250fi
ccc6cda3
JA
25251fi
25252
b80f6443 25253echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
f73dda09 25254echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
ccc6cda3 25255if test $bash_cv_opendir_not_robust = yes; then
b80f6443 25256cat >>confdefs.h <<\_ACEOF
ccc6cda3 25257#define OPENDIR_NOT_ROBUST 1
b80f6443 25258_ACEOF
ccc6cda3
JA
25259
25260fi
25261
b80f6443 25262echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
f73dda09
JA
25263echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
25264if test "${bash_cv_ulimit_maxfds+set}" = set; then
25265 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25266else
25267 if test "$cross_compiling" = yes; then
b80f6443 25268 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
f73dda09 25269echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
25270 bash_cv_ulimit_maxfds=no
25271
ccc6cda3 25272else
f73dda09 25273 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
ccc6cda3
JA
25279
25280main()
25281{
25282long maxfds = ulimit(4, 0L);
25283exit (maxfds == -1L);
25284}
25285
f73dda09
JA
25286_ACEOF
25287rm -f conftest$ac_exeext
b80f6443 25288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25289 (eval $ac_link) 2>&5
25290 ac_status=$?
b80f6443 25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
b80f6443 25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25297 (exit $ac_status); }; }; then
ccc6cda3
JA
25298 bash_cv_ulimit_maxfds=yes
25299else
f73dda09
JA
25300 echo "$as_me: program exited with status $ac_status" >&5
25301echo "$as_me: failed program was:" >&5
0628567a
JA
25302sed 's/^/| /' conftest.$ac_ext >&5
25303
b80f6443 25304( exit $ac_status )
f73dda09 25305bash_cv_ulimit_maxfds=no
ccc6cda3 25306fi
0628567a 25307rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25308fi
ccc6cda3
JA
25309fi
25310
b80f6443 25311echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
f73dda09 25312echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
ccc6cda3 25313if test $bash_cv_ulimit_maxfds = yes; then
b80f6443 25314cat >>confdefs.h <<\_ACEOF
ccc6cda3 25315#define ULIMIT_MAXFDS 1
b80f6443 25316_ACEOF
ccc6cda3
JA
25317
25318fi
25319
b80f6443 25320echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
f73dda09
JA
25321echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
25322if test "${bash_cv_getenv_redef+set}" = set; then
25323 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25324else
25325 if test "$cross_compiling" = yes; then
b80f6443 25326 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
f73dda09 25327echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
cce855bc
JA
25328 bash_cv_getenv_redef=yes
25329
ccc6cda3 25330else
f73dda09 25331 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25332/* confdefs.h. */
25333_ACEOF
25334cat confdefs.h >>conftest.$ac_ext
25335cat >>conftest.$ac_ext <<_ACEOF
25336/* end confdefs.h. */
ccc6cda3
JA
25337
25338#ifdef HAVE_UNISTD_H
25339# include <unistd.h>
25340#endif
25341#ifndef __STDC__
25342# ifndef const
25343# define const
25344# endif
25345#endif
25346char *
25347getenv (name)
25348#if defined (__linux__) || defined (__bsdi__) || defined (convex)
25349 const char *name;
25350#else
25351 char const *name;
25352#endif /* !__linux__ && !__bsdi__ && !convex */
25353{
25354return "42";
25355}
25356main()
25357{
25358char *s;
25359/* The next allows this program to run, but does not allow bash to link
25360 when it redefines getenv. I'm not really interested in figuring out
25361 why not. */
25362#if defined (NeXT)
25363exit(1);
25364#endif
25365s = getenv("ABCDE");
25366exit(s == 0); /* force optimizer to leave getenv in */
25367}
25368
f73dda09
JA
25369_ACEOF
25370rm -f conftest$ac_exeext
b80f6443 25371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25372 (eval $ac_link) 2>&5
25373 ac_status=$?
b80f6443 25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
b80f6443 25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25380 (exit $ac_status); }; }; then
ccc6cda3
JA
25381 bash_cv_getenv_redef=yes
25382else
f73dda09
JA
25383 echo "$as_me: program exited with status $ac_status" >&5
25384echo "$as_me: failed program was:" >&5
0628567a
JA
25385sed 's/^/| /' conftest.$ac_ext >&5
25386
b80f6443 25387( exit $ac_status )
f73dda09 25388bash_cv_getenv_redef=no
ccc6cda3 25389fi
0628567a 25390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25391fi
ccc6cda3
JA
25392fi
25393
b80f6443 25394echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
f73dda09 25395echo "${ECHO_T}$bash_cv_getenv_redef" >&6
ccc6cda3 25396if test $bash_cv_getenv_redef = yes; then
b80f6443 25397cat >>confdefs.h <<\_ACEOF
ccc6cda3 25398#define CAN_REDEFINE_GETENV 1
b80f6443 25399_ACEOF
ccc6cda3
JA
25400
25401fi
25402
7117c2d2 25403if test "$ac_cv_func_getcwd" = "yes"; then
b80f6443
JA
25404echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
25405echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
25406if test "${bash_cv_getcwd_malloc+set}" = set; then
f73dda09 25407 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25408else
25409 if test "$cross_compiling" = yes; then
b80f6443
JA
25410 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
25411echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
25412 bash_cv_getcwd_malloc=no
cce855bc 25413
ccc6cda3 25414else
f73dda09 25415 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25416/* confdefs.h. */
25417_ACEOF
25418cat confdefs.h >>conftest.$ac_ext
25419cat >>conftest.$ac_ext <<_ACEOF
25420/* end confdefs.h. */
ccc6cda3
JA
25421
25422#include <stdio.h>
25423#ifdef HAVE_UNISTD_H
25424#include <unistd.h>
25425#endif
25426
ccc6cda3
JA
25427main()
25428{
b80f6443
JA
25429 char *xpwd;
25430 xpwd = getcwd(0, 0);
25431 exit (xpwd == 0);
ccc6cda3
JA
25432}
25433
f73dda09
JA
25434_ACEOF
25435rm -f conftest$ac_exeext
b80f6443 25436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25437 (eval $ac_link) 2>&5
25438 ac_status=$?
b80f6443 25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
b80f6443 25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25445 (exit $ac_status); }; }; then
b80f6443 25446 bash_cv_getcwd_malloc=yes
ccc6cda3 25447else
f73dda09
JA
25448 echo "$as_me: program exited with status $ac_status" >&5
25449echo "$as_me: failed program was:" >&5
0628567a
JA
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
b80f6443
JA
25452( exit $ac_status )
25453bash_cv_getcwd_malloc=no
ccc6cda3 25454fi
0628567a 25455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25456fi
ccc6cda3
JA
25457fi
25458
b80f6443
JA
25459echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
25460echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
25461if test $bash_cv_getcwd_malloc = no; then
25462cat >>confdefs.h <<\_ACEOF
ccc6cda3 25463#define GETCWD_BROKEN 1
b80f6443 25464_ACEOF
ccc6cda3 25465
0628567a
JA
25466case $LIBOBJS in
25467 "getcwd.$ac_objext" | \
25468 *" getcwd.$ac_objext" | \
25469 "getcwd.$ac_objext "* | \
25470 *" getcwd.$ac_objext "* ) ;;
25471 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
25472esac
25473
ccc6cda3
JA
25474fi
25475
ccc6cda3
JA
25476fi
25477
b80f6443 25478echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
f73dda09
JA
25479echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
25480if test "${bash_cv_func_sigsetjmp+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25482else
25483 if test "$cross_compiling" = yes; then
b80f6443 25484 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
f73dda09 25485echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
25486 bash_cv_func_sigsetjmp=missing
25487
ccc6cda3 25488else
f73dda09 25489 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25490/* confdefs.h. */
25491_ACEOF
25492cat confdefs.h >>conftest.$ac_ext
25493cat >>conftest.$ac_ext <<_ACEOF
25494/* end confdefs.h. */
ccc6cda3
JA
25495
25496#ifdef HAVE_UNISTD_H
25497#include <unistd.h>
25498#endif
25499#include <sys/types.h>
25500#include <signal.h>
25501#include <setjmp.h>
25502
25503main()
25504{
25505#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
25506exit (1);
25507#else
25508
25509int code;
25510sigset_t set, oset;
25511sigjmp_buf xx;
25512
25513/* get the mask */
25514sigemptyset(&set);
25515sigemptyset(&oset);
25516sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
25517sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
25518
25519/* save it */
25520code = sigsetjmp(xx, 1);
25521if (code)
25522 exit(0); /* could get sigmask and compare to oset here. */
25523
25524/* change it */
25525sigaddset(&set, SIGINT);
25526sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
25527
25528/* and siglongjmp */
25529siglongjmp(xx, 10);
25530exit(1);
25531#endif
25532}
f73dda09
JA
25533_ACEOF
25534rm -f conftest$ac_exeext
b80f6443 25535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25536 (eval $ac_link) 2>&5
25537 ac_status=$?
b80f6443 25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
b80f6443 25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25544 (exit $ac_status); }; }; then
ccc6cda3
JA
25545 bash_cv_func_sigsetjmp=present
25546else
f73dda09
JA
25547 echo "$as_me: program exited with status $ac_status" >&5
25548echo "$as_me: failed program was:" >&5
0628567a
JA
25549sed 's/^/| /' conftest.$ac_ext >&5
25550
b80f6443 25551( exit $ac_status )
f73dda09 25552bash_cv_func_sigsetjmp=missing
ccc6cda3 25553fi
0628567a 25554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25555fi
ccc6cda3
JA
25556fi
25557
b80f6443 25558echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
f73dda09 25559echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
ccc6cda3 25560if test $bash_cv_func_sigsetjmp = present; then
b80f6443 25561cat >>confdefs.h <<\_ACEOF
ccc6cda3 25562#define HAVE_POSIX_SIGSETJMP 1
b80f6443 25563_ACEOF
ccc6cda3
JA
25564
25565fi
25566
b80f6443
JA
25567
25568echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
f73dda09
JA
25569echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
25570if test "${bash_cv_func_strcoll_broken+set}" = set; then
25571 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048
JA
25572else
25573 if test "$cross_compiling" = yes; then
b80f6443 25574 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
f73dda09 25575echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
25576 bash_cv_func_strcoll_broken=no
25577
d166f048 25578else
f73dda09 25579 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25580/* confdefs.h. */
25581_ACEOF
25582cat confdefs.h >>conftest.$ac_ext
25583cat >>conftest.$ac_ext <<_ACEOF
25584/* end confdefs.h. */
d166f048
JA
25585
25586#include <stdio.h>
25587#if defined (HAVE_LOCALE_H)
25588#include <locale.h>
25589#endif
25590
25591main(c, v)
25592int c;
25593char *v[];
25594{
25595 int r1, r2;
25596 char *deflocale, *defcoll;
25597
25598#ifdef HAVE_SETLOCALE
25599 deflocale = setlocale(LC_ALL, "");
25600 defcoll = setlocale(LC_COLLATE, "");
25601#endif
25602
25603#ifdef HAVE_STRCOLL
25604 /* These two values are taken from tests/glob-test. */
25605 r1 = strcoll("abd", "aXd");
25606#else
25607 r1 = 0;
25608#endif
25609 r2 = strcmp("abd", "aXd");
25610
25611 /* These two should both be greater than 0. It is permissible for
25612 a system to return different values, as long as the sign is the
25613 same. */
25614
25615 /* Exit with 1 (failure) if these two values are both > 0, since
25616 this tests whether strcoll(3) is broken with respect to strcmp(3)
25617 in the default locale. */
25618 exit (r1 > 0 && r2 > 0);
25619}
25620
f73dda09
JA
25621_ACEOF
25622rm -f conftest$ac_exeext
b80f6443 25623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25624 (eval $ac_link) 2>&5
25625 ac_status=$?
b80f6443 25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
b80f6443 25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25632 (exit $ac_status); }; }; then
d166f048
JA
25633 bash_cv_func_strcoll_broken=yes
25634else
f73dda09
JA
25635 echo "$as_me: program exited with status $ac_status" >&5
25636echo "$as_me: failed program was:" >&5
0628567a
JA
25637sed 's/^/| /' conftest.$ac_ext >&5
25638
b80f6443 25639( exit $ac_status )
f73dda09 25640bash_cv_func_strcoll_broken=no
d166f048 25641fi
0628567a 25642rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d166f048 25643fi
d166f048
JA
25644fi
25645
b80f6443 25646echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
f73dda09 25647echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
d166f048 25648if test $bash_cv_func_strcoll_broken = yes; then
b80f6443 25649cat >>confdefs.h <<\_ACEOF
d166f048 25650#define STRCOLL_BROKEN 1
b80f6443 25651_ACEOF
d166f048
JA
25652
25653fi
25654
b80f6443
JA
25655
25656
7117c2d2
JA
25657if test "$ac_cv_func_putenv" = "yes"; then
25658
b80f6443
JA
25659
25660
25661echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
7117c2d2
JA
25662echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25663if test "${bash_cv_std_putenv+set}" = set; then
25664 echo $ECHO_N "(cached) $ECHO_C" >&6
25665else
25666 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25667/* confdefs.h. */
25668_ACEOF
25669cat confdefs.h >>conftest.$ac_ext
25670cat >>conftest.$ac_ext <<_ACEOF
25671/* end confdefs.h. */
7117c2d2
JA
25672
25673#if STDC_HEADERS
25674#include <stdlib.h>
25675#include <stddef.h>
25676#endif
25677#ifndef __STDC__
25678# ifndef const
25679# define const
25680# endif
25681#endif
25682#ifdef PROTOTYPES
25683extern int putenv (char *);
25684#else
25685extern int putenv ();
25686#endif
25687
25688int
25689main ()
25690{
25691return (putenv == 0);
25692 ;
25693 return 0;
25694}
25695_ACEOF
25696rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 25697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 25698 (eval $ac_link) 2>conftest.er1
7117c2d2 25699 ac_status=$?
0628567a
JA
25700 grep -v '^ *+' conftest.er1 >conftest.err
25701 rm -f conftest.er1
25702 cat conftest.err >&5
b80f6443 25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 25704 (exit $ac_status); } &&
0628567a
JA
25705 { ac_try='test -z "$ac_c_werror_flag"
25706 || test ! -s conftest.err'
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; } &&
25712 { ac_try='test -s conftest$ac_exeext'
b80f6443 25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
b80f6443 25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
25717 (exit $ac_status); }; }; then
25718 bash_cv_std_putenv=yes
25719else
25720 echo "$as_me: failed program was:" >&5
0628567a
JA
25721sed 's/^/| /' conftest.$ac_ext >&5
25722
7117c2d2
JA
25723bash_cv_std_putenv=no
25724
25725fi
0628567a
JA
25726rm -f conftest.err conftest.$ac_objext \
25727 conftest$ac_exeext conftest.$ac_ext
7117c2d2 25728fi
b80f6443 25729echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
7117c2d2
JA
25730echo "${ECHO_T}$bash_cv_std_putenv" >&6
25731if test $bash_cv_std_putenv = yes; then
b80f6443 25732cat >>confdefs.h <<\_ACEOF
7117c2d2 25733#define HAVE_STD_PUTENV 1
b80f6443 25734_ACEOF
7117c2d2
JA
25735
25736fi
25737
25738else
b80f6443 25739cat >>confdefs.h <<\_ACEOF
7117c2d2 25740#define HAVE_STD_PUTENV 1
b80f6443 25741_ACEOF
7117c2d2
JA
25742
25743fi
25744if test "$ac_cv_func_unsetenv" = "yes"; then
25745
b80f6443
JA
25746
25747
25748echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
7117c2d2
JA
25749echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25750if test "${bash_cv_std_unsetenv+set}" = set; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25752else
25753 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25754/* confdefs.h. */
25755_ACEOF
25756cat confdefs.h >>conftest.$ac_ext
25757cat >>conftest.$ac_ext <<_ACEOF
25758/* end confdefs.h. */
7117c2d2
JA
25759
25760#if STDC_HEADERS
25761#include <stdlib.h>
25762#include <stddef.h>
25763#endif
25764#ifndef __STDC__
25765# ifndef const
25766# define const
25767# endif
25768#endif
25769#ifdef PROTOTYPES
25770extern int unsetenv (const char *);
25771#else
25772extern int unsetenv ();
25773#endif
25774
25775int
25776main ()
25777{
25778return (unsetenv == 0);
25779 ;
25780 return 0;
25781}
25782_ACEOF
25783rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 25784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 25785 (eval $ac_link) 2>conftest.er1
7117c2d2 25786 ac_status=$?
0628567a
JA
25787 grep -v '^ *+' conftest.er1 >conftest.err
25788 rm -f conftest.er1
25789 cat conftest.err >&5
b80f6443 25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2 25791 (exit $ac_status); } &&
0628567a
JA
25792 { ac_try='test -z "$ac_c_werror_flag"
25793 || test ! -s conftest.err'
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; } &&
25799 { ac_try='test -s conftest$ac_exeext'
b80f6443 25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117c2d2
JA
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
b80f6443 25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117c2d2
JA
25804 (exit $ac_status); }; }; then
25805 bash_cv_std_unsetenv=yes
25806else
25807 echo "$as_me: failed program was:" >&5
0628567a
JA
25808sed 's/^/| /' conftest.$ac_ext >&5
25809
7117c2d2
JA
25810bash_cv_std_unsetenv=no
25811
25812fi
0628567a
JA
25813rm -f conftest.err conftest.$ac_objext \
25814 conftest$ac_exeext conftest.$ac_ext
7117c2d2 25815fi
b80f6443 25816echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
7117c2d2
JA
25817echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25818if test $bash_cv_std_unsetenv = yes; then
b80f6443 25819cat >>confdefs.h <<\_ACEOF
7117c2d2 25820#define HAVE_STD_UNSETENV 1
b80f6443 25821_ACEOF
7117c2d2
JA
25822
25823fi
25824
25825else
b80f6443 25826cat >>confdefs.h <<\_ACEOF
7117c2d2 25827#define HAVE_STD_UNSETENV 1
b80f6443 25828_ACEOF
7117c2d2
JA
25829
25830fi
25831
b80f6443 25832echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
f73dda09
JA
25833echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25834if test "${bash_cv_printf_a_format+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25836else
25837 if test "$cross_compiling" = yes; then
b80f6443 25838 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
f73dda09
JA
25839echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25840 bash_cv_printf_a_format=no
25841
25842else
25843 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25844/* confdefs.h. */
25845_ACEOF
25846cat confdefs.h >>conftest.$ac_ext
25847cat >>conftest.$ac_ext <<_ACEOF
25848/* end confdefs.h. */
f73dda09
JA
25849
25850#include <stdio.h>
25851#include <string.h>
25852
25853int
25854main()
25855{
25856 double y = 0.0;
25857 char abuf[1024];
25858
25859 sprintf(abuf, "%A", y);
25860 exit(strchr(abuf, 'P') == (char *)0);
25861}
25862
25863_ACEOF
25864rm -f conftest$ac_exeext
b80f6443 25865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25866 (eval $ac_link) 2>&5
25867 ac_status=$?
b80f6443 25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
b80f6443 25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
25874 (exit $ac_status); }; }; then
25875 bash_cv_printf_a_format=yes
25876else
25877 echo "$as_me: program exited with status $ac_status" >&5
25878echo "$as_me: failed program was:" >&5
0628567a
JA
25879sed 's/^/| /' conftest.$ac_ext >&5
25880
b80f6443 25881( exit $ac_status )
f73dda09
JA
25882bash_cv_printf_a_format=no
25883fi
0628567a 25884rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
25885fi
25886fi
d166f048 25887
b80f6443 25888echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
f73dda09
JA
25889echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25890if test $bash_cv_printf_a_format = yes; then
b80f6443 25891cat >>confdefs.h <<\_ACEOF
f73dda09 25892#define HAVE_PRINTF_A_FORMAT 1
b80f6443 25893_ACEOF
d166f048 25894
f73dda09 25895fi
ccc6cda3 25896
b80f6443
JA
25897
25898
25899
25900echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
f73dda09
JA
25901echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25902if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
25904else
25905 if test "$cross_compiling" = yes; then
b80f6443 25906 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
f73dda09 25907echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
25908 bash_cv_must_reinstall_sighandlers=no
25909
ccc6cda3 25910else
f73dda09 25911 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25912/* confdefs.h. */
25913_ACEOF
25914cat confdefs.h >>conftest.$ac_ext
25915cat >>conftest.$ac_ext <<_ACEOF
25916/* end confdefs.h. */
ccc6cda3
JA
25917
25918#include <signal.h>
25919#ifdef HAVE_UNISTD_H
25920#include <unistd.h>
25921#endif
25922
25923typedef RETSIGTYPE sigfunc();
25924
25925int nsigint;
25926
25927#ifdef HAVE_POSIX_SIGNALS
25928sigfunc *
25929set_signal_handler(sig, handler)
25930 int sig;
25931 sigfunc *handler;
25932{
25933 struct sigaction act, oact;
25934 act.sa_handler = handler;
25935 act.sa_flags = 0;
25936 sigemptyset (&act.sa_mask);
25937 sigemptyset (&oact.sa_mask);
25938 sigaction (sig, &act, &oact);
25939 return (oact.sa_handler);
25940}
25941#else
25942#define set_signal_handler(s, h) signal(s, h)
25943#endif
25944
25945RETSIGTYPE
25946sigint(s)
25947int s;
25948{
25949 nsigint++;
25950}
25951
25952main()
25953{
25954 nsigint = 0;
25955 set_signal_handler(SIGINT, sigint);
25956 kill((int)getpid(), SIGINT);
25957 kill((int)getpid(), SIGINT);
25958 exit(nsigint != 2);
25959}
25960
f73dda09
JA
25961_ACEOF
25962rm -f conftest$ac_exeext
b80f6443 25963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
25964 (eval $ac_link) 2>&5
25965 ac_status=$?
b80f6443 25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 25968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
25969 (eval $ac_try) 2>&5
25970 ac_status=$?
b80f6443 25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25972 (exit $ac_status); }; }; then
ccc6cda3
JA
25973 bash_cv_must_reinstall_sighandlers=no
25974else
f73dda09
JA
25975 echo "$as_me: program exited with status $ac_status" >&5
25976echo "$as_me: failed program was:" >&5
0628567a
JA
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
b80f6443 25979( exit $ac_status )
f73dda09 25980bash_cv_must_reinstall_sighandlers=yes
ccc6cda3 25981fi
0628567a 25982rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25983fi
ccc6cda3
JA
25984fi
25985
b80f6443 25986echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
f73dda09 25987echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
ccc6cda3 25988if test $bash_cv_must_reinstall_sighandlers = yes; then
b80f6443 25989cat >>confdefs.h <<\_ACEOF
ccc6cda3 25990#define MUST_REINSTALL_SIGHANDLERS 1
b80f6443 25991_ACEOF
ccc6cda3
JA
25992
25993fi
25994
b80f6443
JA
25995
25996echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
f73dda09
JA
25997echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25998if test "${bash_cv_job_control_missing+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
26000else
26001 if test "$cross_compiling" = yes; then
b80f6443 26002 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
f73dda09 26003echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
26004 bash_cv_job_control_missing=missing
26005
ccc6cda3 26006else
f73dda09 26007 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26008/* confdefs.h. */
26009_ACEOF
26010cat confdefs.h >>conftest.$ac_ext
26011cat >>conftest.$ac_ext <<_ACEOF
26012/* end confdefs.h. */
ccc6cda3
JA
26013
26014#include <sys/types.h>
26015#ifdef HAVE_SYS_WAIT_H
26016#include <sys/wait.h>
26017#endif
26018#ifdef HAVE_UNISTD_H
26019#include <unistd.h>
26020#endif
26021#include <signal.h>
26022
26023/* Add more tests in here as appropriate. */
26024main()
26025{
26026/* signal type */
26027#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
26028exit(1);
26029#endif
26030
26031/* signals and tty control. */
26032#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
26033exit (1);
26034#endif
26035
26036/* process control */
f73dda09 26037#if !defined (WNOHANG) || !defined (WUNTRACED)
ccc6cda3
JA
26038exit(1);
26039#endif
26040
26041/* Posix systems have tcgetpgrp and waitpid. */
26042#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
26043exit(1);
26044#endif
26045
26046#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
26047exit(1);
26048#endif
26049
26050/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
26051#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
26052exit(1);
26053#endif
26054
26055exit(0);
26056}
f73dda09
JA
26057_ACEOF
26058rm -f conftest$ac_exeext
b80f6443 26059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
26060 (eval $ac_link) 2>&5
26061 ac_status=$?
b80f6443 26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
b80f6443 26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26068 (exit $ac_status); }; }; then
ccc6cda3
JA
26069 bash_cv_job_control_missing=present
26070else
f73dda09
JA
26071 echo "$as_me: program exited with status $ac_status" >&5
26072echo "$as_me: failed program was:" >&5
0628567a
JA
26073sed 's/^/| /' conftest.$ac_ext >&5
26074
b80f6443 26075( exit $ac_status )
f73dda09 26076bash_cv_job_control_missing=missing
ccc6cda3 26077fi
0628567a 26078rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 26079fi
ccc6cda3
JA
26080fi
26081
b80f6443 26082echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
f73dda09 26083echo "${ECHO_T}$bash_cv_job_control_missing" >&6
ccc6cda3 26084if test $bash_cv_job_control_missing = missing; then
b80f6443 26085cat >>confdefs.h <<\_ACEOF
ccc6cda3 26086#define JOB_CONTROL_MISSING 1
b80f6443 26087_ACEOF
ccc6cda3
JA
26088
26089fi
26090
b80f6443 26091echo "$as_me:$LINENO: checking for presence of named pipes" >&5
f73dda09
JA
26092echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
26093if test "${bash_cv_sys_named_pipes+set}" = set; then
26094 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
26095else
26096 if test "$cross_compiling" = yes; then
b80f6443 26097 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
f73dda09 26098echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
26099 bash_cv_sys_named_pipes=missing
26100
ccc6cda3 26101else
f73dda09 26102 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26103/* confdefs.h. */
26104_ACEOF
26105cat confdefs.h >>conftest.$ac_ext
26106cat >>conftest.$ac_ext <<_ACEOF
26107/* end confdefs.h. */
ccc6cda3
JA
26108
26109#include <sys/types.h>
26110#include <sys/stat.h>
26111#ifdef HAVE_UNISTD_H
26112#include <unistd.h>
26113#endif
26114
26115/* Add more tests in here as appropriate. */
26116main()
26117{
bb70624e 26118int fd, err;
ccc6cda3
JA
26119
26120#if defined (HAVE_MKFIFO)
26121exit (0);
26122#endif
26123
26124#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
26125exit (1);
26126#endif
26127
26128#if defined (NeXT)
26129exit (1);
26130#endif
bb70624e
JA
26131err = mkdir("/tmp/bash-aclocal", 0700);
26132if (err < 0) {
26133 perror ("mkdir");
26134 exit(1);
26135}
26136fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
26137if (fd == -1) {
26138 rmdir ("/tmp/bash-aclocal");
ccc6cda3 26139 exit (1);
bb70624e 26140}
ccc6cda3 26141close(fd);
bb70624e
JA
26142unlink ("/tmp/bash-aclocal/sh-np-autoconf");
26143rmdir ("/tmp/bash-aclocal");
ccc6cda3
JA
26144exit(0);
26145}
f73dda09
JA
26146_ACEOF
26147rm -f conftest$ac_exeext
b80f6443 26148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
26149 (eval $ac_link) 2>&5
26150 ac_status=$?
b80f6443 26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
b80f6443 26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26157 (exit $ac_status); }; }; then
ccc6cda3
JA
26158 bash_cv_sys_named_pipes=present
26159else
0628567a
JA
26160 echo "$as_me: program exited with status $ac_status" >&5
26161echo "$as_me: failed program was:" >&5
26162sed 's/^/| /' conftest.$ac_ext >&5
26163
26164( exit $ac_status )
26165bash_cv_sys_named_pipes=missing
26166fi
26167rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
95732b49 26168fi
95732b49 26169fi
95732b49 26170
0628567a
JA
26171echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
26172echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
26173if test $bash_cv_sys_named_pipes = missing; then
26174cat >>confdefs.h <<\_ACEOF
26175#define NAMED_PIPES_MISSING 1
26176_ACEOF
26177
26178fi
26179
26180
26181echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
f73dda09
JA
26182echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
26183if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26185else
26186 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26187/* confdefs.h. */
26188_ACEOF
26189cat confdefs.h >>conftest.$ac_ext
26190cat >>conftest.$ac_ext <<_ACEOF
26191/* end confdefs.h. */
f73dda09
JA
26192#include <sys/types.h>
26193#include <termios.h>
26194#ifdef TIOCGWINSZ
26195 yes
26196#endif
26197
26198_ACEOF
26199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26200 $EGREP "yes" >/dev/null 2>&1; then
f73dda09
JA
26201 ac_cv_sys_tiocgwinsz_in_termios_h=yes
26202else
26203 ac_cv_sys_tiocgwinsz_in_termios_h=no
26204fi
26205rm -f conftest*
26206
26207fi
b80f6443 26208echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
f73dda09 26209echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
d166f048 26210
f73dda09 26211if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
b80f6443 26212 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
f73dda09
JA
26213echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
26214if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26216else
f73dda09 26217 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26218/* confdefs.h. */
26219_ACEOF
26220cat confdefs.h >>conftest.$ac_ext
26221cat >>conftest.$ac_ext <<_ACEOF
26222/* end confdefs.h. */
ccc6cda3
JA
26223#include <sys/types.h>
26224#include <sys/ioctl.h>
f73dda09
JA
26225#ifdef TIOCGWINSZ
26226 yes
26227#endif
26228
26229_ACEOF
26230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26231 $EGREP "yes" >/dev/null 2>&1; then
f73dda09 26232 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
ccc6cda3 26233else
f73dda09 26234 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
ccc6cda3
JA
26235fi
26236rm -f conftest*
f73dda09 26237
ccc6cda3 26238fi
b80f6443 26239echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
f73dda09
JA
26240echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
26241
26242 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
ccc6cda3 26243
b80f6443 26244cat >>confdefs.h <<\_ACEOF
ccc6cda3 26245#define GWINSZ_IN_SYS_IOCTL 1
b80f6443 26246_ACEOF
ccc6cda3 26247
f73dda09 26248 fi
ccc6cda3
JA
26249fi
26250
b80f6443 26251echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
f73dda09
JA
26252echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
26253if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26255else
f73dda09 26256 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26257/* confdefs.h. */
26258_ACEOF
26259cat confdefs.h >>conftest.$ac_ext
26260cat >>conftest.$ac_ext <<_ACEOF
26261/* end confdefs.h. */
ccc6cda3
JA
26262#include <sys/types.h>
26263#include <sys/ioctl.h>
f73dda09
JA
26264int
26265main ()
26266{
ccc6cda3 26267int x = TIOCSTAT;
f73dda09
JA
26268 ;
26269 return 0;
26270}
26271_ACEOF
26272rm -f conftest.$ac_objext
b80f6443 26273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 26274 (eval $ac_compile) 2>conftest.er1
f73dda09 26275 ac_status=$?
0628567a
JA
26276 grep -v '^ *+' conftest.er1 >conftest.err
26277 rm -f conftest.er1
26278 cat conftest.err >&5
b80f6443 26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26280 (exit $ac_status); } &&
0628567a
JA
26281 { ac_try='test -z "$ac_c_werror_flag"
26282 || test ! -s conftest.err'
26283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; } &&
26288 { ac_try='test -s conftest.$ac_objext'
b80f6443 26289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
b80f6443 26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26293 (exit $ac_status); }; }; then
ccc6cda3
JA
26294 bash_cv_tiocstat_in_ioctl=yes
26295else
f73dda09 26296 echo "$as_me: failed program was:" >&5
0628567a
JA
26297sed 's/^/| /' conftest.$ac_ext >&5
26298
f73dda09 26299bash_cv_tiocstat_in_ioctl=no
ccc6cda3 26300fi
0628567a 26301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26302fi
26303
b80f6443 26304echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
f73dda09
JA
26305echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
26306if test $bash_cv_tiocstat_in_ioctl = yes; then
b80f6443 26307cat >>confdefs.h <<\_ACEOF
ccc6cda3 26308#define TIOCSTAT_IN_SYS_IOCTL 1
b80f6443 26309_ACEOF
ccc6cda3
JA
26310
26311fi
26312
b80f6443 26313echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
f73dda09
JA
26314echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
26315if test "${bash_cv_fionread_in_ioctl+set}" = set; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26317else
f73dda09 26318 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26319/* confdefs.h. */
26320_ACEOF
26321cat confdefs.h >>conftest.$ac_ext
26322cat >>conftest.$ac_ext <<_ACEOF
26323/* end confdefs.h. */
ccc6cda3
JA
26324#include <sys/types.h>
26325#include <sys/ioctl.h>
f73dda09
JA
26326int
26327main ()
26328{
ccc6cda3 26329int x = FIONREAD;
f73dda09
JA
26330 ;
26331 return 0;
26332}
26333_ACEOF
26334rm -f conftest.$ac_objext
b80f6443 26335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 26336 (eval $ac_compile) 2>conftest.er1
f73dda09 26337 ac_status=$?
0628567a
JA
26338 grep -v '^ *+' conftest.er1 >conftest.err
26339 rm -f conftest.er1
26340 cat conftest.err >&5
b80f6443 26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26342 (exit $ac_status); } &&
0628567a
JA
26343 { ac_try='test -z "$ac_c_werror_flag"
26344 || test ! -s conftest.err'
26345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346 (eval $ac_try) 2>&5
26347 ac_status=$?
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); }; } &&
26350 { ac_try='test -s conftest.$ac_objext'
b80f6443 26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
b80f6443 26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26355 (exit $ac_status); }; }; then
ccc6cda3
JA
26356 bash_cv_fionread_in_ioctl=yes
26357else
f73dda09 26358 echo "$as_me: failed program was:" >&5
0628567a
JA
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
f73dda09 26361bash_cv_fionread_in_ioctl=no
ccc6cda3 26362fi
0628567a 26363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26364fi
26365
b80f6443 26366echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
f73dda09
JA
26367echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
26368if test $bash_cv_fionread_in_ioctl = yes; then
b80f6443 26369cat >>confdefs.h <<\_ACEOF
ccc6cda3 26370#define FIONREAD_IN_SYS_IOCTL 1
b80f6443 26371_ACEOF
ccc6cda3
JA
26372
26373fi
26374
b80f6443 26375
95732b49
JA
26376
26377echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
26378echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
26379if test "${bash_cv_wcontinued_broken+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26381else
26382 if test "$cross_compiling" = yes; then
26383 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
26384echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
26385 bash_cv_wcontinued_broken=no
26386
26387else
26388 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26389/* confdefs.h. */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h. */
95732b49
JA
26394
26395#include <sys/types.h>
26396#include <sys/wait.h>
26397#include <unistd.h>
26398#include <errno.h>
26399
26400#ifndef errno
26401extern int errno;
26402#endif
26403main()
26404{
26405 int x;
26406
26407 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
26408 if (x == -1 && errno == EINVAL)
26409 exit (1);
26410 else
26411 exit (0);
26412}
26413
26414_ACEOF
26415rm -f conftest$ac_exeext
26416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>&5
26418 ac_status=$?
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; }; then
26426 bash_cv_wcontinued_broken=no
26427else
26428 echo "$as_me: program exited with status $ac_status" >&5
26429echo "$as_me: failed program was:" >&5
0628567a
JA
26430sed 's/^/| /' conftest.$ac_ext >&5
26431
95732b49
JA
26432( exit $ac_status )
26433bash_cv_wcontinued_broken=yes
26434fi
0628567a 26435rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
95732b49
JA
26436fi
26437fi
26438
26439echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
26440echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
26441if test $bash_cv_wcontinued_broken = yes; then
26442cat >>confdefs.h <<\_ACEOF
26443#define WCONTINUED_BROKEN 1
26444_ACEOF
26445
26446fi
26447
26448
b80f6443 26449echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
f73dda09
JA
26450echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
26451if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 26453else
f73dda09 26454 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
d166f048 26460#include <sys/types.h>
f73dda09
JA
26461int
26462main ()
26463{
d166f048 26464speed_t x;
f73dda09
JA
26465 ;
26466 return 0;
26467}
26468_ACEOF
26469rm -f conftest.$ac_objext
b80f6443 26470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 26471 (eval $ac_compile) 2>conftest.er1
f73dda09 26472 ac_status=$?
0628567a
JA
26473 grep -v '^ *+' conftest.er1 >conftest.err
26474 rm -f conftest.er1
26475 cat conftest.err >&5
b80f6443 26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26477 (exit $ac_status); } &&
0628567a
JA
26478 { ac_try='test -z "$ac_c_werror_flag"
26479 || test ! -s conftest.err'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; } &&
26485 { ac_try='test -s conftest.$ac_objext'
b80f6443 26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
b80f6443 26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26490 (exit $ac_status); }; }; then
d166f048
JA
26491 bash_cv_speed_t_in_sys_types=yes
26492else
f73dda09 26493 echo "$as_me: failed program was:" >&5
0628567a
JA
26494sed 's/^/| /' conftest.$ac_ext >&5
26495
f73dda09 26496bash_cv_speed_t_in_sys_types=no
d166f048 26497fi
0628567a 26498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
26499fi
26500
b80f6443 26501echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
f73dda09
JA
26502echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
26503if test $bash_cv_speed_t_in_sys_types = yes; then
b80f6443 26504cat >>confdefs.h <<\_ACEOF
d166f048 26505#define SPEED_T_IN_SYS_TYPES 1
b80f6443 26506_ACEOF
d166f048
JA
26507
26508fi
26509
b80f6443 26510echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
f73dda09
JA
26511echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
26512if test "${bash_cv_getpw_declared+set}" = set; then
26513 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26514else
f73dda09 26515 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26516/* confdefs.h. */
26517_ACEOF
26518cat confdefs.h >>conftest.$ac_ext
26519cat >>conftest.$ac_ext <<_ACEOF
26520/* end confdefs.h. */
28ef6c31 26521
ccc6cda3 26522#include <sys/types.h>
28ef6c31
JA
26523#ifdef HAVE_UNISTD_H
26524# include <unistd.h>
26525#endif
ccc6cda3 26526#include <pwd.h>
28ef6c31 26527
f73dda09 26528_ACEOF
28ef6c31 26529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26530 $EGREP "getpwuid" >/dev/null 2>&1; then
28ef6c31 26531 bash_cv_getpw_declared=yes
ccc6cda3 26532else
28ef6c31 26533 bash_cv_getpw_declared=no
ccc6cda3
JA
26534fi
26535rm -f conftest*
28ef6c31 26536
ccc6cda3
JA
26537fi
26538
b80f6443 26539echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
f73dda09 26540echo "${ECHO_T}$bash_cv_getpw_declared" >&6
28ef6c31 26541if test $bash_cv_getpw_declared = yes; then
b80f6443 26542cat >>confdefs.h <<\_ACEOF
ccc6cda3 26543#define HAVE_GETPW_DECLS 1
b80f6443 26544_ACEOF
ccc6cda3
JA
26545
26546fi
26547
b80f6443 26548echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
f73dda09
JA
26549echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
26550if test "${bash_cv_unusable_rtsigs+set}" = set; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
28ef6c31
JA
26552else
26553 if test "$cross_compiling" = yes; then
b80f6443 26554 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
f73dda09 26555echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28ef6c31
JA
26556 bash_cv_unusable_rtsigs=yes
26557
26558else
f73dda09 26559 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26560/* confdefs.h. */
26561_ACEOF
26562cat confdefs.h >>conftest.$ac_ext
26563cat >>conftest.$ac_ext <<_ACEOF
26564/* end confdefs.h. */
28ef6c31
JA
26565
26566#include <sys/types.h>
26567#include <signal.h>
26568
26569#ifndef NSIG
26570# define NSIG 64
26571#endif
26572
26573main ()
26574{
26575 int n_sigs = 2 * NSIG;
26576#ifdef SIGRTMIN
26577 int rtmin = SIGRTMIN;
26578#else
26579 int rtmin = 0;
26580#endif
26581
26582 exit(rtmin < n_sigs);
26583}
f73dda09
JA
26584_ACEOF
26585rm -f conftest$ac_exeext
b80f6443 26586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f73dda09
JA
26587 (eval $ac_link) 2>&5
26588 ac_status=$?
b80f6443 26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b80f6443 26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
b80f6443 26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26595 (exit $ac_status); }; }; then
28ef6c31
JA
26596 bash_cv_unusable_rtsigs=yes
26597else
f73dda09
JA
26598 echo "$as_me: program exited with status $ac_status" >&5
26599echo "$as_me: failed program was:" >&5
0628567a
JA
26600sed 's/^/| /' conftest.$ac_ext >&5
26601
b80f6443 26602( exit $ac_status )
f73dda09 26603bash_cv_unusable_rtsigs=no
28ef6c31 26604fi
0628567a 26605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28ef6c31 26606fi
28ef6c31
JA
26607fi
26608
b80f6443 26609echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
f73dda09 26610echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
28ef6c31 26611if test $bash_cv_unusable_rtsigs = yes; then
b80f6443 26612cat >>confdefs.h <<\_ACEOF
28ef6c31 26613#define UNUSABLE_RT_SIGNALS 1
b80f6443 26614_ACEOF
28ef6c31
JA
26615
26616fi
26617
b80f6443
JA
26618
26619
26620
26621
f73dda09
JA
26622if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
26623 SIGLIST_O=siglist.o
26624else
26625 SIGLIST_O=
26626fi
ccc6cda3 26627
b80f6443
JA
26628
26629
ccc6cda3 26630case "$host_os" in
b80f6443 26631hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
f73dda09
JA
26632echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26633if test "${bash_cv_kernel_rlimit+set}" = set; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26635else
f73dda09 26636 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26637/* confdefs.h. */
26638_ACEOF
26639cat confdefs.h >>conftest.$ac_ext
26640cat >>conftest.$ac_ext <<_ACEOF
26641/* end confdefs.h. */
ccc6cda3
JA
26642
26643#include <sys/types.h>
26644#include <sys/resource.h>
26645
f73dda09
JA
26646int
26647main ()
26648{
ccc6cda3
JA
26649
26650 int f;
26651 f = RLIMIT_DATA;
26652
f73dda09
JA
26653 ;
26654 return 0;
26655}
26656_ACEOF
26657rm -f conftest.$ac_objext
b80f6443 26658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 26659 (eval $ac_compile) 2>conftest.er1
f73dda09 26660 ac_status=$?
0628567a
JA
26661 grep -v '^ *+' conftest.er1 >conftest.err
26662 rm -f conftest.er1
26663 cat conftest.err >&5
b80f6443 26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26665 (exit $ac_status); } &&
0628567a
JA
26666 { ac_try='test -z "$ac_c_werror_flag"
26667 || test ! -s conftest.err'
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26670 ac_status=$?
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; } &&
26673 { ac_try='test -s conftest.$ac_objext'
b80f6443 26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
b80f6443 26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26678 (exit $ac_status); }; }; then
ccc6cda3
JA
26679 bash_cv_kernel_rlimit=no
26680else
f73dda09 26681 echo "$as_me: failed program was:" >&5
0628567a
JA
26682sed 's/^/| /' conftest.$ac_ext >&5
26683
f73dda09 26684cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26685/* confdefs.h. */
26686_ACEOF
26687cat confdefs.h >>conftest.$ac_ext
26688cat >>conftest.$ac_ext <<_ACEOF
26689/* end confdefs.h. */
ccc6cda3 26690
cce855bc
JA
26691#include <sys/types.h>
26692#define _KERNEL
26693#include <sys/resource.h>
26694#undef _KERNEL
26695
f73dda09
JA
26696int
26697main ()
26698{
ccc6cda3
JA
26699
26700 int f;
26701 f = RLIMIT_DATA;
cce855bc 26702
f73dda09
JA
26703 ;
26704 return 0;
26705}
26706_ACEOF
26707rm -f conftest.$ac_objext
b80f6443 26708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
0628567a 26709 (eval $ac_compile) 2>conftest.er1
f73dda09 26710 ac_status=$?
0628567a
JA
26711 grep -v '^ *+' conftest.er1 >conftest.err
26712 rm -f conftest.er1
26713 cat conftest.err >&5
b80f6443 26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26715 (exit $ac_status); } &&
0628567a
JA
26716 { ac_try='test -z "$ac_c_werror_flag"
26717 || test ! -s conftest.err'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
b80f6443 26724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26725 (eval $ac_try) 2>&5
26726 ac_status=$?
b80f6443 26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26728 (exit $ac_status); }; }; then
ccc6cda3
JA
26729 bash_cv_kernel_rlimit=yes
26730else
f73dda09 26731 echo "$as_me: failed program was:" >&5
0628567a
JA
26732sed 's/^/| /' conftest.$ac_ext >&5
26733
f73dda09 26734bash_cv_kernel_rlimit=no
ccc6cda3 26735fi
0628567a 26736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26737
26738fi
0628567a 26739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26740fi
26741
b80f6443 26742echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
f73dda09 26743echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
ccc6cda3 26744if test $bash_cv_kernel_rlimit = yes; then
b80f6443 26745cat >>confdefs.h <<\_ACEOF
ccc6cda3 26746#define RLIMIT_NEEDS_KERNEL 1
b80f6443 26747_ACEOF
ccc6cda3
JA
26748
26749fi
26750 ;;
26751esac
26752
26753if test "$opt_readline" = yes; then
d166f048
JA
26754case "$host_os" in
26755aix*) prefer_curses=yes ;;
26756esac
ccc6cda3
JA
26757
26758if test "X$bash_cv_termcap_lib" = "X"; then
26759_bash_needmsg=yes
26760else
b80f6443 26761echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 26762echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
ccc6cda3
JA
26763_bash_needmsg=
26764fi
f73dda09
JA
26765if test "${bash_cv_termcap_lib+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26767else
b80f6443
JA
26768 echo "$as_me:$LINENO: checking for tgetent" >&5
26769echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26770if test "${ac_cv_func_tgetent+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26774/* confdefs.h. */
26775_ACEOF
26776cat confdefs.h >>conftest.$ac_ext
26777cat >>conftest.$ac_ext <<_ACEOF
26778/* end confdefs.h. */
26779/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26781#define tgetent innocuous_tgetent
26782
b80f6443 26783/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
26784 which can conflict with char tgetent (); below.
26785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26786 <limits.h> exists even on freestanding compilers. */
26787
26788#ifdef __STDC__
26789# include <limits.h>
26790#else
26791# include <assert.h>
26792#endif
26793
26794#undef tgetent
26795
b80f6443
JA
26796/* Override any gcc2 internal prototype to avoid an error. */
26797#ifdef __cplusplus
26798extern "C"
0628567a 26799{
b80f6443
JA
26800#endif
26801/* We use char because int might match the return type of a gcc2
26802 builtin and then its argument prototype would still apply. */
26803char tgetent ();
26804/* The GNU C library defines this for functions which it implements
26805 to always fail with ENOSYS. Some functions are actually named
26806 something starting with __ and the normal name is an alias. */
26807#if defined (__stub_tgetent) || defined (__stub___tgetent)
26808choke me
26809#else
0628567a
JA
26810char (*f) () = tgetent;
26811#endif
26812#ifdef __cplusplus
26813}
b80f6443
JA
26814#endif
26815
0628567a
JA
26816int
26817main ()
26818{
26819return f != tgetent;
b80f6443
JA
26820 ;
26821 return 0;
26822}
26823_ACEOF
26824rm -f conftest.$ac_objext conftest$ac_exeext
26825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 26826 (eval $ac_link) 2>conftest.er1
b80f6443 26827 ac_status=$?
0628567a
JA
26828 grep -v '^ *+' conftest.er1 >conftest.err
26829 rm -f conftest.er1
26830 cat conftest.err >&5
b80f6443
JA
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } &&
0628567a
JA
26833 { ac_try='test -z "$ac_c_werror_flag"
26834 || test ! -s conftest.err'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest$ac_exeext'
b80f6443
JA
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; }; then
26846 ac_cv_func_tgetent=yes
26847else
26848 echo "$as_me: failed program was:" >&5
0628567a
JA
26849sed 's/^/| /' conftest.$ac_ext >&5
26850
b80f6443
JA
26851ac_cv_func_tgetent=no
26852fi
0628567a
JA
26853rm -f conftest.err conftest.$ac_objext \
26854 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
26855fi
26856echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26857echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26858if test $ac_cv_func_tgetent = yes; then
26859 bash_cv_termcap_lib=libc
26860else
26861 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
f73dda09
JA
26862echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26863if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26865else
f73dda09 26866 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 26867LIBS="-ltermcap $LIBS"
f73dda09 26868cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26869/* confdefs.h. */
26870_ACEOF
26871cat confdefs.h >>conftest.$ac_ext
26872cat >>conftest.$ac_ext <<_ACEOF
26873/* end confdefs.h. */
f73dda09 26874
ccc6cda3 26875/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
26876#ifdef __cplusplus
26877extern "C"
26878#endif
ccc6cda3 26879/* We use char because int might match the return type of a gcc2
f73dda09
JA
26880 builtin and then its argument prototype would still apply. */
26881char tgetent ();
26882int
26883main ()
26884{
26885tgetent ();
26886 ;
26887 return 0;
26888}
26889_ACEOF
26890rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 26891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 26892 (eval $ac_link) 2>conftest.er1
f73dda09 26893 ac_status=$?
0628567a
JA
26894 grep -v '^ *+' conftest.er1 >conftest.err
26895 rm -f conftest.er1
26896 cat conftest.err >&5
b80f6443 26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26898 (exit $ac_status); } &&
0628567a
JA
26899 { ac_try='test -z "$ac_c_werror_flag"
26900 || test ! -s conftest.err'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; } &&
26906 { ac_try='test -s conftest$ac_exeext'
b80f6443 26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
b80f6443 26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
26911 (exit $ac_status); }; }; then
26912 ac_cv_lib_termcap_tgetent=yes
26913else
26914 echo "$as_me: failed program was:" >&5
0628567a
JA
26915sed 's/^/| /' conftest.$ac_ext >&5
26916
f73dda09
JA
26917ac_cv_lib_termcap_tgetent=no
26918fi
0628567a
JA
26919rm -f conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
26921LIBS=$ac_check_lib_save_LIBS
26922fi
b80f6443 26923echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
f73dda09
JA
26924echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26925if test $ac_cv_lib_termcap_tgetent = yes; then
ccc6cda3
JA
26926 bash_cv_termcap_lib=libtermcap
26927else
b80f6443 26928 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
f73dda09
JA
26929echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26930if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 26932else
f73dda09
JA
26933 ac_check_lib_save_LIBS=$LIBS
26934LIBS="-ltinfo $LIBS"
26935cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26936/* confdefs.h. */
26937_ACEOF
26938cat confdefs.h >>conftest.$ac_ext
26939cat >>conftest.$ac_ext <<_ACEOF
26940/* end confdefs.h. */
f73dda09 26941
ccc6cda3 26942/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
26943#ifdef __cplusplus
26944extern "C"
26945#endif
ccc6cda3 26946/* We use char because int might match the return type of a gcc2
f73dda09
JA
26947 builtin and then its argument prototype would still apply. */
26948char tgetent ();
26949int
26950main ()
26951{
26952tgetent ();
26953 ;
26954 return 0;
26955}
26956_ACEOF
26957rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 26958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 26959 (eval $ac_link) 2>conftest.er1
f73dda09 26960 ac_status=$?
0628567a
JA
26961 grep -v '^ *+' conftest.er1 >conftest.err
26962 rm -f conftest.er1
26963 cat conftest.err >&5
b80f6443 26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26965 (exit $ac_status); } &&
0628567a
JA
26966 { ac_try='test -z "$ac_c_werror_flag"
26967 || test ! -s conftest.err'
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } &&
26973 { ac_try='test -s conftest$ac_exeext'
b80f6443 26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
26975 (eval $ac_try) 2>&5
26976 ac_status=$?
b80f6443 26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
26978 (exit $ac_status); }; }; then
26979 ac_cv_lib_tinfo_tgetent=yes
26980else
26981 echo "$as_me: failed program was:" >&5
0628567a
JA
26982sed 's/^/| /' conftest.$ac_ext >&5
26983
f73dda09
JA
26984ac_cv_lib_tinfo_tgetent=no
26985fi
0628567a
JA
26986rm -f conftest.err conftest.$ac_objext \
26987 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
26988LIBS=$ac_check_lib_save_LIBS
26989fi
b80f6443 26990echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
f73dda09
JA
26991echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26992if test $ac_cv_lib_tinfo_tgetent = yes; then
7117c2d2 26993 bash_cv_termcap_lib=libtinfo
f73dda09 26994else
b80f6443 26995 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
f73dda09
JA
26996echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26997if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26998 echo $ECHO_N "(cached) $ECHO_C" >&6
26999else
27000 ac_check_lib_save_LIBS=$LIBS
27001LIBS="-lcurses $LIBS"
27002cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27003/* confdefs.h. */
27004_ACEOF
27005cat confdefs.h >>conftest.$ac_ext
27006cat >>conftest.$ac_ext <<_ACEOF
27007/* end confdefs.h. */
ccc6cda3 27008
f73dda09
JA
27009/* Override any gcc2 internal prototype to avoid an error. */
27010#ifdef __cplusplus
27011extern "C"
27012#endif
27013/* We use char because int might match the return type of a gcc2
27014 builtin and then its argument prototype would still apply. */
27015char tgetent ();
27016int
27017main ()
27018{
27019tgetent ();
27020 ;
27021 return 0;
27022}
27023_ACEOF
27024rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 27025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 27026 (eval $ac_link) 2>conftest.er1
f73dda09 27027 ac_status=$?
0628567a
JA
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
b80f6443 27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27032 (exit $ac_status); } &&
0628567a
JA
27033 { ac_try='test -z "$ac_c_werror_flag"
27034 || test ! -s conftest.err'
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; } &&
27040 { ac_try='test -s conftest$ac_exeext'
b80f6443 27041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
b80f6443 27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
27045 (exit $ac_status); }; }; then
27046 ac_cv_lib_curses_tgetent=yes
27047else
27048 echo "$as_me: failed program was:" >&5
0628567a
JA
27049sed 's/^/| /' conftest.$ac_ext >&5
27050
f73dda09
JA
27051ac_cv_lib_curses_tgetent=no
27052fi
0628567a
JA
27053rm -f conftest.err conftest.$ac_objext \
27054 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
27055LIBS=$ac_check_lib_save_LIBS
27056fi
b80f6443 27057echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
f73dda09
JA
27058echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
27059if test $ac_cv_lib_curses_tgetent = yes; then
ccc6cda3
JA
27060 bash_cv_termcap_lib=libcurses
27061else
b80f6443 27062 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
f73dda09
JA
27063echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
27064if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3 27066else
f73dda09 27067 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 27068LIBS="-lncurses $LIBS"
f73dda09 27069cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27070/* confdefs.h. */
27071_ACEOF
27072cat confdefs.h >>conftest.$ac_ext
27073cat >>conftest.$ac_ext <<_ACEOF
27074/* end confdefs.h. */
f73dda09 27075
ccc6cda3 27076/* Override any gcc2 internal prototype to avoid an error. */
f73dda09
JA
27077#ifdef __cplusplus
27078extern "C"
27079#endif
ccc6cda3 27080/* We use char because int might match the return type of a gcc2
f73dda09
JA
27081 builtin and then its argument prototype would still apply. */
27082char tgetent ();
27083int
27084main ()
27085{
27086tgetent ();
27087 ;
27088 return 0;
27089}
27090_ACEOF
27091rm -f conftest.$ac_objext conftest$ac_exeext
b80f6443 27092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
0628567a 27093 (eval $ac_link) 2>conftest.er1
f73dda09 27094 ac_status=$?
0628567a
JA
27095 grep -v '^ *+' conftest.er1 >conftest.err
27096 rm -f conftest.er1
27097 cat conftest.err >&5
b80f6443 27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27099 (exit $ac_status); } &&
0628567a
JA
27100 { ac_try='test -z "$ac_c_werror_flag"
27101 || test ! -s conftest.err'
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27104 ac_status=$?
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; } &&
27107 { ac_try='test -s conftest$ac_exeext'
b80f6443 27108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f73dda09
JA
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
b80f6443 27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
27112 (exit $ac_status); }; }; then
27113 ac_cv_lib_ncurses_tgetent=yes
27114else
27115 echo "$as_me: failed program was:" >&5
0628567a
JA
27116sed 's/^/| /' conftest.$ac_ext >&5
27117
f73dda09
JA
27118ac_cv_lib_ncurses_tgetent=no
27119fi
0628567a
JA
27120rm -f conftest.err conftest.$ac_objext \
27121 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
27122LIBS=$ac_check_lib_save_LIBS
27123fi
b80f6443 27124echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
f73dda09
JA
27125echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
27126if test $ac_cv_lib_ncurses_tgetent = yes; then
27127 bash_cv_termcap_lib=libncurses
ccc6cda3 27128else
f73dda09 27129 bash_cv_termcap_lib=gnutermcap
ccc6cda3 27130fi
ccc6cda3 27131
ccc6cda3
JA
27132fi
27133
27134fi
27135
27136fi
27137
27138fi
27139
b80f6443
JA
27140fi
27141
ccc6cda3 27142if test "X$_bash_needmsg" = "Xyes"; then
b80f6443 27143echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
f73dda09 27144echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
ccc6cda3 27145fi
b80f6443 27146echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
f73dda09 27147echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
cce855bc 27148if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
27149LDFLAGS="$LDFLAGS -L./lib/termcap"
27150TERMCAP_LIB="./lib/termcap/libtermcap.a"
27151TERMCAP_DEP="./lib/termcap/libtermcap.a"
d166f048 27152elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
27153TERMCAP_LIB=-ltermcap
27154TERMCAP_DEP=
f73dda09
JA
27155elif test $bash_cv_termcap_lib = libtinfo; then
27156TERMCAP_LIB=-ltinfo
27157TERMCAP_DEP=
ccc6cda3
JA
27158elif test $bash_cv_termcap_lib = libncurses; then
27159TERMCAP_LIB=-lncurses
27160TERMCAP_DEP=
b80f6443
JA
27161elif test $bash_cv_termcap_lib = libc; then
27162TERMCAP_LIB=
27163TERMCAP_DEP=
ccc6cda3
JA
27164else
27165TERMCAP_LIB=-lcurses
27166TERMCAP_DEP=
27167fi
27168
27169fi
27170
b80f6443
JA
27171
27172
27173echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
f73dda09
JA
27174echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
27175if test "${bash_cv_dev_fd+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
d166f048 27177else
0628567a
JA
27178 bash_cv_dev_fd=""
27179if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
95732b49 27180# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
0628567a 27181 exec 3</dev/null
95732b49
JA
27182 if test -r /dev/fd/3; then
27183 bash_cv_dev_fd=standard
27184 else
27185 bash_cv_dev_fd=absent
27186 fi
27187 exec 3<&-
0628567a
JA
27188fi
27189if test -z "$bash_cv_dev_fd" ; then
27190 if test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
27191 bash_cv_dev_fd=whacky
27192 else
27193 bash_cv_dev_fd=absent
27194 fi
27195fi
d166f048
JA
27196
27197fi
27198
b80f6443 27199echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
f73dda09 27200echo "${ECHO_T}$bash_cv_dev_fd" >&6
d166f048 27201if test $bash_cv_dev_fd = "standard"; then
b80f6443 27202 cat >>confdefs.h <<\_ACEOF
d166f048 27203#define HAVE_DEV_FD 1
b80f6443 27204_ACEOF
d166f048 27205
b80f6443 27206 cat >>confdefs.h <<\_ACEOF
d166f048 27207#define DEV_FD_PREFIX "/dev/fd/"
b80f6443 27208_ACEOF
d166f048
JA
27209
27210elif test $bash_cv_dev_fd = "whacky"; then
b80f6443 27211 cat >>confdefs.h <<\_ACEOF
d166f048 27212#define HAVE_DEV_FD 1
b80f6443 27213_ACEOF
d166f048 27214
b80f6443 27215 cat >>confdefs.h <<\_ACEOF
d166f048 27216#define DEV_FD_PREFIX "/proc/self/fd/"
b80f6443 27217_ACEOF
d166f048
JA
27218
27219fi
27220
b80f6443 27221echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
f73dda09
JA
27222echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
27223if test "${bash_cv_dev_stdin+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
bb70624e 27225else
b80f6443 27226 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
bb70624e 27227 bash_cv_dev_stdin=present
b80f6443 27228 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
bb70624e
JA
27229 bash_cv_dev_stdin=present
27230 else
27231 bash_cv_dev_stdin=absent
27232 fi
27233
27234fi
27235
b80f6443 27236echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
f73dda09 27237echo "${ECHO_T}$bash_cv_dev_stdin" >&6
bb70624e 27238if test $bash_cv_dev_stdin = "present"; then
b80f6443 27239 cat >>confdefs.h <<\_ACEOF
bb70624e 27240#define HAVE_DEV_STDIN 1
b80f6443 27241_ACEOF
bb70624e
JA
27242
27243fi
27244
b80f6443 27245echo "$as_me:$LINENO: checking for default mail directory" >&5
f73dda09
JA
27246echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
27247if test "${bash_cv_mail_dir+set}" = set; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
ccc6cda3
JA
27249else
27250 if test -d /var/mail; then
27251 bash_cv_mail_dir=/var/mail
ccc6cda3
JA
27252 elif test -d /var/spool/mail; then
27253 bash_cv_mail_dir=/var/spool/mail
7117c2d2
JA
27254 elif test -d /usr/mail; then
27255 bash_cv_mail_dir=/usr/mail
e8ce775d
JA
27256 elif test -d /usr/spool/mail; then
27257 bash_cv_mail_dir=/usr/spool/mail
ccc6cda3
JA
27258 else
27259 bash_cv_mail_dir=unknown
27260 fi
27261
27262fi
27263
b80f6443
JA
27264echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
27265echo "${ECHO_T}$bash_cv_mail_dir" >&6
27266cat >>confdefs.h <<_ACEOF
27267#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
27268_ACEOF
27269
27270
ccc6cda3 27271
ccc6cda3
JA
27272if test "$bash_cv_job_control_missing" = missing; then
27273 opt_job_control=no
27274fi
27275
27276if test "$opt_job_control" = yes; then
b80f6443 27277cat >>confdefs.h <<\_ACEOF
ccc6cda3 27278#define JOB_CONTROL 1
b80f6443 27279_ACEOF
ccc6cda3
JA
27280
27281JOBS_O=jobs.o
27282else
27283JOBS_O=nojobs.o
27284fi
27285
b80f6443
JA
27286
27287
27288
d166f048
JA
27289LOCAL_DEFS=-DSHELL
27290
b80f6443 27291
b72432fd 27292case "${host_os}" in
b80f6443 27293sysv4.2*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 27294#define SVR4_2 1
b80f6443 27295_ACEOF
ccc6cda3 27296
b80f6443 27297 cat >>confdefs.h <<\_ACEOF
ccc6cda3 27298#define SVR4 1
b80f6443 27299_ACEOF
ccc6cda3 27300 ;;
b80f6443 27301sysv4*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 27302#define SVR4 1
b80f6443 27303_ACEOF
ccc6cda3 27304 ;;
b80f6443 27305sysv5*) cat >>confdefs.h <<\_ACEOF
b72432fd 27306#define SVR5 1
b80f6443 27307_ACEOF
b72432fd
JA
27308 ;;
27309hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
ccc6cda3
JA
27310hpux*) LOCAL_CFLAGS=-DHPUX ;;
27311dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
bb70624e
JA
27312isc*) LOCAL_CFLAGS=-Disc386 ;;
27313rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
f73dda09 27314darwin*) LOCAL_CFLAGS=-DMACOSX ;;
7117c2d2
JA
27315sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
27316sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
ccc6cda3 27317sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
d166f048 27318sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
f1be666c
JA
27319solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
27320solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
b72432fd 27321lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
95732b49
JA
27322linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
27323 case "`uname -r`" in
27324 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
27325#define PGRP_PIPE 1
27326_ACEOF
27327 ;;
27328 esac ;;
27329*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
7117c2d2 27330*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
b72432fd 27331powerux*) LOCAL_LIBS="-lgen" ;;
b80f6443 27332cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
95732b49 27333opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
b72432fd
JA
27334esac
27335
27336case "${host_os}-${CC}" in
27337aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
27338aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
27339bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
ccc6cda3
JA
27340esac
27341
bb70624e 27342case "${host_os}" in
28ef6c31
JA
27343freebsd[3-9]*)
27344 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
bb70624e
JA
27345 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
27346 fi ;;
28ef6c31 27347freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
95732b49 27348dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
bb70624e
JA
27349esac
27350
ccc6cda3
JA
27351case "$host_cpu" in
27352*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
27353esac
27354
27355case "$host_cpu-$host_os" in
27356ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
27357esac
27358
27359case "$host_cpu-$host_vendor-$host_os" in
27360m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
27361mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
27362esac
27363
b72432fd
JA
27364#
27365# Shared object configuration section. These values are generated by
27366# ${srcdir}/support/shobj-conf
27367#
27368if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
27369then
b80f6443 27370 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
f73dda09 27371echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
28ef6c31 27372 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
f73dda09 27373
b80f6443
JA
27374
27375
27376
27377
27378
27379
27380 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
f73dda09 27381echo "${ECHO_T}$SHOBJ_STATUS" >&6
b72432fd
JA
27382fi
27383
ccc6cda3
JA
27384# try to create a directory tree if the source is elsewhere
27385# this should be packaged into a script accessible via ${srcdir}/support
27386case "$srcdir" in
27387.) ;;
cce855bc 27388*) for d in doc tests support lib examples; do # dirs
ccc6cda3
JA
27389 test -d $d || mkdir $d
27390 done
cce855bc 27391 for ld in readline glob tilde malloc sh termcap; do # libdirs
ccc6cda3
JA
27392 test -d lib/$ld || mkdir lib/$ld
27393 done
cce855bc 27394 test -d examples/loadables || mkdir examples/loadables # loadable builtins
bb70624e 27395 test -d examples/loadables/perl || mkdir examples/loadables/perl
ccc6cda3
JA
27396 ;;
27397esac
27398
27399BUILD_DIR=`pwd`
95732b49
JA
27400case "$BUILD_DIR" in
27401*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
27402*) ;;
27403esac
ccc6cda3 27404
b80f6443
JA
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
d166f048
JA
27428#AC_SUBST(ALLOCA_SOURCE)
27429#AC_SUBST(ALLOCA_OBJECT)
27430
0628567a
JA
27431 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"
27432 ac_config_commands="$ac_config_commands default"
f73dda09 27433cat >confcache <<\_ACEOF
ccc6cda3
JA
27434# This file is a shell script that caches the results of configure
27435# tests run on this system so they can be shared between configure
f73dda09
JA
27436# scripts and configure runs, see configure's option --config-cache.
27437# It is not useful on other systems. If it contains results you don't
27438# want to keep, you may remove or edit it.
726f6388 27439#
f73dda09
JA
27440# config.status only pays attention to the cache file if you give it
27441# the --recheck option to rerun configure.
ccc6cda3 27442#
0628567a 27443# `ac_cv_env_foo' variables (set or unset) will be overridden when
f73dda09
JA
27444# loading this file, other *unset* `ac_cv_foo' will be assigned the
27445# following values.
27446
27447_ACEOF
27448
ccc6cda3
JA
27449# The following way of writing the cache mishandles newlines in values,
27450# but we know of no workaround that is simple, portable, and efficient.
27451# So, don't put newlines in cache variables' values.
27452# Ultrix sh set writes to stderr and can't be redirected directly,
27453# and sets the high bit in the cache file unless we assign to the vars.
f73dda09
JA
27454{
27455 (set) 2>&1 |
27456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27457 *ac_space=\ *)
27458 # `set' does not quote correctly, so add quotes (double-quote
27459 # substitution turns \\\\ into \\, and sed turns \\ into \).
27460 sed -n \
0628567a
JA
27461 "s/'/'\\\\''/g;
27462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
f73dda09
JA
27463 ;;
27464 *)
27465 # `set' quotes correctly as required by POSIX, so do not add quotes.
27466 sed -n \
0628567a 27467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
f73dda09
JA
27468 ;;
27469 esac;
27470} |
27471 sed '
27472 t clear
27473 : clear
27474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27475 t end
27476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27477 : end' >>confcache
0628567a 27478if diff $cache_file confcache >/dev/null 2>&1; then :; else
ccc6cda3 27479 if test -w $cache_file; then
f73dda09
JA
27480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27481 cat confcache >$cache_file
ccc6cda3
JA
27482 else
27483 echo "not updating unwritable cache $cache_file"
27484 fi
27485fi
27486rm -f confcache
27487
ccc6cda3
JA
27488test "x$prefix" = xNONE && prefix=$ac_default_prefix
27489# Let make expand exec_prefix.
27490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27491
f73dda09
JA
27492# VPATH may cause trouble with some makes, so we remove $(srcdir),
27493# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27494# trailing colons and then remove the whole line if VPATH becomes empty
27495# (actually we leave an empty line to preserve line numbers).
ccc6cda3 27496if test "x$srcdir" = x.; then
0628567a 27497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
f73dda09
JA
27498s/:*\$(srcdir):*/:/;
27499s/:*\${srcdir}:*/:/;
27500s/:*@srcdir@:*/:/;
0628567a 27501s/^\([^=]*=[ ]*\):*/\1/;
f73dda09 27502s/:*$//;
0628567a 27503s/^[^=]*=[ ]*$//;
f73dda09 27504}'
ccc6cda3
JA
27505fi
27506
ccc6cda3
JA
27507DEFS=-DHAVE_CONFIG_H
27508
0628567a
JA
27509ac_libobjs=
27510ac_ltlibobjs=
27511for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27512 # 1. Remove the extension, and $U if already installed.
27513 ac_i=`echo "$ac_i" |
27514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27515 # 2. Add them.
27516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27518done
27519LIBOBJS=$ac_libobjs
27520
27521LTLIBOBJS=$ac_ltlibobjs
27522
27523
b80f6443 27524
ccc6cda3 27525: ${CONFIG_STATUS=./config.status}
f73dda09
JA
27526ac_clean_files_save=$ac_clean_files
27527ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b80f6443 27528{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f73dda09
JA
27529echo "$as_me: creating $CONFIG_STATUS" >&6;}
27530cat >$CONFIG_STATUS <<_ACEOF
27531#! $SHELL
b80f6443 27532# Generated by $as_me.
ccc6cda3 27533# Run this file to recreate the current configuration.
ccc6cda3 27534# Compiler output produced by configure, useful for debugging
f73dda09 27535# configure, is in config.log if it exists.
ccc6cda3 27536
f73dda09 27537debug=false
0628567a
JA
27538ac_cs_recheck=false
27539ac_cs_silent=false
f73dda09 27540SHELL=\${CONFIG_SHELL-$SHELL}
f73dda09
JA
27541_ACEOF
27542
27543cat >>$CONFIG_STATUS <<\_ACEOF
b80f6443
JA
27544## --------------------- ##
27545## M4sh Initialization. ##
27546## --------------------- ##
27547
f73dda09
JA
27548# Be Bourne compatible
27549if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27550 emulate sh
27551 NULLCMD=:
0628567a
JA
27552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27553 # is contrary to our usage. Disable this feature.
27554 alias -g '${1+"$@"}'='"$@"'
f73dda09
JA
27555elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27556 set -o posix
27557fi
0628567a 27558DUALCASE=1; export DUALCASE # for MKS sh
f73dda09 27559
b80f6443 27560# Support unset when possible.
0628567a 27561if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b80f6443
JA
27562 as_unset=unset
27563else
27564 as_unset=false
27565fi
27566
0628567a
JA
27567
27568# Work around bugs in pre-3.0 UWIN ksh.
27569$as_unset ENV MAIL MAILPATH
27570PS1='$ '
27571PS2='> '
27572PS4='+ '
27573
27574# NLS nuisances.
27575for as_var in \
27576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27578 LC_TELEPHONE LC_TIME
27579do
27580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27581 eval $as_var=C; export $as_var
27582 else
27583 $as_unset $as_var
27584 fi
27585done
27586
27587# Required to use basename.
27588if expr a : '\(a\)' >/dev/null 2>&1; then
27589 as_expr=expr
27590else
27591 as_expr=false
27592fi
27593
27594if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27595 as_basename=basename
27596else
27597 as_basename=false
27598fi
b80f6443
JA
27599
27600
f73dda09 27601# Name of the executable.
0628567a 27602as_me=`$as_basename "$0" ||
b80f6443
JA
27603$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27604 X"$0" : 'X\(//\)$' \| \
27605 X"$0" : 'X\(/\)$' \| \
27606 . : '\(.\)' 2>/dev/null ||
27607echo X/"$0" |
27608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27609 /^X\/\(\/\/\)$/{ s//\1/; q; }
27610 /^X\/\(\/\).*/{ s//\1/; q; }
27611 s/.*/./; q'`
27612
0628567a 27613
b80f6443
JA
27614# PATH needs CR, and LINENO needs CR and PATH.
27615# Avoid depending upon Character Ranges.
27616as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27617as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27618as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27619as_cr_digits='0123456789'
27620as_cr_alnum=$as_cr_Letters$as_cr_digits
27621
27622# The user is always right.
27623if test "${PATH_SEPARATOR+set}" != set; then
0628567a
JA
27624 echo "#! /bin/sh" >conf$$.sh
27625 echo "exit 0" >>conf$$.sh
27626 chmod +x conf$$.sh
27627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
b80f6443
JA
27628 PATH_SEPARATOR=';'
27629 else
27630 PATH_SEPARATOR=:
27631 fi
0628567a 27632 rm -f conf$$.sh
b80f6443
JA
27633fi
27634
27635
27636 as_lineno_1=$LINENO
27637 as_lineno_2=$LINENO
27638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27639 test "x$as_lineno_1" != "x$as_lineno_2" &&
27640 test "x$as_lineno_3" = "x$as_lineno_2" || {
27641 # Find who we are. Look in the path if we contain no path at all
27642 # relative or not.
27643 case $0 in
27644 *[\\/]* ) as_myself=$0 ;;
27645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27646for as_dir in $PATH
27647do
27648 IFS=$as_save_IFS
27649 test -z "$as_dir" && as_dir=.
27650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27651done
27652
27653 ;;
27654 esac
27655 # We did not find ourselves, most probably we were run as `sh COMMAND'
27656 # in which case we are not to be found in the path.
27657 if test "x$as_myself" = x; then
27658 as_myself=$0
27659 fi
27660 if test ! -f "$as_myself"; then
27661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27662echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27663 { (exit 1); exit 1; }; }
27664 fi
27665 case $CONFIG_SHELL in
27666 '')
27667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27668for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27669do
27670 IFS=$as_save_IFS
27671 test -z "$as_dir" && as_dir=.
27672 for as_base in sh bash ksh sh5; do
27673 case $as_dir in
27674 /*)
27675 if ("$as_dir/$as_base" -c '
27676 as_lineno_1=$LINENO
27677 as_lineno_2=$LINENO
27678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27679 test "x$as_lineno_1" != "x$as_lineno_2" &&
27680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
0628567a
JA
27681 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27682 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
b80f6443
JA
27683 CONFIG_SHELL=$as_dir/$as_base
27684 export CONFIG_SHELL
27685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27686 fi;;
27687 esac
27688 done
27689done
27690;;
27691 esac
27692
27693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27694 # uniformly replaced by the line number. The first 'sed' inserts a
27695 # line-number line before each line; the second 'sed' does the real
27696 # work. The second script uses 'N' to pair each line-number line
27697 # with the numbered line, and appends trailing '-' during
27698 # substitution so that $LINENO is not a special case at line end.
27699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27701 sed '=' <$as_myself |
27702 sed '
27703 N
27704 s,$,-,
27705 : loop
27706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27707 t loop
27708 s,-$,,
27709 s,^['$as_cr_digits']*\n,,
27710 ' >$as_me.lineno &&
27711 chmod +x $as_me.lineno ||
27712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27713echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27714 { (exit 1); exit 1; }; }
27715
27716 # Don't try to exec as it changes $[0], causing all sort of problems
27717 # (the dirname of $[0] is not the place where we might find the
27718 # original and so on. Autoconf is especially sensible to this).
27719 . ./$as_me.lineno
27720 # Exit status is that of the last command.
27721 exit
27722}
27723
27724
27725case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27726 *c*,-n*) ECHO_N= ECHO_C='
27727' ECHO_T=' ' ;;
27728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27730esac
f73dda09
JA
27731
27732if expr a : '\(a\)' >/dev/null 2>&1; then
27733 as_expr=expr
27734else
27735 as_expr=false
27736fi
27737
27738rm -f conf$$ conf$$.exe conf$$.file
27739echo >conf$$.file
27740if ln -s conf$$.file conf$$ 2>/dev/null; then
27741 # We could just check for DJGPP; but this test a) works b) is more generic
27742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27743 if test -f conf$$.exe; then
27744 # Don't use ln at all; we don't have any links
27745 as_ln_s='cp -p'
27746 else
27747 as_ln_s='ln -s'
27748 fi
27749elif ln conf$$.file conf$$ 2>/dev/null; then
27750 as_ln_s=ln
27751else
27752 as_ln_s='cp -p'
27753fi
27754rm -f conf$$ conf$$.exe conf$$.file
27755
0628567a
JA
27756if mkdir -p . 2>/dev/null; then
27757 as_mkdir_p=:
27758else
27759 test -d ./-p && rmdir ./-p
27760 as_mkdir_p=false
27761fi
27762
b80f6443
JA
27763as_executable_p="test -f"
27764
27765# Sed expression to map a string onto a valid CPP name.
0628567a 27766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b80f6443
JA
27767
27768# Sed expression to map a string onto a valid variable name.
0628567a 27769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b80f6443 27770
f73dda09
JA
27771
27772# IFS
27773# We need space, tab and new line, in precisely that order.
27774as_nl='
27775'
27776IFS=" $as_nl"
27777
27778# CDPATH.
0628567a 27779$as_unset CDPATH
f73dda09
JA
27780
27781exec 6>&1
27782
b80f6443
JA
27783# Open the log real soon, to keep \$[0] and so on meaningful, and to
27784# report actual input values of CONFIG_FILES etc. instead of their
27785# values after options handling. Logging --version etc. is OK.
27786exec 5>>config.log
27787{
27788 echo
27789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27790## Running $as_me. ##
27791_ASBOX
27792} >&5
27793cat >&5 <<_CSEOF
27794
0628567a
JA
27795This file was extended by bash $as_me 3.2-release, which was
27796generated by GNU Autoconf 2.59. Invocation command line was
b80f6443
JA
27797
27798 CONFIG_FILES = $CONFIG_FILES
27799 CONFIG_HEADERS = $CONFIG_HEADERS
27800 CONFIG_LINKS = $CONFIG_LINKS
27801 CONFIG_COMMANDS = $CONFIG_COMMANDS
27802 $ $0 $@
27803
27804_CSEOF
27805echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27806echo >&5
f73dda09
JA
27807_ACEOF
27808
27809# Files that config.status was made for.
27810if test -n "$ac_config_files"; then
27811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27812fi
27813
27814if test -n "$ac_config_headers"; then
27815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27816fi
27817
27818if test -n "$ac_config_links"; then
27819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27820fi
27821
27822if test -n "$ac_config_commands"; then
27823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27824fi
27825
b80f6443 27826cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27827
27828ac_cs_usage="\
27829\`$as_me' instantiates files from templates according to the
27830current configuration.
27831
27832Usage: $0 [OPTIONS] [FILE]...
27833
27834 -h, --help print this help, then exit
27835 -V, --version print version number, then exit
0628567a 27836 -q, --quiet do not print progress messages
f73dda09
JA
27837 -d, --debug don't remove temporary files
27838 --recheck update $as_me by reconfiguring in the same conditions
27839 --file=FILE[:TEMPLATE]
0628567a 27840 instantiate the configuration file FILE
f73dda09 27841 --header=FILE[:TEMPLATE]
0628567a 27842 instantiate the configuration header FILE
f73dda09
JA
27843
27844Configuration files:
27845$config_files
27846
27847Configuration headers:
27848$config_headers
27849
27850Configuration commands:
27851$config_commands
27852
27853Report bugs to <bug-autoconf@gnu.org>."
b80f6443 27854_ACEOF
f73dda09 27855
b80f6443 27856cat >>$CONFIG_STATUS <<_ACEOF
f73dda09 27857ac_cs_version="\\
0628567a
JA
27858bash config.status 3.2-release
27859configured by $0, generated by GNU Autoconf 2.59,
f73dda09
JA
27860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27861
0628567a 27862Copyright (C) 2003 Free Software Foundation, Inc.
f73dda09
JA
27863This config.status script is free software; the Free Software Foundation
27864gives unlimited permission to copy, distribute and modify it."
27865srcdir=$srcdir
27866INSTALL="$INSTALL"
b80f6443 27867_ACEOF
f73dda09 27868
b80f6443 27869cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27870# If no file are specified by the user, then we need to provide default
27871# value. By we need to know if files were specified by the user.
27872ac_need_defaults=:
27873while test $# != 0
ccc6cda3 27874do
f73dda09
JA
27875 case $1 in
27876 --*=*)
27877 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27878 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
0628567a
JA
27879 ac_shift=:
27880 ;;
27881 -*)
27882 ac_option=$1
27883 ac_optarg=$2
27884 ac_shift=shift
f73dda09 27885 ;;
f73dda09
JA
27886 *) # This is not an option, so the user has probably given explicit
27887 # arguments.
0628567a 27888 ac_option=$1
f73dda09
JA
27889 ac_need_defaults=false;;
27890 esac
27891
0628567a 27892 case $ac_option in
f73dda09 27893 # Handling of the options.
b80f6443 27894_ACEOF
95732b49 27895cat >>$CONFIG_STATUS <<\_ACEOF
0628567a
JA
27896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27897 ac_cs_recheck=: ;;
f73dda09
JA
27898 --version | --vers* | -V )
27899 echo "$ac_cs_version"; exit 0 ;;
27900 --he | --h)
27901 # Conflict between --help and --header
b80f6443 27902 { { echo "$as_me:$LINENO: error: ambiguous option: $1
f73dda09
JA
27903Try \`$0 --help' for more information." >&5
27904echo "$as_me: error: ambiguous option: $1
27905Try \`$0 --help' for more information." >&2;}
27906 { (exit 1); exit 1; }; };;
27907 --help | --hel | -h )
27908 echo "$ac_cs_usage"; exit 0 ;;
27909 --debug | --d* | -d )
27910 debug=: ;;
27911 --file | --fil | --fi | --f )
0628567a
JA
27912 $ac_shift
27913 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f73dda09
JA
27914 ac_need_defaults=false;;
27915 --header | --heade | --head | --hea )
0628567a
JA
27916 $ac_shift
27917 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f73dda09 27918 ac_need_defaults=false;;
0628567a
JA
27919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27921 ac_cs_silent=: ;;
f73dda09
JA
27922
27923 # This is an error.
b80f6443 27924 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
f73dda09
JA
27925Try \`$0 --help' for more information." >&5
27926echo "$as_me: error: unrecognized option: $1
27927Try \`$0 --help' for more information." >&2;}
27928 { (exit 1); exit 1; }; } ;;
27929
27930 *) ac_config_targets="$ac_config_targets $1" ;;
27931
ccc6cda3 27932 esac
f73dda09 27933 shift
ccc6cda3
JA
27934done
27935
0628567a
JA
27936ac_configure_extra_args=
27937
27938if $ac_cs_silent; then
27939 exec 6>/dev/null
27940 ac_configure_extra_args="$ac_configure_extra_args --silent"
27941fi
27942
27943_ACEOF
27944cat >>$CONFIG_STATUS <<_ACEOF
27945if \$ac_cs_recheck; then
27946 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27947 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27948fi
27949
b80f6443
JA
27950_ACEOF
27951
27952cat >>$CONFIG_STATUS <<_ACEOF
27953#
27954# INIT-COMMANDS section.
27955#
27956
27957# Capture the value of obsolete ALL_LINGUAS because we need it to compute
27958 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27959 # from automake.
27960 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27961 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27962 LINGUAS="${LINGUAS-%UNSET%}"
f73dda09 27963
f73dda09
JA
27964
27965_ACEOF
ccc6cda3 27966
b80f6443
JA
27967
27968
27969cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
27970for ac_config_target in $ac_config_targets
27971do
27972 case "$ac_config_target" in
27973 # Handling of arguments.
27974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27975 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27976 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27977 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
b80f6443 27978 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
f73dda09
JA
27979 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27980 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27981 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27982 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27983 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27984 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
b80f6443 27985 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
f73dda09
JA
27986 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27987 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
b80f6443
JA
27988 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
27989 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
f73dda09
JA
27990 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27991 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b80f6443 27992 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f73dda09
JA
27993echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27994 { (exit 1); exit 1; }; };;
27995 esac
27996done
27997
27998# If the user did not use the arguments to specify the items to instantiate,
27999# then the envvar interface is used. Set only those that are not.
28000# We use the long form for the default assignment because of an extremely
28001# bizarre bug on SunOS 4.1.3.
28002if $ac_need_defaults; then
28003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28006fi
28007
0628567a
JA
28008# Have a temporary directory for convenience. Make it in the build tree
28009# simply because there is no reason to put it here, and in addition,
28010# creating and moving files from /tmp can sometimes cause problems.
f73dda09
JA
28011# Create a temporary directory, and hook for its removal unless debugging.
28012$debug ||
28013{
28014 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28015 trap '{ (exit 1); exit 1; }' 1 2 13 15
28016}
28017
28018# Create a (secure) tmp directory for tmp files.
0628567a 28019
f73dda09 28020{
0628567a 28021 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
f73dda09
JA
28022 test -n "$tmp" && test -d "$tmp"
28023} ||
28024{
0628567a 28025 tmp=./confstat$$-$RANDOM
f73dda09
JA
28026 (umask 077 && mkdir $tmp)
28027} ||
28028{
0628567a 28029 echo "$me: cannot create a temporary directory in ." >&2
f73dda09
JA
28030 { (exit 1); exit 1; }
28031}
ccc6cda3 28032
b80f6443 28033_ACEOF
ccc6cda3 28034
b80f6443 28035cat >>$CONFIG_STATUS <<_ACEOF
ccc6cda3 28036
f73dda09
JA
28037#
28038# CONFIG_FILES section.
28039#
28040
28041# No need to generate the scripts if there are no CONFIG_FILES.
28042# This happens for instance when ./config.status config.h
28043if test -n "\$CONFIG_FILES"; then
28044 # Protect against being on the right side of a sed subst in config.status.
28045 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28046 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28047s,@SHELL@,$SHELL,;t t
b80f6443
JA
28048s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28049s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28050s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28051s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28052s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28053s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
f73dda09
JA
28054s,@exec_prefix@,$exec_prefix,;t t
28055s,@prefix@,$prefix,;t t
28056s,@program_transform_name@,$program_transform_name,;t t
28057s,@bindir@,$bindir,;t t
28058s,@sbindir@,$sbindir,;t t
28059s,@libexecdir@,$libexecdir,;t t
28060s,@datadir@,$datadir,;t t
28061s,@sysconfdir@,$sysconfdir,;t t
28062s,@sharedstatedir@,$sharedstatedir,;t t
28063s,@localstatedir@,$localstatedir,;t t
28064s,@libdir@,$libdir,;t t
28065s,@includedir@,$includedir,;t t
28066s,@oldincludedir@,$oldincludedir,;t t
28067s,@infodir@,$infodir,;t t
28068s,@mandir@,$mandir,;t t
f73dda09
JA
28069s,@build_alias@,$build_alias,;t t
28070s,@host_alias@,$host_alias,;t t
28071s,@target_alias@,$target_alias,;t t
b80f6443 28072s,@DEFS@,$DEFS,;t t
f73dda09
JA
28073s,@ECHO_C@,$ECHO_C,;t t
28074s,@ECHO_N@,$ECHO_N,;t t
28075s,@ECHO_T@,$ECHO_T,;t t
f73dda09
JA
28076s,@LIBS@,$LIBS,;t t
28077s,@build@,$build,;t t
28078s,@build_cpu@,$build_cpu,;t t
28079s,@build_vendor@,$build_vendor,;t t
28080s,@build_os@,$build_os,;t t
28081s,@host@,$host,;t t
28082s,@host_cpu@,$host_cpu,;t t
28083s,@host_vendor@,$host_vendor,;t t
28084s,@host_os@,$host_os,;t t
b80f6443
JA
28085s,@EMACS@,$EMACS,;t t
28086s,@lispdir@,$lispdir,;t t
28087s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
f73dda09
JA
28088s,@TESTSCRIPT@,$TESTSCRIPT,;t t
28089s,@PURIFY@,$PURIFY,;t t
28090s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
28091s,@MALLOC_SRC@,$MALLOC_SRC,;t t
28092s,@MALLOC_LIB@,$MALLOC_LIB,;t t
28093s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
28094s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
28095s,@MALLOC_DEP@,$MALLOC_DEP,;t t
28096s,@htmldir@,$htmldir,;t t
7117c2d2
JA
28097s,@HELPDIR@,$HELPDIR,;t t
28098s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
28099s,@HELPINSTALL@,$HELPINSTALL,;t t
95732b49 28100s,@HELPSTRINGS@,$HELPSTRINGS,;t t
f73dda09
JA
28101s,@CC@,$CC,;t t
28102s,@CFLAGS@,$CFLAGS,;t t
28103s,@LDFLAGS@,$LDFLAGS,;t t
28104s,@CPPFLAGS@,$CPPFLAGS,;t t
28105s,@ac_ct_CC@,$ac_ct_CC,;t t
28106s,@EXEEXT@,$EXEEXT,;t t
28107s,@OBJEXT@,$OBJEXT,;t t
28108s,@CPP@,$CPP,;t t
0628567a 28109s,@EGREP@,$EGREP,;t t
95732b49 28110s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
f73dda09 28111s,@SIGNAMES_H@,$SIGNAMES_H,;t t
0628567a 28112s,@SIGNAMES_O@,$SIGNAMES_O,;t t
f73dda09
JA
28113s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28114s,@STATIC_LD@,$STATIC_LD,;t t
7117c2d2
JA
28115s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28116s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28117s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
f73dda09
JA
28118s,@RL_VERSION@,$RL_VERSION,;t t
28119s,@RL_MAJOR@,$RL_MAJOR,;t t
28120s,@RL_MINOR@,$RL_MINOR,;t t
28121s,@READLINE_LIB@,$READLINE_LIB,;t t
28122s,@READLINE_DEP@,$READLINE_DEP,;t t
28123s,@RL_LIBDIR@,$RL_LIBDIR,;t t
28124s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
28125s,@RL_INCLUDE@,$RL_INCLUDE,;t t
28126s,@HISTORY_LIB@,$HISTORY_LIB,;t t
28127s,@HISTORY_DEP@,$HISTORY_DEP,;t t
28128s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
95732b49 28129s,@TILDE_LIB@,$TILDE_LIB,;t t
f73dda09
JA
28130s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28131s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28132s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28133s,@AR@,$AR,;t t
28134s,@RANLIB@,$RANLIB,;t t
28135s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28136s,@YACC@,$YACC,;t t
28137s,@SET_MAKE@,$SET_MAKE,;t t
28138s,@MAKE_SHELL@,$MAKE_SHELL,;t t
95732b49 28139s,@SIZE@,$SIZE,;t t
b80f6443
JA
28140s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
28141s,@USE_NLS@,$USE_NLS,;t t
28142s,@MSGFMT@,$MSGFMT,;t t
28143s,@GMSGFMT@,$GMSGFMT,;t t
28144s,@XGETTEXT@,$XGETTEXT,;t t
28145s,@MSGMERGE@,$MSGMERGE,;t t
f73dda09 28146s,@ALLOCA@,$ALLOCA,;t t
b80f6443
JA
28147s,@GLIBC21@,$GLIBC21,;t t
28148s,@LIBICONV@,$LIBICONV,;t t
28149s,@LTLIBICONV@,$LTLIBICONV,;t t
28150s,@INTLBISON@,$INTLBISON,;t t
28151s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
28152s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
28153s,@CATOBJEXT@,$CATOBJEXT,;t t
28154s,@DATADIRNAME@,$DATADIRNAME,;t t
28155s,@INSTOBJEXT@,$INSTOBJEXT,;t t
28156s,@GENCAT@,$GENCAT,;t t
28157s,@INTLOBJS@,$INTLOBJS,;t t
28158s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
28159s,@INTLLIBS@,$INTLLIBS,;t t
28160s,@LIBINTL@,$LIBINTL,;t t
28161s,@LTLIBINTL@,$LTLIBINTL,;t t
28162s,@POSUB@,$POSUB,;t t
f73dda09 28163s,@LIBOBJS@,$LIBOBJS,;t t
b80f6443
JA
28164s,@INTL_DEP@,$INTL_DEP,;t t
28165s,@INTL_INC@,$INTL_INC,;t t
28166s,@LIBINTL_H@,$LIBINTL_H,;t t
f73dda09
JA
28167s,@SIGLIST_O@,$SIGLIST_O,;t t
28168s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
28169s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
28170s,@JOBS_O@,$JOBS_O,;t t
28171s,@SHOBJ_CC@,$SHOBJ_CC,;t t
28172s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
28173s,@SHOBJ_LD@,$SHOBJ_LD,;t t
28174s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
28175s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
28176s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
28177s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
28178s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
28179s,@incdir@,$incdir,;t t
28180s,@BUILD_DIR@,$BUILD_DIR,;t t
28181s,@ARFLAGS@,$ARFLAGS,;t t
28182s,@BASHVERS@,$BASHVERS,;t t
7117c2d2
JA
28183s,@RELSTATUS@,$RELSTATUS,;t t
28184s,@DEBUG@,$DEBUG,;t t
28185s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
f73dda09
JA
28186s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
28187s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
28188s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
28189s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
0628567a 28190s,@LTLIBOBJS@,$LTLIBOBJS,;t t
f73dda09
JA
28191CEOF
28192
b80f6443 28193_ACEOF
f73dda09 28194
b80f6443 28195 cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
28196 # Split the substitutions into bite-sized pieces for seds with
28197 # small command number limits, like on Digital OSF/1 and HP-UX.
28198 ac_max_sed_lines=48
28199 ac_sed_frag=1 # Number of current file.
28200 ac_beg=1 # First line for current file.
28201 ac_end=$ac_max_sed_lines # Line after last line for current file.
28202 ac_more_lines=:
28203 ac_sed_cmds=
28204 while $ac_more_lines; do
28205 if test $ac_beg -gt 1; then
28206 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28207 else
28208 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28209 fi
28210 if test ! -s $tmp/subs.frag; then
28211 ac_more_lines=false
ccc6cda3 28212 else
f73dda09
JA
28213 # The purpose of the label and of the branching condition is to
28214 # speed up the sed processing (if there are no `@' at all, there
28215 # is no need to browse any of the substitutions).
28216 # These are the two extra sed commands mentioned above.
28217 (echo ':t
28218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28219 if test -z "$ac_sed_cmds"; then
0628567a 28220 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
f73dda09 28221 else
0628567a 28222 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
f73dda09
JA
28223 fi
28224 ac_sed_frag=`expr $ac_sed_frag + 1`
28225 ac_beg=$ac_end
28226 ac_end=`expr $ac_end + $ac_max_sed_lines`
ccc6cda3 28227 fi
f73dda09
JA
28228 done
28229 if test -z "$ac_sed_cmds"; then
28230 ac_sed_cmds=cat
ccc6cda3 28231 fi
f73dda09 28232fi # test -n "$CONFIG_FILES"
ccc6cda3 28233
b80f6443
JA
28234_ACEOF
28235cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09 28236for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
ccc6cda3 28237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f73dda09
JA
28238 case $ac_file in
28239 - | *:- | *:-:* ) # input from stdin
0628567a
JA
28240 cat >$tmp/stdin
28241 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 28243 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
0628567a 28244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 28245 * ) ac_file_in=$ac_file.in ;;
ccc6cda3
JA
28246 esac
28247
f73dda09 28248 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
b80f6443
JA
28249 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28250$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
0628567a
JA
28251 X"$ac_file" : 'X\(//\)[^/]' \| \
28252 X"$ac_file" : 'X\(//\)$' \| \
28253 X"$ac_file" : 'X\(/\)' \| \
28254 . : '\(.\)' 2>/dev/null ||
f73dda09
JA
28255echo X"$ac_file" |
28256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28258 /^X\(\/\/\)$/{ s//\1/; q; }
28259 /^X\(\/\).*/{ s//\1/; q; }
28260 s/.*/./; q'`
0628567a
JA
28261 { if $as_mkdir_p; then
28262 mkdir -p "$ac_dir"
28263 else
28264 as_dir="$ac_dir"
28265 as_dirs=
28266 while test ! -d "$as_dir"; do
28267 as_dirs="$as_dir $as_dirs"
28268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28270 X"$as_dir" : 'X\(//\)[^/]' \| \
28271 X"$as_dir" : 'X\(//\)$' \| \
28272 X"$as_dir" : 'X\(/\)' \| \
28273 . : '\(.\)' 2>/dev/null ||
28274echo X"$as_dir" |
28275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28277 /^X\(\/\/\)$/{ s//\1/; q; }
28278 /^X\(\/\).*/{ s//\1/; q; }
28279 s/.*/./; q'`
28280 done
28281 test ! -n "$as_dirs" || mkdir $as_dirs
28282 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28283echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28284 { (exit 1); exit 1; }; }; }
ccc6cda3 28285
b80f6443
JA
28286 ac_builddir=.
28287
28288if test "$ac_dir" != .; then
28289 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28290 # A "../" for each directory in $ac_dir_suffix.
28291 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28292else
28293 ac_dir_suffix= ac_top_builddir=
28294fi
28295
28296case $srcdir in
28297 .) # No --srcdir option. We are building in place.
28298 ac_srcdir=.
28299 if test -z "$ac_top_builddir"; then
28300 ac_top_srcdir=.
28301 else
28302 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28303 fi ;;
28304 [\\/]* | ?:[\\/]* ) # Absolute path.
28305 ac_srcdir=$srcdir$ac_dir_suffix;
28306 ac_top_srcdir=$srcdir ;;
ccc6cda3 28307 *) # Relative path.
b80f6443
JA
28308 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28309 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28310esac
0628567a
JA
28311
28312# Do not use `cd foo && pwd` to compute absolute paths, because
28313# the directories may not exist.
28314case `pwd` in
28315.) ac_abs_builddir="$ac_dir";;
28316*)
28317 case "$ac_dir" in
28318 .) ac_abs_builddir=`pwd`;;
28319 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28320 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28321 esac;;
28322esac
28323case $ac_abs_builddir in
28324.) ac_abs_top_builddir=${ac_top_builddir}.;;
28325*)
28326 case ${ac_top_builddir}. in
28327 .) ac_abs_top_builddir=$ac_abs_builddir;;
28328 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28329 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28330 esac;;
28331esac
28332case $ac_abs_builddir in
28333.) ac_abs_srcdir=$ac_srcdir;;
28334*)
28335 case $ac_srcdir in
28336 .) ac_abs_srcdir=$ac_abs_builddir;;
28337 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28338 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28339 esac;;
28340esac
28341case $ac_abs_builddir in
28342.) ac_abs_top_srcdir=$ac_top_srcdir;;
28343*)
28344 case $ac_top_srcdir in
28345 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28346 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28347 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28348 esac;;
28349esac
b80f6443 28350
ccc6cda3 28351
f73dda09
JA
28352 case $INSTALL in
28353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b80f6443 28354 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ccc6cda3
JA
28355 esac
28356
f73dda09 28357 if test x"$ac_file" != x-; then
b80f6443 28358 { echo "$as_me:$LINENO: creating $ac_file" >&5
f73dda09
JA
28359echo "$as_me: creating $ac_file" >&6;}
28360 rm -f "$ac_file"
28361 fi
28362 # Let's still pretend it is `configure' which instantiates (i.e., don't
28363 # use $as_me), people would be surprised to read:
b80f6443
JA
28364 # /* config.h. Generated by config.status. */
28365 if test x"$ac_file" = x-; then
28366 configure_input=
28367 else
28368 configure_input="$ac_file. "
28369 fi
28370 configure_input=$configure_input"Generated from `echo $ac_file_in |
0628567a 28371 sed 's,.*/,,'` by configure."
f73dda09
JA
28372
28373 # First look for the input files in the build tree, otherwise in the
28374 # src tree.
28375 ac_file_inputs=`IFS=:
28376 for f in $ac_file_in; do
28377 case $f in
28378 -) echo $tmp/stdin ;;
28379 [\\/$]*)
0628567a
JA
28380 # Absolute (can't be DOS-style, as IFS=:)
28381 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
28382echo "$as_me: error: cannot find input file: $f" >&2;}
28383 { (exit 1); exit 1; }; }
0628567a 28384 echo "$f";;
f73dda09 28385 *) # Relative
0628567a
JA
28386 if test -f "$f"; then
28387 # Build tree
28388 echo "$f"
28389 elif test -f "$srcdir/$f"; then
28390 # Source tree
28391 echo "$srcdir/$f"
28392 else
28393 # /dev/null tree
28394 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
28395echo "$as_me: error: cannot find input file: $f" >&2;}
28396 { (exit 1); exit 1; }; }
0628567a 28397 fi;;
f73dda09
JA
28398 esac
28399 done` || { (exit 1); exit 1; }
b80f6443
JA
28400_ACEOF
28401cat >>$CONFIG_STATUS <<_ACEOF
f73dda09
JA
28402 sed "$ac_vpsub
28403$extrasub
b80f6443
JA
28404_ACEOF
28405cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
28406:t
28407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28408s,@configure_input@,$configure_input,;t t
28409s,@srcdir@,$ac_srcdir,;t t
b80f6443 28410s,@abs_srcdir@,$ac_abs_srcdir,;t t
f73dda09 28411s,@top_srcdir@,$ac_top_srcdir,;t t
b80f6443
JA
28412s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28413s,@builddir@,$ac_builddir,;t t
28414s,@abs_builddir@,$ac_abs_builddir,;t t
28415s,@top_builddir@,$ac_top_builddir,;t t
28416s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
f73dda09
JA
28417s,@INSTALL@,$ac_INSTALL,;t t
28418" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28419 rm -f $tmp/stdin
28420 if test x"$ac_file" != x-; then
28421 mv $tmp/out $ac_file
28422 else
28423 cat $tmp/out
28424 rm -f $tmp/out
28425 fi
28426
28427done
b80f6443
JA
28428_ACEOF
28429cat >>$CONFIG_STATUS <<\_ACEOF
ccc6cda3 28430
f73dda09
JA
28431#
28432# CONFIG_HEADER section.
28433#
ccc6cda3
JA
28434
28435# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28436# NAME is the cpp macro being defined and VALUE is the value it is being given.
28437#
28438# ac_d sets the value in "#define NAME VALUE" lines.
0628567a
JA
28439ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28440ac_dB='[ ].*$,\1#\2'
f73dda09
JA
28441ac_dC=' '
28442ac_dD=',;t'
28443# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
0628567a 28444ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
f73dda09 28445ac_uB='$,\1#\2define\3'
ccc6cda3 28446ac_uC=' '
f73dda09 28447ac_uD=',;t'
ccc6cda3 28448
f73dda09 28449for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
ccc6cda3 28450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f73dda09
JA
28451 case $ac_file in
28452 - | *:- | *:-:* ) # input from stdin
0628567a
JA
28453 cat >$tmp/stdin
28454 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 28456 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
0628567a 28457 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
f73dda09 28458 * ) ac_file_in=$ac_file.in ;;
ccc6cda3
JA
28459 esac
28460
b80f6443 28461 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
f73dda09
JA
28462echo "$as_me: creating $ac_file" >&6;}
28463
28464 # First look for the input files in the build tree, otherwise in the
28465 # src tree.
28466 ac_file_inputs=`IFS=:
28467 for f in $ac_file_in; do
28468 case $f in
28469 -) echo $tmp/stdin ;;
28470 [\\/$]*)
0628567a
JA
28471 # Absolute (can't be DOS-style, as IFS=:)
28472 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
28473echo "$as_me: error: cannot find input file: $f" >&2;}
28474 { (exit 1); exit 1; }; }
0628567a
JA
28475 # Do quote $f, to prevent DOS paths from being IFS'd.
28476 echo "$f";;
f73dda09 28477 *) # Relative
0628567a
JA
28478 if test -f "$f"; then
28479 # Build tree
28480 echo "$f"
28481 elif test -f "$srcdir/$f"; then
28482 # Source tree
28483 echo "$srcdir/$f"
28484 else
28485 # /dev/null tree
28486 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f73dda09
JA
28487echo "$as_me: error: cannot find input file: $f" >&2;}
28488 { (exit 1); exit 1; }; }
0628567a 28489 fi;;
f73dda09
JA
28490 esac
28491 done` || { (exit 1); exit 1; }
28492 # Remove the trailing spaces.
0628567a 28493 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
f73dda09 28494
b80f6443 28495_ACEOF
f73dda09
JA
28496
28497# Transform confdefs.h into two sed scripts, `conftest.defines' and
28498# `conftest.undefs', that substitutes the proper values into
28499# config.h.in to produce config.h. The first handles `#define'
28500# templates, and the second `#undef' templates.
28501# And first: Protect against being on the right side of a sed subst in
28502# config.status. Protect against being in an unquoted here document
28503# in config.status.
28504rm -f conftest.defines conftest.undefs
28505# Using a here document instead of a string reduces the quoting nightmare.
28506# Putting comments in sed scripts is not portable.
28507#
28508# `end' is used to avoid that the second main sed command (meant for
28509# 0-ary CPP macros) applies to n-ary macro definitions.
28510# See the Autoconf documentation for `clear'.
b80f6443 28511cat >confdef2sed.sed <<\_ACEOF
f73dda09
JA
28512s/[\\&,]/\\&/g
28513s,[\\$`],\\&,g
28514t clear
28515: clear
0628567a 28516s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
f73dda09 28517t end
0628567a 28518s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
f73dda09 28519: end
b80f6443 28520_ACEOF
f73dda09
JA
28521# If some macros were called several times there might be several times
28522# the same #defines, which is useless. Nevertheless, we may not want to
28523# sort them, since we want the *last* AC-DEFINE to be honored.
28524uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28525sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28526rm -f confdef2sed.sed
ccc6cda3
JA
28527
28528# This sed command replaces #undef with comments. This is necessary, for
28529# example, in the case of _POSIX_SOURCE, which is predefined and required
28530# on some systems where configure will not decide to define it.
b80f6443 28531cat >>conftest.undefs <<\_ACEOF
0628567a 28532s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
b80f6443 28533_ACEOF
ccc6cda3 28534
f73dda09
JA
28535# Break up conftest.defines because some shells have a limit on the size
28536# of here documents, and old seds have small limits too (100 cmds).
28537echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
0628567a 28538echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
f73dda09
JA
28539echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28540echo ' :' >>$CONFIG_STATUS
28541rm -f conftest.tail
28542while grep . conftest.defines >/dev/null
28543do
28544 # Write a limited-size here document to $tmp/defines.sed.
28545 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28546 # Speed up: don't consider the non `#define' lines.
0628567a 28547 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
f73dda09
JA
28548 # Work around the forget-to-reset-the-flag bug.
28549 echo 't clr' >>$CONFIG_STATUS
28550 echo ': clr' >>$CONFIG_STATUS
28551 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28552 echo 'CEOF
28553 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28554 rm -f $tmp/in
28555 mv $tmp/out $tmp/in
28556' >>$CONFIG_STATUS
28557 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28558 rm -f conftest.defines
28559 mv conftest.tail conftest.defines
28560done
28561rm -f conftest.defines
0628567a 28562echo ' fi # grep' >>$CONFIG_STATUS
f73dda09 28563echo >>$CONFIG_STATUS
ccc6cda3 28564
f73dda09
JA
28565# Break up conftest.undefs because some shells have a limit on the size
28566# of here documents, and old seds have small limits too (100 cmds).
28567echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
ccc6cda3 28568rm -f conftest.tail
f73dda09 28569while grep . conftest.undefs >/dev/null
ccc6cda3 28570do
f73dda09
JA
28571 # Write a limited-size here document to $tmp/undefs.sed.
28572 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28573 # Speed up: don't consider the non `#undef'
0628567a 28574 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
f73dda09
JA
28575 # Work around the forget-to-reset-the-flag bug.
28576 echo 't clr' >>$CONFIG_STATUS
28577 echo ': clr' >>$CONFIG_STATUS
28578 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
ccc6cda3 28579 echo 'CEOF
f73dda09
JA
28580 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28581 rm -f $tmp/in
28582 mv $tmp/out $tmp/in
28583' >>$CONFIG_STATUS
28584 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28585 rm -f conftest.undefs
28586 mv conftest.tail conftest.undefs
ccc6cda3 28587done
f73dda09
JA
28588rm -f conftest.undefs
28589
b80f6443 28590cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
28591 # Let's still pretend it is `configure' which instantiates (i.e., don't
28592 # use $as_me), people would be surprised to read:
b80f6443 28593 # /* config.h. Generated by config.status. */
f73dda09 28594 if test x"$ac_file" = x-; then
b80f6443 28595 echo "/* Generated by configure. */" >$tmp/config.h
ccc6cda3 28596 else
b80f6443 28597 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
f73dda09
JA
28598 fi
28599 cat $tmp/in >>$tmp/config.h
28600 rm -f $tmp/in
28601 if test x"$ac_file" != x-; then
0628567a 28602 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
b80f6443 28603 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f73dda09
JA
28604echo "$as_me: $ac_file is unchanged" >&6;}
28605 else
b80f6443
JA
28606 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28607$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
0628567a
JA
28608 X"$ac_file" : 'X\(//\)[^/]' \| \
28609 X"$ac_file" : 'X\(//\)$' \| \
28610 X"$ac_file" : 'X\(/\)' \| \
28611 . : '\(.\)' 2>/dev/null ||
f73dda09
JA
28612echo X"$ac_file" |
28613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28615 /^X\(\/\/\)$/{ s//\1/; q; }
28616 /^X\(\/\).*/{ s//\1/; q; }
28617 s/.*/./; q'`
0628567a
JA
28618 { if $as_mkdir_p; then
28619 mkdir -p "$ac_dir"
28620 else
28621 as_dir="$ac_dir"
28622 as_dirs=
28623 while test ! -d "$as_dir"; do
28624 as_dirs="$as_dir $as_dirs"
28625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28626$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28627 X"$as_dir" : 'X\(//\)[^/]' \| \
28628 X"$as_dir" : 'X\(//\)$' \| \
28629 X"$as_dir" : 'X\(/\)' \| \
28630 . : '\(.\)' 2>/dev/null ||
28631echo X"$as_dir" |
28632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28634 /^X\(\/\/\)$/{ s//\1/; q; }
28635 /^X\(\/\).*/{ s//\1/; q; }
28636 s/.*/./; q'`
28637 done
28638 test ! -n "$as_dirs" || mkdir $as_dirs
28639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28640echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28641 { (exit 1); exit 1; }; }; }
f73dda09 28642
f73dda09
JA
28643 rm -f $ac_file
28644 mv $tmp/config.h $ac_file
ccc6cda3 28645 fi
f73dda09
JA
28646 else
28647 cat $tmp/config.h
28648 rm -f $tmp/config.h
ccc6cda3 28649 fi
f73dda09 28650done
b80f6443
JA
28651_ACEOF
28652cat >>$CONFIG_STATUS <<\_ACEOF
ccc6cda3 28653
f73dda09
JA
28654#
28655# CONFIG_COMMANDS section.
28656#
28657for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28658 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28659 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
b80f6443
JA
28660 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28661$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
0628567a
JA
28662 X"$ac_dest" : 'X\(//\)[^/]' \| \
28663 X"$ac_dest" : 'X\(//\)$' \| \
28664 X"$ac_dest" : 'X\(/\)' \| \
28665 . : '\(.\)' 2>/dev/null ||
b80f6443
JA
28666echo X"$ac_dest" |
28667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28669 /^X\(\/\/\)$/{ s//\1/; q; }
28670 /^X\(\/\).*/{ s//\1/; q; }
28671 s/.*/./; q'`
0628567a
JA
28672 { if $as_mkdir_p; then
28673 mkdir -p "$ac_dir"
28674 else
28675 as_dir="$ac_dir"
28676 as_dirs=
28677 while test ! -d "$as_dir"; do
28678 as_dirs="$as_dir $as_dirs"
28679 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28680$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28681 X"$as_dir" : 'X\(//\)[^/]' \| \
28682 X"$as_dir" : 'X\(//\)$' \| \
28683 X"$as_dir" : 'X\(/\)' \| \
28684 . : '\(.\)' 2>/dev/null ||
28685echo X"$as_dir" |
28686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28688 /^X\(\/\/\)$/{ s//\1/; q; }
28689 /^X\(\/\).*/{ s//\1/; q; }
28690 s/.*/./; q'`
28691 done
28692 test ! -n "$as_dirs" || mkdir $as_dirs
28693 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28694echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28695 { (exit 1); exit 1; }; }; }
28696
b80f6443
JA
28697 ac_builddir=.
28698
28699if test "$ac_dir" != .; then
28700 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28701 # A "../" for each directory in $ac_dir_suffix.
28702 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28703else
28704 ac_dir_suffix= ac_top_builddir=
28705fi
28706
28707case $srcdir in
28708 .) # No --srcdir option. We are building in place.
28709 ac_srcdir=.
28710 if test -z "$ac_top_builddir"; then
28711 ac_top_srcdir=.
28712 else
28713 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28714 fi ;;
28715 [\\/]* | ?:[\\/]* ) # Absolute path.
28716 ac_srcdir=$srcdir$ac_dir_suffix;
28717 ac_top_srcdir=$srcdir ;;
28718 *) # Relative path.
28719 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28720 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28721esac
0628567a
JA
28722
28723# Do not use `cd foo && pwd` to compute absolute paths, because
28724# the directories may not exist.
28725case `pwd` in
28726.) ac_abs_builddir="$ac_dir";;
28727*)
28728 case "$ac_dir" in
28729 .) ac_abs_builddir=`pwd`;;
28730 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28731 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28732 esac;;
28733esac
28734case $ac_abs_builddir in
28735.) ac_abs_top_builddir=${ac_top_builddir}.;;
28736*)
28737 case ${ac_top_builddir}. in
28738 .) ac_abs_top_builddir=$ac_abs_builddir;;
28739 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28740 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28741 esac;;
28742esac
28743case $ac_abs_builddir in
28744.) ac_abs_srcdir=$ac_srcdir;;
28745*)
28746 case $ac_srcdir in
28747 .) ac_abs_srcdir=$ac_abs_builddir;;
28748 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28749 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28750 esac;;
28751esac
28752case $ac_abs_builddir in
28753.) ac_abs_top_srcdir=$ac_top_srcdir;;
28754*)
28755 case $ac_top_srcdir in
28756 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28757 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28758 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28759 esac;;
28760esac
b80f6443 28761
ccc6cda3 28762
b80f6443
JA
28763 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28764echo "$as_me: executing $ac_dest commands" >&6;}
f73dda09 28765 case $ac_dest in
b80f6443
JA
28766 default-1 )
28767 for ac_file in $CONFIG_FILES; do
28768 # Support "outfile[:infile[:infile...]]"
28769 case "$ac_file" in
28770 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28771 esac
28772 # PO directories have a Makefile.in generated from Makefile.in.in.
28773 case "$ac_file" in */Makefile.in)
28774 # Adjust a relative srcdir.
28775 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28776 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28777 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28778 # In autoconf-2.13 it is called $ac_given_srcdir.
28779 # In autoconf-2.50 it is called $srcdir.
28780 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28781 case "$ac_given_srcdir" in
28782 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28783 /*) top_srcdir="$ac_given_srcdir" ;;
28784 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28785 esac
28786 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28787 rm -f "$ac_dir/POTFILES"
28788 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28789 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28790 POMAKEFILEDEPS="POTFILES.in"
28791 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28792 # on $ac_dir but don't depend on user-specified configuration
28793 # parameters.
28794 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28795 # The LINGUAS file contains the set of available languages.
28796 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28797 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28798 fi
28799 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28800 # Hide the ALL_LINGUAS assigment from automake.
28801 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28802 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28803 else
28804 # The set of available languages was given in configure.in.
28805 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28806 fi
28807 case "$ac_given_srcdir" in
28808 .) srcdirpre= ;;
28809 *) srcdirpre='$(srcdir)/' ;;
28810 esac
28811 POFILES=
28812 GMOFILES=
28813 UPDATEPOFILES=
28814 DUMMYPOFILES=
28815 for lang in $ALL_LINGUAS; do
28816 POFILES="$POFILES $srcdirpre$lang.po"
28817 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28818 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28819 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28820 done
28821 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28822 # environment variable.
28823 INST_LINGUAS=
28824 if test -n "$ALL_LINGUAS"; then
28825 for presentlang in $ALL_LINGUAS; do
28826 useit=no
28827 if test "%UNSET%" != "$LINGUAS"; then
28828 desiredlanguages="$LINGUAS"
28829 else
28830 desiredlanguages="$ALL_LINGUAS"
28831 fi
28832 for desiredlang in $desiredlanguages; do
28833 # Use the presentlang catalog if desiredlang is
28834 # a. equal to presentlang, or
28835 # b. a variant of presentlang (because in this case,
28836 # presentlang can be used as a fallback for messages
28837 # which are not translated in the desiredlang catalog).
28838 case "$desiredlang" in
28839 "$presentlang"*) useit=yes;;
28840 esac
28841 done
28842 if test $useit = yes; then
28843 INST_LINGUAS="$INST_LINGUAS $presentlang"
28844 fi
28845 done
28846 fi
28847 CATALOGS=
28848 if test -n "$INST_LINGUAS"; then
28849 for lang in $INST_LINGUAS; do
28850 CATALOGS="$CATALOGS $lang.gmo"
28851 done
28852 fi
28853 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28854 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"
28855 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28856 if test -f "$f"; then
28857 case "$f" in
28858 *.orig | *.bak | *~) ;;
28859 *) cat "$f" >> "$ac_dir/Makefile" ;;
28860 esac
28861 fi
28862 done
28863 fi
28864 ;;
28865 esac
28866 done ;;
f73dda09 28867 default )
ccc6cda3
JA
28868# Makefile uses this timestamp file to record whether config.h is up to date.
28869echo timestamp > stamp-h
f73dda09
JA
28870 ;;
28871 esac
28872done
b80f6443 28873_ACEOF
ccc6cda3 28874
b80f6443 28875cat >>$CONFIG_STATUS <<\_ACEOF
f73dda09
JA
28876
28877{ (exit 0); exit 0; }
b80f6443 28878_ACEOF
ccc6cda3 28879chmod +x $CONFIG_STATUS
f73dda09
JA
28880ac_clean_files=$ac_clean_files_save
28881
b80f6443 28882
f73dda09
JA
28883# configure is writing to config.log, and then calls config.status.
28884# config.status does its own redirection, appending to config.log.
28885# Unfortunately, on DOS this fails, as config.log is still kept open
28886# by configure, so config.status won't be able to write to it; its
28887# output is simply discarded. So we exec the FD to /dev/null,
28888# effectively closing config.log, so it can be properly (re)opened and
28889# appended to by config.status. When coming back to configure, we
28890# need to make the FD available again.
28891if test "$no_create" != yes; then
28892 ac_cs_success=:
0628567a
JA
28893 ac_config_status_args=
28894 test "$silent" = yes &&
28895 ac_config_status_args="$ac_config_status_args --quiet"
f73dda09 28896 exec 5>/dev/null
0628567a 28897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f73dda09
JA
28898 exec 5>>config.log
28899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28900 # would make configure fail if this is the last instruction.
28901 $ac_cs_success || { (exit 1); exit 1; }
28902fi
ccc6cda3 28903