]> git.ipfire.org Git - thirdparty/bash.git/blame - configure
Imported from ../bash-4.0-rc1.tar.gz.
[thirdparty/bash.git] / configure
CommitLineData
ccc6cda3 1#! /bin/sh
3185942a 2# From configure.in for Bash 4.0, version 4.009.
f73dda09 3# Guess values for system-dependent variables and create Makefiles.
3185942a 4# Generated by GNU Autoconf 2.63 for bash 4.0-rc1.
f73dda09
JA
5#
6# Report bugs to <bug-bash@gnu.org>.
7#
3185942a
JA
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
f73dda09
JA
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
b80f6443
JA
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
ccc6cda3 15
3185942a
JA
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
b80f6443
JA
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
3185942a 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
0628567a
JA
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
3185942a
JA
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
b80f6443
JA
82fi
83
84# Support unset when possible.
0628567a 85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b80f6443
JA
86 as_unset=unset
87else
88 as_unset=false
89fi
90
0628567a 91
3185942a
JA
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121fi
122
0628567a 123# Work around bugs in pre-3.0 UWIN ksh.
3185942a
JA
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
0628567a
JA
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
3185942a
JA
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
0628567a
JA
136
137# Required to use basename.
3185942a
JA
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
0628567a
JA
140 as_expr=expr
141else
142 as_expr=false
143fi
144
3185942a 145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
0628567a
JA
146 as_basename=basename
147else
148 as_basename=false
149fi
b80f6443
JA
150
151
152# Name of the executable.
3185942a 153as_me=`$as_basename -- "$0" ||
b80f6443
JA
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
3185942a
JA
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157$as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
b80f6443 171
3185942a
JA
172# CDPATH.
173$as_unset CDPATH
0628567a 174
ccc6cda3 175
3185942a
JA
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
b80f6443 181fi
ccc6cda3 182
3185942a
JA
183 if test $as_have_required = yes && (eval ":
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
ccc6cda3 199
3185942a
JA
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
ccc6cda3 207
3185942a
JA
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
b80f6443
JA
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
3185942a 248 case $as_dir in
b80f6443 249 /*)
3185942a
JA
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
b80f6443
JA
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
b80f6443 352 test "x$as_lineno_1" != "x$as_lineno_2" &&
3185942a
JA
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b80f6443
JA
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
3185942a
JA
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
b80f6443 458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3185942a
JA
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
b80f6443 465 sed '
3185942a
JA
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
b80f6443 470 N
3185942a
JA
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b80f6443 473 t loop
3185942a 474 s/-\n.*//
b80f6443 475 ' >$as_me.lineno &&
3185942a
JA
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b80f6443
JA
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
3185942a
JA
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
b80f6443
JA
484 # Exit status is that of the last command.
485 exit
486}
487
488
3185942a
JA
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
ccc6cda3 494
3185942a
JA
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
504esac
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f73dda09
JA
507 as_expr=expr
508else
509 as_expr=false
510fi
ccc6cda3 511
f73dda09 512rm -f conf$$ conf$$.exe conf$$.file
3185942a
JA
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
f73dda09 521 as_ln_s='ln -s'
3185942a
JA
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
f73dda09 532 fi
f73dda09
JA
533else
534 as_ln_s='cp -p'
535fi
3185942a
JA
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
ccc6cda3 538
0628567a
JA
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
545
3185942a
JA
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
b80f6443
JA
568
569# Sed expression to map a string onto a valid CPP name.
0628567a 570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b80f6443
JA
571
572# Sed expression to map a string onto a valid variable name.
0628567a 573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b80f6443 574
f73dda09 575
b80f6443 576
3185942a 577exec 7<&0 </dev/null 6>&1
f73dda09
JA
578
579# Name of the host.
580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
726f6388 584#
f73dda09
JA
585# Initializations.
586#
ccc6cda3 587ac_default_prefix=/usr/local
3185942a 588ac_clean_files=
0628567a 589ac_config_libobj_dir=.
3185942a 590LIBOBJS=
f73dda09
JA
591cross_compiling=no
592subdirs=
b80f6443
JA
593MFLAGS=
594MAKEFLAGS=
f73dda09
JA
595SHELL=${CONFIG_SHELL-/bin/sh}
596
b80f6443
JA
597# Identity of this package.
598PACKAGE_NAME='bash'
599PACKAGE_TARNAME='bash'
3185942a
JA
600PACKAGE_VERSION='4.0-rc1'
601PACKAGE_STRING='bash 4.0-rc1'
b80f6443
JA
602PACKAGE_BUGREPORT='bug-bash@gnu.org'
603
f73dda09
JA
604ac_unique_file="shell.h"
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
3185942a 608#ifdef HAVE_SYS_TYPES_H
f73dda09
JA
609# include <sys/types.h>
610#endif
3185942a 611#ifdef HAVE_SYS_STAT_H
f73dda09
JA
612# include <sys/stat.h>
613#endif
3185942a 614#ifdef STDC_HEADERS
f73dda09
JA
615# include <stdlib.h>
616# include <stddef.h>
617#else
3185942a 618# ifdef HAVE_STDLIB_H
f73dda09
JA
619# include <stdlib.h>
620# endif
621#endif
3185942a
JA
622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f73dda09
JA
624# include <memory.h>
625# endif
626# include <string.h>
627#endif
3185942a 628#ifdef HAVE_STRINGS_H
f73dda09
JA
629# include <strings.h>
630#endif
3185942a 631#ifdef HAVE_INTTYPES_H
f73dda09 632# include <inttypes.h>
f73dda09 633#endif
3185942a
JA
634#ifdef HAVE_STDINT_H
635# include <stdint.h>
636#endif
637#ifdef HAVE_UNISTD_H
f73dda09
JA
638# include <unistd.h>
639#endif"
ccc6cda3 640
3185942a
JA
641ac_header_list=
642ac_func_list=
643ac_subst_vars='LTLIBOBJS
644LOCAL_DEFS
645LOCAL_LDFLAGS
646LOCAL_CFLAGS
647LOCAL_LIBS
648MALLOC_DEBUG
649DEBUG
650RELSTATUS
651BASHVERS
652ARFLAGS
653BUILD_DIR
654incdir
655PROFILE_FLAGS
656SHOBJ_STATUS
657SHOBJ_LIBS
658SHOBJ_XLDFLAGS
659SHOBJ_LDFLAGS
660SHOBJ_LD
661SHOBJ_CFLAGS
662SHOBJ_CC
663JOBS_O
664TERMCAP_DEP
665TERMCAP_LIB
666SIGLIST_O
667LIBINTL_H
668INTL_INC
669INTL_DEP
670LIBOBJS
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
683INTLBISON
684LTLIBICONV
685LIBICONV
686GLIBC21
687ALLOCA
688MSGMERGE
689XGETTEXT
690GMSGFMT
691MSGFMT
692USE_NLS
693MKINSTALLDIRS
694SIZE
695MAKE_SHELL
696SET_MAKE
697YFLAGS
698YACC
699RANLIB
700AR
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704TILDE_LIB
705HIST_LIBDIR
706HISTORY_DEP
707HISTORY_LIB
708RL_INCLUDE
709RL_INCLUDEDIR
710RL_LIBDIR
711READLINE_DEP
712READLINE_LIB
713RL_MINOR
714RL_MAJOR
715RL_VERSION
716LDFLAGS_FOR_BUILD
717CPPFLAGS_FOR_BUILD
718CFLAGS_FOR_BUILD
719STATIC_LD
720CC_FOR_BUILD
721SIGNAMES_O
722SIGNAMES_H
723CROSS_COMPILE
724EGREP
725GREP
726CPP
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734HELPSTRINGS
735HELPINSTALL
736HELPDIRDEFINE
737HELPDIR
738MALLOC_DEP
739MALLOC_LDFLAGS
740MALLOC_LIBRARY
741MALLOC_LIB
742MALLOC_SRC
743MALLOC_TARGET
744PURIFY
745TESTSCRIPT
746DEBUGGER_START_FILE
747lispdir
748EMACS
749host_os
750host_vendor
751host_cpu
752host
753build_os
754build_vendor
755build_cpu
756build
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_BUGREPORT
788PACKAGE_STRING
789PACKAGE_VERSION
790PACKAGE_TARNAME
791PACKAGE_NAME
792PATH_SEPARATOR
793SHELL'
0628567a 794ac_subst_files=''
3185942a
JA
795ac_user_opts='
796enable_option_checking
797with_lispdir
798with_afs
799with_bash_malloc
800with_curses
801with_gnu_malloc
802with_installed_readline
803with_purecov
804with_purify
805enable_minimal_config
806enable_alias
807enable_arith_for_command
808enable_array_variables
809enable_bang_history
810enable_brace_expansion
811enable_casemod_attributes
812enable_casemod_expansions
813enable_command_timing
814enable_cond_command
815enable_cond_regexp
816enable_coprocesses
817enable_debugger
818enable_directory_stack
819enable_disabled_builtins
820enable_dparen_arithmetic
821enable_extended_glob
822enable_help_builtin
823enable_history
824enable_job_control
825enable_multibyte
826enable_net_redirections
827enable_process_substitution
828enable_progcomp
829enable_prompt_string_decoding
830enable_readline
831enable_restricted
832enable_select
833enable_separate_helpfiles
834enable_single_help_strings
835enable_strict_posix_default
836enable_usg_echo_default
837enable_xpg_echo_default
838enable_mem_scramble
839enable_profiling
840enable_static_link
841enable_largefile
842enable_nls
843with_gnu_ld
844enable_rpath
845with_libiconv_prefix
846with_included_gettext
847with_libintl_prefix
848'
849 ac_precious_vars='build_alias
850host_alias
851target_alias
852DEBUGGER_START_FILE
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
859YACC
860YFLAGS'
861
b80f6443 862
ccc6cda3 863# Initialize some variables set by options.
f73dda09
JA
864ac_init_help=
865ac_init_version=false
3185942a
JA
866ac_unrecognized_opts=
867ac_unrecognized_sep=
ccc6cda3
JA
868# The variables have the same names as the options, with
869# dashes changed to underlines.
f73dda09 870cache_file=/dev/null
ccc6cda3 871exec_prefix=NONE
ccc6cda3 872no_create=
ccc6cda3
JA
873no_recursion=
874prefix=NONE
875program_prefix=NONE
876program_suffix=NONE
877program_transform_name=s,x,x,
878silent=
879site=
880srcdir=
ccc6cda3
JA
881verbose=
882x_includes=NONE
883x_libraries=NONE
f73dda09
JA
884
885# Installation directory options.
886# These are left unexpanded so users can "make install exec_prefix=/foo"
887# and all the variables that are supposed to be based on exec_prefix
888# by default will actually change.
889# Use braces instead of parens because sh, perl, etc. also accept them.
3185942a 890# (The list follows the same order as the GNU Coding Standards.)
ccc6cda3
JA
891bindir='${exec_prefix}/bin'
892sbindir='${exec_prefix}/sbin'
893libexecdir='${exec_prefix}/libexec'
3185942a
JA
894datarootdir='${prefix}/share'
895datadir='${datarootdir}'
ccc6cda3
JA
896sysconfdir='${prefix}/etc'
897sharedstatedir='${prefix}/com'
898localstatedir='${prefix}/var'
ccc6cda3
JA
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
3185942a
JA
901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
ccc6cda3 910
ccc6cda3 911ac_prev=
3185942a 912ac_dashdash=
ccc6cda3
JA
913for ac_option
914do
ccc6cda3
JA
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
3185942a 917 eval $ac_prev=\$ac_option
ccc6cda3
JA
918 ac_prev=
919 continue
920 fi
921
3185942a
JA
922 case $ac_option in
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *) ac_optarg=yes ;;
925 esac
ccc6cda3
JA
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
3185942a
JA
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
ccc6cda3
JA
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f73dda09 936 bindir=$ac_optarg ;;
ccc6cda3
JA
937
938 -build | --build | --buil | --bui | --bu)
f73dda09 939 ac_prev=build_alias ;;
ccc6cda3 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f73dda09 941 build_alias=$ac_optarg ;;
ccc6cda3
JA
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f73dda09
JA
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
ccc6cda3 952
3185942a 953 -datadir | --datadir | --datadi | --datad)
ccc6cda3 954 ac_prev=datadir ;;
3185942a 955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f73dda09 956 datadir=$ac_optarg ;;
ccc6cda3 957
3185942a
JA
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
ccc6cda3 965 -disable-* | --disable-*)
3185942a 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ccc6cda3 967 # Reject names that are not valid shell variable names.
3185942a
JA
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
f73dda09 970 { (exit 1); exit 1; }; }
3185942a
JA
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
ccc6cda3
JA
991
992 -enable-* | --enable-*)
3185942a 993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ccc6cda3 994 # Reject names that are not valid shell variable names.
3185942a
JA
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
f73dda09 997 { (exit 1); exit 1; }; }
3185942a
JA
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
ccc6cda3 1006 esac
3185942a 1007 eval enable_$ac_useropt=\$ac_optarg ;;
ccc6cda3
JA
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
f73dda09 1016 exec_prefix=$ac_optarg ;;
ccc6cda3
JA
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
f73dda09
JA
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
ccc6cda3
JA
1028
1029 -host | --host | --hos | --ho)
f73dda09 1030 ac_prev=host_alias ;;
ccc6cda3 1031 -host=* | --host=* | --hos=* | --ho=*)
f73dda09 1032 host_alias=$ac_optarg ;;
ccc6cda3 1033
3185942a
JA
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
ccc6cda3
JA
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
f73dda09 1045 includedir=$ac_optarg ;;
ccc6cda3
JA
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f73dda09 1050 infodir=$ac_optarg ;;
ccc6cda3
JA
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f73dda09 1055 libdir=$ac_optarg ;;
ccc6cda3
JA
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
f73dda09 1062 libexecdir=$ac_optarg ;;
ccc6cda3 1063
3185942a
JA
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
ccc6cda3 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
3185942a 1070 | --localstate | --localstat | --localsta | --localst | --locals)
ccc6cda3
JA
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3185942a 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f73dda09 1074 localstatedir=$ac_optarg ;;
ccc6cda3
JA
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f73dda09 1079 mandir=$ac_optarg ;;
ccc6cda3
JA
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b80f6443 1086 | --no-cr | --no-c | -n)
ccc6cda3
JA
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f73dda09 1100 oldincludedir=$ac_optarg ;;
ccc6cda3
JA
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f73dda09 1105 prefix=$ac_optarg ;;
ccc6cda3
JA
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f73dda09 1112 program_prefix=$ac_optarg ;;
ccc6cda3
JA
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f73dda09 1119 program_suffix=$ac_optarg ;;
ccc6cda3
JA
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
f73dda09 1136 program_transform_name=$ac_optarg ;;
ccc6cda3 1137
3185942a
JA
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
ccc6cda3
JA
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
f73dda09 1156 sbindir=$ac_optarg ;;
ccc6cda3
JA
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
f73dda09 1167 sharedstatedir=$ac_optarg ;;
ccc6cda3
JA
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
f73dda09 1172 site=$ac_optarg ;;
ccc6cda3
JA
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f73dda09 1177 srcdir=$ac_optarg ;;
ccc6cda3
JA
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f73dda09 1184 sysconfdir=$ac_optarg ;;
ccc6cda3
JA
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
f73dda09 1187 ac_prev=target_alias ;;
ccc6cda3 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f73dda09 1189 target_alias=$ac_optarg ;;
ccc6cda3
JA
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
f73dda09
JA
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
ccc6cda3
JA
1196
1197 -with-* | --with-*)
3185942a 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ccc6cda3 1199 # Reject names that are not valid shell variable names.
3185942a
JA
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
f73dda09 1202 { (exit 1); exit 1; }; }
3185942a
JA
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207"with_$ac_useropt"
1208"*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
ccc6cda3 1211 esac
3185942a 1212 eval with_$ac_useropt=\$ac_optarg ;;
ccc6cda3
JA
1213
1214 -without-* | --without-*)
3185942a 1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ccc6cda3 1216 # Reject names that are not valid shell variable names.
3185942a
JA
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
f73dda09 1219 { (exit 1); exit 1; }; }
3185942a
JA
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
ccc6cda3
JA
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f73dda09 1240 x_includes=$ac_optarg ;;
ccc6cda3
JA
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f73dda09 1247 x_libraries=$ac_optarg ;;
ccc6cda3 1248
3185942a 1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
f73dda09
JA
1250Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
ccc6cda3
JA
1252 ;;
1253
f73dda09
JA
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
3185942a 1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
f73dda09 1259 { (exit 1); exit 1; }; }
3185942a 1260 eval $ac_envvar=\$ac_optarg
f73dda09
JA
1261 export $ac_envvar ;;
1262
ccc6cda3 1263 *)
f73dda09 1264 # FIXME: should be removed in autoconf 3.0.
3185942a 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
f73dda09 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
3185942a 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f73dda09 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ccc6cda3
JA
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
f73dda09 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
3185942a 1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
f73dda09 1277 { (exit 1); exit 1; }; }
ccc6cda3 1278fi
ccc6cda3 1279
3185942a
JA
1280if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
f73dda09 1286 esac
3185942a 1287fi
ccc6cda3 1288
3185942a
JA
1289# Check all directory arguments for consistency.
1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
ccc6cda3 1294do
3185942a
JA
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
f73dda09 1297 case $ac_val in
3185942a
JA
1298 */ )
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
ccc6cda3 1301 esac
3185942a
JA
1302 # Be sure to have absolute directory names.
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
ccc6cda3
JA
1309done
1310
f73dda09
JA
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
b80f6443 1313# FIXME: To remove some day.
f73dda09
JA
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
b80f6443 1318# FIXME: To remove some day.
f73dda09
JA
1319if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
3185942a 1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
f73dda09
JA
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327fi
ccc6cda3 1328
f73dda09
JA
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
ccc6cda3 1331
f73dda09 1332test "$silent" = yes && exec 6>/dev/null
ccc6cda3 1333
b80f6443 1334
3185942a
JA
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1343
1344
ccc6cda3
JA
1345# Find the source files, if location was not specified.
1346if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
3185942a
JA
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354$as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
ccc6cda3 1372 srcdir=$ac_confdir
3185942a 1373 if test ! -r "$srcdir/$ac_unique_file"; then
ccc6cda3
JA
1374 srcdir=..
1375 fi
1376else
1377 ac_srcdir_defaulted=no
1378fi
3185942a
JA
1379if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f73dda09 1382 { (exit 1); exit 1; }; }
ccc6cda3 1383fi
3185942a
JA
1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
0628567a 1387 { (exit 1); exit 1; }; }
3185942a
JA
1388 pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
ccc6cda3 1405
f73dda09
JA
1406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
b80f6443 1412 cat <<_ACEOF
3185942a 1413\`configure' configures bash 4.0-rc1 to adapt to many kinds of systems.
ccc6cda3 1414
f73dda09 1415Usage: $0 [OPTION]... [VAR=VALUE]...
ccc6cda3 1416
f73dda09
JA
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
ccc6cda3 1421
f73dda09
JA
1422Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
ccc6cda3 1432
f73dda09
JA
1433Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
3185942a 1435 [$ac_default_prefix]
f73dda09 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
3185942a 1437 [PREFIX]
ccc6cda3 1438
f73dda09
JA
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
ccc6cda3 1443
f73dda09 1444For better control, use the options below.
ccc6cda3 1445
f73dda09 1446Fine tuning of the installation directories:
3185942a
JA
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/bash]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
b80f6443 1466_ACEOF
f73dda09 1467
b80f6443 1468 cat <<\_ACEOF
f73dda09
JA
1469
1470System types:
1471 --build=BUILD configure for building on BUILD [guessed]
b80f6443
JA
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
ccc6cda3 1474fi
ccc6cda3 1475
f73dda09
JA
1476if test -n "$ac_init_help"; then
1477 case $ac_init_help in
3185942a 1478 short | recursive ) echo "Configuration of bash 4.0-rc1:";;
f73dda09 1479 esac
b80f6443 1480 cat <<\_ACEOF
ccc6cda3 1481
f73dda09 1482Optional Features:
3185942a 1483 --disable-option-checking ignore unrecognized --enable/--with options
f73dda09
JA
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7117c2d2
JA
1486 --enable-minimal-config a minimal sh-like configuration
1487 --enable-alias enable shell aliases
1488 --enable-arith-for-command
1489 enable arithmetic for command
1490 --enable-array-variables
1491 include shell array variables
1492 --enable-bang-history turn on csh-style history substitution
1493 --enable-brace-expansion
1494 include brace expansion
3185942a
JA
1495 --enable-casemod-attributes
1496 include case-modifying variable attributes
1497 --enable-casemod-expansions
1498 include case-modifying word expansions
7117c2d2
JA
1499 --enable-command-timing enable the time reserved word and command timing
1500 --enable-cond-command enable the conditional command
3185942a 1501 --enable-cond-regexp enable extended regular expression matching in
b80f6443 1502 conditional commands
3185942a
JA
1503 --enable-coprocesses enable coprocess support and the coproc reserved
1504 word
b80f6443 1505 --enable-debugger enable support for bash debugger
7117c2d2
JA
1506 --enable-directory-stack
1507 enable builtins pushd/popd/dirs
1508 --enable-disabled-builtins
1509 allow disabled builtins to still be invoked
1510 --enable-dparen-arithmetic
1511 include ((...)) command
1512 --enable-extended-glob include ksh-style extended pattern matching
1513 --enable-help-builtin include the help builtin
1514 --enable-history turn on command history
1515 --enable-job-control enable job control features
b80f6443 1516 --enable-multibyte enable multibyte characters if OS supports them
7117c2d2
JA
1517 --enable-net-redirections
1518 enable /dev/tcp/host/port redirection
1519 --enable-process-substitution
1520 enable process substitution
1521 --enable-progcomp enable programmable completion and the complete
1522 builtin
1523 --enable-prompt-string-decoding
1524 turn on escape character decoding in prompts
1525 --enable-readline turn on command line editing
1526 --enable-restricted enable a restricted shell
1527 --enable-select include select command
1528 --enable-separate-helpfiles
1529 use external files for help builtin documentation
95732b49
JA
1530 --enable-single-help-strings
1531 store help documentation as a single string to ease
1532 translation
1533 --enable-strict-posix-default
1534 configure bash to be posix-conformant by default
7117c2d2
JA
1535 --enable-usg-echo-default
1536 a synonym for --enable-xpg-echo-default
1537 --enable-xpg-echo-default
1538 make the echo builtin expand escape sequences by
1539 default
1540 --enable-mem-scramble scramble memory on calls to malloc and free
1541 --enable-profiling allow profiling with gprof
1542 --enable-static-link link bash statically, for use as a root shell
f73dda09 1543 --disable-largefile omit support for large files
b80f6443
JA
1544 --disable-nls do not use Native Language Support
1545 --disable-rpath do not hardcode runtime library paths
f73dda09
JA
1546
1547Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b80f6443 1550 --with-lispdir override the default lisp directory
7117c2d2
JA
1551 --with-afs if you are running AFS
1552 --with-bash-malloc use the Bash version of malloc
1553 --with-curses use the curses library instead of the termcap
1554 library
1555 --with-gnu-malloc synonym for --with-bash-malloc
1556 --with-installed-readline
1557 use a version of the readline library that is
1558 already installed
1559 --with-purecov configure to postprocess with pure coverage
1560 --with-purify configure to postprocess with purify
b80f6443
JA
1561 --with-gnu-ld assume the C compiler uses GNU ld default=no
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-included-gettext use the GNU gettext library included here
1565 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1566 --without-libintl-prefix don't search for libintl in includedir and libdir
f73dda09
JA
1567
1568Some influential environment variables:
b80f6443
JA
1569 DEBUGGER_START_FILE
1570 location of bash debugger initialization file
f73dda09
JA
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
3185942a
JA
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
f73dda09 1578 CPP C preprocessor
3185942a
JA
1579 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1580 the first program found out of: `bison -y', `byacc', `yacc'.
1581 YFLAGS The list of arguments that will be passed by default to $YACC.
1582 This script will default YFLAGS to the empty string to avoid a
1583 default value of `-d' given by some make applications.
f73dda09
JA
1584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
1588Report bugs to <bug-bash@gnu.org>.
b80f6443 1589_ACEOF
3185942a 1590ac_status=$?
f73dda09
JA
1591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
b80f6443 1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
3185942a
JA
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
b80f6443
JA
1599 ac_builddir=.
1600
3185942a
JA
1601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
ccc6cda3 1616
b80f6443 1617case $srcdir in
3185942a 1618 .) # We are building in place.
b80f6443 1619 ac_srcdir=.
3185942a
JA
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
b80f6443 1623 ac_srcdir=$srcdir$ac_dir_suffix;
3185942a
JA
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0628567a 1630esac
3185942a
JA
1631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
f73dda09 1641 else
3185942a
JA
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
f73dda09
JA
1645 done
1646fi
ccc6cda3 1647
3185942a 1648test -n "$ac_init_help" && exit $ac_status
f73dda09 1649if $ac_init_version; then
b80f6443 1650 cat <<\_ACEOF
3185942a
JA
1651bash configure 4.0-rc1
1652generated by GNU Autoconf 2.63
ccc6cda3 1653
3185942a
JA
1654Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
f73dda09
JA
1656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
b80f6443 1658_ACEOF
3185942a 1659 exit
f73dda09 1660fi
3185942a 1661cat >config.log <<_ACEOF
f73dda09
JA
1662This file contains any messages produced by compilers while
1663running configure, to aid debugging if configure makes a mistake.
ccc6cda3 1664
3185942a
JA
1665It was created by bash $as_me 4.0-rc1, which was
1666generated by GNU Autoconf 2.63. Invocation command line was
ccc6cda3 1667
f73dda09 1668 $ $0 $@
bb70624e 1669
b80f6443 1670_ACEOF
3185942a 1671exec 5>>config.log
f73dda09
JA
1672{
1673cat <<_ASUNAME
b80f6443
JA
1674## --------- ##
1675## Platform. ##
1676## --------- ##
f73dda09
JA
1677
1678hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683
1684/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686
1687/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3185942a 1690/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
f73dda09
JA
1691/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694
f73dda09 1695_ASUNAME
b80f6443
JA
1696
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
3185942a 1702 $as_echo "PATH: $as_dir"
b80f6443 1703done
3185942a 1704IFS=$as_save_IFS
b80f6443 1705
f73dda09
JA
1706} >&5
1707
b80f6443
JA
1708cat >&5 <<_ACEOF
1709
1710
1711## ----------- ##
1712## Core tests. ##
1713## ----------- ##
1714
1715_ACEOF
f73dda09 1716
f73dda09
JA
1717
1718# Keep a trace of the command line.
1719# Strip out --no-create and --no-recursion so they do not pile up.
0628567a 1720# Strip out --silent because we don't want to record it for future runs.
f73dda09 1721# Also quote any args containing shell meta-characters.
0628567a 1722# Make two passes to allow for proper duplicate-argument suppression.
f73dda09 1723ac_configure_args=
0628567a
JA
1724ac_configure_args0=
1725ac_configure_args1=
0628567a
JA
1726ac_must_keep_next=false
1727for ac_pass in 1 2
f73dda09 1728do
0628567a
JA
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1735 continue ;;
3185942a
JA
1736 *\'*)
1737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
0628567a
JA
1738 esac
1739 case $ac_pass in
1740 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 2)
1742 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true; then
1744 ac_must_keep_next=false # Got value, back to normal.
1745 else
1746 case $ac_arg in
1747 *=* | --config-cache | -C | -disable-* | --disable-* \
1748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1750 | -with-* | --with-* | -without-* | --without-* | --x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753 esac
1754 ;;
1755 -* ) ac_must_keep_next=true ;;
1756 esac
1757 fi
3185942a 1758 ac_configure_args="$ac_configure_args '$ac_arg'"
0628567a
JA
1759 ;;
1760 esac
1761 done
f73dda09 1762done
0628567a
JA
1763$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1764$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f73dda09
JA
1765
1766# When interrupted or exit'd, cleanup temporary files, and complete
1767# config.log. We remove comments because anyway the quotes in there
1768# would cause problems or look ugly.
3185942a
JA
1769# WARNING: Use '\'' to represent an apostrophe within the trap.
1770# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f73dda09
JA
1771trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
b80f6443
JA
1773 {
1774 echo
0628567a 1775
b80f6443
JA
1776 cat <<\_ASBOX
1777## ---------------- ##
1778## Cache variables. ##
1779## ---------------- ##
1780_ASBOX
1781 echo
1782 # The following way of writing the cache mishandles newlines in values,
3185942a
JA
1783(
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in #(
1787 *${as_nl}*)
1788 case $ac_var in #(
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1790$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1791 esac
1792 case $ac_var in #(
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1796 esac ;;
1797 esac
1798 done
f73dda09 1799 (set) 2>&1 |
3185942a
JA
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
f73dda09 1802 sed -n \
3185942a
JA
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1805 ;; #(
f73dda09 1806 *)
3185942a 1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f73dda09 1808 ;;
3185942a
JA
1809 esac |
1810 sort
1811)
b80f6443 1812 echo
0628567a
JA
1813
1814 cat <<\_ASBOX
1815## ----------------- ##
1816## Output variables. ##
1817## ----------------- ##
1818_ASBOX
1819 echo
1820 for ac_var in $ac_subst_vars
1821 do
3185942a
JA
1822 eval ac_val=\$$ac_var
1823 case $ac_val in
1824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 esac
1826 $as_echo "$ac_var='\''$ac_val'\''"
0628567a
JA
1827 done | sort
1828 echo
1829
1830 if test -n "$ac_subst_files"; then
1831 cat <<\_ASBOX
3185942a
JA
1832## ------------------- ##
1833## File substitutions. ##
1834## ------------------- ##
0628567a
JA
1835_ASBOX
1836 echo
1837 for ac_var in $ac_subst_files
1838 do
3185942a
JA
1839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 $as_echo "$ac_var='\''$ac_val'\''"
0628567a
JA
1844 done | sort
1845 echo
1846 fi
1847
b80f6443
JA
1848 if test -s confdefs.h; then
1849 cat <<\_ASBOX
1850## ----------- ##
1851## confdefs.h. ##
1852## ----------- ##
1853_ASBOX
1854 echo
3185942a 1855 cat confdefs.h
b80f6443
JA
1856 echo
1857 fi
1858 test "$ac_signal" != 0 &&
3185942a
JA
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
b80f6443 1861 } >&5
3185942a
JA
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f73dda09 1864 exit $exit_status
3185942a 1865' 0
f73dda09
JA
1866for ac_signal in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1868done
1869ac_signal=0
1870
1871# confdefs.h avoids OS command line length limits that DEFS can exceed.
3185942a 1872rm -f -r conftest* confdefs.h
f73dda09 1873
b80f6443
JA
1874# Predefined preprocessor variables.
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_NAME "$PACKAGE_NAME"
1878_ACEOF
1879
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_VERSION "$PACKAGE_VERSION"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_STRING "$PACKAGE_STRING"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1898_ACEOF
1899
1900
f73dda09 1901# Let the site file select an alternate cache file if it wants to.
3185942a
JA
1902# Prefer an explicitly selected file to automatically selected ones.
1903ac_site_file1=NONE
1904ac_site_file2=NONE
1905if test -n "$CONFIG_SITE"; then
1906 ac_site_file1=$CONFIG_SITE
1907elif test "x$prefix" != xNONE; then
1908 ac_site_file1=$prefix/share/config.site
1909 ac_site_file2=$prefix/etc/config.site
1910else
1911 ac_site_file1=$ac_default_prefix/share/config.site
1912 ac_site_file2=$ac_default_prefix/etc/config.site
1913fi
1914for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915do
1916 test "x$ac_site_file" = xNONE && continue
f73dda09 1917 if test -r "$ac_site_file"; then
3185942a
JA
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b80f6443 1920 sed 's/^/| /' "$ac_site_file" >&5
f73dda09
JA
1921 . "$ac_site_file"
1922 fi
1923done
1924
1925if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
3185942a
JA
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930$as_echo "$as_me: loading cache $cache_file" >&6;}
f73dda09 1931 case $cache_file in
3185942a
JA
1932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933 *) . "./$cache_file";;
f73dda09
JA
1934 esac
1935 fi
1936else
3185942a
JA
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938$as_echo "$as_me: creating cache $cache_file" >&6;}
f73dda09
JA
1939 >$cache_file
1940fi
1941
3185942a
JA
1942ac_header_list="$ac_header_list sys/time.h"
1943ac_header_list="$ac_header_list unistd.h"
1944ac_func_list="$ac_func_list alarm"
1945ac_func_list="$ac_func_list fpurge"
1946ac_func_list="$ac_func_list __fpurge"
f73dda09
JA
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
3185942a 1950for ac_var in $ac_precious_vars; do
f73dda09
JA
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
3185942a
JA
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
f73dda09
JA
1955 case $ac_old_set,$ac_new_set in
1956 set,)
3185942a
JA
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
f73dda09
JA
1959 ac_cache_corrupted=: ;;
1960 ,set)
3185942a
JA
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
f73dda09
JA
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
3185942a
JA
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w=`echo x $ac_old_val`
1969 ac_new_val_w=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted=:
1974 else
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\$ac_old_val
1978 fi
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
f73dda09
JA
1983 fi;;
1984 esac
b80f6443 1985 # Pass precious variables to config.status.
f73dda09
JA
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
3185942a 1988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b80f6443
JA
1989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f73dda09
JA
1994 esac
1995 fi
1996done
1997if $ac_cache_corrupted; then
3185942a
JA
1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
f73dda09
JA
2004 { (exit 1); exit 1; }; }
2005fi
2006
b80f6443
JA
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
3185942a
JA
2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
b80f6443
JA
2036
2037
2038
0628567a 2039
b80f6443 2040
f73dda09
JA
2041
2042ac_aux_dir=
3185942a
JA
2043for ac_dir in ./support "$srcdir"/./support; do
2044 if test -f "$ac_dir/install-sh"; then
f73dda09
JA
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
3185942a 2048 elif test -f "$ac_dir/install.sh"; then
f73dda09
JA
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
3185942a 2052 elif test -f "$ac_dir/shtool"; then
f73dda09
JA
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057done
2058if test -z "$ac_aux_dir"; then
3185942a
JA
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&5
2060$as_echo "$as_me: error: cannot find install-sh or install.sh in ./support \"$srcdir\"/./support" >&2;}
f73dda09
JA
2061 { (exit 1); exit 1; }; }
2062fi
f73dda09 2063
3185942a
JA
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
f73dda09 2072
3185942a 2073ac_config_headers="$ac_config_headers config.h"
b80f6443 2074
3185942a
JA
2075
2076BASHVERS=4.0
2077RELSTATUS=rc1
7117c2d2
JA
2078
2079case "$RELSTATUS" in
3185942a 2080alp*|bet*|dev*|rc*|maint*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
7117c2d2
JA
2081*) DEBUG= MALLOC_DEBUG= ;;
2082esac
f73dda09
JA
2083
2084# Make sure we can run config.sub.
3185942a
JA
2085$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2086 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
f73dda09
JA
2088 { (exit 1); exit 1; }; }
2089
3185942a
JA
2090{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2091$as_echo_n "checking build system type... " >&6; }
f73dda09 2092if test "${ac_cv_build+set}" = set; then
3185942a
JA
2093 $as_echo_n "(cached) " >&6
2094else
2095 ac_build_alias=$build_alias
2096test "x$ac_build_alias" = x &&
2097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098test "x$ac_build_alias" = x &&
2099 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
f73dda09 2101 { (exit 1); exit 1; }; }
3185942a
JA
2102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
f73dda09
JA
2105 { (exit 1); exit 1; }; }
2106
2107fi
3185942a
JA
2108{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109$as_echo "$ac_cv_build" >&6; }
2110case $ac_cv_build in
2111*-*-*) ;;
2112*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2114 { (exit 1); exit 1; }; };;
2115esac
f73dda09 2116build=$ac_cv_build
3185942a
JA
2117ac_save_IFS=$IFS; IFS='-'
2118set x $ac_cv_build
2119shift
2120build_cpu=$1
2121build_vendor=$2
2122shift; shift
2123# Remember, the first character of IFS is used to create $*,
2124# except with old shells:
2125build_os=$*
2126IFS=$ac_save_IFS
2127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2128
2129
2130{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2131$as_echo_n "checking host system type... " >&6; }
f73dda09 2132if test "${ac_cv_host+set}" = set; then
3185942a
JA
2133 $as_echo_n "(cached) " >&6
2134else
2135 if test "x$host_alias" = x; then
2136 ac_cv_host=$ac_cv_build
2137else
2138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
f73dda09 2141 { (exit 1); exit 1; }; }
3185942a 2142fi
f73dda09
JA
2143
2144fi
3185942a
JA
2145{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146$as_echo "$ac_cv_host" >&6; }
2147case $ac_cv_host in
2148*-*-*) ;;
2149*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2151 { (exit 1); exit 1; }; };;
2152esac
f73dda09 2153host=$ac_cv_host
3185942a
JA
2154ac_save_IFS=$IFS; IFS='-'
2155set x $ac_cv_host
2156shift
2157host_cpu=$1
2158host_vendor=$2
2159shift; shift
2160# Remember, the first character of IFS is used to create $*,
2161# except with old shells:
2162host_os=$*
2163IFS=$ac_save_IFS
2164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f73dda09 2165
b80f6443
JA
2166
2167
f73dda09
JA
2168opt_bash_malloc=yes
2169opt_purify=no
2170opt_purecov=no
2171opt_afs=no
2172opt_curses=no
2173opt_with_installed_readline=no
2174
2175#htmldir=
2176
2177case "${host_cpu}-${host_os}" in
2178alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
2179*[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
2180*-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
2181sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
2182sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
bb70624e
JA
2183mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
2184m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
2185sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
95732b49 2186#*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
7117c2d2 2187#*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
f73dda09 2188*-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
bb70624e
JA
2189*-aix*) opt_bash_malloc=no ;; # AIX machines
2190*-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
28ef6c31
JA
2191*-macos*) opt_bash_malloc=no ;; # Apple MacOS X
2192*-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
2193*-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
bb70624e 2194*-dgux*) opt_bash_malloc=no ;; # DG/UX machines
95732b49 2195*-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
bb70624e
JA
2196*-machten4) opt_bash_malloc=no ;; # MachTen 4.x
2197*-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
2198*-beos*) opt_bash_malloc=no ;; # they say it's suitable
28ef6c31
JA
2199*-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
2200*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
ccc6cda3
JA
2201esac
2202
7117c2d2
JA
2203# memory scrambling on free()
2204case "${host_os}" in
2205sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
2206*) opt_memscramble=yes ;;
2207esac
2208
b80f6443 2209
3185942a 2210# Check whether --with-lispdir was given.
b80f6443 2211if test "${with_lispdir+set}" = set; then
3185942a
JA
2212 withval=$with_lispdir; lispdir="$withval"
2213 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2214$as_echo_n "checking where .elc files should go... " >&6; }
2215 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
2216$as_echo "$lispdir" >&6; }
b80f6443
JA
2217else
2218
2219 # If set to t, that means we are running in a shell under Emacs.
2220 # If you have an Emacs named "t", then use the full path.
2221 test x"$EMACS" = xt && EMACS=
2222 for ac_prog in emacs xemacs
2223do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225set dummy $ac_prog; ac_word=$2
3185942a
JA
2226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 2228if test "${ac_cv_prog_EMACS+set}" = set; then
3185942a 2229 $as_echo_n "(cached) " >&6
b80f6443
JA
2230else
2231 if test -n "$EMACS"; then
2232 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2241 ac_cv_prog_EMACS="$ac_prog"
3185942a 2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2243 break 2
2244 fi
2245done
2246done
3185942a 2247IFS=$as_save_IFS
b80f6443
JA
2248
2249fi
2250fi
2251EMACS=$ac_cv_prog_EMACS
2252if test -n "$EMACS"; then
3185942a
JA
2253 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
2254$as_echo "$EMACS" >&6; }
b80f6443 2255else
3185942a
JA
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257$as_echo "no" >&6; }
b80f6443
JA
2258fi
2259
3185942a 2260
b80f6443
JA
2261 test -n "$EMACS" && break
2262done
2263test -n "$EMACS" || EMACS="no"
2264
2265 if test $EMACS != "no"; then
2266 if test x${lispdir+set} != xset; then
3185942a
JA
2267 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
2268$as_echo_n "checking where .elc files should go... " >&6; }
b80f6443 2269if test "${am_cv_lispdir+set}" = set; then
3185942a 2270 $as_echo_n "(cached) " >&6
b80f6443
JA
2271else
2272 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;}'`
2273 if test -z "$am_cv_lispdir"; then
2274 am_cv_lispdir='${datadir}/emacs/site-lisp'
2275 fi
2276
2277fi
3185942a
JA
2278{ $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
2279$as_echo "$am_cv_lispdir" >&6; }
b80f6443
JA
2280 lispdir="$am_cv_lispdir"
2281 fi
2282 fi
2283
3185942a
JA
2284fi
2285
b80f6443
JA
2286
2287
2288
2289
2290
3185942a 2291# Check whether --with-afs was given.
d166f048 2292if test "${with_afs+set}" = set; then
3185942a
JA
2293 withval=$with_afs; opt_afs=$withval
2294fi
d166f048 2295
3185942a
JA
2296
2297# Check whether --with-bash-malloc was given.
bb70624e 2298if test "${with_bash_malloc+set}" = set; then
3185942a
JA
2299 withval=$with_bash_malloc; opt_bash_malloc=$withval
2300fi
bb70624e 2301
3185942a
JA
2302
2303# Check whether --with-curses was given.
d166f048 2304if test "${with_curses+set}" = set; then
3185942a
JA
2305 withval=$with_curses; opt_curses=$withval
2306fi
ccc6cda3 2307
3185942a
JA
2308
2309# Check whether --with-gnu-malloc was given.
d166f048 2310if test "${with_gnu_malloc+set}" = set; then
3185942a
JA
2311 withval=$with_gnu_malloc; opt_bash_malloc=$withval
2312fi
d166f048 2313
3185942a
JA
2314
2315# Check whether --with-installed-readline was given.
b72432fd 2316if test "${with_installed_readline+set}" = set; then
3185942a
JA
2317 withval=$with_installed_readline; opt_with_installed_readline=$withval
2318fi
b72432fd 2319
3185942a
JA
2320
2321# Check whether --with-purecov was given.
d166f048 2322if test "${with_purecov+set}" = set; then
3185942a
JA
2323 withval=$with_purecov; opt_purecov=$withval
2324fi
d166f048 2325
3185942a
JA
2326
2327# Check whether --with-purify was given.
ccc6cda3 2328if test "${with_purify+set}" = set; then
3185942a
JA
2329 withval=$with_purify; opt_purify=$withval
2330fi
2331
ccc6cda3 2332
f73dda09 2333if test "$opt_bash_malloc" = yes; then
d166f048
JA
2334 MALLOC_TARGET=malloc
2335 MALLOC_SRC=malloc.c
f73dda09
JA
2336
2337 MALLOC_LIB='-lmalloc'
2338 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
2339 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
2340 MALLOC_DEP='$(MALLOC_LIBRARY)'
2341
b80f6443 2342 cat >>confdefs.h <<\_ACEOF
bb70624e 2343#define USING_BASH_MALLOC 1
b80f6443 2344_ACEOF
bb70624e 2345
ccc6cda3 2346else
f73dda09
JA
2347 MALLOC_LIB=
2348 MALLOC_LIBRARY=
2349 MALLOC_LDFLAGS=
2350 MALLOC_DEP=
ccc6cda3
JA
2351fi
2352
2353if test "$opt_purify" = yes; then
d166f048 2354 PURIFY="purify "
b80f6443 2355 cat >>confdefs.h <<\_ACEOF
7117c2d2 2356#define DISABLE_MALLOC_WRAPPERS 1
b80f6443 2357_ACEOF
7117c2d2 2358
ccc6cda3
JA
2359else
2360 PURIFY=
2361fi
2362
d166f048
JA
2363if test "$opt_purecov" = yes; then
2364 PURIFY="${PURIFY}purecov"
2365fi
2366
ccc6cda3 2367if test "$opt_afs" = yes; then
b80f6443 2368 cat >>confdefs.h <<\_ACEOF
ccc6cda3 2369#define AFS 1
b80f6443 2370_ACEOF
ccc6cda3
JA
2371
2372fi
2373
d166f048
JA
2374if test "$opt_curses" = yes; then
2375 prefer_curses=yes
2376fi
2377
b80f6443 2378if test -z "${DEBUGGER_START_FILE}"; then
3185942a 2379 DEBUGGER_START_FILE='${datadir}/bashdb/bashdb-main.inc'
b80f6443
JA
2380fi
2381
ccc6cda3
JA
2382opt_minimal_config=no
2383
2384opt_job_control=yes
2385opt_alias=yes
2386opt_readline=yes
2387opt_history=yes
2388opt_bang_history=yes
2389opt_dirstack=yes
2390opt_restricted=yes
2391opt_process_subst=yes
2392opt_prompt_decoding=yes
2393opt_select=yes
2394opt_help=yes
2395opt_array_variables=yes
2396opt_dparen_arith=yes
cce855bc 2397opt_extended_glob=yes
ccc6cda3
JA
2398opt_brace_expansion=yes
2399opt_disabled_builtins=no
2400opt_command_timing=yes
bb70624e 2401opt_xpg_echo=no
95732b49 2402opt_strict_posix=no
cce855bc 2403opt_cond_command=yes
b80f6443 2404opt_cond_regexp=yes
3185942a 2405opt_coproc=yes
bb70624e
JA
2406opt_arith_for_command=yes
2407opt_net_redirs=yes
2408opt_progcomp=yes
7117c2d2 2409opt_separate_help=no
b80f6443
JA
2410opt_multibyte=yes
2411opt_debugger=yes
95732b49 2412opt_single_longdoc_strings=yes
3185942a
JA
2413opt_casemod_attrs=yes
2414opt_casemod_expansions=yes
cce855bc
JA
2415
2416opt_static_link=no
2417opt_profiling=no
ccc6cda3 2418
3185942a 2419# Check whether --enable-minimal-config was given.
ccc6cda3 2420if test "${enable_minimal_config+set}" = set; then
3185942a
JA
2421 enableval=$enable_minimal_config; opt_minimal_config=$enableval
2422fi
2423
ccc6cda3
JA
2424
2425if test $opt_minimal_config = yes; then
2426 opt_job_control=no opt_alias=no opt_readline=no
2427 opt_history=no opt_bang_history=no opt_dirstack=no
2428 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
2429 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
2430 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
bb70624e 2431 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
7117c2d2 2432 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
3185942a
JA
2433 opt_multibyte=yes opt_cond_regexp=no opt_coproc=no
2434 opt_casemod_attrs=no opt_casemod_expansions=no
ccc6cda3
JA
2435fi
2436
3185942a 2437# Check whether --enable-alias was given.
ccc6cda3 2438if test "${enable_alias+set}" = set; then
3185942a
JA
2439 enableval=$enable_alias; opt_alias=$enableval
2440fi
2441
2442# Check whether --enable-arith-for-command was given.
bb70624e 2443if test "${enable_arith_for_command+set}" = set; then
3185942a
JA
2444 enableval=$enable_arith_for_command; opt_arith_for_command=$enableval
2445fi
2446
2447# Check whether --enable-array-variables was given.
d166f048 2448if test "${enable_array_variables+set}" = set; then
3185942a
JA
2449 enableval=$enable_array_variables; opt_array_variables=$enableval
2450fi
2451
2452# Check whether --enable-bang-history was given.
ccc6cda3 2453if test "${enable_bang_history+set}" = set; then
3185942a
JA
2454 enableval=$enable_bang_history; opt_bang_history=$enableval
2455fi
2456
2457# Check whether --enable-brace-expansion was given.
d166f048 2458if test "${enable_brace_expansion+set}" = set; then
3185942a
JA
2459 enableval=$enable_brace_expansion; opt_brace_expansion=$enableval
2460fi
2461
2462# Check whether --enable-casemod-attributes was given.
2463if test "${enable_casemod_attributes+set}" = set; then
2464 enableval=$enable_casemod_attributes; opt_casemod_attrs=$enableval
2465fi
2466
2467# Check whether --enable-casemod-expansions was given.
2468if test "${enable_casemod_expansions+set}" = set; then
2469 enableval=$enable_casemod_expansions; opt_casemod_expansions=$enableval
2470fi
2471
2472# Check whether --enable-command-timing was given.
d166f048 2473if test "${enable_command_timing+set}" = set; then
3185942a
JA
2474 enableval=$enable_command_timing; opt_command_timing=$enableval
2475fi
2476
2477# Check whether --enable-cond-command was given.
cce855bc 2478if test "${enable_cond_command+set}" = set; then
3185942a
JA
2479 enableval=$enable_cond_command; opt_cond_command=$enableval
2480fi
2481
2482# Check whether --enable-cond-regexp was given.
b80f6443 2483if test "${enable_cond_regexp+set}" = set; then
3185942a
JA
2484 enableval=$enable_cond_regexp; opt_cond_regexp=$enableval
2485fi
2486
2487# Check whether --enable-coprocesses was given.
2488if test "${enable_coprocesses+set}" = set; then
2489 enableval=$enable_coprocesses; opt_coproc=$enableval
2490fi
2491
2492# Check whether --enable-debugger was given.
b80f6443 2493if test "${enable_debugger+set}" = set; then
3185942a
JA
2494 enableval=$enable_debugger; opt_debugger=$enableval
2495fi
2496
2497# Check whether --enable-directory-stack was given.
d166f048 2498if test "${enable_directory_stack+set}" = set; then
3185942a
JA
2499 enableval=$enable_directory_stack; opt_dirstack=$enableval
2500fi
2501
2502# Check whether --enable-disabled-builtins was given.
d166f048 2503if test "${enable_disabled_builtins+set}" = set; then
3185942a
JA
2504 enableval=$enable_disabled_builtins; opt_disabled_builtins=$enableval
2505fi
2506
2507# Check whether --enable-dparen-arithmetic was given.
d166f048 2508if test "${enable_dparen_arithmetic+set}" = set; then
3185942a
JA
2509 enableval=$enable_dparen_arithmetic; opt_dparen_arith=$enableval
2510fi
2511
2512# Check whether --enable-extended-glob was given.
cce855bc 2513if test "${enable_extended_glob+set}" = set; then
3185942a
JA
2514 enableval=$enable_extended_glob; opt_extended_glob=$enableval
2515fi
2516
2517# Check whether --enable-help-builtin was given.
ccc6cda3 2518if test "${enable_help_builtin+set}" = set; then
3185942a
JA
2519 enableval=$enable_help_builtin; opt_help=$enableval
2520fi
2521
2522# Check whether --enable-history was given.
d166f048 2523if test "${enable_history+set}" = set; then
3185942a
JA
2524 enableval=$enable_history; opt_history=$enableval
2525fi
2526
2527# Check whether --enable-job-control was given.
d166f048 2528if test "${enable_job_control+set}" = set; then
3185942a
JA
2529 enableval=$enable_job_control; opt_job_control=$enableval
2530fi
2531
2532# Check whether --enable-multibyte was given.
b80f6443 2533if test "${enable_multibyte+set}" = set; then
3185942a
JA
2534 enableval=$enable_multibyte; opt_multibyte=$enableval
2535fi
2536
2537# Check whether --enable-net-redirections was given.
bb70624e 2538if test "${enable_net_redirections+set}" = set; then
3185942a
JA
2539 enableval=$enable_net_redirections; opt_net_redirs=$enableval
2540fi
2541
2542# Check whether --enable-process-substitution was given.
d166f048 2543if test "${enable_process_substitution+set}" = set; then
3185942a
JA
2544 enableval=$enable_process_substitution; opt_process_subst=$enableval
2545fi
2546
2547# Check whether --enable-progcomp was given.
bb70624e 2548if test "${enable_progcomp+set}" = set; then
3185942a
JA
2549 enableval=$enable_progcomp; opt_progcomp=$enableval
2550fi
2551
2552# Check whether --enable-prompt-string-decoding was given.
d166f048 2553if test "${enable_prompt_string_decoding+set}" = set; then
3185942a
JA
2554 enableval=$enable_prompt_string_decoding; opt_prompt_decoding=$enableval
2555fi
2556
2557# Check whether --enable-readline was given.
d166f048 2558if test "${enable_readline+set}" = set; then
3185942a
JA
2559 enableval=$enable_readline; opt_readline=$enableval
2560fi
2561
2562# Check whether --enable-restricted was given.
d166f048 2563if test "${enable_restricted+set}" = set; then
3185942a
JA
2564 enableval=$enable_restricted; opt_restricted=$enableval
2565fi
2566
2567# Check whether --enable-select was given.
d166f048 2568if test "${enable_select+set}" = set; then
3185942a
JA
2569 enableval=$enable_select; opt_select=$enableval
2570fi
2571
2572# Check whether --enable-separate-helpfiles was given.
7117c2d2 2573if test "${enable_separate_helpfiles+set}" = set; then
3185942a
JA
2574 enableval=$enable_separate_helpfiles; opt_separate_help=$enableval
2575fi
2576
2577# Check whether --enable-single-help-strings was given.
95732b49 2578if test "${enable_single_help_strings+set}" = set; then
3185942a
JA
2579 enableval=$enable_single_help_strings; opt_single_longdoc_strings=$enableval
2580fi
2581
2582# Check whether --enable-strict-posix-default was given.
95732b49 2583if test "${enable_strict_posix_default+set}" = set; then
3185942a
JA
2584 enableval=$enable_strict_posix_default; opt_strict_posix=$enableval
2585fi
2586
2587# Check whether --enable-usg-echo-default was given.
ccc6cda3 2588if test "${enable_usg_echo_default+set}" = set; then
3185942a
JA
2589 enableval=$enable_usg_echo_default; opt_xpg_echo=$enableval
2590fi
2591
2592# Check whether --enable-xpg-echo-default was given.
bb70624e 2593if test "${enable_xpg_echo_default+set}" = set; then
3185942a
JA
2594 enableval=$enable_xpg_echo_default; opt_xpg_echo=$enableval
2595fi
ccc6cda3 2596
3185942a
JA
2597
2598# Check whether --enable-mem-scramble was given.
7117c2d2 2599if test "${enable_mem_scramble+set}" = set; then
3185942a
JA
2600 enableval=$enable_mem_scramble; opt_memscramble=$enableval
2601fi
2602
2603# Check whether --enable-profiling was given.
cce855bc 2604if test "${enable_profiling+set}" = set; then
3185942a
JA
2605 enableval=$enable_profiling; opt_profiling=$enableval
2606fi
2607
2608# Check whether --enable-static-link was given.
cce855bc 2609if test "${enable_static_link+set}" = set; then
3185942a
JA
2610 enableval=$enable_static_link; opt_static_link=$enableval
2611fi
2612
b72432fd 2613
b80f6443
JA
2614
2615
ccc6cda3 2616if test $opt_alias = yes; then
b80f6443 2617cat >>confdefs.h <<\_ACEOF
ccc6cda3 2618#define ALIAS 1
b80f6443 2619_ACEOF
ccc6cda3 2620
ccc6cda3
JA
2621fi
2622if test $opt_dirstack = yes; then
b80f6443 2623cat >>confdefs.h <<\_ACEOF
ccc6cda3 2624#define PUSHD_AND_POPD 1
b80f6443 2625_ACEOF
ccc6cda3
JA
2626
2627fi
2628if test $opt_restricted = yes; then
b80f6443 2629cat >>confdefs.h <<\_ACEOF
ccc6cda3 2630#define RESTRICTED_SHELL 1
b80f6443 2631_ACEOF
ccc6cda3
JA
2632
2633fi
2634if test $opt_process_subst = yes; then
b80f6443 2635cat >>confdefs.h <<\_ACEOF
ccc6cda3 2636#define PROCESS_SUBSTITUTION 1
b80f6443 2637_ACEOF
ccc6cda3
JA
2638
2639fi
2640if test $opt_prompt_decoding = yes; then
b80f6443 2641cat >>confdefs.h <<\_ACEOF
ccc6cda3 2642#define PROMPT_STRING_DECODE 1
b80f6443 2643_ACEOF
ccc6cda3
JA
2644
2645fi
2646if test $opt_select = yes; then
b80f6443 2647cat >>confdefs.h <<\_ACEOF
ccc6cda3 2648#define SELECT_COMMAND 1
b80f6443 2649_ACEOF
ccc6cda3
JA
2650
2651fi
2652if test $opt_help = yes; then
b80f6443 2653cat >>confdefs.h <<\_ACEOF
ccc6cda3 2654#define HELP_BUILTIN 1
b80f6443 2655_ACEOF
ccc6cda3
JA
2656
2657fi
2658if test $opt_array_variables = yes; then
b80f6443 2659cat >>confdefs.h <<\_ACEOF
ccc6cda3 2660#define ARRAY_VARS 1
b80f6443 2661_ACEOF
ccc6cda3
JA
2662
2663fi
2664if test $opt_dparen_arith = yes; then
b80f6443 2665cat >>confdefs.h <<\_ACEOF
ccc6cda3 2666#define DPAREN_ARITHMETIC 1
b80f6443 2667_ACEOF
ccc6cda3
JA
2668
2669fi
2670if test $opt_brace_expansion = yes; then
b80f6443 2671cat >>confdefs.h <<\_ACEOF
ccc6cda3 2672#define BRACE_EXPANSION 1
b80f6443 2673_ACEOF
ccc6cda3
JA
2674
2675fi
2676if test $opt_disabled_builtins = yes; then
b80f6443 2677cat >>confdefs.h <<\_ACEOF
ccc6cda3 2678#define DISABLED_BUILTINS 1
b80f6443 2679_ACEOF
ccc6cda3
JA
2680
2681fi
2682if test $opt_command_timing = yes; then
b80f6443 2683cat >>confdefs.h <<\_ACEOF
ccc6cda3 2684#define COMMAND_TIMING 1
b80f6443 2685_ACEOF
ccc6cda3
JA
2686
2687fi
bb70624e 2688if test $opt_xpg_echo = yes ; then
b80f6443 2689cat >>confdefs.h <<\_ACEOF
bb70624e 2690#define DEFAULT_ECHO_TO_XPG 1
b80f6443 2691_ACEOF
ccc6cda3 2692
95732b49
JA
2693fi
2694if test $opt_strict_posix = yes; then
2695cat >>confdefs.h <<\_ACEOF
2696#define STRICT_POSIX 1
2697_ACEOF
2698
cce855bc
JA
2699fi
2700if test $opt_extended_glob = yes ; then
b80f6443 2701cat >>confdefs.h <<\_ACEOF
cce855bc 2702#define EXTENDED_GLOB 1
b80f6443 2703_ACEOF
cce855bc
JA
2704
2705fi
2706if test $opt_cond_command = yes ; then
b80f6443 2707cat >>confdefs.h <<\_ACEOF
cce855bc 2708#define COND_COMMAND 1
b80f6443
JA
2709_ACEOF
2710
2711fi
2712if test $opt_cond_regexp = yes ; then
2713cat >>confdefs.h <<\_ACEOF
2714#define COND_REGEXP 1
2715_ACEOF
cce855bc 2716
3185942a
JA
2717fi
2718if test $opt_coproc = yes; then
2719cat >>confdefs.h <<\_ACEOF
2720#define COPROCESS_SUPPORT 1
2721_ACEOF
2722
bb70624e
JA
2723fi
2724if test $opt_arith_for_command = yes; then
b80f6443 2725cat >>confdefs.h <<\_ACEOF
bb70624e 2726#define ARITH_FOR_COMMAND 1
b80f6443 2727_ACEOF
bb70624e
JA
2728
2729fi
2730if test $opt_net_redirs = yes; then
b80f6443 2731cat >>confdefs.h <<\_ACEOF
bb70624e 2732#define NETWORK_REDIRECTIONS 1
b80f6443 2733_ACEOF
bb70624e
JA
2734
2735fi
2736if test $opt_progcomp = yes; then
b80f6443 2737cat >>confdefs.h <<\_ACEOF
bb70624e 2738#define PROGRAMMABLE_COMPLETION 1
b80f6443
JA
2739_ACEOF
2740
2741fi
2742if test $opt_multibyte = no; then
2743cat >>confdefs.h <<\_ACEOF
2744#define NO_MULTIBYTE_SUPPORT 1
2745_ACEOF
2746
2747fi
2748if test $opt_debugger = yes; then
2749cat >>confdefs.h <<\_ACEOF
2750#define DEBUGGER 1
2751_ACEOF
bb70624e 2752
3185942a
JA
2753fi
2754if test $opt_casemod_attrs = yes; then
2755cat >>confdefs.h <<\_ACEOF
2756#define CASEMOD_ATTRS 1
2757_ACEOF
2758
2759fi
2760if test $opt_casemod_expansions = yes; then
2761cat >>confdefs.h <<\_ACEOF
2762#define CASEMOD_EXPANSIONS 1
2763_ACEOF
2764
ccc6cda3
JA
2765fi
2766
7117c2d2 2767if test $opt_memscramble = yes; then
b80f6443 2768cat >>confdefs.h <<\_ACEOF
7117c2d2 2769#define MEMSCRAMBLE 1
b80f6443 2770_ACEOF
7117c2d2
JA
2771
2772fi
2773
d166f048
JA
2774if test "$opt_minimal_config" = yes; then
2775 TESTSCRIPT=run-minimal
2776else
2777 TESTSCRIPT=run-all
2778fi
2779
7117c2d2
JA
2780HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2781if test "$opt_separate_help" != no; then
2782 if test "$opt_separate_help" = "yes" ; then
2783 HELPDIR='${datadir}/bash'
2784 else
2785 HELPDIR=$opt_separate_help
2786 fi
2787 HELPDIRDEFINE='-H ${HELPDIR}'
2788 HELPINSTALL='install-help'
2789fi
95732b49
JA
2790HELPSTRINGS=
2791if test "$opt_single_longdoc_strings" != "yes"; then
2792 HELPSTRINGS='-S'
2793fi
2794
7117c2d2 2795
b80f6443
JA
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
f73dda09 2812echo ""
7117c2d2 2813echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
f73dda09 2814echo ""
d166f048 2815
f73dda09
JA
2816ac_ext=c
2817ac_cpp='$CPP $CPPFLAGS'
2818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2823set dummy ${ac_tool_prefix}gcc; ac_word=$2
3185942a
JA
2824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2826if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2827 $as_echo_n "(cached) " >&6
f73dda09
JA
2828else
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2831else
b80f6443
JA
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3185942a 2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2841 break 2
2842 fi
2843done
f73dda09 2844done
3185942a 2845IFS=$as_save_IFS
ccc6cda3 2846
f73dda09
JA
2847fi
2848fi
2849CC=$ac_cv_prog_CC
2850if test -n "$CC"; then
3185942a
JA
2851 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2852$as_echo "$CC" >&6; }
f73dda09 2853else
3185942a
JA
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855$as_echo "no" >&6; }
f73dda09 2856fi
ccc6cda3 2857
3185942a 2858
f73dda09
JA
2859fi
2860if test -z "$ac_cv_prog_CC"; then
2861 ac_ct_CC=$CC
2862 # Extract the first word of "gcc", so it can be a program name with args.
2863set dummy gcc; ac_word=$2
3185942a
JA
2864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2865$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185942a 2867 $as_echo_n "(cached) " >&6
f73dda09
JA
2868else
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2871else
b80f6443
JA
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2879 ac_cv_prog_ac_ct_CC="gcc"
3185942a 2880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2881 break 2
2882 fi
2883done
f73dda09 2884done
3185942a 2885IFS=$as_save_IFS
ccc6cda3 2886
f73dda09
JA
2887fi
2888fi
2889ac_ct_CC=$ac_cv_prog_ac_ct_CC
2890if test -n "$ac_ct_CC"; then
3185942a
JA
2891 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892$as_echo "$ac_ct_CC" >&6; }
f73dda09 2893else
3185942a
JA
2894 { $as_echo "$as_me:$LINENO: result: no" >&5
2895$as_echo "no" >&6; }
f73dda09 2896fi
ccc6cda3 2897
3185942a
JA
2898 if test "x$ac_ct_CC" = x; then
2899 CC=""
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902yes:)
2903{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905ac_tool_warned=yes ;;
2906esac
2907 CC=$ac_ct_CC
2908 fi
f73dda09
JA
2909else
2910 CC="$ac_cv_prog_CC"
2911fi
bb70624e 2912
f73dda09 2913if test -z "$CC"; then
3185942a
JA
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f73dda09 2916set dummy ${ac_tool_prefix}cc; ac_word=$2
3185942a
JA
2917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2919if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2920 $as_echo_n "(cached) " >&6
ccc6cda3
JA
2921else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
b80f6443
JA
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 2932 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185942a 2933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2934 break 2
2935 fi
2936done
f73dda09 2937done
3185942a 2938IFS=$as_save_IFS
f73dda09 2939
ccc6cda3
JA
2940fi
2941fi
f73dda09 2942CC=$ac_cv_prog_CC
ccc6cda3 2943if test -n "$CC"; then
3185942a
JA
2944 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2945$as_echo "$CC" >&6; }
f73dda09 2946else
3185942a
JA
2947 { $as_echo "$as_me:$LINENO: result: no" >&5
2948$as_echo "no" >&6; }
f73dda09
JA
2949fi
2950
ccc6cda3 2951
3185942a 2952 fi
f73dda09 2953fi
ccc6cda3
JA
2954if test -z "$CC"; then
2955 # Extract the first word of "cc", so it can be a program name with args.
2956set dummy cc; ac_word=$2
3185942a
JA
2957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 2959if test "${ac_cv_prog_CC+set}" = set; then
3185942a 2960 $as_echo_n "(cached) " >&6
ccc6cda3
JA
2961else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964else
ccc6cda3 2965 ac_prog_rejected=no
b80f6443
JA
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443
JA
2973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2974 ac_prog_rejected=yes
2975 continue
2976 fi
2977 ac_cv_prog_CC="cc"
3185942a 2978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
2979 break 2
2980 fi
2981done
f73dda09 2982done
3185942a 2983IFS=$as_save_IFS
f73dda09 2984
ccc6cda3
JA
2985if test $ac_prog_rejected = yes; then
2986 # We found a bogon in the path, so make sure we never use it.
2987 set dummy $ac_cv_prog_CC
2988 shift
f73dda09 2989 if test $# != 0; then
ccc6cda3
JA
2990 # We chose a different compiler from the bogus one.
2991 # However, it has the same basename, so the bogon will be chosen
2992 # first if we set CC to just the basename; use the full file name.
2993 shift
0628567a 2994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ccc6cda3
JA
2995 fi
2996fi
2997fi
2998fi
f73dda09 2999CC=$ac_cv_prog_CC
ccc6cda3 3000if test -n "$CC"; then
3185942a
JA
3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002$as_echo "$CC" >&6; }
ccc6cda3 3003else
3185942a
JA
3004 { $as_echo "$as_me:$LINENO: result: no" >&5
3005$as_echo "no" >&6; }
ccc6cda3
JA
3006fi
3007
3185942a 3008
f73dda09
JA
3009fi
3010if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3185942a 3012 for ac_prog in cl.exe
f73dda09
JA
3013 do
3014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3185942a
JA
3016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 3018if test "${ac_cv_prog_CC+set}" = set; then
3185942a 3019 $as_echo_n "(cached) " >&6
bb70624e
JA
3020else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
b80f6443
JA
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 3031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3185942a 3032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
3033 break 2
3034 fi
3035done
f73dda09 3036done
3185942a 3037IFS=$as_save_IFS
f73dda09 3038
bb70624e
JA
3039fi
3040fi
f73dda09 3041CC=$ac_cv_prog_CC
bb70624e 3042if test -n "$CC"; then
3185942a
JA
3043 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3044$as_echo "$CC" >&6; }
bb70624e 3045else
3185942a
JA
3046 { $as_echo "$as_me:$LINENO: result: no" >&5
3047$as_echo "no" >&6; }
bb70624e 3048fi
ccc6cda3 3049
3185942a 3050
f73dda09
JA
3051 test -n "$CC" && break
3052 done
ccc6cda3 3053fi
f73dda09
JA
3054if test -z "$CC"; then
3055 ac_ct_CC=$CC
3185942a 3056 for ac_prog in cl.exe
f73dda09
JA
3057do
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059set dummy $ac_prog; ac_word=$2
3185942a
JA
3060{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 3062if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185942a 3063 $as_echo_n "(cached) " >&6
f73dda09
JA
3064else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067else
b80f6443
JA
3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 3075 ac_cv_prog_ac_ct_CC="$ac_prog"
3185942a 3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
3077 break 2
3078 fi
3079done
f73dda09 3080done
3185942a 3081IFS=$as_save_IFS
ccc6cda3 3082
ccc6cda3 3083fi
ccc6cda3 3084fi
f73dda09
JA
3085ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086if test -n "$ac_ct_CC"; then
3185942a
JA
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088$as_echo "$ac_ct_CC" >&6; }
f73dda09 3089else
3185942a
JA
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091$as_echo "no" >&6; }
ccc6cda3
JA
3092fi
3093
3185942a 3094
f73dda09
JA
3095 test -n "$ac_ct_CC" && break
3096done
ccc6cda3 3097
3185942a
JA
3098 if test "x$ac_ct_CC" = x; then
3099 CC=""
3100 else
3101 case $cross_compiling:$ac_tool_warned in
3102yes:)
3103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105ac_tool_warned=yes ;;
3106esac
3107 CC=$ac_ct_CC
3108 fi
bb70624e
JA
3109fi
3110
f73dda09
JA
3111fi
3112
b80f6443 3113
3185942a
JA
3114test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
0628567a 3117See \`config.log' for more details." >&5
3185942a 3118$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
0628567a 3119See \`config.log' for more details." >&2;}
3185942a 3120 { (exit 1); exit 1; }; }; }
f73dda09
JA
3121
3122# Provide some information about the compiler.
3185942a
JA
3123$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3124set X $ac_compile
3125ac_compiler=$2
3126{ (ac_try="$ac_compiler --version >&5"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132$as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compiler --version >&5") 2>&5
f73dda09 3134 ac_status=$?
3185942a 3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3136 (exit $ac_status); }
3185942a
JA
3137{ (ac_try="$ac_compiler -v >&5"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143$as_echo "$ac_try_echo") >&5
3144 (eval "$ac_compiler -v >&5") 2>&5
f73dda09 3145 ac_status=$?
3185942a 3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3147 (exit $ac_status); }
3185942a
JA
3148{ (ac_try="$ac_compiler -V >&5"
3149case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154$as_echo "$ac_try_echo") >&5
3155 (eval "$ac_compiler -V >&5") 2>&5
f73dda09 3156 ac_status=$?
3185942a 3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3158 (exit $ac_status); }
3159
3160cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
f73dda09
JA
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175ac_clean_files_save=$ac_clean_files
3185942a 3176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
f73dda09
JA
3177# Try to create an executable without -o first, disregard a.out.
3178# It will help us diagnose broken compilers, and finding out an intuition
3179# of exeext.
3185942a
JA
3180{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3181$as_echo_n "checking for C compiler default output file name... " >&6; }
3182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183
3184# The possible output files:
3185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3186
3187ac_rmfiles=
3188for ac_file in $ac_files
3189do
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193 esac
3194done
3195rm -f $ac_rmfiles
3196
3197if { (ac_try="$ac_link_default"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203$as_echo "$ac_try_echo") >&5
3204 (eval "$ac_link_default") 2>&5
f73dda09 3205 ac_status=$?
3185942a 3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3207 (exit $ac_status); }; then
3185942a
JA
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210# in a Makefile. We should not override ac_cv_exeext if it was cached,
3211# so that the user can short-circuit this test for compilers unknown to
3212# Autoconf.
3213for ac_file in $ac_files ''
0628567a
JA
3214do
3215 test -f "$ac_file" || continue
f73dda09 3216 case $ac_file in
3185942a 3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
0628567a
JA
3218 ;;
3219 [ab].out )
3220 # We found the default executable, but exeext='' is most
3221 # certainly right.
3222 break;;
3223 *.* )
3185942a
JA
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225 then :; else
3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 fi
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3232 # actually working.
0628567a
JA
3233 break;;
3234 * )
3235 break;;
f73dda09
JA
3236 esac
3237done
3185942a
JA
3238test "$ac_cv_exeext" = no && ac_cv_exeext=
3239
ccc6cda3 3240else
3185942a
JA
3241 ac_file=''
3242fi
3243
3244{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3245$as_echo "$ac_file" >&6; }
3246if test -z "$ac_file"; then
3247 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3185942a
JA
3250{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
0628567a 3253See \`config.log' for more details." >&5
3185942a 3254$as_echo "$as_me: error: C compiler cannot create executables
0628567a 3255See \`config.log' for more details." >&2;}
3185942a 3256 { (exit 77); exit 77; }; }; }
f73dda09
JA
3257fi
3258
3259ac_exeext=$ac_cv_exeext
f73dda09 3260
3185942a 3261# Check that the compiler produces executables we can run. If not, either
f73dda09 3262# the compiler is broken, or we cross compile.
3185942a
JA
3263{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3264$as_echo_n "checking whether the C compiler works... " >&6; }
f73dda09
JA
3265# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3266# If not cross compiling, check that we can run a simple program.
3267if test "$cross_compiling" != yes; then
3268 if { ac_try='./$ac_file'
3185942a
JA
3269 { (case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
3273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274$as_echo "$ac_try_echo") >&5
3275 (eval "$ac_try") 2>&5
f73dda09 3276 ac_status=$?
3185942a 3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3278 (exit $ac_status); }; }; then
3279 cross_compiling=no
3280 else
3281 if test "$cross_compiling" = maybe; then
3282 cross_compiling=yes
3283 else
3185942a
JA
3284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
0628567a
JA
3287If you meant to cross compile, use \`--host'.
3288See \`config.log' for more details." >&5
3185942a 3289$as_echo "$as_me: error: cannot run C compiled programs.
0628567a
JA
3290If you meant to cross compile, use \`--host'.
3291See \`config.log' for more details." >&2;}
3185942a 3292 { (exit 1); exit 1; }; }; }
f73dda09
JA
3293 fi
3294 fi
3295fi
3185942a
JA
3296{ $as_echo "$as_me:$LINENO: result: yes" >&5
3297$as_echo "yes" >&6; }
f73dda09 3298
3185942a 3299rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
f73dda09 3300ac_clean_files=$ac_clean_files_save
3185942a 3301# Check that the compiler produces executables we can run. If not, either
f73dda09 3302# the compiler is broken, or we cross compile.
3185942a
JA
3303{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3304$as_echo_n "checking whether we are cross compiling... " >&6; }
3305{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3306$as_echo "$cross_compiling" >&6; }
3307
3308{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3309$as_echo_n "checking for suffix of executables... " >&6; }
3310if { (ac_try="$ac_link"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316$as_echo "$ac_try_echo") >&5
3317 (eval "$ac_link") 2>&5
f73dda09 3318 ac_status=$?
3185942a 3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
3320 (exit $ac_status); }; then
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323# work properly (i.e., refer to `conftest.exe'), while it won't with
3324# `rm'.
0628567a
JA
3325for ac_file in conftest.exe conftest conftest.*; do
3326 test -f "$ac_file" || continue
f73dda09 3327 case $ac_file in
3185942a 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
f73dda09 3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
0628567a 3330 break;;
f73dda09
JA
3331 * ) break;;
3332 esac
3333done
ccc6cda3 3334else
3185942a
JA
3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
0628567a 3338See \`config.log' for more details." >&5
3185942a 3339$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
0628567a 3340See \`config.log' for more details." >&2;}
3185942a 3341 { (exit 1); exit 1; }; }; }
f73dda09
JA
3342fi
3343
3344rm -f conftest$ac_cv_exeext
3185942a
JA
3345{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3346$as_echo "$ac_cv_exeext" >&6; }
f73dda09
JA
3347
3348rm -f conftest.$ac_ext
3349EXEEXT=$ac_cv_exeext
3350ac_exeext=$EXEEXT
3185942a
JA
3351{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3352$as_echo_n "checking for suffix of object files... " >&6; }
f73dda09 3353if test "${ac_cv_objext+set}" = set; then
3185942a 3354 $as_echo_n "(cached) " >&6
f73dda09
JA
3355else
3356 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
f73dda09
JA
3362
3363int
3364main ()
3365{
3366
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest.o conftest.obj
3185942a
JA
3372if { (ac_try="$ac_compile"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378$as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compile") 2>&5
f73dda09 3380 ac_status=$?
3185942a 3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 3382 (exit $ac_status); }; then
3185942a
JA
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
f73dda09 3385 case $ac_file in
3185942a 3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
f73dda09
JA
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 break;;
3389 esac
3390done
3391else
3185942a 3392 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3185942a
JA
3395{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
0628567a 3398See \`config.log' for more details." >&5
3185942a 3399$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
0628567a 3400See \`config.log' for more details." >&2;}
3185942a 3401 { (exit 1); exit 1; }; }; }
ccc6cda3 3402fi
ccc6cda3 3403
f73dda09 3404rm -f conftest.$ac_cv_objext conftest.$ac_ext
ccc6cda3 3405fi
3185942a
JA
3406{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3407$as_echo "$ac_cv_objext" >&6; }
f73dda09
JA
3408OBJEXT=$ac_cv_objext
3409ac_objext=$OBJEXT
3185942a
JA
3410{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3411$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
f73dda09 3412if test "${ac_cv_c_compiler_gnu+set}" = set; then
3185942a 3413 $as_echo_n "(cached) " >&6
f73dda09
JA
3414else
3415 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
f73dda09
JA
3421
3422int
3423main ()
3424{
3425#ifndef __GNUC__
3426 choke me
3427#endif
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext
3185942a
JA
3434if { (ac_try="$ac_compile"
3435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440$as_echo "$ac_try_echo") >&5
3441 (eval "$ac_compile") 2>conftest.er1
f73dda09 3442 ac_status=$?
0628567a
JA
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3185942a
JA
3446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
f73dda09
JA
3451 ac_compiler_gnu=yes
3452else
3185942a 3453 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3185942a 3456 ac_compiler_gnu=no
f73dda09 3457fi
3185942a
JA
3458
3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
3460ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461
3462fi
3185942a
JA
3463{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3464$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465if test $ac_compiler_gnu = yes; then
3466 GCC=yes
3467else
3468 GCC=
3469fi
f73dda09
JA
3470ac_test_CFLAGS=${CFLAGS+set}
3471ac_save_CFLAGS=$CFLAGS
3185942a
JA
3472{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3473$as_echo_n "checking whether $CC accepts -g... " >&6; }
f73dda09 3474if test "${ac_cv_prog_cc_g+set}" = set; then
3185942a 3475 $as_echo_n "(cached) " >&6
f73dda09 3476else
3185942a
JA
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3479 ac_cv_prog_cc_g=no
3480 CFLAGS="-g"
3481 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
f73dda09
JA
3487
3488int
3489main ()
3490{
ccc6cda3 3491
f73dda09
JA
3492 ;
3493 return 0;
3494}
3495_ACEOF
3496rm -f conftest.$ac_objext
3185942a
JA
3497if { (ac_try="$ac_compile"
3498case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503$as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
f73dda09 3505 ac_status=$?
0628567a
JA
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3185942a
JA
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_cv_prog_cc_g=yes
3515else
3516 $as_echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 CFLAGS=""
3520 cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
3536if { (ac_try="$ac_compile"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542$as_echo "$ac_try_echo") >&5
3543 (eval "$ac_compile") 2>conftest.er1
0628567a 3544 ac_status=$?
3185942a
JA
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3553 :
3554else
3555 $as_echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559 CFLAGS="-g"
3560 cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h. */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h. */
3566
3567int
3568main ()
3569{
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
3576if { (ac_try="$ac_compile"
3577case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580esac
3581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582$as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
f73dda09 3584 ac_status=$?
3185942a
JA
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
f73dda09
JA
3593 ac_cv_prog_cc_g=yes
3594else
3185942a 3595 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3185942a
JA
3598
3599fi
3600
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602fi
3603
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 3605fi
3185942a
JA
3606
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
f73dda09 3609fi
3185942a
JA
3610{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611$as_echo "$ac_cv_prog_cc_g" >&6; }
bb70624e 3612if test "$ac_test_CFLAGS" = set; then
f73dda09 3613 CFLAGS=$ac_save_CFLAGS
bb70624e
JA
3614elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
ccc6cda3
JA
3616 CFLAGS="-g -O2"
3617 else
bb70624e 3618 CFLAGS="-g"
ccc6cda3
JA
3619 fi
3620else
bb70624e
JA
3621 if test "$GCC" = yes; then
3622 CFLAGS="-O2"
3623 else
3624 CFLAGS=
3625 fi
ccc6cda3 3626fi
3185942a
JA
3627{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629if test "${ac_cv_prog_cc_c89+set}" = set; then
3630 $as_echo_n "(cached) " >&6
0628567a 3631else
3185942a 3632 ac_cv_prog_cc_c89=no
0628567a
JA
3633ac_save_CC=$CC
3634cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640#include <stdarg.h>
3641#include <stdio.h>
3642#include <sys/types.h>
3643#include <sys/stat.h>
3644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645struct buf { int x; };
3646FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647static char *e (p, i)
3648 char **p;
3649 int i;
3650{
3651 return p[i];
3652}
3653static char *f (char * (*g) (char **, int), char **p, ...)
3654{
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661}
3662
3663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3185942a 3666 as 'x'. The following induces an error, until -std is added to get
0628567a
JA
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3185942a 3669 that's true only with -std. */
0628567a
JA
3670int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3185942a
JA
3672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674#define FOO(x) 'x'
3675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676
0628567a
JA
3677int test (int i, double x);
3678struct s1 {int (*f) (int a);};
3679struct s2 {int (*f) (double a);};
3680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681int argc;
3682char **argv;
3683int
3684main ()
3685{
3686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689}
3690_ACEOF
3185942a
JA
3691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
0628567a
JA
3693do
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
3185942a
JA
3696if { (ac_try="$ac_compile"
3697case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702$as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3185942a
JA
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_prog_cc_c89=$ac_arg
0628567a 3714else
3185942a 3715 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3185942a 3718
0628567a 3719fi
3185942a
JA
3720
3721rm -f core conftest.err conftest.$ac_objext
3722 test "x$ac_cv_prog_cc_c89" != "xno" && break
0628567a 3723done
3185942a 3724rm -f conftest.$ac_ext
0628567a
JA
3725CC=$ac_save_CC
3726
3727fi
3185942a
JA
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c89" in
3730 x)
3731 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3732$as_echo "none needed" >&6; } ;;
3733 xno)
3734 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3735$as_echo "unsupported" >&6; } ;;
0628567a 3736 *)
3185942a
JA
3737 CC="$CC $ac_cv_prog_cc_c89"
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
0628567a
JA
3740esac
3741
0628567a 3742
f73dda09
JA
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
bb70624e 3748
f73dda09 3749
ccc6cda3 3750
b80f6443 3751
3185942a
JA
3752 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3753$as_echo_n "checking for strerror in -lcposix... " >&6; }
b80f6443 3754if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3185942a 3755 $as_echo_n "(cached) " >&6
ccc6cda3 3756else
b80f6443
JA
3757 ac_check_lib_save_LIBS=$LIBS
3758LIBS="-lcposix $LIBS"
3759cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
b80f6443 3765
3185942a
JA
3766/* Override any GCC internal prototype to avoid an error.
3767 Use char because int might match the return type of a GCC
3768 builtin and then its argument prototype would still apply. */
b80f6443
JA
3769#ifdef __cplusplus
3770extern "C"
3771#endif
b80f6443
JA
3772char strerror ();
3773int
3774main ()
3775{
3185942a 3776return strerror ();
b80f6443
JA
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
3782if { (ac_try="$ac_link"
3783case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788$as_echo "$ac_try_echo") >&5
3789 (eval "$ac_link") 2>conftest.er1
b80f6443 3790 ac_status=$?
0628567a
JA
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3185942a
JA
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest$ac_exeext && {
3799 test "$cross_compiling" = yes ||
3800 $as_test_x conftest$ac_exeext
3801 }; then
b80f6443
JA
3802 ac_cv_lib_cposix_strerror=yes
3803else
3185942a 3804 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3185942a 3807 ac_cv_lib_cposix_strerror=no
b80f6443 3808fi
3185942a
JA
3809
3810rm -rf conftest.dSYM
3811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 3812 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
3813LIBS=$ac_check_lib_save_LIBS
3814fi
3185942a
JA
3815{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3816$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3817if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
b80f6443 3818 LIBS="$LIBS -lcposix"
ccc6cda3
JA
3819fi
3820
b80f6443
JA
3821
3822
f73dda09
JA
3823ac_ext=c
3824ac_cpp='$CPP $CPPFLAGS'
3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185942a
JA
3828{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3829$as_echo_n "checking how to run the C preprocessor... " >&6; }
ccc6cda3
JA
3830# On Suns, sometimes $CPP names a directory.
3831if test -n "$CPP" && test -d "$CPP"; then
3832 CPP=
3833fi
3834if test -z "$CPP"; then
f73dda09 3835 if test "${ac_cv_prog_CPP+set}" = set; then
3185942a 3836 $as_echo_n "(cached) " >&6
f73dda09
JA
3837else
3838 # Double quotes because CPP needs to be expanded
3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3840 do
3841 ac_preproc_ok=false
3842for ac_c_preproc_warn_flag in '' yes
3843do
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
0628567a
JA
3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847 # <limits.h> exists even on freestanding compilers.
ccc6cda3 3848 # On the NeXT, cc -E runs the code through the compiler's parser,
f73dda09
JA
3849 # not just through cpp. "Syntax error" is here to catch this case.
3850 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
3856#ifdef __STDC__
3857# include <limits.h>
3858#else
3859# include <assert.h>
3860#endif
3861 Syntax error
f73dda09 3862_ACEOF
3185942a
JA
3863if { (ac_try="$ac_cpp conftest.$ac_ext"
3864case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869$as_echo "$ac_try_echo") >&5
3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3871 ac_status=$?
0628567a 3872 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3185942a
JA
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev/null && {
3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 }; then
ccc6cda3
JA
3880 :
3881else
3185942a 3882 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
f73dda09
JA
3885 # Broken: fails on valid input.
3886continue
3887fi
3185942a 3888
f73dda09
JA
3889rm -f conftest.err conftest.$ac_ext
3890
3185942a 3891 # OK, works on sane cases. Now check whether nonexistent headers
f73dda09
JA
3892 # can be detected and how.
3893 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3894/* confdefs.h. */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h. */
f73dda09
JA
3899#include <ac_nonexistent.h>
3900_ACEOF
3185942a
JA
3901if { (ac_try="$ac_cpp conftest.$ac_ext"
3902case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905esac
3906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907$as_echo "$ac_try_echo") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3909 ac_status=$?
0628567a 3910 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3185942a
JA
3913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null && {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 }; then
f73dda09
JA
3918 # Broken: success on invalid input.
3919continue
bb70624e 3920else
3185942a 3921 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
f73dda09
JA
3924 # Passes both tests.
3925ac_preproc_ok=:
3926break
3927fi
3185942a 3928
f73dda09
JA
3929rm -f conftest.err conftest.$ac_ext
3930
3931done
3932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933rm -f conftest.err conftest.$ac_ext
3934if $ac_preproc_ok; then
3935 break
3936fi
3937
3938 done
3939 ac_cv_prog_CPP=$CPP
3940
3941fi
3942 CPP=$ac_cv_prog_CPP
3943else
3944 ac_cv_prog_CPP=$CPP
3945fi
3185942a
JA
3946{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3947$as_echo "$CPP" >&6; }
f73dda09
JA
3948ac_preproc_ok=false
3949for ac_c_preproc_warn_flag in '' yes
3950do
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
0628567a
JA
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
f73dda09
JA
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
3958/* confdefs.h. */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h. */
3963#ifdef __STDC__
3964# include <limits.h>
3965#else
3966# include <assert.h>
3967#endif
3968 Syntax error
f73dda09 3969_ACEOF
3185942a
JA
3970if { (ac_try="$ac_cpp conftest.$ac_ext"
3971case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3976$as_echo "$ac_try_echo") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 3978 ac_status=$?
0628567a 3979 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3185942a
JA
3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
ccc6cda3
JA
3987 :
3988else
3185942a 3989 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
f73dda09
JA
3992 # Broken: fails on valid input.
3993continue
3994fi
3185942a 3995
f73dda09
JA
3996rm -f conftest.err conftest.$ac_ext
3997
3185942a 3998 # OK, works on sane cases. Now check whether nonexistent headers
f73dda09
JA
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
f73dda09
JA
4006#include <ac_nonexistent.h>
4007_ACEOF
3185942a
JA
4008if { (ac_try="$ac_cpp conftest.$ac_ext"
4009case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4014$as_echo "$ac_try_echo") >&5
4015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 4016 ac_status=$?
0628567a 4017 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
4018 rm -f conftest.er1
4019 cat conftest.err >&5
3185942a
JA
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } >/dev/null && {
4022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 }; then
f73dda09
JA
4025 # Broken: success on invalid input.
4026continue
4027else
3185942a 4028 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
f73dda09
JA
4031 # Passes both tests.
4032ac_preproc_ok=:
4033break
ccc6cda3 4034fi
3185942a 4035
f73dda09
JA
4036rm -f conftest.err conftest.$ac_ext
4037
4038done
4039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040rm -f conftest.err conftest.$ac_ext
4041if $ac_preproc_ok; then
4042 :
ccc6cda3 4043else
3185942a
JA
4044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
0628567a 4047See \`config.log' for more details." >&5
3185942a 4048$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
0628567a 4049See \`config.log' for more details." >&2;}
3185942a 4050 { (exit 1); exit 1; }; }; }
ccc6cda3 4051fi
ccc6cda3 4052
f73dda09
JA
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
b80f6443 4059
3185942a
JA
4060{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4061$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062if test "${ac_cv_path_GREP+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4064else
4065 if test -z "$GREP"; then
4066 ac_path_GREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in grep ggrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4077# Check for GNU ac_path_GREP and select it if it is found.
4078 # Check for GNU $ac_path_GREP
4079case `"$ac_path_GREP" --version 2>&1` in
4080*GNU*)
4081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082*)
4083 ac_count=0
4084 $as_echo_n 0123456789 >"conftest.in"
4085 while :
4086 do
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'GREP' >> "conftest.nl"
4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 ac_count=`expr $ac_count + 1`
4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_GREP="$ac_path_GREP"
4097 ac_path_GREP_max=$ac_count
4098 fi
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105 $ac_path_GREP_found && break 3
4106 done
4107 done
4108done
4109IFS=$as_save_IFS
4110 if test -z "$ac_cv_path_GREP"; then
4111 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4112$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4113 { (exit 1); exit 1; }; }
4114 fi
4115else
4116 ac_cv_path_GREP=$GREP
4117fi
4118
4119fi
4120{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4121$as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP="$ac_cv_path_GREP"
4123
4124
4125{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4126$as_echo_n "checking for egrep... " >&6; }
4127if test "${ac_cv_path_EGREP+set}" = set; then
4128 $as_echo_n "(cached) " >&6
0628567a 4129else
3185942a
JA
4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4131 then ac_cv_path_EGREP="$GREP -E"
4132 else
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in egrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4145# Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147case `"$ac_path_EGREP" --version 2>&1` in
4148*GNU*)
4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4150*)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 ac_count=`expr $ac_count + 1`
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP="$ac_path_EGREP"
4165 ac_path_EGREP_max=$ac_count
0628567a 4166 fi
3185942a
JA
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171esac
4172
4173 $ac_path_EGREP_found && break 3
4174 done
4175 done
4176done
4177IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_EGREP"; then
4179 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4180$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4181 { (exit 1); exit 1; }; }
4182 fi
4183else
4184 ac_cv_path_EGREP=$EGREP
0628567a 4185fi
0628567a 4186
3185942a
JA
4187 fi
4188fi
4189{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4190$as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP="$ac_cv_path_EGREP"
0628567a 4192
3185942a
JA
4193
4194{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4195$as_echo_n "checking for ANSI C header files... " >&6; }
b80f6443 4196if test "${ac_cv_header_stdc+set}" = set; then
3185942a 4197 $as_echo_n "(cached) " >&6
ccc6cda3 4198else
f73dda09 4199 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h. */
b80f6443
JA
4205#include <stdlib.h>
4206#include <stdarg.h>
4207#include <string.h>
4208#include <float.h>
4209
0628567a
JA
4210int
4211main ()
4212{
4213
4214 ;
4215 return 0;
4216}
b80f6443 4217_ACEOF
0628567a 4218rm -f conftest.$ac_objext
3185942a
JA
4219if { (ac_try="$ac_compile"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4225$as_echo "$ac_try_echo") >&5
4226 (eval "$ac_compile") 2>conftest.er1
b80f6443 4227 ac_status=$?
0628567a 4228 grep -v '^ *+' conftest.er1 >conftest.err
95732b49
JA
4229 rm -f conftest.er1
4230 cat conftest.err >&5
3185942a
JA
4231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && {
4233 test -z "$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4235 } && test -s conftest.$ac_objext; then
b80f6443
JA
4236 ac_cv_header_stdc=yes
4237else
3185942a 4238 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
3185942a 4241 ac_cv_header_stdc=no
b80f6443 4242fi
3185942a
JA
4243
4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
4245
4246if test $ac_cv_header_stdc = yes; then
4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
b80f6443
JA
4254#include <string.h>
4255
4256_ACEOF
4257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 4258 $EGREP "memchr" >/dev/null 2>&1; then
b80f6443
JA
4259 :
4260else
4261 ac_cv_header_stdc=no
4262fi
4263rm -f conftest*
4264
4265fi
4266
4267if test $ac_cv_header_stdc = yes; then
4268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4269 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
b80f6443
JA
4275#include <stdlib.h>
4276
4277_ACEOF
4278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 4279 $EGREP "free" >/dev/null 2>&1; then
b80f6443
JA
4280 :
4281else
4282 ac_cv_header_stdc=no
4283fi
4284rm -f conftest*
4285
4286fi
4287
4288if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4291 :
4292else
4293 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
b80f6443 4299#include <ctype.h>
3185942a 4300#include <stdlib.h>
b80f6443
JA
4301#if ((' ' & 0x0FF) == 0x020)
4302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4304#else
0628567a
JA
4305# define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
4307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
b80f6443
JA
4309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4310#endif
4311
4312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4313int
4314main ()
4315{
4316 int i;
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
0628567a 4319 || toupper (i) != TOUPPER (i))
3185942a
JA
4320 return 2;
4321 return 0;
b80f6443
JA
4322}
4323_ACEOF
4324rm -f conftest$ac_exeext
3185942a
JA
4325if { (ac_try="$ac_link"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4331$as_echo "$ac_try_echo") >&5
4332 (eval "$ac_link") 2>&5
b80f6443 4333 ac_status=$?
3185942a 4334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339esac
4340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341$as_echo "$ac_try_echo") >&5
4342 (eval "$ac_try") 2>&5
b80f6443 4343 ac_status=$?
3185942a 4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
4345 (exit $ac_status); }; }; then
4346 :
4347else
3185942a
JA
4348 $as_echo "$as_me: program exited with status $ac_status" >&5
4349$as_echo "$as_me: failed program was:" >&5
0628567a
JA
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
b80f6443
JA
4352( exit $ac_status )
4353ac_cv_header_stdc=no
4354fi
3185942a
JA
4355rm -rf conftest.dSYM
4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 4357fi
3185942a
JA
4358
4359
b80f6443
JA
4360fi
4361fi
3185942a
JA
4362{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363$as_echo "$ac_cv_header_stdc" >&6; }
b80f6443
JA
4364if test $ac_cv_header_stdc = yes; then
4365
4366cat >>confdefs.h <<\_ACEOF
4367#define STDC_HEADERS 1
4368_ACEOF
4369
4370fi
4371
4372# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
0628567a 4383 inttypes.h stdint.h unistd.h
b80f6443 4384do
3185942a
JA
4385as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4387$as_echo_n "checking for $ac_header... " >&6; }
4388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4389 $as_echo_n "(cached) " >&6
b80f6443
JA
4390else
4391 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
b80f6443
JA
4397$ac_includes_default
4398
4399#include <$ac_header>
4400_ACEOF
4401rm -f conftest.$ac_objext
3185942a
JA
4402if { (ac_try="$ac_compile"
4403case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406esac
4407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4408$as_echo "$ac_try_echo") >&5
4409 (eval "$ac_compile") 2>conftest.er1
b80f6443 4410 ac_status=$?
0628567a
JA
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
3185942a
JA
4414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
b80f6443
JA
4419 eval "$as_ac_Header=yes"
4420else
3185942a 4421 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
3185942a 4424 eval "$as_ac_Header=no"
b80f6443 4425fi
3185942a
JA
4426
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 4428fi
3185942a
JA
4429ac_res=`eval 'as_val=${'$as_ac_Header'}
4430 $as_echo "$as_val"'`
4431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4432$as_echo "$ac_res" >&6; }
4433as_val=`eval 'as_val=${'$as_ac_Header'}
4434 $as_echo "$as_val"'`
4435 if test "x$as_val" = x""yes; then
b80f6443 4436 cat >>confdefs.h <<_ACEOF
3185942a 4437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
4438_ACEOF
4439
4440fi
4441
4442done
4443
4444
3185942a
JA
4445
4446 if test "${ac_cv_header_minix_config_h+set}" = set; then
4447 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4448$as_echo_n "checking for minix/config.h... " >&6; }
b80f6443 4449if test "${ac_cv_header_minix_config_h+set}" = set; then
3185942a 4450 $as_echo_n "(cached) " >&6
b80f6443 4451fi
3185942a
JA
4452{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4453$as_echo "$ac_cv_header_minix_config_h" >&6; }
b80f6443
JA
4454else
4455 # Is the header compilable?
3185942a
JA
4456{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4457$as_echo_n "checking minix/config.h usability... " >&6; }
b80f6443 4458cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h. */
b80f6443
JA
4464$ac_includes_default
4465#include <minix/config.h>
4466_ACEOF
4467rm -f conftest.$ac_objext
3185942a
JA
4468if { (ac_try="$ac_compile"
4469case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474$as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
b80f6443 4476 ac_status=$?
0628567a
JA
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
3185942a
JA
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
b80f6443
JA
4485 ac_header_compiler=yes
4486else
3185942a 4487 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
3185942a 4490 ac_header_compiler=no
b80f6443 4491fi
3185942a
JA
4492
4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4495$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
4496
4497# Is the header present?
3185942a
JA
4498{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4499$as_echo_n "checking minix/config.h presence... " >&6; }
b80f6443 4500cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4501/* confdefs.h. */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h. */
b80f6443
JA
4506#include <minix/config.h>
4507_ACEOF
3185942a
JA
4508if { (ac_try="$ac_cpp conftest.$ac_ext"
4509case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512esac
4513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4514$as_echo "$ac_try_echo") >&5
4515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 4516 ac_status=$?
0628567a 4517 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
4518 rm -f conftest.er1
4519 cat conftest.err >&5
3185942a
JA
4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } >/dev/null && {
4522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4524 }; then
b80f6443 4525 ac_header_preproc=yes
ccc6cda3 4526else
3185942a 4527 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
b80f6443 4530 ac_header_preproc=no
ccc6cda3 4531fi
3185942a 4532
f73dda09 4533rm -f conftest.err conftest.$ac_ext
3185942a
JA
4534{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4535$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
4536
4537# So? What about this header?
0628567a
JA
4538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4539 yes:no: )
3185942a
JA
4540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4541$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4543$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
0628567a
JA
4544 ac_header_preproc=yes
4545 ;;
4546 no:yes:* )
3185942a
JA
4547 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4548$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4549 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4550$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4551 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4552$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4553 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4554$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4555 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4556$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4557 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4558$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4559 ( cat <<\_ASBOX
0628567a
JA
4560## ------------------------------- ##
4561## Report this to bug-bash@gnu.org ##
4562## ------------------------------- ##
4563_ASBOX
3185942a 4564 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 4565 ;;
b80f6443 4566esac
3185942a
JA
4567{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4568$as_echo_n "checking for minix/config.h... " >&6; }
b80f6443 4569if test "${ac_cv_header_minix_config_h+set}" = set; then
3185942a 4570 $as_echo_n "(cached) " >&6
b80f6443
JA
4571else
4572 ac_cv_header_minix_config_h=$ac_header_preproc
ccc6cda3 4573fi
3185942a
JA
4574{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4575$as_echo "$ac_cv_header_minix_config_h" >&6; }
b80f6443
JA
4576
4577fi
3185942a 4578if test "x$ac_cv_header_minix_config_h" = x""yes; then
ccc6cda3
JA
4579 MINIX=yes
4580else
f73dda09 4581 MINIX=
ccc6cda3
JA
4582fi
4583
b80f6443 4584
3185942a 4585 if test "$MINIX" = yes; then
f73dda09 4586
b80f6443 4587cat >>confdefs.h <<\_ACEOF
ccc6cda3 4588#define _POSIX_SOURCE 1
b80f6443
JA
4589_ACEOF
4590
ccc6cda3 4591
b80f6443 4592cat >>confdefs.h <<\_ACEOF
ccc6cda3 4593#define _POSIX_1_SOURCE 2
b80f6443
JA
4594_ACEOF
4595
ccc6cda3 4596
b80f6443 4597cat >>confdefs.h <<\_ACEOF
ccc6cda3 4598#define _MINIX 1
b80f6443 4599_ACEOF
ccc6cda3 4600
3185942a 4601 fi
ccc6cda3 4602
b80f6443 4603
3185942a
JA
4604
4605 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4606$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4607if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4608 $as_echo_n "(cached) " >&6
4609else
4610 cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h. */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h. */
4616
4617# define __EXTENSIONS__ 1
4618 $ac_includes_default
4619int
4620main ()
4621{
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext
4628if { (ac_try="$ac_compile"
4629case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634$as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 ac_cv_safe_to_define___extensions__=yes
4646else
4647 $as_echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_cv_safe_to_define___extensions__=no
4651fi
4652
4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654fi
4655{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4656$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4657 test $ac_cv_safe_to_define___extensions__ = yes &&
4658 cat >>confdefs.h <<\_ACEOF
4659#define __EXTENSIONS__ 1
4660_ACEOF
4661
4662 cat >>confdefs.h <<\_ACEOF
4663#define _ALL_SOURCE 1
4664_ACEOF
4665
4666 cat >>confdefs.h <<\_ACEOF
4667#define _GNU_SOURCE 1
4668_ACEOF
4669
4670 cat >>confdefs.h <<\_ACEOF
4671#define _POSIX_PTHREAD_SEMANTICS 1
4672_ACEOF
4673
4674 cat >>confdefs.h <<\_ACEOF
4675#define _TANDEM_SOURCE 1
4676_ACEOF
4677
4678
4679
4680# Check whether --enable-largefile was given.
f73dda09 4681if test "${enable_largefile+set}" = set; then
3185942a
JA
4682 enableval=$enable_largefile;
4683fi
f73dda09 4684
f73dda09 4685if test "$enable_largefile" != no; then
ccc6cda3 4686
3185942a
JA
4687 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4688$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
f73dda09 4689if test "${ac_cv_sys_largefile_CC+set}" = set; then
3185942a 4690 $as_echo_n "(cached) " >&6
bb70624e 4691else
f73dda09
JA
4692 ac_cv_sys_largefile_CC=no
4693 if test "$GCC" != yes; then
4694 ac_save_CC=$CC
4695 while :; do
3185942a
JA
4696 # IRIX 6.2 and later do not support large files by default,
4697 # so use the C compiler's -n32 option if that helps.
0628567a
JA
4698 cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
f73dda09
JA
4704#include <sys/types.h>
4705 /* Check that off_t can represent 2**63 - 1 correctly.
4706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707 since some C++ compilers masquerading as C compilers
4708 incorrectly reject 9223372036854775807. */
4709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711 && LARGE_OFF_T % 2147483647 == 1)
4712 ? 1 : -1];
4713int
4714main ()
4715{
bb70624e 4716
f73dda09
JA
4717 ;
4718 return 0;
4719}
4720_ACEOF
3185942a
JA
4721 rm -f conftest.$ac_objext
4722if { (ac_try="$ac_compile"
4723case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726esac
4727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4728$as_echo "$ac_try_echo") >&5
4729 (eval "$ac_compile") 2>conftest.er1
f73dda09 4730 ac_status=$?
0628567a
JA
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
3185942a
JA
4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
f73dda09 4739 break
bb70624e 4740else
3185942a 4741 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
3185942a 4744
f73dda09 4745fi
3185942a
JA
4746
4747rm -f core conftest.err conftest.$ac_objext
4748 CC="$CC -n32"
4749 rm -f conftest.$ac_objext
4750if { (ac_try="$ac_compile"
4751case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754esac
4755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756$as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
f73dda09 4758 ac_status=$?
0628567a
JA
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
3185942a
JA
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
f73dda09
JA
4767 ac_cv_sys_largefile_CC=' -n32'; break
4768else
3185942a 4769 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
3185942a 4772
f73dda09 4773fi
3185942a
JA
4774
4775rm -f core conftest.err conftest.$ac_objext
0628567a 4776 break
f73dda09
JA
4777 done
4778 CC=$ac_save_CC
4779 rm -f conftest.$ac_ext
4780 fi
bb70624e 4781fi
3185942a
JA
4782{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4783$as_echo "$ac_cv_sys_largefile_CC" >&6; }
f73dda09
JA
4784 if test "$ac_cv_sys_largefile_CC" != no; then
4785 CC=$CC$ac_cv_sys_largefile_CC
4786 fi
bb70624e 4787
3185942a
JA
4788 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4789$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
f73dda09 4790if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3185942a 4791 $as_echo_n "(cached) " >&6
bb70624e 4792else
f73dda09 4793 while :; do
f73dda09 4794 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
f73dda09
JA
4800#include <sys/types.h>
4801 /* Check that off_t can represent 2**63 - 1 correctly.
4802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4803 since some C++ compilers masquerading as C compilers
4804 incorrectly reject 9223372036854775807. */
4805#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4807 && LARGE_OFF_T % 2147483647 == 1)
4808 ? 1 : -1];
4809int
4810main ()
4811{
bb70624e 4812
f73dda09
JA
4813 ;
4814 return 0;
4815}
4816_ACEOF
4817rm -f conftest.$ac_objext
3185942a
JA
4818if { (ac_try="$ac_compile"
4819case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822esac
4823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4824$as_echo "$ac_try_echo") >&5
4825 (eval "$ac_compile") 2>conftest.er1
f73dda09 4826 ac_status=$?
0628567a
JA
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
3185942a
JA
4830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest.$ac_objext; then
4835 ac_cv_sys_file_offset_bits=no; break
bb70624e 4836else
3185942a 4837 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
3185942a 4840
bb70624e 4841fi
3185942a
JA
4842
4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 4844 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
f73dda09
JA
4850#define _FILE_OFFSET_BITS 64
4851#include <sys/types.h>
4852 /* Check that off_t can represent 2**63 - 1 correctly.
4853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4854 since some C++ compilers masquerading as C compilers
4855 incorrectly reject 9223372036854775807. */
4856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4858 && LARGE_OFF_T % 2147483647 == 1)
4859 ? 1 : -1];
4860int
4861main ()
4862{
bb70624e 4863
f73dda09
JA
4864 ;
4865 return 0;
4866}
4867_ACEOF
4868rm -f conftest.$ac_objext
3185942a
JA
4869if { (ac_try="$ac_compile"
4870case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873esac
4874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875$as_echo "$ac_try_echo") >&5
4876 (eval "$ac_compile") 2>conftest.er1
f73dda09 4877 ac_status=$?
0628567a
JA
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
3185942a
JA
4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.$ac_objext; then
f73dda09
JA
4886 ac_cv_sys_file_offset_bits=64; break
4887else
3185942a 4888 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
3185942a 4891
f73dda09 4892fi
3185942a
JA
4893
4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_cv_sys_file_offset_bits=unknown
f73dda09
JA
4896 break
4897done
4898fi
3185942a
JA
4899{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4900$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4901case $ac_cv_sys_file_offset_bits in #(
4902 no | unknown) ;;
4903 *)
b80f6443 4904cat >>confdefs.h <<_ACEOF
f73dda09 4905#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
b80f6443 4906_ACEOF
3185942a
JA
4907;;
4908esac
4909rm -rf conftest*
4910 if test $ac_cv_sys_file_offset_bits = unknown; then
4911 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4912$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
f73dda09 4913if test "${ac_cv_sys_large_files+set}" = set; then
3185942a 4914 $as_echo_n "(cached) " >&6
bb70624e 4915else
f73dda09 4916 while :; do
f73dda09 4917 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4918/* confdefs.h. */
4919_ACEOF
4920cat confdefs.h >>conftest.$ac_ext
4921cat >>conftest.$ac_ext <<_ACEOF
4922/* end confdefs.h. */
f73dda09
JA
4923#include <sys/types.h>
4924 /* Check that off_t can represent 2**63 - 1 correctly.
4925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4926 since some C++ compilers masquerading as C compilers
4927 incorrectly reject 9223372036854775807. */
4928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4930 && LARGE_OFF_T % 2147483647 == 1)
4931 ? 1 : -1];
4932int
4933main ()
4934{
4935
4936 ;
4937 return 0;
4938}
4939_ACEOF
4940rm -f conftest.$ac_objext
3185942a
JA
4941if { (ac_try="$ac_compile"
4942case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945esac
4946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4947$as_echo "$ac_try_echo") >&5
4948 (eval "$ac_compile") 2>conftest.er1
f73dda09 4949 ac_status=$?
0628567a
JA
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
3185942a
JA
4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_cv_sys_large_files=no; break
bb70624e 4959else
3185942a 4960 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
3185942a 4963
bb70624e 4964fi
3185942a
JA
4965
4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 4967 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
f73dda09
JA
4973#define _LARGE_FILES 1
4974#include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4982 ? 1 : -1];
4983int
4984main ()
4985{
bb70624e 4986
f73dda09
JA
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext
3185942a
JA
4992if { (ac_try="$ac_compile"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4998$as_echo "$ac_try_echo") >&5
4999 (eval "$ac_compile") 2>conftest.er1
f73dda09 5000 ac_status=$?
0628567a
JA
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
3185942a
JA
5004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && {
5006 test -z "$ac_c_werror_flag" ||
5007 test ! -s conftest.err
5008 } && test -s conftest.$ac_objext; then
f73dda09
JA
5009 ac_cv_sys_large_files=1; break
5010else
3185942a 5011 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
3185942a 5014
f73dda09 5015fi
3185942a
JA
5016
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_sys_large_files=unknown
f73dda09
JA
5019 break
5020done
5021fi
3185942a
JA
5022{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5023$as_echo "$ac_cv_sys_large_files" >&6; }
5024case $ac_cv_sys_large_files in #(
5025 no | unknown) ;;
5026 *)
b80f6443 5027cat >>confdefs.h <<_ACEOF
f73dda09 5028#define _LARGE_FILES $ac_cv_sys_large_files
b80f6443 5029_ACEOF
3185942a
JA
5030;;
5031esac
5032rm -rf conftest*
5033 fi
f73dda09 5034fi
cce855bc 5035
b80f6443
JA
5036
5037
0628567a 5038SIGNAMES_O=
b72432fd
JA
5039SIGNAMES_H=lsignames.h
5040
b80f6443
JA
5041
5042
0628567a 5043CROSS_COMPILE=
cce855bc
JA
5044if test "x$cross_compiling" = "xyes"; then
5045 case "${host}" in
28ef6c31 5046 *-cygwin*)
cce855bc 5047 cross_cache=${srcdir}/cross-build/cygwin32.cache
cce855bc 5048 ;;
95732b49
JA
5049 *-mingw*)
5050 cross_cache=${srcdir}/cross-build/cygwin32.cache
5051 ;;
b72432fd
JA
5052 i[3456]86-*-beos*)
5053 cross_cache=${srcdir}/cross-build/x86-beos.cache
b72432fd
JA
5054 ;;
5055 *) echo "configure: cross-compiling for $host is not supported" >&2
cce855bc
JA
5056 ;;
5057 esac
b72432fd
JA
5058 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
5059 echo "loading cross-build cache file ${cross_cache}"
5060 . ${cross_cache}
5061 fi
5062 unset cross_cache
0628567a 5063 SIGNAMES_O='signames.o'
95732b49
JA
5064 CROSS_COMPILE='-DCROSS_COMPILING'
5065
cce855bc
JA
5066fi
5067
b80f6443 5068
0628567a 5069
cce855bc
JA
5070if test -z "$CC_FOR_BUILD"; then
5071 if test "x$cross_compiling" = "xno"; then
5072 CC_FOR_BUILD='$(CC)'
5073 else
5074 CC_FOR_BUILD=gcc
5075 fi
5076fi
5077
b80f6443
JA
5078
5079
ccc6cda3
JA
5080test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
5081
5082test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
5083
cce855bc
JA
5084if test "$opt_profiling" = "yes"; then
5085 PROFILE_FLAGS=-pg
b72432fd
JA
5086 case "$host_os" in
5087 solaris2*) ;;
5088 *) opt_static_link=yes ;;
5089 esac
7117c2d2 5090 DEBUG= MALLOC_DEBUG=
cce855bc
JA
5091fi
5092
5093if test "$opt_static_link" = yes; then
f73dda09
JA
5094 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
5095 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
b72432fd 5096 STATIC_LD="-static"
f73dda09
JA
5097 case "$host_os" in
5098 solaris2*) ;;
5099 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
5100 esac
cce855bc
JA
5101 fi
5102fi
5103
b80f6443
JA
5104if test "X$cross_compiling" = "Xno"; then
5105 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
5106 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
5107else
5108 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
5109 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
5110fi
5111
7117c2d2
JA
5112test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
5113
b80f6443
JA
5114
5115
5116
5117
5118
5119
5120
5121
5122
f73dda09 5123if test $ac_cv_c_compiler_gnu = yes; then
3185942a
JA
5124 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5125$as_echo_n "checking whether $CC needs -traditional... " >&6; }
f73dda09 5126if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3185942a 5127 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5128else
5129 ac_pattern="Autoconf.*'x'"
f73dda09 5130 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5131/* confdefs.h. */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h. */
ccc6cda3
JA
5136#include <sgtty.h>
5137Autoconf TIOCGETP
f73dda09 5138_ACEOF
ccc6cda3 5139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 5140 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
5141 ac_cv_prog_gcc_traditional=yes
5142else
ccc6cda3
JA
5143 ac_cv_prog_gcc_traditional=no
5144fi
5145rm -f conftest*
5146
b80f6443 5147
ccc6cda3 5148 if test $ac_cv_prog_gcc_traditional = no; then
f73dda09 5149 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
ccc6cda3
JA
5155#include <termio.h>
5156Autoconf TCGETA
f73dda09 5157_ACEOF
ccc6cda3 5158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 5159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
ccc6cda3
JA
5160 ac_cv_prog_gcc_traditional=yes
5161fi
5162rm -f conftest*
5163
5164 fi
5165fi
3185942a
JA
5166{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5167$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
ccc6cda3
JA
5168 if test $ac_cv_prog_gcc_traditional = yes; then
5169 CC="$CC -traditional"
5170 fi
5171fi
5172
b80f6443
JA
5173
5174
f73dda09 5175if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
b72432fd 5176then
f73dda09
JA
5177 # If the user specified --with-installed-readline=PREFIX and PREFIX
5178 # is not `yes', set ac_cv_rl_prefix to PREFIX
5179 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
b72432fd 5180
b80f6443 5181
bb70624e
JA
5182if test "X$bash_cv_termcap_lib" = "X"; then
5183_bash_needmsg=yes
5184else
3185942a
JA
5185{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5186$as_echo_n "checking which library has the termcap functions... " >&6; }
bb70624e
JA
5187_bash_needmsg=
5188fi
f73dda09 5189if test "${bash_cv_termcap_lib+set}" = set; then
3185942a 5190 $as_echo_n "(cached) " >&6
bb70624e 5191else
3185942a
JA
5192 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
5193$as_echo_n "checking for tgetent... " >&6; }
b80f6443 5194if test "${ac_cv_func_tgetent+set}" = set; then
3185942a 5195 $as_echo_n "(cached) " >&6
b80f6443
JA
5196else
5197 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5198/* confdefs.h. */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h. */
5203/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
5204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5205#define tgetent innocuous_tgetent
5206
b80f6443 5207/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
5208 which can conflict with char tgetent (); below.
5209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 <limits.h> exists even on freestanding compilers. */
5211
5212#ifdef __STDC__
5213# include <limits.h>
5214#else
5215# include <assert.h>
5216#endif
5217
5218#undef tgetent
5219
3185942a
JA
5220/* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
b80f6443
JA
5223#ifdef __cplusplus
5224extern "C"
b80f6443 5225#endif
b80f6443
JA
5226char tgetent ();
5227/* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
3185942a 5230#if defined __stub_tgetent || defined __stub___tgetent
b80f6443 5231choke me
b80f6443
JA
5232#endif
5233
0628567a
JA
5234int
5235main ()
5236{
3185942a 5237return tgetent ();
b80f6443
JA
5238 ;
5239 return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5243if { (ac_try="$ac_link"
5244case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247esac
5248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249$as_echo "$ac_try_echo") >&5
5250 (eval "$ac_link") 2>conftest.er1
b80f6443 5251 ac_status=$?
0628567a
JA
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
3185942a
JA
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest$ac_exeext && {
5260 test "$cross_compiling" = yes ||
5261 $as_test_x conftest$ac_exeext
5262 }; then
b80f6443
JA
5263 ac_cv_func_tgetent=yes
5264else
3185942a 5265 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
3185942a 5268 ac_cv_func_tgetent=no
b80f6443 5269fi
3185942a
JA
5270
5271rm -rf conftest.dSYM
5272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5273 conftest$ac_exeext conftest.$ac_ext
b80f6443 5274fi
3185942a
JA
5275{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
5276$as_echo "$ac_cv_func_tgetent" >&6; }
5277if test "x$ac_cv_func_tgetent" = x""yes; then
b80f6443
JA
5278 bash_cv_termcap_lib=libc
5279else
3185942a
JA
5280 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5281$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
f73dda09 5282if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3185942a 5283 $as_echo_n "(cached) " >&6
bb70624e 5284else
f73dda09 5285 ac_check_lib_save_LIBS=$LIBS
bb70624e 5286LIBS="-ltermcap $LIBS"
f73dda09 5287cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
f73dda09 5293
3185942a
JA
5294/* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
f73dda09
JA
5297#ifdef __cplusplus
5298extern "C"
5299#endif
f73dda09
JA
5300char tgetent ();
5301int
5302main ()
5303{
3185942a 5304return tgetent ();
f73dda09
JA
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5310if { (ac_try="$ac_link"
5311case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316$as_echo "$ac_try_echo") >&5
5317 (eval "$ac_link") 2>conftest.er1
f73dda09 5318 ac_status=$?
0628567a
JA
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
3185942a
JA
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest$ac_exeext && {
5327 test "$cross_compiling" = yes ||
5328 $as_test_x conftest$ac_exeext
5329 }; then
f73dda09
JA
5330 ac_cv_lib_termcap_tgetent=yes
5331else
3185942a 5332 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
3185942a 5335 ac_cv_lib_termcap_tgetent=no
f73dda09 5336fi
3185942a
JA
5337
5338rm -rf conftest.dSYM
5339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5340 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5341LIBS=$ac_check_lib_save_LIBS
5342fi
3185942a
JA
5343{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5344$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
5345if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
bb70624e
JA
5346 bash_cv_termcap_lib=libtermcap
5347else
3185942a
JA
5348 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5349$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
f73dda09 5350if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3185942a 5351 $as_echo_n "(cached) " >&6
bb70624e 5352else
f73dda09
JA
5353 ac_check_lib_save_LIBS=$LIBS
5354LIBS="-ltinfo $LIBS"
5355cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5356/* confdefs.h. */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */
f73dda09 5361
3185942a
JA
5362/* Override any GCC internal prototype to avoid an error.
5363 Use char because int might match the return type of a GCC
5364 builtin and then its argument prototype would still apply. */
f73dda09
JA
5365#ifdef __cplusplus
5366extern "C"
5367#endif
f73dda09
JA
5368char tgetent ();
5369int
5370main ()
5371{
3185942a 5372return tgetent ();
f73dda09
JA
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5378if { (ac_try="$ac_link"
5379case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382esac
5383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384$as_echo "$ac_try_echo") >&5
5385 (eval "$ac_link") 2>conftest.er1
f73dda09 5386 ac_status=$?
0628567a
JA
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
3185942a
JA
5390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext && {
5395 test "$cross_compiling" = yes ||
5396 $as_test_x conftest$ac_exeext
5397 }; then
f73dda09
JA
5398 ac_cv_lib_tinfo_tgetent=yes
5399else
3185942a 5400 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
3185942a 5403 ac_cv_lib_tinfo_tgetent=no
f73dda09 5404fi
3185942a
JA
5405
5406rm -rf conftest.dSYM
5407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5408 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5409LIBS=$ac_check_lib_save_LIBS
5410fi
3185942a
JA
5411{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5412$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
5413if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
7117c2d2 5414 bash_cv_termcap_lib=libtinfo
f73dda09 5415else
3185942a
JA
5416 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5417$as_echo_n "checking for tgetent in -lcurses... " >&6; }
f73dda09 5418if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3185942a 5419 $as_echo_n "(cached) " >&6
f73dda09
JA
5420else
5421 ac_check_lib_save_LIBS=$LIBS
5422LIBS="-lcurses $LIBS"
5423cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5424/* confdefs.h. */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h. */
b72432fd 5429
3185942a
JA
5430/* Override any GCC internal prototype to avoid an error.
5431 Use char because int might match the return type of a GCC
5432 builtin and then its argument prototype would still apply. */
f73dda09
JA
5433#ifdef __cplusplus
5434extern "C"
5435#endif
f73dda09
JA
5436char tgetent ();
5437int
5438main ()
5439{
3185942a 5440return tgetent ();
f73dda09
JA
5441 ;
5442 return 0;
5443}
5444_ACEOF
5445rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5446if { (ac_try="$ac_link"
5447case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450esac
5451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452$as_echo "$ac_try_echo") >&5
5453 (eval "$ac_link") 2>conftest.er1
f73dda09 5454 ac_status=$?
0628567a
JA
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
3185942a
JA
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } && {
5460 test -z "$ac_c_werror_flag" ||
5461 test ! -s conftest.err
5462 } && test -s conftest$ac_exeext && {
5463 test "$cross_compiling" = yes ||
5464 $as_test_x conftest$ac_exeext
5465 }; then
f73dda09
JA
5466 ac_cv_lib_curses_tgetent=yes
5467else
3185942a 5468 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5469sed 's/^/| /' conftest.$ac_ext >&5
5470
3185942a 5471 ac_cv_lib_curses_tgetent=no
f73dda09 5472fi
3185942a
JA
5473
5474rm -rf conftest.dSYM
5475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5476 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5477LIBS=$ac_check_lib_save_LIBS
5478fi
3185942a
JA
5479{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5480$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
5481if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
bb70624e
JA
5482 bash_cv_termcap_lib=libcurses
5483else
3185942a
JA
5484 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5485$as_echo_n "checking for tgetent in -lncurses... " >&6; }
f73dda09 5486if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3185942a 5487 $as_echo_n "(cached) " >&6
bb70624e 5488else
f73dda09 5489 ac_check_lib_save_LIBS=$LIBS
bb70624e 5490LIBS="-lncurses $LIBS"
f73dda09 5491cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
f73dda09 5497
3185942a
JA
5498/* Override any GCC internal prototype to avoid an error.
5499 Use char because int might match the return type of a GCC
5500 builtin and then its argument prototype would still apply. */
f73dda09
JA
5501#ifdef __cplusplus
5502extern "C"
5503#endif
f73dda09
JA
5504char tgetent ();
5505int
5506main ()
5507{
3185942a 5508return tgetent ();
f73dda09
JA
5509 ;
5510 return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
5514if { (ac_try="$ac_link"
5515case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5520$as_echo "$ac_try_echo") >&5
5521 (eval "$ac_link") 2>conftest.er1
f73dda09 5522 ac_status=$?
0628567a
JA
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
3185942a
JA
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest$ac_exeext && {
5531 test "$cross_compiling" = yes ||
5532 $as_test_x conftest$ac_exeext
5533 }; then
f73dda09
JA
5534 ac_cv_lib_ncurses_tgetent=yes
5535else
3185942a 5536 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
3185942a 5539 ac_cv_lib_ncurses_tgetent=no
f73dda09 5540fi
3185942a
JA
5541
5542rm -rf conftest.dSYM
5543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 5544 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
5545LIBS=$ac_check_lib_save_LIBS
5546fi
3185942a
JA
5547{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5548$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
5549if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
f73dda09 5550 bash_cv_termcap_lib=libncurses
bb70624e 5551else
f73dda09 5552 bash_cv_termcap_lib=gnutermcap
bb70624e 5553fi
bb70624e 5554
bb70624e
JA
5555fi
5556
5557fi
5558
5559fi
5560
5561fi
5562
b80f6443
JA
5563fi
5564
bb70624e 5565if test "X$_bash_needmsg" = "Xyes"; then
3185942a
JA
5566{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
5567$as_echo_n "checking which library has the termcap functions... " >&6; }
bb70624e 5568fi
3185942a
JA
5569{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
5570$as_echo "using $bash_cv_termcap_lib" >&6; }
bb70624e
JA
5571if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5572LDFLAGS="$LDFLAGS -L./lib/termcap"
5573TERMCAP_LIB="./lib/termcap/libtermcap.a"
5574TERMCAP_DEP="./lib/termcap/libtermcap.a"
5575elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5576TERMCAP_LIB=-ltermcap
5577TERMCAP_DEP=
f73dda09
JA
5578elif test $bash_cv_termcap_lib = libtinfo; then
5579TERMCAP_LIB=-ltinfo
5580TERMCAP_DEP=
bb70624e
JA
5581elif test $bash_cv_termcap_lib = libncurses; then
5582TERMCAP_LIB=-lncurses
5583TERMCAP_DEP=
b80f6443
JA
5584elif test $bash_cv_termcap_lib = libc; then
5585TERMCAP_LIB=
5586TERMCAP_DEP=
bb70624e
JA
5587else
5588TERMCAP_LIB=-lcurses
5589TERMCAP_DEP=
5590fi
5591
b80f6443
JA
5592
5593
5594
3185942a
JA
5595{ $as_echo "$as_me:$LINENO: checking version of installed readline library" >&5
5596$as_echo_n "checking version of installed readline library... " >&6; }
f73dda09
JA
5597
5598# What a pain in the ass this is.
5599
5600# save cpp and ld options
5601_save_CFLAGS="$CFLAGS"
5602_save_LDFLAGS="$LDFLAGS"
5603_save_LIBS="$LIBS"
5604
5605# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
5606# allows the caller to do something like $_rl_prefix=$withval if the user
5607# specifies --with-installed-readline=PREFIX as an argument to configure
5608
5609if test -z "$ac_cv_rl_prefix"; then
5610test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
5611fi
5612
5613eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
5614eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
5615
5616LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
5617CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
5618LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
5619
b80f6443 5620if test "${ac_cv_rl_version+set}" = set; then
3185942a 5621 $as_echo_n "(cached) " >&6
b80f6443
JA
5622else
5623 if test "$cross_compiling" = yes; then
f73dda09
JA
5624 ac_cv_rl_version='4.2'
5625else
5626 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
5627/* confdefs.h. */
5628_ACEOF
5629cat confdefs.h >>conftest.$ac_ext
5630cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h. */
f73dda09
JA
5632
5633#include <stdio.h>
5634#include <readline/readline.h>
5635
95732b49
JA
5636extern int rl_gnu_readline_p;
5637
f73dda09
JA
5638main()
5639{
5640 FILE *fp;
5641 fp = fopen("conftest.rlv", "w");
95732b49
JA
5642 if (fp == 0)
5643 exit(1);
5644 if (rl_gnu_readline_p != 1)
5645 fprintf(fp, "0.0\n");
5646 else
5647 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
f73dda09
JA
5648 fclose(fp);
5649 exit(0);
5650}
5651
5652_ACEOF
5653rm -f conftest$ac_exeext
3185942a
JA
5654if { (ac_try="$ac_link"
5655case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658esac
5659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660$as_echo "$ac_try_echo") >&5
5661 (eval "$ac_link") 2>&5
f73dda09 5662 ac_status=$?
3185942a 5663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 5664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
5665 { (case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668esac
5669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5670$as_echo "$ac_try_echo") >&5
5671 (eval "$ac_try") 2>&5
f73dda09 5672 ac_status=$?
3185942a 5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
5674 (exit $ac_status); }; }; then
5675 ac_cv_rl_version=`cat conftest.rlv`
5676else
3185942a
JA
5677 $as_echo "$as_me: program exited with status $ac_status" >&5
5678$as_echo "$as_me: failed program was:" >&5
0628567a
JA
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
b80f6443 5681( exit $ac_status )
f73dda09
JA
5682ac_cv_rl_version='0.0'
5683fi
3185942a
JA
5684rm -rf conftest.dSYM
5685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 5686fi
3185942a
JA
5687
5688
b80f6443
JA
5689fi
5690
f73dda09
JA
5691
5692CFLAGS="$_save_CFLAGS"
5693LDFLAGS="$_save_LDFLAGS"
5694LIBS="$_save_LIBS"
5695
5696RL_MAJOR=0
5697RL_MINOR=0
5698
5699# (
5700case "$ac_cv_rl_version" in
57012*|3*|4*|5*|6*|7*|8*|9*)
5702 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
7117c2d2 5703 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
f73dda09
JA
5704 ;;
5705esac
5706
5707# (((
5708case $RL_MAJOR in
5709[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
5710[0-9]) _RL_MAJOR=0$RL_MAJOR ;;
5711*) _RL_MAJOR=00 ;;
5712esac
5713
5714# (((
5715case $RL_MINOR in
5716[0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
5717[0-9]) _RL_MINOR=0$RL_MINOR ;;
5718*) _RL_MINOR=00 ;;
5719esac
5720
5721RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
5722
5723# Readline versions greater than 4.2 have these defines in readline.h
5724
5725if test $ac_cv_rl_version = '0.0' ; then
3185942a
JA
5726 { $as_echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
5727$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
f73dda09
JA
5728elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
5729 # set these for use by the caller
5730 RL_PREFIX=$ac_cv_rl_prefix
5731 RL_LIBDIR=$ac_cv_rl_libdir
5732 RL_INCLUDEDIR=$ac_cv_rl_includedir
3185942a
JA
5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5734$as_echo "$ac_cv_rl_version" >&6; }
f73dda09
JA
5735else
5736
b80f6443
JA
5737
5738cat >>confdefs.h <<_ACEOF
f73dda09 5739#define RL_READLINE_VERSION $RL_VERSION
b80f6443 5740_ACEOF
f73dda09 5741
b80f6443
JA
5742
5743cat >>confdefs.h <<_ACEOF
f73dda09 5744#define RL_VERSION_MAJOR $RL_MAJOR
b80f6443 5745_ACEOF
f73dda09 5746
b80f6443
JA
5747
5748cat >>confdefs.h <<_ACEOF
f73dda09 5749#define RL_VERSION_MINOR $RL_MINOR
b80f6443
JA
5750_ACEOF
5751
5752
5753
5754
5755
f73dda09
JA
5756
5757# set these for use by the caller
5758RL_PREFIX=$ac_cv_rl_prefix
5759RL_LIBDIR=$ac_cv_rl_libdir
5760RL_INCLUDEDIR=$ac_cv_rl_includedir
bb70624e 5761
3185942a
JA
5762{ $as_echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
5763$as_echo "$ac_cv_rl_version" >&6; }
bb70624e 5764
f73dda09 5765fi
bb70624e 5766
b80f6443 5767
f73dda09 5768 case "$ac_cv_rl_version" in
b80f6443 5769 5*|6*|7*|8*|9*) ;;
f73dda09 5770 *) opt_with_installed_readline=no
3185942a
JA
5771 { $as_echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
5772$as_echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
5773 { $as_echo "$as_me:$LINENO: WARNING: using private bash version" >&5
5774$as_echo "$as_me: WARNING: using private bash version" >&2;}
bb70624e
JA
5775 ;;
5776 esac
bb70624e
JA
5777fi
5778
95732b49 5779TILDE_LIB=-ltilde
bb70624e 5780if test $opt_readline = yes; then
b80f6443 5781 cat >>confdefs.h <<\_ACEOF
bb70624e 5782#define READLINE 1
b80f6443 5783_ACEOF
bb70624e 5784
f73dda09 5785 if test "$opt_with_installed_readline" != "no" ; then
b80f6443
JA
5786 case "$opt_with_installed_readline" in
5787 yes) RL_INCLUDE= ;;
5788 *) case "$RL_INCLUDEDIR" in
5789 /usr/include) ;;
5790 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5791 esac
5792 ;;
f73dda09 5793 esac
bb70624e 5794 READLINE_DEP=
95732b49
JA
5795 READLINE_LIB=-lreadline
5796 # section for OS versions that don't allow unresolved symbols
5797 # to be compiled into dynamic libraries.
5798 case "$host_os" in
5799 cygwin*) TILDE_LIB= ;;
5800 esac
bb70624e
JA
5801 else
5802 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5803 READLINE_DEP='$(READLINE_LIBRARY)'
95732b49
JA
5804 # section for OS versions that ship an older/broken version of
5805 # readline as a standard dynamic library and don't allow a
5806 # static version specified as -llibname to override the
5807 # dynamic version
5808 case "${host_os}" in
f1be666c 5809 darwin[89]*) READLINE_LIB='${READLINE_LIBRARY}' ;;
95732b49
JA
5810 *) READLINE_LIB=-lreadline ;;
5811 esac
bb70624e
JA
5812 fi
5813else
5814 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5815 READLINE_LIB= READLINE_DEP=
5816fi
5817if test $opt_history = yes || test $opt_bang_history = yes; then
5818 if test $opt_history = yes; then
b80f6443 5819 cat >>confdefs.h <<\_ACEOF
bb70624e 5820#define HISTORY 1
b80f6443 5821_ACEOF
bb70624e
JA
5822
5823 fi
5824 if test $opt_bang_history = yes; then
b80f6443 5825 cat >>confdefs.h <<\_ACEOF
bb70624e 5826#define BANG_HISTORY 1
b80f6443 5827_ACEOF
b72432fd
JA
5828
5829 fi
f73dda09
JA
5830 if test "$opt_with_installed_readline" != "no"; then
5831 HIST_LIBDIR=$RL_LIBDIR
b72432fd 5832 HISTORY_DEP=
95732b49 5833 HISTORY_LIB=-lhistory
b80f6443
JA
5834 case "$opt_with_installed_readline" in
5835 yes) RL_INCLUDE= ;;
5836 *) case "$RL_INCLUDEDIR" in
5837 /usr/include) ;;
5838 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
5839 esac
5840 ;;
f73dda09 5841 esac
b72432fd
JA
5842 else
5843 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5844 HISTORY_DEP='$(HISTORY_LIBRARY)'
95732b49
JA
5845 # section for OS versions that ship an older version of
5846 # readline as a standard dynamic library and don't allow a
5847 # static version specified as -llibname to override the
5848 # dynamic version
5849 case "${host_os}" in
3185942a 5850 darwin[89]*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
95732b49
JA
5851 *) HISTORY_LIB=-lhistory ;;
5852 esac
b72432fd
JA
5853 fi
5854else
5855 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
5856 HISTORY_LIB= HISTORY_DEP=
5857fi
5858
b80f6443
JA
5859
5860
5861
5862
5863
5864
5865
5866
5867
95732b49 5868
ccc6cda3
JA
5869# Find a good install program. We prefer a C program (faster),
5870# so one script is as good as another. But avoid the broken or
5871# incompatible versions:
5872# SysV /etc/install, /usr/sbin/install
5873# SunOS /usr/etc/install
5874# IRIX /sbin/install
5875# AIX /bin/install
f73dda09 5876# AmigaOS /C/install, which installs bootblocks on floppy discs
bb70624e 5877# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ccc6cda3
JA
5878# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5879# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0628567a 5880# OS/2's system install, which has a completely different semantic
ccc6cda3 5881# ./install, which can be erroneously created by make from ./install.sh.
3185942a
JA
5882# Reject install programs that cannot install multiple files.
5883{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5884$as_echo_n "checking for a BSD-compatible install... " >&6; }
ccc6cda3 5885if test -z "$INSTALL"; then
f73dda09 5886if test "${ac_cv_path_install+set}" = set; then
3185942a 5887 $as_echo_n "(cached) " >&6
ccc6cda3 5888else
b80f6443
JA
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 # Account for people who put trailing slashes in PATH elements.
5895case $as_dir/ in
5896 ./ | .// | /cC/* | \
5897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0628567a 5898 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
b80f6443
JA
5899 /usr/ucb/* ) ;;
5900 *)
5901 # OSF1 and SCO ODT 3.0 have their own names for install.
5902 # Don't use installbsd from OSF since it installs stuff as root
5903 # by default.
5904 for ac_prog in ginstall scoinst install; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 5906 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
0628567a
JA
5907 if test $ac_prog = install &&
5908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5909 # AIX install. It has an incompatible calling convention.
5910 :
5911 elif test $ac_prog = install &&
5912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5913 # program-specific install script used by HP pwplus--don't use.
5914 :
5915 else
3185942a
JA
5916 rm -rf conftest.one conftest.two conftest.dir
5917 echo one > conftest.one
5918 echo two > conftest.two
5919 mkdir conftest.dir
5920 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5921 test -s conftest.one && test -s conftest.two &&
5922 test -s conftest.dir/conftest.one &&
5923 test -s conftest.dir/conftest.two
5924 then
5925 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5926 break 3
5927 fi
0628567a
JA
5928 fi
5929 fi
ccc6cda3 5930 done
b80f6443
JA
5931 done
5932 ;;
5933esac
3185942a 5934
b80f6443 5935done
3185942a 5936IFS=$as_save_IFS
b80f6443 5937
3185942a 5938rm -rf conftest.one conftest.two conftest.dir
ccc6cda3
JA
5939
5940fi
5941 if test "${ac_cv_path_install+set}" = set; then
f73dda09 5942 INSTALL=$ac_cv_path_install
ccc6cda3 5943 else
3185942a
JA
5944 # As a last resort, use the slow shell script. Don't cache a
5945 # value for INSTALL within a source directory, because that will
ccc6cda3 5946 # break other packages using the cache if that directory is
3185942a 5947 # removed, or if the value is a relative name.
f73dda09 5948 INSTALL=$ac_install_sh
ccc6cda3
JA
5949 fi
5950fi
3185942a
JA
5951{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5952$as_echo "$INSTALL" >&6; }
ccc6cda3
JA
5953
5954# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5955# It thinks the first close brace ends the variable substitution.
5956test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5957
f73dda09 5958test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
bb70624e 5959
ccc6cda3
JA
5960test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5961
5962# Extract the first word of "ar", so it can be a program name with args.
5963set dummy ar; ac_word=$2
3185942a
JA
5964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 5966if test "${ac_cv_prog_AR+set}" = set; then
3185942a 5967 $as_echo_n "(cached) " >&6
ccc6cda3
JA
5968else
5969 if test -n "$AR"; then
5970 ac_cv_prog_AR="$AR" # Let the user override the test.
5971else
b80f6443
JA
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 5979 ac_cv_prog_AR=""
3185942a 5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
5981 break 2
5982 fi
5983done
f73dda09 5984done
3185942a 5985IFS=$as_save_IFS
f73dda09
JA
5986
5987 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
ccc6cda3
JA
5988fi
5989fi
f73dda09 5990AR=$ac_cv_prog_AR
ccc6cda3 5991if test -n "$AR"; then
3185942a
JA
5992 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5993$as_echo "$AR" >&6; }
ccc6cda3 5994else
3185942a
JA
5995 { $as_echo "$as_me:$LINENO: result: no" >&5
5996$as_echo "no" >&6; }
ccc6cda3
JA
5997fi
5998
3185942a 5999
b72432fd 6000test -n "$ARFLAGS" || ARFLAGS="cr"
f73dda09
JA
6001if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6003set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3185942a
JA
6004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 6006if test "${ac_cv_prog_RANLIB+set}" = set; then
3185942a 6007 $as_echo_n "(cached) " >&6
ccc6cda3
JA
6008else
6009 if test -n "$RANLIB"; then
6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6011else
b80f6443
JA
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3185942a 6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
6021 break 2
6022 fi
6023done
f73dda09 6024done
3185942a 6025IFS=$as_save_IFS
f73dda09 6026
ccc6cda3
JA
6027fi
6028fi
f73dda09 6029RANLIB=$ac_cv_prog_RANLIB
ccc6cda3 6030if test -n "$RANLIB"; then
3185942a
JA
6031 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6032$as_echo "$RANLIB" >&6; }
f73dda09 6033else
3185942a
JA
6034 { $as_echo "$as_me:$LINENO: result: no" >&5
6035$as_echo "no" >&6; }
f73dda09
JA
6036fi
6037
3185942a 6038
f73dda09
JA
6039fi
6040if test -z "$ac_cv_prog_RANLIB"; then
6041 ac_ct_RANLIB=$RANLIB
6042 # Extract the first word of "ranlib", so it can be a program name with args.
6043set dummy ranlib; ac_word=$2
3185942a
JA
6044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6045$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 6046if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3185942a 6047 $as_echo_n "(cached) " >&6
f73dda09
JA
6048else
6049 if test -n "$ac_ct_RANLIB"; then
6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6051else
b80f6443
JA
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 6059 ac_cv_prog_ac_ct_RANLIB="ranlib"
3185942a 6060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
6061 break 2
6062 fi
6063done
f73dda09 6064done
3185942a 6065IFS=$as_save_IFS
f73dda09 6066
f73dda09
JA
6067fi
6068fi
6069ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6070if test -n "$ac_ct_RANLIB"; then
3185942a
JA
6071 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6072$as_echo "$ac_ct_RANLIB" >&6; }
ccc6cda3 6073else
3185942a
JA
6074 { $as_echo "$as_me:$LINENO: result: no" >&5
6075$as_echo "no" >&6; }
f73dda09
JA
6076fi
6077
3185942a
JA
6078 if test "x$ac_ct_RANLIB" = x; then
6079 RANLIB=":"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082yes:)
6083{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087 RANLIB=$ac_ct_RANLIB
6088 fi
f73dda09
JA
6089else
6090 RANLIB="$ac_cv_prog_RANLIB"
ccc6cda3
JA
6091fi
6092
6093for ac_prog in 'bison -y' byacc
6094do
f73dda09 6095 # Extract the first word of "$ac_prog", so it can be a program name with args.
ccc6cda3 6096set dummy $ac_prog; ac_word=$2
3185942a
JA
6097{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
f73dda09 6099if test "${ac_cv_prog_YACC+set}" = set; then
3185942a 6100 $as_echo_n "(cached) " >&6
ccc6cda3
JA
6101else
6102 if test -n "$YACC"; then
6103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6104else
b80f6443
JA
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 6112 ac_cv_prog_YACC="$ac_prog"
3185942a 6113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
6114 break 2
6115 fi
6116done
f73dda09 6117done
3185942a 6118IFS=$as_save_IFS
f73dda09 6119
ccc6cda3
JA
6120fi
6121fi
f73dda09 6122YACC=$ac_cv_prog_YACC
ccc6cda3 6123if test -n "$YACC"; then
3185942a
JA
6124 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6125$as_echo "$YACC" >&6; }
ccc6cda3 6126else
3185942a
JA
6127 { $as_echo "$as_me:$LINENO: result: no" >&5
6128$as_echo "no" >&6; }
ccc6cda3
JA
6129fi
6130
3185942a 6131
f73dda09 6132 test -n "$YACC" && break
ccc6cda3
JA
6133done
6134test -n "$YACC" || YACC="yacc"
6135
3185942a
JA
6136{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6137$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6138set x ${MAKE-make}
6139ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6140if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6141 $as_echo_n "(cached) " >&6
ccc6cda3 6142else
b80f6443 6143 cat >conftest.make <<\_ACEOF
3185942a 6144SHELL = /bin/sh
ccc6cda3 6145all:
3185942a 6146 @echo '@@@%%%=$(MAKE)=@@@%%%'
b80f6443 6147_ACEOF
ccc6cda3 6148# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3185942a
JA
6149case `${MAKE-make} -f conftest.make 2>/dev/null` in
6150 *@@@%%%=?*=@@@%%%*)
6151 eval ac_cv_prog_make_${ac_make}_set=yes;;
6152 *)
6153 eval ac_cv_prog_make_${ac_make}_set=no;;
6154esac
f73dda09 6155rm -f conftest.make
ccc6cda3 6156fi
3185942a
JA
6157if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6158 { $as_echo "$as_me:$LINENO: result: yes" >&5
6159$as_echo "yes" >&6; }
ccc6cda3
JA
6160 SET_MAKE=
6161else
3185942a
JA
6162 { $as_echo "$as_me:$LINENO: result: no" >&5
6163$as_echo "no" >&6; }
ccc6cda3
JA
6164 SET_MAKE="MAKE=${MAKE-make}"
6165fi
6166
b80f6443 6167
b72432fd 6168case "$host_os" in
bb70624e 6169opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
b72432fd
JA
6170*) MAKE_SHELL=/bin/sh ;;
6171esac
6172
6173
95732b49
JA
6174if test x$SIZE = x; then
6175 if test x$ac_tool_prefix = x; then
6176 SIZE=size
6177 else
6178 SIZE=${ac_tool_prefix}size
6179 save_IFS=$IFS ; IFS=:
6180 size_found=0
6181 for dir in $PATH; do
6182 if test -x $dir/$SIZE ; then
6183 size_found=1
6184 break
6185 fi
6186 done
6187 if test $size_found -eq 0; then
6188 SIZE=:
6189 fi
6190 IFS=$save_IFS
6191 fi
6192fi
6193
6194
b80f6443
JA
6195cat >>confdefs.h <<\_ACEOF
6196#define _GNU_SOURCE 1
f73dda09 6197_ACEOF
ccc6cda3 6198
f73dda09 6199
3185942a
JA
6200{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6201$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
0628567a 6202if test "${ac_cv_c_const+set}" = set; then
3185942a 6203 $as_echo_n "(cached) " >&6
95732b49 6204else
0628567a
JA
6205 cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h. */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h. */
6211
6212int
6213main ()
f73dda09
JA
6214{
6215/* FIXME: Include the comments suggested by Paul. */
6216#ifndef __cplusplus
6217 /* Ultrix mips cc rejects this. */
6218 typedef int charset[2];
3185942a 6219 const charset cs;
f73dda09 6220 /* SunOS 4.1.1 cc rejects this. */
3185942a
JA
6221 char const *const *pcpcc;
6222 char **ppc;
f73dda09
JA
6223 /* NEC SVR4.0.2 mips cc rejects this. */
6224 struct point {int x, y;};
6225 static struct point const zero = {0,0};
6226 /* AIX XL C 1.02.0.0 rejects this.
6227 It does not let you subtract one const X* pointer from another in
6228 an arm of an if-expression whose if-part is not a constant
6229 expression */
6230 const char *g = "string";
3185942a 6231 pcpcc = &g + (g ? g-g : 0);
f73dda09 6232 /* HPUX 7.0 cc rejects these. */
3185942a
JA
6233 ++pcpcc;
6234 ppc = (char**) pcpcc;
6235 pcpcc = (char const *const *) ppc;
f73dda09
JA
6236 { /* SCO 3.2v4 cc rejects this. */
6237 char *t;
6238 char const *s = 0 ? (char *) 0 : (char const *) 0;
6239
6240 *t++ = 0;
3185942a 6241 if (s) return 0;
f73dda09
JA
6242 }
6243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6244 int x[] = {25, 17};
6245 const int *foo = &x[0];
6246 ++foo;
6247 }
6248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6249 typedef const int *iptr;
6250 iptr p = 0;
6251 ++p;
6252 }
6253 { /* AIX XL C 1.02.0.0 rejects this saying
6254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6255 struct s { int j; const int *ap[3]; };
6256 struct s *b; b->j = 5;
6257 }
6258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6259 const int foo = 10;
3185942a 6260 if (!foo) return 0;
f73dda09 6261 }
3185942a 6262 return !cs[0] && !zero.x;
ccc6cda3
JA
6263#endif
6264
f73dda09
JA
6265 ;
6266 return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext
3185942a
JA
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276$as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
f73dda09 6278 ac_status=$?
0628567a
JA
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
3185942a
JA
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
f73dda09
JA
6287 ac_cv_c_const=yes
6288else
3185942a 6289 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
3185942a 6292 ac_cv_c_const=no
f73dda09 6293fi
3185942a
JA
6294
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 6296fi
3185942a
JA
6297{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6298$as_echo "$ac_cv_c_const" >&6; }
f73dda09
JA
6299if test $ac_cv_c_const = no; then
6300
b80f6443 6301cat >>confdefs.h <<\_ACEOF
3185942a 6302#define const /**/
b80f6443 6303_ACEOF
ccc6cda3
JA
6304
6305fi
6306
3185942a
JA
6307{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6308$as_echo_n "checking for inline... " >&6; }
f73dda09 6309if test "${ac_cv_c_inline+set}" = set; then
3185942a 6310 $as_echo_n "(cached) " >&6
ccc6cda3 6311else
f73dda09
JA
6312 ac_cv_c_inline=no
6313for ac_kw in inline __inline__ __inline; do
6314 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6315/* confdefs.h. */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h. */
f73dda09 6320#ifndef __cplusplus
0628567a
JA
6321typedef int foo_t;
6322static $ac_kw foo_t static_foo () {return 0; }
6323$ac_kw foo_t foo () {return 0; }
ccc6cda3
JA
6324#endif
6325
f73dda09
JA
6326_ACEOF
6327rm -f conftest.$ac_objext
3185942a
JA
6328if { (ac_try="$ac_compile"
6329case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332esac
6333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334$as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
f73dda09 6336 ac_status=$?
0628567a
JA
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
3185942a
JA
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_c_inline=$ac_kw
f73dda09 6346else
3185942a 6347 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
3185942a 6350
f73dda09 6351fi
3185942a
JA
6352
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 test "$ac_cv_c_inline" != no && break
f73dda09 6355done
ccc6cda3
JA
6356
6357fi
3185942a
JA
6358{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6359$as_echo "$ac_cv_c_inline" >&6; }
0628567a
JA
6360
6361
f73dda09
JA
6362case $ac_cv_c_inline in
6363 inline | yes) ;;
0628567a
JA
6364 *)
6365 case $ac_cv_c_inline in
6366 no) ac_val=;;
6367 *) ac_val=$ac_cv_c_inline;;
6368 esac
6369 cat >>confdefs.h <<_ACEOF
6370#ifndef __cplusplus
6371#define inline $ac_val
6372#endif
b80f6443 6373_ACEOF
0628567a 6374 ;;
f73dda09 6375esac
ccc6cda3 6376
3185942a
JA
6377
6378 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6379$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
f73dda09 6380if test "${ac_cv_c_bigendian+set}" = set; then
3185942a 6381 $as_echo_n "(cached) " >&6
ccc6cda3 6382else
3185942a
JA
6383 ac_cv_c_bigendian=unknown
6384 # See if we're dealing with a universal compiler.
6385 cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h. */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h. */
6391#ifndef __APPLE_CC__
6392 not a universal capable compiler
6393 #endif
6394 typedef int dummy;
6395
6396_ACEOF
6397rm -f conftest.$ac_objext
6398if { (ac_try="$ac_compile"
6399case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402esac
6403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6404$as_echo "$ac_try_echo") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6415
6416 # Check for potential -arch flags. It is not universal unless
6417 # there are some -arch flags. Note that *ppc* also matches
6418 # ppc64. This check is also rather less than ideal.
6419 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
6420 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
6421 esac
6422else
6423 $as_echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426
6427fi
6428
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 if test $ac_cv_c_bigendian = unknown; then
6431 # See if sys/param.h defines the BYTE_ORDER macro.
6432 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6433/* confdefs.h. */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h. */
f73dda09 6438#include <sys/types.h>
3185942a 6439 #include <sys/param.h>
ccc6cda3 6440
f73dda09
JA
6441int
6442main ()
6443{
3185942a
JA
6444#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6446 && LITTLE_ENDIAN)
6447 bogus endian macros
6448 #endif
ccc6cda3 6449
f73dda09
JA
6450 ;
6451 return 0;
6452}
6453_ACEOF
6454rm -f conftest.$ac_objext
3185942a
JA
6455if { (ac_try="$ac_compile"
6456case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461$as_echo "$ac_try_echo") >&5
6462 (eval "$ac_compile") 2>conftest.er1
f73dda09 6463 ac_status=$?
0628567a
JA
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
3185942a
JA
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
f73dda09 6472 # It does; now see whether it defined to BIG_ENDIAN or not.
3185942a 6473 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6474/* confdefs.h. */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
f73dda09 6479#include <sys/types.h>
3185942a 6480 #include <sys/param.h>
ccc6cda3 6481
f73dda09
JA
6482int
6483main ()
6484{
6485#if BYTE_ORDER != BIG_ENDIAN
3185942a
JA
6486 not big endian
6487 #endif
ccc6cda3 6488
f73dda09
JA
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493rm -f conftest.$ac_objext
3185942a
JA
6494if { (ac_try="$ac_compile"
6495case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498esac
6499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6500$as_echo "$ac_try_echo") >&5
6501 (eval "$ac_compile") 2>conftest.er1
f73dda09 6502 ac_status=$?
0628567a
JA
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
3185942a
JA
6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
f73dda09 6511 ac_cv_c_bigendian=yes
ccc6cda3 6512else
3185942a 6513 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
3185942a 6516 ac_cv_c_bigendian=no
ccc6cda3 6517fi
3185942a
JA
6518
6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6520else
3185942a 6521 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6522sed 's/^/| /' conftest.$ac_ext >&5
6523
3185942a
JA
6524
6525fi
6526
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 if test $ac_cv_c_bigendian = unknown; then
6530 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6531 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
3185942a
JA
6537#include <limits.h>
6538
b80f6443
JA
6539int
6540main ()
6541{
3185942a
JA
6542#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6543 bogus endian macros
6544 #endif
6545
b80f6443
JA
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext
3185942a
JA
6551if { (ac_try="$ac_compile"
6552case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555esac
6556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557$as_echo "$ac_try_echo") >&5
6558 (eval "$ac_compile") 2>conftest.er1
b80f6443 6559 ac_status=$?
0628567a
JA
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
3185942a
JA
6563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 # It does; now see whether it defined to _BIG_ENDIAN or not.
6569 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
3185942a
JA
6575#include <limits.h>
6576
f73dda09
JA
6577int
6578main ()
ccc6cda3 6579{
3185942a
JA
6580#ifndef _BIG_ENDIAN
6581 not big endian
6582 #endif
6583
6584 ;
6585 return 0;
ccc6cda3 6586}
f73dda09 6587_ACEOF
3185942a
JA
6588rm -f conftest.$ac_objext
6589if { (ac_try="$ac_compile"
6590case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593esac
6594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6595$as_echo "$ac_try_echo") >&5
6596 (eval "$ac_compile") 2>conftest.er1
f73dda09 6597 ac_status=$?
3185942a
JA
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.$ac_objext; then
6606 ac_cv_c_bigendian=yes
ccc6cda3 6607else
3185942a 6608 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
3185942a 6611 ac_cv_c_bigendian=no
f73dda09 6612fi
3185942a
JA
6613
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615else
6616 $as_echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
ccc6cda3
JA
6620fi
6621
3185942a
JA
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 fi
6624 if test $ac_cv_c_bigendian = unknown; then
6625 # Compile a test program.
6626 if test "$cross_compiling" = yes; then
6627 # Try to guess by grepping values from an object file.
6628 cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
6634short int ascii_mm[] =
6635 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6636 short int ascii_ii[] =
6637 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6638 int use_ascii (int i) {
6639 return ascii_mm[i] + ascii_ii[i];
6640 }
6641 short int ebcdic_ii[] =
6642 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6643 short int ebcdic_mm[] =
6644 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6645 int use_ebcdic (int i) {
6646 return ebcdic_mm[i] + ebcdic_ii[i];
6647 }
6648 extern int foo;
6649
6650int
6651main ()
6652{
6653return use_ascii (foo) == use_ebcdic (foo);
6654 ;
6655 return 0;
6656}
6657_ACEOF
6658rm -f conftest.$ac_objext
6659if { (ac_try="$ac_compile"
6660case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663esac
6664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6665$as_echo "$ac_try_echo") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6677 ac_cv_c_bigendian=yes
6678 fi
6679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6680 if test "$ac_cv_c_bigendian" = unknown; then
6681 ac_cv_c_bigendian=no
6682 else
6683 # finding both strings is unlikely to happen, but who knows?
6684 ac_cv_c_bigendian=unknown
6685 fi
6686 fi
6687else
6688 $as_echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691
6692fi
6693
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695else
6696 cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
6702$ac_includes_default
6703int
6704main ()
6705{
6706
6707 /* Are we little or big endian? From Harbison&Steele. */
6708 union
6709 {
6710 long int l;
6711 char c[sizeof (long int)];
6712 } u;
6713 u.l = 1;
6714 return u.c[sizeof (long int) - 1] == 1;
6715
6716 ;
6717 return 0;
6718}
6719_ACEOF
6720rm -f conftest$ac_exeext
6721if { (ac_try="$ac_link"
6722case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6725esac
6726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6727$as_echo "$ac_try_echo") >&5
6728 (eval "$ac_link") 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735esac
6736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737$as_echo "$ac_try_echo") >&5
6738 (eval "$ac_try") 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_c_bigendian=no
6743else
6744 $as_echo "$as_me: program exited with status $ac_status" >&5
6745$as_echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748( exit $ac_status )
6749ac_cv_c_bigendian=yes
6750fi
6751rm -rf conftest.dSYM
6752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6753fi
6754
6755
6756 fi
6757fi
6758{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6759$as_echo "$ac_cv_c_bigendian" >&6; }
6760 case $ac_cv_c_bigendian in #(
6761 yes)
6762 cat >>confdefs.h <<\_ACEOF
f73dda09 6763#define WORDS_BIGENDIAN 1
b80f6443 6764_ACEOF
3185942a
JA
6765;; #(
6766 no)
6767 ;; #(
6768 universal)
6769
6770cat >>confdefs.h <<\_ACEOF
6771#define AC_APPLE_UNIVERSAL_BUILD 1
6772_ACEOF
6773
6774 ;; #(
6775 *)
6776 { { $as_echo "$as_me:$LINENO: error: unknown endianness
6777 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6778$as_echo "$as_me: error: unknown endianness
6779 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
b80f6443 6780 { (exit 1); exit 1; }; } ;;
3185942a 6781 esac
b80f6443 6782
3185942a
JA
6783{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6784$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
b80f6443 6785if test "${ac_cv_c_stringize+set}" = set; then
3185942a 6786 $as_echo_n "(cached) " >&6
ccc6cda3 6787else
f73dda09 6788 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
f73dda09 6794#define x(y) #y
ccc6cda3 6795
f73dda09
JA
6796char *s = x(teststring);
6797_ACEOF
6798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 6799 $EGREP "#teststring" >/dev/null 2>&1; then
f73dda09 6800 ac_cv_c_stringize=no
ccc6cda3 6801else
f73dda09 6802 ac_cv_c_stringize=yes
ccc6cda3 6803fi
f73dda09 6804rm -f conftest*
ccc6cda3
JA
6805
6806fi
3185942a
JA
6807{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6808$as_echo "$ac_cv_c_stringize" >&6; }
f73dda09 6809if test $ac_cv_c_stringize = yes; then
ccc6cda3 6810
b80f6443 6811cat >>confdefs.h <<\_ACEOF
f73dda09 6812#define HAVE_STRINGIZE 1
b80f6443 6813_ACEOF
ccc6cda3
JA
6814
6815fi
6816
3185942a
JA
6817
6818
6819 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
6820$as_echo_n "checking for long double with more range or precision than double... " >&6; }
6821if test "${ac_cv_type_long_double_wider+set}" = set; then
6822 $as_echo_n "(cached) " >&6
ccc6cda3 6823else
f73dda09 6824 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6825/* confdefs.h. */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h. */
b80f6443 6830#include <float.h>
3185942a
JA
6831 long double const a[] =
6832 {
6833 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
6834 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
6835 };
6836 long double
6837 f (long double x)
6838 {
6839 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
6840 + (x ? f (x) : 'c'));
6841 }
6842
f73dda09
JA
6843int
6844main ()
6845{
3185942a
JA
6846static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
6847 + (DBL_MANT_DIG < LDBL_MANT_DIG)
6848 - (LDBL_MAX_EXP < DBL_MAX_EXP)
6849 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
6850 && (int) LDBL_EPSILON == 0
6851 )];
b80f6443
JA
6852test_array [0] = 0
6853
6854 ;
6855 return 0;
ccc6cda3 6856}
f73dda09 6857_ACEOF
b80f6443 6858rm -f conftest.$ac_objext
3185942a
JA
6859if { (ac_try="$ac_compile"
6860case "(($ac_try" in
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6863esac
6864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6865$as_echo "$ac_try_echo") >&5
6866 (eval "$ac_compile") 2>conftest.er1
f73dda09 6867 ac_status=$?
0628567a
JA
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
3185942a
JA
6871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6876 ac_cv_type_long_double_wider=yes
ccc6cda3 6877else
3185942a 6878 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
3185942a 6881 ac_cv_type_long_double_wider=no
f73dda09 6882fi
3185942a
JA
6883
6884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6885fi
3185942a
JA
6886{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
6887$as_echo "$ac_cv_type_long_double_wider" >&6; }
6888 if test $ac_cv_type_long_double_wider = yes; then
6889
6890cat >>confdefs.h <<\_ACEOF
6891#define HAVE_LONG_DOUBLE_WIDER 1
6892_ACEOF
6893
6894 fi
6895
6896 ac_cv_c_long_double=$ac_cv_type_long_double_wider
6897 if test $ac_cv_c_long_double = yes; then
ccc6cda3 6898
b80f6443 6899cat >>confdefs.h <<\_ACEOF
f73dda09 6900#define HAVE_LONG_DOUBLE 1
b80f6443 6901_ACEOF
ccc6cda3 6902
3185942a 6903 fi
ccc6cda3 6904
3185942a
JA
6905{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6906$as_echo_n "checking for function prototypes... " >&6; }
6907if test "$ac_cv_prog_cc_c89" != no; then
6908 { $as_echo "$as_me:$LINENO: result: yes" >&5
6909$as_echo "yes" >&6; }
ccc6cda3 6910
b80f6443 6911cat >>confdefs.h <<\_ACEOF
f73dda09 6912#define PROTOTYPES 1
f73dda09 6913_ACEOF
ccc6cda3 6914
f73dda09 6915
b80f6443
JA
6916cat >>confdefs.h <<\_ACEOF
6917#define __PROTOTYPES 1
f73dda09 6918_ACEOF
f73dda09 6919
f73dda09 6920else
3185942a
JA
6921 { $as_echo "$as_me:$LINENO: result: no" >&5
6922$as_echo "no" >&6; }
f73dda09 6923fi
ccc6cda3 6924
ccc6cda3 6925
3185942a
JA
6926{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
6927$as_echo_n "checking whether char is unsigned... " >&6; }
f73dda09 6928if test "${ac_cv_c_char_unsigned+set}" = set; then
3185942a 6929 $as_echo_n "(cached) " >&6
ccc6cda3 6930else
f73dda09 6931 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
f73dda09
JA
6937$ac_includes_default
6938int
ccc6cda3
JA
6939main ()
6940{
b80f6443
JA
6941static int test_array [1 - 2 * !(((char) -1) < 0)];
6942test_array [0] = 0
6943
f73dda09
JA
6944 ;
6945 return 0;
ccc6cda3 6946}
f73dda09
JA
6947_ACEOF
6948rm -f conftest.$ac_objext
3185942a
JA
6949if { (ac_try="$ac_compile"
6950case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953esac
6954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955$as_echo "$ac_try_echo") >&5
6956 (eval "$ac_compile") 2>conftest.er1
f73dda09 6957 ac_status=$?
0628567a
JA
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
3185942a
JA
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
f73dda09 6966 ac_cv_c_char_unsigned=no
ccc6cda3 6967else
3185942a 6968 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
3185942a 6971 ac_cv_c_char_unsigned=yes
ccc6cda3 6972fi
3185942a
JA
6973
6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 6975fi
3185942a
JA
6976{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
6977$as_echo "$ac_cv_c_char_unsigned" >&6; }
f73dda09 6978if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
b80f6443 6979 cat >>confdefs.h <<\_ACEOF
f73dda09 6980#define __CHAR_UNSIGNED__ 1
b80f6443 6981_ACEOF
ccc6cda3 6982
ccc6cda3
JA
6983fi
6984
ccc6cda3 6985
b80f6443
JA
6986
6987 MKINSTALLDIRS=
6988 if test -n "$ac_aux_dir"; then
6989 case "$ac_aux_dir" in
6990 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6991 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6992 esac
6993 fi
6994 if test -z "$MKINSTALLDIRS"; then
6995 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6996 fi
6997
6998
6999
3185942a
JA
7000 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7001$as_echo_n "checking whether NLS is requested... " >&6; }
7002 # Check whether --enable-nls was given.
b80f6443 7003if test "${enable_nls+set}" = set; then
3185942a 7004 enableval=$enable_nls; USE_NLS=$enableval
ccc6cda3 7005else
b80f6443 7006 USE_NLS=yes
3185942a
JA
7007fi
7008
7009 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7010$as_echo "$USE_NLS" >&6; }
b80f6443
JA
7011
7012
7013
7014
7015
7016
7017# Prepare PATH_SEPARATOR.
7018# The user is always right.
7019if test "${PATH_SEPARATOR+set}" != set; then
7020 echo "#! /bin/sh" >conf$$.sh
7021 echo "exit 0" >>conf$$.sh
7022 chmod +x conf$$.sh
7023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7024 PATH_SEPARATOR=';'
7025 else
7026 PATH_SEPARATOR=:
7027 fi
7028 rm -f conf$$.sh
ccc6cda3 7029fi
ccc6cda3 7030
b80f6443
JA
7031# Find out how to test for executable files. Don't use a zero-byte file,
7032# as systems may use methods other than mode bits to determine executability.
7033cat >conf$$.file <<_ASEOF
7034#! /bin/sh
7035exit 0
7036_ASEOF
7037chmod +x conf$$.file
7038if test -x conf$$.file >/dev/null 2>&1; then
7039 ac_executable_p="test -x"
7040else
7041 ac_executable_p="test -f"
f73dda09 7042fi
b80f6443 7043rm -f conf$$.file
ccc6cda3 7044
b80f6443
JA
7045# Extract the first word of "msgfmt", so it can be a program name with args.
7046set dummy msgfmt; ac_word=$2
3185942a
JA
7047{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7049if test "${ac_cv_path_MSGFMT+set}" = set; then
3185942a 7050 $as_echo_n "(cached) " >&6
ccc6cda3 7051else
b80f6443
JA
7052 case "$MSGFMT" in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7058 for ac_dir in $PATH; do
7059 IFS="$ac_save_IFS"
7060 test -z "$ac_dir" && ac_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7063 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7064 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7065 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7066 break 2
7067 fi
7068 fi
7069 done
7070 done
7071 IFS="$ac_save_IFS"
7072 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7073 ;;
7074esac
7075fi
7076MSGFMT="$ac_cv_path_MSGFMT"
7077if test "$MSGFMT" != ":"; then
3185942a
JA
7078 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7079$as_echo "$MSGFMT" >&6; }
f73dda09 7080else
3185942a
JA
7081 { $as_echo "$as_me:$LINENO: result: no" >&5
7082$as_echo "no" >&6; }
f73dda09 7083fi
b80f6443
JA
7084
7085 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7086set dummy gmsgfmt; ac_word=$2
3185942a
JA
7087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7089if test "${ac_cv_path_GMSGFMT+set}" = set; then
3185942a 7090 $as_echo_n "(cached) " >&6
b80f6443
JA
7091else
7092 case $GMSGFMT in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 7104 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3185942a 7105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
7106 break 2
7107 fi
7108done
7109done
3185942a 7110IFS=$as_save_IFS
b80f6443
JA
7111
7112 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7113 ;;
7114esac
7115fi
7116GMSGFMT=$ac_cv_path_GMSGFMT
b80f6443 7117if test -n "$GMSGFMT"; then
3185942a
JA
7118 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7119$as_echo "$GMSGFMT" >&6; }
b80f6443 7120else
3185942a
JA
7121 { $as_echo "$as_me:$LINENO: result: no" >&5
7122$as_echo "no" >&6; }
f73dda09 7123fi
b80f6443
JA
7124
7125
7126
3185942a 7127
b80f6443
JA
7128# Prepare PATH_SEPARATOR.
7129# The user is always right.
7130if test "${PATH_SEPARATOR+set}" != set; then
7131 echo "#! /bin/sh" >conf$$.sh
7132 echo "exit 0" >>conf$$.sh
7133 chmod +x conf$$.sh
7134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7135 PATH_SEPARATOR=';'
7136 else
7137 PATH_SEPARATOR=:
7138 fi
7139 rm -f conf$$.sh
f73dda09 7140fi
ccc6cda3 7141
b80f6443
JA
7142# Find out how to test for executable files. Don't use a zero-byte file,
7143# as systems may use methods other than mode bits to determine executability.
7144cat >conf$$.file <<_ASEOF
7145#! /bin/sh
7146exit 0
7147_ASEOF
7148chmod +x conf$$.file
7149if test -x conf$$.file >/dev/null 2>&1; then
7150 ac_executable_p="test -x"
ccc6cda3 7151else
b80f6443
JA
7152 ac_executable_p="test -f"
7153fi
7154rm -f conf$$.file
7155
7156# Extract the first word of "xgettext", so it can be a program name with args.
7157set dummy xgettext; ac_word=$2
3185942a
JA
7158{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7160if test "${ac_cv_path_XGETTEXT+set}" = set; then
3185942a 7161 $as_echo_n "(cached) " >&6
ccc6cda3 7162else
b80f6443
JA
7163 case "$XGETTEXT" in
7164 [\\/]* | ?:[\\/]*)
7165 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7166 ;;
7167 *)
7168 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7169 for ac_dir in $PATH; do
7170 IFS="$ac_save_IFS"
7171 test -z "$ac_dir" && ac_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7174 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7175 (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
7176 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7177 break 2
7178 fi
7179 fi
7180 done
7181 done
7182 IFS="$ac_save_IFS"
7183 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7184 ;;
7185esac
7186fi
7187XGETTEXT="$ac_cv_path_XGETTEXT"
7188if test "$XGETTEXT" != ":"; then
3185942a
JA
7189 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7190$as_echo "$XGETTEXT" >&6; }
b80f6443 7191else
3185942a
JA
7192 { $as_echo "$as_me:$LINENO: result: no" >&5
7193$as_echo "no" >&6; }
b80f6443 7194fi
f73dda09 7195
b80f6443
JA
7196 rm -f messages.po
7197
7198
7199# Prepare PATH_SEPARATOR.
7200# The user is always right.
7201if test "${PATH_SEPARATOR+set}" != set; then
7202 echo "#! /bin/sh" >conf$$.sh
7203 echo "exit 0" >>conf$$.sh
7204 chmod +x conf$$.sh
7205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7206 PATH_SEPARATOR=';'
7207 else
7208 PATH_SEPARATOR=:
7209 fi
7210 rm -f conf$$.sh
7211fi
7212
7213# Find out how to test for executable files. Don't use a zero-byte file,
7214# as systems may use methods other than mode bits to determine executability.
7215cat >conf$$.file <<_ASEOF
7216#! /bin/sh
7217exit 0
7218_ASEOF
7219chmod +x conf$$.file
7220if test -x conf$$.file >/dev/null 2>&1; then
7221 ac_executable_p="test -x"
7222else
7223 ac_executable_p="test -f"
7224fi
7225rm -f conf$$.file
7226
7227# Extract the first word of "msgmerge", so it can be a program name with args.
7228set dummy msgmerge; ac_word=$2
3185942a
JA
7229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7230$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 7231if test "${ac_cv_path_MSGMERGE+set}" = set; then
3185942a 7232 $as_echo_n "(cached) " >&6
b80f6443
JA
7233else
7234 case "$MSGMERGE" in
7235 [\\/]* | ?:[\\/]*)
7236 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7237 ;;
7238 *)
7239 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7240 for ac_dir in $PATH; do
7241 IFS="$ac_save_IFS"
7242 test -z "$ac_dir" && ac_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7245 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7246 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7247 break 2
7248 fi
7249 fi
7250 done
7251 done
7252 IFS="$ac_save_IFS"
7253 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7254 ;;
7255esac
7256fi
7257MSGMERGE="$ac_cv_path_MSGMERGE"
7258if test "$MSGMERGE" != ":"; then
3185942a
JA
7259 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7260$as_echo "$MSGMERGE" >&6; }
b80f6443 7261else
3185942a
JA
7262 { $as_echo "$as_me:$LINENO: result: no" >&5
7263$as_echo "no" >&6; }
b80f6443
JA
7264fi
7265
7266
7267 if test "$GMSGFMT" != ":"; then
7268 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7269 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7270 : ;
7271 else
7272 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3185942a
JA
7273 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7274$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
b80f6443
JA
7275 GMSGFMT=":"
7276 fi
7277 fi
7278
7279 if test "$XGETTEXT" != ":"; then
7280 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7281 (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
7282 : ;
7283 else
3185942a
JA
7284 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7285$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
b80f6443
JA
7286 XGETTEXT=":"
7287 fi
7288 rm -f messages.po
7289 fi
7290
3185942a 7291 ac_config_commands="$ac_config_commands default-1"
b80f6443
JA
7292
7293
3185942a
JA
7294{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
7295$as_echo_n "checking for off_t... " >&6; }
b80f6443 7296if test "${ac_cv_type_off_t+set}" = set; then
3185942a 7297 $as_echo_n "(cached) " >&6
b80f6443 7298else
3185942a
JA
7299 ac_cv_type_off_t=no
7300cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7301/* confdefs.h. */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h. */
b80f6443 7306$ac_includes_default
f73dda09
JA
7307int
7308main ()
7309{
b80f6443 7310if (sizeof (off_t))
3185942a 7311 return 0;
f73dda09
JA
7312 ;
7313 return 0;
7314}
7315_ACEOF
b80f6443 7316rm -f conftest.$ac_objext
3185942a
JA
7317if { (ac_try="$ac_compile"
7318case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321esac
7322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7323$as_echo "$ac_try_echo") >&5
7324 (eval "$ac_compile") 2>conftest.er1
f73dda09 7325 ac_status=$?
0628567a
JA
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
3185942a
JA
7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 cat >conftest.$ac_ext <<_ACEOF
7335/* confdefs.h. */
7336_ACEOF
7337cat confdefs.h >>conftest.$ac_ext
7338cat >>conftest.$ac_ext <<_ACEOF
7339/* end confdefs.h. */
7340$ac_includes_default
7341int
7342main ()
7343{
7344if (sizeof ((off_t)))
7345 return 0;
7346 ;
7347 return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext
7351if { (ac_try="$ac_compile"
7352case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355esac
7356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357$as_echo "$ac_try_echo") >&5
7358 (eval "$ac_compile") 2>conftest.er1
f73dda09 7359 ac_status=$?
3185942a
JA
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.$ac_objext; then
7368 :
7369else
7370 $as_echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 ac_cv_type_off_t=yes
7374fi
7375
7376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 7377else
3185942a 7378 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
3185942a 7381
f73dda09 7382fi
3185942a
JA
7383
7384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 7385fi
3185942a
JA
7386{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7387$as_echo "$ac_cv_type_off_t" >&6; }
7388if test "x$ac_cv_type_off_t" = x""yes; then
b80f6443
JA
7389 :
7390else
7391
7392cat >>confdefs.h <<_ACEOF
3185942a 7393#define off_t long int
b80f6443 7394_ACEOF
ccc6cda3 7395
f73dda09 7396fi
ccc6cda3 7397
3185942a
JA
7398{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
7399$as_echo_n "checking for size_t... " >&6; }
b80f6443 7400if test "${ac_cv_type_size_t+set}" = set; then
3185942a 7401 $as_echo_n "(cached) " >&6
f73dda09 7402else
3185942a
JA
7403 ac_cv_type_size_t=no
7404cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7405/* confdefs.h. */
7406_ACEOF
7407cat confdefs.h >>conftest.$ac_ext
7408cat >>conftest.$ac_ext <<_ACEOF
7409/* end confdefs.h. */
b80f6443 7410$ac_includes_default
f73dda09
JA
7411int
7412main ()
7413{
b80f6443 7414if (sizeof (size_t))
3185942a 7415 return 0;
f73dda09
JA
7416 ;
7417 return 0;
7418}
7419_ACEOF
7420rm -f conftest.$ac_objext
3185942a
JA
7421if { (ac_try="$ac_compile"
7422case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425esac
7426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7427$as_echo "$ac_try_echo") >&5
7428 (eval "$ac_compile") 2>conftest.er1
f73dda09 7429 ac_status=$?
0628567a
JA
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
3185942a
JA
7433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } && {
7435 test -z "$ac_c_werror_flag" ||
7436 test ! -s conftest.err
7437 } && test -s conftest.$ac_objext; then
7438 cat >conftest.$ac_ext <<_ACEOF
7439/* confdefs.h. */
7440_ACEOF
7441cat confdefs.h >>conftest.$ac_ext
7442cat >>conftest.$ac_ext <<_ACEOF
7443/* end confdefs.h. */
7444$ac_includes_default
7445int
7446main ()
7447{
7448if (sizeof ((size_t)))
7449 return 0;
7450 ;
7451 return 0;
7452}
7453_ACEOF
7454rm -f conftest.$ac_objext
7455if { (ac_try="$ac_compile"
7456case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459esac
7460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461$as_echo "$ac_try_echo") >&5
7462 (eval "$ac_compile") 2>conftest.er1
f73dda09 7463 ac_status=$?
3185942a
JA
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7472 :
7473else
7474 $as_echo "$as_me: failed program was:" >&5
7475sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 ac_cv_type_size_t=yes
7478fi
7479
7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7481else
3185942a 7482 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
3185942a 7485
ccc6cda3 7486fi
3185942a
JA
7487
7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7489fi
3185942a
JA
7490{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7491$as_echo "$ac_cv_type_size_t" >&6; }
7492if test "x$ac_cv_type_size_t" = x""yes; then
b80f6443
JA
7493 :
7494else
ccc6cda3 7495
b80f6443 7496cat >>confdefs.h <<_ACEOF
3185942a 7497#define size_t unsigned int
b80f6443 7498_ACEOF
ccc6cda3 7499
ccc6cda3
JA
7500fi
7501
b80f6443
JA
7502# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7503# for constant arguments. Useless!
3185942a
JA
7504{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
7505$as_echo_n "checking for working alloca.h... " >&6; }
b80f6443 7506if test "${ac_cv_working_alloca_h+set}" = set; then
3185942a 7507 $as_echo_n "(cached) " >&6
f73dda09
JA
7508else
7509 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7510/* confdefs.h. */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h. */
b80f6443
JA
7515#include <alloca.h>
7516int
7517main ()
7518{
7519char *p = (char *) alloca (2 * sizeof (int));
3185942a 7520 if (p) return 0;
b80f6443
JA
7521 ;
7522 return 0;
7523}
7524_ACEOF
7525rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
7526if { (ac_try="$ac_link"
7527case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
7531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532$as_echo "$ac_try_echo") >&5
7533 (eval "$ac_link") 2>conftest.er1
f73dda09 7534 ac_status=$?
0628567a
JA
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
3185942a
JA
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext && {
7543 test "$cross_compiling" = yes ||
7544 $as_test_x conftest$ac_exeext
7545 }; then
b80f6443 7546 ac_cv_working_alloca_h=yes
ccc6cda3 7547else
3185942a 7548 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7549sed 's/^/| /' conftest.$ac_ext >&5
7550
3185942a 7551 ac_cv_working_alloca_h=no
ccc6cda3 7552fi
3185942a
JA
7553
7554rm -rf conftest.dSYM
7555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 7556 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 7557fi
3185942a
JA
7558{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7559$as_echo "$ac_cv_working_alloca_h" >&6; }
b80f6443
JA
7560if test $ac_cv_working_alloca_h = yes; then
7561
7562cat >>confdefs.h <<\_ACEOF
7563#define HAVE_ALLOCA_H 1
7564_ACEOF
ccc6cda3
JA
7565
7566fi
7567
3185942a
JA
7568{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
7569$as_echo_n "checking for alloca... " >&6; }
b80f6443 7570if test "${ac_cv_func_alloca_works+set}" = set; then
3185942a 7571 $as_echo_n "(cached) " >&6
f73dda09
JA
7572else
7573 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7574/* confdefs.h. */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h. */
f73dda09
JA
7579#ifdef __GNUC__
7580# define alloca __builtin_alloca
ccc6cda3 7581#else
f73dda09
JA
7582# ifdef _MSC_VER
7583# include <malloc.h>
7584# define alloca _alloca
7585# else
3185942a 7586# ifdef HAVE_ALLOCA_H
f73dda09
JA
7587# include <alloca.h>
7588# else
7589# ifdef _AIX
7590 #pragma alloca
7591# else
7592# ifndef alloca /* predefined by HP cc +Olibcalls */
7593char *alloca ();
7594# endif
7595# endif
7596# endif
7597# endif
ccc6cda3
JA
7598#endif
7599
f73dda09
JA
7600int
7601main ()
7602{
7603char *p = (char *) alloca (1);
3185942a 7604 if (p) return 0;
f73dda09
JA
7605 ;
7606 return 0;
7607}
7608_ACEOF
7609rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
7610if { (ac_try="$ac_link"
7611case "(($ac_try" in
7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7614esac
7615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7616$as_echo "$ac_try_echo") >&5
7617 (eval "$ac_link") 2>conftest.er1
f73dda09 7618 ac_status=$?
0628567a
JA
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
3185942a
JA
7622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest$ac_exeext && {
7627 test "$cross_compiling" = yes ||
7628 $as_test_x conftest$ac_exeext
7629 }; then
f73dda09 7630 ac_cv_func_alloca_works=yes
ccc6cda3 7631else
3185942a 7632 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
3185942a 7635 ac_cv_func_alloca_works=no
ccc6cda3 7636fi
3185942a
JA
7637
7638rm -rf conftest.dSYM
7639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 7640 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 7641fi
3185942a
JA
7642{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7643$as_echo "$ac_cv_func_alloca_works" >&6; }
f73dda09
JA
7644
7645if test $ac_cv_func_alloca_works = yes; then
ccc6cda3 7646
b80f6443 7647cat >>confdefs.h <<\_ACEOF
f73dda09 7648#define HAVE_ALLOCA 1
b80f6443 7649_ACEOF
f73dda09 7650
ccc6cda3 7651else
f73dda09
JA
7652 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7653# that cause trouble. Some versions do not even contain alloca or
7654# contain a buggy version. If you still want to use their alloca,
7655# use ar to extract alloca.o from them instead of compiling alloca.c.
ccc6cda3 7656
3185942a 7657ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ccc6cda3 7658
b80f6443 7659cat >>confdefs.h <<\_ACEOF
f73dda09 7660#define C_ALLOCA 1
b80f6443 7661_ACEOF
f73dda09 7662
b80f6443 7663
3185942a
JA
7664{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7665$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
f73dda09 7666if test "${ac_cv_os_cray+set}" = set; then
3185942a 7667 $as_echo_n "(cached) " >&6
ccc6cda3 7668else
f73dda09 7669 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7670/* confdefs.h. */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h. */
3185942a 7675#if defined CRAY && ! defined CRAY2
f73dda09
JA
7676webecray
7677#else
7678wenotbecray
7679#endif
ccc6cda3 7680
f73dda09
JA
7681_ACEOF
7682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 7683 $EGREP "webecray" >/dev/null 2>&1; then
f73dda09 7684 ac_cv_os_cray=yes
ccc6cda3 7685else
f73dda09 7686 ac_cv_os_cray=no
ccc6cda3
JA
7687fi
7688rm -f conftest*
ccc6cda3
JA
7689
7690fi
3185942a
JA
7691{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7692$as_echo "$ac_cv_os_cray" >&6; }
f73dda09
JA
7693if test $ac_cv_os_cray = yes; then
7694 for ac_func in _getb67 GETB67 getb67; do
3185942a
JA
7695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7696{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7697$as_echo_n "checking for $ac_func... " >&6; }
7698if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7699 $as_echo_n "(cached) " >&6
ccc6cda3 7700else
f73dda09 7701 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7702/* confdefs.h. */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h. */
7707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7709#define $ac_func innocuous_$ac_func
7710
ccc6cda3 7711/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
7712 which can conflict with char $ac_func (); below.
7713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7714 <limits.h> exists even on freestanding compilers. */
7715
7716#ifdef __STDC__
7717# include <limits.h>
7718#else
7719# include <assert.h>
7720#endif
7721
7722#undef $ac_func
7723
3185942a
JA
7724/* Override any GCC internal prototype to avoid an error.
7725 Use char because int might match the return type of a GCC
7726 builtin and then its argument prototype would still apply. */
f73dda09
JA
7727#ifdef __cplusplus
7728extern "C"
7729#endif
f73dda09 7730char $ac_func ();
ccc6cda3
JA
7731/* The GNU C library defines this for functions which it implements
7732 to always fail with ENOSYS. Some functions are actually named
7733 something starting with __ and the normal name is an alias. */
3185942a 7734#if defined __stub_$ac_func || defined __stub___$ac_func
ccc6cda3 7735choke me
ccc6cda3
JA
7736#endif
7737
0628567a
JA
7738int
7739main ()
7740{
3185942a 7741return $ac_func ();
f73dda09
JA
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
7747if { (ac_try="$ac_link"
7748case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753$as_echo "$ac_try_echo") >&5
7754 (eval "$ac_link") 2>conftest.er1
f73dda09 7755 ac_status=$?
0628567a
JA
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
3185942a
JA
7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest$ac_exeext && {
7764 test "$cross_compiling" = yes ||
7765 $as_test_x conftest$ac_exeext
7766 }; then
f73dda09
JA
7767 eval "$as_ac_var=yes"
7768else
3185942a 7769 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
3185942a 7772 eval "$as_ac_var=no"
f73dda09 7773fi
3185942a
JA
7774
7775rm -rf conftest.dSYM
7776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 7777 conftest$ac_exeext conftest.$ac_ext
f73dda09 7778fi
3185942a
JA
7779ac_res=`eval 'as_val=${'$as_ac_var'}
7780 $as_echo "$as_val"'`
7781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7782$as_echo "$ac_res" >&6; }
7783as_val=`eval 'as_val=${'$as_ac_var'}
7784 $as_echo "$as_val"'`
7785 if test "x$as_val" = x""yes; then
f73dda09 7786
b80f6443 7787cat >>confdefs.h <<_ACEOF
f73dda09 7788#define CRAY_STACKSEG_END $ac_func
b80f6443 7789_ACEOF
ccc6cda3 7790
f73dda09 7791 break
ccc6cda3 7792fi
ccc6cda3 7793
f73dda09 7794 done
ccc6cda3
JA
7795fi
7796
3185942a
JA
7797{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7798$as_echo_n "checking stack direction for C alloca... " >&6; }
f73dda09 7799if test "${ac_cv_c_stack_direction+set}" = set; then
3185942a 7800 $as_echo_n "(cached) " >&6
ccc6cda3 7801else
f73dda09
JA
7802 if test "$cross_compiling" = yes; then
7803 ac_cv_c_stack_direction=0
7804else
7805 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
3185942a 7811$ac_includes_default
f73dda09
JA
7812int
7813find_stack_direction ()
7814{
7815 static char *addr = 0;
7816 auto char dummy;
7817 if (addr == 0)
7818 {
7819 addr = &dummy;
7820 return find_stack_direction ();
7821 }
7822 else
7823 return (&dummy > addr) ? 1 : -1;
7824}
ccc6cda3 7825
f73dda09
JA
7826int
7827main ()
7828{
3185942a 7829 return find_stack_direction () < 0;
f73dda09
JA
7830}
7831_ACEOF
7832rm -f conftest$ac_exeext
3185942a
JA
7833if { (ac_try="$ac_link"
7834case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7839$as_echo "$ac_try_echo") >&5
7840 (eval "$ac_link") 2>&5
f73dda09 7841 ac_status=$?
3185942a 7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 7843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849$as_echo "$ac_try_echo") >&5
7850 (eval "$ac_try") 2>&5
f73dda09 7851 ac_status=$?
3185942a 7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
7853 (exit $ac_status); }; }; then
7854 ac_cv_c_stack_direction=1
ccc6cda3 7855else
3185942a
JA
7856 $as_echo "$as_me: program exited with status $ac_status" >&5
7857$as_echo "$as_me: failed program was:" >&5
0628567a
JA
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
b80f6443 7860( exit $ac_status )
f73dda09 7861ac_cv_c_stack_direction=-1
ccc6cda3 7862fi
3185942a
JA
7863rm -rf conftest.dSYM
7864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 7865fi
3185942a
JA
7866
7867
f73dda09 7868fi
3185942a
JA
7869{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7870$as_echo "$ac_cv_c_stack_direction" >&6; }
ccc6cda3 7871
b80f6443 7872cat >>confdefs.h <<_ACEOF
f73dda09 7873#define STACK_DIRECTION $ac_cv_c_stack_direction
b80f6443
JA
7874_ACEOF
7875
ccc6cda3 7876
ccc6cda3
JA
7877fi
7878
b80f6443
JA
7879
7880
7881for ac_header in stdlib.h unistd.h
7882do
3185942a
JA
7883as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7886$as_echo_n "checking for $ac_header... " >&6; }
7887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7888 $as_echo_n "(cached) " >&6
7889fi
7890ac_res=`eval 'as_val=${'$as_ac_Header'}
7891 $as_echo "$as_val"'`
7892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7893$as_echo "$ac_res" >&6; }
ccc6cda3 7894else
b80f6443 7895 # Is the header compilable?
3185942a
JA
7896{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7897$as_echo_n "checking $ac_header usability... " >&6; }
f73dda09 7898cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
f73dda09 7904$ac_includes_default
b80f6443 7905#include <$ac_header>
f73dda09
JA
7906_ACEOF
7907rm -f conftest.$ac_objext
3185942a
JA
7908if { (ac_try="$ac_compile"
7909case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912esac
7913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7914$as_echo "$ac_try_echo") >&5
7915 (eval "$ac_compile") 2>conftest.er1
f73dda09 7916 ac_status=$?
0628567a
JA
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
3185942a
JA
7920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
b80f6443 7925 ac_header_compiler=yes
f73dda09 7926else
3185942a 7927 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
3185942a 7930 ac_header_compiler=no
f73dda09 7931fi
3185942a
JA
7932
7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7935$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
7936
7937# Is the header present?
3185942a
JA
7938{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7939$as_echo_n "checking $ac_header presence... " >&6; }
f73dda09 7940cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
b80f6443
JA
7946#include <$ac_header>
7947_ACEOF
3185942a
JA
7948if { (ac_try="$ac_cpp conftest.$ac_ext"
7949case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952esac
7953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954$as_echo "$ac_try_echo") >&5
7955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 7956 ac_status=$?
0628567a 7957 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
7958 rm -f conftest.er1
7959 cat conftest.err >&5
3185942a
JA
7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } >/dev/null && {
7962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 }; then
b80f6443 7965 ac_header_preproc=yes
f73dda09 7966else
3185942a 7967 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
b80f6443
JA
7970 ac_header_preproc=no
7971fi
3185942a 7972
b80f6443 7973rm -f conftest.err conftest.$ac_ext
3185942a
JA
7974{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7975$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
7976
7977# So? What about this header?
0628567a
JA
7978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7979 yes:no: )
3185942a
JA
7980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7981$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7983$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
7984 ac_header_preproc=yes
7985 ;;
7986 no:yes:* )
3185942a
JA
7987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7988$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7990$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7992$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7994$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7996$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7998$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7999 ( cat <<\_ASBOX
0628567a
JA
8000## ------------------------------- ##
8001## Report this to bug-bash@gnu.org ##
8002## ------------------------------- ##
8003_ASBOX
3185942a 8004 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 8005 ;;
b80f6443 8006esac
3185942a
JA
8007{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8008$as_echo_n "checking for $ac_header... " >&6; }
8009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8010 $as_echo_n "(cached) " >&6
ccc6cda3 8011else
0628567a 8012 eval "$as_ac_Header=\$ac_header_preproc"
ccc6cda3 8013fi
3185942a
JA
8014ac_res=`eval 'as_val=${'$as_ac_Header'}
8015 $as_echo "$as_val"'`
8016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8017$as_echo "$ac_res" >&6; }
f73dda09 8018
ccc6cda3 8019fi
3185942a
JA
8020as_val=`eval 'as_val=${'$as_ac_Header'}
8021 $as_echo "$as_val"'`
8022 if test "x$as_val" = x""yes; then
b80f6443 8023 cat >>confdefs.h <<_ACEOF
3185942a 8024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 8025_ACEOF
ccc6cda3 8026
cce855bc 8027fi
ccc6cda3 8028
b80f6443
JA
8029done
8030
8031
8032for ac_func in getpagesize
8033do
3185942a
JA
8034as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8035{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8036$as_echo_n "checking for $ac_func... " >&6; }
8037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8038 $as_echo_n "(cached) " >&6
f73dda09
JA
8039else
8040 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8041/* confdefs.h. */
8042_ACEOF
8043cat confdefs.h >>conftest.$ac_ext
8044cat >>conftest.$ac_ext <<_ACEOF
8045/* end confdefs.h. */
8046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8048#define $ac_func innocuous_$ac_func
8049
f73dda09 8050/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
8051 which can conflict with char $ac_func (); below.
8052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8053 <limits.h> exists even on freestanding compilers. */
8054
8055#ifdef __STDC__
8056# include <limits.h>
8057#else
8058# include <assert.h>
8059#endif
8060
8061#undef $ac_func
8062
3185942a
JA
8063/* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
f73dda09
JA
8066#ifdef __cplusplus
8067extern "C"
8068#endif
f73dda09 8069char $ac_func ();
f73dda09
JA
8070/* The GNU C library defines this for functions which it implements
8071 to always fail with ENOSYS. Some functions are actually named
8072 something starting with __ and the normal name is an alias. */
3185942a 8073#if defined __stub_$ac_func || defined __stub___$ac_func
f73dda09 8074choke me
f73dda09
JA
8075#endif
8076
0628567a
JA
8077int
8078main ()
8079{
3185942a 8080return $ac_func ();
f73dda09
JA
8081 ;
8082 return 0;
8083}
8084_ACEOF
8085rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
8086if { (ac_try="$ac_link"
8087case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090esac
8091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8092$as_echo "$ac_try_echo") >&5
8093 (eval "$ac_link") 2>conftest.er1
f73dda09 8094 ac_status=$?
0628567a
JA
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
3185942a
JA
8098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext && {
8103 test "$cross_compiling" = yes ||
8104 $as_test_x conftest$ac_exeext
8105 }; then
f73dda09
JA
8106 eval "$as_ac_var=yes"
8107else
3185942a 8108 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
3185942a 8111 eval "$as_ac_var=no"
f73dda09 8112fi
3185942a
JA
8113
8114rm -rf conftest.dSYM
8115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 8116 conftest$ac_exeext conftest.$ac_ext
f73dda09 8117fi
3185942a
JA
8118ac_res=`eval 'as_val=${'$as_ac_var'}
8119 $as_echo "$as_val"'`
8120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8121$as_echo "$ac_res" >&6; }
8122as_val=`eval 'as_val=${'$as_ac_var'}
8123 $as_echo "$as_val"'`
8124 if test "x$as_val" = x""yes; then
b80f6443 8125 cat >>confdefs.h <<_ACEOF
3185942a 8126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 8127_ACEOF
f73dda09 8128
b80f6443
JA
8129fi
8130done
8131
3185942a
JA
8132{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8133$as_echo_n "checking for working mmap... " >&6; }
b80f6443 8134if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3185942a 8135 $as_echo_n "(cached) " >&6
b80f6443
JA
8136else
8137 if test "$cross_compiling" = yes; then
8138 ac_cv_func_mmap_fixed_mapped=no
f73dda09
JA
8139else
8140 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
b80f6443
JA
8146$ac_includes_default
8147/* malloc might have been renamed as rpl_malloc. */
8148#undef malloc
8149
8150/* Thanks to Mike Haertel and Jim Avera for this test.
8151 Here is a matrix of mmap possibilities:
8152 mmap private not fixed
8153 mmap private fixed at somewhere currently unmapped
8154 mmap private fixed at somewhere already mapped
8155 mmap shared not fixed
8156 mmap shared fixed at somewhere currently unmapped
8157 mmap shared fixed at somewhere already mapped
8158 For private mappings, we should verify that changes cannot be read()
8159 back from the file, nor mmap's back from the file at a different
8160 address. (There have been systems where private was not correctly
8161 implemented like the infamous i386 svr4.0, and systems where the
8162 VM page cache was not coherent with the file system buffer cache
8163 like early versions of FreeBSD and possibly contemporary NetBSD.)
8164 For shared mappings, we should conversely verify that changes get
8165 propagated back to all the places they're supposed to be.
8166
8167 Grep wants private fixed already mapped.
8168 The main things grep needs to know about mmap are:
8169 * does it exist and is it safe to write into the mmap'd area
8170 * how to use it (BSD variants) */
8171
8172#include <fcntl.h>
8173#include <sys/mman.h>
8174
3185942a 8175#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b80f6443 8176char *malloc ();
f73dda09 8177#endif
b80f6443
JA
8178
8179/* This mess was copied from the GNU getpagesize.h. */
3185942a 8180#ifndef HAVE_GETPAGESIZE
b80f6443 8181/* Assume that all systems that can run configure have sys/param.h. */
3185942a 8182# ifndef HAVE_SYS_PARAM_H
b80f6443
JA
8183# define HAVE_SYS_PARAM_H 1
8184# endif
8185
8186# ifdef _SC_PAGESIZE
8187# define getpagesize() sysconf(_SC_PAGESIZE)
8188# else /* no _SC_PAGESIZE */
3185942a 8189# ifdef HAVE_SYS_PARAM_H
b80f6443
JA
8190# include <sys/param.h>
8191# ifdef EXEC_PAGESIZE
8192# define getpagesize() EXEC_PAGESIZE
8193# else /* no EXEC_PAGESIZE */
8194# ifdef NBPG
8195# define getpagesize() NBPG * CLSIZE
8196# ifndef CLSIZE
8197# define CLSIZE 1
8198# endif /* no CLSIZE */
8199# else /* no NBPG */
8200# ifdef NBPC
8201# define getpagesize() NBPC
8202# else /* no NBPC */
8203# ifdef PAGESIZE
8204# define getpagesize() PAGESIZE
8205# endif /* PAGESIZE */
8206# endif /* no NBPC */
8207# endif /* no NBPG */
8208# endif /* no EXEC_PAGESIZE */
8209# else /* no HAVE_SYS_PARAM_H */
8210# define getpagesize() 8192 /* punt totally */
8211# endif /* no HAVE_SYS_PARAM_H */
8212# endif /* no _SC_PAGESIZE */
8213
8214#endif /* no HAVE_GETPAGESIZE */
ccc6cda3 8215
f73dda09
JA
8216int
8217main ()
8218{
b80f6443
JA
8219 char *data, *data2, *data3;
8220 int i, pagesize;
8221 int fd;
f73dda09 8222
b80f6443
JA
8223 pagesize = getpagesize ();
8224
8225 /* First, make a file with some known garbage in it. */
8226 data = (char *) malloc (pagesize);
8227 if (!data)
3185942a 8228 return 1;
b80f6443
JA
8229 for (i = 0; i < pagesize; ++i)
8230 *(data + i) = rand ();
8231 umask (0);
8232 fd = creat ("conftest.mmap", 0600);
8233 if (fd < 0)
3185942a 8234 return 1;
b80f6443 8235 if (write (fd, data, pagesize) != pagesize)
3185942a 8236 return 1;
b80f6443
JA
8237 close (fd);
8238
8239 /* Next, try to mmap the file at a fixed address which already has
8240 something else allocated at it. If we can, also make sure that
8241 we see the same garbage. */
8242 fd = open ("conftest.mmap", O_RDWR);
8243 if (fd < 0)
3185942a 8244 return 1;
b80f6443
JA
8245 data2 = (char *) malloc (2 * pagesize);
8246 if (!data2)
3185942a
JA
8247 return 1;
8248 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b80f6443 8249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
0628567a 8250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3185942a 8251 return 1;
b80f6443
JA
8252 for (i = 0; i < pagesize; ++i)
8253 if (*(data + i) != *(data2 + i))
3185942a 8254 return 1;
b80f6443
JA
8255
8256 /* Finally, make sure that changes to the mapped area do not
8257 percolate back to the file as seen by read(). (This is a bug on
8258 some variants of i386 svr4.0.) */
8259 for (i = 0; i < pagesize; ++i)
8260 *(data2 + i) = *(data2 + i) + 1;
8261 data3 = (char *) malloc (pagesize);
8262 if (!data3)
3185942a 8263 return 1;
b80f6443 8264 if (read (fd, data3, pagesize) != pagesize)
3185942a 8265 return 1;
b80f6443
JA
8266 for (i = 0; i < pagesize; ++i)
8267 if (*(data + i) != *(data3 + i))
3185942a 8268 return 1;
b80f6443 8269 close (fd);
3185942a 8270 return 0;
f73dda09
JA
8271}
8272_ACEOF
b80f6443 8273rm -f conftest$ac_exeext
3185942a
JA
8274if { (ac_try="$ac_link"
8275case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278esac
8279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8280$as_echo "$ac_try_echo") >&5
8281 (eval "$ac_link") 2>&5
f73dda09 8282 ac_status=$?
3185942a 8283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 8284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288esac
8289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290$as_echo "$ac_try_echo") >&5
8291 (eval "$ac_try") 2>&5
f73dda09 8292 ac_status=$?
3185942a 8293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8294 (exit $ac_status); }; }; then
b80f6443 8295 ac_cv_func_mmap_fixed_mapped=yes
f73dda09 8296else
3185942a
JA
8297 $as_echo "$as_me: program exited with status $ac_status" >&5
8298$as_echo "$as_me: failed program was:" >&5
0628567a
JA
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
b80f6443
JA
8301( exit $ac_status )
8302ac_cv_func_mmap_fixed_mapped=no
f73dda09 8303fi
3185942a
JA
8304rm -rf conftest.dSYM
8305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 8306fi
3185942a
JA
8307
8308
b80f6443 8309fi
3185942a
JA
8310{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8311$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b80f6443 8312if test $ac_cv_func_mmap_fixed_mapped = yes; then
f73dda09 8313
b80f6443
JA
8314cat >>confdefs.h <<\_ACEOF
8315#define HAVE_MMAP 1
8316_ACEOF
8317
8318fi
8319rm -f conftest.mmap
8320
8321
3185942a
JA
8322 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8323$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
b80f6443 8324if test "${ac_cv_gnu_library_2_1+set}" = set; then
3185942a 8325 $as_echo_n "(cached) " >&6
b80f6443
JA
8326else
8327 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8328/* confdefs.h. */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h. */
b80f6443
JA
8333
8334#include <features.h>
8335#ifdef __GNU_LIBRARY__
8336 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8337 Lucky GNU user
8338 #endif
8339#endif
ccc6cda3 8340
b80f6443
JA
8341_ACEOF
8342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 8343 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
b80f6443
JA
8344 ac_cv_gnu_library_2_1=yes
8345else
8346 ac_cv_gnu_library_2_1=no
ccc6cda3 8347fi
b80f6443
JA
8348rm -f conftest*
8349
8350
f73dda09 8351
ccc6cda3 8352fi
3185942a
JA
8353{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8354$as_echo "$ac_cv_gnu_library_2_1" >&6; }
ccc6cda3 8355
b80f6443
JA
8356 GLIBC21="$ac_cv_gnu_library_2_1"
8357
8358
8359
8360
3185942a
JA
8361 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8362$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
b80f6443 8363if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
3185942a 8364 $as_echo_n "(cached) " >&6
ccc6cda3 8365else
b80f6443
JA
8366
8367 if test "$cross_compiling" = yes; then
8368
8369 # Guess based on the CPU.
8370 case "$host_cpu" in
8371 alpha* | i3456786 | m68k | s390*)
8372 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8373 *)
8374 gt_cv_int_divbyzero_sigfpe="guessing no";;
8375 esac
8376
ccc6cda3 8377else
f73dda09 8378 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
b80f6443
JA
8384
8385#include <stdlib.h>
8386#include <signal.h>
8387
8388static void
8389#ifdef __cplusplus
8390sigfpe_handler (int sig)
8391#else
8392sigfpe_handler (sig) int sig;
8393#endif
f73dda09 8394{
b80f6443
JA
8395 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8396 exit (sig != SIGFPE);
8397}
8398
8399int x = 1;
8400int y = 0;
8401int z;
8402int nan;
8403
8404int main ()
8405{
8406 signal (SIGFPE, sigfpe_handler);
8407/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8408#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8409 signal (SIGTRAP, sigfpe_handler);
8410#endif
8411/* Linux/SPARC yields signal SIGILL. */
8412#if defined (__sparc__) && defined (__linux__)
8413 signal (SIGILL, sigfpe_handler);
8414#endif
8415
8416 z = x / y;
8417 nan = y / y;
8418 exit (1);
f73dda09 8419}
b80f6443 8420
f73dda09
JA
8421_ACEOF
8422rm -f conftest$ac_exeext
3185942a
JA
8423if { (ac_try="$ac_link"
8424case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8429$as_echo "$ac_try_echo") >&5
8430 (eval "$ac_link") 2>&5
f73dda09 8431 ac_status=$?
3185942a 8432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8439$as_echo "$ac_try_echo") >&5
8440 (eval "$ac_try") 2>&5
f73dda09 8441 ac_status=$?
3185942a 8442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 8443 (exit $ac_status); }; }; then
b80f6443 8444 gt_cv_int_divbyzero_sigfpe=yes
ccc6cda3 8445else
3185942a
JA
8446 $as_echo "$as_me: program exited with status $ac_status" >&5
8447$as_echo "$as_me: failed program was:" >&5
0628567a
JA
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
b80f6443
JA
8450( exit $ac_status )
8451gt_cv_int_divbyzero_sigfpe=no
ccc6cda3 8452fi
3185942a
JA
8453rm -rf conftest.dSYM
8454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
8455fi
8456
3185942a
JA
8457
8458
ccc6cda3 8459fi
3185942a
JA
8460{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8461$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
b80f6443
JA
8462 case "$gt_cv_int_divbyzero_sigfpe" in
8463 *yes) value=1;;
8464 *) value=0;;
8465 esac
ccc6cda3 8466
b80f6443
JA
8467cat >>confdefs.h <<_ACEOF
8468#define INTDIV0_RAISES_SIGFPE $value
8469_ACEOF
ccc6cda3 8470
ccc6cda3
JA
8471
8472
3185942a
JA
8473 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8474$as_echo_n "checking for inttypes.h... " >&6; }
b80f6443 8475if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
3185942a 8476 $as_echo_n "(cached) " >&6
ccc6cda3 8477else
f73dda09 8478 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8479/* confdefs.h. */
8480_ACEOF
8481cat confdefs.h >>conftest.$ac_ext
8482cat >>conftest.$ac_ext <<_ACEOF
8483/* end confdefs.h. */
f73dda09 8484#include <sys/types.h>
b80f6443 8485#include <inttypes.h>
f73dda09
JA
8486int
8487main ()
8488{
b80f6443 8489uintmax_t i = (uintmax_t) -1;
f73dda09
JA
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
3185942a
JA
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8501$as_echo "$ac_try_echo") >&5
8502 (eval "$ac_compile") 2>conftest.er1
f73dda09 8503 ac_status=$?
0628567a
JA
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
3185942a
JA
8507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
b80f6443 8512 jm_ac_cv_header_inttypes_h=yes
ccc6cda3 8513else
3185942a 8514 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
3185942a 8517 jm_ac_cv_header_inttypes_h=no
ccc6cda3 8518fi
3185942a
JA
8519
8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 8521fi
3185942a
JA
8522{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8523$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
b80f6443 8524 if test $jm_ac_cv_header_inttypes_h = yes; then
f73dda09 8525
b80f6443
JA
8526cat >>confdefs.h <<_ACEOF
8527#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8528_ACEOF
ccc6cda3 8529
b80f6443
JA
8530 fi
8531
8532
3185942a
JA
8533 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
8534$as_echo_n "checking for stdint.h... " >&6; }
b80f6443 8535if test "${jm_ac_cv_header_stdint_h+set}" = set; then
3185942a 8536 $as_echo_n "(cached) " >&6
ccc6cda3 8537else
f73dda09 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#include <sys/types.h>
8545#include <stdint.h>
f73dda09
JA
8546int
8547main ()
8548{
b80f6443 8549uintmax_t i = (uintmax_t) -1;
f73dda09
JA
8550 ;
8551 return 0;
8552}
8553_ACEOF
b80f6443 8554rm -f conftest.$ac_objext
3185942a
JA
8555if { (ac_try="$ac_compile"
8556case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
8560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561$as_echo "$ac_try_echo") >&5
8562 (eval "$ac_compile") 2>conftest.er1
f73dda09 8563 ac_status=$?
0628567a
JA
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
3185942a
JA
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
b80f6443 8572 jm_ac_cv_header_stdint_h=yes
f73dda09 8573else
3185942a 8574 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8575sed 's/^/| /' conftest.$ac_ext >&5
8576
3185942a 8577 jm_ac_cv_header_stdint_h=no
f73dda09 8578fi
3185942a
JA
8579
8580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 8581fi
3185942a
JA
8582{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8583$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
b80f6443 8584 if test $jm_ac_cv_header_stdint_h = yes; then
f73dda09 8585
b80f6443
JA
8586cat >>confdefs.h <<_ACEOF
8587#define HAVE_STDINT_H_WITH_UINTMAX 1
8588_ACEOF
f73dda09 8589
b80f6443
JA
8590 fi
8591
8592
3185942a
JA
8593 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8594$as_echo_n "checking for unsigned long long... " >&6; }
b80f6443 8595if test "${ac_cv_type_unsigned_long_long+set}" = set; then
3185942a 8596 $as_echo_n "(cached) " >&6
f73dda09
JA
8597else
8598 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h. */
b80f6443 8604unsigned long long ull = 1; int i = 63;
f73dda09
JA
8605int
8606main ()
8607{
b80f6443
JA
8608unsigned long long ullmax = (unsigned long long) -1;
8609 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
f73dda09
JA
8610 ;
8611 return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
8615if { (ac_try="$ac_link"
8616case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619esac
8620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8621$as_echo "$ac_try_echo") >&5
8622 (eval "$ac_link") 2>conftest.er1
f73dda09 8623 ac_status=$?
0628567a
JA
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
3185942a
JA
8627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } && {
8629 test -z "$ac_c_werror_flag" ||
8630 test ! -s conftest.err
8631 } && test -s conftest$ac_exeext && {
8632 test "$cross_compiling" = yes ||
8633 $as_test_x conftest$ac_exeext
8634 }; then
b80f6443 8635 ac_cv_type_unsigned_long_long=yes
f73dda09 8636else
3185942a 8637 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8638sed 's/^/| /' conftest.$ac_ext >&5
8639
3185942a 8640 ac_cv_type_unsigned_long_long=no
f73dda09 8641fi
3185942a
JA
8642
8643rm -rf conftest.dSYM
8644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 8645 conftest$ac_exeext conftest.$ac_ext
f73dda09 8646fi
3185942a
JA
8647{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8648$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
b80f6443 8649 if test $ac_cv_type_unsigned_long_long = yes; then
f73dda09 8650
b80f6443
JA
8651cat >>confdefs.h <<\_ACEOF
8652#define HAVE_UNSIGNED_LONG_LONG 1
8653_ACEOF
f73dda09 8654
b80f6443 8655 fi
7117c2d2 8656
7117c2d2 8657
b80f6443
JA
8658
8659
8660 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8661
8662 test $ac_cv_type_unsigned_long_long = yes \
8663 && ac_type='unsigned long long' \
8664 || ac_type='unsigned long'
8665
8666cat >>confdefs.h <<_ACEOF
8667#define uintmax_t $ac_type
7117c2d2 8668_ACEOF
7117c2d2 8669
b80f6443 8670 else
7117c2d2 8671
b80f6443
JA
8672cat >>confdefs.h <<\_ACEOF
8673#define HAVE_UINTMAX_T 1
8674_ACEOF
8675
8676 fi
8677
8678
3185942a
JA
8679 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
8680$as_echo_n "checking for inttypes.h... " >&6; }
b80f6443 8681if test "${gt_cv_header_inttypes_h+set}" = set; then
3185942a 8682 $as_echo_n "(cached) " >&6
f73dda09 8683else
f73dda09 8684
b80f6443 8685 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8686/* confdefs.h. */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h. */
b80f6443
JA
8691#include <sys/types.h>
8692#include <inttypes.h>
f73dda09
JA
8693int
8694main ()
8695{
f73dda09
JA
8696
8697 ;
8698 return 0;
8699}
8700_ACEOF
b80f6443 8701rm -f conftest.$ac_objext
3185942a
JA
8702if { (ac_try="$ac_compile"
8703case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706esac
8707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708$as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
f73dda09 8710 ac_status=$?
0628567a
JA
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
3185942a
JA
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
b80f6443 8719 gt_cv_header_inttypes_h=yes
f73dda09 8720else
3185942a 8721 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8722sed 's/^/| /' conftest.$ac_ext >&5
8723
3185942a 8724 gt_cv_header_inttypes_h=no
f73dda09 8725fi
3185942a
JA
8726
8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 8728
f73dda09 8729fi
3185942a
JA
8730{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8731$as_echo "$gt_cv_header_inttypes_h" >&6; }
b80f6443 8732 if test $gt_cv_header_inttypes_h = yes; then
f73dda09 8733
b80f6443
JA
8734cat >>confdefs.h <<_ACEOF
8735#define HAVE_INTTYPES_H 1
8736_ACEOF
f73dda09 8737
b80f6443 8738 fi
f73dda09 8739
b80f6443
JA
8740
8741
8742 if test $gt_cv_header_inttypes_h = yes; then
3185942a
JA
8743 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8744$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
b80f6443 8745if test "${gt_cv_inttypes_pri_broken+set}" = set; then
3185942a 8746 $as_echo_n "(cached) " >&6
f73dda09 8747else
b80f6443
JA
8748
8749 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
b80f6443
JA
8755#include <inttypes.h>
8756#ifdef PRId32
8757char *p = PRId32;
f73dda09 8758#endif
f73dda09
JA
8759
8760int
8761main ()
8762{
f73dda09
JA
8763
8764 ;
8765 return 0;
8766}
8767_ACEOF
b80f6443 8768rm -f conftest.$ac_objext
3185942a
JA
8769if { (ac_try="$ac_compile"
8770case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
8774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8775$as_echo "$ac_try_echo") >&5
8776 (eval "$ac_compile") 2>conftest.er1
f73dda09 8777 ac_status=$?
0628567a
JA
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
3185942a
JA
8781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest.$ac_objext; then
b80f6443 8786 gt_cv_inttypes_pri_broken=no
f73dda09 8787else
3185942a 8788 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
3185942a 8791 gt_cv_inttypes_pri_broken=yes
f73dda09 8792fi
3185942a
JA
8793
8794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
8795
8796fi
3185942a
JA
8797{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8798$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
b80f6443
JA
8799 fi
8800 if test "$gt_cv_inttypes_pri_broken" = yes; then
f73dda09 8801
b80f6443
JA
8802cat >>confdefs.h <<_ACEOF
8803#define PRI_MACROS_BROKEN 1
8804_ACEOF
f73dda09 8805
b80f6443 8806 fi
f73dda09 8807
b80f6443
JA
8808
8809 if test "X$prefix" = "XNONE"; then
8810 acl_final_prefix="$ac_default_prefix"
8811 else
8812 acl_final_prefix="$prefix"
8813 fi
8814 if test "X$exec_prefix" = "XNONE"; then
8815 acl_final_exec_prefix='${prefix}'
8816 else
8817 acl_final_exec_prefix="$exec_prefix"
8818 fi
8819 acl_save_prefix="$prefix"
8820 prefix="$acl_final_prefix"
8821 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8822 prefix="$acl_save_prefix"
8823
8824
3185942a 8825# Check whether --with-gnu-ld was given.
b80f6443 8826if test "${with_gnu_ld+set}" = set; then
3185942a 8827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
f73dda09 8828else
b80f6443 8829 with_gnu_ld=no
3185942a
JA
8830fi
8831
b80f6443
JA
8832# Prepare PATH_SEPARATOR.
8833# The user is always right.
8834if test "${PATH_SEPARATOR+set}" != set; then
8835 echo "#! /bin/sh" >conf$$.sh
8836 echo "exit 0" >>conf$$.sh
8837 chmod +x conf$$.sh
8838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8839 PATH_SEPARATOR=';'
8840 else
8841 PATH_SEPARATOR=:
8842 fi
8843 rm -f conf$$.sh
8844fi
8845ac_prog=ld
8846if test "$GCC" = yes; then
8847 # Check if gcc -print-prog-name=ld gives a path.
3185942a
JA
8848 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8849$as_echo_n "checking for ld used by GCC... " >&6; }
b80f6443
JA
8850 case $host in
8851 *-*-mingw*)
8852 # gcc leaves a trailing carriage return which upsets mingw
8853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8854 *)
8855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8856 esac
8857 case $ac_prog in
8858 # Accept absolute paths.
8859 [\\/]* | [A-Za-z]:[\\/]*)
8860 re_direlt='/[^/][^/]*/\.\./'
8861 # Canonicalize the path of ld
8862 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8863 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8864 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8865 done
8866 test -z "$LD" && LD="$ac_prog"
8867 ;;
8868 "")
8869 # If it fails, then pretend we aren't using GCC.
8870 ac_prog=ld
8871 ;;
8872 *)
8873 # If it is relative, then search for the first ld in PATH.
8874 with_gnu_ld=unknown
8875 ;;
8876 esac
8877elif test "$with_gnu_ld" = yes; then
3185942a
JA
8878 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8879$as_echo_n "checking for GNU ld... " >&6; }
b80f6443 8880else
3185942a
JA
8881 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8882$as_echo_n "checking for non-GNU ld... " >&6; }
b80f6443
JA
8883fi
8884if test "${acl_cv_path_LD+set}" = set; then
3185942a 8885 $as_echo_n "(cached) " >&6
b80f6443
JA
8886else
8887 if test -z "$LD"; then
8888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8889 for ac_dir in $PATH; do
8890 test -z "$ac_dir" && ac_dir=.
8891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8892 acl_cv_path_LD="$ac_dir/$ac_prog"
8893 # Check to see if the program is GNU ld. I'd rather use --version,
8894 # but apparently some GNU ld's only accept -v.
8895 # Break only if it was the GNU/non-GNU ld that we prefer.
8896 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8897 test "$with_gnu_ld" != no && break
8898 else
8899 test "$with_gnu_ld" != yes && break
8900 fi
8901 fi
8902 done
8903 IFS="$ac_save_ifs"
8904else
8905 acl_cv_path_LD="$LD" # Let the user override the test with a path.
f73dda09 8906fi
f73dda09 8907fi
f73dda09 8908
b80f6443
JA
8909LD="$acl_cv_path_LD"
8910if test -n "$LD"; then
3185942a
JA
8911 { $as_echo "$as_me:$LINENO: result: $LD" >&5
8912$as_echo "$LD" >&6; }
f73dda09 8913else
3185942a
JA
8914 { $as_echo "$as_me:$LINENO: result: no" >&5
8915$as_echo "no" >&6; }
f73dda09 8916fi
3185942a
JA
8917test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8918$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
b80f6443 8919 { (exit 1); exit 1; }; }
3185942a
JA
8920{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8921$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b80f6443 8922if test "${acl_cv_prog_gnu_ld+set}" = set; then
3185942a 8923 $as_echo_n "(cached) " >&6
b80f6443
JA
8924else
8925 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8926if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8927 acl_cv_prog_gnu_ld=yes
8928else
8929 acl_cv_prog_gnu_ld=no
8930fi
8931fi
3185942a
JA
8932{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8933$as_echo "$acl_cv_prog_gnu_ld" >&6; }
b80f6443
JA
8934with_gnu_ld=$acl_cv_prog_gnu_ld
8935
8936
8937
3185942a
JA
8938 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8939$as_echo_n "checking for shared library run path origin... " >&6; }
b80f6443 8940if test "${acl_cv_rpath+set}" = set; then
3185942a 8941 $as_echo_n "(cached) " >&6
b80f6443
JA
8942else
8943
8944 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8945 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8946 . ./conftest.sh
8947 rm -f ./conftest.sh
8948 acl_cv_rpath=done
8949
8950fi
3185942a
JA
8951{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8952$as_echo "$acl_cv_rpath" >&6; }
b80f6443
JA
8953 wl="$acl_cv_wl"
8954 libext="$acl_cv_libext"
8955 shlibext="$acl_cv_shlibext"
8956 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8957 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8958 hardcode_direct="$acl_cv_hardcode_direct"
8959 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3185942a 8960 # Check whether --enable-rpath was given.
b80f6443 8961if test "${enable_rpath+set}" = set; then
3185942a 8962 enableval=$enable_rpath; :
b80f6443
JA
8963else
8964 enable_rpath=yes
3185942a
JA
8965fi
8966
b80f6443
JA
8967
8968
8969
8970
8971
8972
8973
8974 use_additional=yes
8975
8976 acl_save_prefix="$prefix"
8977 prefix="$acl_final_prefix"
8978 acl_save_exec_prefix="$exec_prefix"
8979 exec_prefix="$acl_final_exec_prefix"
8980
8981 eval additional_includedir=\"$includedir\"
8982 eval additional_libdir=\"$libdir\"
8983
8984 exec_prefix="$acl_save_exec_prefix"
8985 prefix="$acl_save_prefix"
8986
8987
3185942a 8988# Check whether --with-libiconv-prefix was given.
b80f6443 8989if test "${with_libiconv_prefix+set}" = set; then
3185942a 8990 withval=$with_libiconv_prefix;
b80f6443
JA
8991 if test "X$withval" = "Xno"; then
8992 use_additional=no
8993 else
8994 if test "X$withval" = "X"; then
8995
8996 acl_save_prefix="$prefix"
8997 prefix="$acl_final_prefix"
8998 acl_save_exec_prefix="$exec_prefix"
8999 exec_prefix="$acl_final_exec_prefix"
9000
9001 eval additional_includedir=\"$includedir\"
9002 eval additional_libdir=\"$libdir\"
9003
9004 exec_prefix="$acl_save_exec_prefix"
9005 prefix="$acl_save_prefix"
9006
9007 else
9008 additional_includedir="$withval/include"
9009 additional_libdir="$withval/lib"
9010 fi
9011 fi
9012
3185942a
JA
9013fi
9014
b80f6443
JA
9015 LIBICONV=
9016 LTLIBICONV=
9017 INCICONV=
9018 rpathdirs=
9019 ltrpathdirs=
9020 names_already_handled=
9021 names_next_round='iconv '
9022 while test -n "$names_next_round"; do
9023 names_this_round="$names_next_round"
9024 names_next_round=
9025 for name in $names_this_round; do
9026 already_handled=
9027 for n in $names_already_handled; do
9028 if test "$n" = "$name"; then
9029 already_handled=yes
9030 break
9031 fi
9032 done
9033 if test -z "$already_handled"; then
9034 names_already_handled="$names_already_handled $name"
9035 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9036 eval value=\"\$HAVE_LIB$uppername\"
9037 if test -n "$value"; then
9038 if test "$value" = yes; then
9039 eval value=\"\$LIB$uppername\"
9040 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9041 eval value=\"\$LTLIB$uppername\"
9042 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9043 else
9044 :
9045 fi
9046 else
9047 found_dir=
9048 found_la=
9049 found_so=
9050 found_a=
9051 if test $use_additional = yes; then
9052 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9053 found_dir="$additional_libdir"
9054 found_so="$additional_libdir/lib$name.$shlibext"
9055 if test -f "$additional_libdir/lib$name.la"; then
9056 found_la="$additional_libdir/lib$name.la"
9057 fi
9058 else
9059 if test -f "$additional_libdir/lib$name.$libext"; then
9060 found_dir="$additional_libdir"
9061 found_a="$additional_libdir/lib$name.$libext"
9062 if test -f "$additional_libdir/lib$name.la"; then
9063 found_la="$additional_libdir/lib$name.la"
9064 fi
9065 fi
9066 fi
9067 fi
9068 if test "X$found_dir" = "X"; then
9069 for x in $LDFLAGS $LTLIBICONV; do
9070
9071 acl_save_prefix="$prefix"
9072 prefix="$acl_final_prefix"
9073 acl_save_exec_prefix="$exec_prefix"
9074 exec_prefix="$acl_final_exec_prefix"
9075 eval x=\"$x\"
9076 exec_prefix="$acl_save_exec_prefix"
9077 prefix="$acl_save_prefix"
9078
9079 case "$x" in
9080 -L*)
9081 dir=`echo "X$x" | sed -e 's/^X-L//'`
9082 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9083 found_dir="$dir"
9084 found_so="$dir/lib$name.$shlibext"
9085 if test -f "$dir/lib$name.la"; then
9086 found_la="$dir/lib$name.la"
9087 fi
9088 else
9089 if test -f "$dir/lib$name.$libext"; then
9090 found_dir="$dir"
9091 found_a="$dir/lib$name.$libext"
9092 if test -f "$dir/lib$name.la"; then
9093 found_la="$dir/lib$name.la"
9094 fi
9095 fi
9096 fi
9097 ;;
9098 esac
9099 if test "X$found_dir" != "X"; then
9100 break
9101 fi
9102 done
9103 fi
9104 if test "X$found_dir" != "X"; then
9105 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9106 if test "X$found_so" != "X"; then
9107 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9108 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9109 else
9110 haveit=
9111 for x in $ltrpathdirs; do
9112 if test "X$x" = "X$found_dir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 ltrpathdirs="$ltrpathdirs $found_dir"
9119 fi
9120 if test "$hardcode_direct" = yes; then
9121 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9122 else
9123 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9124 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9125 haveit=
9126 for x in $rpathdirs; do
9127 if test "X$x" = "X$found_dir"; then
9128 haveit=yes
9129 break
9130 fi
9131 done
9132 if test -z "$haveit"; then
9133 rpathdirs="$rpathdirs $found_dir"
9134 fi
9135 else
9136 haveit=
9137 for x in $LDFLAGS $LIBICONV; do
9138
9139 acl_save_prefix="$prefix"
9140 prefix="$acl_final_prefix"
9141 acl_save_exec_prefix="$exec_prefix"
9142 exec_prefix="$acl_final_exec_prefix"
9143 eval x=\"$x\"
9144 exec_prefix="$acl_save_exec_prefix"
9145 prefix="$acl_save_prefix"
9146
9147 if test "X$x" = "X-L$found_dir"; then
9148 haveit=yes
9149 break
9150 fi
9151 done
9152 if test -z "$haveit"; then
9153 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9154 fi
9155 if test "$hardcode_minus_L" != no; then
9156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9157 else
9158 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9159 fi
9160 fi
9161 fi
9162 fi
9163 else
9164 if test "X$found_a" != "X"; then
9165 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9166 else
9167 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9168 fi
9169 fi
9170 additional_includedir=
9171 case "$found_dir" in
9172 */lib | */lib/)
9173 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9174 additional_includedir="$basedir/include"
9175 ;;
9176 esac
9177 if test "X$additional_includedir" != "X"; then
9178 if test "X$additional_includedir" != "X/usr/include"; then
9179 haveit=
9180 if test "X$additional_includedir" = "X/usr/local/include"; then
9181 if test -n "$GCC"; then
9182 case $host_os in
9183 linux*) haveit=yes;;
9184 esac
9185 fi
9186 fi
9187 if test -z "$haveit"; then
9188 for x in $CPPFLAGS $INCICONV; do
9189
9190 acl_save_prefix="$prefix"
9191 prefix="$acl_final_prefix"
9192 acl_save_exec_prefix="$exec_prefix"
9193 exec_prefix="$acl_final_exec_prefix"
9194 eval x=\"$x\"
9195 exec_prefix="$acl_save_exec_prefix"
9196 prefix="$acl_save_prefix"
9197
9198 if test "X$x" = "X-I$additional_includedir"; then
9199 haveit=yes
9200 break
9201 fi
9202 done
9203 if test -z "$haveit"; then
9204 if test -d "$additional_includedir"; then
9205 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9206 fi
9207 fi
9208 fi
9209 fi
9210 fi
9211 if test -n "$found_la"; then
9212 save_libdir="$libdir"
9213 case "$found_la" in
9214 */* | *\\*) . "$found_la" ;;
9215 *) . "./$found_la" ;;
9216 esac
9217 libdir="$save_libdir"
9218 for dep in $dependency_libs; do
9219 case "$dep" in
9220 -L*)
9221 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9222 if test "X$additional_libdir" != "X/usr/lib"; then
9223 haveit=
9224 if test "X$additional_libdir" = "X/usr/local/lib"; then
9225 if test -n "$GCC"; then
9226 case $host_os in
9227 linux*) haveit=yes;;
9228 esac
9229 fi
9230 fi
9231 if test -z "$haveit"; then
9232 haveit=
9233 for x in $LDFLAGS $LIBICONV; do
9234
9235 acl_save_prefix="$prefix"
9236 prefix="$acl_final_prefix"
9237 acl_save_exec_prefix="$exec_prefix"
9238 exec_prefix="$acl_final_exec_prefix"
9239 eval x=\"$x\"
9240 exec_prefix="$acl_save_exec_prefix"
9241 prefix="$acl_save_prefix"
9242
9243 if test "X$x" = "X-L$additional_libdir"; then
9244 haveit=yes
9245 break
9246 fi
9247 done
9248 if test -z "$haveit"; then
9249 if test -d "$additional_libdir"; then
9250 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9251 fi
9252 fi
9253 haveit=
9254 for x in $LDFLAGS $LTLIBICONV; do
9255
9256 acl_save_prefix="$prefix"
9257 prefix="$acl_final_prefix"
9258 acl_save_exec_prefix="$exec_prefix"
9259 exec_prefix="$acl_final_exec_prefix"
9260 eval x=\"$x\"
9261 exec_prefix="$acl_save_exec_prefix"
9262 prefix="$acl_save_prefix"
9263
9264 if test "X$x" = "X-L$additional_libdir"; then
9265 haveit=yes
9266 break
9267 fi
9268 done
9269 if test -z "$haveit"; then
9270 if test -d "$additional_libdir"; then
9271 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9272 fi
9273 fi
9274 fi
9275 fi
9276 ;;
9277 -R*)
9278 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9279 if test "$enable_rpath" != no; then
9280 haveit=
9281 for x in $rpathdirs; do
9282 if test "X$x" = "X$dir"; then
9283 haveit=yes
9284 break
9285 fi
9286 done
9287 if test -z "$haveit"; then
9288 rpathdirs="$rpathdirs $dir"
9289 fi
9290 haveit=
9291 for x in $ltrpathdirs; do
9292 if test "X$x" = "X$dir"; then
9293 haveit=yes
9294 break
9295 fi
9296 done
9297 if test -z "$haveit"; then
9298 ltrpathdirs="$ltrpathdirs $dir"
9299 fi
9300 fi
9301 ;;
9302 -l*)
9303 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9304 ;;
9305 *.la)
9306 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9307 ;;
9308 *)
9309 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9311 ;;
9312 esac
9313 done
9314 fi
9315 else
9316 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9317 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9318 fi
9319 fi
9320 fi
9321 done
9322 done
9323 if test "X$rpathdirs" != "X"; then
9324 if test -n "$hardcode_libdir_separator"; then
9325 alldirs=
9326 for found_dir in $rpathdirs; do
9327 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9328 done
9329 acl_save_libdir="$libdir"
9330 libdir="$alldirs"
9331 eval flag=\"$hardcode_libdir_flag_spec\"
9332 libdir="$acl_save_libdir"
9333 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9334 else
9335 for found_dir in $rpathdirs; do
9336 acl_save_libdir="$libdir"
9337 libdir="$found_dir"
9338 eval flag=\"$hardcode_libdir_flag_spec\"
9339 libdir="$acl_save_libdir"
9340 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9341 done
9342 fi
9343 fi
9344 if test "X$ltrpathdirs" != "X"; then
9345 for found_dir in $ltrpathdirs; do
9346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9347 done
9348 fi
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9364stdlib.h string.h unistd.h sys/param.h
9365do
3185942a
JA
9366as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9369$as_echo_n "checking for $ac_header... " >&6; }
9370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9371 $as_echo_n "(cached) " >&6
9372fi
9373ac_res=`eval 'as_val=${'$as_ac_Header'}
9374 $as_echo "$as_val"'`
9375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9376$as_echo "$ac_res" >&6; }
b80f6443
JA
9377else
9378 # Is the header compilable?
3185942a
JA
9379{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 9381cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9382/* confdefs.h. */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h. */
b80f6443
JA
9387$ac_includes_default
9388#include <$ac_header>
9389_ACEOF
9390rm -f conftest.$ac_objext
3185942a
JA
9391if { (ac_try="$ac_compile"
9392case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395esac
9396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9397$as_echo "$ac_try_echo") >&5
9398 (eval "$ac_compile") 2>conftest.er1
b80f6443 9399 ac_status=$?
0628567a
JA
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
3185942a
JA
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
b80f6443
JA
9408 ac_header_compiler=yes
9409else
3185942a 9410 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9411sed 's/^/| /' conftest.$ac_ext >&5
9412
3185942a 9413 ac_header_compiler=no
b80f6443 9414fi
3185942a
JA
9415
9416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9418$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
9419
9420# Is the header present?
3185942a
JA
9421{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9422$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 9423cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9424/* confdefs.h. */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h. */
b80f6443
JA
9429#include <$ac_header>
9430_ACEOF
3185942a
JA
9431if { (ac_try="$ac_cpp conftest.$ac_ext"
9432case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435esac
9436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9437$as_echo "$ac_try_echo") >&5
9438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 9439 ac_status=$?
0628567a 9440 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
9441 rm -f conftest.er1
9442 cat conftest.err >&5
3185942a
JA
9443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } >/dev/null && {
9445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9447 }; then
b80f6443
JA
9448 ac_header_preproc=yes
9449else
3185942a 9450 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9451sed 's/^/| /' conftest.$ac_ext >&5
9452
b80f6443
JA
9453 ac_header_preproc=no
9454fi
3185942a 9455
b80f6443 9456rm -f conftest.err conftest.$ac_ext
3185942a
JA
9457{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9458$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
9459
9460# So? What about this header?
0628567a
JA
9461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9462 yes:no: )
3185942a
JA
9463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9464$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9466$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
9467 ac_header_preproc=yes
9468 ;;
9469 no:yes:* )
3185942a
JA
9470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9471$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9473$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9475$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9477$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9479$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9481$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9482 ( cat <<\_ASBOX
0628567a
JA
9483## ------------------------------- ##
9484## Report this to bug-bash@gnu.org ##
9485## ------------------------------- ##
9486_ASBOX
3185942a 9487 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 9488 ;;
b80f6443 9489esac
3185942a
JA
9490{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9491$as_echo_n "checking for $ac_header... " >&6; }
9492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9493 $as_echo_n "(cached) " >&6
b80f6443 9494else
0628567a 9495 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 9496fi
3185942a
JA
9497ac_res=`eval 'as_val=${'$as_ac_Header'}
9498 $as_echo "$as_val"'`
9499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9500$as_echo "$ac_res" >&6; }
b80f6443
JA
9501
9502fi
3185942a
JA
9503as_val=`eval 'as_val=${'$as_ac_Header'}
9504 $as_echo "$as_val"'`
9505 if test "x$as_val" = x""yes; then
b80f6443 9506 cat >>confdefs.h <<_ACEOF
3185942a 9507#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
9508_ACEOF
9509
9510fi
9511
f73dda09
JA
9512done
9513
b80f6443
JA
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
3185942a 9534
b80f6443
JA
9535
9536
9537for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3185942a 9538geteuid getgid getuid mempcpy munmap putenv setenv setlocale localeconv stpcpy \
b80f6443
JA
9539strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
9540__fsetlocking
f73dda09 9541do
3185942a
JA
9542as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9543{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9544$as_echo_n "checking for $ac_func... " >&6; }
9545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9546 $as_echo_n "(cached) " >&6
f73dda09
JA
9547else
9548 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9549/* confdefs.h. */
9550_ACEOF
9551cat confdefs.h >>conftest.$ac_ext
9552cat >>conftest.$ac_ext <<_ACEOF
9553/* end confdefs.h. */
9554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9556#define $ac_func innocuous_$ac_func
9557
f73dda09 9558/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
9559 which can conflict with char $ac_func (); below.
9560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561 <limits.h> exists even on freestanding compilers. */
9562
9563#ifdef __STDC__
9564# include <limits.h>
9565#else
9566# include <assert.h>
9567#endif
9568
9569#undef $ac_func
9570
3185942a
JA
9571/* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
f73dda09
JA
9574#ifdef __cplusplus
9575extern "C"
9576#endif
f73dda09 9577char $ac_func ();
f73dda09
JA
9578/* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
3185942a 9581#if defined __stub_$ac_func || defined __stub___$ac_func
f73dda09 9582choke me
f73dda09
JA
9583#endif
9584
0628567a
JA
9585int
9586main ()
9587{
3185942a 9588return $ac_func ();
f73dda09
JA
9589 ;
9590 return 0;
9591}
9592_ACEOF
9593rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9594if { (ac_try="$ac_link"
9595case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9600$as_echo "$ac_try_echo") >&5
9601 (eval "$ac_link") 2>conftest.er1
f73dda09 9602 ac_status=$?
0628567a
JA
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
3185942a
JA
9606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext && {
9611 test "$cross_compiling" = yes ||
9612 $as_test_x conftest$ac_exeext
9613 }; then
f73dda09
JA
9614 eval "$as_ac_var=yes"
9615else
3185942a 9616 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9617sed 's/^/| /' conftest.$ac_ext >&5
9618
3185942a 9619 eval "$as_ac_var=no"
f73dda09 9620fi
3185942a
JA
9621
9622rm -rf conftest.dSYM
9623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9624 conftest$ac_exeext conftest.$ac_ext
f73dda09 9625fi
3185942a
JA
9626ac_res=`eval 'as_val=${'$as_ac_var'}
9627 $as_echo "$as_val"'`
9628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9629$as_echo "$ac_res" >&6; }
9630as_val=`eval 'as_val=${'$as_ac_var'}
9631 $as_echo "$as_val"'`
9632 if test "x$as_val" = x""yes; then
b80f6443 9633 cat >>confdefs.h <<_ACEOF
3185942a 9634#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 9635_ACEOF
f73dda09
JA
9636
9637fi
9638done
9639
b80f6443
JA
9640
9641
9642
9643
9644
9645
9646 am_save_CPPFLAGS="$CPPFLAGS"
9647
9648 for element in $INCICONV; do
9649 haveit=
9650 for x in $CPPFLAGS; do
9651
9652 acl_save_prefix="$prefix"
9653 prefix="$acl_final_prefix"
9654 acl_save_exec_prefix="$exec_prefix"
9655 exec_prefix="$acl_final_exec_prefix"
9656 eval x=\"$x\"
9657 exec_prefix="$acl_save_exec_prefix"
9658 prefix="$acl_save_prefix"
9659
9660 if test "X$x" = "X$element"; then
9661 haveit=yes
9662 break
9663 fi
9664 done
9665 if test -z "$haveit"; then
9666 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9667 fi
9668 done
9669
9670
3185942a
JA
9671 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9672$as_echo_n "checking for iconv... " >&6; }
b80f6443 9673if test "${am_cv_func_iconv+set}" = set; then
3185942a 9674 $as_echo_n "(cached) " >&6
f73dda09 9675else
f73dda09 9676
b80f6443
JA
9677 am_cv_func_iconv="no, consider installing GNU libiconv"
9678 am_cv_lib_iconv=no
9679 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9680/* confdefs.h. */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
b80f6443
JA
9685#include <stdlib.h>
9686#include <iconv.h>
f73dda09
JA
9687int
9688main ()
9689{
b80f6443
JA
9690iconv_t cd = iconv_open("","");
9691 iconv(cd,NULL,NULL,NULL,NULL);
9692 iconv_close(cd);
f73dda09
JA
9693 ;
9694 return 0;
9695}
9696_ACEOF
9697rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9698if { (ac_try="$ac_link"
9699case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702esac
9703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9704$as_echo "$ac_try_echo") >&5
9705 (eval "$ac_link") 2>conftest.er1
f73dda09 9706 ac_status=$?
0628567a
JA
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
3185942a
JA
9710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest$ac_exeext && {
9715 test "$cross_compiling" = yes ||
9716 $as_test_x conftest$ac_exeext
9717 }; then
b80f6443 9718 am_cv_func_iconv=yes
f73dda09 9719else
3185942a 9720 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
3185942a 9723
f73dda09 9724fi
3185942a
JA
9725
9726rm -rf conftest.dSYM
9727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9728 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9729 if test "$am_cv_func_iconv" != yes; then
9730 am_save_LIBS="$LIBS"
9731 LIBS="$LIBS $LIBICONV"
9732 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
b80f6443
JA
9738#include <stdlib.h>
9739#include <iconv.h>
f73dda09
JA
9740int
9741main ()
9742{
b80f6443
JA
9743iconv_t cd = iconv_open("","");
9744 iconv(cd,NULL,NULL,NULL,NULL);
9745 iconv_close(cd);
f73dda09
JA
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9751if { (ac_try="$ac_link"
9752case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9757$as_echo "$ac_try_echo") >&5
9758 (eval "$ac_link") 2>conftest.er1
f73dda09 9759 ac_status=$?
0628567a
JA
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
3185942a
JA
9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } && {
9765 test -z "$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9767 } && test -s conftest$ac_exeext && {
9768 test "$cross_compiling" = yes ||
9769 $as_test_x conftest$ac_exeext
9770 }; then
b80f6443
JA
9771 am_cv_lib_iconv=yes
9772 am_cv_func_iconv=yes
f73dda09 9773else
3185942a 9774 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
3185942a 9777
f73dda09 9778fi
3185942a
JA
9779
9780rm -rf conftest.dSYM
9781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9782 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
9783 LIBS="$am_save_LIBS"
9784 fi
9785
f73dda09 9786fi
3185942a
JA
9787{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9788$as_echo "$am_cv_func_iconv" >&6; }
b80f6443 9789 if test "$am_cv_func_iconv" = yes; then
f73dda09 9790
b80f6443
JA
9791cat >>confdefs.h <<\_ACEOF
9792#define HAVE_ICONV 1
9793_ACEOF
f73dda09 9794
b80f6443
JA
9795 fi
9796 if test "$am_cv_lib_iconv" = yes; then
3185942a
JA
9797 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9798$as_echo_n "checking how to link with libiconv... " >&6; }
9799 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
9800$as_echo "$LIBICONV" >&6; }
b80f6443
JA
9801 else
9802 CPPFLAGS="$am_save_CPPFLAGS"
9803 LIBICONV=
9804 LTLIBICONV=
9805 fi
9806
9807
9808
9809 if test "$am_cv_func_iconv" = yes; then
3185942a
JA
9810 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
9811$as_echo_n "checking for iconv declaration... " >&6; }
b80f6443 9812 if test "${am_cv_proto_iconv+set}" = set; then
3185942a 9813 $as_echo_n "(cached) " >&6
f73dda09 9814else
b80f6443
JA
9815
9816 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9817/* confdefs.h. */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h. */
b80f6443
JA
9822
9823#include <stdlib.h>
9824#include <iconv.h>
9825extern
f73dda09 9826#ifdef __cplusplus
b80f6443
JA
9827"C"
9828#endif
9829#if defined(__STDC__) || defined(__cplusplus)
9830size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9831#else
9832size_t iconv();
f73dda09 9833#endif
f73dda09
JA
9834
9835int
9836main ()
9837{
f73dda09
JA
9838
9839 ;
9840 return 0;
9841}
9842_ACEOF
b80f6443 9843rm -f conftest.$ac_objext
3185942a
JA
9844if { (ac_try="$ac_compile"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9850$as_echo "$ac_try_echo") >&5
9851 (eval "$ac_compile") 2>conftest.er1
f73dda09 9852 ac_status=$?
0628567a
JA
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
3185942a
JA
9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
b80f6443 9861 am_cv_proto_iconv_arg1=""
f73dda09 9862else
3185942a 9863 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
3185942a 9866 am_cv_proto_iconv_arg1="const"
f73dda09 9867fi
3185942a
JA
9868
9869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 9870 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 9871fi
f73dda09 9872
b80f6443 9873 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3185942a 9874 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
b80f6443 9875 }$am_cv_proto_iconv" >&5
3185942a
JA
9876$as_echo "${ac_t:-
9877 }$am_cv_proto_iconv" >&6; }
f73dda09 9878
b80f6443
JA
9879cat >>confdefs.h <<_ACEOF
9880#define ICONV_CONST $am_cv_proto_iconv_arg1
9881_ACEOF
9882
9883 fi
9884
9885
3185942a
JA
9886 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9887$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
b80f6443 9888if test "${am_cv_langinfo_codeset+set}" = set; then
3185942a 9889 $as_echo_n "(cached) " >&6
f73dda09
JA
9890else
9891 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
b80f6443 9897#include <langinfo.h>
f73dda09
JA
9898int
9899main ()
9900{
b80f6443 9901char* cs = nl_langinfo(CODESET);
f73dda09
JA
9902 ;
9903 return 0;
9904}
9905_ACEOF
b80f6443 9906rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9907if { (ac_try="$ac_link"
9908case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913$as_echo "$ac_try_echo") >&5
9914 (eval "$ac_link") 2>conftest.er1
f73dda09 9915 ac_status=$?
0628567a
JA
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
3185942a
JA
9919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && {
9921 test -z "$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9923 } && test -s conftest$ac_exeext && {
9924 test "$cross_compiling" = yes ||
9925 $as_test_x conftest$ac_exeext
9926 }; then
b80f6443 9927 am_cv_langinfo_codeset=yes
f73dda09 9928else
3185942a 9929 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
3185942a 9932 am_cv_langinfo_codeset=no
f73dda09 9933fi
3185942a
JA
9934
9935rm -rf conftest.dSYM
9936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 9937 conftest$ac_exeext conftest.$ac_ext
b80f6443 9938
f73dda09 9939fi
3185942a
JA
9940{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9941$as_echo "$am_cv_langinfo_codeset" >&6; }
b80f6443 9942 if test $am_cv_langinfo_codeset = yes; then
f73dda09 9943
b80f6443
JA
9944cat >>confdefs.h <<\_ACEOF
9945#define HAVE_LANGINFO_CODESET 1
9946_ACEOF
f73dda09 9947
b80f6443 9948 fi
f73dda09 9949
b80f6443 9950 if test $ac_cv_header_locale_h = yes; then
f73dda09 9951
3185942a
JA
9952 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9953$as_echo_n "checking for LC_MESSAGES... " >&6; }
b80f6443 9954if test "${am_cv_val_LC_MESSAGES+set}" = set; then
3185942a 9955 $as_echo_n "(cached) " >&6
f73dda09
JA
9956else
9957 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
b80f6443 9963#include <locale.h>
f73dda09
JA
9964int
9965main ()
9966{
b80f6443 9967return LC_MESSAGES
f73dda09
JA
9968 ;
9969 return 0;
9970}
9971_ACEOF
b80f6443 9972rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
9973if { (ac_try="$ac_link"
9974case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979$as_echo "$ac_try_echo") >&5
9980 (eval "$ac_link") 2>conftest.er1
f73dda09 9981 ac_status=$?
0628567a
JA
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
3185942a
JA
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest$ac_exeext && {
9990 test "$cross_compiling" = yes ||
9991 $as_test_x conftest$ac_exeext
9992 }; then
b80f6443 9993 am_cv_val_LC_MESSAGES=yes
f73dda09 9994else
3185942a 9995 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
9996sed 's/^/| /' conftest.$ac_ext >&5
9997
3185942a 9998 am_cv_val_LC_MESSAGES=no
f73dda09 9999fi
3185942a
JA
10000
10001rm -rf conftest.dSYM
10002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10003 conftest$ac_exeext conftest.$ac_ext
f73dda09 10004fi
3185942a
JA
10005{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10006$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
b80f6443 10007 if test $am_cv_val_LC_MESSAGES = yes; then
f73dda09 10008
b80f6443
JA
10009cat >>confdefs.h <<\_ACEOF
10010#define HAVE_LC_MESSAGES 1
10011_ACEOF
10012
10013 fi
10014
10015 fi
f73dda09 10016
b80f6443
JA
10017 for ac_prog in bison
10018do
10019 # Extract the first word of "$ac_prog", so it can be a program name with args.
10020set dummy $ac_prog; ac_word=$2
3185942a
JA
10021{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10022$as_echo_n "checking for $ac_word... " >&6; }
b80f6443 10023if test "${ac_cv_prog_INTLBISON+set}" = set; then
3185942a 10024 $as_echo_n "(cached) " >&6
f73dda09 10025else
b80f6443
JA
10026 if test -n "$INTLBISON"; then
10027 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10028else
10029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
3185942a 10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b80f6443 10036 ac_cv_prog_INTLBISON="$ac_prog"
3185942a 10037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b80f6443
JA
10038 break 2
10039 fi
10040done
10041done
3185942a 10042IFS=$as_save_IFS
f73dda09 10043
b80f6443
JA
10044fi
10045fi
10046INTLBISON=$ac_cv_prog_INTLBISON
10047if test -n "$INTLBISON"; then
3185942a
JA
10048 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10049$as_echo "$INTLBISON" >&6; }
b80f6443 10050else
3185942a
JA
10051 { $as_echo "$as_me:$LINENO: result: no" >&5
10052$as_echo "no" >&6; }
f73dda09
JA
10053fi
10054
3185942a 10055
b80f6443
JA
10056 test -n "$INTLBISON" && break
10057done
10058
10059 if test -z "$INTLBISON"; then
10060 ac_verc_fail=yes
10061 else
3185942a
JA
10062 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10063$as_echo_n "checking version of bison... " >&6; }
b80f6443
JA
10064 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10065 case $ac_prog_version in
10066 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10067 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10068 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10069 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10070 esac
3185942a
JA
10071 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10072$as_echo "$ac_prog_version" >&6; }
b80f6443
JA
10073 fi
10074 if test $ac_verc_fail = yes; then
10075 INTLBISON=:
10076 fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
3185942a
JA
10093 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10094$as_echo_n "checking whether NLS is requested... " >&6; }
10095 # Check whether --enable-nls was given.
b80f6443 10096if test "${enable_nls+set}" = set; then
3185942a 10097 enableval=$enable_nls; USE_NLS=$enableval
b80f6443
JA
10098else
10099 USE_NLS=yes
3185942a
JA
10100fi
10101
10102 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10103$as_echo "$USE_NLS" >&6; }
b80f6443
JA
10104
10105
10106
10107
10108 BUILD_INCLUDED_LIBINTL=no
10109 USE_INCLUDED_LIBINTL=no
10110
10111 LIBINTL=
10112 LTLIBINTL=
10113 POSUB=
10114
10115 if test "$USE_NLS" = "yes"; then
10116 gt_use_preinstalled_gnugettext=no
10117
3185942a
JA
10118 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10119$as_echo_n "checking whether included gettext is requested... " >&6; }
b80f6443 10120
3185942a 10121# Check whether --with-included-gettext was given.
b80f6443 10122if test "${with_included_gettext+set}" = set; then
3185942a 10123 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
b80f6443
JA
10124else
10125 nls_cv_force_use_gnu_gettext=no
3185942a
JA
10126fi
10127
10128 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10129$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b80f6443
JA
10130
10131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10133
10134
10135
10136
10137
10138
3185942a
JA
10139 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10140$as_echo_n "checking for GNU gettext in libc... " >&6; }
b80f6443 10141if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
3185942a 10142 $as_echo_n "(cached) " >&6
f73dda09
JA
10143else
10144 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10145/* confdefs.h. */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h. */
b80f6443
JA
10150#include <libintl.h>
10151extern int _nl_msg_cat_cntr;
10152extern int *_nl_domain_bindings;
f73dda09
JA
10153int
10154main ()
10155{
b80f6443
JA
10156bindtextdomain ("", "");
10157return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
f73dda09
JA
10158 ;
10159 return 0;
10160}
10161_ACEOF
b80f6443 10162rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10163if { (ac_try="$ac_link"
10164case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10167esac
10168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169$as_echo "$ac_try_echo") >&5
10170 (eval "$ac_link") 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
3185942a
JA
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext && {
10180 test "$cross_compiling" = yes ||
10181 $as_test_x conftest$ac_exeext
10182 }; then
b80f6443 10183 gt_cv_func_gnugettext2_libc=yes
f73dda09 10184else
3185942a 10185 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
3185942a 10188 gt_cv_func_gnugettext2_libc=no
f73dda09 10189fi
3185942a
JA
10190
10191rm -rf conftest.dSYM
10192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10193 conftest$ac_exeext conftest.$ac_ext
f73dda09 10194fi
3185942a
JA
10195{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
10196$as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
f73dda09 10197
b80f6443 10198 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
f73dda09 10199
f73dda09 10200
f73dda09 10201
b80f6443
JA
10202 use_additional=yes
10203
10204 acl_save_prefix="$prefix"
10205 prefix="$acl_final_prefix"
10206 acl_save_exec_prefix="$exec_prefix"
10207 exec_prefix="$acl_final_exec_prefix"
10208
10209 eval additional_includedir=\"$includedir\"
10210 eval additional_libdir=\"$libdir\"
10211
10212 exec_prefix="$acl_save_exec_prefix"
10213 prefix="$acl_save_prefix"
10214
10215
3185942a 10216# Check whether --with-libintl-prefix was given.
b80f6443 10217if test "${with_libintl_prefix+set}" = set; then
3185942a 10218 withval=$with_libintl_prefix;
b80f6443
JA
10219 if test "X$withval" = "Xno"; then
10220 use_additional=no
10221 else
10222 if test "X$withval" = "X"; then
10223
10224 acl_save_prefix="$prefix"
10225 prefix="$acl_final_prefix"
10226 acl_save_exec_prefix="$exec_prefix"
10227 exec_prefix="$acl_final_exec_prefix"
10228
10229 eval additional_includedir=\"$includedir\"
10230 eval additional_libdir=\"$libdir\"
10231
10232 exec_prefix="$acl_save_exec_prefix"
10233 prefix="$acl_save_prefix"
10234
10235 else
10236 additional_includedir="$withval/include"
10237 additional_libdir="$withval/lib"
10238 fi
10239 fi
10240
3185942a
JA
10241fi
10242
b80f6443
JA
10243 LIBINTL=
10244 LTLIBINTL=
10245 INCINTL=
10246 rpathdirs=
10247 ltrpathdirs=
10248 names_already_handled=
10249 names_next_round='intl '
10250 while test -n "$names_next_round"; do
10251 names_this_round="$names_next_round"
10252 names_next_round=
10253 for name in $names_this_round; do
10254 already_handled=
10255 for n in $names_already_handled; do
10256 if test "$n" = "$name"; then
10257 already_handled=yes
10258 break
10259 fi
10260 done
10261 if test -z "$already_handled"; then
10262 names_already_handled="$names_already_handled $name"
10263 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10264 eval value=\"\$HAVE_LIB$uppername\"
10265 if test -n "$value"; then
10266 if test "$value" = yes; then
10267 eval value=\"\$LIB$uppername\"
10268 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10269 eval value=\"\$LTLIB$uppername\"
10270 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10271 else
10272 :
10273 fi
10274 else
10275 found_dir=
10276 found_la=
10277 found_so=
10278 found_a=
10279 if test $use_additional = yes; then
10280 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10281 found_dir="$additional_libdir"
10282 found_so="$additional_libdir/lib$name.$shlibext"
10283 if test -f "$additional_libdir/lib$name.la"; then
10284 found_la="$additional_libdir/lib$name.la"
10285 fi
10286 else
10287 if test -f "$additional_libdir/lib$name.$libext"; then
10288 found_dir="$additional_libdir"
10289 found_a="$additional_libdir/lib$name.$libext"
10290 if test -f "$additional_libdir/lib$name.la"; then
10291 found_la="$additional_libdir/lib$name.la"
10292 fi
10293 fi
10294 fi
10295 fi
10296 if test "X$found_dir" = "X"; then
10297 for x in $LDFLAGS $LTLIBINTL; do
10298
10299 acl_save_prefix="$prefix"
10300 prefix="$acl_final_prefix"
10301 acl_save_exec_prefix="$exec_prefix"
10302 exec_prefix="$acl_final_exec_prefix"
10303 eval x=\"$x\"
10304 exec_prefix="$acl_save_exec_prefix"
10305 prefix="$acl_save_prefix"
10306
10307 case "$x" in
10308 -L*)
10309 dir=`echo "X$x" | sed -e 's/^X-L//'`
10310 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10311 found_dir="$dir"
10312 found_so="$dir/lib$name.$shlibext"
10313 if test -f "$dir/lib$name.la"; then
10314 found_la="$dir/lib$name.la"
10315 fi
10316 else
10317 if test -f "$dir/lib$name.$libext"; then
10318 found_dir="$dir"
10319 found_a="$dir/lib$name.$libext"
10320 if test -f "$dir/lib$name.la"; then
10321 found_la="$dir/lib$name.la"
10322 fi
10323 fi
10324 fi
10325 ;;
10326 esac
10327 if test "X$found_dir" != "X"; then
10328 break
10329 fi
10330 done
10331 fi
10332 if test "X$found_dir" != "X"; then
10333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10334 if test "X$found_so" != "X"; then
10335 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10337 else
10338 haveit=
10339 for x in $ltrpathdirs; do
10340 if test "X$x" = "X$found_dir"; then
10341 haveit=yes
10342 break
10343 fi
10344 done
10345 if test -z "$haveit"; then
10346 ltrpathdirs="$ltrpathdirs $found_dir"
10347 fi
10348 if test "$hardcode_direct" = yes; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10350 else
10351 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10353 haveit=
10354 for x in $rpathdirs; do
10355 if test "X$x" = "X$found_dir"; then
10356 haveit=yes
10357 break
10358 fi
10359 done
10360 if test -z "$haveit"; then
10361 rpathdirs="$rpathdirs $found_dir"
10362 fi
10363 else
10364 haveit=
10365 for x in $LDFLAGS $LIBINTL; do
10366
10367 acl_save_prefix="$prefix"
10368 prefix="$acl_final_prefix"
10369 acl_save_exec_prefix="$exec_prefix"
10370 exec_prefix="$acl_final_exec_prefix"
10371 eval x=\"$x\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10374
10375 if test "X$x" = "X-L$found_dir"; then
10376 haveit=yes
10377 break
10378 fi
10379 done
10380 if test -z "$haveit"; then
10381 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10382 fi
10383 if test "$hardcode_minus_L" != no; then
10384 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10385 else
10386 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10387 fi
10388 fi
10389 fi
10390 fi
10391 else
10392 if test "X$found_a" != "X"; then
10393 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10394 else
10395 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10396 fi
10397 fi
10398 additional_includedir=
10399 case "$found_dir" in
10400 */lib | */lib/)
10401 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10402 additional_includedir="$basedir/include"
10403 ;;
10404 esac
10405 if test "X$additional_includedir" != "X"; then
10406 if test "X$additional_includedir" != "X/usr/include"; then
10407 haveit=
10408 if test "X$additional_includedir" = "X/usr/local/include"; then
10409 if test -n "$GCC"; then
10410 case $host_os in
10411 linux*) haveit=yes;;
10412 esac
10413 fi
10414 fi
10415 if test -z "$haveit"; then
10416 for x in $CPPFLAGS $INCINTL; do
10417
10418 acl_save_prefix="$prefix"
10419 prefix="$acl_final_prefix"
10420 acl_save_exec_prefix="$exec_prefix"
10421 exec_prefix="$acl_final_exec_prefix"
10422 eval x=\"$x\"
10423 exec_prefix="$acl_save_exec_prefix"
10424 prefix="$acl_save_prefix"
10425
10426 if test "X$x" = "X-I$additional_includedir"; then
10427 haveit=yes
10428 break
10429 fi
10430 done
10431 if test -z "$haveit"; then
10432 if test -d "$additional_includedir"; then
10433 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10434 fi
10435 fi
10436 fi
10437 fi
10438 fi
10439 if test -n "$found_la"; then
10440 save_libdir="$libdir"
10441 case "$found_la" in
10442 */* | *\\*) . "$found_la" ;;
10443 *) . "./$found_la" ;;
10444 esac
10445 libdir="$save_libdir"
10446 for dep in $dependency_libs; do
10447 case "$dep" in
10448 -L*)
10449 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10450 if test "X$additional_libdir" != "X/usr/lib"; then
10451 haveit=
10452 if test "X$additional_libdir" = "X/usr/local/lib"; then
10453 if test -n "$GCC"; then
10454 case $host_os in
10455 linux*) haveit=yes;;
10456 esac
10457 fi
10458 fi
10459 if test -z "$haveit"; then
10460 haveit=
10461 for x in $LDFLAGS $LIBINTL; do
10462
10463 acl_save_prefix="$prefix"
10464 prefix="$acl_final_prefix"
10465 acl_save_exec_prefix="$exec_prefix"
10466 exec_prefix="$acl_final_exec_prefix"
10467 eval x=\"$x\"
10468 exec_prefix="$acl_save_exec_prefix"
10469 prefix="$acl_save_prefix"
10470
10471 if test "X$x" = "X-L$additional_libdir"; then
10472 haveit=yes
10473 break
10474 fi
10475 done
10476 if test -z "$haveit"; then
10477 if test -d "$additional_libdir"; then
10478 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10479 fi
10480 fi
10481 haveit=
10482 for x in $LDFLAGS $LTLIBINTL; do
10483
10484 acl_save_prefix="$prefix"
10485 prefix="$acl_final_prefix"
10486 acl_save_exec_prefix="$exec_prefix"
10487 exec_prefix="$acl_final_exec_prefix"
10488 eval x=\"$x\"
10489 exec_prefix="$acl_save_exec_prefix"
10490 prefix="$acl_save_prefix"
10491
10492 if test "X$x" = "X-L$additional_libdir"; then
10493 haveit=yes
10494 break
10495 fi
10496 done
10497 if test -z "$haveit"; then
10498 if test -d "$additional_libdir"; then
10499 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10500 fi
10501 fi
10502 fi
10503 fi
10504 ;;
10505 -R*)
10506 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10507 if test "$enable_rpath" != no; then
10508 haveit=
10509 for x in $rpathdirs; do
10510 if test "X$x" = "X$dir"; then
10511 haveit=yes
10512 break
10513 fi
10514 done
10515 if test -z "$haveit"; then
10516 rpathdirs="$rpathdirs $dir"
10517 fi
10518 haveit=
10519 for x in $ltrpathdirs; do
10520 if test "X$x" = "X$dir"; then
10521 haveit=yes
10522 break
10523 fi
10524 done
10525 if test -z "$haveit"; then
10526 ltrpathdirs="$ltrpathdirs $dir"
10527 fi
10528 fi
10529 ;;
10530 -l*)
10531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10532 ;;
10533 *.la)
10534 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10535 ;;
10536 *)
10537 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10539 ;;
10540 esac
10541 done
10542 fi
10543 else
10544 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10545 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10546 fi
10547 fi
10548 fi
10549 done
10550 done
10551 if test "X$rpathdirs" != "X"; then
10552 if test -n "$hardcode_libdir_separator"; then
10553 alldirs=
10554 for found_dir in $rpathdirs; do
10555 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10556 done
10557 acl_save_libdir="$libdir"
10558 libdir="$alldirs"
10559 eval flag=\"$hardcode_libdir_flag_spec\"
10560 libdir="$acl_save_libdir"
10561 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10562 else
10563 for found_dir in $rpathdirs; do
10564 acl_save_libdir="$libdir"
10565 libdir="$found_dir"
10566 eval flag=\"$hardcode_libdir_flag_spec\"
10567 libdir="$acl_save_libdir"
10568 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10569 done
10570 fi
10571 fi
10572 if test "X$ltrpathdirs" != "X"; then
10573 for found_dir in $ltrpathdirs; do
10574 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10575 done
10576 fi
10577
3185942a
JA
10578 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10579$as_echo_n "checking for GNU gettext in libintl... " >&6; }
b80f6443 10580if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
3185942a 10581 $as_echo_n "(cached) " >&6
f73dda09 10582else
b80f6443
JA
10583 gt_save_CPPFLAGS="$CPPFLAGS"
10584 CPPFLAGS="$CPPFLAGS $INCINTL"
10585 gt_save_LIBS="$LIBS"
10586 LIBS="$LIBS $LIBINTL"
10587 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10588/* confdefs.h. */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h. */
b80f6443
JA
10593#include <libintl.h>
10594extern int _nl_msg_cat_cntr;
10595extern
10596#ifdef __cplusplus
10597"C"
10598#endif
10599const char *_nl_expand_alias ();
f73dda09
JA
10600int
10601main ()
10602{
b80f6443
JA
10603bindtextdomain ("", "");
10604return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
f73dda09
JA
10605 ;
10606 return 0;
10607}
10608_ACEOF
b80f6443 10609rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10610if { (ac_try="$ac_link"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616$as_echo "$ac_try_echo") >&5
10617 (eval "$ac_link") 2>conftest.er1
f73dda09 10618 ac_status=$?
0628567a
JA
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
3185942a
JA
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest$ac_exeext
10629 }; then
b80f6443 10630 gt_cv_func_gnugettext2_libintl=yes
f73dda09 10631else
3185942a 10632 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
3185942a 10635 gt_cv_func_gnugettext2_libintl=no
f73dda09 10636fi
3185942a
JA
10637
10638rm -rf conftest.dSYM
10639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10640 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10641 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
10642 LIBS="$LIBS $LIBICONV"
10643 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10644/* confdefs.h. */
10645_ACEOF
10646cat confdefs.h >>conftest.$ac_ext
10647cat >>conftest.$ac_ext <<_ACEOF
10648/* end confdefs.h. */
b80f6443
JA
10649#include <libintl.h>
10650extern int _nl_msg_cat_cntr;
10651extern
10652#ifdef __cplusplus
10653"C"
10654#endif
10655const char *_nl_expand_alias ();
f73dda09
JA
10656int
10657main ()
10658{
b80f6443
JA
10659bindtextdomain ("", "");
10660return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
f73dda09
JA
10661 ;
10662 return 0;
10663}
10664_ACEOF
b80f6443 10665rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
10666if { (ac_try="$ac_link"
10667case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
10671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672$as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>conftest.er1
f73dda09 10674 ac_status=$?
0628567a
JA
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
3185942a
JA
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext && {
10683 test "$cross_compiling" = yes ||
10684 $as_test_x conftest$ac_exeext
10685 }; then
b80f6443
JA
10686 LIBINTL="$LIBINTL $LIBICONV"
10687 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10688 gt_cv_func_gnugettext2_libintl=yes
10689
f73dda09 10690else
3185942a 10691 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
3185942a 10694
f73dda09 10695fi
3185942a
JA
10696
10697rm -rf conftest.dSYM
10698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 10699 conftest$ac_exeext conftest.$ac_ext
b80f6443
JA
10700 fi
10701 CPPFLAGS="$gt_save_CPPFLAGS"
10702 LIBS="$gt_save_LIBS"
10703fi
3185942a
JA
10704{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
10705$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
b80f6443
JA
10706 fi
10707
10708 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
10709 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
10710 && test "$PACKAGE" != gettext-runtime \
10711 && test "$PACKAGE" != gettext-tools; }; then
10712 gt_use_preinstalled_gnugettext=yes
10713 else
10714 LIBINTL=
10715 LTLIBINTL=
10716 INCINTL=
10717 fi
10718
10719
10720 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10721 nls_cv_use_gnu_gettext=yes
10722 fi
10723 fi
f73dda09 10724
b80f6443
JA
10725 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10726 BUILD_INCLUDED_LIBINTL=yes
10727 USE_INCLUDED_LIBINTL=yes
10728 LIBINTL="lib/intl/libintl.a $LIBICONV"
10729 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
10730 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10731 fi
f73dda09 10732
b80f6443
JA
10733 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10734 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10735 CATOBJEXT=.gmo
10736 fi
f73dda09 10737
f73dda09 10738
b80f6443
JA
10739 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10740 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10741
10742cat >>confdefs.h <<\_ACEOF
10743#define ENABLE_NLS 1
10744_ACEOF
10745
10746 else
10747 USE_NLS=no
10748 fi
10749 fi
10750
3185942a
JA
10751 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
10752$as_echo_n "checking whether to use NLS... " >&6; }
10753 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10754$as_echo "$USE_NLS" >&6; }
b80f6443 10755 if test "$USE_NLS" = "yes"; then
3185942a
JA
10756 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10757$as_echo_n "checking where the gettext function comes from... " >&6; }
b80f6443
JA
10758 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10759 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
10760 gt_source="external libintl"
10761 else
10762 gt_source="libc"
10763 fi
10764 else
10765 gt_source="included intl directory"
10766 fi
3185942a
JA
10767 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
10768$as_echo "$gt_source" >&6; }
b80f6443
JA
10769 fi
10770
10771 if test "$USE_NLS" = "yes"; then
10772
10773 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10774 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
3185942a
JA
10775 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
10776$as_echo_n "checking how to link with libintl... " >&6; }
10777 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
10778$as_echo "$LIBINTL" >&6; }
b80f6443
JA
10779
10780 for element in $INCINTL; do
10781 haveit=
10782 for x in $CPPFLAGS; do
10783
10784 acl_save_prefix="$prefix"
10785 prefix="$acl_final_prefix"
10786 acl_save_exec_prefix="$exec_prefix"
10787 exec_prefix="$acl_final_exec_prefix"
10788 eval x=\"$x\"
10789 exec_prefix="$acl_save_exec_prefix"
10790 prefix="$acl_save_prefix"
10791
10792 if test "X$x" = "X$element"; then
10793 haveit=yes
10794 break
10795 fi
10796 done
10797 if test -z "$haveit"; then
10798 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10799 fi
10800 done
10801
10802 fi
10803
10804
10805cat >>confdefs.h <<\_ACEOF
10806#define HAVE_GETTEXT 1
10807_ACEOF
10808
10809
10810cat >>confdefs.h <<\_ACEOF
10811#define HAVE_DCGETTEXT 1
10812_ACEOF
10813
10814 fi
10815
10816 POSUB=po
10817 fi
10818
10819
10820 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10821 BUILD_INCLUDED_LIBINTL=yes
10822 fi
10823
10824
10825
10826
10827
10828 nls_cv_header_intl=
10829 nls_cv_header_libgt=
10830
10831 DATADIRNAME=share
10832
10833
10834 INSTOBJEXT=.mo
10835
10836
10837 GENCAT=gencat
10838
10839
10840 if test "$USE_INCLUDED_LIBINTL" = yes; then
10841 INTLOBJS="\$(GETTOBJS)"
10842 fi
10843
10844
10845 INTL_LIBTOOL_SUFFIX_PREFIX=
10846
10847
10848
10849 INTLLIBS="$LIBINTL"
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862ac_header_dirent=no
10863for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3185942a
JA
10864 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10865{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10866$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10868 $as_echo_n "(cached) " >&6
7117c2d2
JA
10869else
10870 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
b80f6443
JA
10876#include <sys/types.h>
10877#include <$ac_hdr>
10878
7117c2d2
JA
10879int
10880main ()
10881{
b80f6443
JA
10882if ((DIR *) 0)
10883return 0;
7117c2d2
JA
10884 ;
10885 return 0;
10886}
10887_ACEOF
10888rm -f conftest.$ac_objext
3185942a
JA
10889if { (ac_try="$ac_compile"
10890case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10895$as_echo "$ac_try_echo") >&5
10896 (eval "$ac_compile") 2>conftest.er1
7117c2d2 10897 ac_status=$?
0628567a
JA
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
3185942a
JA
10901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.$ac_objext; then
b80f6443 10906 eval "$as_ac_Header=yes"
7117c2d2 10907else
3185942a 10908 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
3185942a 10911 eval "$as_ac_Header=no"
7117c2d2 10912fi
3185942a
JA
10913
10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 10915fi
3185942a
JA
10916ac_res=`eval 'as_val=${'$as_ac_Header'}
10917 $as_echo "$as_val"'`
10918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10919$as_echo "$ac_res" >&6; }
10920as_val=`eval 'as_val=${'$as_ac_Header'}
10921 $as_echo "$as_val"'`
10922 if test "x$as_val" = x""yes; then
b80f6443 10923 cat >>confdefs.h <<_ACEOF
3185942a 10924#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
b80f6443 10925_ACEOF
7117c2d2 10926
b80f6443 10927ac_header_dirent=$ac_hdr; break
7117c2d2
JA
10928fi
10929
b80f6443
JA
10930done
10931# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10932if test $ac_header_dirent = dirent.h; then
3185942a
JA
10933 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10934$as_echo_n "checking for library containing opendir... " >&6; }
b80f6443 10935if test "${ac_cv_search_opendir+set}" = set; then
3185942a 10936 $as_echo_n "(cached) " >&6
f73dda09 10937else
b80f6443 10938 ac_func_search_save_LIBS=$LIBS
b80f6443 10939cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
f73dda09 10945
3185942a
JA
10946/* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
b80f6443
JA
10949#ifdef __cplusplus
10950extern "C"
f73dda09 10951#endif
b80f6443 10952char opendir ();
f73dda09
JA
10953int
10954main ()
10955{
3185942a 10956return opendir ();
f73dda09
JA
10957 ;
10958 return 0;
10959}
10960_ACEOF
3185942a
JA
10961for ac_lib in '' dir; do
10962 if test -z "$ac_lib"; then
10963 ac_res="none required"
10964 else
10965 ac_res=-l$ac_lib
10966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10967 fi
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969if { (ac_try="$ac_link"
10970case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10973esac
10974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975$as_echo "$ac_try_echo") >&5
10976 (eval "$ac_link") 2>conftest.er1
f73dda09 10977 ac_status=$?
0628567a
JA
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
3185942a
JA
10981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext && {
10986 test "$cross_compiling" = yes ||
10987 $as_test_x conftest$ac_exeext
10988 }; then
10989 ac_cv_search_opendir=$ac_res
f73dda09 10990else
3185942a 10991 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
f73dda09 10994
3185942a 10995fi
0628567a 10996
3185942a
JA
10997rm -rf conftest.dSYM
10998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext
11000 if test "${ac_cv_search_opendir+set}" = set; then
11001 break
f73dda09 11002fi
3185942a
JA
11003done
11004if test "${ac_cv_search_opendir+set}" = set; then
11005 :
11006else
11007 ac_cv_search_opendir=no
f73dda09 11008fi
3185942a 11009rm conftest.$ac_ext
b80f6443
JA
11010LIBS=$ac_func_search_save_LIBS
11011fi
3185942a
JA
11012{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11013$as_echo "$ac_cv_search_opendir" >&6; }
11014ac_res=$ac_cv_search_opendir
11015if test "$ac_res" != no; then
11016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f73dda09
JA
11017
11018fi
11019
b80f6443 11020else
3185942a
JA
11021 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11022$as_echo_n "checking for library containing opendir... " >&6; }
b80f6443 11023if test "${ac_cv_search_opendir+set}" = set; then
3185942a 11024 $as_echo_n "(cached) " >&6
f73dda09 11025else
b80f6443 11026 ac_func_search_save_LIBS=$LIBS
b80f6443 11027cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11028/* confdefs.h. */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h. */
f73dda09 11033
3185942a
JA
11034/* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
b80f6443
JA
11037#ifdef __cplusplus
11038extern "C"
f73dda09 11039#endif
b80f6443 11040char opendir ();
f73dda09
JA
11041int
11042main ()
11043{
3185942a 11044return opendir ();
f73dda09
JA
11045 ;
11046 return 0;
11047}
11048_ACEOF
3185942a
JA
11049for ac_lib in '' x; do
11050 if test -z "$ac_lib"; then
11051 ac_res="none required"
11052 else
11053 ac_res=-l$ac_lib
11054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11055 fi
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057if { (ac_try="$ac_link"
11058case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11061esac
11062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11063$as_echo "$ac_try_echo") >&5
11064 (eval "$ac_link") 2>conftest.er1
f73dda09 11065 ac_status=$?
0628567a
JA
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
3185942a
JA
11069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
11073 } && test -s conftest$ac_exeext && {
11074 test "$cross_compiling" = yes ||
11075 $as_test_x conftest$ac_exeext
11076 }; then
11077 ac_cv_search_opendir=$ac_res
f73dda09 11078else
3185942a 11079 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11080sed 's/^/| /' conftest.$ac_ext >&5
11081
f73dda09 11082
3185942a 11083fi
0628567a 11084
3185942a
JA
11085rm -rf conftest.dSYM
11086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext
11088 if test "${ac_cv_search_opendir+set}" = set; then
11089 break
f73dda09 11090fi
3185942a
JA
11091done
11092if test "${ac_cv_search_opendir+set}" = set; then
11093 :
11094else
11095 ac_cv_search_opendir=no
f73dda09 11096fi
3185942a 11097rm conftest.$ac_ext
b80f6443
JA
11098LIBS=$ac_func_search_save_LIBS
11099fi
3185942a
JA
11100{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11101$as_echo "$ac_cv_search_opendir" >&6; }
11102ac_res=$ac_cv_search_opendir
11103if test "$ac_res" != no; then
11104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f73dda09 11105
b80f6443 11106fi
f73dda09
JA
11107
11108fi
11109
3185942a
JA
11110{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11111$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
b80f6443 11112if test "${ac_cv_header_time+set}" = set; then
3185942a 11113 $as_echo_n "(cached) " >&6
f73dda09
JA
11114else
11115 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
b80f6443
JA
11121#include <sys/types.h>
11122#include <sys/time.h>
11123#include <time.h>
f73dda09
JA
11124
11125int
11126main ()
11127{
b80f6443
JA
11128if ((struct tm *) 0)
11129return 0;
f73dda09
JA
11130 ;
11131 return 0;
11132}
11133_ACEOF
b80f6443 11134rm -f conftest.$ac_objext
3185942a
JA
11135if { (ac_try="$ac_compile"
11136case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141$as_echo "$ac_try_echo") >&5
11142 (eval "$ac_compile") 2>conftest.er1
f73dda09 11143 ac_status=$?
0628567a
JA
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
3185942a
JA
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest.$ac_objext; then
b80f6443 11152 ac_cv_header_time=yes
f73dda09 11153else
3185942a 11154 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
3185942a 11157 ac_cv_header_time=no
f73dda09 11158fi
3185942a
JA
11159
11160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 11161fi
3185942a
JA
11162{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11163$as_echo "$ac_cv_header_time" >&6; }
b80f6443 11164if test $ac_cv_header_time = yes; then
f73dda09 11165
b80f6443
JA
11166cat >>confdefs.h <<\_ACEOF
11167#define TIME_WITH_SYS_TIME 1
11168_ACEOF
f73dda09
JA
11169
11170fi
11171
f73dda09 11172
f73dda09 11173
b80f6443
JA
11174
11175for ac_header in inttypes.h
11176do
3185942a
JA
11177as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180$as_echo_n "checking for $ac_header... " >&6; }
11181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 $as_echo_n "(cached) " >&6
11183fi
11184ac_res=`eval 'as_val=${'$as_ac_Header'}
11185 $as_echo "$as_val"'`
11186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11187$as_echo "$ac_res" >&6; }
b80f6443
JA
11188else
11189 # Is the header compilable?
3185942a
JA
11190{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11192cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11193/* confdefs.h. */
11194_ACEOF
11195cat confdefs.h >>conftest.$ac_ext
11196cat >>conftest.$ac_ext <<_ACEOF
11197/* end confdefs.h. */
b80f6443
JA
11198$ac_includes_default
11199#include <$ac_header>
11200_ACEOF
11201rm -f conftest.$ac_objext
3185942a
JA
11202if { (ac_try="$ac_compile"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11208$as_echo "$ac_try_echo") >&5
11209 (eval "$ac_compile") 2>conftest.er1
f73dda09 11210 ac_status=$?
0628567a
JA
11211 grep -v '^ *+' conftest.er1 >conftest.err
11212 rm -f conftest.er1
11213 cat conftest.err >&5
3185942a
JA
11214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
b80f6443 11219 ac_header_compiler=yes
f73dda09 11220else
3185942a 11221 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
3185942a 11224 ac_header_compiler=no
f73dda09 11225fi
3185942a
JA
11226
11227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229$as_echo "$ac_header_compiler" >&6; }
f73dda09 11230
b80f6443 11231# Is the header present?
3185942a
JA
11232{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11234cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
f73dda09
JA
11240#include <$ac_header>
11241_ACEOF
3185942a
JA
11242if { (ac_try="$ac_cpp conftest.$ac_ext"
11243case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11248$as_echo "$ac_try_echo") >&5
11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 11250 ac_status=$?
0628567a 11251 grep -v '^ *+' conftest.er1 >conftest.err
f73dda09
JA
11252 rm -f conftest.er1
11253 cat conftest.err >&5
3185942a
JA
11254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev/null && {
11256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 }; then
b80f6443 11259 ac_header_preproc=yes
f73dda09 11260else
3185942a 11261 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
b80f6443 11264 ac_header_preproc=no
f73dda09 11265fi
3185942a 11266
f73dda09 11267rm -f conftest.err conftest.$ac_ext
3185942a
JA
11268{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11270
11271# So? What about this header?
0628567a
JA
11272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 yes:no: )
3185942a
JA
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11278 ac_header_preproc=yes
11279 ;;
11280 no:yes:* )
3185942a
JA
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11293 ( cat <<\_ASBOX
0628567a
JA
11294## ------------------------------- ##
11295## Report this to bug-bash@gnu.org ##
11296## ------------------------------- ##
11297_ASBOX
3185942a 11298 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11299 ;;
b80f6443 11300esac
3185942a
JA
11301{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11302$as_echo_n "checking for $ac_header... " >&6; }
11303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 $as_echo_n "(cached) " >&6
b80f6443 11305else
0628567a 11306 eval "$as_ac_Header=\$ac_header_preproc"
f73dda09 11307fi
3185942a
JA
11308ac_res=`eval 'as_val=${'$as_ac_Header'}
11309 $as_echo "$as_val"'`
11310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11311$as_echo "$ac_res" >&6; }
b80f6443
JA
11312
11313fi
3185942a
JA
11314as_val=`eval 'as_val=${'$as_ac_Header'}
11315 $as_echo "$as_val"'`
11316 if test "x$as_val" = x""yes; then
b80f6443 11317 cat >>confdefs.h <<_ACEOF
3185942a 11318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 11319_ACEOF
f73dda09
JA
11320
11321fi
b80f6443 11322
f73dda09
JA
11323done
11324
b80f6443
JA
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
95732b49 11343
b80f6443
JA
11344
11345
11346for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
11347 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
95732b49 11348 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
f73dda09 11349do
3185942a
JA
11350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11353$as_echo_n "checking for $ac_header... " >&6; }
11354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 $as_echo_n "(cached) " >&6
11356fi
11357ac_res=`eval 'as_val=${'$as_ac_Header'}
11358 $as_echo "$as_val"'`
11359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11360$as_echo "$ac_res" >&6; }
f73dda09 11361else
b80f6443 11362 # Is the header compilable?
3185942a
JA
11363{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11364$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11365cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11366/* confdefs.h. */
11367_ACEOF
11368cat confdefs.h >>conftest.$ac_ext
11369cat >>conftest.$ac_ext <<_ACEOF
11370/* end confdefs.h. */
b80f6443
JA
11371$ac_includes_default
11372#include <$ac_header>
11373_ACEOF
11374rm -f conftest.$ac_objext
3185942a
JA
11375if { (ac_try="$ac_compile"
11376case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379esac
11380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381$as_echo "$ac_try_echo") >&5
11382 (eval "$ac_compile") 2>conftest.er1
f73dda09 11383 ac_status=$?
0628567a
JA
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
3185942a
JA
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.$ac_objext; then
b80f6443 11392 ac_header_compiler=yes
f73dda09 11393else
3185942a 11394 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11395sed 's/^/| /' conftest.$ac_ext >&5
11396
3185942a 11397 ac_header_compiler=no
f73dda09 11398fi
3185942a
JA
11399
11400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11402$as_echo "$ac_header_compiler" >&6; }
f73dda09 11403
b80f6443 11404# Is the header present?
3185942a
JA
11405{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11406$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11407cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
b80f6443
JA
11413#include <$ac_header>
11414_ACEOF
3185942a
JA
11415if { (ac_try="$ac_cpp conftest.$ac_ext"
11416case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
11420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421$as_echo "$ac_try_echo") >&5
11422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 11423 ac_status=$?
0628567a 11424 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
11425 rm -f conftest.er1
11426 cat conftest.err >&5
3185942a
JA
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } >/dev/null && {
11429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 }; then
b80f6443 11432 ac_header_preproc=yes
7117c2d2 11433else
3185942a 11434 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
b80f6443
JA
11437 ac_header_preproc=no
11438fi
3185942a 11439
b80f6443 11440rm -f conftest.err conftest.$ac_ext
3185942a
JA
11441{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11442$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11443
11444# So? What about this header?
0628567a
JA
11445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11446 yes:no: )
3185942a
JA
11447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11448$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11450$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11451 ac_header_preproc=yes
11452 ;;
11453 no:yes:* )
3185942a
JA
11454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11455$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11457$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11459$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11461$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11463$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11465$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11466 ( cat <<\_ASBOX
0628567a
JA
11467## ------------------------------- ##
11468## Report this to bug-bash@gnu.org ##
11469## ------------------------------- ##
11470_ASBOX
3185942a 11471 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11472 ;;
b80f6443 11473esac
3185942a
JA
11474{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11475$as_echo_n "checking for $ac_header... " >&6; }
11476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477 $as_echo_n "(cached) " >&6
b80f6443 11478else
0628567a 11479 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 11480fi
3185942a
JA
11481ac_res=`eval 'as_val=${'$as_ac_Header'}
11482 $as_echo "$as_val"'`
11483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11484$as_echo "$ac_res" >&6; }
b80f6443
JA
11485
11486fi
3185942a
JA
11487as_val=`eval 'as_val=${'$as_ac_Header'}
11488 $as_echo "$as_val"'`
11489 if test "x$as_val" = x""yes; then
b80f6443 11490 cat >>confdefs.h <<_ACEOF
3185942a 11491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
11492_ACEOF
11493
11494fi
11495
11496done
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
95732b49 11510for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
b80f6443
JA
11511 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
11512 sys/time.h sys/times.h sys/types.h sys/wait.h
11513do
3185942a
JA
11514as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11517$as_echo_n "checking for $ac_header... " >&6; }
11518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519 $as_echo_n "(cached) " >&6
11520fi
11521ac_res=`eval 'as_val=${'$as_ac_Header'}
11522 $as_echo "$as_val"'`
11523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11524$as_echo "$ac_res" >&6; }
b80f6443
JA
11525else
11526 # Is the header compilable?
3185942a
JA
11527{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11529cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11530/* confdefs.h. */
11531_ACEOF
11532cat confdefs.h >>conftest.$ac_ext
11533cat >>conftest.$ac_ext <<_ACEOF
11534/* end confdefs.h. */
b80f6443
JA
11535$ac_includes_default
11536#include <$ac_header>
11537_ACEOF
11538rm -f conftest.$ac_objext
3185942a
JA
11539if { (ac_try="$ac_compile"
11540case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543esac
11544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11545$as_echo "$ac_try_echo") >&5
11546 (eval "$ac_compile") 2>conftest.er1
b80f6443 11547 ac_status=$?
0628567a
JA
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
3185942a
JA
11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest.$ac_objext; then
b80f6443
JA
11556 ac_header_compiler=yes
11557else
3185942a 11558 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
3185942a 11561 ac_header_compiler=no
b80f6443 11562fi
3185942a
JA
11563
11564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
11567
11568# Is the header present?
3185942a
JA
11569{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11571cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
b80f6443
JA
11577#include <$ac_header>
11578_ACEOF
3185942a
JA
11579if { (ac_try="$ac_cpp conftest.$ac_ext"
11580case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
11584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11585$as_echo "$ac_try_echo") >&5
11586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 11587 ac_status=$?
0628567a 11588 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
11589 rm -f conftest.er1
11590 cat conftest.err >&5
3185942a
JA
11591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } >/dev/null && {
11593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11594 test ! -s conftest.err
11595 }; then
b80f6443
JA
11596 ac_header_preproc=yes
11597else
3185942a 11598 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
b80f6443
JA
11601 ac_header_preproc=no
11602fi
3185942a 11603
b80f6443 11604rm -f conftest.err conftest.$ac_ext
3185942a
JA
11605{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11607
11608# So? What about this header?
0628567a
JA
11609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11610 yes:no: )
3185942a
JA
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11615 ac_header_preproc=yes
11616 ;;
11617 no:yes:* )
3185942a
JA
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11630 ( cat <<\_ASBOX
0628567a
JA
11631## ------------------------------- ##
11632## Report this to bug-bash@gnu.org ##
11633## ------------------------------- ##
11634_ASBOX
3185942a 11635 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11636 ;;
b80f6443 11637esac
3185942a
JA
11638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11639$as_echo_n "checking for $ac_header... " >&6; }
11640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641 $as_echo_n "(cached) " >&6
b80f6443 11642else
0628567a 11643 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 11644fi
3185942a
JA
11645ac_res=`eval 'as_val=${'$as_ac_Header'}
11646 $as_echo "$as_val"'`
11647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11648$as_echo "$ac_res" >&6; }
b80f6443
JA
11649
11650fi
3185942a
JA
11651as_val=`eval 'as_val=${'$as_ac_Header'}
11652 $as_echo "$as_val"'`
11653 if test "x$as_val" = x""yes; then
b80f6443 11654 cat >>confdefs.h <<_ACEOF
3185942a 11655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
11656_ACEOF
11657
11658fi
11659
11660done
11661
11662
11663
11664for ac_header in netinet/in.h arpa/inet.h
11665do
3185942a
JA
11666as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11669$as_echo_n "checking for $ac_header... " >&6; }
11670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11671 $as_echo_n "(cached) " >&6
11672fi
11673ac_res=`eval 'as_val=${'$as_ac_Header'}
11674 $as_echo "$as_val"'`
11675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11676$as_echo "$ac_res" >&6; }
b80f6443
JA
11677else
11678 # Is the header compilable?
3185942a
JA
11679{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 11681cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
b80f6443
JA
11687$ac_includes_default
11688#include <$ac_header>
11689_ACEOF
11690rm -f conftest.$ac_objext
3185942a
JA
11691if { (ac_try="$ac_compile"
11692case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695esac
11696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11697$as_echo "$ac_try_echo") >&5
11698 (eval "$ac_compile") 2>conftest.er1
b80f6443 11699 ac_status=$?
0628567a
JA
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
3185942a
JA
11703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest.$ac_objext; then
b80f6443
JA
11708 ac_header_compiler=yes
11709else
3185942a 11710 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
3185942a 11713 ac_header_compiler=no
b80f6443 11714fi
3185942a
JA
11715
11716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11718$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
11719
11720# Is the header present?
3185942a
JA
11721{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11722$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 11723cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
b80f6443
JA
11729#include <$ac_header>
11730_ACEOF
3185942a
JA
11731if { (ac_try="$ac_cpp conftest.$ac_ext"
11732case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735esac
11736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11737$as_echo "$ac_try_echo") >&5
11738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 11739 ac_status=$?
0628567a 11740 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
11741 rm -f conftest.er1
11742 cat conftest.err >&5
3185942a
JA
11743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } >/dev/null && {
11745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 }; then
b80f6443
JA
11748 ac_header_preproc=yes
11749else
3185942a 11750 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
b80f6443
JA
11753 ac_header_preproc=no
11754fi
3185942a 11755
b80f6443 11756rm -f conftest.err conftest.$ac_ext
3185942a
JA
11757{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11758$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
11759
11760# So? What about this header?
0628567a
JA
11761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11762 yes:no: )
3185942a
JA
11763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11764$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11766$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
11767 ac_header_preproc=yes
11768 ;;
11769 no:yes:* )
3185942a
JA
11770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11771$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11773$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11775$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11777$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11781$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 ( cat <<\_ASBOX
0628567a
JA
11783## ------------------------------- ##
11784## Report this to bug-bash@gnu.org ##
11785## ------------------------------- ##
11786_ASBOX
3185942a 11787 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 11788 ;;
b80f6443 11789esac
3185942a
JA
11790{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11791$as_echo_n "checking for $ac_header... " >&6; }
11792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 $as_echo_n "(cached) " >&6
b80f6443 11794else
0628567a 11795 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 11796fi
3185942a
JA
11797ac_res=`eval 'as_val=${'$as_ac_Header'}
11798 $as_echo "$as_val"'`
11799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11800$as_echo "$ac_res" >&6; }
b80f6443
JA
11801
11802fi
3185942a
JA
11803as_val=`eval 'as_val=${'$as_ac_Header'}
11804 $as_echo "$as_val"'`
11805 if test "x$as_val" = x""yes; then
b80f6443 11806 cat >>confdefs.h <<_ACEOF
3185942a 11807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
11808_ACEOF
11809
11810fi
11811
11812done
11813
11814
3185942a
JA
11815{ $as_echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
11816$as_echo_n "checking for sys/ptem.h... " >&6; }
95732b49 11817if test "${ac_cv_header_sys_ptem_h+set}" = set; then
3185942a 11818 $as_echo_n "(cached) " >&6
95732b49
JA
11819else
11820 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
95732b49
JA
11826
11827#if HAVE_SYS_STREAM_H
11828# include <sys/stream.h>
11829#endif
11830
11831
11832#include <sys/ptem.h>
11833_ACEOF
11834rm -f conftest.$ac_objext
3185942a
JA
11835if { (ac_try="$ac_compile"
11836case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839esac
11840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11841$as_echo "$ac_try_echo") >&5
11842 (eval "$ac_compile") 2>conftest.er1
95732b49 11843 ac_status=$?
0628567a
JA
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
3185942a
JA
11847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
95732b49
JA
11852 ac_cv_header_sys_ptem_h=yes
11853else
3185942a 11854 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11855sed 's/^/| /' conftest.$ac_ext >&5
11856
3185942a 11857 ac_cv_header_sys_ptem_h=no
95732b49 11858fi
3185942a
JA
11859
11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95732b49 11861fi
3185942a
JA
11862{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
11863$as_echo "$ac_cv_header_sys_ptem_h" >&6; }
95732b49
JA
11864
11865
11866
b80f6443
JA
11867# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11868# for constant arguments. Useless!
3185942a
JA
11869{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
11870$as_echo_n "checking for working alloca.h... " >&6; }
b80f6443 11871if test "${ac_cv_working_alloca_h+set}" = set; then
3185942a 11872 $as_echo_n "(cached) " >&6
b80f6443
JA
11873else
11874 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
b80f6443
JA
11880#include <alloca.h>
11881int
11882main ()
11883{
11884char *p = (char *) alloca (2 * sizeof (int));
3185942a 11885 if (p) return 0;
b80f6443
JA
11886 ;
11887 return 0;
11888}
11889_ACEOF
11890rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
11891if { (ac_try="$ac_link"
11892case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11897$as_echo "$ac_try_echo") >&5
11898 (eval "$ac_link") 2>conftest.er1
b80f6443 11899 ac_status=$?
0628567a
JA
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
3185942a
JA
11903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest$ac_exeext && {
11908 test "$cross_compiling" = yes ||
11909 $as_test_x conftest$ac_exeext
11910 }; then
b80f6443
JA
11911 ac_cv_working_alloca_h=yes
11912else
3185942a 11913 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
3185942a 11916 ac_cv_working_alloca_h=no
b80f6443 11917fi
3185942a
JA
11918
11919rm -rf conftest.dSYM
11920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 11921 conftest$ac_exeext conftest.$ac_ext
b80f6443 11922fi
3185942a
JA
11923{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11924$as_echo "$ac_cv_working_alloca_h" >&6; }
b80f6443
JA
11925if test $ac_cv_working_alloca_h = yes; then
11926
11927cat >>confdefs.h <<\_ACEOF
11928#define HAVE_ALLOCA_H 1
11929_ACEOF
11930
11931fi
11932
3185942a
JA
11933{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
11934$as_echo_n "checking for alloca... " >&6; }
b80f6443 11935if test "${ac_cv_func_alloca_works+set}" = set; then
3185942a 11936 $as_echo_n "(cached) " >&6
b80f6443
JA
11937else
11938 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
b80f6443
JA
11944#ifdef __GNUC__
11945# define alloca __builtin_alloca
11946#else
11947# ifdef _MSC_VER
11948# include <malloc.h>
11949# define alloca _alloca
11950# else
3185942a 11951# ifdef HAVE_ALLOCA_H
b80f6443
JA
11952# include <alloca.h>
11953# else
11954# ifdef _AIX
11955 #pragma alloca
11956# else
11957# ifndef alloca /* predefined by HP cc +Olibcalls */
11958char *alloca ();
11959# endif
11960# endif
11961# endif
11962# endif
11963#endif
11964
11965int
11966main ()
11967{
11968char *p = (char *) alloca (1);
3185942a 11969 if (p) return 0;
b80f6443
JA
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
11975if { (ac_try="$ac_link"
11976case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11981$as_echo "$ac_try_echo") >&5
11982 (eval "$ac_link") 2>conftest.er1
b80f6443 11983 ac_status=$?
0628567a
JA
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
3185942a
JA
11987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest$ac_exeext && {
11992 test "$cross_compiling" = yes ||
11993 $as_test_x conftest$ac_exeext
11994 }; then
b80f6443
JA
11995 ac_cv_func_alloca_works=yes
11996else
3185942a 11997 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
3185942a 12000 ac_cv_func_alloca_works=no
b80f6443 12001fi
3185942a
JA
12002
12003rm -rf conftest.dSYM
12004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12005 conftest$ac_exeext conftest.$ac_ext
b80f6443 12006fi
3185942a
JA
12007{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12008$as_echo "$ac_cv_func_alloca_works" >&6; }
b80f6443
JA
12009
12010if test $ac_cv_func_alloca_works = yes; then
12011
12012cat >>confdefs.h <<\_ACEOF
12013#define HAVE_ALLOCA 1
12014_ACEOF
12015
12016else
12017 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12018# that cause trouble. Some versions do not even contain alloca or
12019# contain a buggy version. If you still want to use their alloca,
12020# use ar to extract alloca.o from them instead of compiling alloca.c.
12021
3185942a 12022ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
b80f6443
JA
12023
12024cat >>confdefs.h <<\_ACEOF
12025#define C_ALLOCA 1
12026_ACEOF
12027
12028
3185942a
JA
12029{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12030$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b80f6443 12031if test "${ac_cv_os_cray+set}" = set; then
3185942a 12032 $as_echo_n "(cached) " >&6
b80f6443
JA
12033else
12034 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
3185942a 12040#if defined CRAY && ! defined CRAY2
b80f6443
JA
12041webecray
12042#else
12043wenotbecray
12044#endif
12045
12046_ACEOF
12047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 12048 $EGREP "webecray" >/dev/null 2>&1; then
b80f6443
JA
12049 ac_cv_os_cray=yes
12050else
12051 ac_cv_os_cray=no
12052fi
12053rm -f conftest*
12054
12055fi
3185942a
JA
12056{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12057$as_echo "$ac_cv_os_cray" >&6; }
b80f6443
JA
12058if test $ac_cv_os_cray = yes; then
12059 for ac_func in _getb67 GETB67 getb67; do
3185942a
JA
12060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12061{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12062$as_echo_n "checking for $ac_func... " >&6; }
12063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12064 $as_echo_n "(cached) " >&6
b80f6443
JA
12065else
12066 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12074#define $ac_func innocuous_$ac_func
12075
b80f6443 12076/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12077 which can conflict with char $ac_func (); below.
12078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 <limits.h> exists even on freestanding compilers. */
12080
12081#ifdef __STDC__
12082# include <limits.h>
12083#else
12084# include <assert.h>
12085#endif
12086
12087#undef $ac_func
12088
3185942a
JA
12089/* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
b80f6443
JA
12092#ifdef __cplusplus
12093extern "C"
b80f6443 12094#endif
b80f6443
JA
12095char $ac_func ();
12096/* The GNU C library defines this for functions which it implements
12097 to always fail with ENOSYS. Some functions are actually named
12098 something starting with __ and the normal name is an alias. */
3185942a 12099#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 12100choke me
b80f6443
JA
12101#endif
12102
0628567a
JA
12103int
12104main ()
12105{
3185942a 12106return $ac_func ();
b80f6443
JA
12107 ;
12108 return 0;
12109}
12110_ACEOF
12111rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12112if { (ac_try="$ac_link"
12113case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12118$as_echo "$ac_try_echo") >&5
12119 (eval "$ac_link") 2>conftest.er1
b80f6443 12120 ac_status=$?
0628567a
JA
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
3185942a
JA
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest$ac_exeext && {
12129 test "$cross_compiling" = yes ||
12130 $as_test_x conftest$ac_exeext
12131 }; then
b80f6443
JA
12132 eval "$as_ac_var=yes"
12133else
3185942a 12134 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
3185942a 12137 eval "$as_ac_var=no"
b80f6443 12138fi
3185942a
JA
12139
12140rm -rf conftest.dSYM
12141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12142 conftest$ac_exeext conftest.$ac_ext
b80f6443 12143fi
3185942a
JA
12144ac_res=`eval 'as_val=${'$as_ac_var'}
12145 $as_echo "$as_val"'`
12146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12147$as_echo "$ac_res" >&6; }
12148as_val=`eval 'as_val=${'$as_ac_var'}
12149 $as_echo "$as_val"'`
12150 if test "x$as_val" = x""yes; then
b80f6443
JA
12151
12152cat >>confdefs.h <<_ACEOF
12153#define CRAY_STACKSEG_END $ac_func
12154_ACEOF
12155
12156 break
12157fi
12158
12159 done
12160fi
12161
3185942a
JA
12162{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12163$as_echo_n "checking stack direction for C alloca... " >&6; }
b80f6443 12164if test "${ac_cv_c_stack_direction+set}" = set; then
3185942a 12165 $as_echo_n "(cached) " >&6
b80f6443
JA
12166else
12167 if test "$cross_compiling" = yes; then
12168 ac_cv_c_stack_direction=0
12169else
12170 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12171/* confdefs.h. */
12172_ACEOF
12173cat confdefs.h >>conftest.$ac_ext
12174cat >>conftest.$ac_ext <<_ACEOF
12175/* end confdefs.h. */
3185942a 12176$ac_includes_default
b80f6443
JA
12177int
12178find_stack_direction ()
12179{
12180 static char *addr = 0;
12181 auto char dummy;
12182 if (addr == 0)
12183 {
12184 addr = &dummy;
12185 return find_stack_direction ();
12186 }
12187 else
12188 return (&dummy > addr) ? 1 : -1;
12189}
12190
12191int
12192main ()
12193{
3185942a 12194 return find_stack_direction () < 0;
b80f6443
JA
12195}
12196_ACEOF
12197rm -f conftest$ac_exeext
3185942a
JA
12198if { (ac_try="$ac_link"
12199case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204$as_echo "$ac_try_echo") >&5
12205 (eval "$ac_link") 2>&5
b80f6443 12206 ac_status=$?
3185942a 12207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 12208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214$as_echo "$ac_try_echo") >&5
12215 (eval "$ac_try") 2>&5
b80f6443 12216 ac_status=$?
3185942a 12217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
12218 (exit $ac_status); }; }; then
12219 ac_cv_c_stack_direction=1
12220else
3185942a
JA
12221 $as_echo "$as_me: program exited with status $ac_status" >&5
12222$as_echo "$as_me: failed program was:" >&5
0628567a
JA
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
b80f6443
JA
12225( exit $ac_status )
12226ac_cv_c_stack_direction=-1
12227fi
3185942a
JA
12228rm -rf conftest.dSYM
12229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 12230fi
3185942a
JA
12231
12232
b80f6443 12233fi
3185942a
JA
12234{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12235$as_echo "$ac_cv_c_stack_direction" >&6; }
b80f6443
JA
12236
12237cat >>confdefs.h <<_ACEOF
12238#define STACK_DIRECTION $ac_cv_c_stack_direction
12239_ACEOF
12240
12241
12242fi
12243
3185942a
JA
12244{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12245$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
b80f6443 12246if test "${ac_cv_func_getpgrp_void+set}" = set; then
3185942a 12247 $as_echo_n "(cached) " >&6
b80f6443
JA
12248else
12249 # Use it with a single arg.
12250cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
b80f6443
JA
12256$ac_includes_default
12257int
12258main ()
12259{
12260getpgrp (0);
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext
3185942a
JA
12266if { (ac_try="$ac_compile"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272$as_echo "$ac_try_echo") >&5
12273 (eval "$ac_compile") 2>conftest.er1
b80f6443 12274 ac_status=$?
0628567a
JA
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
3185942a
JA
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.$ac_objext; then
b80f6443
JA
12283 ac_cv_func_getpgrp_void=no
12284else
3185942a 12285 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12286sed 's/^/| /' conftest.$ac_ext >&5
12287
3185942a 12288 ac_cv_func_getpgrp_void=yes
b80f6443 12289fi
3185942a
JA
12290
12291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
12292
12293fi
3185942a
JA
12294{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12295$as_echo "$ac_cv_func_getpgrp_void" >&6; }
b80f6443
JA
12296if test $ac_cv_func_getpgrp_void = yes; then
12297
12298cat >>confdefs.h <<\_ACEOF
12299#define GETPGRP_VOID 1
12300_ACEOF
12301
12302fi
12303
b80f6443 12304if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
3185942a 12305 $as_echo_n "(cached) " >&6
b80f6443 12306else
0628567a 12307 ac_cv_func_setvbuf_reversed=no
0628567a 12308fi
b80f6443 12309
b80f6443
JA
12310
12311
12312for ac_func in vprintf
12313do
3185942a
JA
12314as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12315{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12316$as_echo_n "checking for $ac_func... " >&6; }
12317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12318 $as_echo_n "(cached) " >&6
b80f6443
JA
12319else
12320 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
12326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12328#define $ac_func innocuous_$ac_func
12329
b80f6443 12330/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12331 which can conflict with char $ac_func (); below.
12332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12333 <limits.h> exists even on freestanding compilers. */
12334
12335#ifdef __STDC__
12336# include <limits.h>
12337#else
12338# include <assert.h>
12339#endif
12340
12341#undef $ac_func
12342
3185942a
JA
12343/* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
b80f6443
JA
12346#ifdef __cplusplus
12347extern "C"
b80f6443 12348#endif
b80f6443
JA
12349char $ac_func ();
12350/* The GNU C library defines this for functions which it implements
12351 to always fail with ENOSYS. Some functions are actually named
12352 something starting with __ and the normal name is an alias. */
3185942a 12353#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 12354choke me
b80f6443
JA
12355#endif
12356
0628567a
JA
12357int
12358main ()
12359{
3185942a 12360return $ac_func ();
b80f6443
JA
12361 ;
12362 return 0;
12363}
12364_ACEOF
12365rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12366if { (ac_try="$ac_link"
12367case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372$as_echo "$ac_try_echo") >&5
12373 (eval "$ac_link") 2>conftest.er1
b80f6443 12374 ac_status=$?
0628567a
JA
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
3185942a
JA
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest$ac_exeext && {
12383 test "$cross_compiling" = yes ||
12384 $as_test_x conftest$ac_exeext
12385 }; then
b80f6443
JA
12386 eval "$as_ac_var=yes"
12387else
3185942a 12388 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
3185942a 12391 eval "$as_ac_var=no"
b80f6443 12392fi
3185942a
JA
12393
12394rm -rf conftest.dSYM
12395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12396 conftest$ac_exeext conftest.$ac_ext
b80f6443 12397fi
3185942a
JA
12398ac_res=`eval 'as_val=${'$as_ac_var'}
12399 $as_echo "$as_val"'`
12400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12401$as_echo "$ac_res" >&6; }
12402as_val=`eval 'as_val=${'$as_ac_var'}
12403 $as_echo "$as_val"'`
12404 if test "x$as_val" = x""yes; then
b80f6443 12405 cat >>confdefs.h <<_ACEOF
3185942a 12406#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
12407_ACEOF
12408
3185942a
JA
12409{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12410$as_echo_n "checking for _doprnt... " >&6; }
b80f6443 12411if test "${ac_cv_func__doprnt+set}" = set; then
3185942a 12412 $as_echo_n "(cached) " >&6
b80f6443
JA
12413else
12414 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12415/* confdefs.h. */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h. */
12420/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422#define _doprnt innocuous__doprnt
12423
b80f6443 12424/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12425 which can conflict with char _doprnt (); below.
12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 <limits.h> exists even on freestanding compilers. */
12428
12429#ifdef __STDC__
12430# include <limits.h>
12431#else
12432# include <assert.h>
12433#endif
12434
12435#undef _doprnt
12436
3185942a
JA
12437/* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
0628567a
JA
12440#ifdef __cplusplus
12441extern "C"
b80f6443 12442#endif
b80f6443
JA
12443char _doprnt ();
12444/* The GNU C library defines this for functions which it implements
12445 to always fail with ENOSYS. Some functions are actually named
12446 something starting with __ and the normal name is an alias. */
3185942a 12447#if defined __stub__doprnt || defined __stub____doprnt
b80f6443 12448choke me
b80f6443
JA
12449#endif
12450
0628567a
JA
12451int
12452main ()
12453{
3185942a 12454return _doprnt ();
b80f6443
JA
12455 ;
12456 return 0;
12457}
12458_ACEOF
12459rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12460if { (ac_try="$ac_link"
12461case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
12465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12466$as_echo "$ac_try_echo") >&5
12467 (eval "$ac_link") 2>conftest.er1
b80f6443 12468 ac_status=$?
0628567a
JA
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
3185942a
JA
12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest$ac_exeext && {
12477 test "$cross_compiling" = yes ||
12478 $as_test_x conftest$ac_exeext
12479 }; then
b80f6443
JA
12480 ac_cv_func__doprnt=yes
12481else
3185942a 12482 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12483sed 's/^/| /' conftest.$ac_ext >&5
12484
3185942a 12485 ac_cv_func__doprnt=no
b80f6443 12486fi
3185942a
JA
12487
12488rm -rf conftest.dSYM
12489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12490 conftest$ac_exeext conftest.$ac_ext
b80f6443 12491fi
3185942a
JA
12492{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12493$as_echo "$ac_cv_func__doprnt" >&6; }
12494if test "x$ac_cv_func__doprnt" = x""yes; then
b80f6443
JA
12495
12496cat >>confdefs.h <<\_ACEOF
12497#define HAVE_DOPRNT 1
12498_ACEOF
12499
12500fi
12501
12502fi
12503done
12504
12505
3185942a
JA
12506{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12507$as_echo_n "checking for working strcoll... " >&6; }
b80f6443 12508if test "${ac_cv_func_strcoll_works+set}" = set; then
3185942a 12509 $as_echo_n "(cached) " >&6
b80f6443
JA
12510else
12511 if test "$cross_compiling" = yes; then
12512 ac_cv_func_strcoll_works=no
12513else
12514 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12515/* confdefs.h. */
12516_ACEOF
12517cat confdefs.h >>conftest.$ac_ext
12518cat >>conftest.$ac_ext <<_ACEOF
12519/* end confdefs.h. */
b80f6443
JA
12520$ac_includes_default
12521int
12522main ()
12523{
3185942a 12524return (strcoll ("abc", "def") >= 0 ||
b80f6443
JA
12525 strcoll ("ABC", "DEF") >= 0 ||
12526 strcoll ("123", "456") >= 0)
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest$ac_exeext
3185942a
JA
12532if { (ac_try="$ac_link"
12533case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536esac
12537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12538$as_echo "$ac_try_echo") >&5
12539 (eval "$ac_link") 2>&5
b80f6443 12540 ac_status=$?
3185942a 12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 12542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548$as_echo "$ac_try_echo") >&5
12549 (eval "$ac_try") 2>&5
b80f6443 12550 ac_status=$?
3185942a 12551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
12552 (exit $ac_status); }; }; then
12553 ac_cv_func_strcoll_works=yes
12554else
3185942a
JA
12555 $as_echo "$as_me: program exited with status $ac_status" >&5
12556$as_echo "$as_me: failed program was:" >&5
0628567a
JA
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
b80f6443
JA
12559( exit $ac_status )
12560ac_cv_func_strcoll_works=no
12561fi
3185942a
JA
12562rm -rf conftest.dSYM
12563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 12564fi
3185942a
JA
12565
12566
b80f6443 12567fi
3185942a
JA
12568{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12569$as_echo "$ac_cv_func_strcoll_works" >&6; }
b80f6443
JA
12570if test $ac_cv_func_strcoll_works = yes; then
12571
12572cat >>confdefs.h <<\_ACEOF
12573#define HAVE_STRCOLL 1
12574_ACEOF
12575
12576fi
12577
12578
12579
12580if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
12581 MALLOC_TARGET=alloca
12582 MALLOC_SRC=alloca.c
12583
12584 MALLOC_LIB='-lmalloc'
12585 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
12586 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
12587 MALLOC_DEP='$(MALLOC_LIBRARY)'
12588fi
12589
12590if test "$ac_cv_func_vprintf" = no; then
3185942a
JA
12591 { $as_echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
12592$as_echo_n "checking for declaration of vprintf in stdio.h... " >&6; }
b80f6443 12593 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
b80f6443
JA
12599#include <stdio.h>
12600
12601_ACEOF
12602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 12603 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
b80f6443
JA
12604 ac_cv_func_vprintf=yes
12605fi
12606rm -f conftest*
12607
3185942a
JA
12608 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
12609$as_echo "$ac_cv_func_vprintf" >&6; }
b80f6443
JA
12610 if test $ac_cv_func_vprintf = yes; then
12611 cat >>confdefs.h <<\_ACEOF
12612#define HAVE_VPRINTF 1
12613_ACEOF
12614
12615 fi
12616fi
12617
12618if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
3185942a 12619 case " $LIBOBJS " in
0628567a 12620 *" vprint.$ac_objext "* ) ;;
3185942a
JA
12621 *) LIBOBJS="$LIBOBJS vprint.$ac_objext"
12622 ;;
0628567a
JA
12623esac
12624
b80f6443
JA
12625fi
12626
3185942a
JA
12627{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12628$as_echo_n "checking return type of signal handlers... " >&6; }
b80f6443 12629if test "${ac_cv_type_signal+set}" = set; then
3185942a 12630 $as_echo_n "(cached) " >&6
b80f6443
JA
12631else
12632 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12633/* confdefs.h. */
12634_ACEOF
12635cat confdefs.h >>conftest.$ac_ext
12636cat >>conftest.$ac_ext <<_ACEOF
12637/* end confdefs.h. */
b80f6443
JA
12638#include <sys/types.h>
12639#include <signal.h>
b80f6443
JA
12640
12641int
12642main ()
12643{
3185942a 12644return *(signal (0, 0)) (0) == 1;
b80f6443
JA
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext
3185942a
JA
12650if { (ac_try="$ac_compile"
12651case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12656$as_echo "$ac_try_echo") >&5
12657 (eval "$ac_compile") 2>conftest.er1
b80f6443 12658 ac_status=$?
0628567a
JA
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
3185942a
JA
12662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } && {
12664 test -z "$ac_c_werror_flag" ||
12665 test ! -s conftest.err
12666 } && test -s conftest.$ac_objext; then
12667 ac_cv_type_signal=int
b80f6443 12668else
3185942a 12669 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
3185942a 12672 ac_cv_type_signal=void
b80f6443 12673fi
3185942a
JA
12674
12675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 12676fi
3185942a
JA
12677{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12678$as_echo "$ac_cv_type_signal" >&6; }
b80f6443
JA
12679
12680cat >>confdefs.h <<_ACEOF
12681#define RETSIGTYPE $ac_cv_type_signal
12682_ACEOF
12683
12684
12685
3185942a
JA
12686{ $as_echo "$as_me:$LINENO: checking for __setostype" >&5
12687$as_echo_n "checking for __setostype... " >&6; }
b80f6443 12688if test "${ac_cv_func___setostype+set}" = set; then
3185942a 12689 $as_echo_n "(cached) " >&6
b80f6443
JA
12690else
12691 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12692/* confdefs.h. */
12693_ACEOF
12694cat confdefs.h >>conftest.$ac_ext
12695cat >>conftest.$ac_ext <<_ACEOF
12696/* end confdefs.h. */
12697/* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
12698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12699#define __setostype innocuous___setostype
12700
b80f6443 12701/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12702 which can conflict with char __setostype (); below.
12703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12704 <limits.h> exists even on freestanding compilers. */
12705
12706#ifdef __STDC__
12707# include <limits.h>
12708#else
12709# include <assert.h>
12710#endif
12711
12712#undef __setostype
12713
3185942a
JA
12714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
b80f6443
JA
12717#ifdef __cplusplus
12718extern "C"
b80f6443 12719#endif
b80f6443
JA
12720char __setostype ();
12721/* The GNU C library defines this for functions which it implements
12722 to always fail with ENOSYS. Some functions are actually named
12723 something starting with __ and the normal name is an alias. */
3185942a 12724#if defined __stub___setostype || defined __stub_____setostype
b80f6443 12725choke me
b80f6443
JA
12726#endif
12727
0628567a
JA
12728int
12729main ()
12730{
3185942a 12731return __setostype ();
b80f6443
JA
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12737if { (ac_try="$ac_link"
12738case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741esac
12742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12743$as_echo "$ac_try_echo") >&5
12744 (eval "$ac_link") 2>conftest.er1
b80f6443 12745 ac_status=$?
0628567a
JA
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
3185942a
JA
12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest$ac_exeext && {
12754 test "$cross_compiling" = yes ||
12755 $as_test_x conftest$ac_exeext
12756 }; then
b80f6443
JA
12757 ac_cv_func___setostype=yes
12758else
3185942a 12759 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12760sed 's/^/| /' conftest.$ac_ext >&5
12761
3185942a 12762 ac_cv_func___setostype=no
b80f6443 12763fi
3185942a
JA
12764
12765rm -rf conftest.dSYM
12766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12767 conftest$ac_exeext conftest.$ac_ext
b80f6443 12768fi
3185942a
JA
12769{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
12770$as_echo "$ac_cv_func___setostype" >&6; }
12771if test "x$ac_cv_func___setostype" = x""yes; then
b80f6443
JA
12772 cat >>confdefs.h <<\_ACEOF
12773#define HAVE_SETOSTYPE 1
12774_ACEOF
12775
12776fi
12777
3185942a
JA
12778{ $as_echo "$as_me:$LINENO: checking for wait3" >&5
12779$as_echo_n "checking for wait3... " >&6; }
b80f6443 12780if test "${ac_cv_func_wait3+set}" = set; then
3185942a 12781 $as_echo_n "(cached) " >&6
b80f6443
JA
12782else
12783 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789/* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
12790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12791#define wait3 innocuous_wait3
12792
b80f6443 12793/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12794 which can conflict with char wait3 (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12797
12798#ifdef __STDC__
12799# include <limits.h>
12800#else
12801# include <assert.h>
12802#endif
12803
12804#undef wait3
12805
3185942a
JA
12806/* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
b80f6443
JA
12809#ifdef __cplusplus
12810extern "C"
b80f6443 12811#endif
b80f6443
JA
12812char wait3 ();
12813/* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
3185942a 12816#if defined __stub_wait3 || defined __stub___wait3
b80f6443 12817choke me
b80f6443
JA
12818#endif
12819
0628567a
JA
12820int
12821main ()
12822{
3185942a 12823return wait3 ();
b80f6443
JA
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12829if { (ac_try="$ac_link"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12835$as_echo "$ac_try_echo") >&5
12836 (eval "$ac_link") 2>conftest.er1
b80f6443 12837 ac_status=$?
0628567a
JA
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
3185942a
JA
12841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext && {
12846 test "$cross_compiling" = yes ||
12847 $as_test_x conftest$ac_exeext
12848 }; then
b80f6443
JA
12849 ac_cv_func_wait3=yes
12850else
3185942a 12851 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
3185942a 12854 ac_cv_func_wait3=no
b80f6443 12855fi
3185942a
JA
12856
12857rm -rf conftest.dSYM
12858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12859 conftest$ac_exeext conftest.$ac_ext
b80f6443 12860fi
3185942a
JA
12861{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
12862$as_echo "$ac_cv_func_wait3" >&6; }
12863if test "x$ac_cv_func_wait3" = x""yes; then
b80f6443
JA
12864 cat >>confdefs.h <<\_ACEOF
12865#define HAVE_WAIT3 1
12866_ACEOF
12867
12868fi
12869
3185942a
JA
12870{ $as_echo "$as_me:$LINENO: checking for isinf" >&5
12871$as_echo_n "checking for isinf... " >&6; }
b80f6443 12872if test "${ac_cv_func_isinf+set}" = set; then
3185942a 12873 $as_echo_n "(cached) " >&6
b80f6443
JA
12874else
12875 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
12882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12883#define isinf innocuous_isinf
12884
b80f6443 12885/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
12886 which can conflict with char isinf (); below.
12887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888 <limits.h> exists even on freestanding compilers. */
12889
12890#ifdef __STDC__
12891# include <limits.h>
12892#else
12893# include <assert.h>
12894#endif
12895
12896#undef isinf
12897
3185942a
JA
12898/* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
b80f6443
JA
12901#ifdef __cplusplus
12902extern "C"
b80f6443 12903#endif
b80f6443
JA
12904char isinf ();
12905/* The GNU C library defines this for functions which it implements
12906 to always fail with ENOSYS. Some functions are actually named
12907 something starting with __ and the normal name is an alias. */
3185942a 12908#if defined __stub_isinf || defined __stub___isinf
b80f6443 12909choke me
b80f6443
JA
12910#endif
12911
0628567a
JA
12912int
12913main ()
12914{
3185942a 12915return isinf ();
b80f6443
JA
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
12921if { (ac_try="$ac_link"
12922case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
12926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927$as_echo "$ac_try_echo") >&5
12928 (eval "$ac_link") 2>conftest.er1
b80f6443 12929 ac_status=$?
0628567a
JA
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
3185942a
JA
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest$ac_exeext
12940 }; then
b80f6443
JA
12941 ac_cv_func_isinf=yes
12942else
3185942a 12943 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
3185942a 12946 ac_cv_func_isinf=no
b80f6443 12947fi
3185942a
JA
12948
12949rm -rf conftest.dSYM
12950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 12951 conftest$ac_exeext conftest.$ac_ext
b80f6443 12952fi
3185942a
JA
12953{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
12954$as_echo "$ac_cv_func_isinf" >&6; }
12955if test "x$ac_cv_func_isinf" = x""yes; then
b80f6443
JA
12956 cat >>confdefs.h <<\_ACEOF
12957#define HAVE_ISINF_IN_LIBC 1
12958_ACEOF
12959
12960fi
12961
3185942a
JA
12962{ $as_echo "$as_me:$LINENO: checking for isnan" >&5
12963$as_echo_n "checking for isnan... " >&6; }
0628567a 12964if test "${ac_cv_func_isnan+set}" = set; then
3185942a 12965 $as_echo_n "(cached) " >&6
0628567a
JA
12966else
12967 cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
12973/* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
12974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12975#define isnan innocuous_isnan
12976
12977/* System header to define __stub macros and hopefully few prototypes,
12978 which can conflict with char isnan (); below.
12979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12980 <limits.h> exists even on freestanding compilers. */
12981
12982#ifdef __STDC__
12983# include <limits.h>
12984#else
12985# include <assert.h>
12986#endif
12987
12988#undef isnan
12989
3185942a
JA
12990/* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
0628567a
JA
12993#ifdef __cplusplus
12994extern "C"
0628567a 12995#endif
0628567a
JA
12996char isnan ();
12997/* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
3185942a 13000#if defined __stub_isnan || defined __stub___isnan
0628567a 13001choke me
0628567a
JA
13002#endif
13003
13004int
13005main ()
13006{
3185942a 13007return isnan ();
0628567a
JA
13008 ;
13009 return 0;
13010}
13011_ACEOF
13012rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13013if { (ac_try="$ac_link"
13014case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017esac
13018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13019$as_echo "$ac_try_echo") >&5
13020 (eval "$ac_link") 2>conftest.er1
0628567a
JA
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
3185942a
JA
13025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && {
13027 test -z "$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 } && test -s conftest$ac_exeext && {
13030 test "$cross_compiling" = yes ||
13031 $as_test_x conftest$ac_exeext
13032 }; then
0628567a
JA
13033 ac_cv_func_isnan=yes
13034else
3185942a 13035 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
3185942a 13038 ac_cv_func_isnan=no
0628567a 13039fi
3185942a
JA
13040
13041rm -rf conftest.dSYM
13042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
13043 conftest$ac_exeext conftest.$ac_ext
13044fi
3185942a
JA
13045{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13046$as_echo "$ac_cv_func_isnan" >&6; }
13047if test "x$ac_cv_func_isnan" = x""yes; then
0628567a
JA
13048 cat >>confdefs.h <<\_ACEOF
13049#define HAVE_ISNAN_IN_LIBC 1
13050_ACEOF
13051
13052fi
13053
b80f6443 13054
3185942a
JA
13055{ $as_echo "$as_me:$LINENO: checking for mkfifo" >&5
13056$as_echo_n "checking for mkfifo... " >&6; }
b80f6443 13057if test "${ac_cv_func_mkfifo+set}" = set; then
3185942a 13058 $as_echo_n "(cached) " >&6
b80f6443
JA
13059else
13060 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066/* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068#define mkfifo innocuous_mkfifo
13069
b80f6443 13070/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13071 which can conflict with char mkfifo (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13074
13075#ifdef __STDC__
13076# include <limits.h>
13077#else
13078# include <assert.h>
13079#endif
13080
13081#undef mkfifo
13082
3185942a
JA
13083/* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
b80f6443
JA
13086#ifdef __cplusplus
13087extern "C"
b80f6443 13088#endif
b80f6443
JA
13089char mkfifo ();
13090/* The GNU C library defines this for functions which it implements
13091 to always fail with ENOSYS. Some functions are actually named
13092 something starting with __ and the normal name is an alias. */
3185942a 13093#if defined __stub_mkfifo || defined __stub___mkfifo
b80f6443 13094choke me
b80f6443
JA
13095#endif
13096
0628567a
JA
13097int
13098main ()
13099{
3185942a 13100return mkfifo ();
b80f6443
JA
13101 ;
13102 return 0;
13103}
13104_ACEOF
13105rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13106if { (ac_try="$ac_link"
13107case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13112$as_echo "$ac_try_echo") >&5
13113 (eval "$ac_link") 2>conftest.er1
b80f6443 13114 ac_status=$?
0628567a
JA
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
3185942a
JA
13118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest$ac_exeext && {
13123 test "$cross_compiling" = yes ||
13124 $as_test_x conftest$ac_exeext
13125 }; then
b80f6443
JA
13126 ac_cv_func_mkfifo=yes
13127else
3185942a 13128 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
3185942a 13131 ac_cv_func_mkfifo=no
b80f6443 13132fi
3185942a
JA
13133
13134rm -rf conftest.dSYM
13135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13136 conftest$ac_exeext conftest.$ac_ext
b80f6443 13137fi
3185942a
JA
13138{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
13139$as_echo "$ac_cv_func_mkfifo" >&6; }
13140if test "x$ac_cv_func_mkfifo" = x""yes; then
b80f6443
JA
13141 cat >>confdefs.h <<\_ACEOF
13142#define HAVE_MKFIFO 1
13143_ACEOF
13144
13145else
13146 cat >>confdefs.h <<\_ACEOF
13147#define MKFIFO_MISSING 1
13148_ACEOF
13149
13150fi
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
95732b49
JA
13170
13171
13172
3185942a 13173
95732b49 13174
0628567a
JA
13175
13176for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \
13177 getpagesize getpeername getrlimit getrusage gettimeofday \
13178 kill killpg lstat readlink sbrk select setdtablesize \
3185942a 13179 setitimer tcgetpgrp uname ulimit waitpid
b80f6443 13180do
3185942a
JA
13181as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13183$as_echo_n "checking for $ac_func... " >&6; }
13184if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13185 $as_echo_n "(cached) " >&6
b80f6443
JA
13186else
13187 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
13193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13195#define $ac_func innocuous_$ac_func
13196
b80f6443 13197/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13198 which can conflict with char $ac_func (); below.
13199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13200 <limits.h> exists even on freestanding compilers. */
13201
13202#ifdef __STDC__
13203# include <limits.h>
13204#else
13205# include <assert.h>
13206#endif
13207
13208#undef $ac_func
13209
3185942a
JA
13210/* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
95732b49
JA
13213#ifdef __cplusplus
13214extern "C"
13215#endif
95732b49 13216char $ac_func ();
95732b49
JA
13217/* The GNU C library defines this for functions which it implements
13218 to always fail with ENOSYS. Some functions are actually named
13219 something starting with __ and the normal name is an alias. */
3185942a 13220#if defined __stub_$ac_func || defined __stub___$ac_func
95732b49 13221choke me
b80f6443 13222#endif
95732b49 13223
0628567a
JA
13224int
13225main ()
13226{
3185942a 13227return $ac_func ();
95732b49
JA
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13233if { (ac_try="$ac_link"
13234case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239$as_echo "$ac_try_echo") >&5
13240 (eval "$ac_link") 2>conftest.er1
95732b49 13241 ac_status=$?
0628567a
JA
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
3185942a
JA
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest$ac_exeext && {
13250 test "$cross_compiling" = yes ||
13251 $as_test_x conftest$ac_exeext
13252 }; then
95732b49
JA
13253 eval "$as_ac_var=yes"
13254else
3185942a 13255 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
3185942a 13258 eval "$as_ac_var=no"
95732b49 13259fi
3185942a
JA
13260
13261rm -rf conftest.dSYM
13262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13263 conftest$ac_exeext conftest.$ac_ext
95732b49 13264fi
3185942a
JA
13265ac_res=`eval 'as_val=${'$as_ac_var'}
13266 $as_echo "$as_val"'`
13267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13268$as_echo "$ac_res" >&6; }
13269as_val=`eval 'as_val=${'$as_ac_var'}
13270 $as_echo "$as_val"'`
13271 if test "x$as_val" = x""yes; then
95732b49 13272 cat >>confdefs.h <<_ACEOF
3185942a 13273#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
95732b49
JA
13274_ACEOF
13275
13276fi
13277done
13278
13279
13280for ac_func in rename
13281do
3185942a
JA
13282as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13283{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13284$as_echo_n "checking for $ac_func... " >&6; }
13285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13286 $as_echo_n "(cached) " >&6
95732b49
JA
13287else
13288 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13289/* confdefs.h. */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
13293/* end confdefs.h. */
13294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13296#define $ac_func innocuous_$ac_func
13297
95732b49 13298/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13299 which can conflict with char $ac_func (); below.
13300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13301 <limits.h> exists even on freestanding compilers. */
13302
13303#ifdef __STDC__
13304# include <limits.h>
13305#else
13306# include <assert.h>
13307#endif
13308
13309#undef $ac_func
13310
3185942a
JA
13311/* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
b80f6443
JA
13314#ifdef __cplusplus
13315extern "C"
b80f6443 13316#endif
b80f6443
JA
13317char $ac_func ();
13318/* The GNU C library defines this for functions which it implements
13319 to always fail with ENOSYS. Some functions are actually named
13320 something starting with __ and the normal name is an alias. */
3185942a 13321#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13322choke me
b80f6443 13323#endif
95732b49 13324
0628567a
JA
13325int
13326main ()
13327{
3185942a 13328return $ac_func ();
95732b49
JA
13329 ;
13330 return 0;
b80f6443 13331}
95732b49
JA
13332_ACEOF
13333rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13334if { (ac_try="$ac_link"
13335case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340$as_echo "$ac_try_echo") >&5
13341 (eval "$ac_link") 2>conftest.er1
95732b49 13342 ac_status=$?
0628567a
JA
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
3185942a
JA
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest$ac_exeext && {
13351 test "$cross_compiling" = yes ||
13352 $as_test_x conftest$ac_exeext
13353 }; then
95732b49
JA
13354 eval "$as_ac_var=yes"
13355else
3185942a 13356 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
3185942a 13359 eval "$as_ac_var=no"
95732b49 13360fi
3185942a
JA
13361
13362rm -rf conftest.dSYM
13363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13364 conftest$ac_exeext conftest.$ac_ext
95732b49 13365fi
3185942a
JA
13366ac_res=`eval 'as_val=${'$as_ac_var'}
13367 $as_echo "$as_val"'`
13368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13369$as_echo "$ac_res" >&6; }
13370as_val=`eval 'as_val=${'$as_ac_var'}
13371 $as_echo "$as_val"'`
13372 if test "x$as_val" = x""yes; then
95732b49 13373 cat >>confdefs.h <<_ACEOF
3185942a 13374#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
95732b49
JA
13375_ACEOF
13376
13377else
3185942a 13378 case " $LIBOBJS " in
0628567a 13379 *" $ac_func.$ac_objext "* ) ;;
3185942a
JA
13380 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13381 ;;
0628567a
JA
13382esac
13383
95732b49
JA
13384fi
13385done
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416for ac_func in bcopy bzero confstr fnmatch \
13417 getaddrinfo gethostbyname getservbyname getservent inet_aton \
13418 memmove pathconf putenv raise regcomp regexec \
13419 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
13420 sysconf tcgetattr times ttyname tzset unsetenv
13421do
3185942a
JA
13422as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13423{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13424$as_echo_n "checking for $ac_func... " >&6; }
13425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13426 $as_echo_n "(cached) " >&6
95732b49
JA
13427else
13428 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13429/* confdefs.h. */
13430_ACEOF
13431cat confdefs.h >>conftest.$ac_ext
13432cat >>conftest.$ac_ext <<_ACEOF
13433/* end confdefs.h. */
13434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13436#define $ac_func innocuous_$ac_func
13437
95732b49 13438/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13439 which can conflict with char $ac_func (); below.
13440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13441 <limits.h> exists even on freestanding compilers. */
13442
13443#ifdef __STDC__
13444# include <limits.h>
13445#else
13446# include <assert.h>
13447#endif
13448
13449#undef $ac_func
13450
3185942a
JA
13451/* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
95732b49
JA
13454#ifdef __cplusplus
13455extern "C"
b80f6443 13456#endif
95732b49 13457char $ac_func ();
95732b49
JA
13458/* The GNU C library defines this for functions which it implements
13459 to always fail with ENOSYS. Some functions are actually named
13460 something starting with __ and the normal name is an alias. */
3185942a 13461#if defined __stub_$ac_func || defined __stub___$ac_func
95732b49 13462choke me
95732b49
JA
13463#endif
13464
0628567a
JA
13465int
13466main ()
13467{
3185942a 13468return $ac_func ();
b80f6443
JA
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13474if { (ac_try="$ac_link"
13475case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13480$as_echo "$ac_try_echo") >&5
13481 (eval "$ac_link") 2>conftest.er1
b80f6443 13482 ac_status=$?
0628567a
JA
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
3185942a
JA
13486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext && {
13491 test "$cross_compiling" = yes ||
13492 $as_test_x conftest$ac_exeext
13493 }; then
b80f6443
JA
13494 eval "$as_ac_var=yes"
13495else
3185942a 13496 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
3185942a 13499 eval "$as_ac_var=no"
b80f6443 13500fi
3185942a
JA
13501
13502rm -rf conftest.dSYM
13503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13504 conftest$ac_exeext conftest.$ac_ext
b80f6443 13505fi
3185942a
JA
13506ac_res=`eval 'as_val=${'$as_ac_var'}
13507 $as_echo "$as_val"'`
13508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13509$as_echo "$ac_res" >&6; }
13510as_val=`eval 'as_val=${'$as_ac_var'}
13511 $as_echo "$as_val"'`
13512 if test "x$as_val" = x""yes; then
b80f6443 13513 cat >>confdefs.h <<_ACEOF
3185942a 13514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13515_ACEOF
13516
13517fi
13518done
13519
13520
95732b49
JA
13521
13522
13523
13524
13525for ac_func in vsnprintf snprintf vasprintf asprintf
b80f6443 13526do
3185942a
JA
13527as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13528{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13529$as_echo_n "checking for $ac_func... " >&6; }
13530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13531 $as_echo_n "(cached) " >&6
b80f6443
JA
13532else
13533 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
13538/* end confdefs.h. */
13539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13541#define $ac_func innocuous_$ac_func
13542
b80f6443 13543/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13544 which can conflict with char $ac_func (); below.
13545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13546 <limits.h> exists even on freestanding compilers. */
13547
13548#ifdef __STDC__
13549# include <limits.h>
13550#else
13551# include <assert.h>
13552#endif
13553
13554#undef $ac_func
13555
3185942a
JA
13556/* Override any GCC internal prototype to avoid an error.
13557 Use char because int might match the return type of a GCC
13558 builtin and then its argument prototype would still apply. */
b80f6443
JA
13559#ifdef __cplusplus
13560extern "C"
b80f6443 13561#endif
b80f6443
JA
13562char $ac_func ();
13563/* The GNU C library defines this for functions which it implements
13564 to always fail with ENOSYS. Some functions are actually named
13565 something starting with __ and the normal name is an alias. */
3185942a 13566#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13567choke me
b80f6443
JA
13568#endif
13569
0628567a
JA
13570int
13571main ()
13572{
3185942a 13573return $ac_func ();
b80f6443
JA
13574 ;
13575 return 0;
13576}
13577_ACEOF
13578rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13579if { (ac_try="$ac_link"
13580case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583esac
13584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13585$as_echo "$ac_try_echo") >&5
13586 (eval "$ac_link") 2>conftest.er1
b80f6443 13587 ac_status=$?
0628567a
JA
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
3185942a
JA
13591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } && {
13593 test -z "$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 } && test -s conftest$ac_exeext && {
13596 test "$cross_compiling" = yes ||
13597 $as_test_x conftest$ac_exeext
13598 }; then
b80f6443
JA
13599 eval "$as_ac_var=yes"
13600else
3185942a 13601 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13602sed 's/^/| /' conftest.$ac_ext >&5
13603
3185942a 13604 eval "$as_ac_var=no"
b80f6443 13605fi
3185942a
JA
13606
13607rm -rf conftest.dSYM
13608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13609 conftest$ac_exeext conftest.$ac_ext
b80f6443 13610fi
3185942a
JA
13611ac_res=`eval 'as_val=${'$as_ac_var'}
13612 $as_echo "$as_val"'`
13613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13614$as_echo "$ac_res" >&6; }
13615as_val=`eval 'as_val=${'$as_ac_var'}
13616 $as_echo "$as_val"'`
13617 if test "x$as_val" = x""yes; then
b80f6443 13618 cat >>confdefs.h <<_ACEOF
3185942a 13619#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13620_ACEOF
13621
b80f6443
JA
13622fi
13623done
13624
13625
13626
13627
13628
13629
13630
95732b49 13631for ac_func in isascii isblank isgraph isprint isspace isxdigit
b80f6443 13632do
3185942a
JA
13633as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13634{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13635$as_echo_n "checking for $ac_func... " >&6; }
13636if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13637 $as_echo_n "(cached) " >&6
b80f6443
JA
13638else
13639 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
13645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13647#define $ac_func innocuous_$ac_func
13648
b80f6443 13649/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13650 which can conflict with char $ac_func (); below.
13651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13652 <limits.h> exists even on freestanding compilers. */
13653
13654#ifdef __STDC__
13655# include <limits.h>
13656#else
13657# include <assert.h>
13658#endif
13659
13660#undef $ac_func
13661
3185942a
JA
13662/* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
b80f6443
JA
13665#ifdef __cplusplus
13666extern "C"
b80f6443 13667#endif
b80f6443
JA
13668char $ac_func ();
13669/* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
3185942a 13672#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13673choke me
b80f6443
JA
13674#endif
13675
0628567a
JA
13676int
13677main ()
13678{
3185942a 13679return $ac_func ();
b80f6443
JA
13680 ;
13681 return 0;
13682}
13683_ACEOF
13684rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13685if { (ac_try="$ac_link"
13686case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689esac
13690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13691$as_echo "$ac_try_echo") >&5
13692 (eval "$ac_link") 2>conftest.er1
b80f6443 13693 ac_status=$?
0628567a
JA
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
3185942a
JA
13697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && {
13699 test -z "$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 } && test -s conftest$ac_exeext && {
13702 test "$cross_compiling" = yes ||
13703 $as_test_x conftest$ac_exeext
13704 }; then
b80f6443
JA
13705 eval "$as_ac_var=yes"
13706else
3185942a 13707 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
3185942a 13710 eval "$as_ac_var=no"
b80f6443 13711fi
3185942a
JA
13712
13713rm -rf conftest.dSYM
13714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13715 conftest$ac_exeext conftest.$ac_ext
b80f6443 13716fi
3185942a
JA
13717ac_res=`eval 'as_val=${'$as_ac_var'}
13718 $as_echo "$as_val"'`
13719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13720$as_echo "$ac_res" >&6; }
13721as_val=`eval 'as_val=${'$as_ac_var'}
13722 $as_echo "$as_val"'`
13723 if test "x$as_val" = x""yes; then
b80f6443 13724 cat >>confdefs.h <<_ACEOF
3185942a 13725#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13726_ACEOF
13727
13728fi
13729done
13730
13731
13732
13733
95732b49 13734for ac_func in getpwent getpwnam getpwuid
b80f6443 13735do
3185942a
JA
13736as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13737{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13738$as_echo_n "checking for $ac_func... " >&6; }
13739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13740 $as_echo_n "(cached) " >&6
b80f6443
JA
13741else
13742 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13743/* confdefs.h. */
13744_ACEOF
13745cat confdefs.h >>conftest.$ac_ext
13746cat >>conftest.$ac_ext <<_ACEOF
13747/* end confdefs.h. */
13748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13750#define $ac_func innocuous_$ac_func
13751
b80f6443 13752/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13753 which can conflict with char $ac_func (); below.
13754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13755 <limits.h> exists even on freestanding compilers. */
13756
13757#ifdef __STDC__
13758# include <limits.h>
13759#else
13760# include <assert.h>
13761#endif
13762
13763#undef $ac_func
13764
3185942a
JA
13765/* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
b80f6443
JA
13768#ifdef __cplusplus
13769extern "C"
b80f6443 13770#endif
b80f6443
JA
13771char $ac_func ();
13772/* The GNU C library defines this for functions which it implements
13773 to always fail with ENOSYS. Some functions are actually named
13774 something starting with __ and the normal name is an alias. */
3185942a 13775#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13776choke me
b80f6443
JA
13777#endif
13778
0628567a
JA
13779int
13780main ()
13781{
3185942a 13782return $ac_func ();
b80f6443
JA
13783 ;
13784 return 0;
13785}
13786_ACEOF
13787rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13788if { (ac_try="$ac_link"
13789case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792esac
13793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13794$as_echo "$ac_try_echo") >&5
13795 (eval "$ac_link") 2>conftest.er1
b80f6443 13796 ac_status=$?
0628567a
JA
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
3185942a
JA
13800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } && {
13802 test -z "$ac_c_werror_flag" ||
13803 test ! -s conftest.err
13804 } && test -s conftest$ac_exeext && {
13805 test "$cross_compiling" = yes ||
13806 $as_test_x conftest$ac_exeext
13807 }; then
b80f6443
JA
13808 eval "$as_ac_var=yes"
13809else
3185942a 13810 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
3185942a 13813 eval "$as_ac_var=no"
b80f6443 13814fi
3185942a
JA
13815
13816rm -rf conftest.dSYM
13817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13818 conftest$ac_exeext conftest.$ac_ext
b80f6443 13819fi
3185942a
JA
13820ac_res=`eval 'as_val=${'$as_ac_var'}
13821 $as_echo "$as_val"'`
13822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13823$as_echo "$ac_res" >&6; }
13824as_val=`eval 'as_val=${'$as_ac_var'}
13825 $as_echo "$as_val"'`
13826 if test "x$as_val" = x""yes; then
b80f6443 13827 cat >>confdefs.h <<_ACEOF
3185942a 13828#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13829_ACEOF
13830
13831fi
13832done
13833
13834
13835
13836
13837
13838
13839
13840
95732b49
JA
13841
13842for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
b80f6443 13843do
3185942a
JA
13844as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13845{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13846$as_echo_n "checking for $ac_func... " >&6; }
13847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13848 $as_echo_n "(cached) " >&6
b80f6443
JA
13849else
13850 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13851/* confdefs.h. */
13852_ACEOF
13853cat confdefs.h >>conftest.$ac_ext
13854cat >>conftest.$ac_ext <<_ACEOF
13855/* end confdefs.h. */
13856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13858#define $ac_func innocuous_$ac_func
13859
b80f6443 13860/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13861 which can conflict with char $ac_func (); below.
13862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13863 <limits.h> exists even on freestanding compilers. */
13864
13865#ifdef __STDC__
13866# include <limits.h>
13867#else
13868# include <assert.h>
13869#endif
13870
13871#undef $ac_func
13872
3185942a
JA
13873/* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
b80f6443
JA
13876#ifdef __cplusplus
13877extern "C"
b80f6443 13878#endif
b80f6443
JA
13879char $ac_func ();
13880/* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
3185942a 13883#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13884choke me
b80f6443
JA
13885#endif
13886
0628567a
JA
13887int
13888main ()
13889{
3185942a 13890return $ac_func ();
b80f6443
JA
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
13896if { (ac_try="$ac_link"
13897case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902$as_echo "$ac_try_echo") >&5
13903 (eval "$ac_link") 2>conftest.er1
b80f6443 13904 ac_status=$?
0628567a
JA
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
3185942a
JA
13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext && {
13913 test "$cross_compiling" = yes ||
13914 $as_test_x conftest$ac_exeext
13915 }; then
b80f6443
JA
13916 eval "$as_ac_var=yes"
13917else
3185942a 13918 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
13919sed 's/^/| /' conftest.$ac_ext >&5
13920
3185942a 13921 eval "$as_ac_var=no"
b80f6443 13922fi
3185942a
JA
13923
13924rm -rf conftest.dSYM
13925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 13926 conftest$ac_exeext conftest.$ac_ext
b80f6443 13927fi
3185942a
JA
13928ac_res=`eval 'as_val=${'$as_ac_var'}
13929 $as_echo "$as_val"'`
13930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13931$as_echo "$ac_res" >&6; }
13932as_val=`eval 'as_val=${'$as_ac_var'}
13933 $as_echo "$as_val"'`
13934 if test "x$as_val" = x""yes; then
b80f6443 13935 cat >>confdefs.h <<_ACEOF
3185942a 13936#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
13937_ACEOF
13938
13939else
3185942a 13940 case " $LIBOBJS " in
0628567a 13941 *" $ac_func.$ac_objext "* ) ;;
3185942a
JA
13942 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13943 ;;
0628567a
JA
13944esac
13945
b80f6443
JA
13946fi
13947done
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
13958do
3185942a
JA
13959as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13960{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13961$as_echo_n "checking for $ac_func... " >&6; }
13962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13963 $as_echo_n "(cached) " >&6
b80f6443
JA
13964else
13965 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
13966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
13971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13973#define $ac_func innocuous_$ac_func
13974
b80f6443 13975/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
13976 which can conflict with char $ac_func (); below.
13977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13978 <limits.h> exists even on freestanding compilers. */
13979
13980#ifdef __STDC__
13981# include <limits.h>
13982#else
13983# include <assert.h>
13984#endif
13985
13986#undef $ac_func
13987
3185942a
JA
13988/* Override any GCC internal prototype to avoid an error.
13989 Use char because int might match the return type of a GCC
13990 builtin and then its argument prototype would still apply. */
b80f6443
JA
13991#ifdef __cplusplus
13992extern "C"
b80f6443 13993#endif
b80f6443
JA
13994char $ac_func ();
13995/* The GNU C library defines this for functions which it implements
13996 to always fail with ENOSYS. Some functions are actually named
13997 something starting with __ and the normal name is an alias. */
3185942a 13998#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 13999choke me
3185942a
JA
14000#endif
14001
14002int
14003main ()
14004{
14005return $ac_func ();
14006 ;
14007 return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext conftest$ac_exeext
14011if { (ac_try="$ac_link"
14012case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015esac
14016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14017$as_echo "$ac_try_echo") >&5
14018 (eval "$ac_link") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest$ac_exeext && {
14028 test "$cross_compiling" = yes ||
14029 $as_test_x conftest$ac_exeext
14030 }; then
14031 eval "$as_ac_var=yes"
14032else
14033 $as_echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 eval "$as_ac_var=no"
14037fi
14038
14039rm -rf conftest.dSYM
14040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14041 conftest$ac_exeext conftest.$ac_ext
14042fi
14043ac_res=`eval 'as_val=${'$as_ac_var'}
14044 $as_echo "$as_val"'`
14045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14046$as_echo "$ac_res" >&6; }
14047as_val=`eval 'as_val=${'$as_ac_var'}
14048 $as_echo "$as_val"'`
14049 if test "x$as_val" = x""yes; then
14050 cat >>confdefs.h <<_ACEOF
14051#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14052_ACEOF
14053
14054else
14055 case " $LIBOBJS " in
14056 *" $ac_func.$ac_objext "* ) ;;
14057 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14058 ;;
14059esac
14060
14061fi
14062done
14063
14064
14065
14066for ac_func in fdprintf
14067do
14068as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14069{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14070$as_echo_n "checking for $ac_func... " >&6; }
14071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14072 $as_echo_n "(cached) " >&6
14073else
14074 cat >conftest.$ac_ext <<_ACEOF
14075/* confdefs.h. */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
14079/* end confdefs.h. */
14080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14082#define $ac_func innocuous_$ac_func
14083
14084/* System header to define __stub macros and hopefully few prototypes,
14085 which can conflict with char $ac_func (); below.
14086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14087 <limits.h> exists even on freestanding compilers. */
14088
14089#ifdef __STDC__
14090# include <limits.h>
b80f6443 14091#else
3185942a 14092# include <assert.h>
0628567a 14093#endif
3185942a
JA
14094
14095#undef $ac_func
14096
14097/* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
0628567a 14100#ifdef __cplusplus
3185942a
JA
14101extern "C"
14102#endif
14103char $ac_func ();
14104/* The GNU C library defines this for functions which it implements
14105 to always fail with ENOSYS. Some functions are actually named
14106 something starting with __ and the normal name is an alias. */
14107#if defined __stub_$ac_func || defined __stub___$ac_func
14108choke me
b80f6443
JA
14109#endif
14110
0628567a
JA
14111int
14112main ()
14113{
3185942a 14114return $ac_func ();
b80f6443
JA
14115 ;
14116 return 0;
14117}
14118_ACEOF
14119rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14120if { (ac_try="$ac_link"
14121case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
14125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14126$as_echo "$ac_try_echo") >&5
14127 (eval "$ac_link") 2>conftest.er1
b80f6443 14128 ac_status=$?
0628567a
JA
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
3185942a
JA
14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest$ac_exeext && {
14137 test "$cross_compiling" = yes ||
14138 $as_test_x conftest$ac_exeext
14139 }; then
b80f6443
JA
14140 eval "$as_ac_var=yes"
14141else
3185942a 14142 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14143sed 's/^/| /' conftest.$ac_ext >&5
14144
3185942a 14145 eval "$as_ac_var=no"
b80f6443 14146fi
3185942a
JA
14147
14148rm -rf conftest.dSYM
14149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 14150 conftest$ac_exeext conftest.$ac_ext
b80f6443 14151fi
3185942a
JA
14152ac_res=`eval 'as_val=${'$as_ac_var'}
14153 $as_echo "$as_val"'`
14154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14155$as_echo "$ac_res" >&6; }
14156as_val=`eval 'as_val=${'$as_ac_var'}
14157 $as_echo "$as_val"'`
14158 if test "x$as_val" = x""yes; then
b80f6443 14159 cat >>confdefs.h <<_ACEOF
3185942a 14160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
14161_ACEOF
14162
14163else
3185942a 14164 case " $LIBOBJS " in
0628567a 14165 *" $ac_func.$ac_objext "* ) ;;
3185942a
JA
14166 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14167 ;;
0628567a
JA
14168esac
14169
b80f6443
JA
14170fi
14171done
14172
14173
14174
3185942a
JA
14175{ $as_echo "$as_me:$LINENO: checking whether confstr is declared" >&5
14176$as_echo_n "checking whether confstr is declared... " >&6; }
b80f6443 14177if test "${ac_cv_have_decl_confstr+set}" = set; then
3185942a 14178 $as_echo_n "(cached) " >&6
b80f6443
JA
14179else
14180 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
b80f6443
JA
14186$ac_includes_default
14187int
14188main ()
14189{
14190#ifndef confstr
3185942a 14191 (void) confstr;
b80f6443
JA
14192#endif
14193
14194 ;
14195 return 0;
14196}
14197_ACEOF
14198rm -f conftest.$ac_objext
3185942a
JA
14199if { (ac_try="$ac_compile"
14200case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14203esac
14204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14205$as_echo "$ac_try_echo") >&5
14206 (eval "$ac_compile") 2>conftest.er1
b80f6443 14207 ac_status=$?
0628567a
JA
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
3185942a
JA
14211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } && {
14213 test -z "$ac_c_werror_flag" ||
14214 test ! -s conftest.err
14215 } && test -s conftest.$ac_objext; then
b80f6443
JA
14216 ac_cv_have_decl_confstr=yes
14217else
3185942a 14218 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14219sed 's/^/| /' conftest.$ac_ext >&5
14220
3185942a 14221 ac_cv_have_decl_confstr=no
b80f6443 14222fi
3185942a
JA
14223
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14225fi
3185942a
JA
14226{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
14227$as_echo "$ac_cv_have_decl_confstr" >&6; }
14228if test "x$ac_cv_have_decl_confstr" = x""yes; then
b80f6443
JA
14229
14230cat >>confdefs.h <<_ACEOF
14231#define HAVE_DECL_CONFSTR 1
14232_ACEOF
14233
14234
14235else
14236 cat >>confdefs.h <<_ACEOF
14237#define HAVE_DECL_CONFSTR 0
14238_ACEOF
14239
14240
14241fi
14242
14243
3185942a
JA
14244{ $as_echo "$as_me:$LINENO: checking whether printf is declared" >&5
14245$as_echo_n "checking whether printf is declared... " >&6; }
b80f6443 14246if test "${ac_cv_have_decl_printf+set}" = set; then
3185942a 14247 $as_echo_n "(cached) " >&6
b80f6443
JA
14248else
14249 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
b80f6443
JA
14255$ac_includes_default
14256int
14257main ()
14258{
14259#ifndef printf
3185942a 14260 (void) printf;
b80f6443
JA
14261#endif
14262
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext
3185942a
JA
14268if { (ac_try="$ac_compile"
14269case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272esac
14273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14274$as_echo "$ac_try_echo") >&5
14275 (eval "$ac_compile") 2>conftest.er1
b80f6443 14276 ac_status=$?
0628567a
JA
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
3185942a
JA
14280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest.$ac_objext; then
b80f6443
JA
14285 ac_cv_have_decl_printf=yes
14286else
3185942a 14287 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14288sed 's/^/| /' conftest.$ac_ext >&5
14289
3185942a 14290 ac_cv_have_decl_printf=no
b80f6443 14291fi
3185942a
JA
14292
14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14294fi
3185942a
JA
14295{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
14296$as_echo "$ac_cv_have_decl_printf" >&6; }
14297if test "x$ac_cv_have_decl_printf" = x""yes; then
b80f6443
JA
14298
14299cat >>confdefs.h <<_ACEOF
14300#define HAVE_DECL_PRINTF 1
14301_ACEOF
14302
14303
14304else
14305 cat >>confdefs.h <<_ACEOF
14306#define HAVE_DECL_PRINTF 0
14307_ACEOF
14308
14309
14310fi
14311
14312
3185942a
JA
14313{ $as_echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14314$as_echo_n "checking whether sbrk is declared... " >&6; }
b80f6443 14315if test "${ac_cv_have_decl_sbrk+set}" = set; then
3185942a 14316 $as_echo_n "(cached) " >&6
b80f6443
JA
14317else
14318 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
14323/* end confdefs.h. */
b80f6443
JA
14324$ac_includes_default
14325int
14326main ()
14327{
14328#ifndef sbrk
3185942a 14329 (void) sbrk;
b80f6443
JA
14330#endif
14331
14332 ;
14333 return 0;
14334}
14335_ACEOF
14336rm -f conftest.$ac_objext
3185942a
JA
14337if { (ac_try="$ac_compile"
14338case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341esac
14342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14343$as_echo "$ac_try_echo") >&5
14344 (eval "$ac_compile") 2>conftest.er1
b80f6443 14345 ac_status=$?
0628567a
JA
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
3185942a
JA
14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && {
14351 test -z "$ac_c_werror_flag" ||
14352 test ! -s conftest.err
14353 } && test -s conftest.$ac_objext; then
b80f6443
JA
14354 ac_cv_have_decl_sbrk=yes
14355else
3185942a 14356 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
3185942a 14359 ac_cv_have_decl_sbrk=no
b80f6443 14360fi
3185942a
JA
14361
14362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14363fi
3185942a
JA
14364{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14365$as_echo "$ac_cv_have_decl_sbrk" >&6; }
14366if test "x$ac_cv_have_decl_sbrk" = x""yes; then
b80f6443
JA
14367
14368cat >>confdefs.h <<_ACEOF
14369#define HAVE_DECL_SBRK 1
14370_ACEOF
14371
14372
14373else
14374 cat >>confdefs.h <<_ACEOF
14375#define HAVE_DECL_SBRK 0
14376_ACEOF
14377
14378
14379fi
14380
14381
3185942a
JA
14382{ $as_echo "$as_me:$LINENO: checking whether setregid is declared" >&5
14383$as_echo_n "checking whether setregid is declared... " >&6; }
0628567a 14384if test "${ac_cv_have_decl_setregid+set}" = set; then
3185942a 14385 $as_echo_n "(cached) " >&6
b80f6443
JA
14386else
14387 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14388/* confdefs.h. */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h. */
b80f6443
JA
14393$ac_includes_default
14394int
14395main ()
14396{
0628567a 14397#ifndef setregid
3185942a 14398 (void) setregid;
b80f6443
JA
14399#endif
14400
14401 ;
14402 return 0;
14403}
14404_ACEOF
14405rm -f conftest.$ac_objext
3185942a
JA
14406if { (ac_try="$ac_compile"
14407case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410esac
14411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14412$as_echo "$ac_try_echo") >&5
14413 (eval "$ac_compile") 2>conftest.er1
b80f6443 14414 ac_status=$?
0628567a
JA
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
3185942a
JA
14418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest.$ac_objext; then
0628567a 14423 ac_cv_have_decl_setregid=yes
b80f6443 14424else
3185942a 14425 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
3185942a 14428 ac_cv_have_decl_setregid=no
b80f6443 14429fi
3185942a
JA
14430
14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14432fi
3185942a
JA
14433{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
14434$as_echo "$ac_cv_have_decl_setregid" >&6; }
14435if test "x$ac_cv_have_decl_setregid" = x""yes; then
b80f6443
JA
14436
14437cat >>confdefs.h <<_ACEOF
0628567a 14438#define HAVE_DECL_SETREGID 1
b80f6443
JA
14439_ACEOF
14440
14441
14442else
14443 cat >>confdefs.h <<_ACEOF
0628567a 14444#define HAVE_DECL_SETREGID 0
b80f6443
JA
14445_ACEOF
14446
14447
14448fi
14449
14450
3185942a
JA
14451{ $as_echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
14452$as_echo_n "checking whether strcpy is declared... " >&6; }
0628567a 14453if test "${ac_cv_have_decl_strcpy+set}" = set; then
3185942a 14454 $as_echo_n "(cached) " >&6
0628567a 14455else
b80f6443 14456 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
b80f6443 14462$ac_includes_default
0628567a
JA
14463int
14464main ()
14465{
14466#ifndef strcpy
3185942a 14467 (void) strcpy;
95732b49 14468#endif
0628567a
JA
14469
14470 ;
14471 return 0;
14472}
14473_ACEOF
14474rm -f conftest.$ac_objext
3185942a
JA
14475if { (ac_try="$ac_compile"
14476case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14479esac
14480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14481$as_echo "$ac_try_echo") >&5
14482 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
3185942a
JA
14487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } && {
14489 test -z "$ac_c_werror_flag" ||
14490 test ! -s conftest.err
14491 } && test -s conftest.$ac_objext; then
0628567a
JA
14492 ac_cv_have_decl_strcpy=yes
14493else
3185942a 14494 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14495sed 's/^/| /' conftest.$ac_ext >&5
14496
3185942a 14497 ac_cv_have_decl_strcpy=no
0628567a 14498fi
3185942a
JA
14499
14500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 14501fi
3185942a
JA
14502{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
14503$as_echo "$ac_cv_have_decl_strcpy" >&6; }
14504if test "x$ac_cv_have_decl_strcpy" = x""yes; then
0628567a
JA
14505
14506cat >>confdefs.h <<_ACEOF
14507#define HAVE_DECL_STRCPY 1
14508_ACEOF
14509
14510
14511else
14512 cat >>confdefs.h <<_ACEOF
14513#define HAVE_DECL_STRCPY 0
14514_ACEOF
14515
14516
14517fi
14518
14519
3185942a
JA
14520{ $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
14521$as_echo_n "checking whether strsignal is declared... " >&6; }
0628567a 14522if test "${ac_cv_have_decl_strsignal+set}" = set; then
3185942a 14523 $as_echo_n "(cached) " >&6
0628567a
JA
14524else
14525 cat >conftest.$ac_ext <<_ACEOF
14526/* confdefs.h. */
14527_ACEOF
14528cat confdefs.h >>conftest.$ac_ext
14529cat >>conftest.$ac_ext <<_ACEOF
14530/* end confdefs.h. */
14531$ac_includes_default
b80f6443
JA
14532int
14533main ()
14534{
14535#ifndef strsignal
3185942a 14536 (void) strsignal;
b80f6443
JA
14537#endif
14538
14539 ;
14540 return 0;
14541}
14542_ACEOF
14543rm -f conftest.$ac_objext
3185942a
JA
14544if { (ac_try="$ac_compile"
14545case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14550$as_echo "$ac_try_echo") >&5
14551 (eval "$ac_compile") 2>conftest.er1
b80f6443 14552 ac_status=$?
0628567a
JA
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
3185942a
JA
14556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } && {
14558 test -z "$ac_c_werror_flag" ||
14559 test ! -s conftest.err
14560 } && test -s conftest.$ac_objext; then
b80f6443
JA
14561 ac_cv_have_decl_strsignal=yes
14562else
3185942a 14563 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
3185942a 14566 ac_cv_have_decl_strsignal=no
b80f6443 14567fi
3185942a
JA
14568
14569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14570fi
3185942a
JA
14571{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
14572$as_echo "$ac_cv_have_decl_strsignal" >&6; }
14573if test "x$ac_cv_have_decl_strsignal" = x""yes; then
b80f6443
JA
14574
14575cat >>confdefs.h <<_ACEOF
14576#define HAVE_DECL_STRSIGNAL 1
14577_ACEOF
14578
14579
14580else
14581 cat >>confdefs.h <<_ACEOF
14582#define HAVE_DECL_STRSIGNAL 0
14583_ACEOF
14584
14585
14586fi
14587
14588
14589
3185942a
JA
14590{ $as_echo "$as_me:$LINENO: checking whether strtold is declared" >&5
14591$as_echo_n "checking whether strtold is declared... " >&6; }
b80f6443 14592if test "${ac_cv_have_decl_strtold+set}" = set; then
3185942a 14593 $as_echo_n "(cached) " >&6
b80f6443
JA
14594else
14595 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
b80f6443
JA
14601$ac_includes_default
14602int
14603main ()
14604{
14605#ifndef strtold
3185942a 14606 (void) strtold;
b80f6443
JA
14607#endif
14608
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
3185942a
JA
14614if { (ac_try="$ac_compile"
14615case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618esac
14619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620$as_echo "$ac_try_echo") >&5
14621 (eval "$ac_compile") 2>conftest.er1
b80f6443 14622 ac_status=$?
0628567a
JA
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
3185942a
JA
14626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest.$ac_objext; then
b80f6443
JA
14631 ac_cv_have_decl_strtold=yes
14632else
3185942a 14633 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14634sed 's/^/| /' conftest.$ac_ext >&5
14635
3185942a 14636 ac_cv_have_decl_strtold=no
b80f6443 14637fi
3185942a
JA
14638
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443 14640fi
3185942a
JA
14641{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
14642$as_echo "$ac_cv_have_decl_strtold" >&6; }
14643if test "x$ac_cv_have_decl_strtold" = x""yes; then
b80f6443
JA
14644
14645cat >>confdefs.h <<_ACEOF
14646#define HAVE_DECL_STRTOLD 1
14647_ACEOF
14648
14649
3185942a
JA
14650 { $as_echo "$as_me:$LINENO: checking for broken strtold" >&5
14651$as_echo_n "checking for broken strtold... " >&6; }
b80f6443 14652 if test "${bash_cv_strtold_broken+set}" = set; then
3185942a 14653 $as_echo_n "(cached) " >&6
b80f6443
JA
14654else
14655 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14656/* confdefs.h. */
14657_ACEOF
14658cat confdefs.h >>conftest.$ac_ext
14659cat >>conftest.$ac_ext <<_ACEOF
14660/* end confdefs.h. */
b80f6443
JA
14661#include <stdlib.h>
14662int
14663main ()
14664{
14665int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
14666 ;
14667 return 0;
14668}
14669_ACEOF
14670rm -f conftest.$ac_objext
3185942a
JA
14671if { (ac_try="$ac_compile"
14672case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675esac
14676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677$as_echo "$ac_try_echo") >&5
14678 (eval "$ac_compile") 2>conftest.er1
b80f6443 14679 ac_status=$?
0628567a
JA
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
3185942a
JA
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } && {
14685 test -z "$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 } && test -s conftest.$ac_objext; then
b80f6443
JA
14688 bash_cv_strtold_broken=no
14689else
3185942a 14690 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
3185942a 14693 bash_cv_strtold_broken=yes
b80f6443 14694fi
3185942a
JA
14695
14696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
14697
14698
14699fi
14700
3185942a
JA
14701 { $as_echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
14702$as_echo "$bash_cv_strtold_broken" >&6; }
b80f6443
JA
14703 if test "$bash_cv_strtold_broken" = "yes" ; then
14704 cat >>confdefs.h <<\_ACEOF
14705#define STRTOLD_BROKEN 1
14706_ACEOF
14707
14708 fi
14709
14710else
14711 cat >>confdefs.h <<_ACEOF
14712#define HAVE_DECL_STRTOLD 0
14713_ACEOF
14714
14715
14716fi
14717
14718
14719
14720
14721
14722
14723
3185942a
JA
14724{ $as_echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
14725$as_echo_n "checking for declaration of strtoimax... " >&6; }
b80f6443 14726if test "${bash_cv_decl_strtoimax+set}" = set; then
3185942a 14727 $as_echo_n "(cached) " >&6
b80f6443
JA
14728else
14729 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14730/* confdefs.h. */
14731_ACEOF
14732cat confdefs.h >>conftest.$ac_ext
14733cat >>conftest.$ac_ext <<_ACEOF
14734/* end confdefs.h. */
b80f6443
JA
14735
14736#if STDC_HEADERS
14737# include <stdlib.h>
14738#endif
14739#if HAVE_INTTYPES_H
14740# include <inttypes.h>
14741#endif
14742
14743int
14744main ()
14745{
14746return !strtoimax;
14747 ;
14748 return 0;
14749}
14750_ACEOF
14751rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14752if { (ac_try="$ac_link"
14753case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756esac
14757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14758$as_echo "$ac_try_echo") >&5
14759 (eval "$ac_link") 2>conftest.er1
b80f6443 14760 ac_status=$?
0628567a
JA
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
3185942a
JA
14764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } && {
14766 test -z "$ac_c_werror_flag" ||
14767 test ! -s conftest.err
14768 } && test -s conftest$ac_exeext && {
14769 test "$cross_compiling" = yes ||
14770 $as_test_x conftest$ac_exeext
14771 }; then
b80f6443
JA
14772 bash_cv_decl_strtoimax=yes
14773else
3185942a 14774 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
3185942a 14777 bash_cv_decl_strtoimax=no
b80f6443 14778fi
3185942a
JA
14779
14780rm -rf conftest.dSYM
14781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 14782 conftest$ac_exeext conftest.$ac_ext
b80f6443 14783fi
3185942a
JA
14784{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
14785$as_echo "$bash_cv_decl_strtoimax" >&6; }
b80f6443
JA
14786bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14787if test $bash_cv_decl_strtoimax = yes; then
14788 cat >>confdefs.h <<_ACEOF
14789#define $bash_tr_func 1
14790_ACEOF
14791
14792else
14793 cat >>confdefs.h <<_ACEOF
14794#define $bash_tr_func 0
14795_ACEOF
14796
14797fi
14798
14799
14800
14801
3185942a
JA
14802{ $as_echo "$as_me:$LINENO: checking for declaration of strtol" >&5
14803$as_echo_n "checking for declaration of strtol... " >&6; }
b80f6443 14804if test "${bash_cv_decl_strtol+set}" = set; then
3185942a 14805 $as_echo_n "(cached) " >&6
b80f6443
JA
14806else
14807 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
b80f6443
JA
14813
14814#if STDC_HEADERS
14815# include <stdlib.h>
14816#endif
14817#if HAVE_INTTYPES_H
14818# include <inttypes.h>
14819#endif
14820
14821int
14822main ()
14823{
14824return !strtol;
14825 ;
14826 return 0;
14827}
14828_ACEOF
14829rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14830if { (ac_try="$ac_link"
14831case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834esac
14835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14836$as_echo "$ac_try_echo") >&5
14837 (eval "$ac_link") 2>conftest.er1
b80f6443 14838 ac_status=$?
0628567a
JA
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
3185942a
JA
14842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext && {
14847 test "$cross_compiling" = yes ||
14848 $as_test_x conftest$ac_exeext
14849 }; then
b80f6443
JA
14850 bash_cv_decl_strtol=yes
14851else
3185942a 14852 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
3185942a 14855 bash_cv_decl_strtol=no
b80f6443 14856fi
3185942a
JA
14857
14858rm -rf conftest.dSYM
14859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 14860 conftest$ac_exeext conftest.$ac_ext
b80f6443 14861fi
3185942a
JA
14862{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
14863$as_echo "$bash_cv_decl_strtol" >&6; }
b80f6443
JA
14864bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14865if test $bash_cv_decl_strtol = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867#define $bash_tr_func 1
14868_ACEOF
14869
14870else
14871 cat >>confdefs.h <<_ACEOF
14872#define $bash_tr_func 0
14873_ACEOF
14874
14875fi
14876
14877
14878
14879
3185942a
JA
14880{ $as_echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
14881$as_echo_n "checking for declaration of strtoll... " >&6; }
b80f6443 14882if test "${bash_cv_decl_strtoll+set}" = set; then
3185942a 14883 $as_echo_n "(cached) " >&6
b80f6443
JA
14884else
14885 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
b80f6443
JA
14891
14892#if STDC_HEADERS
14893# include <stdlib.h>
14894#endif
14895#if HAVE_INTTYPES_H
14896# include <inttypes.h>
14897#endif
14898
14899int
14900main ()
14901{
14902return !strtoll;
14903 ;
14904 return 0;
14905}
14906_ACEOF
14907rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14908if { (ac_try="$ac_link"
14909case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912esac
14913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14914$as_echo "$ac_try_echo") >&5
14915 (eval "$ac_link") 2>conftest.er1
b80f6443 14916 ac_status=$?
0628567a
JA
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
3185942a
JA
14920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest$ac_exeext && {
14925 test "$cross_compiling" = yes ||
14926 $as_test_x conftest$ac_exeext
14927 }; then
b80f6443
JA
14928 bash_cv_decl_strtoll=yes
14929else
3185942a 14930 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
3185942a 14933 bash_cv_decl_strtoll=no
b80f6443 14934fi
3185942a
JA
14935
14936rm -rf conftest.dSYM
14937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 14938 conftest$ac_exeext conftest.$ac_ext
b80f6443 14939fi
3185942a
JA
14940{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
14941$as_echo "$bash_cv_decl_strtoll" >&6; }
b80f6443
JA
14942bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14943if test $bash_cv_decl_strtoll = yes; then
14944 cat >>confdefs.h <<_ACEOF
14945#define $bash_tr_func 1
14946_ACEOF
14947
14948else
14949 cat >>confdefs.h <<_ACEOF
14950#define $bash_tr_func 0
14951_ACEOF
14952
14953fi
14954
14955
14956
14957
3185942a
JA
14958{ $as_echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
14959$as_echo_n "checking for declaration of strtoul... " >&6; }
b80f6443 14960if test "${bash_cv_decl_strtoul+set}" = set; then
3185942a 14961 $as_echo_n "(cached) " >&6
b80f6443
JA
14962else
14963 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
14964/* confdefs.h. */
14965_ACEOF
14966cat confdefs.h >>conftest.$ac_ext
14967cat >>conftest.$ac_ext <<_ACEOF
14968/* end confdefs.h. */
b80f6443
JA
14969
14970#if STDC_HEADERS
14971# include <stdlib.h>
14972#endif
14973#if HAVE_INTTYPES_H
14974# include <inttypes.h>
14975#endif
14976
14977int
14978main ()
14979{
14980return !strtoul;
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
14986if { (ac_try="$ac_link"
14987case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14992$as_echo "$ac_try_echo") >&5
14993 (eval "$ac_link") 2>conftest.er1
b80f6443 14994 ac_status=$?
0628567a
JA
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
3185942a
JA
14998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext && {
15003 test "$cross_compiling" = yes ||
15004 $as_test_x conftest$ac_exeext
15005 }; then
b80f6443
JA
15006 bash_cv_decl_strtoul=yes
15007else
3185942a 15008 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
3185942a 15011 bash_cv_decl_strtoul=no
b80f6443 15012fi
3185942a
JA
15013
15014rm -rf conftest.dSYM
15015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15016 conftest$ac_exeext conftest.$ac_ext
b80f6443 15017fi
3185942a
JA
15018{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
15019$as_echo "$bash_cv_decl_strtoul" >&6; }
b80f6443
JA
15020bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15021if test $bash_cv_decl_strtoul = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023#define $bash_tr_func 1
15024_ACEOF
15025
15026else
15027 cat >>confdefs.h <<_ACEOF
15028#define $bash_tr_func 0
15029_ACEOF
15030
15031fi
15032
15033
15034
15035
3185942a
JA
15036{ $as_echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
15037$as_echo_n "checking for declaration of strtoull... " >&6; }
b80f6443 15038if test "${bash_cv_decl_strtoull+set}" = set; then
3185942a 15039 $as_echo_n "(cached) " >&6
b80f6443
JA
15040else
15041 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15042/* confdefs.h. */
15043_ACEOF
15044cat confdefs.h >>conftest.$ac_ext
15045cat >>conftest.$ac_ext <<_ACEOF
15046/* end confdefs.h. */
b80f6443
JA
15047
15048#if STDC_HEADERS
15049# include <stdlib.h>
15050#endif
15051#if HAVE_INTTYPES_H
15052# include <inttypes.h>
15053#endif
15054
15055int
15056main ()
15057{
15058return !strtoull;
15059 ;
15060 return 0;
15061}
15062_ACEOF
15063rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15064if { (ac_try="$ac_link"
15065case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068esac
15069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15070$as_echo "$ac_try_echo") >&5
15071 (eval "$ac_link") 2>conftest.er1
b80f6443 15072 ac_status=$?
0628567a
JA
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
3185942a
JA
15076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest$ac_exeext && {
15081 test "$cross_compiling" = yes ||
15082 $as_test_x conftest$ac_exeext
15083 }; then
b80f6443
JA
15084 bash_cv_decl_strtoull=yes
15085else
3185942a 15086 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15087sed 's/^/| /' conftest.$ac_ext >&5
15088
3185942a 15089 bash_cv_decl_strtoull=no
b80f6443 15090fi
3185942a
JA
15091
15092rm -rf conftest.dSYM
15093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15094 conftest$ac_exeext conftest.$ac_ext
b80f6443 15095fi
3185942a
JA
15096{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
15097$as_echo "$bash_cv_decl_strtoull" >&6; }
b80f6443
JA
15098bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15099if test $bash_cv_decl_strtoull = yes; then
15100 cat >>confdefs.h <<_ACEOF
15101#define $bash_tr_func 1
15102_ACEOF
15103
15104else
15105 cat >>confdefs.h <<_ACEOF
15106#define $bash_tr_func 0
15107_ACEOF
15108
15109fi
15110
15111
15112
15113
3185942a
JA
15114{ $as_echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
15115$as_echo_n "checking for declaration of strtoumax... " >&6; }
b80f6443 15116if test "${bash_cv_decl_strtoumax+set}" = set; then
3185942a 15117 $as_echo_n "(cached) " >&6
b80f6443
JA
15118else
15119 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
b80f6443
JA
15125
15126#if STDC_HEADERS
15127# include <stdlib.h>
15128#endif
15129#if HAVE_INTTYPES_H
15130# include <inttypes.h>
15131#endif
15132
15133int
15134main ()
15135{
15136return !strtoumax;
15137 ;
15138 return 0;
15139}
15140_ACEOF
15141rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15142if { (ac_try="$ac_link"
15143case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146esac
15147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148$as_echo "$ac_try_echo") >&5
15149 (eval "$ac_link") 2>conftest.er1
b80f6443 15150 ac_status=$?
0628567a
JA
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
3185942a
JA
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest$ac_exeext && {
15159 test "$cross_compiling" = yes ||
15160 $as_test_x conftest$ac_exeext
15161 }; then
b80f6443
JA
15162 bash_cv_decl_strtoumax=yes
15163else
3185942a 15164 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15165sed 's/^/| /' conftest.$ac_ext >&5
15166
3185942a 15167 bash_cv_decl_strtoumax=no
b80f6443 15168fi
3185942a
JA
15169
15170rm -rf conftest.dSYM
15171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15172 conftest$ac_exeext conftest.$ac_ext
b80f6443 15173fi
3185942a
JA
15174{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
15175$as_echo "$bash_cv_decl_strtoumax" >&6; }
b80f6443
JA
15176bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15177if test $bash_cv_decl_strtoumax = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179#define $bash_tr_func 1
15180_ACEOF
15181
15182else
15183 cat >>confdefs.h <<_ACEOF
15184#define $bash_tr_func 0
15185_ACEOF
15186
15187fi
15188
15189
15190
15191
0628567a 15192
3185942a
JA
15193
15194for ac_header in $ac_header_list
b80f6443 15195do
3185942a
JA
15196as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15199$as_echo_n "checking for $ac_header... " >&6; }
15200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201 $as_echo_n "(cached) " >&6
15202fi
15203ac_res=`eval 'as_val=${'$as_ac_Header'}
15204 $as_echo "$as_val"'`
15205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15206$as_echo "$ac_res" >&6; }
b80f6443
JA
15207else
15208 # Is the header compilable?
3185942a
JA
15209{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15210$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 15211cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15212/* confdefs.h. */
15213_ACEOF
15214cat confdefs.h >>conftest.$ac_ext
15215cat >>conftest.$ac_ext <<_ACEOF
15216/* end confdefs.h. */
b80f6443
JA
15217$ac_includes_default
15218#include <$ac_header>
15219_ACEOF
15220rm -f conftest.$ac_objext
3185942a
JA
15221if { (ac_try="$ac_compile"
15222case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225esac
15226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227$as_echo "$ac_try_echo") >&5
15228 (eval "$ac_compile") 2>conftest.er1
b80f6443 15229 ac_status=$?
0628567a
JA
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
3185942a
JA
15233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest.$ac_objext; then
b80f6443
JA
15238 ac_header_compiler=yes
15239else
3185942a 15240 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
3185942a 15243 ac_header_compiler=no
b80f6443 15244fi
3185942a
JA
15245
15246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
15249
15250# Is the header present?
3185942a
JA
15251{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 15253cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
15258/* end confdefs.h. */
b80f6443
JA
15259#include <$ac_header>
15260_ACEOF
3185942a
JA
15261if { (ac_try="$ac_cpp conftest.$ac_ext"
15262case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267$as_echo "$ac_try_echo") >&5
15268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 15269 ac_status=$?
0628567a 15270 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
15271 rm -f conftest.er1
15272 cat conftest.err >&5
3185942a
JA
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } >/dev/null && {
15275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 }; then
b80f6443
JA
15278 ac_header_preproc=yes
15279else
3185942a 15280 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
b80f6443
JA
15283 ac_header_preproc=no
15284fi
3185942a 15285
b80f6443 15286rm -f conftest.err conftest.$ac_ext
3185942a
JA
15287{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15288$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
15289
15290# So? What about this header?
0628567a
JA
15291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15292 yes:no: )
3185942a
JA
15293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15294$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15296$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
15297 ac_header_preproc=yes
15298 ;;
15299 no:yes:* )
3185942a
JA
15300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15301$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15303$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15305$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15307$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15309$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15311$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15312 ( cat <<\_ASBOX
0628567a
JA
15313## ------------------------------- ##
15314## Report this to bug-bash@gnu.org ##
15315## ------------------------------- ##
15316_ASBOX
3185942a 15317 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 15318 ;;
b80f6443 15319esac
3185942a
JA
15320{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15321$as_echo_n "checking for $ac_header... " >&6; }
15322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323 $as_echo_n "(cached) " >&6
b80f6443 15324else
0628567a 15325 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 15326fi
3185942a
JA
15327ac_res=`eval 'as_val=${'$as_ac_Header'}
15328 $as_echo "$as_val"'`
15329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15330$as_echo "$ac_res" >&6; }
b80f6443
JA
15331
15332fi
3185942a
JA
15333as_val=`eval 'as_val=${'$as_ac_Header'}
15334 $as_echo "$as_val"'`
15335 if test "x$as_val" = x""yes; then
b80f6443 15336 cat >>confdefs.h <<_ACEOF
3185942a 15337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
15338_ACEOF
15339
15340fi
15341
15342done
15343
15344
3185942a
JA
15345
15346
15347
15348
15349
15350
15351
15352for ac_func in $ac_func_list
b80f6443 15353do
3185942a
JA
15354as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15355{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15356$as_echo_n "checking for $ac_func... " >&6; }
15357if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15358 $as_echo_n "(cached) " >&6
b80f6443
JA
15359else
15360 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15368#define $ac_func innocuous_$ac_func
15369
b80f6443 15370/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
15371 which can conflict with char $ac_func (); below.
15372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15373 <limits.h> exists even on freestanding compilers. */
15374
15375#ifdef __STDC__
15376# include <limits.h>
15377#else
15378# include <assert.h>
15379#endif
15380
15381#undef $ac_func
15382
3185942a
JA
15383/* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
b80f6443
JA
15386#ifdef __cplusplus
15387extern "C"
b80f6443 15388#endif
b80f6443
JA
15389char $ac_func ();
15390/* The GNU C library defines this for functions which it implements
15391 to always fail with ENOSYS. Some functions are actually named
15392 something starting with __ and the normal name is an alias. */
3185942a 15393#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 15394choke me
b80f6443
JA
15395#endif
15396
0628567a
JA
15397int
15398main ()
15399{
3185942a 15400return $ac_func ();
b80f6443
JA
15401 ;
15402 return 0;
15403}
15404_ACEOF
15405rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
15406if { (ac_try="$ac_link"
15407case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410esac
15411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15412$as_echo "$ac_try_echo") >&5
15413 (eval "$ac_link") 2>conftest.er1
b80f6443 15414 ac_status=$?
0628567a
JA
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
3185942a
JA
15418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest$ac_exeext && {
15423 test "$cross_compiling" = yes ||
15424 $as_test_x conftest$ac_exeext
15425 }; then
b80f6443
JA
15426 eval "$as_ac_var=yes"
15427else
3185942a 15428 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15429sed 's/^/| /' conftest.$ac_ext >&5
15430
3185942a 15431 eval "$as_ac_var=no"
b80f6443 15432fi
3185942a
JA
15433
15434rm -rf conftest.dSYM
15435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 15436 conftest$ac_exeext conftest.$ac_ext
b80f6443 15437fi
3185942a
JA
15438ac_res=`eval 'as_val=${'$as_ac_var'}
15439 $as_echo "$as_val"'`
15440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15441$as_echo "$ac_res" >&6; }
15442as_val=`eval 'as_val=${'$as_ac_var'}
15443 $as_echo "$as_val"'`
15444 if test "x$as_val" = x""yes; then
b80f6443 15445 cat >>confdefs.h <<_ACEOF
3185942a 15446#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
15447_ACEOF
15448
15449fi
15450done
15451
3185942a
JA
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
15469$as_echo_n "checking for working mktime... " >&6; }
b80f6443 15470if test "${ac_cv_func_working_mktime+set}" = set; then
3185942a 15471 $as_echo_n "(cached) " >&6
b80f6443
JA
15472else
15473 if test "$cross_compiling" = yes; then
15474 ac_cv_func_working_mktime=no
15475else
15476 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
b80f6443 15482/* Test program from Paul Eggert and Tony Leneis. */
3185942a 15483#ifdef TIME_WITH_SYS_TIME
b80f6443
JA
15484# include <sys/time.h>
15485# include <time.h>
15486#else
3185942a 15487# ifdef HAVE_SYS_TIME_H
b80f6443
JA
15488# include <sys/time.h>
15489# else
15490# include <time.h>
15491# endif
15492#endif
15493
3185942a
JA
15494#include <limits.h>
15495#include <stdlib.h>
0628567a 15496
3185942a 15497#ifdef HAVE_UNISTD_H
b80f6443
JA
15498# include <unistd.h>
15499#endif
15500
3185942a 15501#ifndef HAVE_ALARM
b80f6443
JA
15502# define alarm(X) /* empty */
15503#endif
7117c2d2
JA
15504
15505/* Work around redefinition to rpl_putenv by other config tests. */
15506#undef putenv
15507
b80f6443 15508static time_t time_t_max;
0628567a 15509static time_t time_t_min;
b80f6443
JA
15510
15511/* Values we'll use to set the TZ environment variable. */
0628567a
JA
15512static char *tz_strings[] = {
15513 (char *) 0, "TZ=GMT0", "TZ=JST-9",
b80f6443
JA
15514 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15515};
15516#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15517
3185942a 15518/* Return 0 if mktime fails to convert a date in the spring-forward gap.
b80f6443 15519 Based on a problem report from Andreas Jaeger. */
3185942a 15520static int
b80f6443
JA
15521spring_forward_gap ()
15522{
15523 /* glibc (up to about 1998-10-07) failed this test. */
15524 struct tm tm;
15525
15526 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15527 instead of "TZ=America/Vancouver" in order to detect the bug even
15528 on systems that don't support the Olson extension, or don't have the
15529 full zoneinfo tables installed. */
15530 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15531
15532 tm.tm_year = 98;
15533 tm.tm_mon = 3;
15534 tm.tm_mday = 5;
15535 tm.tm_hour = 2;
15536 tm.tm_min = 0;
15537 tm.tm_sec = 0;
15538 tm.tm_isdst = -1;
3185942a 15539 return mktime (&tm) != (time_t) -1;
b80f6443
JA
15540}
15541
3185942a 15542static int
0628567a 15543mktime_test1 (now)
b80f6443
JA
15544 time_t now;
15545{
15546 struct tm *lt;
3185942a 15547 return ! (lt = localtime (&now)) || mktime (lt) == now;
0628567a
JA
15548}
15549
3185942a 15550static int
0628567a
JA
15551mktime_test (now)
15552 time_t now;
15553{
3185942a
JA
15554 return (mktime_test1 (now)
15555 && mktime_test1 ((time_t) (time_t_max - now))
15556 && mktime_test1 ((time_t) (time_t_min + now)));
b80f6443
JA
15557}
15558
3185942a 15559static int
b80f6443
JA
15560irix_6_4_bug ()
15561{
15562 /* Based on code from Ariel Faigon. */
15563 struct tm tm;
15564 tm.tm_year = 96;
15565 tm.tm_mon = 3;
15566 tm.tm_mday = 0;
15567 tm.tm_hour = 0;
15568 tm.tm_min = 0;
15569 tm.tm_sec = 0;
15570 tm.tm_isdst = -1;
15571 mktime (&tm);
3185942a 15572 return tm.tm_mon == 2 && tm.tm_mday == 31;
b80f6443
JA
15573}
15574
3185942a 15575static int
b80f6443
JA
15576bigtime_test (j)
15577 int j;
15578{
15579 struct tm tm;
15580 time_t now;
15581 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15582 now = mktime (&tm);
15583 if (now != (time_t) -1)
15584 {
15585 struct tm *lt = localtime (&now);
15586 if (! (lt
15587 && lt->tm_year == tm.tm_year
15588 && lt->tm_mon == tm.tm_mon
15589 && lt->tm_mday == tm.tm_mday
15590 && lt->tm_hour == tm.tm_hour
15591 && lt->tm_min == tm.tm_min
15592 && lt->tm_sec == tm.tm_sec
15593 && lt->tm_yday == tm.tm_yday
15594 && lt->tm_wday == tm.tm_wday
15595 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15596 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
3185942a 15597 return 0;
b80f6443 15598 }
3185942a 15599 return 1;
b80f6443
JA
15600}
15601
3185942a
JA
15602static int
15603year_2050_test ()
b80f6443 15604{
3185942a
JA
15605 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15606 ignoring leap seconds. */
15607 unsigned long int answer = 2527315200UL;
b80f6443 15608
3185942a
JA
15609 struct tm tm;
15610 time_t t;
15611 tm.tm_year = 2050 - 1900;
15612 tm.tm_mon = 2 - 1;
15613 tm.tm_mday = 1;
15614 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15615 tm.tm_isdst = -1;
b80f6443 15616
3185942a
JA
15617 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15618 instead of "TZ=America/Vancouver" in order to detect the bug even
15619 on systems that don't support the Olson extension, or don't have the
15620 full zoneinfo tables installed. */
15621 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15622
15623 t = mktime (&tm);
15624
15625 /* Check that the result is either a failure, or close enough
15626 to the correct answer that we can assume the discrepancy is
15627 due to leap seconds. */
15628 return (t == (time_t) -1
15629 || (0 < t && answer - 120 <= t && t <= answer + 120));
15630}
15631
15632int
15633main ()
15634{
15635 time_t t, delta;
15636 int i, j;
15637
15638 /* This test makes some buggy mktime implementations loop.
15639 Give up after 60 seconds; a mktime slower than that
15640 isn't worth using anyway. */
15641 alarm (60);
15642
15643 for (;;)
15644 {
15645 t = (time_t_max << 1) + 1;
15646 if (t <= time_t_max)
15647 break;
15648 time_t_max = t;
15649 }
15650 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
15651
15652 delta = time_t_max / 997; /* a suitable prime number */
15653 for (i = 0; i < N_STRINGS; i++)
b80f6443
JA
15654 {
15655 if (tz_strings[i])
15656 putenv (tz_strings[i]);
15657
15658 for (t = 0; t <= time_t_max - delta; t += delta)
3185942a
JA
15659 if (! mktime_test (t))
15660 return 1;
15661 if (! (mktime_test ((time_t) 1)
15662 && mktime_test ((time_t) (60 * 60))
15663 && mktime_test ((time_t) (60 * 60 * 24))))
15664 return 1;
15665
15666 for (j = 1; ; j <<= 1)
15667 if (! bigtime_test (j))
15668 return 1;
15669 else if (INT_MAX / 2 < j)
15670 break;
15671 if (! bigtime_test (INT_MAX))
15672 return 1;
b80f6443 15673 }
3185942a 15674 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
b80f6443
JA
15675}
15676_ACEOF
15677rm -f conftest$ac_exeext
3185942a
JA
15678if { (ac_try="$ac_link"
15679case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682esac
15683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15684$as_echo "$ac_try_echo") >&5
15685 (eval "$ac_link") 2>&5
b80f6443 15686 ac_status=$?
3185942a 15687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 15688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692esac
15693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15694$as_echo "$ac_try_echo") >&5
15695 (eval "$ac_try") 2>&5
b80f6443 15696 ac_status=$?
3185942a 15697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
15698 (exit $ac_status); }; }; then
15699 ac_cv_func_working_mktime=yes
15700else
3185942a
JA
15701 $as_echo "$as_me: program exited with status $ac_status" >&5
15702$as_echo "$as_me: failed program was:" >&5
0628567a
JA
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
b80f6443
JA
15705( exit $ac_status )
15706ac_cv_func_working_mktime=no
15707fi
3185942a
JA
15708rm -rf conftest.dSYM
15709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 15710fi
3185942a
JA
15711
15712
b80f6443 15713fi
3185942a
JA
15714{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15715$as_echo "$ac_cv_func_working_mktime" >&6; }
b80f6443 15716if test $ac_cv_func_working_mktime = no; then
3185942a 15717 case " $LIBOBJS " in
0628567a 15718 *" mktime.$ac_objext "* ) ;;
3185942a
JA
15719 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15720 ;;
0628567a
JA
15721esac
15722
b80f6443
JA
15723fi
15724
15725
15726
15727
15728
15729
15730
15731
15732for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
15733do
3185942a
JA
15734as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15737$as_echo_n "checking for $ac_header... " >&6; }
15738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 $as_echo_n "(cached) " >&6
15740fi
15741ac_res=`eval 'as_val=${'$as_ac_Header'}
15742 $as_echo "$as_val"'`
15743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15744$as_echo "$ac_res" >&6; }
b80f6443
JA
15745else
15746 # Is the header compilable?
3185942a
JA
15747{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15748$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 15749cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
b80f6443
JA
15755$ac_includes_default
15756#include <$ac_header>
15757_ACEOF
15758rm -f conftest.$ac_objext
3185942a
JA
15759if { (ac_try="$ac_compile"
15760case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763esac
15764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15765$as_echo "$ac_try_echo") >&5
15766 (eval "$ac_compile") 2>conftest.er1
b80f6443 15767 ac_status=$?
0628567a
JA
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
3185942a
JA
15771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && {
15773 test -z "$ac_c_werror_flag" ||
15774 test ! -s conftest.err
15775 } && test -s conftest.$ac_objext; then
b80f6443
JA
15776 ac_header_compiler=yes
15777else
3185942a 15778 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15779sed 's/^/| /' conftest.$ac_ext >&5
15780
3185942a 15781 ac_header_compiler=no
b80f6443 15782fi
3185942a
JA
15783
15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
15787
15788# Is the header present?
3185942a
JA
15789{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 15791cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15792/* confdefs.h. */
15793_ACEOF
15794cat confdefs.h >>conftest.$ac_ext
15795cat >>conftest.$ac_ext <<_ACEOF
15796/* end confdefs.h. */
b80f6443
JA
15797#include <$ac_header>
15798_ACEOF
3185942a
JA
15799if { (ac_try="$ac_cpp conftest.$ac_ext"
15800case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803esac
15804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15805$as_echo "$ac_try_echo") >&5
15806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 15807 ac_status=$?
0628567a 15808 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
15809 rm -f conftest.er1
15810 cat conftest.err >&5
3185942a
JA
15811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } >/dev/null && {
15813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15815 }; then
b80f6443
JA
15816 ac_header_preproc=yes
15817else
3185942a 15818 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
b80f6443
JA
15821 ac_header_preproc=no
15822fi
3185942a 15823
b80f6443 15824rm -f conftest.err conftest.$ac_ext
3185942a
JA
15825{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15826$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
15827
15828# So? What about this header?
0628567a
JA
15829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 yes:no: )
3185942a
JA
15831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15832$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15834$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
15835 ac_header_preproc=yes
15836 ;;
15837 no:yes:* )
3185942a
JA
15838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15839$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15841$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15843$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15845$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15847$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15849$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15850 ( cat <<\_ASBOX
0628567a
JA
15851## ------------------------------- ##
15852## Report this to bug-bash@gnu.org ##
15853## ------------------------------- ##
15854_ASBOX
3185942a 15855 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 15856 ;;
b80f6443 15857esac
3185942a
JA
15858{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15859$as_echo_n "checking for $ac_header... " >&6; }
15860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15861 $as_echo_n "(cached) " >&6
b80f6443 15862else
0628567a 15863 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 15864fi
3185942a
JA
15865ac_res=`eval 'as_val=${'$as_ac_Header'}
15866 $as_echo "$as_val"'`
15867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15868$as_echo "$ac_res" >&6; }
b80f6443
JA
15869
15870fi
3185942a
JA
15871as_val=`eval 'as_val=${'$as_ac_Header'}
15872 $as_echo "$as_val"'`
15873 if test "x$as_val" = x""yes; then
b80f6443 15874 cat >>confdefs.h <<_ACEOF
3185942a 15875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
15876_ACEOF
15877
15878fi
15879
15880done
15881
15882
15883
15884
15885for ac_header in stdlib.h unistd.h
15886do
3185942a
JA
15887as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15890$as_echo_n "checking for $ac_header... " >&6; }
15891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15892 $as_echo_n "(cached) " >&6
15893fi
15894ac_res=`eval 'as_val=${'$as_ac_Header'}
15895 $as_echo "$as_val"'`
15896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15897$as_echo "$ac_res" >&6; }
b80f6443
JA
15898else
15899 # Is the header compilable?
3185942a
JA
15900{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15901$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 15902cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
b80f6443
JA
15908$ac_includes_default
15909#include <$ac_header>
15910_ACEOF
15911rm -f conftest.$ac_objext
3185942a
JA
15912if { (ac_try="$ac_compile"
15913case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916esac
15917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15918$as_echo "$ac_try_echo") >&5
15919 (eval "$ac_compile") 2>conftest.er1
b80f6443 15920 ac_status=$?
0628567a
JA
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
3185942a
JA
15924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_c_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest.$ac_objext; then
b80f6443
JA
15929 ac_header_compiler=yes
15930else
3185942a 15931 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15932sed 's/^/| /' conftest.$ac_ext >&5
15933
3185942a 15934 ac_header_compiler=no
b80f6443 15935fi
3185942a
JA
15936
15937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
15940
15941# Is the header present?
3185942a
JA
15942{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15943$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 15944cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
b80f6443
JA
15950#include <$ac_header>
15951_ACEOF
3185942a
JA
15952if { (ac_try="$ac_cpp conftest.$ac_ext"
15953case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956esac
15957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15958$as_echo "$ac_try_echo") >&5
15959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 15960 ac_status=$?
0628567a 15961 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
15962 rm -f conftest.er1
15963 cat conftest.err >&5
3185942a
JA
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } >/dev/null && {
15966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15967 test ! -s conftest.err
15968 }; then
b80f6443
JA
15969 ac_header_preproc=yes
15970else
3185942a 15971 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
b80f6443
JA
15974 ac_header_preproc=no
15975fi
3185942a 15976
b80f6443 15977rm -f conftest.err conftest.$ac_ext
3185942a
JA
15978{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15979$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
15980
15981# So? What about this header?
0628567a
JA
15982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15983 yes:no: )
3185942a
JA
15984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15985$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15987$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
15988 ac_header_preproc=yes
15989 ;;
15990 no:yes:* )
3185942a
JA
15991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15994$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15996$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15998$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16000$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16002$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16003 ( cat <<\_ASBOX
0628567a
JA
16004## ------------------------------- ##
16005## Report this to bug-bash@gnu.org ##
16006## ------------------------------- ##
16007_ASBOX
3185942a 16008 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16009 ;;
b80f6443 16010esac
3185942a
JA
16011{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16012$as_echo_n "checking for $ac_header... " >&6; }
16013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 $as_echo_n "(cached) " >&6
b80f6443 16015else
0628567a 16016 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 16017fi
3185942a
JA
16018ac_res=`eval 'as_val=${'$as_ac_Header'}
16019 $as_echo "$as_val"'`
16020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16021$as_echo "$ac_res" >&6; }
b80f6443
JA
16022
16023fi
3185942a
JA
16024as_val=`eval 'as_val=${'$as_ac_Header'}
16025 $as_echo "$as_val"'`
16026 if test "x$as_val" = x""yes; then
b80f6443 16027 cat >>confdefs.h <<_ACEOF
3185942a 16028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
16029_ACEOF
16030
16031fi
16032
16033done
16034
16035
16036for ac_func in getpagesize
16037do
3185942a
JA
16038as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16040$as_echo_n "checking for $ac_func... " >&6; }
16041if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16042 $as_echo_n "(cached) " >&6
b80f6443
JA
16043else
16044 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16045/* confdefs.h. */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h. */
16050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16052#define $ac_func innocuous_$ac_func
16053
16054/* System header to define __stub macros and hopefully few prototypes,
16055 which can conflict with char $ac_func (); below.
16056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16057 <limits.h> exists even on freestanding compilers. */
16058
16059#ifdef __STDC__
16060# include <limits.h>
16061#else
16062# include <assert.h>
16063#endif
16064
16065#undef $ac_func
16066
3185942a
JA
16067/* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
b80f6443
JA
16070#ifdef __cplusplus
16071extern "C"
b80f6443 16072#endif
b80f6443
JA
16073char $ac_func ();
16074/* The GNU C library defines this for functions which it implements
16075 to always fail with ENOSYS. Some functions are actually named
16076 something starting with __ and the normal name is an alias. */
3185942a 16077#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 16078choke me
b80f6443
JA
16079#endif
16080
0628567a
JA
16081int
16082main ()
16083{
3185942a 16084return $ac_func ();
b80f6443
JA
16085 ;
16086 return 0;
16087}
16088_ACEOF
16089rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
16090if { (ac_try="$ac_link"
16091case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094esac
16095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096$as_echo "$ac_try_echo") >&5
16097 (eval "$ac_link") 2>conftest.er1
b80f6443 16098 ac_status=$?
0628567a
JA
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
3185942a
JA
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest$ac_exeext && {
16107 test "$cross_compiling" = yes ||
16108 $as_test_x conftest$ac_exeext
16109 }; then
b80f6443
JA
16110 eval "$as_ac_var=yes"
16111else
3185942a 16112 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
3185942a 16115 eval "$as_ac_var=no"
b80f6443 16116fi
3185942a
JA
16117
16118rm -rf conftest.dSYM
16119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 16120 conftest$ac_exeext conftest.$ac_ext
b80f6443 16121fi
3185942a
JA
16122ac_res=`eval 'as_val=${'$as_ac_var'}
16123 $as_echo "$as_val"'`
16124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16125$as_echo "$ac_res" >&6; }
16126as_val=`eval 'as_val=${'$as_ac_var'}
16127 $as_echo "$as_val"'`
16128 if test "x$as_val" = x""yes; then
b80f6443 16129 cat >>confdefs.h <<_ACEOF
3185942a 16130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443
JA
16131_ACEOF
16132
16133fi
16134done
16135
3185942a
JA
16136{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16137$as_echo_n "checking for working mmap... " >&6; }
b80f6443 16138if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3185942a 16139 $as_echo_n "(cached) " >&6
b80f6443
JA
16140else
16141 if test "$cross_compiling" = yes; then
16142 ac_cv_func_mmap_fixed_mapped=no
16143else
16144 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16145/* confdefs.h. */
16146_ACEOF
16147cat confdefs.h >>conftest.$ac_ext
16148cat >>conftest.$ac_ext <<_ACEOF
16149/* end confdefs.h. */
b80f6443
JA
16150$ac_includes_default
16151/* malloc might have been renamed as rpl_malloc. */
16152#undef malloc
16153
16154/* Thanks to Mike Haertel and Jim Avera for this test.
16155 Here is a matrix of mmap possibilities:
16156 mmap private not fixed
16157 mmap private fixed at somewhere currently unmapped
16158 mmap private fixed at somewhere already mapped
16159 mmap shared not fixed
16160 mmap shared fixed at somewhere currently unmapped
16161 mmap shared fixed at somewhere already mapped
16162 For private mappings, we should verify that changes cannot be read()
16163 back from the file, nor mmap's back from the file at a different
16164 address. (There have been systems where private was not correctly
16165 implemented like the infamous i386 svr4.0, and systems where the
16166 VM page cache was not coherent with the file system buffer cache
16167 like early versions of FreeBSD and possibly contemporary NetBSD.)
16168 For shared mappings, we should conversely verify that changes get
16169 propagated back to all the places they're supposed to be.
16170
16171 Grep wants private fixed already mapped.
16172 The main things grep needs to know about mmap are:
16173 * does it exist and is it safe to write into the mmap'd area
16174 * how to use it (BSD variants) */
16175
16176#include <fcntl.h>
16177#include <sys/mman.h>
16178
3185942a 16179#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
b80f6443
JA
16180char *malloc ();
16181#endif
16182
16183/* This mess was copied from the GNU getpagesize.h. */
3185942a 16184#ifndef HAVE_GETPAGESIZE
b80f6443 16185/* Assume that all systems that can run configure have sys/param.h. */
3185942a 16186# ifndef HAVE_SYS_PARAM_H
b80f6443
JA
16187# define HAVE_SYS_PARAM_H 1
16188# endif
16189
16190# ifdef _SC_PAGESIZE
16191# define getpagesize() sysconf(_SC_PAGESIZE)
16192# else /* no _SC_PAGESIZE */
3185942a 16193# ifdef HAVE_SYS_PARAM_H
b80f6443
JA
16194# include <sys/param.h>
16195# ifdef EXEC_PAGESIZE
16196# define getpagesize() EXEC_PAGESIZE
16197# else /* no EXEC_PAGESIZE */
16198# ifdef NBPG
16199# define getpagesize() NBPG * CLSIZE
16200# ifndef CLSIZE
16201# define CLSIZE 1
16202# endif /* no CLSIZE */
16203# else /* no NBPG */
16204# ifdef NBPC
16205# define getpagesize() NBPC
16206# else /* no NBPC */
16207# ifdef PAGESIZE
16208# define getpagesize() PAGESIZE
16209# endif /* PAGESIZE */
16210# endif /* no NBPC */
16211# endif /* no NBPG */
16212# endif /* no EXEC_PAGESIZE */
16213# else /* no HAVE_SYS_PARAM_H */
16214# define getpagesize() 8192 /* punt totally */
16215# endif /* no HAVE_SYS_PARAM_H */
16216# endif /* no _SC_PAGESIZE */
16217
16218#endif /* no HAVE_GETPAGESIZE */
16219
16220int
16221main ()
16222{
16223 char *data, *data2, *data3;
16224 int i, pagesize;
16225 int fd;
16226
16227 pagesize = getpagesize ();
16228
16229 /* First, make a file with some known garbage in it. */
16230 data = (char *) malloc (pagesize);
16231 if (!data)
3185942a 16232 return 1;
b80f6443
JA
16233 for (i = 0; i < pagesize; ++i)
16234 *(data + i) = rand ();
16235 umask (0);
16236 fd = creat ("conftest.mmap", 0600);
16237 if (fd < 0)
3185942a 16238 return 1;
b80f6443 16239 if (write (fd, data, pagesize) != pagesize)
3185942a 16240 return 1;
b80f6443
JA
16241 close (fd);
16242
16243 /* Next, try to mmap the file at a fixed address which already has
16244 something else allocated at it. If we can, also make sure that
16245 we see the same garbage. */
16246 fd = open ("conftest.mmap", O_RDWR);
16247 if (fd < 0)
3185942a 16248 return 1;
b80f6443
JA
16249 data2 = (char *) malloc (2 * pagesize);
16250 if (!data2)
3185942a
JA
16251 return 1;
16252 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
b80f6443 16253 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
0628567a 16254 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3185942a 16255 return 1;
b80f6443
JA
16256 for (i = 0; i < pagesize; ++i)
16257 if (*(data + i) != *(data2 + i))
3185942a 16258 return 1;
b80f6443
JA
16259
16260 /* Finally, make sure that changes to the mapped area do not
16261 percolate back to the file as seen by read(). (This is a bug on
16262 some variants of i386 svr4.0.) */
16263 for (i = 0; i < pagesize; ++i)
16264 *(data2 + i) = *(data2 + i) + 1;
16265 data3 = (char *) malloc (pagesize);
16266 if (!data3)
3185942a 16267 return 1;
b80f6443 16268 if (read (fd, data3, pagesize) != pagesize)
3185942a 16269 return 1;
b80f6443
JA
16270 for (i = 0; i < pagesize; ++i)
16271 if (*(data + i) != *(data3 + i))
3185942a 16272 return 1;
b80f6443 16273 close (fd);
3185942a 16274 return 0;
b80f6443
JA
16275}
16276_ACEOF
16277rm -f conftest$ac_exeext
3185942a
JA
16278if { (ac_try="$ac_link"
16279case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282esac
16283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284$as_echo "$ac_try_echo") >&5
16285 (eval "$ac_link") 2>&5
b80f6443 16286 ac_status=$?
3185942a 16287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 16288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
16289 { (case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292esac
16293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16294$as_echo "$ac_try_echo") >&5
16295 (eval "$ac_try") 2>&5
b80f6443 16296 ac_status=$?
3185942a 16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
16298 (exit $ac_status); }; }; then
16299 ac_cv_func_mmap_fixed_mapped=yes
16300else
3185942a
JA
16301 $as_echo "$as_me: program exited with status $ac_status" >&5
16302$as_echo "$as_me: failed program was:" >&5
0628567a
JA
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
b80f6443
JA
16305( exit $ac_status )
16306ac_cv_func_mmap_fixed_mapped=no
16307fi
3185942a
JA
16308rm -rf conftest.dSYM
16309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b80f6443 16310fi
3185942a
JA
16311
16312
b80f6443 16313fi
3185942a
JA
16314{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16315$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b80f6443
JA
16316if test $ac_cv_func_mmap_fixed_mapped = yes; then
16317
16318cat >>confdefs.h <<\_ACEOF
16319#define HAVE_MMAP 1
16320_ACEOF
16321
16322fi
16323rm -f conftest.mmap
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
16335 munmap stpcpy strcspn strdup
16336do
3185942a
JA
16337as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16338{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16339$as_echo_n "checking for $ac_func... " >&6; }
16340if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16341 $as_echo_n "(cached) " >&6
b80f6443
JA
16342else
16343 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16344/* confdefs.h. */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
16348/* end confdefs.h. */
16349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16351#define $ac_func innocuous_$ac_func
16352
b80f6443 16353/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
16354 which can conflict with char $ac_func (); below.
16355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16356 <limits.h> exists even on freestanding compilers. */
16357
16358#ifdef __STDC__
16359# include <limits.h>
16360#else
16361# include <assert.h>
16362#endif
16363
16364#undef $ac_func
16365
3185942a
JA
16366/* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
b80f6443
JA
16369#ifdef __cplusplus
16370extern "C"
b80f6443 16371#endif
b80f6443
JA
16372char $ac_func ();
16373/* The GNU C library defines this for functions which it implements
16374 to always fail with ENOSYS. Some functions are actually named
16375 something starting with __ and the normal name is an alias. */
3185942a 16376#if defined __stub_$ac_func || defined __stub___$ac_func
b80f6443 16377choke me
b80f6443
JA
16378#endif
16379
0628567a
JA
16380int
16381main ()
16382{
3185942a 16383return $ac_func ();
b80f6443
JA
16384 ;
16385 return 0;
16386}
16387_ACEOF
16388rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
16389if { (ac_try="$ac_link"
16390case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395$as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
b80f6443 16397 ac_status=$?
0628567a
JA
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
3185942a
JA
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest$ac_exeext
16408 }; then
b80f6443
JA
16409 eval "$as_ac_var=yes"
16410else
3185942a 16411 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
3185942a 16414 eval "$as_ac_var=no"
b80f6443 16415fi
3185942a
JA
16416
16417rm -rf conftest.dSYM
16418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 16419 conftest$ac_exeext conftest.$ac_ext
b80f6443 16420fi
3185942a
JA
16421ac_res=`eval 'as_val=${'$as_ac_var'}
16422 $as_echo "$as_val"'`
16423 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16424$as_echo "$ac_res" >&6; }
16425as_val=`eval 'as_val=${'$as_ac_var'}
16426 $as_echo "$as_val"'`
16427 if test "x$as_val" = x""yes; then
b80f6443 16428 cat >>confdefs.h <<_ACEOF
3185942a 16429#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 16430_ACEOF
7117c2d2 16431
b80f6443
JA
16432fi
16433done
7117c2d2 16434
7117c2d2 16435
b80f6443
JA
16436INTL_DEP= INTL_INC= LIBINTL_H=
16437if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
16438 INTL_DEP='${INTL_LIBDIR}/libintl.a'
16439 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
16440 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
16441fi
7117c2d2 16442
7117c2d2 16443
7117c2d2 16444
7117c2d2 16445
7117c2d2 16446
7117c2d2 16447
7117c2d2 16448
b80f6443
JA
16449for ac_header in wctype.h
16450do
3185942a
JA
16451as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16454$as_echo_n "checking for $ac_header... " >&6; }
16455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16456 $as_echo_n "(cached) " >&6
16457fi
16458ac_res=`eval 'as_val=${'$as_ac_Header'}
16459 $as_echo "$as_val"'`
16460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16461$as_echo "$ac_res" >&6; }
b80f6443
JA
16462else
16463 # Is the header compilable?
3185942a
JA
16464{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16465$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16466cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
b80f6443
JA
16472$ac_includes_default
16473#include <$ac_header>
16474_ACEOF
16475rm -f conftest.$ac_objext
3185942a
JA
16476if { (ac_try="$ac_compile"
16477case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480esac
16481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16482$as_echo "$ac_try_echo") >&5
16483 (eval "$ac_compile") 2>conftest.er1
b80f6443 16484 ac_status=$?
0628567a
JA
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
3185942a
JA
16488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } && {
16490 test -z "$ac_c_werror_flag" ||
16491 test ! -s conftest.err
16492 } && test -s conftest.$ac_objext; then
b80f6443
JA
16493 ac_header_compiler=yes
16494else
3185942a 16495 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
3185942a 16498 ac_header_compiler=no
b80f6443 16499fi
3185942a
JA
16500
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16503$as_echo "$ac_header_compiler" >&6; }
7117c2d2 16504
b80f6443 16505# Is the header present?
3185942a
JA
16506{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16507$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16508cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
b80f6443
JA
16514#include <$ac_header>
16515_ACEOF
3185942a
JA
16516if { (ac_try="$ac_cpp conftest.$ac_ext"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16522$as_echo "$ac_try_echo") >&5
16523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f73dda09 16524 ac_status=$?
0628567a 16525 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
16526 rm -f conftest.er1
16527 cat conftest.err >&5
3185942a
JA
16528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } >/dev/null && {
16530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 }; then
b80f6443
JA
16533 ac_header_preproc=yes
16534else
3185942a 16535 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16536sed 's/^/| /' conftest.$ac_ext >&5
16537
b80f6443
JA
16538 ac_header_preproc=no
16539fi
3185942a 16540
b80f6443 16541rm -f conftest.err conftest.$ac_ext
3185942a
JA
16542{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16543$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16544
16545# So? What about this header?
0628567a
JA
16546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16547 yes:no: )
3185942a
JA
16548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16549$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16551$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
16552 ac_header_preproc=yes
16553 ;;
16554 no:yes:* )
3185942a
JA
16555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16556$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16558$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16560$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16562$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16564$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16566$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16567 ( cat <<\_ASBOX
0628567a
JA
16568## ------------------------------- ##
16569## Report this to bug-bash@gnu.org ##
16570## ------------------------------- ##
16571_ASBOX
3185942a 16572 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16573 ;;
b80f6443 16574esac
3185942a
JA
16575{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16576$as_echo_n "checking for $ac_header... " >&6; }
16577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16578 $as_echo_n "(cached) " >&6
b80f6443 16579else
0628567a 16580 eval "$as_ac_Header=\$ac_header_preproc"
b80f6443 16581fi
3185942a
JA
16582ac_res=`eval 'as_val=${'$as_ac_Header'}
16583 $as_echo "$as_val"'`
16584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16585$as_echo "$ac_res" >&6; }
b80f6443
JA
16586
16587fi
3185942a
JA
16588as_val=`eval 'as_val=${'$as_ac_Header'}
16589 $as_echo "$as_val"'`
16590 if test "x$as_val" = x""yes; then
b80f6443 16591 cat >>confdefs.h <<_ACEOF
3185942a 16592#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
16593_ACEOF
16594
16595fi
16596
16597done
16598
16599
16600for ac_header in wchar.h
16601do
3185942a
JA
16602as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16605$as_echo_n "checking for $ac_header... " >&6; }
16606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16607 $as_echo_n "(cached) " >&6
16608fi
16609ac_res=`eval 'as_val=${'$as_ac_Header'}
16610 $as_echo "$as_val"'`
16611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16612$as_echo "$ac_res" >&6; }
b80f6443
JA
16613else
16614 # Is the header compilable?
3185942a
JA
16615{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16616$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16617cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
b80f6443
JA
16623$ac_includes_default
16624#include <$ac_header>
16625_ACEOF
16626rm -f conftest.$ac_objext
3185942a
JA
16627if { (ac_try="$ac_compile"
16628case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631esac
16632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16633$as_echo "$ac_try_echo") >&5
16634 (eval "$ac_compile") 2>conftest.er1
b80f6443 16635 ac_status=$?
0628567a
JA
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
3185942a
JA
16639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } && {
16641 test -z "$ac_c_werror_flag" ||
16642 test ! -s conftest.err
16643 } && test -s conftest.$ac_objext; then
b80f6443
JA
16644 ac_header_compiler=yes
16645else
3185942a 16646 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
3185942a 16649 ac_header_compiler=no
b80f6443 16650fi
3185942a
JA
16651
16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16654$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
16655
16656# Is the header present?
3185942a
JA
16657{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16658$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16659cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16660/* confdefs.h. */
16661_ACEOF
16662cat confdefs.h >>conftest.$ac_ext
16663cat >>conftest.$ac_ext <<_ACEOF
16664/* end confdefs.h. */
b80f6443
JA
16665#include <$ac_header>
16666_ACEOF
3185942a
JA
16667if { (ac_try="$ac_cpp conftest.$ac_ext"
16668case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671esac
16672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16673$as_echo "$ac_try_echo") >&5
16674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b80f6443 16675 ac_status=$?
0628567a 16676 grep -v '^ *+' conftest.er1 >conftest.err
b80f6443
JA
16677 rm -f conftest.er1
16678 cat conftest.err >&5
3185942a
JA
16679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } >/dev/null && {
16681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16682 test ! -s conftest.err
16683 }; then
b80f6443
JA
16684 ac_header_preproc=yes
16685else
3185942a 16686 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16687sed 's/^/| /' conftest.$ac_ext >&5
16688
b80f6443
JA
16689 ac_header_preproc=no
16690fi
3185942a 16691
b80f6443 16692rm -f conftest.err conftest.$ac_ext
3185942a
JA
16693{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16694$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16695
16696# So? What about this header?
0628567a
JA
16697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16698 yes:no: )
3185942a
JA
16699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16700$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16702$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
16703 ac_header_preproc=yes
16704 ;;
16705 no:yes:* )
3185942a
JA
16706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16707$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16709$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16711$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16713$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16715$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16717$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16718 ( cat <<\_ASBOX
0628567a
JA
16719## ------------------------------- ##
16720## Report this to bug-bash@gnu.org ##
16721## ------------------------------- ##
16722_ASBOX
3185942a 16723 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16724 ;;
b80f6443 16725esac
3185942a
JA
16726{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16727$as_echo_n "checking for $ac_header... " >&6; }
16728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16729 $as_echo_n "(cached) " >&6
7117c2d2 16730else
0628567a 16731 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 16732fi
3185942a
JA
16733ac_res=`eval 'as_val=${'$as_ac_Header'}
16734 $as_echo "$as_val"'`
16735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16736$as_echo "$ac_res" >&6; }
b80f6443 16737
7117c2d2 16738fi
3185942a
JA
16739as_val=`eval 'as_val=${'$as_ac_Header'}
16740 $as_echo "$as_val"'`
16741 if test "x$as_val" = x""yes; then
b80f6443 16742 cat >>confdefs.h <<_ACEOF
3185942a 16743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443
JA
16744_ACEOF
16745
7117c2d2
JA
16746fi
16747
b80f6443
JA
16748done
16749
16750
16751for ac_header in langinfo.h
7117c2d2 16752do
3185942a
JA
16753as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16756$as_echo_n "checking for $ac_header... " >&6; }
16757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16758 $as_echo_n "(cached) " >&6
16759fi
16760ac_res=`eval 'as_val=${'$as_ac_Header'}
16761 $as_echo "$as_val"'`
16762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16763$as_echo "$ac_res" >&6; }
7117c2d2 16764else
b80f6443 16765 # Is the header compilable?
3185942a
JA
16766{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16767$as_echo_n "checking $ac_header usability... " >&6; }
b80f6443 16768cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
b80f6443
JA
16774$ac_includes_default
16775#include <$ac_header>
16776_ACEOF
16777rm -f conftest.$ac_objext
3185942a
JA
16778if { (ac_try="$ac_compile"
16779case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782esac
16783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16784$as_echo "$ac_try_echo") >&5
16785 (eval "$ac_compile") 2>conftest.er1
b80f6443 16786 ac_status=$?
0628567a
JA
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
3185942a
JA
16790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest.$ac_objext; then
b80f6443
JA
16795 ac_header_compiler=yes
16796else
3185942a 16797 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16798sed 's/^/| /' conftest.$ac_ext >&5
16799
3185942a 16800 ac_header_compiler=no
b80f6443 16801fi
3185942a
JA
16802
16803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16805$as_echo "$ac_header_compiler" >&6; }
b80f6443
JA
16806
16807# Is the header present?
3185942a
JA
16808{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16809$as_echo_n "checking $ac_header presence... " >&6; }
b80f6443 16810cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16811/* confdefs.h. */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h. */
7117c2d2
JA
16816#include <$ac_header>
16817_ACEOF
3185942a
JA
16818if { (ac_try="$ac_cpp conftest.$ac_ext"
16819case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822esac
16823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16824$as_echo "$ac_try_echo") >&5
16825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7117c2d2 16826 ac_status=$?
0628567a 16827 grep -v '^ *+' conftest.er1 >conftest.err
7117c2d2
JA
16828 rm -f conftest.er1
16829 cat conftest.err >&5
3185942a
JA
16830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } >/dev/null && {
16832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16834 }; then
b80f6443 16835 ac_header_preproc=yes
7117c2d2 16836else
3185942a 16837 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
b80f6443 16840 ac_header_preproc=no
7117c2d2 16841fi
3185942a 16842
7117c2d2 16843rm -f conftest.err conftest.$ac_ext
3185942a
JA
16844{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16845$as_echo "$ac_header_preproc" >&6; }
b80f6443
JA
16846
16847# So? What about this header?
0628567a
JA
16848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16849 yes:no: )
3185942a
JA
16850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16851$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16853$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
0628567a
JA
16854 ac_header_preproc=yes
16855 ;;
16856 no:yes:* )
3185942a
JA
16857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16858$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16860$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16862$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16864$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16866$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16868$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16869 ( cat <<\_ASBOX
0628567a
JA
16870## ------------------------------- ##
16871## Report this to bug-bash@gnu.org ##
16872## ------------------------------- ##
16873_ASBOX
3185942a 16874 ) | sed "s/^/$as_me: WARNING: /" >&2
0628567a 16875 ;;
b80f6443 16876esac
3185942a
JA
16877{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16878$as_echo_n "checking for $ac_header... " >&6; }
16879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16880 $as_echo_n "(cached) " >&6
b80f6443 16881else
0628567a 16882 eval "$as_ac_Header=\$ac_header_preproc"
7117c2d2 16883fi
3185942a
JA
16884ac_res=`eval 'as_val=${'$as_ac_Header'}
16885 $as_echo "$as_val"'`
16886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16887$as_echo "$ac_res" >&6; }
b80f6443
JA
16888
16889fi
3185942a
JA
16890as_val=`eval 'as_val=${'$as_ac_Header'}
16891 $as_echo "$as_val"'`
16892 if test "x$as_val" = x""yes; then
b80f6443 16893 cat >>confdefs.h <<_ACEOF
3185942a 16894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b80f6443 16895_ACEOF
7117c2d2
JA
16896
16897fi
b80f6443 16898
7117c2d2
JA
16899done
16900
b80f6443 16901
3185942a
JA
16902{ $as_echo "$as_me:$LINENO: checking for mbrlen" >&5
16903$as_echo_n "checking for mbrlen... " >&6; }
16904if test "${ac_cv_func_mbrlen+set}" = set; then
16905 $as_echo_n "(cached) " >&6
7117c2d2
JA
16906else
16907 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
16908/* confdefs.h. */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h. */
3185942a 16913/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
0628567a 16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3185942a 16915#define mbrlen innocuous_mbrlen
0628567a 16916
7117c2d2 16917/* System header to define __stub macros and hopefully few prototypes,
3185942a 16918 which can conflict with char mbrlen (); below.
0628567a
JA
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16921
16922#ifdef __STDC__
16923# include <limits.h>
16924#else
16925# include <assert.h>
16926#endif
16927
3185942a 16928#undef mbrlen
0628567a 16929
3185942a
JA
16930/* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
7117c2d2
JA
16933#ifdef __cplusplus
16934extern "C"
16935#endif
3185942a 16936char mbrlen ();
7117c2d2
JA
16937/* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
3185942a 16940#if defined __stub_mbrlen || defined __stub___mbrlen
7117c2d2 16941choke me
7117c2d2
JA
16942#endif
16943
0628567a
JA
16944int
16945main ()
16946{
3185942a 16947return mbrlen ();
7117c2d2
JA
16948 ;
16949 return 0;
16950}
16951_ACEOF
16952rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
16953if { (ac_try="$ac_link"
16954case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957esac
16958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16959$as_echo "$ac_try_echo") >&5
16960 (eval "$ac_link") 2>conftest.er1
7117c2d2 16961 ac_status=$?
0628567a
JA
16962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
3185942a
JA
16965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest$ac_exeext && {
16970 test "$cross_compiling" = yes ||
16971 $as_test_x conftest$ac_exeext
16972 }; then
16973 ac_cv_func_mbrlen=yes
7117c2d2 16974else
3185942a 16975 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
3185942a 16978 ac_cv_func_mbrlen=no
7117c2d2 16979fi
3185942a
JA
16980
16981rm -rf conftest.dSYM
16982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 16983 conftest$ac_exeext conftest.$ac_ext
7117c2d2 16984fi
3185942a
JA
16985{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
16986$as_echo "$ac_cv_func_mbrlen" >&6; }
16987if test "x$ac_cv_func_mbrlen" = x""yes; then
b80f6443 16988 cat >>confdefs.h <<\_ACEOF
3185942a 16989#define HAVE_MBRLEN 1
b80f6443 16990_ACEOF
7117c2d2
JA
16991
16992fi
7117c2d2 16993
3185942a
JA
16994{ $as_echo "$as_me:$LINENO: checking for mbscmp" >&5
16995$as_echo_n "checking for mbscmp... " >&6; }
16996if test "${ac_cv_func_mbscmp+set}" = set; then
16997 $as_echo_n "(cached) " >&6
7117c2d2 16998else
b80f6443 16999 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
3185942a 17005/* Define mbscmp to an innocuous variant, in case <limits.h> declares mbscmp.
0628567a 17006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3185942a 17007#define mbscmp innocuous_mbscmp
0628567a 17008
b80f6443 17009/* System header to define __stub macros and hopefully few prototypes,
3185942a 17010 which can conflict with char mbscmp (); below.
0628567a
JA
17011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17012 <limits.h> exists even on freestanding compilers. */
17013
17014#ifdef __STDC__
17015# include <limits.h>
17016#else
17017# include <assert.h>
17018#endif
17019
3185942a 17020#undef mbscmp
0628567a 17021
3185942a
JA
17022/* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
7117c2d2
JA
17025#ifdef __cplusplus
17026extern "C"
17027#endif
3185942a 17028char mbscmp ();
b80f6443
JA
17029/* The GNU C library defines this for functions which it implements
17030 to always fail with ENOSYS. Some functions are actually named
17031 something starting with __ and the normal name is an alias. */
3185942a 17032#if defined __stub_mbscmp || defined __stub___mbscmp
b80f6443 17033choke me
3185942a
JA
17034#endif
17035
17036int
17037main ()
17038{
17039return mbscmp ();
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044rm -f conftest.$ac_objext conftest$ac_exeext
17045if { (ac_try="$ac_link"
17046case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17049esac
17050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17051$as_echo "$ac_try_echo") >&5
17052 (eval "$ac_link") 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && {
17059 test -z "$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 } && test -s conftest$ac_exeext && {
17062 test "$cross_compiling" = yes ||
17063 $as_test_x conftest$ac_exeext
17064 }; then
17065 ac_cv_func_mbscmp=yes
17066else
17067 $as_echo "$as_me: failed program was:" >&5
17068sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_cv_func_mbscmp=no
17071fi
17072
17073rm -rf conftest.dSYM
17074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17075 conftest$ac_exeext conftest.$ac_ext
17076fi
17077{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbscmp" >&5
17078$as_echo "$ac_cv_func_mbscmp" >&6; }
17079if test "x$ac_cv_func_mbscmp" = x""yes; then
17080 cat >>confdefs.h <<\_ACEOF
17081#define HAVE_MBSCMP 1
17082_ACEOF
17083
17084fi
17085
17086{ $as_echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
17087$as_echo_n "checking for mbsrtowcs... " >&6; }
17088if test "${ac_cv_func_mbsrtowcs+set}" = set; then
17089 $as_echo_n "(cached) " >&6
17090else
17091 cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
17097/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099#define mbsrtowcs innocuous_mbsrtowcs
17100
17101/* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char mbsrtowcs (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17105
17106#ifdef __STDC__
17107# include <limits.h>
b80f6443 17108#else
3185942a 17109# include <assert.h>
0628567a 17110#endif
3185942a
JA
17111
17112#undef mbsrtowcs
17113
17114/* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
0628567a 17117#ifdef __cplusplus
3185942a
JA
17118extern "C"
17119#endif
17120char mbsrtowcs ();
17121/* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124#if defined __stub_mbsrtowcs || defined __stub___mbsrtowcs
17125choke me
b80f6443
JA
17126#endif
17127
0628567a
JA
17128int
17129main ()
17130{
3185942a 17131return mbsrtowcs ();
7117c2d2
JA
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17137if { (ac_try="$ac_link"
17138case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143$as_echo "$ac_try_echo") >&5
17144 (eval "$ac_link") 2>conftest.er1
7117c2d2 17145 ac_status=$?
0628567a
JA
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
3185942a
JA
17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest$ac_exeext && {
17154 test "$cross_compiling" = yes ||
17155 $as_test_x conftest$ac_exeext
17156 }; then
17157 ac_cv_func_mbsrtowcs=yes
f73dda09 17158else
3185942a 17159 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
3185942a 17162 ac_cv_func_mbsrtowcs=no
f73dda09 17163fi
3185942a
JA
17164
17165rm -rf conftest.dSYM
17166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17167 conftest$ac_exeext conftest.$ac_ext
f73dda09 17168fi
3185942a
JA
17169{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
17170$as_echo "$ac_cv_func_mbsrtowcs" >&6; }
17171if test "x$ac_cv_func_mbsrtowcs" = x""yes; then
b80f6443 17172 cat >>confdefs.h <<\_ACEOF
3185942a 17173#define HAVE_MBSRTOWCS 1
b80f6443 17174_ACEOF
f73dda09
JA
17175
17176fi
17177
0628567a 17178
3185942a
JA
17179{ $as_echo "$as_me:$LINENO: checking for wcrtomb" >&5
17180$as_echo_n "checking for wcrtomb... " >&6; }
0628567a 17181if test "${ac_cv_func_wcrtomb+set}" = set; then
3185942a 17182 $as_echo_n "(cached) " >&6
f73dda09
JA
17183else
17184 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
17190/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192#define wcrtomb innocuous_wcrtomb
17193
f73dda09 17194/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
17195 which can conflict with char wcrtomb (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17198
17199#ifdef __STDC__
17200# include <limits.h>
17201#else
17202# include <assert.h>
17203#endif
17204
17205#undef wcrtomb
17206
3185942a
JA
17207/* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
f73dda09
JA
17210#ifdef __cplusplus
17211extern "C"
17212#endif
0628567a 17213char wcrtomb ();
f73dda09
JA
17214/* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
3185942a 17217#if defined __stub_wcrtomb || defined __stub___wcrtomb
f73dda09 17218choke me
f73dda09
JA
17219#endif
17220
0628567a
JA
17221int
17222main ()
17223{
3185942a 17224return wcrtomb ();
f73dda09
JA
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17230if { (ac_try="$ac_link"
17231case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236$as_echo "$ac_try_echo") >&5
17237 (eval "$ac_link") 2>conftest.er1
f73dda09 17238 ac_status=$?
0628567a
JA
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
3185942a
JA
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext && {
17247 test "$cross_compiling" = yes ||
17248 $as_test_x conftest$ac_exeext
17249 }; then
0628567a 17250 ac_cv_func_wcrtomb=yes
f73dda09 17251else
3185942a 17252 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17253sed 's/^/| /' conftest.$ac_ext >&5
17254
3185942a 17255 ac_cv_func_wcrtomb=no
ccc6cda3 17256fi
3185942a
JA
17257
17258rm -rf conftest.dSYM
17259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17260 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 17261fi
3185942a
JA
17262{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
17263$as_echo "$ac_cv_func_wcrtomb" >&6; }
17264if test "x$ac_cv_func_wcrtomb" = x""yes; then
b80f6443 17265 cat >>confdefs.h <<\_ACEOF
0628567a 17266#define HAVE_WCRTOMB 1
7117c2d2 17267_ACEOF
7117c2d2
JA
17268
17269fi
7117c2d2 17270
3185942a
JA
17271{ $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
17272$as_echo_n "checking for wcscoll... " >&6; }
0628567a 17273if test "${ac_cv_func_wcscoll+set}" = set; then
3185942a 17274 $as_echo_n "(cached) " >&6
7117c2d2
JA
17275else
17276 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
17283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17284#define wcscoll innocuous_wcscoll
17285
b80f6443 17286/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
17287 which can conflict with char wcscoll (); below.
17288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17289 <limits.h> exists even on freestanding compilers. */
17290
17291#ifdef __STDC__
17292# include <limits.h>
17293#else
17294# include <assert.h>
17295#endif
17296
17297#undef wcscoll
17298
3185942a
JA
17299/* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
b80f6443
JA
17302#ifdef __cplusplus
17303extern "C"
b80f6443 17304#endif
0628567a 17305char wcscoll ();
b80f6443
JA
17306/* The GNU C library defines this for functions which it implements
17307 to always fail with ENOSYS. Some functions are actually named
17308 something starting with __ and the normal name is an alias. */
3185942a 17309#if defined __stub_wcscoll || defined __stub___wcscoll
b80f6443 17310choke me
b80f6443 17311#endif
7117c2d2 17312
0628567a
JA
17313int
17314main ()
17315{
3185942a 17316return wcscoll ();
b80f6443
JA
17317 ;
17318 return 0;
17319}
7117c2d2 17320_ACEOF
b80f6443 17321rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17322if { (ac_try="$ac_link"
17323case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326esac
17327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17328$as_echo "$ac_try_echo") >&5
17329 (eval "$ac_link") 2>conftest.er1
b80f6443 17330 ac_status=$?
0628567a
JA
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
3185942a
JA
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext && {
17339 test "$cross_compiling" = yes ||
17340 $as_test_x conftest$ac_exeext
17341 }; then
0628567a 17342 ac_cv_func_wcscoll=yes
7117c2d2 17343else
3185942a 17344 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17345sed 's/^/| /' conftest.$ac_ext >&5
17346
3185942a 17347 ac_cv_func_wcscoll=no
7117c2d2 17348fi
3185942a
JA
17349
17350rm -rf conftest.dSYM
17351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17352 conftest$ac_exeext conftest.$ac_ext
7117c2d2 17353fi
3185942a
JA
17354{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
17355$as_echo "$ac_cv_func_wcscoll" >&6; }
17356if test "x$ac_cv_func_wcscoll" = x""yes; then
b80f6443 17357 cat >>confdefs.h <<\_ACEOF
0628567a 17358#define HAVE_WCSCOLL 1
b80f6443 17359_ACEOF
7117c2d2
JA
17360
17361fi
7117c2d2 17362
3185942a
JA
17363{ $as_echo "$as_me:$LINENO: checking for wcsdup" >&5
17364$as_echo_n "checking for wcsdup... " >&6; }
0628567a 17365if test "${ac_cv_func_wcsdup+set}" = set; then
3185942a 17366 $as_echo_n "(cached) " >&6
7117c2d2
JA
17367else
17368 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17369/* confdefs.h. */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h. */
17374/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376#define wcsdup innocuous_wcsdup
17377
17378/* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char wcsdup (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17382
17383#ifdef __STDC__
17384# include <limits.h>
17385#else
17386# include <assert.h>
17387#endif
17388
17389#undef wcsdup
17390
3185942a
JA
17391/* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
7117c2d2
JA
17394#ifdef __cplusplus
17395extern "C"
17396#endif
0628567a
JA
17397char wcsdup ();
17398/* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
3185942a 17401#if defined __stub_wcsdup || defined __stub___wcsdup
0628567a 17402choke me
95732b49 17403#endif
0628567a 17404
95732b49
JA
17405int
17406main ()
17407{
3185942a 17408return wcsdup ();
0628567a
JA
17409 ;
17410 return 0;
17411}
17412_ACEOF
17413rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17414if { (ac_try="$ac_link"
17415case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418esac
17419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17420$as_echo "$ac_try_echo") >&5
17421 (eval "$ac_link") 2>conftest.er1
0628567a
JA
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
3185942a
JA
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext && {
17431 test "$cross_compiling" = yes ||
17432 $as_test_x conftest$ac_exeext
17433 }; then
0628567a
JA
17434 ac_cv_func_wcsdup=yes
17435else
3185942a 17436 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
3185942a 17439 ac_cv_func_wcsdup=no
0628567a 17440fi
3185942a
JA
17441
17442rm -rf conftest.dSYM
17443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
17444 conftest$ac_exeext conftest.$ac_ext
17445fi
3185942a
JA
17446{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
17447$as_echo "$ac_cv_func_wcsdup" >&6; }
17448if test "x$ac_cv_func_wcsdup" = x""yes; then
0628567a
JA
17449 cat >>confdefs.h <<\_ACEOF
17450#define HAVE_WCSDUP 1
17451_ACEOF
17452
17453fi
17454
3185942a
JA
17455{ $as_echo "$as_me:$LINENO: checking for wcwidth" >&5
17456$as_echo_n "checking for wcwidth... " >&6; }
0628567a 17457if test "${ac_cv_func_wcwidth+set}" = set; then
3185942a 17458 $as_echo_n "(cached) " >&6
0628567a
JA
17459else
17460 cat >conftest.$ac_ext <<_ACEOF
17461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
17466/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468#define wcwidth innocuous_wcwidth
17469
17470/* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char wcwidth (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17474
17475#ifdef __STDC__
17476# include <limits.h>
17477#else
17478# include <assert.h>
17479#endif
17480
17481#undef wcwidth
17482
3185942a
JA
17483/* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
0628567a
JA
17486#ifdef __cplusplus
17487extern "C"
0628567a 17488#endif
0628567a 17489char wcwidth ();
7117c2d2
JA
17490/* The GNU C library defines this for functions which it implements
17491 to always fail with ENOSYS. Some functions are actually named
17492 something starting with __ and the normal name is an alias. */
3185942a 17493#if defined __stub_wcwidth || defined __stub___wcwidth
7117c2d2 17494choke me
7117c2d2
JA
17495#endif
17496
0628567a
JA
17497int
17498main ()
17499{
3185942a 17500return wcwidth ();
7117c2d2
JA
17501 ;
17502 return 0;
17503}
17504_ACEOF
17505rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17506if { (ac_try="$ac_link"
17507case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17512$as_echo "$ac_try_echo") >&5
17513 (eval "$ac_link") 2>conftest.er1
7117c2d2 17514 ac_status=$?
0628567a
JA
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
3185942a
JA
17518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && {
17520 test -z "$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 } && test -s conftest$ac_exeext && {
17523 test "$cross_compiling" = yes ||
17524 $as_test_x conftest$ac_exeext
17525 }; then
b80f6443 17526 ac_cv_func_wcwidth=yes
7117c2d2 17527else
3185942a 17528 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17529sed 's/^/| /' conftest.$ac_ext >&5
17530
3185942a 17531 ac_cv_func_wcwidth=no
7117c2d2 17532fi
3185942a
JA
17533
17534rm -rf conftest.dSYM
17535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 17536 conftest$ac_exeext conftest.$ac_ext
7117c2d2 17537fi
3185942a
JA
17538{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
17539$as_echo "$ac_cv_func_wcwidth" >&6; }
17540if test "x$ac_cv_func_wcwidth" = x""yes; then
b80f6443
JA
17541 cat >>confdefs.h <<\_ACEOF
17542#define HAVE_WCWIDTH 1
17543_ACEOF
7117c2d2
JA
17544
17545fi
17546
3185942a
JA
17547{ $as_echo "$as_me:$LINENO: checking for wctype" >&5
17548$as_echo_n "checking for wctype... " >&6; }
0628567a 17549if test "${ac_cv_func_wctype+set}" = set; then
3185942a 17550 $as_echo_n "(cached) " >&6
7117c2d2
JA
17551else
17552 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
17558/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
17559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17560#define wctype innocuous_wctype
17561
7117c2d2 17562/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
17563 which can conflict with char wctype (); below.
17564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565 <limits.h> exists even on freestanding compilers. */
17566
17567#ifdef __STDC__
17568# include <limits.h>
17569#else
17570# include <assert.h>
17571#endif
17572
17573#undef wctype
17574
3185942a
JA
17575/* Override any GCC internal prototype to avoid an error.
17576 Use char because int might match the return type of a GCC
17577 builtin and then its argument prototype would still apply. */
7117c2d2
JA
17578#ifdef __cplusplus
17579extern "C"
17580#endif
0628567a
JA
17581char wctype ();
17582/* The GNU C library defines this for functions which it implements
17583 to always fail with ENOSYS. Some functions are actually named
17584 something starting with __ and the normal name is an alias. */
3185942a 17585#if defined __stub_wctype || defined __stub___wctype
0628567a 17586choke me
0628567a
JA
17587#endif
17588
95732b49
JA
17589int
17590main ()
17591{
3185942a 17592return wctype ();
0628567a
JA
17593 ;
17594 return 0;
17595}
17596_ACEOF
17597rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17598if { (ac_try="$ac_link"
17599case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602esac
17603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17604$as_echo "$ac_try_echo") >&5
17605 (eval "$ac_link") 2>conftest.er1
0628567a
JA
17606 ac_status=$?
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
3185942a
JA
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest$ac_exeext && {
17615 test "$cross_compiling" = yes ||
17616 $as_test_x conftest$ac_exeext
17617 }; then
0628567a
JA
17618 ac_cv_func_wctype=yes
17619else
3185942a 17620 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
3185942a 17623 ac_cv_func_wctype=no
0628567a 17624fi
3185942a
JA
17625
17626rm -rf conftest.dSYM
17627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
17628 conftest$ac_exeext conftest.$ac_ext
17629fi
3185942a
JA
17630{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
17631$as_echo "$ac_cv_func_wctype" >&6; }
17632if test "x$ac_cv_func_wctype" = x""yes; then
0628567a
JA
17633 cat >>confdefs.h <<\_ACEOF
17634#define HAVE_WCTYPE 1
17635_ACEOF
17636
17637fi
17638
17639
17640
3185942a
JA
17641 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
17642$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
0628567a 17643if test "${ac_cv_func_mbrtowc+set}" = set; then
3185942a 17644 $as_echo_n "(cached) " >&6
0628567a
JA
17645else
17646 cat >conftest.$ac_ext <<_ACEOF
17647/* confdefs.h. */
17648_ACEOF
17649cat confdefs.h >>conftest.$ac_ext
17650cat >>conftest.$ac_ext <<_ACEOF
17651/* end confdefs.h. */
17652#include <wchar.h>
17653int
17654main ()
17655{
3185942a
JA
17656wchar_t wc;
17657 char const s[] = "";
17658 size_t n = 1;
17659 mbstate_t state;
17660 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
0628567a
JA
17661 ;
17662 return 0;
17663}
17664_ACEOF
17665rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17666if { (ac_try="$ac_link"
17667case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670esac
17671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17672$as_echo "$ac_try_echo") >&5
17673 (eval "$ac_link") 2>conftest.er1
0628567a
JA
17674 ac_status=$?
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
3185942a
JA
17678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest$ac_exeext && {
17683 test "$cross_compiling" = yes ||
17684 $as_test_x conftest$ac_exeext
17685 }; then
0628567a
JA
17686 ac_cv_func_mbrtowc=yes
17687else
3185942a 17688 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17689sed 's/^/| /' conftest.$ac_ext >&5
17690
3185942a 17691 ac_cv_func_mbrtowc=no
0628567a 17692fi
3185942a
JA
17693
17694rm -rf conftest.dSYM
17695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
17696 conftest$ac_exeext conftest.$ac_ext
17697fi
3185942a
JA
17698{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
17699$as_echo "$ac_cv_func_mbrtowc" >&6; }
0628567a
JA
17700 if test $ac_cv_func_mbrtowc = yes; then
17701
17702cat >>confdefs.h <<\_ACEOF
17703#define HAVE_MBRTOWC 1
17704_ACEOF
17705
17706 fi
17707
17708if test $ac_cv_func_mbrtowc = yes; then
17709 cat >>confdefs.h <<\_ACEOF
17710#define HAVE_MBSTATE_T 1
17711_ACEOF
17712
17713fi
17714
17715
17716
17717
17718
17719
17720for ac_func in iswlower iswupper towlower towupper iswctype
17721do
3185942a
JA
17722as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17723{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17724$as_echo_n "checking for $ac_func... " >&6; }
17725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17726 $as_echo_n "(cached) " >&6
0628567a
JA
17727else
17728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17736#define $ac_func innocuous_$ac_func
17737
17738/* System header to define __stub macros and hopefully few prototypes,
17739 which can conflict with char $ac_func (); below.
17740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17741 <limits.h> exists even on freestanding compilers. */
17742
17743#ifdef __STDC__
17744# include <limits.h>
17745#else
17746# include <assert.h>
17747#endif
17748
17749#undef $ac_func
17750
3185942a
JA
17751/* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
0628567a
JA
17754#ifdef __cplusplus
17755extern "C"
0628567a 17756#endif
0628567a 17757char $ac_func ();
7117c2d2
JA
17758/* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
3185942a 17761#if defined __stub_$ac_func || defined __stub___$ac_func
7117c2d2 17762choke me
7117c2d2
JA
17763#endif
17764
0628567a
JA
17765int
17766main ()
17767{
3185942a 17768return $ac_func ();
0628567a
JA
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17774if { (ac_try="$ac_link"
17775case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17780$as_echo "$ac_try_echo") >&5
17781 (eval "$ac_link") 2>conftest.er1
0628567a
JA
17782 ac_status=$?
17783 grep -v '^ *+' conftest.er1 >conftest.err
17784 rm -f conftest.er1
17785 cat conftest.err >&5
3185942a
JA
17786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest$ac_exeext && {
17791 test "$cross_compiling" = yes ||
17792 $as_test_x conftest$ac_exeext
17793 }; then
0628567a
JA
17794 eval "$as_ac_var=yes"
17795else
3185942a 17796 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
3185942a 17799 eval "$as_ac_var=no"
0628567a 17800fi
3185942a
JA
17801
17802rm -rf conftest.dSYM
17803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
17804 conftest$ac_exeext conftest.$ac_ext
17805fi
3185942a
JA
17806ac_res=`eval 'as_val=${'$as_ac_var'}
17807 $as_echo "$as_val"'`
17808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17809$as_echo "$ac_res" >&6; }
17810as_val=`eval 'as_val=${'$as_ac_var'}
17811 $as_echo "$as_val"'`
17812 if test "x$as_val" = x""yes; then
0628567a 17813 cat >>confdefs.h <<_ACEOF
3185942a 17814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
0628567a
JA
17815_ACEOF
17816
17817fi
17818done
17819
17820
3185942a
JA
17821{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17822$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
0628567a 17823if test "${bash_cv_langinfo_codeset+set}" = set; then
3185942a 17824 $as_echo_n "(cached) " >&6
0628567a
JA
17825else
17826 cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832#include <langinfo.h>
17833int
17834main ()
17835{
17836char* cs = nl_langinfo(CODESET);
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
17842if { (ac_try="$ac_link"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17848$as_echo "$ac_try_echo") >&5
17849 (eval "$ac_link") 2>conftest.er1
0628567a
JA
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
3185942a
JA
17854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest$ac_exeext && {
17859 test "$cross_compiling" = yes ||
17860 $as_test_x conftest$ac_exeext
17861 }; then
0628567a
JA
17862 bash_cv_langinfo_codeset=yes
17863else
3185942a 17864 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
3185942a 17867 bash_cv_langinfo_codeset=no
0628567a 17868fi
3185942a
JA
17869
17870rm -rf conftest.dSYM
17871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a
JA
17872 conftest$ac_exeext conftest.$ac_ext
17873fi
3185942a
JA
17874{ $as_echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
17875$as_echo "$bash_cv_langinfo_codeset" >&6; }
0628567a
JA
17876if test $bash_cv_langinfo_codeset = yes; then
17877 cat >>confdefs.h <<\_ACEOF
17878#define HAVE_LANGINFO_CODESET 1
17879_ACEOF
17880
17881fi
17882
3185942a
JA
17883{ $as_echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
17884$as_echo_n "checking for wchar_t in wchar.h... " >&6; }
0628567a 17885if test "${bash_cv_type_wchar_t+set}" = set; then
3185942a 17886 $as_echo_n "(cached) " >&6
0628567a
JA
17887else
17888 cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h. */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h. */
17894#include <wchar.h>
17895
17896int
17897main ()
17898{
17899
17900 wchar_t foo;
17901 foo = 0;
17902
7117c2d2
JA
17903 ;
17904 return 0;
17905}
17906_ACEOF
0628567a 17907rm -f conftest.$ac_objext
3185942a
JA
17908if { (ac_try="$ac_compile"
17909case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912esac
17913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17914$as_echo "$ac_try_echo") >&5
17915 (eval "$ac_compile") 2>conftest.er1
7117c2d2 17916 ac_status=$?
0628567a
JA
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
3185942a
JA
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest.$ac_objext; then
0628567a 17925 bash_cv_type_wchar_t=yes
7117c2d2 17926else
3185942a 17927 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
3185942a 17930 bash_cv_type_wchar_t=no
7117c2d2 17931fi
3185942a
JA
17932
17933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 17934fi
3185942a
JA
17935{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
17936$as_echo "$bash_cv_type_wchar_t" >&6; }
0628567a
JA
17937if test $bash_cv_type_wchar_t = yes; then
17938
17939cat >>confdefs.h <<\_ACEOF
17940#define HAVE_WCHAR_T 1
b80f6443 17941_ACEOF
7117c2d2
JA
17942
17943fi
17944
3185942a
JA
17945{ $as_echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
17946$as_echo_n "checking for wctype_t in wctype.h... " >&6; }
0628567a 17947if test "${bash_cv_type_wctype_t+set}" = set; then
3185942a 17948 $as_echo_n "(cached) " >&6
7117c2d2
JA
17949else
17950 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
17951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
17956#include <wctype.h>
7117c2d2
JA
17957int
17958main ()
17959{
b80f6443 17960
0628567a
JA
17961 wctype_t foo;
17962 foo = 0;
b80f6443
JA
17963
17964 ;
7117c2d2
JA
17965 return 0;
17966}
17967_ACEOF
b80f6443 17968rm -f conftest.$ac_objext
3185942a
JA
17969if { (ac_try="$ac_compile"
17970case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973esac
17974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17975$as_echo "$ac_try_echo") >&5
17976 (eval "$ac_compile") 2>conftest.er1
7117c2d2 17977 ac_status=$?
0628567a
JA
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
3185942a
JA
17981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } && {
17983 test -z "$ac_c_werror_flag" ||
17984 test ! -s conftest.err
17985 } && test -s conftest.$ac_objext; then
0628567a 17986 bash_cv_type_wctype_t=yes
7117c2d2 17987else
3185942a 17988 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
3185942a 17991 bash_cv_type_wctype_t=no
7117c2d2 17992fi
3185942a
JA
17993
17994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 17995fi
3185942a
JA
17996{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
17997$as_echo "$bash_cv_type_wctype_t" >&6; }
0628567a
JA
17998if test $bash_cv_type_wctype_t = yes; then
17999
18000cat >>confdefs.h <<\_ACEOF
18001#define HAVE_WCTYPE_T 1
b80f6443 18002_ACEOF
7117c2d2
JA
18003
18004fi
18005
3185942a
JA
18006{ $as_echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
18007$as_echo_n "checking for wint_t in wctype.h... " >&6; }
0628567a 18008if test "${bash_cv_type_wint_t+set}" = set; then
3185942a 18009 $as_echo_n "(cached) " >&6
7117c2d2
JA
18010else
18011 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18012/* confdefs.h. */
18013_ACEOF
18014cat confdefs.h >>conftest.$ac_ext
18015cat >>conftest.$ac_ext <<_ACEOF
18016/* end confdefs.h. */
18017#include <wctype.h>
7117c2d2
JA
18018int
18019main ()
18020{
0628567a
JA
18021
18022 wint_t foo;
18023 foo = 0;
18024
7117c2d2
JA
18025 ;
18026 return 0;
18027}
18028_ACEOF
0628567a 18029rm -f conftest.$ac_objext
3185942a
JA
18030if { (ac_try="$ac_compile"
18031case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034esac
18035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18036$as_echo "$ac_try_echo") >&5
18037 (eval "$ac_compile") 2>conftest.er1
7117c2d2 18038 ac_status=$?
0628567a
JA
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
3185942a
JA
18042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } && {
18044 test -z "$ac_c_werror_flag" ||
18045 test ! -s conftest.err
18046 } && test -s conftest.$ac_objext; then
0628567a 18047 bash_cv_type_wint_t=yes
7117c2d2 18048else
3185942a 18049 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18050sed 's/^/| /' conftest.$ac_ext >&5
18051
3185942a 18052 bash_cv_type_wint_t=no
7117c2d2 18053fi
3185942a
JA
18054
18055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 18056fi
3185942a
JA
18057{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
18058$as_echo "$bash_cv_type_wint_t" >&6; }
0628567a
JA
18059if test $bash_cv_type_wint_t = yes; then
18060
18061cat >>confdefs.h <<\_ACEOF
18062#define HAVE_WINT_T 1
b80f6443 18063_ACEOF
7117c2d2
JA
18064
18065fi
18066
b80f6443
JA
18067
18068
f73dda09
JA
18069if test "$opt_static_link" != yes; then
18070
3185942a
JA
18071{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18072$as_echo_n "checking for dlopen in -ldl... " >&6; }
f73dda09 18073if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3185942a 18074 $as_echo_n "(cached) " >&6
ccc6cda3 18075else
f73dda09
JA
18076 ac_check_lib_save_LIBS=$LIBS
18077LIBS="-ldl $LIBS"
18078cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
f73dda09 18084
3185942a
JA
18085/* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
f73dda09
JA
18088#ifdef __cplusplus
18089extern "C"
18090#endif
f73dda09
JA
18091char dlopen ();
18092int
18093main ()
18094{
3185942a 18095return dlopen ();
f73dda09
JA
18096 ;
18097 return 0;
18098}
18099_ACEOF
18100rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18101if { (ac_try="$ac_link"
18102case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18107$as_echo "$ac_try_echo") >&5
18108 (eval "$ac_link") 2>conftest.er1
f73dda09 18109 ac_status=$?
0628567a
JA
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
3185942a
JA
18113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } && {
18115 test -z "$ac_c_werror_flag" ||
18116 test ! -s conftest.err
18117 } && test -s conftest$ac_exeext && {
18118 test "$cross_compiling" = yes ||
18119 $as_test_x conftest$ac_exeext
18120 }; then
f73dda09
JA
18121 ac_cv_lib_dl_dlopen=yes
18122else
3185942a 18123 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
3185942a 18126 ac_cv_lib_dl_dlopen=no
f73dda09 18127fi
3185942a
JA
18128
18129rm -rf conftest.dSYM
18130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18131 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
18132LIBS=$ac_check_lib_save_LIBS
18133fi
3185942a
JA
18134{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18135$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18136if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
b80f6443 18137 cat >>confdefs.h <<_ACEOF
f73dda09 18138#define HAVE_LIBDL 1
b80f6443 18139_ACEOF
f73dda09
JA
18140
18141 LIBS="-ldl $LIBS"
18142
ccc6cda3 18143fi
ccc6cda3 18144
b80f6443
JA
18145
18146
18147
f73dda09 18148for ac_func in dlopen dlclose dlsym
bb70624e 18149do
3185942a
JA
18150as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18151{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18152$as_echo_n "checking for $ac_func... " >&6; }
18153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18154 $as_echo_n "(cached) " >&6
bb70624e 18155else
f73dda09 18156 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18164#define $ac_func innocuous_$ac_func
18165
f73dda09 18166/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
18167 which can conflict with char $ac_func (); below.
18168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18169 <limits.h> exists even on freestanding compilers. */
18170
18171#ifdef __STDC__
18172# include <limits.h>
18173#else
18174# include <assert.h>
18175#endif
18176
18177#undef $ac_func
18178
3185942a
JA
18179/* Override any GCC internal prototype to avoid an error.
18180 Use char because int might match the return type of a GCC
18181 builtin and then its argument prototype would still apply. */
f73dda09
JA
18182#ifdef __cplusplus
18183extern "C"
18184#endif
f73dda09 18185char $ac_func ();
f73dda09
JA
18186/* The GNU C library defines this for functions which it implements
18187 to always fail with ENOSYS. Some functions are actually named
18188 something starting with __ and the normal name is an alias. */
3185942a 18189#if defined __stub_$ac_func || defined __stub___$ac_func
f73dda09 18190choke me
f73dda09
JA
18191#endif
18192
0628567a
JA
18193int
18194main ()
18195{
3185942a 18196return $ac_func ();
f73dda09
JA
18197 ;
18198 return 0;
18199}
18200_ACEOF
18201rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18202if { (ac_try="$ac_link"
18203case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18206esac
18207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18208$as_echo "$ac_try_echo") >&5
18209 (eval "$ac_link") 2>conftest.er1
f73dda09 18210 ac_status=$?
0628567a
JA
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
3185942a
JA
18214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } && {
18216 test -z "$ac_c_werror_flag" ||
18217 test ! -s conftest.err
18218 } && test -s conftest$ac_exeext && {
18219 test "$cross_compiling" = yes ||
18220 $as_test_x conftest$ac_exeext
18221 }; then
f73dda09
JA
18222 eval "$as_ac_var=yes"
18223else
3185942a 18224 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18225sed 's/^/| /' conftest.$ac_ext >&5
18226
3185942a 18227 eval "$as_ac_var=no"
f73dda09 18228fi
3185942a
JA
18229
18230rm -rf conftest.dSYM
18231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18232 conftest$ac_exeext conftest.$ac_ext
f73dda09 18233fi
3185942a
JA
18234ac_res=`eval 'as_val=${'$as_ac_var'}
18235 $as_echo "$as_val"'`
18236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18237$as_echo "$ac_res" >&6; }
18238as_val=`eval 'as_val=${'$as_ac_var'}
18239 $as_echo "$as_val"'`
18240 if test "x$as_val" = x""yes; then
b80f6443 18241 cat >>confdefs.h <<_ACEOF
3185942a 18242#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b80f6443 18243_ACEOF
f73dda09 18244
bb70624e 18245fi
f73dda09
JA
18246done
18247
bb70624e 18248fi
f73dda09 18249
3185942a
JA
18250{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18251$as_echo_n "checking whether sys_siglist is declared... " >&6; }
0628567a 18252if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
3185942a 18253 $as_echo_n "(cached) " >&6
f73dda09
JA
18254else
18255 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18256/* confdefs.h. */
18257_ACEOF
18258cat confdefs.h >>conftest.$ac_ext
18259cat >>conftest.$ac_ext <<_ACEOF
18260/* end confdefs.h. */
95732b49
JA
18261#include <signal.h>
18262/* NetBSD declares sys_siglist in unistd.h. */
3185942a 18263#ifdef HAVE_UNISTD_H
95732b49
JA
18264# include <unistd.h>
18265#endif
18266
0628567a 18267
f73dda09
JA
18268int
18269main ()
18270{
0628567a 18271#ifndef sys_siglist
3185942a 18272 (void) sys_siglist;
0628567a
JA
18273#endif
18274
f73dda09
JA
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext
3185942a
JA
18280if { (ac_try="$ac_compile"
18281case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284esac
18285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18286$as_echo "$ac_try_echo") >&5
18287 (eval "$ac_compile") 2>conftest.er1
f73dda09 18288 ac_status=$?
0628567a
JA
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
3185942a
JA
18292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest.$ac_objext; then
0628567a 18297 ac_cv_have_decl_sys_siglist=yes
bb70624e 18298else
3185942a 18299 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
3185942a 18302 ac_cv_have_decl_sys_siglist=no
bb70624e 18303fi
3185942a
JA
18304
18305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18306fi
3185942a
JA
18307{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18308$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
18309if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
b80f6443 18310
0628567a
JA
18311cat >>confdefs.h <<_ACEOF
18312#define HAVE_DECL_SYS_SIGLIST 1
18313_ACEOF
18314
18315
18316else
18317 cat >>confdefs.h <<_ACEOF
18318#define HAVE_DECL_SYS_SIGLIST 0
b80f6443 18319_ACEOF
bb70624e 18320
0628567a 18321
f73dda09 18322fi
bb70624e 18323
b80f6443 18324
0628567a
JA
18325
18326
bb70624e
JA
18327if test "$ac_cv_func_inet_aton" != 'yes'; then
18328
3185942a
JA
18329{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
18330$as_echo_n "checking for inet_aton... " >&6; }
f73dda09 18331if test "${bash_cv_func_inet_aton+set}" = set; then
3185942a 18332 $as_echo_n "(cached) " >&6
bb70624e 18333else
f73dda09 18334 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18335/* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h. */
bb70624e
JA
18340
18341#include <sys/types.h>
18342#include <netinet/in.h>
18343#include <arpa/inet.h>
18344struct in_addr ap;
f73dda09
JA
18345int
18346main ()
18347{
18348 inet_aton("127.0.0.1", &ap);
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18354if { (ac_try="$ac_link"
18355case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358esac
18359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360$as_echo "$ac_try_echo") >&5
18361 (eval "$ac_link") 2>conftest.er1
f73dda09 18362 ac_status=$?
0628567a
JA
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
3185942a
JA
18366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest$ac_exeext && {
18371 test "$cross_compiling" = yes ||
18372 $as_test_x conftest$ac_exeext
18373 }; then
bb70624e
JA
18374 bash_cv_func_inet_aton=yes
18375else
3185942a 18376 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18377sed 's/^/| /' conftest.$ac_ext >&5
18378
3185942a 18379 bash_cv_func_inet_aton=no
bb70624e 18380fi
3185942a
JA
18381
18382rm -rf conftest.dSYM
18383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18384 conftest$ac_exeext conftest.$ac_ext
bb70624e 18385fi
3185942a
JA
18386{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
18387$as_echo "$bash_cv_func_inet_aton" >&6; }
bb70624e 18388if test $bash_cv_func_inet_aton = yes; then
b80f6443 18389 cat >>confdefs.h <<\_ACEOF
bb70624e 18390#define HAVE_INET_ATON 1
b80f6443 18391_ACEOF
bb70624e 18392
f73dda09 18393else
3185942a 18394 case " $LIBOBJS " in
0628567a 18395 *" inet_aton.$ac_objext "* ) ;;
3185942a
JA
18396 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18397 ;;
0628567a
JA
18398esac
18399
bb70624e
JA
18400fi
18401
18402fi
18403
18404case "$host_os" in
f73dda09 18405irix4*)
3185942a
JA
18406{ $as_echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
18407$as_echo_n "checking for getpwent in -lsun... " >&6; }
f73dda09 18408if test "${ac_cv_lib_sun_getpwent+set}" = set; then
3185942a 18409 $as_echo_n "(cached) " >&6
bb70624e 18410else
f73dda09 18411 ac_check_lib_save_LIBS=$LIBS
bb70624e 18412LIBS="-lsun $LIBS"
f73dda09 18413cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
f73dda09 18419
3185942a
JA
18420/* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
f73dda09
JA
18423#ifdef __cplusplus
18424extern "C"
18425#endif
f73dda09
JA
18426char getpwent ();
18427int
18428main ()
18429{
3185942a 18430return getpwent ();
f73dda09
JA
18431 ;
18432 return 0;
18433}
18434_ACEOF
18435rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18436if { (ac_try="$ac_link"
18437case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440esac
18441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18442$as_echo "$ac_try_echo") >&5
18443 (eval "$ac_link") 2>conftest.er1
f73dda09 18444 ac_status=$?
0628567a
JA
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
3185942a
JA
18448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext && {
18453 test "$cross_compiling" = yes ||
18454 $as_test_x conftest$ac_exeext
18455 }; then
f73dda09
JA
18456 ac_cv_lib_sun_getpwent=yes
18457else
3185942a 18458 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18459sed 's/^/| /' conftest.$ac_ext >&5
18460
3185942a 18461 ac_cv_lib_sun_getpwent=no
f73dda09 18462fi
3185942a
JA
18463
18464rm -rf conftest.dSYM
18465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18466 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
18467LIBS=$ac_check_lib_save_LIBS
18468fi
3185942a
JA
18469{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
18470$as_echo "$ac_cv_lib_sun_getpwent" >&6; }
18471if test "x$ac_cv_lib_sun_getpwent" = x""yes; then
b80f6443 18472 cat >>confdefs.h <<_ACEOF
f73dda09 18473#define HAVE_LIBSUN 1
b80f6443 18474_ACEOF
bb70624e
JA
18475
18476 LIBS="-lsun $LIBS"
18477
bb70624e
JA
18478fi
18479 ;;
18480esac
ccc6cda3 18481
d166f048 18482if test "$ac_cv_func_getpeername" = no; then
f73dda09 18483
ccc6cda3
JA
18484if test "X$bash_cv_have_socklib" = "X"; then
18485_bash_needmsg=
18486else
3185942a
JA
18487{ $as_echo "$as_me:$LINENO: checking for socket library" >&5
18488$as_echo_n "checking for socket library... " >&6; }
ccc6cda3
JA
18489_bash_needmsg=yes
18490fi
f73dda09 18491if test "${bash_cv_have_socklib+set}" = set; then
3185942a 18492 $as_echo_n "(cached) " >&6
ccc6cda3 18493else
3185942a
JA
18494 { $as_echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
18495$as_echo_n "checking for getpeername in -lsocket... " >&6; }
f73dda09 18496if test "${ac_cv_lib_socket_getpeername+set}" = set; then
3185942a 18497 $as_echo_n "(cached) " >&6
ccc6cda3 18498else
f73dda09 18499 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 18500LIBS="-lsocket -lnsl $LIBS"
f73dda09 18501cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18502/* confdefs.h. */
18503_ACEOF
18504cat confdefs.h >>conftest.$ac_ext
18505cat >>conftest.$ac_ext <<_ACEOF
18506/* end confdefs.h. */
f73dda09 18507
3185942a
JA
18508/* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
f73dda09
JA
18511#ifdef __cplusplus
18512extern "C"
18513#endif
f73dda09
JA
18514char getpeername ();
18515int
18516main ()
18517{
3185942a 18518return getpeername ();
f73dda09
JA
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18524if { (ac_try="$ac_link"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18530$as_echo "$ac_try_echo") >&5
18531 (eval "$ac_link") 2>conftest.er1
f73dda09 18532 ac_status=$?
0628567a
JA
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
3185942a
JA
18536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest$ac_exeext && {
18541 test "$cross_compiling" = yes ||
18542 $as_test_x conftest$ac_exeext
18543 }; then
f73dda09
JA
18544 ac_cv_lib_socket_getpeername=yes
18545else
3185942a 18546 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18547sed 's/^/| /' conftest.$ac_ext >&5
18548
3185942a 18549 ac_cv_lib_socket_getpeername=no
f73dda09 18550fi
3185942a
JA
18551
18552rm -rf conftest.dSYM
18553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18554 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
18555LIBS=$ac_check_lib_save_LIBS
18556fi
3185942a
JA
18557{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
18558$as_echo "$ac_cv_lib_socket_getpeername" >&6; }
18559if test "x$ac_cv_lib_socket_getpeername" = x""yes; then
ccc6cda3
JA
18560 bash_cv_have_socklib=yes
18561else
f73dda09 18562 bash_cv_have_socklib=no
ccc6cda3
JA
18563fi
18564
18565fi
18566
18567if test "X$_bash_needmsg" = Xyes; then
3185942a
JA
18568 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
18569$as_echo "$bash_cv_have_socklib" >&6; }
ccc6cda3
JA
18570 _bash_needmsg=
18571fi
18572if test $bash_cv_have_socklib = yes; then
18573 # check for libnsl, add it to LIBS if present
18574 if test "X$bash_cv_have_libnsl" = "X"; then
18575 _bash_needmsg=
18576 else
3185942a
JA
18577 { $as_echo "$as_me:$LINENO: checking for libnsl" >&5
18578$as_echo_n "checking for libnsl... " >&6; }
ccc6cda3
JA
18579 _bash_needmsg=yes
18580 fi
f73dda09 18581 if test "${bash_cv_have_libnsl+set}" = set; then
3185942a 18582 $as_echo_n "(cached) " >&6
ccc6cda3 18583else
3185942a
JA
18584 { $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
18585$as_echo_n "checking for t_open in -lnsl... " >&6; }
f73dda09 18586if test "${ac_cv_lib_nsl_t_open+set}" = set; then
3185942a 18587 $as_echo_n "(cached) " >&6
ccc6cda3 18588else
f73dda09 18589 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 18590LIBS="-lnsl $LIBS"
f73dda09 18591cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
f73dda09 18597
3185942a
JA
18598/* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
f73dda09
JA
18601#ifdef __cplusplus
18602extern "C"
18603#endif
f73dda09
JA
18604char t_open ();
18605int
18606main ()
18607{
3185942a 18608return t_open ();
f73dda09
JA
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18614if { (ac_try="$ac_link"
18615case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18620$as_echo "$ac_try_echo") >&5
18621 (eval "$ac_link") 2>conftest.er1
f73dda09 18622 ac_status=$?
0628567a
JA
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
3185942a
JA
18626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && {
18628 test -z "$ac_c_werror_flag" ||
18629 test ! -s conftest.err
18630 } && test -s conftest$ac_exeext && {
18631 test "$cross_compiling" = yes ||
18632 $as_test_x conftest$ac_exeext
18633 }; then
f73dda09
JA
18634 ac_cv_lib_nsl_t_open=yes
18635else
3185942a 18636 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18637sed 's/^/| /' conftest.$ac_ext >&5
18638
3185942a 18639 ac_cv_lib_nsl_t_open=no
f73dda09 18640fi
3185942a
JA
18641
18642rm -rf conftest.dSYM
18643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18644 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
18645LIBS=$ac_check_lib_save_LIBS
18646fi
3185942a
JA
18647{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
18648$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
18649if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
ccc6cda3
JA
18650 bash_cv_have_libnsl=yes
18651else
f73dda09 18652 bash_cv_have_libnsl=no
ccc6cda3
JA
18653fi
18654
18655fi
18656
18657 if test "X$_bash_needmsg" = Xyes; then
3185942a
JA
18658 { $as_echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
18659$as_echo "$bash_cv_have_libnsl" >&6; }
ccc6cda3
JA
18660 _bash_needmsg=
18661 fi
18662 if test $bash_cv_have_libnsl = yes; then
18663 LIBS="-lsocket -lnsl $LIBS"
18664 else
18665 LIBS="-lsocket $LIBS"
18666 fi
b80f6443 18667 cat >>confdefs.h <<\_ACEOF
ccc6cda3 18668#define HAVE_LIBSOCKET 1
b80f6443 18669_ACEOF
ccc6cda3 18670
b80f6443 18671 cat >>confdefs.h <<\_ACEOF
ccc6cda3 18672#define HAVE_GETPEERNAME 1
b80f6443 18673_ACEOF
ccc6cda3
JA
18674
18675fi
18676
bb70624e
JA
18677fi
18678if test "$ac_cv_func_gethostbyname" = no; then
18679 if test "X$bash_cv_have_gethostbyname" = "X"; then
18680_bash_needmsg=yes
18681else
3185942a
JA
18682{ $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18683$as_echo_n "checking for gethostbyname in socket library... " >&6; }
bb70624e
JA
18684_bash_needmsg=
18685fi
f73dda09 18686if test "${bash_cv_have_gethostbyname+set}" = set; then
3185942a 18687 $as_echo_n "(cached) " >&6
bb70624e 18688else
f73dda09 18689 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18690/* confdefs.h. */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
18694/* end confdefs.h. */
bb70624e 18695#include <netdb.h>
f73dda09
JA
18696int
18697main ()
18698{
bb70624e
JA
18699 struct hostent *hp;
18700 hp = gethostbyname("localhost");
18701
f73dda09
JA
18702 ;
18703 return 0;
18704}
18705_ACEOF
18706rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
18707if { (ac_try="$ac_link"
18708case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18711esac
18712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18713$as_echo "$ac_try_echo") >&5
18714 (eval "$ac_link") 2>conftest.er1
f73dda09 18715 ac_status=$?
0628567a
JA
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
3185942a
JA
18719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext && {
18724 test "$cross_compiling" = yes ||
18725 $as_test_x conftest$ac_exeext
18726 }; then
bb70624e
JA
18727 bash_cv_have_gethostbyname=yes
18728else
3185942a 18729 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18730sed 's/^/| /' conftest.$ac_ext >&5
18731
3185942a 18732 bash_cv_have_gethostbyname=no
f73dda09 18733fi
3185942a
JA
18734
18735rm -rf conftest.dSYM
18736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 18737 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
18738
18739fi
18740
18741if test "X$_bash_needmsg" = Xyes; then
3185942a
JA
18742 { $as_echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
18743$as_echo_n "checking for gethostbyname in socket library... " >&6; }
f73dda09 18744fi
3185942a
JA
18745{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
18746$as_echo "$bash_cv_have_gethostbyname" >&6; }
f73dda09 18747if test "$bash_cv_have_gethostbyname" = yes; then
b80f6443 18748cat >>confdefs.h <<\_ACEOF
f73dda09 18749#define HAVE_GETHOSTBYNAME 1
b80f6443 18750_ACEOF
f73dda09
JA
18751
18752fi
18753
18754fi
18755
3185942a
JA
18756{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18757$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
f73dda09 18758if test "${ac_cv_type_uid_t+set}" = set; then
3185942a 18759 $as_echo_n "(cached) " >&6
f73dda09
JA
18760else
18761 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
f73dda09
JA
18767#include <sys/types.h>
18768
18769_ACEOF
18770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 18771 $EGREP "uid_t" >/dev/null 2>&1; then
f73dda09
JA
18772 ac_cv_type_uid_t=yes
18773else
18774 ac_cv_type_uid_t=no
18775fi
18776rm -f conftest*
18777
18778fi
3185942a
JA
18779{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18780$as_echo "$ac_cv_type_uid_t" >&6; }
f73dda09
JA
18781if test $ac_cv_type_uid_t = no; then
18782
b80f6443 18783cat >>confdefs.h <<\_ACEOF
f73dda09 18784#define uid_t int
b80f6443
JA
18785_ACEOF
18786
f73dda09 18787
b80f6443 18788cat >>confdefs.h <<\_ACEOF
f73dda09 18789#define gid_t int
b80f6443 18790_ACEOF
f73dda09
JA
18791
18792fi
18793
3185942a
JA
18794{ $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
18795$as_echo_n "checking type of array argument to getgroups... " >&6; }
f73dda09 18796if test "${ac_cv_type_getgroups+set}" = set; then
3185942a 18797 $as_echo_n "(cached) " >&6
f73dda09
JA
18798else
18799 if test "$cross_compiling" = yes; then
18800 ac_cv_type_getgroups=cross
18801else
18802 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
f73dda09 18808/* Thanks to Mike Rendell for this test. */
3185942a 18809$ac_includes_default
f73dda09
JA
18810#define NGID 256
18811#undef MAX
18812#define MAX(x, y) ((x) > (y) ? (x) : (y))
18813
18814int
18815main ()
18816{
18817 gid_t gidset[NGID];
18818 int i, n;
3185942a 18819 union { gid_t gval; long int lval; } val;
f73dda09
JA
18820
18821 val.lval = -1;
18822 for (i = 0; i < NGID; i++)
18823 gidset[i] = val.gval;
18824 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
0628567a 18825 gidset);
f73dda09 18826 /* Exit non-zero if getgroups seems to require an array of ints. This
3185942a
JA
18827 happens when gid_t is short int but getgroups modifies an array
18828 of ints. */
18829 return n > 0 && gidset[n] != val.gval;
f73dda09
JA
18830}
18831_ACEOF
18832rm -f conftest$ac_exeext
3185942a
JA
18833if { (ac_try="$ac_link"
18834case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18837esac
18838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18839$as_echo "$ac_try_echo") >&5
18840 (eval "$ac_link") 2>&5
f73dda09 18841 ac_status=$?
3185942a 18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 18843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
18844 { (case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847esac
18848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18849$as_echo "$ac_try_echo") >&5
18850 (eval "$ac_try") 2>&5
f73dda09 18851 ac_status=$?
3185942a 18852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
18853 (exit $ac_status); }; }; then
18854 ac_cv_type_getgroups=gid_t
18855else
3185942a
JA
18856 $as_echo "$as_me: program exited with status $ac_status" >&5
18857$as_echo "$as_me: failed program was:" >&5
0628567a
JA
18858sed 's/^/| /' conftest.$ac_ext >&5
18859
b80f6443 18860( exit $ac_status )
f73dda09
JA
18861ac_cv_type_getgroups=int
18862fi
3185942a
JA
18863rm -rf conftest.dSYM
18864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 18865fi
3185942a
JA
18866
18867
f73dda09
JA
18868if test $ac_cv_type_getgroups = cross; then
18869 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18870/* confdefs.h. */
18871_ACEOF
18872cat confdefs.h >>conftest.$ac_ext
18873cat >>conftest.$ac_ext <<_ACEOF
18874/* end confdefs.h. */
f73dda09
JA
18875#include <unistd.h>
18876
18877_ACEOF
18878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 18879 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
f73dda09
JA
18880 ac_cv_type_getgroups=gid_t
18881else
18882 ac_cv_type_getgroups=int
bb70624e
JA
18883fi
18884rm -f conftest*
18885
18886fi
f73dda09 18887fi
3185942a
JA
18888{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
18889$as_echo "$ac_cv_type_getgroups" >&6; }
f73dda09 18890
b80f6443 18891cat >>confdefs.h <<_ACEOF
f73dda09 18892#define GETGROUPS_T $ac_cv_type_getgroups
b80f6443
JA
18893_ACEOF
18894
f73dda09 18895
3185942a
JA
18896{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
18897$as_echo_n "checking for off_t... " >&6; }
f73dda09 18898if test "${ac_cv_type_off_t+set}" = set; then
3185942a 18899 $as_echo_n "(cached) " >&6
f73dda09 18900else
3185942a
JA
18901 ac_cv_type_off_t=no
18902cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
18903/* confdefs.h. */
18904_ACEOF
18905cat confdefs.h >>conftest.$ac_ext
18906cat >>conftest.$ac_ext <<_ACEOF
18907/* end confdefs.h. */
f73dda09
JA
18908$ac_includes_default
18909int
18910main ()
18911{
f73dda09 18912if (sizeof (off_t))
3185942a 18913 return 0;
f73dda09
JA
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext
3185942a
JA
18919if { (ac_try="$ac_compile"
18920case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18925$as_echo "$ac_try_echo") >&5
18926 (eval "$ac_compile") 2>conftest.er1
f73dda09 18927 ac_status=$?
0628567a
JA
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
3185942a
JA
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest.$ac_objext; then
18936 cat >conftest.$ac_ext <<_ACEOF
18937/* confdefs.h. */
18938_ACEOF
18939cat confdefs.h >>conftest.$ac_ext
18940cat >>conftest.$ac_ext <<_ACEOF
18941/* end confdefs.h. */
18942$ac_includes_default
18943int
18944main ()
18945{
18946if (sizeof ((off_t)))
18947 return 0;
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952rm -f conftest.$ac_objext
18953if { (ac_try="$ac_compile"
18954case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957esac
18958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18959$as_echo "$ac_try_echo") >&5
18960 (eval "$ac_compile") 2>conftest.er1
f73dda09 18961 ac_status=$?
3185942a
JA
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } && {
18967 test -z "$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 } && test -s conftest.$ac_objext; then
18970 :
f73dda09 18971else
3185942a 18972 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
18973sed 's/^/| /' conftest.$ac_ext >&5
18974
3185942a 18975 ac_cv_type_off_t=yes
f73dda09 18976fi
3185942a
JA
18977
18978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979else
18980 $as_echo "$as_me: failed program was:" >&5
18981sed 's/^/| /' conftest.$ac_ext >&5
18982
18983
18984fi
18985
18986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 18987fi
3185942a
JA
18988{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18989$as_echo "$ac_cv_type_off_t" >&6; }
18990if test "x$ac_cv_type_off_t" = x""yes; then
f73dda09
JA
18991 :
18992else
18993
b80f6443 18994cat >>confdefs.h <<_ACEOF
3185942a 18995#define off_t long int
b80f6443 18996_ACEOF
f73dda09
JA
18997
18998fi
18999
3185942a
JA
19000{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
19001$as_echo_n "checking for mode_t... " >&6; }
f73dda09 19002if test "${ac_cv_type_mode_t+set}" = set; then
3185942a 19003 $as_echo_n "(cached) " >&6
f73dda09 19004else
3185942a
JA
19005 ac_cv_type_mode_t=no
19006cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19007/* confdefs.h. */
19008_ACEOF
19009cat confdefs.h >>conftest.$ac_ext
19010cat >>conftest.$ac_ext <<_ACEOF
19011/* end confdefs.h. */
f73dda09
JA
19012$ac_includes_default
19013int
19014main ()
19015{
f73dda09 19016if (sizeof (mode_t))
3185942a 19017 return 0;
f73dda09
JA
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext
3185942a
JA
19023if { (ac_try="$ac_compile"
19024case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027esac
19028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19029$as_echo "$ac_try_echo") >&5
19030 (eval "$ac_compile") 2>conftest.er1
f73dda09 19031 ac_status=$?
0628567a
JA
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
3185942a
JA
19035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } && {
19037 test -z "$ac_c_werror_flag" ||
19038 test ! -s conftest.err
19039 } && test -s conftest.$ac_objext; then
19040 cat >conftest.$ac_ext <<_ACEOF
19041/* confdefs.h. */
19042_ACEOF
19043cat confdefs.h >>conftest.$ac_ext
19044cat >>conftest.$ac_ext <<_ACEOF
19045/* end confdefs.h. */
19046$ac_includes_default
19047int
19048main ()
19049{
19050if (sizeof ((mode_t)))
19051 return 0;
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest.$ac_objext
19057if { (ac_try="$ac_compile"
19058case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061esac
19062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19063$as_echo "$ac_try_echo") >&5
19064 (eval "$ac_compile") 2>conftest.er1
f73dda09 19065 ac_status=$?
3185942a
JA
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest.$ac_objext; then
19074 :
19075else
19076 $as_echo "$as_me: failed program was:" >&5
19077sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ac_cv_type_mode_t=yes
19080fi
19081
19082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19083else
3185942a 19084 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19085sed 's/^/| /' conftest.$ac_ext >&5
19086
3185942a 19087
f73dda09 19088fi
3185942a
JA
19089
19090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19091fi
3185942a
JA
19092{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19093$as_echo "$ac_cv_type_mode_t" >&6; }
19094if test "x$ac_cv_type_mode_t" = x""yes; then
f73dda09
JA
19095 :
19096else
bb70624e 19097
b80f6443 19098cat >>confdefs.h <<_ACEOF
f73dda09 19099#define mode_t int
b80f6443 19100_ACEOF
bb70624e
JA
19101
19102fi
19103
3185942a
JA
19104{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19105$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
f73dda09 19106if test "${ac_cv_type_uid_t+set}" = set; then
3185942a 19107 $as_echo_n "(cached) " >&6
ccc6cda3 19108else
f73dda09 19109 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
ccc6cda3 19115#include <sys/types.h>
f73dda09
JA
19116
19117_ACEOF
ccc6cda3 19118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 19119 $EGREP "uid_t" >/dev/null 2>&1; then
ccc6cda3
JA
19120 ac_cv_type_uid_t=yes
19121else
ccc6cda3
JA
19122 ac_cv_type_uid_t=no
19123fi
19124rm -f conftest*
19125
19126fi
3185942a
JA
19127{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19128$as_echo "$ac_cv_type_uid_t" >&6; }
ccc6cda3 19129if test $ac_cv_type_uid_t = no; then
f73dda09 19130
b80f6443 19131cat >>confdefs.h <<\_ACEOF
ccc6cda3 19132#define uid_t int
b80f6443 19133_ACEOF
ccc6cda3 19134
b80f6443
JA
19135
19136cat >>confdefs.h <<\_ACEOF
ccc6cda3 19137#define gid_t int
b80f6443 19138_ACEOF
ccc6cda3
JA
19139
19140fi
19141
3185942a
JA
19142{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
19143$as_echo_n "checking for pid_t... " >&6; }
f73dda09 19144if test "${ac_cv_type_pid_t+set}" = set; then
3185942a 19145 $as_echo_n "(cached) " >&6
ccc6cda3 19146else
3185942a
JA
19147 ac_cv_type_pid_t=no
19148cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
f73dda09
JA
19154$ac_includes_default
19155int
19156main ()
ccc6cda3 19157{
f73dda09 19158if (sizeof (pid_t))
3185942a 19159 return 0;
f73dda09
JA
19160 ;
19161 return 0;
ccc6cda3 19162}
f73dda09
JA
19163_ACEOF
19164rm -f conftest.$ac_objext
3185942a
JA
19165if { (ac_try="$ac_compile"
19166case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169esac
19170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19171$as_echo "$ac_try_echo") >&5
19172 (eval "$ac_compile") 2>conftest.er1
f73dda09 19173 ac_status=$?
0628567a
JA
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
3185942a
JA
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } && {
19179 test -z "$ac_c_werror_flag" ||
19180 test ! -s conftest.err
19181 } && test -s conftest.$ac_objext; then
f73dda09 19182 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19183/* confdefs.h. */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h. */
f73dda09
JA
19188$ac_includes_default
19189int
19190main ()
19191{
3185942a
JA
19192if (sizeof ((pid_t)))
19193 return 0;
f73dda09
JA
19194 ;
19195 return 0;
19196}
19197_ACEOF
19198rm -f conftest.$ac_objext
3185942a
JA
19199if { (ac_try="$ac_compile"
19200case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203esac
19204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19205$as_echo "$ac_try_echo") >&5
19206 (eval "$ac_compile") 2>conftest.er1
f73dda09 19207 ac_status=$?
0628567a
JA
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
3185942a
JA
19211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest.$ac_objext; then
19216 :
19217else
19218 $as_echo "$as_me: failed program was:" >&5
19219sed 's/^/| /' conftest.$ac_ext >&5
19220
19221 ac_cv_type_pid_t=yes
19222fi
19223
19224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19225else
3185942a 19226 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19227sed 's/^/| /' conftest.$ac_ext >&5
19228
3185942a 19229
ccc6cda3 19230fi
3185942a
JA
19231
19232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19233fi
3185942a
JA
19234{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19235$as_echo "$ac_cv_type_pid_t" >&6; }
19236if test "x$ac_cv_type_pid_t" = x""yes; then
f73dda09
JA
19237 :
19238else
ccc6cda3 19239
b80f6443 19240cat >>confdefs.h <<_ACEOF
3185942a 19241#define pid_t int
b80f6443 19242_ACEOF
ccc6cda3 19243
f73dda09 19244fi
ccc6cda3 19245
3185942a
JA
19246{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
19247$as_echo_n "checking for size_t... " >&6; }
19248if test "${ac_cv_type_size_t+set}" = set; then
19249 $as_echo_n "(cached) " >&6
ccc6cda3 19250else
3185942a
JA
19251 ac_cv_type_size_t=no
19252cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
f73dda09
JA
19258$ac_includes_default
19259int
19260main ()
19261{
3185942a
JA
19262if (sizeof (size_t))
19263 return 0;
f73dda09
JA
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext
3185942a
JA
19269if { (ac_try="$ac_compile"
19270case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19273esac
19274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19275$as_echo "$ac_try_echo") >&5
19276 (eval "$ac_compile") 2>conftest.er1
f73dda09 19277 ac_status=$?
0628567a
JA
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
3185942a
JA
19281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest.$ac_objext; then
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292$ac_includes_default
19293int
19294main ()
19295{
19296if (sizeof ((size_t)))
19297 return 0;
19298 ;
19299 return 0;
19300}
19301_ACEOF
19302rm -f conftest.$ac_objext
19303if { (ac_try="$ac_compile"
19304case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307esac
19308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19309$as_echo "$ac_try_echo") >&5
19310 (eval "$ac_compile") 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && {
19317 test -z "$ac_c_werror_flag" ||
19318 test ! -s conftest.err
19319 } && test -s conftest.$ac_objext; then
19320 :
19321else
19322 $as_echo "$as_me: failed program was:" >&5
19323sed 's/^/| /' conftest.$ac_ext >&5
19324
19325 ac_cv_type_size_t=yes
f73dda09 19326fi
3185942a
JA
19327
19328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329else
19330 $as_echo "$as_me: failed program was:" >&5
19331sed 's/^/| /' conftest.$ac_ext >&5
19332
19333
19334fi
19335
19336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19337fi
3185942a
JA
19338{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19339$as_echo "$ac_cv_type_size_t" >&6; }
19340if test "x$ac_cv_type_size_t" = x""yes; then
f73dda09 19341 :
ccc6cda3 19342else
ccc6cda3 19343
b80f6443 19344cat >>confdefs.h <<_ACEOF
3185942a 19345#define size_t unsigned int
b80f6443 19346_ACEOF
ccc6cda3
JA
19347
19348fi
19349
3185942a
JA
19350{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
19351$as_echo_n "checking for ssize_t... " >&6; }
19352if test "${ac_cv_type_ssize_t+set}" = set; then
19353 $as_echo_n "(cached) " >&6
f73dda09 19354else
3185942a
JA
19355 ac_cv_type_ssize_t=no
19356cat >conftest.$ac_ext <<_ACEOF
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362$ac_includes_default
19363int
19364main ()
19365{
19366if (sizeof (ssize_t))
19367 return 0;
19368 ;
19369 return 0;
19370}
19371_ACEOF
19372rm -f conftest.$ac_objext
19373if { (ac_try="$ac_compile"
19374case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377esac
19378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19379$as_echo "$ac_try_echo") >&5
19380 (eval "$ac_compile") 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } && {
19387 test -z "$ac_c_werror_flag" ||
19388 test ! -s conftest.err
19389 } && test -s conftest.$ac_objext; then
f73dda09 19390 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19391/* confdefs.h. */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h. */
f73dda09
JA
19396$ac_includes_default
19397int
19398main ()
19399{
3185942a
JA
19400if (sizeof ((ssize_t)))
19401 return 0;
19402 ;
f73dda09 19403 return 0;
3185942a
JA
19404}
19405_ACEOF
19406rm -f conftest.$ac_objext
19407if { (ac_try="$ac_compile"
19408case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411esac
19412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19413$as_echo "$ac_try_echo") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.$ac_objext; then
19424 :
19425else
19426 $as_echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
19429 ac_cv_type_ssize_t=yes
19430fi
19431
19432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433else
19434 $as_echo "$as_me: failed program was:" >&5
19435sed 's/^/| /' conftest.$ac_ext >&5
19436
19437
19438fi
19439
19440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441fi
19442{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19443$as_echo "$ac_cv_type_ssize_t" >&6; }
19444if test "x$ac_cv_type_ssize_t" = x""yes; then
19445 :
19446else
19447
19448cat >>confdefs.h <<_ACEOF
19449#define ssize_t int
19450_ACEOF
19451
19452fi
19453
19454{ $as_echo "$as_me:$LINENO: checking for time_t" >&5
19455$as_echo_n "checking for time_t... " >&6; }
19456if test "${ac_cv_type_time_t+set}" = set; then
19457 $as_echo_n "(cached) " >&6
19458else
19459 ac_cv_type_time_t=no
19460cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466$ac_includes_default
19467int
19468main ()
19469{
f73dda09 19470if (sizeof (time_t))
3185942a 19471 return 0;
f73dda09
JA
19472 ;
19473 return 0;
19474}
19475_ACEOF
19476rm -f conftest.$ac_objext
3185942a
JA
19477if { (ac_try="$ac_compile"
19478case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19481esac
19482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19483$as_echo "$ac_try_echo") >&5
19484 (eval "$ac_compile") 2>conftest.er1
f73dda09 19485 ac_status=$?
0628567a
JA
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
3185942a
JA
19489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest.$ac_objext; then
19494 cat >conftest.$ac_ext <<_ACEOF
19495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
19500$ac_includes_default
19501int
19502main ()
19503{
19504if (sizeof ((time_t)))
19505 return 0;
19506 ;
19507 return 0;
19508}
19509_ACEOF
19510rm -f conftest.$ac_objext
19511if { (ac_try="$ac_compile"
19512case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19517$as_echo "$ac_try_echo") >&5
19518 (eval "$ac_compile") 2>conftest.er1
f73dda09 19519 ac_status=$?
3185942a
JA
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } && {
19525 test -z "$ac_c_werror_flag" ||
19526 test ! -s conftest.err
19527 } && test -s conftest.$ac_objext; then
19528 :
19529else
19530 $as_echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_cv_type_time_t=yes
19534fi
19535
19536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19537else
3185942a 19538 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
3185942a 19541
ccc6cda3 19542fi
3185942a
JA
19543
19544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19545fi
3185942a
JA
19546{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
19547$as_echo "$ac_cv_type_time_t" >&6; }
19548if test "x$ac_cv_type_time_t" = x""yes; then
f73dda09
JA
19549 :
19550else
19551
b80f6443 19552cat >>confdefs.h <<_ACEOF
f73dda09 19553#define time_t long
b80f6443 19554_ACEOF
ccc6cda3
JA
19555
19556fi
19557
b80f6443
JA
19558
19559
3185942a
JA
19560{ $as_echo "$as_me:$LINENO: checking for long long" >&5
19561$as_echo_n "checking for long long... " >&6; }
f73dda09 19562if test "${bash_cv_type_long_long+set}" = set; then
3185942a 19563 $as_echo_n "(cached) " >&6
ccc6cda3 19564else
f73dda09 19565 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19566/* confdefs.h. */
19567_ACEOF
19568cat confdefs.h >>conftest.$ac_ext
19569cat >>conftest.$ac_ext <<_ACEOF
19570/* end confdefs.h. */
ccc6cda3 19571
f73dda09
JA
19572long long ll = 1; int i = 63;
19573int
19574main ()
19575{
19576
19577long long llm = (long long) -1;
19578return ll << i | ll >> i | llm / ll | llm % ll;
19579
19580 ;
19581 return 0;
19582}
19583_ACEOF
19584rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19585if { (ac_try="$ac_link"
19586case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589esac
19590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19591$as_echo "$ac_try_echo") >&5
19592 (eval "$ac_link") 2>conftest.er1
f73dda09 19593 ac_status=$?
0628567a
JA
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
3185942a
JA
19597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest$ac_exeext && {
19602 test "$cross_compiling" = yes ||
19603 $as_test_x conftest$ac_exeext
19604 }; then
f73dda09 19605 bash_cv_type_long_long='long long'
ccc6cda3 19606else
3185942a 19607 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19608sed 's/^/| /' conftest.$ac_ext >&5
19609
3185942a 19610 bash_cv_type_long_long='long'
ccc6cda3 19611fi
3185942a
JA
19612
19613rm -rf conftest.dSYM
19614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19615 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 19616fi
3185942a
JA
19617{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
19618$as_echo "$bash_cv_type_long_long" >&6; }
f73dda09 19619if test "$bash_cv_type_long_long" = 'long long'; then
b80f6443 19620 cat >>confdefs.h <<\_ACEOF
f73dda09 19621#define HAVE_LONG_LONG 1
b80f6443 19622_ACEOF
ccc6cda3 19623
ccc6cda3
JA
19624fi
19625
b80f6443 19626
3185942a
JA
19627{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
19628$as_echo_n "checking for unsigned long long... " >&6; }
f73dda09 19629if test "${bash_cv_type_unsigned_long_long+set}" = set; then
3185942a 19630 $as_echo_n "(cached) " >&6
f73dda09
JA
19631else
19632 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19633/* confdefs.h. */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h. */
f73dda09
JA
19638
19639unsigned long long ull = 1; int i = 63;
19640int
19641main ()
19642{
19643
19644unsigned long long ullmax = (unsigned long long) -1;
19645return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19646
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
19652if { (ac_try="$ac_link"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19658$as_echo "$ac_try_echo") >&5
19659 (eval "$ac_link") 2>conftest.er1
f73dda09 19660 ac_status=$?
0628567a
JA
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
3185942a
JA
19664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext && {
19669 test "$cross_compiling" = yes ||
19670 $as_test_x conftest$ac_exeext
19671 }; then
f73dda09
JA
19672 bash_cv_type_unsigned_long_long='unsigned long long'
19673else
3185942a 19674 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
3185942a 19677 bash_cv_type_unsigned_long_long='unsigned long'
f73dda09 19678fi
3185942a
JA
19679
19680rm -rf conftest.dSYM
19681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 19682 conftest$ac_exeext conftest.$ac_ext
f73dda09 19683fi
3185942a
JA
19684{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
19685$as_echo "$bash_cv_type_unsigned_long_long" >&6; }
f73dda09 19686if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
b80f6443 19687 cat >>confdefs.h <<\_ACEOF
f73dda09 19688#define HAVE_UNSIGNED_LONG_LONG 1
b80f6443 19689_ACEOF
ccc6cda3
JA
19690
19691fi
19692
b80f6443 19693
3185942a
JA
19694{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19695$as_echo_n "checking return type of signal handlers... " >&6; }
f73dda09 19696if test "${ac_cv_type_signal+set}" = set; then
3185942a 19697 $as_echo_n "(cached) " >&6
ccc6cda3 19698else
f73dda09 19699 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
ccc6cda3 19705#include <sys/types.h>
f73dda09 19706#include <signal.h>
f73dda09
JA
19707
19708int
19709main ()
19710{
3185942a 19711return *(signal (0, 0)) (0) == 1;
f73dda09
JA
19712 ;
19713 return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext
3185942a
JA
19717if { (ac_try="$ac_compile"
19718case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721esac
19722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19723$as_echo "$ac_try_echo") >&5
19724 (eval "$ac_compile") 2>conftest.er1
f73dda09 19725 ac_status=$?
0628567a
JA
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
3185942a
JA
19729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
19734 ac_cv_type_signal=int
ccc6cda3 19735else
3185942a 19736 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19737sed 's/^/| /' conftest.$ac_ext >&5
19738
3185942a 19739 ac_cv_type_signal=void
ccc6cda3 19740fi
3185942a
JA
19741
19742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19743fi
3185942a
JA
19744{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19745$as_echo "$ac_cv_type_signal" >&6; }
f73dda09 19746
b80f6443 19747cat >>confdefs.h <<_ACEOF
f73dda09 19748#define RETSIGTYPE $ac_cv_type_signal
b80f6443
JA
19749_ACEOF
19750
ccc6cda3 19751
b80f6443 19752
3185942a
JA
19753# The cast to long int works around a bug in the HP C Compiler
19754# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19755# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19756# This bug is HP SR number 8606223364.
19757{ $as_echo "$as_me:$LINENO: checking size of char" >&5
19758$as_echo_n "checking size of char... " >&6; }
f73dda09 19759if test "${ac_cv_sizeof_char+set}" = set; then
3185942a 19760 $as_echo_n "(cached) " >&6
f73dda09 19761else
f73dda09
JA
19762 if test "$cross_compiling" = yes; then
19763 # Depending upon the size, compute the lo and hi bounds.
19764cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
f73dda09
JA
19770$ac_includes_default
19771int
19772main ()
19773{
3185942a 19774static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
b80f6443
JA
19775test_array [0] = 0
19776
f73dda09
JA
19777 ;
19778 return 0;
19779}
19780_ACEOF
19781rm -f conftest.$ac_objext
3185942a
JA
19782if { (ac_try="$ac_compile"
19783case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786esac
19787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788$as_echo "$ac_try_echo") >&5
19789 (eval "$ac_compile") 2>conftest.er1
f73dda09 19790 ac_status=$?
0628567a
JA
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
3185942a
JA
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
f73dda09
JA
19799 ac_lo=0 ac_mid=0
19800 while :; do
19801 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
f73dda09
JA
19807$ac_includes_default
19808int
19809main ()
19810{
3185942a 19811static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
b80f6443
JA
19812test_array [0] = 0
19813
f73dda09
JA
19814 ;
19815 return 0;
19816}
19817_ACEOF
19818rm -f conftest.$ac_objext
3185942a
JA
19819if { (ac_try="$ac_compile"
19820case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19825$as_echo "$ac_try_echo") >&5
19826 (eval "$ac_compile") 2>conftest.er1
f73dda09 19827 ac_status=$?
0628567a
JA
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
3185942a
JA
19831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
f73dda09
JA
19836 ac_hi=$ac_mid; break
19837else
3185942a 19838 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
3185942a
JA
19841 ac_lo=`expr $ac_mid + 1`
19842 if test $ac_lo -le $ac_mid; then
19843 ac_lo= ac_hi=
19844 break
19845 fi
19846 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 19847fi
3185942a
JA
19848
19849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19850 done
19851else
3185942a 19852 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19853sed 's/^/| /' conftest.$ac_ext >&5
19854
3185942a 19855 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19856/* confdefs.h. */
19857_ACEOF
19858cat confdefs.h >>conftest.$ac_ext
19859cat >>conftest.$ac_ext <<_ACEOF
19860/* end confdefs.h. */
b80f6443
JA
19861$ac_includes_default
19862int
19863main ()
19864{
3185942a 19865static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
b80f6443
JA
19866test_array [0] = 0
19867
19868 ;
19869 return 0;
19870}
19871_ACEOF
19872rm -f conftest.$ac_objext
3185942a
JA
19873if { (ac_try="$ac_compile"
19874case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877esac
19878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19879$as_echo "$ac_try_echo") >&5
19880 (eval "$ac_compile") 2>conftest.er1
b80f6443 19881 ac_status=$?
0628567a
JA
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
3185942a
JA
19885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.$ac_objext; then
b80f6443 19890 ac_hi=-1 ac_mid=-1
f73dda09
JA
19891 while :; do
19892 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19893/* confdefs.h. */
19894_ACEOF
19895cat confdefs.h >>conftest.$ac_ext
19896cat >>conftest.$ac_ext <<_ACEOF
19897/* end confdefs.h. */
f73dda09
JA
19898$ac_includes_default
19899int
19900main ()
19901{
3185942a 19902static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
b80f6443
JA
19903test_array [0] = 0
19904
f73dda09
JA
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest.$ac_objext
3185942a
JA
19910if { (ac_try="$ac_compile"
19911case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19916$as_echo "$ac_try_echo") >&5
19917 (eval "$ac_compile") 2>conftest.er1
f73dda09 19918 ac_status=$?
0628567a
JA
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
3185942a
JA
19922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
f73dda09
JA
19927 ac_lo=$ac_mid; break
19928else
3185942a 19929 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
3185942a
JA
19932 ac_hi=`expr '(' $ac_mid ')' - 1`
19933 if test $ac_mid -le $ac_hi; then
19934 ac_lo= ac_hi=
19935 break
19936 fi
19937 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 19938fi
3185942a
JA
19939
19940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 19941 done
b80f6443 19942else
3185942a 19943 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
3185942a 19946 ac_lo= ac_hi=
b80f6443 19947fi
3185942a
JA
19948
19949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 19950fi
3185942a
JA
19951
19952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
19953# Binary search between lo and hi bounds.
19954while test "x$ac_lo" != "x$ac_hi"; do
19955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19956 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
f73dda09
JA
19962$ac_includes_default
19963int
19964main ()
19965{
3185942a 19966static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
b80f6443
JA
19967test_array [0] = 0
19968
f73dda09
JA
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext
3185942a
JA
19974if { (ac_try="$ac_compile"
19975case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978esac
19979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19980$as_echo "$ac_try_echo") >&5
19981 (eval "$ac_compile") 2>conftest.er1
f73dda09 19982 ac_status=$?
0628567a
JA
19983 grep -v '^ *+' conftest.er1 >conftest.err
19984 rm -f conftest.er1
19985 cat conftest.err >&5
3185942a
JA
19986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); } && {
19988 test -z "$ac_c_werror_flag" ||
19989 test ! -s conftest.err
19990 } && test -s conftest.$ac_objext; then
f73dda09
JA
19991 ac_hi=$ac_mid
19992else
3185942a 19993 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
3185942a 19996 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 19997fi
3185942a
JA
19998
19999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20000done
b80f6443
JA
20001case $ac_lo in
20002?*) ac_cv_sizeof_char=$ac_lo;;
3185942a
JA
20003'') if test "$ac_cv_type_char" = yes; then
20004 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20006{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
0628567a 20007See \`config.log' for more details." >&5
3185942a 20008$as_echo "$as_me: error: cannot compute sizeof (char)
0628567a 20009See \`config.log' for more details." >&2;}
3185942a
JA
20010 { (exit 77); exit 77; }; }; }
20011 else
20012 ac_cv_sizeof_char=0
20013 fi ;;
b80f6443 20014esac
f73dda09
JA
20015else
20016 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20017/* confdefs.h. */
20018_ACEOF
20019cat confdefs.h >>conftest.$ac_ext
20020cat >>conftest.$ac_ext <<_ACEOF
20021/* end confdefs.h. */
f73dda09 20022$ac_includes_default
3185942a
JA
20023static long int longval () { return (long int) (sizeof (char)); }
20024static unsigned long int ulongval () { return (long int) (sizeof (char)); }
b80f6443
JA
20025#include <stdio.h>
20026#include <stdlib.h>
f73dda09
JA
20027int
20028main ()
20029{
b80f6443
JA
20030
20031 FILE *f = fopen ("conftest.val", "w");
20032 if (! f)
3185942a
JA
20033 return 1;
20034 if (((long int) (sizeof (char))) < 0)
b80f6443 20035 {
3185942a
JA
20036 long int i = longval ();
20037 if (i != ((long int) (sizeof (char))))
20038 return 1;
20039 fprintf (f, "%ld", i);
b80f6443
JA
20040 }
20041 else
20042 {
3185942a
JA
20043 unsigned long int i = ulongval ();
20044 if (i != ((long int) (sizeof (char))))
20045 return 1;
20046 fprintf (f, "%lu", i);
b80f6443 20047 }
3185942a
JA
20048 /* Do not output a trailing newline, as this causes \r\n confusion
20049 on some platforms. */
20050 return ferror (f) || fclose (f) != 0;
b80f6443 20051
f73dda09
JA
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest$ac_exeext
3185942a
JA
20057if { (ac_try="$ac_link"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20063$as_echo "$ac_try_echo") >&5
20064 (eval "$ac_link") 2>&5
f73dda09 20065 ac_status=$?
3185942a 20066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
20068 { (case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071esac
20072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073$as_echo "$ac_try_echo") >&5
20074 (eval "$ac_try") 2>&5
f73dda09 20075 ac_status=$?
3185942a 20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20077 (exit $ac_status); }; }; then
20078 ac_cv_sizeof_char=`cat conftest.val`
ccc6cda3 20079else
3185942a
JA
20080 $as_echo "$as_me: program exited with status $ac_status" >&5
20081$as_echo "$as_me: failed program was:" >&5
0628567a
JA
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
b80f6443 20084( exit $ac_status )
3185942a
JA
20085if test "$ac_cv_type_char" = yes; then
20086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20088{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
0628567a 20089See \`config.log' for more details." >&5
3185942a 20090$as_echo "$as_me: error: cannot compute sizeof (char)
0628567a 20091See \`config.log' for more details." >&2;}
3185942a
JA
20092 { (exit 77); exit 77; }; }; }
20093 else
20094 ac_cv_sizeof_char=0
20095 fi
ccc6cda3 20096fi
3185942a
JA
20097rm -rf conftest.dSYM
20098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20099fi
20100rm -f conftest.val
f73dda09 20101fi
3185942a
JA
20102{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20103$as_echo "$ac_cv_sizeof_char" >&6; }
20104
20105
20106
b80f6443 20107cat >>confdefs.h <<_ACEOF
f73dda09 20108#define SIZEOF_CHAR $ac_cv_sizeof_char
b80f6443 20109_ACEOF
ccc6cda3 20110
b80f6443 20111
3185942a
JA
20112# The cast to long int works around a bug in the HP C Compiler
20113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20115# This bug is HP SR number 8606223364.
20116{ $as_echo "$as_me:$LINENO: checking size of short" >&5
20117$as_echo_n "checking size of short... " >&6; }
20118if test "${ac_cv_sizeof_short+set}" = set; then
20119 $as_echo_n "(cached) " >&6
f73dda09 20120else
3185942a
JA
20121 if test "$cross_compiling" = yes; then
20122 # Depending upon the size, compute the lo and hi bounds.
20123cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
f73dda09
JA
20129$ac_includes_default
20130int
20131main ()
20132{
3185942a
JA
20133static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
20134test_array [0] = 0
20135
f73dda09
JA
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext
3185942a
JA
20141if { (ac_try="$ac_compile"
20142case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145esac
20146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20147$as_echo "$ac_try_echo") >&5
20148 (eval "$ac_compile") 2>conftest.er1
f73dda09 20149 ac_status=$?
0628567a
JA
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
3185942a
JA
20153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
20158 ac_lo=0 ac_mid=0
20159 while :; do
20160 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
f73dda09
JA
20166$ac_includes_default
20167int
20168main ()
20169{
3185942a 20170static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
b80f6443
JA
20171test_array [0] = 0
20172
f73dda09
JA
20173 ;
20174 return 0;
20175}
20176_ACEOF
20177rm -f conftest.$ac_objext
3185942a
JA
20178if { (ac_try="$ac_compile"
20179case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182esac
20183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20184$as_echo "$ac_try_echo") >&5
20185 (eval "$ac_compile") 2>conftest.er1
f73dda09 20186 ac_status=$?
0628567a
JA
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
3185942a
JA
20190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest.$ac_objext; then
f73dda09
JA
20195 ac_hi=$ac_mid; break
20196else
3185942a 20197 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
3185942a
JA
20200 ac_lo=`expr $ac_mid + 1`
20201 if test $ac_lo -le $ac_mid; then
20202 ac_lo= ac_hi=
20203 break
20204 fi
20205 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20206fi
3185942a
JA
20207
20208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20209 done
20210else
3185942a 20211 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
3185942a 20214 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20215/* confdefs.h. */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h. */
b80f6443
JA
20220$ac_includes_default
20221int
20222main ()
20223{
3185942a 20224static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
b80f6443
JA
20225test_array [0] = 0
20226
20227 ;
20228 return 0;
20229}
20230_ACEOF
20231rm -f conftest.$ac_objext
3185942a
JA
20232if { (ac_try="$ac_compile"
20233case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236esac
20237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20238$as_echo "$ac_try_echo") >&5
20239 (eval "$ac_compile") 2>conftest.er1
b80f6443 20240 ac_status=$?
0628567a
JA
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
3185942a
JA
20244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } && {
20246 test -z "$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20248 } && test -s conftest.$ac_objext; then
b80f6443 20249 ac_hi=-1 ac_mid=-1
f73dda09
JA
20250 while :; do
20251 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
f73dda09
JA
20257$ac_includes_default
20258int
20259main ()
20260{
3185942a 20261static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
b80f6443
JA
20262test_array [0] = 0
20263
f73dda09
JA
20264 ;
20265 return 0;
20266}
20267_ACEOF
20268rm -f conftest.$ac_objext
3185942a
JA
20269if { (ac_try="$ac_compile"
20270case "(($ac_try" in
20271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272 *) ac_try_echo=$ac_try;;
20273esac
20274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20275$as_echo "$ac_try_echo") >&5
20276 (eval "$ac_compile") 2>conftest.er1
f73dda09 20277 ac_status=$?
0628567a
JA
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
3185942a
JA
20281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
f73dda09
JA
20286 ac_lo=$ac_mid; break
20287else
3185942a 20288 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
3185942a
JA
20291 ac_hi=`expr '(' $ac_mid ')' - 1`
20292 if test $ac_mid -le $ac_hi; then
20293 ac_lo= ac_hi=
20294 break
20295 fi
20296 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20297fi
3185942a
JA
20298
20299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20300 done
b80f6443 20301else
3185942a 20302 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
3185942a 20305 ac_lo= ac_hi=
b80f6443 20306fi
3185942a
JA
20307
20308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20309fi
3185942a
JA
20310
20311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20312# Binary search between lo and hi bounds.
20313while test "x$ac_lo" != "x$ac_hi"; do
20314 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20315 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
f73dda09
JA
20321$ac_includes_default
20322int
20323main ()
20324{
3185942a 20325static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
b80f6443
JA
20326test_array [0] = 0
20327
f73dda09
JA
20328 ;
20329 return 0;
20330}
20331_ACEOF
20332rm -f conftest.$ac_objext
3185942a
JA
20333if { (ac_try="$ac_compile"
20334case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20337esac
20338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20339$as_echo "$ac_try_echo") >&5
20340 (eval "$ac_compile") 2>conftest.er1
f73dda09 20341 ac_status=$?
0628567a
JA
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
3185942a
JA
20345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
f73dda09
JA
20350 ac_hi=$ac_mid
20351else
3185942a 20352 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
3185942a 20355 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20356fi
3185942a
JA
20357
20358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20359done
b80f6443
JA
20360case $ac_lo in
20361?*) ac_cv_sizeof_short=$ac_lo;;
3185942a
JA
20362'') if test "$ac_cv_type_short" = yes; then
20363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20365{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
0628567a 20366See \`config.log' for more details." >&5
3185942a 20367$as_echo "$as_me: error: cannot compute sizeof (short)
0628567a 20368See \`config.log' for more details." >&2;}
3185942a
JA
20369 { (exit 77); exit 77; }; }; }
20370 else
20371 ac_cv_sizeof_short=0
20372 fi ;;
b80f6443 20373esac
ccc6cda3 20374else
f73dda09 20375 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
f73dda09 20381$ac_includes_default
3185942a
JA
20382static long int longval () { return (long int) (sizeof (short)); }
20383static unsigned long int ulongval () { return (long int) (sizeof (short)); }
b80f6443
JA
20384#include <stdio.h>
20385#include <stdlib.h>
f73dda09
JA
20386int
20387main ()
20388{
b80f6443
JA
20389
20390 FILE *f = fopen ("conftest.val", "w");
20391 if (! f)
3185942a
JA
20392 return 1;
20393 if (((long int) (sizeof (short))) < 0)
b80f6443 20394 {
3185942a
JA
20395 long int i = longval ();
20396 if (i != ((long int) (sizeof (short))))
20397 return 1;
20398 fprintf (f, "%ld", i);
b80f6443
JA
20399 }
20400 else
20401 {
3185942a
JA
20402 unsigned long int i = ulongval ();
20403 if (i != ((long int) (sizeof (short))))
20404 return 1;
20405 fprintf (f, "%lu", i);
b80f6443 20406 }
3185942a
JA
20407 /* Do not output a trailing newline, as this causes \r\n confusion
20408 on some platforms. */
20409 return ferror (f) || fclose (f) != 0;
b80f6443 20410
f73dda09
JA
20411 ;
20412 return 0;
20413}
20414_ACEOF
20415rm -f conftest$ac_exeext
3185942a
JA
20416if { (ac_try="$ac_link"
20417case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420esac
20421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20422$as_echo "$ac_try_echo") >&5
20423 (eval "$ac_link") 2>&5
f73dda09 20424 ac_status=$?
3185942a 20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430esac
20431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432$as_echo "$ac_try_echo") >&5
20433 (eval "$ac_try") 2>&5
f73dda09 20434 ac_status=$?
3185942a 20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20436 (exit $ac_status); }; }; then
20437 ac_cv_sizeof_short=`cat conftest.val`
ccc6cda3 20438else
3185942a
JA
20439 $as_echo "$as_me: program exited with status $ac_status" >&5
20440$as_echo "$as_me: failed program was:" >&5
0628567a
JA
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
b80f6443 20443( exit $ac_status )
3185942a
JA
20444if test "$ac_cv_type_short" = yes; then
20445 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20447{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
0628567a 20448See \`config.log' for more details." >&5
3185942a 20449$as_echo "$as_me: error: cannot compute sizeof (short)
0628567a 20450See \`config.log' for more details." >&2;}
3185942a
JA
20451 { (exit 77); exit 77; }; }; }
20452 else
20453 ac_cv_sizeof_short=0
20454 fi
ccc6cda3 20455fi
3185942a
JA
20456rm -rf conftest.dSYM
20457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20458fi
f73dda09 20459rm -f conftest.val
ccc6cda3 20460fi
3185942a
JA
20461{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20462$as_echo "$ac_cv_sizeof_short" >&6; }
ccc6cda3 20463
b80f6443 20464
3185942a
JA
20465
20466cat >>confdefs.h <<_ACEOF
20467#define SIZEOF_SHORT $ac_cv_sizeof_short
f73dda09 20468_ACEOF
0628567a 20469
f73dda09 20470
3185942a
JA
20471# The cast to long int works around a bug in the HP C Compiler
20472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20474# This bug is HP SR number 8606223364.
20475{ $as_echo "$as_me:$LINENO: checking size of int" >&5
20476$as_echo_n "checking size of int... " >&6; }
f73dda09 20477if test "${ac_cv_sizeof_int+set}" = set; then
3185942a 20478 $as_echo_n "(cached) " >&6
f73dda09 20479else
f73dda09
JA
20480 if test "$cross_compiling" = yes; then
20481 # Depending upon the size, compute the lo and hi bounds.
20482cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20483/* confdefs.h. */
20484_ACEOF
20485cat confdefs.h >>conftest.$ac_ext
20486cat >>conftest.$ac_ext <<_ACEOF
20487/* end confdefs.h. */
f73dda09
JA
20488$ac_includes_default
20489int
20490main ()
20491{
3185942a 20492static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
b80f6443
JA
20493test_array [0] = 0
20494
f73dda09
JA
20495 ;
20496 return 0;
20497}
20498_ACEOF
20499rm -f conftest.$ac_objext
3185942a
JA
20500if { (ac_try="$ac_compile"
20501case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504esac
20505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20506$as_echo "$ac_try_echo") >&5
20507 (eval "$ac_compile") 2>conftest.er1
f73dda09 20508 ac_status=$?
0628567a
JA
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
3185942a
JA
20512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest.$ac_objext; then
f73dda09
JA
20517 ac_lo=0 ac_mid=0
20518 while :; do
20519 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20520/* confdefs.h. */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h. */
f73dda09
JA
20525$ac_includes_default
20526int
20527main ()
20528{
3185942a 20529static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
b80f6443
JA
20530test_array [0] = 0
20531
f73dda09
JA
20532 ;
20533 return 0;
20534}
20535_ACEOF
20536rm -f conftest.$ac_objext
3185942a
JA
20537if { (ac_try="$ac_compile"
20538case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20541esac
20542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20543$as_echo "$ac_try_echo") >&5
20544 (eval "$ac_compile") 2>conftest.er1
f73dda09 20545 ac_status=$?
0628567a
JA
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
3185942a
JA
20549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest.$ac_objext; then
f73dda09
JA
20554 ac_hi=$ac_mid; break
20555else
3185942a 20556 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
3185942a
JA
20559 ac_lo=`expr $ac_mid + 1`
20560 if test $ac_lo -le $ac_mid; then
20561 ac_lo= ac_hi=
20562 break
20563 fi
20564 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20565fi
3185942a
JA
20566
20567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20568 done
20569else
3185942a 20570 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20571sed 's/^/| /' conftest.$ac_ext >&5
20572
3185942a 20573 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20574/* confdefs.h. */
20575_ACEOF
20576cat confdefs.h >>conftest.$ac_ext
20577cat >>conftest.$ac_ext <<_ACEOF
20578/* end confdefs.h. */
b80f6443
JA
20579$ac_includes_default
20580int
20581main ()
20582{
3185942a 20583static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
b80f6443
JA
20584test_array [0] = 0
20585
20586 ;
20587 return 0;
20588}
20589_ACEOF
20590rm -f conftest.$ac_objext
3185942a
JA
20591if { (ac_try="$ac_compile"
20592case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595esac
20596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20597$as_echo "$ac_try_echo") >&5
20598 (eval "$ac_compile") 2>conftest.er1
b80f6443 20599 ac_status=$?
0628567a
JA
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
3185942a
JA
20603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
b80f6443 20608 ac_hi=-1 ac_mid=-1
f73dda09
JA
20609 while :; do
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{
3185942a 20620static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
b80f6443
JA
20621test_array [0] = 0
20622
f73dda09
JA
20623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest.$ac_objext
3185942a
JA
20628if { (ac_try="$ac_compile"
20629case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20632esac
20633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20634$as_echo "$ac_try_echo") >&5
20635 (eval "$ac_compile") 2>conftest.er1
f73dda09 20636 ac_status=$?
0628567a
JA
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
3185942a
JA
20640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
f73dda09
JA
20645 ac_lo=$ac_mid; break
20646else
3185942a 20647 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20648sed 's/^/| /' conftest.$ac_ext >&5
20649
3185942a
JA
20650 ac_hi=`expr '(' $ac_mid ')' - 1`
20651 if test $ac_mid -le $ac_hi; then
20652 ac_lo= ac_hi=
20653 break
20654 fi
20655 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 20656fi
3185942a
JA
20657
20658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20659 done
b80f6443 20660else
3185942a 20661 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
3185942a 20664 ac_lo= ac_hi=
b80f6443 20665fi
3185942a
JA
20666
20667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20668fi
3185942a
JA
20669
20670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
20671# Binary search between lo and hi bounds.
20672while test "x$ac_lo" != "x$ac_hi"; do
20673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
JA
20680$ac_includes_default
20681int
20682main ()
20683{
3185942a 20684static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
b80f6443
JA
20685test_array [0] = 0
20686
f73dda09
JA
20687 ;
20688 return 0;
20689}
20690_ACEOF
20691rm -f conftest.$ac_objext
3185942a
JA
20692if { (ac_try="$ac_compile"
20693case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696esac
20697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698$as_echo "$ac_try_echo") >&5
20699 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
3185942a
JA
20704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
f73dda09
JA
20709 ac_hi=$ac_mid
20710else
3185942a 20711 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20712sed 's/^/| /' conftest.$ac_ext >&5
20713
3185942a 20714 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 20715fi
3185942a
JA
20716
20717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20718done
b80f6443
JA
20719case $ac_lo in
20720?*) ac_cv_sizeof_int=$ac_lo;;
3185942a
JA
20721'') if test "$ac_cv_type_int" = yes; then
20722 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20724{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
0628567a 20725See \`config.log' for more details." >&5
3185942a 20726$as_echo "$as_me: error: cannot compute sizeof (int)
0628567a 20727See \`config.log' for more details." >&2;}
3185942a
JA
20728 { (exit 77); exit 77; }; }; }
20729 else
20730 ac_cv_sizeof_int=0
20731 fi ;;
b80f6443 20732esac
ccc6cda3 20733else
f73dda09 20734 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
f73dda09 20740$ac_includes_default
3185942a
JA
20741static long int longval () { return (long int) (sizeof (int)); }
20742static unsigned long int ulongval () { return (long int) (sizeof (int)); }
b80f6443
JA
20743#include <stdio.h>
20744#include <stdlib.h>
f73dda09
JA
20745int
20746main ()
20747{
b80f6443
JA
20748
20749 FILE *f = fopen ("conftest.val", "w");
20750 if (! f)
3185942a
JA
20751 return 1;
20752 if (((long int) (sizeof (int))) < 0)
b80f6443 20753 {
3185942a
JA
20754 long int i = longval ();
20755 if (i != ((long int) (sizeof (int))))
20756 return 1;
20757 fprintf (f, "%ld", i);
b80f6443
JA
20758 }
20759 else
20760 {
3185942a
JA
20761 unsigned long int i = ulongval ();
20762 if (i != ((long int) (sizeof (int))))
20763 return 1;
20764 fprintf (f, "%lu", i);
b80f6443 20765 }
3185942a
JA
20766 /* Do not output a trailing newline, as this causes \r\n confusion
20767 on some platforms. */
20768 return ferror (f) || fclose (f) != 0;
b80f6443 20769
f73dda09
JA
20770 ;
20771 return 0;
20772}
20773_ACEOF
20774rm -f conftest$ac_exeext
3185942a
JA
20775if { (ac_try="$ac_link"
20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20781$as_echo "$ac_try_echo") >&5
20782 (eval "$ac_link") 2>&5
f73dda09 20783 ac_status=$?
3185942a 20784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 20785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
20786 { (case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20789esac
20790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20791$as_echo "$ac_try_echo") >&5
20792 (eval "$ac_try") 2>&5
f73dda09 20793 ac_status=$?
3185942a 20794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
20795 (exit $ac_status); }; }; then
20796 ac_cv_sizeof_int=`cat conftest.val`
ccc6cda3 20797else
3185942a
JA
20798 $as_echo "$as_me: program exited with status $ac_status" >&5
20799$as_echo "$as_me: failed program was:" >&5
0628567a
JA
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
b80f6443 20802( exit $ac_status )
3185942a
JA
20803if test "$ac_cv_type_int" = yes; then
20804 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20806{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
0628567a 20807See \`config.log' for more details." >&5
3185942a 20808$as_echo "$as_me: error: cannot compute sizeof (int)
0628567a 20809See \`config.log' for more details." >&2;}
3185942a
JA
20810 { (exit 77); exit 77; }; }; }
20811 else
20812 ac_cv_sizeof_int=0
20813 fi
ccc6cda3 20814fi
3185942a
JA
20815rm -rf conftest.dSYM
20816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 20817fi
f73dda09 20818rm -f conftest.val
ccc6cda3 20819fi
3185942a
JA
20820{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20821$as_echo "$ac_cv_sizeof_int" >&6; }
ccc6cda3 20822
b80f6443 20823
3185942a
JA
20824
20825cat >>confdefs.h <<_ACEOF
20826#define SIZEOF_INT $ac_cv_sizeof_int
f73dda09 20827_ACEOF
0628567a 20828
f73dda09 20829
3185942a
JA
20830# The cast to long int works around a bug in the HP C Compiler
20831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20833# This bug is HP SR number 8606223364.
20834{ $as_echo "$as_me:$LINENO: checking size of long" >&5
20835$as_echo_n "checking size of long... " >&6; }
f73dda09 20836if test "${ac_cv_sizeof_long+set}" = set; then
3185942a 20837 $as_echo_n "(cached) " >&6
f73dda09 20838else
f73dda09
JA
20839 if test "$cross_compiling" = yes; then
20840 # Depending upon the size, compute the lo and hi bounds.
20841cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
f73dda09
JA
20847$ac_includes_default
20848int
20849main ()
20850{
3185942a 20851static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
b80f6443
JA
20852test_array [0] = 0
20853
f73dda09
JA
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext
3185942a
JA
20859if { (ac_try="$ac_compile"
20860case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863esac
20864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20865$as_echo "$ac_try_echo") >&5
20866 (eval "$ac_compile") 2>conftest.er1
f73dda09 20867 ac_status=$?
0628567a
JA
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
3185942a
JA
20871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
f73dda09
JA
20876 ac_lo=0 ac_mid=0
20877 while :; do
20878 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20879/* confdefs.h. */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h. */
f73dda09
JA
20884$ac_includes_default
20885int
20886main ()
20887{
3185942a 20888static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
b80f6443
JA
20889test_array [0] = 0
20890
f73dda09
JA
20891 ;
20892 return 0;
20893}
20894_ACEOF
20895rm -f conftest.$ac_objext
3185942a
JA
20896if { (ac_try="$ac_compile"
20897case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20900esac
20901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20902$as_echo "$ac_try_echo") >&5
20903 (eval "$ac_compile") 2>conftest.er1
f73dda09 20904 ac_status=$?
0628567a
JA
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
3185942a
JA
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && {
20910 test -z "$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 } && test -s conftest.$ac_objext; then
f73dda09
JA
20913 ac_hi=$ac_mid; break
20914else
3185942a 20915 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
3185942a
JA
20918 ac_lo=`expr $ac_mid + 1`
20919 if test $ac_lo -le $ac_mid; then
20920 ac_lo= ac_hi=
20921 break
20922 fi
20923 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 20924fi
3185942a
JA
20925
20926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 20927 done
ccc6cda3 20928else
3185942a 20929 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
20930sed 's/^/| /' conftest.$ac_ext >&5
20931
3185942a 20932 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20933/* confdefs.h. */
20934_ACEOF
20935cat confdefs.h >>conftest.$ac_ext
20936cat >>conftest.$ac_ext <<_ACEOF
20937/* end confdefs.h. */
b80f6443
JA
20938$ac_includes_default
20939int
20940main ()
20941{
3185942a 20942static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
b80f6443
JA
20943test_array [0] = 0
20944
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest.$ac_objext
3185942a
JA
20950if { (ac_try="$ac_compile"
20951case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954esac
20955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20956$as_echo "$ac_try_echo") >&5
20957 (eval "$ac_compile") 2>conftest.er1
b80f6443 20958 ac_status=$?
0628567a
JA
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
3185942a
JA
20962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
b80f6443 20967 ac_hi=-1 ac_mid=-1
f73dda09
JA
20968 while :; do
20969 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
20970/* confdefs.h. */
20971_ACEOF
20972cat confdefs.h >>conftest.$ac_ext
20973cat >>conftest.$ac_ext <<_ACEOF
20974/* end confdefs.h. */
f73dda09
JA
20975$ac_includes_default
20976int
20977main ()
20978{
3185942a 20979static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
b80f6443
JA
20980test_array [0] = 0
20981
f73dda09
JA
20982 ;
20983 return 0;
20984}
20985_ACEOF
20986rm -f conftest.$ac_objext
3185942a
JA
20987if { (ac_try="$ac_compile"
20988case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20993$as_echo "$ac_try_echo") >&5
20994 (eval "$ac_compile") 2>conftest.er1
f73dda09 20995 ac_status=$?
0628567a
JA
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
3185942a
JA
20999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
f73dda09
JA
21004 ac_lo=$ac_mid; break
21005else
3185942a 21006 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
3185942a
JA
21009 ac_hi=`expr '(' $ac_mid ')' - 1`
21010 if test $ac_mid -le $ac_hi; then
21011 ac_lo= ac_hi=
21012 break
21013 fi
21014 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21015fi
3185942a
JA
21016
21017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21018 done
b80f6443 21019else
3185942a 21020 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21021sed 's/^/| /' conftest.$ac_ext >&5
21022
3185942a 21023 ac_lo= ac_hi=
b80f6443 21024fi
3185942a
JA
21025
21026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 21027fi
3185942a
JA
21028
21029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21030# Binary search between lo and hi bounds.
21031while test "x$ac_lo" != "x$ac_hi"; do
21032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21033 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21034/* confdefs.h. */
21035_ACEOF
21036cat confdefs.h >>conftest.$ac_ext
21037cat >>conftest.$ac_ext <<_ACEOF
21038/* end confdefs.h. */
f73dda09
JA
21039$ac_includes_default
21040int
21041main ()
21042{
3185942a 21043static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
b80f6443
JA
21044test_array [0] = 0
21045
f73dda09
JA
21046 ;
21047 return 0;
21048}
21049_ACEOF
21050rm -f conftest.$ac_objext
3185942a
JA
21051if { (ac_try="$ac_compile"
21052case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055esac
21056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21057$as_echo "$ac_try_echo") >&5
21058 (eval "$ac_compile") 2>conftest.er1
f73dda09 21059 ac_status=$?
0628567a
JA
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
3185942a
JA
21063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
f73dda09
JA
21068 ac_hi=$ac_mid
21069else
3185942a 21070 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21071sed 's/^/| /' conftest.$ac_ext >&5
21072
3185942a 21073 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 21074fi
3185942a
JA
21075
21076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21077done
b80f6443
JA
21078case $ac_lo in
21079?*) ac_cv_sizeof_long=$ac_lo;;
3185942a
JA
21080'') if test "$ac_cv_type_long" = yes; then
21081 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21083{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
0628567a 21084See \`config.log' for more details." >&5
3185942a 21085$as_echo "$as_me: error: cannot compute sizeof (long)
0628567a 21086See \`config.log' for more details." >&2;}
3185942a
JA
21087 { (exit 77); exit 77; }; }; }
21088 else
21089 ac_cv_sizeof_long=0
21090 fi ;;
b80f6443 21091esac
bb70624e 21092else
f73dda09 21093 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21094/* confdefs.h. */
21095_ACEOF
21096cat confdefs.h >>conftest.$ac_ext
21097cat >>conftest.$ac_ext <<_ACEOF
21098/* end confdefs.h. */
f73dda09 21099$ac_includes_default
3185942a
JA
21100static long int longval () { return (long int) (sizeof (long)); }
21101static unsigned long int ulongval () { return (long int) (sizeof (long)); }
b80f6443
JA
21102#include <stdio.h>
21103#include <stdlib.h>
f73dda09
JA
21104int
21105main ()
bb70624e 21106{
b80f6443
JA
21107
21108 FILE *f = fopen ("conftest.val", "w");
21109 if (! f)
3185942a
JA
21110 return 1;
21111 if (((long int) (sizeof (long))) < 0)
b80f6443 21112 {
3185942a
JA
21113 long int i = longval ();
21114 if (i != ((long int) (sizeof (long))))
21115 return 1;
21116 fprintf (f, "%ld", i);
b80f6443
JA
21117 }
21118 else
21119 {
3185942a
JA
21120 unsigned long int i = ulongval ();
21121 if (i != ((long int) (sizeof (long))))
21122 return 1;
21123 fprintf (f, "%lu", i);
b80f6443 21124 }
3185942a
JA
21125 /* Do not output a trailing newline, as this causes \r\n confusion
21126 on some platforms. */
21127 return ferror (f) || fclose (f) != 0;
b80f6443 21128
f73dda09
JA
21129 ;
21130 return 0;
bb70624e 21131}
f73dda09
JA
21132_ACEOF
21133rm -f conftest$ac_exeext
3185942a
JA
21134if { (ac_try="$ac_link"
21135case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21140$as_echo "$ac_try_echo") >&5
21141 (eval "$ac_link") 2>&5
f73dda09 21142 ac_status=$?
3185942a 21143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
21145 { (case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148esac
21149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21150$as_echo "$ac_try_echo") >&5
21151 (eval "$ac_try") 2>&5
f73dda09 21152 ac_status=$?
3185942a 21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21154 (exit $ac_status); }; }; then
21155 ac_cv_sizeof_long=`cat conftest.val`
bb70624e 21156else
3185942a
JA
21157 $as_echo "$as_me: program exited with status $ac_status" >&5
21158$as_echo "$as_me: failed program was:" >&5
0628567a
JA
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
b80f6443 21161( exit $ac_status )
3185942a
JA
21162if test "$ac_cv_type_long" = yes; then
21163 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21165{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
0628567a 21166See \`config.log' for more details." >&5
3185942a 21167$as_echo "$as_me: error: cannot compute sizeof (long)
0628567a 21168See \`config.log' for more details." >&2;}
3185942a
JA
21169 { (exit 77); exit 77; }; }; }
21170 else
21171 ac_cv_sizeof_long=0
21172 fi
bb70624e 21173fi
3185942a
JA
21174rm -rf conftest.dSYM
21175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 21176fi
f73dda09 21177rm -f conftest.val
f73dda09 21178fi
3185942a
JA
21179{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21180$as_echo "$ac_cv_sizeof_long" >&6; }
bb70624e 21181
b80f6443 21182
3185942a
JA
21183
21184cat >>confdefs.h <<_ACEOF
21185#define SIZEOF_LONG $ac_cv_sizeof_long
f73dda09 21186_ACEOF
0628567a 21187
f73dda09 21188
3185942a
JA
21189# The cast to long int works around a bug in the HP C Compiler
21190# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21191# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21192# This bug is HP SR number 8606223364.
21193{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
21194$as_echo_n "checking size of char *... " >&6; }
f73dda09 21195if test "${ac_cv_sizeof_char_p+set}" = set; then
3185942a 21196 $as_echo_n "(cached) " >&6
f73dda09 21197else
f73dda09
JA
21198 if test "$cross_compiling" = yes; then
21199 # Depending upon the size, compute the lo and hi bounds.
21200cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21201/* confdefs.h. */
21202_ACEOF
21203cat confdefs.h >>conftest.$ac_ext
21204cat >>conftest.$ac_ext <<_ACEOF
21205/* end confdefs.h. */
f73dda09
JA
21206$ac_includes_default
21207int
21208main ()
21209{
3185942a 21210static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
b80f6443
JA
21211test_array [0] = 0
21212
f73dda09
JA
21213 ;
21214 return 0;
21215}
21216_ACEOF
21217rm -f conftest.$ac_objext
3185942a
JA
21218if { (ac_try="$ac_compile"
21219case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222esac
21223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21224$as_echo "$ac_try_echo") >&5
21225 (eval "$ac_compile") 2>conftest.er1
f73dda09 21226 ac_status=$?
0628567a
JA
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
3185942a
JA
21230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest.$ac_objext; then
f73dda09
JA
21235 ac_lo=0 ac_mid=0
21236 while :; do
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{
3185942a 21247static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
b80f6443
JA
21248test_array [0] = 0
21249
f73dda09
JA
21250 ;
21251 return 0;
21252}
21253_ACEOF
21254rm -f conftest.$ac_objext
3185942a
JA
21255if { (ac_try="$ac_compile"
21256case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21259esac
21260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21261$as_echo "$ac_try_echo") >&5
21262 (eval "$ac_compile") 2>conftest.er1
f73dda09 21263 ac_status=$?
0628567a
JA
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
3185942a
JA
21267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest.$ac_objext; then
f73dda09
JA
21272 ac_hi=$ac_mid; break
21273else
3185942a 21274 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21275sed 's/^/| /' conftest.$ac_ext >&5
21276
3185942a
JA
21277 ac_lo=`expr $ac_mid + 1`
21278 if test $ac_lo -le $ac_mid; then
21279 ac_lo= ac_hi=
21280 break
21281 fi
21282 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 21283fi
3185942a
JA
21284
21285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21286 done
21287else
3185942a 21288 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21289sed 's/^/| /' conftest.$ac_ext >&5
21290
3185942a 21291 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
b80f6443
JA
21297$ac_includes_default
21298int
21299main ()
21300{
3185942a 21301static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
b80f6443
JA
21302test_array [0] = 0
21303
21304 ;
21305 return 0;
21306}
21307_ACEOF
21308rm -f conftest.$ac_objext
3185942a
JA
21309if { (ac_try="$ac_compile"
21310case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313esac
21314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21315$as_echo "$ac_try_echo") >&5
21316 (eval "$ac_compile") 2>conftest.er1
b80f6443 21317 ac_status=$?
0628567a
JA
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
3185942a
JA
21321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest.$ac_objext; then
b80f6443 21326 ac_hi=-1 ac_mid=-1
f73dda09
JA
21327 while :; do
21328 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
f73dda09
JA
21334$ac_includes_default
21335int
21336main ()
21337{
3185942a 21338static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
b80f6443
JA
21339test_array [0] = 0
21340
f73dda09
JA
21341 ;
21342 return 0;
21343}
21344_ACEOF
21345rm -f conftest.$ac_objext
3185942a
JA
21346if { (ac_try="$ac_compile"
21347case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350esac
21351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21352$as_echo "$ac_try_echo") >&5
21353 (eval "$ac_compile") 2>conftest.er1
f73dda09 21354 ac_status=$?
0628567a
JA
21355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
3185942a
JA
21358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest.$ac_objext; then
f73dda09
JA
21363 ac_lo=$ac_mid; break
21364else
3185942a 21365 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21366sed 's/^/| /' conftest.$ac_ext >&5
21367
3185942a
JA
21368 ac_hi=`expr '(' $ac_mid ')' - 1`
21369 if test $ac_mid -le $ac_hi; then
21370 ac_lo= ac_hi=
21371 break
21372 fi
21373 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21374fi
3185942a
JA
21375
21376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21377 done
b80f6443 21378else
3185942a 21379 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21380sed 's/^/| /' conftest.$ac_ext >&5
21381
3185942a 21382 ac_lo= ac_hi=
b80f6443 21383fi
3185942a
JA
21384
21385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21386fi
3185942a
JA
21387
21388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21389# Binary search between lo and hi bounds.
21390while test "x$ac_lo" != "x$ac_hi"; do
21391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21392 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21393/* confdefs.h. */
21394_ACEOF
21395cat confdefs.h >>conftest.$ac_ext
21396cat >>conftest.$ac_ext <<_ACEOF
21397/* end confdefs.h. */
f73dda09
JA
21398$ac_includes_default
21399int
21400main ()
21401{
3185942a 21402static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
b80f6443
JA
21403test_array [0] = 0
21404
f73dda09
JA
21405 ;
21406 return 0;
21407}
21408_ACEOF
21409rm -f conftest.$ac_objext
3185942a
JA
21410if { (ac_try="$ac_compile"
21411case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414esac
21415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21416$as_echo "$ac_try_echo") >&5
21417 (eval "$ac_compile") 2>conftest.er1
f73dda09 21418 ac_status=$?
0628567a
JA
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
3185942a
JA
21422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
f73dda09
JA
21427 ac_hi=$ac_mid
21428else
3185942a 21429 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21430sed 's/^/| /' conftest.$ac_ext >&5
21431
3185942a 21432 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 21433fi
3185942a
JA
21434
21435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21436done
b80f6443
JA
21437case $ac_lo in
21438?*) ac_cv_sizeof_char_p=$ac_lo;;
3185942a
JA
21439'') if test "$ac_cv_type_char_p" = yes; then
21440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21442{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
0628567a 21443See \`config.log' for more details." >&5
3185942a 21444$as_echo "$as_me: error: cannot compute sizeof (char *)
0628567a 21445See \`config.log' for more details." >&2;}
3185942a
JA
21446 { (exit 77); exit 77; }; }; }
21447 else
21448 ac_cv_sizeof_char_p=0
21449 fi ;;
b80f6443 21450esac
bb70624e 21451else
f73dda09 21452 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21453/* confdefs.h. */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h. */
f73dda09 21458$ac_includes_default
3185942a
JA
21459static long int longval () { return (long int) (sizeof (char *)); }
21460static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
b80f6443
JA
21461#include <stdio.h>
21462#include <stdlib.h>
f73dda09
JA
21463int
21464main ()
bb70624e 21465{
b80f6443
JA
21466
21467 FILE *f = fopen ("conftest.val", "w");
21468 if (! f)
3185942a
JA
21469 return 1;
21470 if (((long int) (sizeof (char *))) < 0)
b80f6443 21471 {
3185942a
JA
21472 long int i = longval ();
21473 if (i != ((long int) (sizeof (char *))))
21474 return 1;
21475 fprintf (f, "%ld", i);
b80f6443
JA
21476 }
21477 else
21478 {
3185942a
JA
21479 unsigned long int i = ulongval ();
21480 if (i != ((long int) (sizeof (char *))))
21481 return 1;
21482 fprintf (f, "%lu", i);
b80f6443 21483 }
3185942a
JA
21484 /* Do not output a trailing newline, as this causes \r\n confusion
21485 on some platforms. */
21486 return ferror (f) || fclose (f) != 0;
b80f6443 21487
f73dda09
JA
21488 ;
21489 return 0;
bb70624e 21490}
f73dda09
JA
21491_ACEOF
21492rm -f conftest$ac_exeext
3185942a
JA
21493if { (ac_try="$ac_link"
21494case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21497esac
21498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21499$as_echo "$ac_try_echo") >&5
21500 (eval "$ac_link") 2>&5
f73dda09 21501 ac_status=$?
3185942a 21502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
21504 { (case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21507esac
21508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21509$as_echo "$ac_try_echo") >&5
21510 (eval "$ac_try") 2>&5
f73dda09 21511 ac_status=$?
3185942a 21512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21513 (exit $ac_status); }; }; then
21514 ac_cv_sizeof_char_p=`cat conftest.val`
bb70624e 21515else
3185942a
JA
21516 $as_echo "$as_me: program exited with status $ac_status" >&5
21517$as_echo "$as_me: failed program was:" >&5
0628567a
JA
21518sed 's/^/| /' conftest.$ac_ext >&5
21519
b80f6443 21520( exit $ac_status )
3185942a
JA
21521if test "$ac_cv_type_char_p" = yes; then
21522 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21524{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
0628567a 21525See \`config.log' for more details." >&5
3185942a 21526$as_echo "$as_me: error: cannot compute sizeof (char *)
0628567a 21527See \`config.log' for more details." >&2;}
3185942a
JA
21528 { (exit 77); exit 77; }; }; }
21529 else
21530 ac_cv_sizeof_char_p=0
21531 fi
bb70624e 21532fi
3185942a
JA
21533rm -rf conftest.dSYM
21534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 21535fi
f73dda09 21536rm -f conftest.val
f73dda09 21537fi
3185942a
JA
21538{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
21539$as_echo "$ac_cv_sizeof_char_p" >&6; }
bb70624e 21540
b80f6443 21541
3185942a
JA
21542
21543cat >>confdefs.h <<_ACEOF
21544#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
f73dda09 21545_ACEOF
0628567a 21546
f73dda09 21547
3185942a
JA
21548# The cast to long int works around a bug in the HP C Compiler
21549# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21550# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21551# This bug is HP SR number 8606223364.
21552{ $as_echo "$as_me:$LINENO: checking size of double" >&5
21553$as_echo_n "checking size of double... " >&6; }
f73dda09 21554if test "${ac_cv_sizeof_double+set}" = set; then
3185942a 21555 $as_echo_n "(cached) " >&6
f73dda09 21556else
cce855bc 21557 if test "$cross_compiling" = yes; then
f73dda09
JA
21558 # Depending upon the size, compute the lo and hi bounds.
21559cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21560/* confdefs.h. */
21561_ACEOF
21562cat confdefs.h >>conftest.$ac_ext
21563cat >>conftest.$ac_ext <<_ACEOF
21564/* end confdefs.h. */
f73dda09
JA
21565$ac_includes_default
21566int
21567main ()
cce855bc 21568{
3185942a 21569static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
b80f6443
JA
21570test_array [0] = 0
21571
f73dda09
JA
21572 ;
21573 return 0;
cce855bc 21574}
f73dda09
JA
21575_ACEOF
21576rm -f conftest.$ac_objext
3185942a
JA
21577if { (ac_try="$ac_compile"
21578case "(($ac_try" in
21579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21581esac
21582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21583$as_echo "$ac_try_echo") >&5
21584 (eval "$ac_compile") 2>conftest.er1
f73dda09 21585 ac_status=$?
0628567a
JA
21586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
3185942a
JA
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest.$ac_objext; then
f73dda09
JA
21594 ac_lo=0 ac_mid=0
21595 while :; do
21596 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
f73dda09
JA
21602$ac_includes_default
21603int
21604main ()
21605{
3185942a 21606static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
b80f6443
JA
21607test_array [0] = 0
21608
f73dda09
JA
21609 ;
21610 return 0;
21611}
21612_ACEOF
21613rm -f conftest.$ac_objext
3185942a
JA
21614if { (ac_try="$ac_compile"
21615case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21618esac
21619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21620$as_echo "$ac_try_echo") >&5
21621 (eval "$ac_compile") 2>conftest.er1
f73dda09 21622 ac_status=$?
0628567a
JA
21623 grep -v '^ *+' conftest.er1 >conftest.err
21624 rm -f conftest.er1
21625 cat conftest.err >&5
3185942a
JA
21626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && {
21628 test -z "$ac_c_werror_flag" ||
21629 test ! -s conftest.err
21630 } && test -s conftest.$ac_objext; then
f73dda09
JA
21631 ac_hi=$ac_mid; break
21632else
3185942a 21633 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21634sed 's/^/| /' conftest.$ac_ext >&5
21635
3185942a
JA
21636 ac_lo=`expr $ac_mid + 1`
21637 if test $ac_lo -le $ac_mid; then
21638 ac_lo= ac_hi=
21639 break
21640 fi
21641 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 21642fi
3185942a
JA
21643
21644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21645 done
cce855bc 21646else
3185942a 21647 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
3185942a 21650 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
b80f6443
JA
21656$ac_includes_default
21657int
21658main ()
21659{
3185942a 21660static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
b80f6443
JA
21661test_array [0] = 0
21662
21663 ;
21664 return 0;
21665}
21666_ACEOF
21667rm -f conftest.$ac_objext
3185942a
JA
21668if { (ac_try="$ac_compile"
21669case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21672esac
21673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21674$as_echo "$ac_try_echo") >&5
21675 (eval "$ac_compile") 2>conftest.er1
b80f6443 21676 ac_status=$?
0628567a
JA
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
3185942a
JA
21680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } && {
21682 test -z "$ac_c_werror_flag" ||
21683 test ! -s conftest.err
21684 } && test -s conftest.$ac_objext; then
b80f6443 21685 ac_hi=-1 ac_mid=-1
f73dda09
JA
21686 while :; do
21687 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21688/* confdefs.h. */
21689_ACEOF
21690cat confdefs.h >>conftest.$ac_ext
21691cat >>conftest.$ac_ext <<_ACEOF
21692/* end confdefs.h. */
f73dda09
JA
21693$ac_includes_default
21694int
21695main ()
21696{
3185942a 21697static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
b80f6443
JA
21698test_array [0] = 0
21699
f73dda09
JA
21700 ;
21701 return 0;
21702}
21703_ACEOF
21704rm -f conftest.$ac_objext
3185942a
JA
21705if { (ac_try="$ac_compile"
21706case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709esac
21710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21711$as_echo "$ac_try_echo") >&5
21712 (eval "$ac_compile") 2>conftest.er1
f73dda09 21713 ac_status=$?
0628567a
JA
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
3185942a
JA
21717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && {
21719 test -z "$ac_c_werror_flag" ||
21720 test ! -s conftest.err
21721 } && test -s conftest.$ac_objext; then
f73dda09
JA
21722 ac_lo=$ac_mid; break
21723else
3185942a 21724 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21725sed 's/^/| /' conftest.$ac_ext >&5
21726
3185942a
JA
21727 ac_hi=`expr '(' $ac_mid ')' - 1`
21728 if test $ac_mid -le $ac_hi; then
21729 ac_lo= ac_hi=
21730 break
21731 fi
21732 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 21733fi
3185942a
JA
21734
21735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21736 done
b80f6443 21737else
3185942a 21738 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21739sed 's/^/| /' conftest.$ac_ext >&5
21740
3185942a 21741 ac_lo= ac_hi=
b80f6443 21742fi
3185942a
JA
21743
21744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 21745fi
3185942a
JA
21746
21747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
21748# Binary search between lo and hi bounds.
21749while test "x$ac_lo" != "x$ac_hi"; do
21750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21751 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21752/* confdefs.h. */
21753_ACEOF
21754cat confdefs.h >>conftest.$ac_ext
21755cat >>conftest.$ac_ext <<_ACEOF
21756/* end confdefs.h. */
f73dda09
JA
21757$ac_includes_default
21758int
21759main ()
21760{
3185942a 21761static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
b80f6443
JA
21762test_array [0] = 0
21763
f73dda09
JA
21764 ;
21765 return 0;
21766}
21767_ACEOF
21768rm -f conftest.$ac_objext
3185942a
JA
21769if { (ac_try="$ac_compile"
21770case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773esac
21774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21775$as_echo "$ac_try_echo") >&5
21776 (eval "$ac_compile") 2>conftest.er1
f73dda09 21777 ac_status=$?
0628567a
JA
21778 grep -v '^ *+' conftest.er1 >conftest.err
21779 rm -f conftest.er1
21780 cat conftest.err >&5
3185942a
JA
21781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && {
21783 test -z "$ac_c_werror_flag" ||
21784 test ! -s conftest.err
21785 } && test -s conftest.$ac_objext; then
f73dda09
JA
21786 ac_hi=$ac_mid
21787else
3185942a 21788 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21789sed 's/^/| /' conftest.$ac_ext >&5
21790
3185942a 21791 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 21792fi
3185942a
JA
21793
21794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 21795done
b80f6443
JA
21796case $ac_lo in
21797?*) ac_cv_sizeof_double=$ac_lo;;
3185942a
JA
21798'') if test "$ac_cv_type_double" = yes; then
21799 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21801{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
0628567a 21802See \`config.log' for more details." >&5
3185942a 21803$as_echo "$as_me: error: cannot compute sizeof (double)
0628567a 21804See \`config.log' for more details." >&2;}
3185942a
JA
21805 { (exit 77); exit 77; }; }; }
21806 else
21807 ac_cv_sizeof_double=0
21808 fi ;;
b80f6443 21809esac
cce855bc 21810else
f73dda09 21811 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21812/* confdefs.h. */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h. */
f73dda09 21817$ac_includes_default
3185942a
JA
21818static long int longval () { return (long int) (sizeof (double)); }
21819static unsigned long int ulongval () { return (long int) (sizeof (double)); }
b80f6443
JA
21820#include <stdio.h>
21821#include <stdlib.h>
f73dda09
JA
21822int
21823main ()
cce855bc 21824{
b80f6443
JA
21825
21826 FILE *f = fopen ("conftest.val", "w");
21827 if (! f)
3185942a
JA
21828 return 1;
21829 if (((long int) (sizeof (double))) < 0)
b80f6443 21830 {
3185942a
JA
21831 long int i = longval ();
21832 if (i != ((long int) (sizeof (double))))
21833 return 1;
21834 fprintf (f, "%ld", i);
b80f6443
JA
21835 }
21836 else
21837 {
3185942a
JA
21838 unsigned long int i = ulongval ();
21839 if (i != ((long int) (sizeof (double))))
21840 return 1;
21841 fprintf (f, "%lu", i);
b80f6443 21842 }
3185942a
JA
21843 /* Do not output a trailing newline, as this causes \r\n confusion
21844 on some platforms. */
21845 return ferror (f) || fclose (f) != 0;
b80f6443 21846
f73dda09
JA
21847 ;
21848 return 0;
cce855bc 21849}
f73dda09
JA
21850_ACEOF
21851rm -f conftest$ac_exeext
3185942a
JA
21852if { (ac_try="$ac_link"
21853case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21856esac
21857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21858$as_echo "$ac_try_echo") >&5
21859 (eval "$ac_link") 2>&5
f73dda09 21860 ac_status=$?
3185942a 21861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 21862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
21863 { (case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866esac
21867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21868$as_echo "$ac_try_echo") >&5
21869 (eval "$ac_try") 2>&5
f73dda09 21870 ac_status=$?
3185942a 21871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
21872 (exit $ac_status); }; }; then
21873 ac_cv_sizeof_double=`cat conftest.val`
cce855bc 21874else
3185942a
JA
21875 $as_echo "$as_me: program exited with status $ac_status" >&5
21876$as_echo "$as_me: failed program was:" >&5
0628567a
JA
21877sed 's/^/| /' conftest.$ac_ext >&5
21878
b80f6443 21879( exit $ac_status )
3185942a
JA
21880if test "$ac_cv_type_double" = yes; then
21881 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21883{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
0628567a 21884See \`config.log' for more details." >&5
3185942a 21885$as_echo "$as_me: error: cannot compute sizeof (double)
0628567a 21886See \`config.log' for more details." >&2;}
3185942a
JA
21887 { (exit 77); exit 77; }; }; }
21888 else
21889 ac_cv_sizeof_double=0
21890 fi
cce855bc 21891fi
3185942a
JA
21892rm -rf conftest.dSYM
21893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cce855bc 21894fi
f73dda09 21895rm -f conftest.val
f73dda09 21896fi
3185942a
JA
21897{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21898$as_echo "$ac_cv_sizeof_double" >&6; }
cce855bc 21899
b80f6443 21900
3185942a
JA
21901
21902cat >>confdefs.h <<_ACEOF
21903#define SIZEOF_DOUBLE $ac_cv_sizeof_double
f73dda09 21904_ACEOF
0628567a 21905
f73dda09 21906
3185942a
JA
21907# The cast to long int works around a bug in the HP C Compiler
21908# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21909# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21910# This bug is HP SR number 8606223364.
21911{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
21912$as_echo_n "checking size of long long... " >&6; }
f73dda09 21913if test "${ac_cv_sizeof_long_long+set}" = set; then
3185942a 21914 $as_echo_n "(cached) " >&6
f73dda09 21915else
cce855bc 21916 if test "$cross_compiling" = yes; then
f73dda09
JA
21917 # Depending upon the size, compute the lo and hi bounds.
21918cat >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 ()
cce855bc 21927{
3185942a 21928static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
b80f6443
JA
21929test_array [0] = 0
21930
f73dda09
JA
21931 ;
21932 return 0;
cce855bc 21933}
f73dda09
JA
21934_ACEOF
21935rm -f conftest.$ac_objext
3185942a
JA
21936if { (ac_try="$ac_compile"
21937case "(($ac_try" in
21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939 *) ac_try_echo=$ac_try;;
21940esac
21941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21942$as_echo "$ac_try_echo") >&5
21943 (eval "$ac_compile") 2>conftest.er1
f73dda09 21944 ac_status=$?
0628567a
JA
21945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
3185942a
JA
21948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } && {
21950 test -z "$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 } && test -s conftest.$ac_objext; then
f73dda09
JA
21953 ac_lo=0 ac_mid=0
21954 while :; do
21955 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
21956/* confdefs.h. */
21957_ACEOF
21958cat confdefs.h >>conftest.$ac_ext
21959cat >>conftest.$ac_ext <<_ACEOF
21960/* end confdefs.h. */
f73dda09
JA
21961$ac_includes_default
21962int
21963main ()
21964{
3185942a 21965static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
b80f6443
JA
21966test_array [0] = 0
21967
f73dda09
JA
21968 ;
21969 return 0;
21970}
21971_ACEOF
21972rm -f conftest.$ac_objext
3185942a
JA
21973if { (ac_try="$ac_compile"
21974case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21977esac
21978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21979$as_echo "$ac_try_echo") >&5
21980 (eval "$ac_compile") 2>conftest.er1
f73dda09 21981 ac_status=$?
0628567a
JA
21982 grep -v '^ *+' conftest.er1 >conftest.err
21983 rm -f conftest.er1
21984 cat conftest.err >&5
3185942a
JA
21985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
f73dda09
JA
21990 ac_hi=$ac_mid; break
21991else
3185942a 21992 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
21993sed 's/^/| /' conftest.$ac_ext >&5
21994
3185942a
JA
21995 ac_lo=`expr $ac_mid + 1`
21996 if test $ac_lo -le $ac_mid; then
21997 ac_lo= ac_hi=
21998 break
21999 fi
22000 ac_mid=`expr 2 '*' $ac_mid + 1`
f73dda09 22001fi
3185942a
JA
22002
22003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22004 done
cce855bc 22005else
3185942a 22006 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
3185942a 22009 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22010/* confdefs.h. */
22011_ACEOF
22012cat confdefs.h >>conftest.$ac_ext
22013cat >>conftest.$ac_ext <<_ACEOF
22014/* end confdefs.h. */
b80f6443
JA
22015$ac_includes_default
22016int
22017main ()
22018{
3185942a 22019static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
b80f6443
JA
22020test_array [0] = 0
22021
22022 ;
22023 return 0;
22024}
22025_ACEOF
22026rm -f conftest.$ac_objext
3185942a
JA
22027if { (ac_try="$ac_compile"
22028case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031esac
22032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22033$as_echo "$ac_try_echo") >&5
22034 (eval "$ac_compile") 2>conftest.er1
b80f6443 22035 ac_status=$?
0628567a
JA
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
3185942a
JA
22039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
b80f6443 22044 ac_hi=-1 ac_mid=-1
f73dda09
JA
22045 while :; do
22046 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22047/* confdefs.h. */
22048_ACEOF
22049cat confdefs.h >>conftest.$ac_ext
22050cat >>conftest.$ac_ext <<_ACEOF
22051/* end confdefs.h. */
f73dda09
JA
22052$ac_includes_default
22053int
22054main ()
22055{
3185942a 22056static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
b80f6443
JA
22057test_array [0] = 0
22058
f73dda09
JA
22059 ;
22060 return 0;
22061}
22062_ACEOF
22063rm -f conftest.$ac_objext
3185942a
JA
22064if { (ac_try="$ac_compile"
22065case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068esac
22069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070$as_echo "$ac_try_echo") >&5
22071 (eval "$ac_compile") 2>conftest.er1
f73dda09 22072 ac_status=$?
0628567a
JA
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
3185942a
JA
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest.$ac_objext; then
f73dda09
JA
22081 ac_lo=$ac_mid; break
22082else
3185942a 22083 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22084sed 's/^/| /' conftest.$ac_ext >&5
22085
3185942a
JA
22086 ac_hi=`expr '(' $ac_mid ')' - 1`
22087 if test $ac_mid -le $ac_hi; then
22088 ac_lo= ac_hi=
22089 break
22090 fi
22091 ac_mid=`expr 2 '*' $ac_mid`
f73dda09 22092fi
3185942a
JA
22093
22094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22095 done
b80f6443 22096else
3185942a 22097 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22098sed 's/^/| /' conftest.$ac_ext >&5
22099
3185942a 22100 ac_lo= ac_hi=
b80f6443 22101fi
3185942a
JA
22102
22103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22104fi
3185942a
JA
22105
22106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09
JA
22107# Binary search between lo and hi bounds.
22108while test "x$ac_lo" != "x$ac_hi"; do
22109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22110 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22111/* confdefs.h. */
22112_ACEOF
22113cat confdefs.h >>conftest.$ac_ext
22114cat >>conftest.$ac_ext <<_ACEOF
22115/* end confdefs.h. */
f73dda09
JA
22116$ac_includes_default
22117int
22118main ()
22119{
3185942a 22120static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
b80f6443
JA
22121test_array [0] = 0
22122
f73dda09
JA
22123 ;
22124 return 0;
22125}
22126_ACEOF
22127rm -f conftest.$ac_objext
3185942a
JA
22128if { (ac_try="$ac_compile"
22129case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22132esac
22133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22134$as_echo "$ac_try_echo") >&5
22135 (eval "$ac_compile") 2>conftest.er1
f73dda09 22136 ac_status=$?
0628567a
JA
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
3185942a
JA
22140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest.$ac_objext; then
f73dda09
JA
22145 ac_hi=$ac_mid
22146else
3185942a 22147 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22148sed 's/^/| /' conftest.$ac_ext >&5
22149
3185942a 22150 ac_lo=`expr '(' $ac_mid ')' + 1`
f73dda09 22151fi
3185942a
JA
22152
22153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 22154done
b80f6443
JA
22155case $ac_lo in
22156?*) ac_cv_sizeof_long_long=$ac_lo;;
3185942a
JA
22157'') if test "$ac_cv_type_long_long" = yes; then
22158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22160{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
0628567a 22161See \`config.log' for more details." >&5
3185942a 22162$as_echo "$as_me: error: cannot compute sizeof (long long)
0628567a 22163See \`config.log' for more details." >&2;}
3185942a
JA
22164 { (exit 77); exit 77; }; }; }
22165 else
22166 ac_cv_sizeof_long_long=0
22167 fi ;;
b80f6443 22168esac
bb70624e 22169else
f73dda09 22170 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h. */
f73dda09 22176$ac_includes_default
3185942a
JA
22177static long int longval () { return (long int) (sizeof (long long)); }
22178static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
b80f6443
JA
22179#include <stdio.h>
22180#include <stdlib.h>
f73dda09
JA
22181int
22182main ()
bb70624e 22183{
b80f6443
JA
22184
22185 FILE *f = fopen ("conftest.val", "w");
22186 if (! f)
3185942a
JA
22187 return 1;
22188 if (((long int) (sizeof (long long))) < 0)
b80f6443 22189 {
3185942a
JA
22190 long int i = longval ();
22191 if (i != ((long int) (sizeof (long long))))
22192 return 1;
22193 fprintf (f, "%ld", i);
b80f6443
JA
22194 }
22195 else
22196 {
3185942a
JA
22197 unsigned long int i = ulongval ();
22198 if (i != ((long int) (sizeof (long long))))
22199 return 1;
22200 fprintf (f, "%lu", i);
b80f6443 22201 }
3185942a
JA
22202 /* Do not output a trailing newline, as this causes \r\n confusion
22203 on some platforms. */
22204 return ferror (f) || fclose (f) != 0;
b80f6443 22205
f73dda09
JA
22206 ;
22207 return 0;
bb70624e 22208}
f73dda09
JA
22209_ACEOF
22210rm -f conftest$ac_exeext
3185942a
JA
22211if { (ac_try="$ac_link"
22212case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215esac
22216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22217$as_echo "$ac_try_echo") >&5
22218 (eval "$ac_link") 2>&5
f73dda09 22219 ac_status=$?
3185942a 22220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 22221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
22222 { (case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225esac
22226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227$as_echo "$ac_try_echo") >&5
22228 (eval "$ac_try") 2>&5
f73dda09 22229 ac_status=$?
3185942a 22230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
22231 (exit $ac_status); }; }; then
22232 ac_cv_sizeof_long_long=`cat conftest.val`
bb70624e 22233else
3185942a
JA
22234 $as_echo "$as_me: program exited with status $ac_status" >&5
22235$as_echo "$as_me: failed program was:" >&5
0628567a
JA
22236sed 's/^/| /' conftest.$ac_ext >&5
22237
b80f6443 22238( exit $ac_status )
3185942a
JA
22239if test "$ac_cv_type_long_long" = yes; then
22240 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22242{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
0628567a 22243See \`config.log' for more details." >&5
3185942a 22244$as_echo "$as_me: error: cannot compute sizeof (long long)
0628567a 22245See \`config.log' for more details." >&2;}
3185942a
JA
22246 { (exit 77); exit 77; }; }; }
22247 else
22248 ac_cv_sizeof_long_long=0
22249 fi
bb70624e 22250fi
3185942a
JA
22251rm -rf conftest.dSYM
22252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bb70624e 22253fi
f73dda09 22254rm -f conftest.val
f73dda09 22255fi
3185942a
JA
22256{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22257$as_echo "$ac_cv_sizeof_long_long" >&6; }
22258
22259
22260
b80f6443 22261cat >>confdefs.h <<_ACEOF
f73dda09 22262#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
b80f6443 22263_ACEOF
bb70624e 22264
b80f6443
JA
22265
22266
3185942a
JA
22267{ $as_echo "$as_me:$LINENO: checking for u_int" >&5
22268$as_echo_n "checking for u_int... " >&6; }
f73dda09 22269if test "${ac_cv_type_u_int+set}" = set; then
3185942a 22270 $as_echo_n "(cached) " >&6
bb70624e 22271else
3185942a
JA
22272 ac_cv_type_u_int=no
22273cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
f73dda09
JA
22279$ac_includes_default
22280int
22281main ()
22282{
f73dda09 22283if (sizeof (u_int))
3185942a 22284 return 0;
f73dda09
JA
22285 ;
22286 return 0;
22287}
22288_ACEOF
22289rm -f conftest.$ac_objext
3185942a
JA
22290if { (ac_try="$ac_compile"
22291case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294esac
22295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22296$as_echo "$ac_try_echo") >&5
22297 (eval "$ac_compile") 2>conftest.er1
f73dda09 22298 ac_status=$?
0628567a
JA
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
3185942a
JA
22302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } && {
22304 test -z "$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 } && test -s conftest.$ac_objext; then
f73dda09 22307 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22308/* confdefs.h. */
22309_ACEOF
22310cat confdefs.h >>conftest.$ac_ext
22311cat >>conftest.$ac_ext <<_ACEOF
22312/* end confdefs.h. */
f73dda09
JA
22313$ac_includes_default
22314int
22315main ()
22316{
3185942a
JA
22317if (sizeof ((u_int)))
22318 return 0;
f73dda09
JA
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323rm -f conftest.$ac_objext
3185942a
JA
22324if { (ac_try="$ac_compile"
22325case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328esac
22329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22330$as_echo "$ac_try_echo") >&5
22331 (eval "$ac_compile") 2>conftest.er1
f73dda09 22332 ac_status=$?
0628567a
JA
22333 grep -v '^ *+' conftest.er1 >conftest.err
22334 rm -f conftest.er1
22335 cat conftest.err >&5
3185942a
JA
22336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest.$ac_objext; then
22341 :
22342else
22343 $as_echo "$as_me: failed program was:" >&5
22344sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 ac_cv_type_u_int=yes
22347fi
22348
22349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 22350else
3185942a 22351 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22352sed 's/^/| /' conftest.$ac_ext >&5
22353
3185942a 22354
bb70624e 22355fi
3185942a
JA
22356
22357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 22358fi
3185942a
JA
22359{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
22360$as_echo "$ac_cv_type_u_int" >&6; }
22361if test "x$ac_cv_type_u_int" = x""yes; then
f73dda09
JA
22362 :
22363else
22364
b80f6443 22365cat >>confdefs.h <<_ACEOF
3185942a 22366#define u_int unsigned int
b80f6443 22367_ACEOF
bb70624e
JA
22368
22369fi
22370
3185942a
JA
22371{ $as_echo "$as_me:$LINENO: checking for u_long" >&5
22372$as_echo_n "checking for u_long... " >&6; }
22373if test "${ac_cv_type_u_long+set}" = set; then
22374 $as_echo_n "(cached) " >&6
bb70624e 22375else
3185942a
JA
22376 ac_cv_type_u_long=no
22377cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
f73dda09
JA
22383$ac_includes_default
22384int
22385main ()
22386{
3185942a
JA
22387if (sizeof (u_long))
22388 return 0;
f73dda09
JA
22389 ;
22390 return 0;
22391}
22392_ACEOF
22393rm -f conftest.$ac_objext
3185942a
JA
22394if { (ac_try="$ac_compile"
22395case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400$as_echo "$ac_try_echo") >&5
22401 (eval "$ac_compile") 2>conftest.er1
f73dda09 22402 ac_status=$?
0628567a
JA
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
3185942a
JA
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
f73dda09 22411 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
f73dda09
JA
22417$ac_includes_default
22418int
22419main ()
22420{
3185942a
JA
22421if (sizeof ((u_long)))
22422 return 0;
f73dda09
JA
22423 ;
22424 return 0;
22425}
22426_ACEOF
22427rm -f conftest.$ac_objext
3185942a
JA
22428if { (ac_try="$ac_compile"
22429case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22432esac
22433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22434$as_echo "$ac_try_echo") >&5
22435 (eval "$ac_compile") 2>conftest.er1
f73dda09 22436 ac_status=$?
0628567a
JA
22437 grep -v '^ *+' conftest.er1 >conftest.err
22438 rm -f conftest.er1
22439 cat conftest.err >&5
3185942a
JA
22440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 :
22446else
22447 $as_echo "$as_me: failed program was:" >&5
22448sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 ac_cv_type_u_long=yes
22451fi
22452
22453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 22454else
3185942a 22455 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22456sed 's/^/| /' conftest.$ac_ext >&5
22457
3185942a 22458
bb70624e 22459fi
3185942a
JA
22460
22461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 22462fi
3185942a
JA
22463{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
22464$as_echo "$ac_cv_type_u_long" >&6; }
22465if test "x$ac_cv_type_u_long" = x""yes; then
f73dda09
JA
22466 :
22467else
22468
b80f6443 22469cat >>confdefs.h <<_ACEOF
3185942a 22470#define u_long unsigned long
b80f6443 22471_ACEOF
bb70624e
JA
22472
22473fi
22474
3185942a
JA
22475
22476
22477if test "$ac_cv_sizeof_short" = 2; then
22478 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22479$as_echo_n "checking for bits16_t... " >&6; }
f73dda09 22480if test "${ac_cv_type_bits16_t+set}" = set; then
3185942a 22481 $as_echo_n "(cached) " >&6
b72432fd 22482else
3185942a
JA
22483 ac_cv_type_bits16_t=no
22484cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22485/* confdefs.h. */
22486_ACEOF
22487cat confdefs.h >>conftest.$ac_ext
22488cat >>conftest.$ac_ext <<_ACEOF
22489/* end confdefs.h. */
f73dda09
JA
22490$ac_includes_default
22491int
22492main ()
22493{
f73dda09 22494if (sizeof (bits16_t))
3185942a 22495 return 0;
f73dda09
JA
22496 ;
22497 return 0;
22498}
22499_ACEOF
22500rm -f conftest.$ac_objext
3185942a
JA
22501if { (ac_try="$ac_compile"
22502case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505esac
22506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22507$as_echo "$ac_try_echo") >&5
22508 (eval "$ac_compile") 2>conftest.er1
f73dda09 22509 ac_status=$?
0628567a
JA
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
3185942a
JA
22513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.$ac_objext; then
f73dda09 22518 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22519/* confdefs.h. */
22520_ACEOF
22521cat confdefs.h >>conftest.$ac_ext
22522cat >>conftest.$ac_ext <<_ACEOF
22523/* end confdefs.h. */
f73dda09
JA
22524$ac_includes_default
22525int
22526main ()
22527{
3185942a
JA
22528if (sizeof ((bits16_t)))
22529 return 0;
f73dda09
JA
22530 ;
22531 return 0;
22532}
22533_ACEOF
22534rm -f conftest.$ac_objext
3185942a
JA
22535if { (ac_try="$ac_compile"
22536case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539esac
22540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22541$as_echo "$ac_try_echo") >&5
22542 (eval "$ac_compile") 2>conftest.er1
f73dda09 22543 ac_status=$?
0628567a
JA
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
3185942a
JA
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest.$ac_objext; then
22552 :
22553else
22554 $as_echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 ac_cv_type_bits16_t=yes
22558fi
22559
22560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22561else
3185942a 22562 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22563sed 's/^/| /' conftest.$ac_ext >&5
22564
3185942a 22565
cce855bc 22566fi
3185942a
JA
22567
22568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22569fi
3185942a
JA
22570{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22571$as_echo "$ac_cv_type_bits16_t" >&6; }
22572if test "x$ac_cv_type_bits16_t" = x""yes; then
f73dda09
JA
22573 :
22574else
22575
b80f6443 22576cat >>confdefs.h <<_ACEOF
3185942a 22577#define bits16_t short
b80f6443 22578_ACEOF
cce855bc
JA
22579
22580fi
22581
bb70624e 22582elif test "$ac_cv_sizeof_char" = 2; then
3185942a
JA
22583 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22584$as_echo_n "checking for bits16_t... " >&6; }
22585if test "${ac_cv_type_bits16_t+set}" = set; then
22586 $as_echo_n "(cached) " >&6
cce855bc 22587else
3185942a
JA
22588 ac_cv_type_bits16_t=no
22589cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22590/* confdefs.h. */
22591_ACEOF
22592cat confdefs.h >>conftest.$ac_ext
22593cat >>conftest.$ac_ext <<_ACEOF
22594/* end confdefs.h. */
f73dda09
JA
22595$ac_includes_default
22596int
22597main ()
22598{
3185942a
JA
22599if (sizeof (bits16_t))
22600 return 0;
f73dda09
JA
22601 ;
22602 return 0;
22603}
22604_ACEOF
22605rm -f conftest.$ac_objext
3185942a
JA
22606if { (ac_try="$ac_compile"
22607case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22610esac
22611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22612$as_echo "$ac_try_echo") >&5
22613 (eval "$ac_compile") 2>conftest.er1
f73dda09 22614 ac_status=$?
0628567a
JA
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
3185942a
JA
22618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest.$ac_objext; then
f73dda09 22623 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22624/* confdefs.h. */
22625_ACEOF
22626cat confdefs.h >>conftest.$ac_ext
22627cat >>conftest.$ac_ext <<_ACEOF
22628/* end confdefs.h. */
f73dda09
JA
22629$ac_includes_default
22630int
22631main ()
22632{
3185942a
JA
22633if (sizeof ((bits16_t)))
22634 return 0;
f73dda09
JA
22635 ;
22636 return 0;
22637}
22638_ACEOF
22639rm -f conftest.$ac_objext
3185942a
JA
22640if { (ac_try="$ac_compile"
22641case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644esac
22645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22646$as_echo "$ac_try_echo") >&5
22647 (eval "$ac_compile") 2>conftest.er1
f73dda09 22648 ac_status=$?
0628567a
JA
22649 grep -v '^ *+' conftest.er1 >conftest.err
22650 rm -f conftest.er1
22651 cat conftest.err >&5
3185942a
JA
22652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } && {
22654 test -z "$ac_c_werror_flag" ||
22655 test ! -s conftest.err
22656 } && test -s conftest.$ac_objext; then
22657 :
22658else
22659 $as_echo "$as_me: failed program was:" >&5
22660sed 's/^/| /' conftest.$ac_ext >&5
22661
22662 ac_cv_type_bits16_t=yes
22663fi
22664
22665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22666else
3185942a 22667 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22668sed 's/^/| /' conftest.$ac_ext >&5
22669
3185942a 22670
cce855bc 22671fi
3185942a
JA
22672
22673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22674fi
3185942a
JA
22675{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22676$as_echo "$ac_cv_type_bits16_t" >&6; }
22677if test "x$ac_cv_type_bits16_t" = x""yes; then
f73dda09
JA
22678 :
22679else
22680
b80f6443 22681cat >>confdefs.h <<_ACEOF
3185942a 22682#define bits16_t char
b80f6443 22683_ACEOF
cce855bc 22684
b72432fd
JA
22685fi
22686
cce855bc 22687else
3185942a
JA
22688 { $as_echo "$as_me:$LINENO: checking for bits16_t" >&5
22689$as_echo_n "checking for bits16_t... " >&6; }
22690if test "${ac_cv_type_bits16_t+set}" = set; then
22691 $as_echo_n "(cached) " >&6
22692else
22693 ac_cv_type_bits16_t=no
22694cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22695/* confdefs.h. */
22696_ACEOF
22697cat confdefs.h >>conftest.$ac_ext
22698cat >>conftest.$ac_ext <<_ACEOF
22699/* end confdefs.h. */
f73dda09
JA
22700$ac_includes_default
22701int
22702main ()
22703{
3185942a
JA
22704if (sizeof (bits16_t))
22705 return 0;
f73dda09
JA
22706 ;
22707 return 0;
22708}
22709_ACEOF
22710rm -f conftest.$ac_objext
3185942a
JA
22711if { (ac_try="$ac_compile"
22712case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715esac
22716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717$as_echo "$ac_try_echo") >&5
22718 (eval "$ac_compile") 2>conftest.er1
f73dda09 22719 ac_status=$?
0628567a
JA
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
3185942a
JA
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
f73dda09 22728 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22729/* confdefs.h. */
22730_ACEOF
22731cat confdefs.h >>conftest.$ac_ext
22732cat >>conftest.$ac_ext <<_ACEOF
22733/* end confdefs.h. */
f73dda09
JA
22734$ac_includes_default
22735int
22736main ()
22737{
3185942a
JA
22738if (sizeof ((bits16_t)))
22739 return 0;
f73dda09
JA
22740 ;
22741 return 0;
22742}
22743_ACEOF
22744rm -f conftest.$ac_objext
3185942a
JA
22745if { (ac_try="$ac_compile"
22746case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22749esac
22750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22751$as_echo "$ac_try_echo") >&5
22752 (eval "$ac_compile") 2>conftest.er1
f73dda09 22753 ac_status=$?
0628567a
JA
22754 grep -v '^ *+' conftest.er1 >conftest.err
22755 rm -f conftest.er1
22756 cat conftest.err >&5
3185942a
JA
22757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); } && {
22759 test -z "$ac_c_werror_flag" ||
22760 test ! -s conftest.err
22761 } && test -s conftest.$ac_objext; then
22762 :
22763else
22764 $as_echo "$as_me: failed program was:" >&5
22765sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 ac_cv_type_bits16_t=yes
22768fi
22769
22770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22771else
3185942a 22772 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22773sed 's/^/| /' conftest.$ac_ext >&5
22774
3185942a 22775
cce855bc 22776fi
3185942a
JA
22777
22778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22779fi
3185942a
JA
22780{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
22781$as_echo "$ac_cv_type_bits16_t" >&6; }
22782if test "x$ac_cv_type_bits16_t" = x""yes; then
f73dda09
JA
22783 :
22784else
22785
b80f6443 22786cat >>confdefs.h <<_ACEOF
3185942a 22787#define bits16_t short
b80f6443 22788_ACEOF
cce855bc
JA
22789
22790fi
22791
3185942a
JA
22792fi
22793
22794
22795if test "$ac_cv_sizeof_short" = 2; then
22796 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
22797$as_echo_n "checking for u_bits16_t... " >&6; }
22798if test "${ac_cv_type_u_bits16_t+set}" = set; then
22799 $as_echo_n "(cached) " >&6
cce855bc 22800else
3185942a
JA
22801 ac_cv_type_u_bits16_t=no
22802cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22803/* confdefs.h. */
22804_ACEOF
22805cat confdefs.h >>conftest.$ac_ext
22806cat >>conftest.$ac_ext <<_ACEOF
22807/* end confdefs.h. */
f73dda09
JA
22808$ac_includes_default
22809int
22810main ()
22811{
3185942a
JA
22812if (sizeof (u_bits16_t))
22813 return 0;
f73dda09
JA
22814 ;
22815 return 0;
22816}
22817_ACEOF
22818rm -f conftest.$ac_objext
3185942a
JA
22819if { (ac_try="$ac_compile"
22820case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22823esac
22824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22825$as_echo "$ac_try_echo") >&5
22826 (eval "$ac_compile") 2>conftest.er1
f73dda09 22827 ac_status=$?
0628567a
JA
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
3185942a
JA
22831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest.$ac_objext; then
f73dda09 22836 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
f73dda09
JA
22842$ac_includes_default
22843int
22844main ()
22845{
3185942a
JA
22846if (sizeof ((u_bits16_t)))
22847 return 0;
f73dda09
JA
22848 ;
22849 return 0;
22850}
22851_ACEOF
22852rm -f conftest.$ac_objext
3185942a
JA
22853if { (ac_try="$ac_compile"
22854case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22857esac
22858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22859$as_echo "$ac_try_echo") >&5
22860 (eval "$ac_compile") 2>conftest.er1
f73dda09 22861 ac_status=$?
0628567a
JA
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
3185942a
JA
22865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest.$ac_objext; then
22870 :
22871else
22872 $as_echo "$as_me: failed program was:" >&5
22873sed 's/^/| /' conftest.$ac_ext >&5
22874
22875 ac_cv_type_u_bits16_t=yes
22876fi
22877
22878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 22879else
3185942a 22880 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
22881sed 's/^/| /' conftest.$ac_ext >&5
22882
3185942a 22883
b72432fd 22884fi
3185942a
JA
22885
22886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 22887fi
3185942a
JA
22888{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
22889$as_echo "$ac_cv_type_u_bits16_t" >&6; }
22890if test "x$ac_cv_type_u_bits16_t" = x""yes; then
f73dda09
JA
22891 :
22892else
22893
b80f6443 22894cat >>confdefs.h <<_ACEOF
3185942a 22895#define u_bits16_t unsigned short
b80f6443 22896_ACEOF
cce855bc
JA
22897
22898fi
22899
3185942a
JA
22900elif test "$ac_cv_sizeof_char" = 2; then
22901 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
22902$as_echo_n "checking for u_bits16_t... " >&6; }
22903if test "${ac_cv_type_u_bits16_t+set}" = set; then
22904 $as_echo_n "(cached) " >&6
cce855bc 22905else
3185942a
JA
22906 ac_cv_type_u_bits16_t=no
22907cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
22908/* confdefs.h. */
22909_ACEOF
22910cat confdefs.h >>conftest.$ac_ext
22911cat >>conftest.$ac_ext <<_ACEOF
22912/* end confdefs.h. */
f73dda09
JA
22913$ac_includes_default
22914int
22915main ()
22916{
3185942a
JA
22917if (sizeof (u_bits16_t))
22918 return 0;
f73dda09
JA
22919 ;
22920 return 0;
22921}
22922_ACEOF
22923rm -f conftest.$ac_objext
3185942a
JA
22924if { (ac_try="$ac_compile"
22925case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22928esac
22929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22930$as_echo "$ac_try_echo") >&5
22931 (eval "$ac_compile") 2>conftest.er1
f73dda09 22932 ac_status=$?
0628567a
JA
22933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
3185942a
JA
22936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22941 cat >conftest.$ac_ext <<_ACEOF
22942/* confdefs.h. */
22943_ACEOF
22944cat confdefs.h >>conftest.$ac_ext
22945cat >>conftest.$ac_ext <<_ACEOF
22946/* end confdefs.h. */
22947$ac_includes_default
22948int
22949main ()
22950{
22951if (sizeof ((u_bits16_t)))
22952 return 0;
22953 ;
22954 return 0;
22955}
22956_ACEOF
22957rm -f conftest.$ac_objext
22958if { (ac_try="$ac_compile"
22959case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22962esac
22963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22964$as_echo "$ac_try_echo") >&5
22965 (eval "$ac_compile") 2>conftest.er1
22966 ac_status=$?
22967 grep -v '^ *+' conftest.er1 >conftest.err
22968 rm -f conftest.er1
22969 cat conftest.err >&5
22970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && {
22972 test -z "$ac_c_werror_flag" ||
22973 test ! -s conftest.err
22974 } && test -s conftest.$ac_objext; then
22975 :
22976else
22977 $as_echo "$as_me: failed program was:" >&5
22978sed 's/^/| /' conftest.$ac_ext >&5
22979
22980 ac_cv_type_u_bits16_t=yes
22981fi
22982
22983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984else
22985 $as_echo "$as_me: failed program was:" >&5
22986sed 's/^/| /' conftest.$ac_ext >&5
22987
22988
22989fi
22990
22991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992fi
22993{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
22994$as_echo "$ac_cv_type_u_bits16_t" >&6; }
22995if test "x$ac_cv_type_u_bits16_t" = x""yes; then
22996 :
22997else
22998
22999cat >>confdefs.h <<_ACEOF
23000#define u_bits16_t unsigned char
23001_ACEOF
23002
23003fi
23004
23005else
23006 { $as_echo "$as_me:$LINENO: checking for u_bits16_t" >&5
23007$as_echo_n "checking for u_bits16_t... " >&6; }
23008if test "${ac_cv_type_u_bits16_t+set}" = set; then
23009 $as_echo_n "(cached) " >&6
23010else
23011 ac_cv_type_u_bits16_t=no
23012cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018$ac_includes_default
23019int
23020main ()
23021{
23022if (sizeof (u_bits16_t))
23023 return 0;
23024 ;
23025 return 0;
23026}
23027_ACEOF
23028rm -f conftest.$ac_objext
23029if { (ac_try="$ac_compile"
23030case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23033esac
23034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23035$as_echo "$ac_try_echo") >&5
23036 (eval "$ac_compile") 2>conftest.er1
23037 ac_status=$?
23038 grep -v '^ *+' conftest.er1 >conftest.err
23039 rm -f conftest.er1
23040 cat conftest.err >&5
23041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } && {
23043 test -z "$ac_c_werror_flag" ||
23044 test ! -s conftest.err
23045 } && test -s conftest.$ac_objext; then
23046 cat >conftest.$ac_ext <<_ACEOF
23047/* confdefs.h. */
23048_ACEOF
23049cat confdefs.h >>conftest.$ac_ext
23050cat >>conftest.$ac_ext <<_ACEOF
23051/* end confdefs.h. */
23052$ac_includes_default
23053int
23054main ()
23055{
23056if (sizeof ((u_bits16_t)))
23057 return 0;
23058 ;
23059 return 0;
23060}
23061_ACEOF
23062rm -f conftest.$ac_objext
23063if { (ac_try="$ac_compile"
23064case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23067esac
23068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23069$as_echo "$ac_try_echo") >&5
23070 (eval "$ac_compile") 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } && {
23077 test -z "$ac_c_werror_flag" ||
23078 test ! -s conftest.err
23079 } && test -s conftest.$ac_objext; then
23080 :
23081else
23082 $as_echo "$as_me: failed program was:" >&5
23083sed 's/^/| /' conftest.$ac_ext >&5
23084
23085 ac_cv_type_u_bits16_t=yes
23086fi
23087
23088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089else
23090 $as_echo "$as_me: failed program was:" >&5
23091sed 's/^/| /' conftest.$ac_ext >&5
23092
23093
23094fi
23095
23096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097fi
23098{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
23099$as_echo "$ac_cv_type_u_bits16_t" >&6; }
23100if test "x$ac_cv_type_u_bits16_t" = x""yes; then
23101 :
23102else
23103
23104cat >>confdefs.h <<_ACEOF
23105#define u_bits16_t unsigned short
23106_ACEOF
23107
23108fi
23109
23110fi
23111
23112
23113if test "$ac_cv_sizeof_int" = 4; then
23114 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23115$as_echo_n "checking for bits32_t... " >&6; }
23116if test "${ac_cv_type_bits32_t+set}" = set; then
23117 $as_echo_n "(cached) " >&6
23118else
23119 ac_cv_type_bits32_t=no
23120cat >conftest.$ac_ext <<_ACEOF
23121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
23126$ac_includes_default
23127int
23128main ()
23129{
23130if (sizeof (bits32_t))
23131 return 0;
23132 ;
23133 return 0;
23134}
23135_ACEOF
23136rm -f conftest.$ac_objext
23137if { (ac_try="$ac_compile"
23138case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23141esac
23142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23143$as_echo "$ac_try_echo") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23145 ac_status=$?
23146 grep -v '^ *+' conftest.er1 >conftest.err
23147 rm -f conftest.er1
23148 cat conftest.err >&5
23149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.$ac_objext; then
23154 cat >conftest.$ac_ext <<_ACEOF
23155/* confdefs.h. */
23156_ACEOF
23157cat confdefs.h >>conftest.$ac_ext
23158cat >>conftest.$ac_ext <<_ACEOF
23159/* end confdefs.h. */
23160$ac_includes_default
23161int
23162main ()
23163{
23164if (sizeof ((bits32_t)))
23165 return 0;
23166 ;
23167 return 0;
23168}
23169_ACEOF
23170rm -f conftest.$ac_objext
23171if { (ac_try="$ac_compile"
23172case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23175esac
23176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23177$as_echo "$ac_try_echo") >&5
23178 (eval "$ac_compile") 2>conftest.er1
23179 ac_status=$?
23180 grep -v '^ *+' conftest.er1 >conftest.err
23181 rm -f conftest.er1
23182 cat conftest.err >&5
23183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && {
23185 test -z "$ac_c_werror_flag" ||
23186 test ! -s conftest.err
23187 } && test -s conftest.$ac_objext; then
23188 :
23189else
23190 $as_echo "$as_me: failed program was:" >&5
23191sed 's/^/| /' conftest.$ac_ext >&5
23192
23193 ac_cv_type_bits32_t=yes
23194fi
23195
23196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23197else
23198 $as_echo "$as_me: failed program was:" >&5
23199sed 's/^/| /' conftest.$ac_ext >&5
23200
23201
23202fi
23203
23204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205fi
23206{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23207$as_echo "$ac_cv_type_bits32_t" >&6; }
23208if test "x$ac_cv_type_bits32_t" = x""yes; then
23209 :
23210else
23211
23212cat >>confdefs.h <<_ACEOF
23213#define bits32_t int
23214_ACEOF
23215
23216fi
23217
23218elif test "$ac_cv_sizeof_long" = 4; then
23219 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23220$as_echo_n "checking for bits32_t... " >&6; }
23221if test "${ac_cv_type_bits32_t+set}" = set; then
23222 $as_echo_n "(cached) " >&6
23223else
23224 ac_cv_type_bits32_t=no
23225cat >conftest.$ac_ext <<_ACEOF
23226/* confdefs.h. */
23227_ACEOF
23228cat confdefs.h >>conftest.$ac_ext
23229cat >>conftest.$ac_ext <<_ACEOF
23230/* end confdefs.h. */
23231$ac_includes_default
23232int
23233main ()
23234{
23235if (sizeof (bits32_t))
23236 return 0;
23237 ;
23238 return 0;
23239}
23240_ACEOF
23241rm -f conftest.$ac_objext
23242if { (ac_try="$ac_compile"
23243case "(($ac_try" in
23244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245 *) ac_try_echo=$ac_try;;
23246esac
23247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23248$as_echo "$ac_try_echo") >&5
23249 (eval "$ac_compile") 2>conftest.er1
23250 ac_status=$?
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
23254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && {
23256 test -z "$ac_c_werror_flag" ||
23257 test ! -s conftest.err
23258 } && test -s conftest.$ac_objext; then
23259 cat >conftest.$ac_ext <<_ACEOF
23260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
23265$ac_includes_default
23266int
23267main ()
23268{
23269if (sizeof ((bits32_t)))
23270 return 0;
23271 ;
23272 return 0;
23273}
23274_ACEOF
23275rm -f conftest.$ac_objext
23276if { (ac_try="$ac_compile"
23277case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23280esac
23281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23282$as_echo "$ac_try_echo") >&5
23283 (eval "$ac_compile") 2>conftest.er1
23284 ac_status=$?
23285 grep -v '^ *+' conftest.er1 >conftest.err
23286 rm -f conftest.er1
23287 cat conftest.err >&5
23288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest.$ac_objext; then
23293 :
23294else
23295 $as_echo "$as_me: failed program was:" >&5
23296sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 ac_cv_type_bits32_t=yes
23299fi
23300
23301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302else
23303 $as_echo "$as_me: failed program was:" >&5
23304sed 's/^/| /' conftest.$ac_ext >&5
23305
23306
23307fi
23308
23309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23310fi
23311{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23312$as_echo "$ac_cv_type_bits32_t" >&6; }
23313if test "x$ac_cv_type_bits32_t" = x""yes; then
23314 :
23315else
23316
23317cat >>confdefs.h <<_ACEOF
23318#define bits32_t long
23319_ACEOF
23320
23321fi
23322
23323else
23324 { $as_echo "$as_me:$LINENO: checking for bits32_t" >&5
23325$as_echo_n "checking for bits32_t... " >&6; }
23326if test "${ac_cv_type_bits32_t+set}" = set; then
23327 $as_echo_n "(cached) " >&6
23328else
23329 ac_cv_type_bits32_t=no
23330cat >conftest.$ac_ext <<_ACEOF
23331/* confdefs.h. */
23332_ACEOF
23333cat confdefs.h >>conftest.$ac_ext
23334cat >>conftest.$ac_ext <<_ACEOF
23335/* end confdefs.h. */
23336$ac_includes_default
23337int
23338main ()
23339{
23340if (sizeof (bits32_t))
23341 return 0;
23342 ;
23343 return 0;
23344}
23345_ACEOF
23346rm -f conftest.$ac_objext
23347if { (ac_try="$ac_compile"
23348case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23351esac
23352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23353$as_echo "$ac_try_echo") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23355 ac_status=$?
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.$ac_objext; then
23364 cat >conftest.$ac_ext <<_ACEOF
23365/* confdefs.h. */
23366_ACEOF
23367cat confdefs.h >>conftest.$ac_ext
23368cat >>conftest.$ac_ext <<_ACEOF
23369/* end confdefs.h. */
23370$ac_includes_default
23371int
23372main ()
23373{
23374if (sizeof ((bits32_t)))
23375 return 0;
23376 ;
23377 return 0;
23378}
23379_ACEOF
23380rm -f conftest.$ac_objext
23381if { (ac_try="$ac_compile"
23382case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385esac
23386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23387$as_echo "$ac_try_echo") >&5
23388 (eval "$ac_compile") 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } && {
23395 test -z "$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 } && test -s conftest.$ac_objext; then
23398 :
23399else
23400 $as_echo "$as_me: failed program was:" >&5
23401sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_cv_type_bits32_t=yes
23404fi
23405
23406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23407else
23408 $as_echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
23411
23412fi
23413
23414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23415fi
23416{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
23417$as_echo "$ac_cv_type_bits32_t" >&6; }
23418if test "x$ac_cv_type_bits32_t" = x""yes; then
23419 :
23420else
23421
23422cat >>confdefs.h <<_ACEOF
23423#define bits32_t int
23424_ACEOF
23425
23426fi
23427
23428fi
23429
23430
23431if test "$ac_cv_sizeof_int" = 4; then
23432 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23433$as_echo_n "checking for u_bits32_t... " >&6; }
23434if test "${ac_cv_type_u_bits32_t+set}" = set; then
23435 $as_echo_n "(cached) " >&6
23436else
23437 ac_cv_type_u_bits32_t=no
23438cat >conftest.$ac_ext <<_ACEOF
23439/* confdefs.h. */
23440_ACEOF
23441cat confdefs.h >>conftest.$ac_ext
23442cat >>conftest.$ac_ext <<_ACEOF
23443/* end confdefs.h. */
23444$ac_includes_default
23445int
23446main ()
23447{
23448if (sizeof (u_bits32_t))
23449 return 0;
23450 ;
23451 return 0;
23452}
23453_ACEOF
23454rm -f conftest.$ac_objext
23455if { (ac_try="$ac_compile"
23456case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459esac
23460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23461$as_echo "$ac_try_echo") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 cat >conftest.$ac_ext <<_ACEOF
23473/* confdefs.h. */
23474_ACEOF
23475cat confdefs.h >>conftest.$ac_ext
23476cat >>conftest.$ac_ext <<_ACEOF
23477/* end confdefs.h. */
23478$ac_includes_default
23479int
23480main ()
23481{
23482if (sizeof ((u_bits32_t)))
23483 return 0;
23484 ;
23485 return 0;
23486}
23487_ACEOF
23488rm -f conftest.$ac_objext
23489if { (ac_try="$ac_compile"
23490case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493esac
23494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23495$as_echo "$ac_try_echo") >&5
23496 (eval "$ac_compile") 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest.$ac_objext; then
23506 :
23507else
23508 $as_echo "$as_me: failed program was:" >&5
23509sed 's/^/| /' conftest.$ac_ext >&5
23510
23511 ac_cv_type_u_bits32_t=yes
23512fi
23513
23514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515else
23516 $as_echo "$as_me: failed program was:" >&5
23517sed 's/^/| /' conftest.$ac_ext >&5
23518
23519
23520fi
23521
23522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523fi
23524{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23525$as_echo "$ac_cv_type_u_bits32_t" >&6; }
23526if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23527 :
23528else
23529
23530cat >>confdefs.h <<_ACEOF
23531#define u_bits32_t unsigned int
b80f6443 23532_ACEOF
cce855bc
JA
23533
23534fi
23535
3185942a
JA
23536elif test "$ac_cv_sizeof_long" = 4; then
23537 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23538$as_echo_n "checking for u_bits32_t... " >&6; }
f73dda09 23539if test "${ac_cv_type_u_bits32_t+set}" = set; then
3185942a 23540 $as_echo_n "(cached) " >&6
cce855bc 23541else
3185942a
JA
23542 ac_cv_type_u_bits32_t=no
23543cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
23544/* confdefs.h. */
23545_ACEOF
23546cat confdefs.h >>conftest.$ac_ext
23547cat >>conftest.$ac_ext <<_ACEOF
23548/* end confdefs.h. */
f73dda09
JA
23549$ac_includes_default
23550int
23551main ()
23552{
f73dda09 23553if (sizeof (u_bits32_t))
3185942a
JA
23554 return 0;
23555 ;
f73dda09 23556 return 0;
3185942a
JA
23557}
23558_ACEOF
23559rm -f conftest.$ac_objext
23560if { (ac_try="$ac_compile"
23561case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23564esac
23565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23566$as_echo "$ac_try_echo") >&5
23567 (eval "$ac_compile") 2>conftest.er1
23568 ac_status=$?
23569 grep -v '^ *+' conftest.er1 >conftest.err
23570 rm -f conftest.er1
23571 cat conftest.err >&5
23572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } && {
23574 test -z "$ac_c_werror_flag" ||
23575 test ! -s conftest.err
23576 } && test -s conftest.$ac_objext; then
23577 cat >conftest.$ac_ext <<_ACEOF
23578/* confdefs.h. */
23579_ACEOF
23580cat confdefs.h >>conftest.$ac_ext
23581cat >>conftest.$ac_ext <<_ACEOF
23582/* end confdefs.h. */
23583$ac_includes_default
23584int
23585main ()
23586{
23587if (sizeof ((u_bits32_t)))
23588 return 0;
f73dda09
JA
23589 ;
23590 return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext
3185942a
JA
23594if { (ac_try="$ac_compile"
23595case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23598esac
23599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23600$as_echo "$ac_try_echo") >&5
23601 (eval "$ac_compile") 2>conftest.er1
f73dda09 23602 ac_status=$?
0628567a
JA
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
3185942a
JA
23606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && {
23608 test -z "$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23610 } && test -s conftest.$ac_objext; then
23611 :
23612else
23613 $as_echo "$as_me: failed program was:" >&5
23614sed 's/^/| /' conftest.$ac_ext >&5
23615
23616 ac_cv_type_u_bits32_t=yes
23617fi
23618
23619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620else
23621 $as_echo "$as_me: failed program was:" >&5
23622sed 's/^/| /' conftest.$ac_ext >&5
23623
23624
23625fi
23626
23627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628fi
23629{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23630$as_echo "$ac_cv_type_u_bits32_t" >&6; }
23631if test "x$ac_cv_type_u_bits32_t" = x""yes; then
23632 :
23633else
23634
23635cat >>confdefs.h <<_ACEOF
23636#define u_bits32_t unsigned long
23637_ACEOF
23638
23639fi
23640
23641else
23642 { $as_echo "$as_me:$LINENO: checking for u_bits32_t" >&5
23643$as_echo_n "checking for u_bits32_t... " >&6; }
23644if test "${ac_cv_type_u_bits32_t+set}" = set; then
23645 $as_echo_n "(cached) " >&6
23646else
23647 ac_cv_type_u_bits32_t=no
23648cat >conftest.$ac_ext <<_ACEOF
23649/* confdefs.h. */
23650_ACEOF
23651cat confdefs.h >>conftest.$ac_ext
23652cat >>conftest.$ac_ext <<_ACEOF
23653/* end confdefs.h. */
23654$ac_includes_default
23655int
23656main ()
23657{
23658if (sizeof (u_bits32_t))
23659 return 0;
23660 ;
23661 return 0;
23662}
23663_ACEOF
23664rm -f conftest.$ac_objext
23665if { (ac_try="$ac_compile"
23666case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669esac
23670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671$as_echo "$ac_try_echo") >&5
23672 (eval "$ac_compile") 2>conftest.er1
0628567a 23673 ac_status=$?
3185942a
JA
23674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } && {
23679 test -z "$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23681 } && test -s conftest.$ac_objext; then
23682 cat >conftest.$ac_ext <<_ACEOF
23683/* confdefs.h. */
23684_ACEOF
23685cat confdefs.h >>conftest.$ac_ext
23686cat >>conftest.$ac_ext <<_ACEOF
23687/* end confdefs.h. */
23688$ac_includes_default
23689int
23690main ()
23691{
23692if (sizeof ((u_bits32_t)))
23693 return 0;
23694 ;
23695 return 0;
23696}
23697_ACEOF
23698rm -f conftest.$ac_objext
23699if { (ac_try="$ac_compile"
23700case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23703esac
23704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23705$as_echo "$ac_try_echo") >&5
23706 (eval "$ac_compile") 2>conftest.er1
f73dda09 23707 ac_status=$?
3185942a
JA
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.$ac_objext; then
23716 :
23717else
23718 $as_echo "$as_me: failed program was:" >&5
23719sed 's/^/| /' conftest.$ac_ext >&5
23720
23721 ac_cv_type_u_bits32_t=yes
23722fi
23723
23724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 23725else
3185942a 23726 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
23727sed 's/^/| /' conftest.$ac_ext >&5
23728
3185942a 23729
b72432fd 23730fi
3185942a
JA
23731
23732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 23733fi
3185942a
JA
23734{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
23735$as_echo "$ac_cv_type_u_bits32_t" >&6; }
23736if test "x$ac_cv_type_u_bits32_t" = x""yes; then
f73dda09
JA
23737 :
23738else
23739
b80f6443 23740cat >>confdefs.h <<_ACEOF
bb70624e 23741#define u_bits32_t unsigned int
b80f6443 23742_ACEOF
b72432fd
JA
23743
23744fi
cce855bc 23745
b72432fd
JA
23746fi
23747
b80f6443 23748
f73dda09 23749if test "$ac_cv_sizeof_char_p" = 8; then
3185942a
JA
23750 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
23751$as_echo_n "checking for bits64_t... " >&6; }
23752if test "${ac_cv_type_bits64_t+set}" = set; then
23753 $as_echo_n "(cached) " >&6
23754else
23755 ac_cv_type_bits64_t=no
23756cat >conftest.$ac_ext <<_ACEOF
23757/* confdefs.h. */
23758_ACEOF
23759cat confdefs.h >>conftest.$ac_ext
23760cat >>conftest.$ac_ext <<_ACEOF
23761/* end confdefs.h. */
23762$ac_includes_default
23763int
23764main ()
23765{
23766if (sizeof (bits64_t))
23767 return 0;
23768 ;
23769 return 0;
23770}
23771_ACEOF
23772rm -f conftest.$ac_objext
23773if { (ac_try="$ac_compile"
23774case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777esac
23778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23779$as_echo "$ac_try_echo") >&5
23780 (eval "$ac_compile") 2>conftest.er1
23781 ac_status=$?
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
23785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest.$ac_objext; then
23790 cat >conftest.$ac_ext <<_ACEOF
23791/* confdefs.h. */
23792_ACEOF
23793cat confdefs.h >>conftest.$ac_ext
23794cat >>conftest.$ac_ext <<_ACEOF
23795/* end confdefs.h. */
23796$ac_includes_default
23797int
23798main ()
23799{
23800if (sizeof ((bits64_t)))
23801 return 0;
23802 ;
23803 return 0;
23804}
23805_ACEOF
23806rm -f conftest.$ac_objext
23807if { (ac_try="$ac_compile"
23808case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23811esac
23812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23813$as_echo "$ac_try_echo") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23815 ac_status=$?
23816 grep -v '^ *+' conftest.er1 >conftest.err
23817 rm -f conftest.er1
23818 cat conftest.err >&5
23819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.$ac_objext; then
23824 :
23825else
23826 $as_echo "$as_me: failed program was:" >&5
23827sed 's/^/| /' conftest.$ac_ext >&5
23828
23829 ac_cv_type_bits64_t=yes
23830fi
23831
23832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23833else
23834 $as_echo "$as_me: failed program was:" >&5
23835sed 's/^/| /' conftest.$ac_ext >&5
23836
23837
23838fi
23839
23840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841fi
23842{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
23843$as_echo "$ac_cv_type_bits64_t" >&6; }
23844if test "x$ac_cv_type_bits64_t" = x""yes; then
23845 :
23846else
23847
23848cat >>confdefs.h <<_ACEOF
23849#define bits64_t char *
23850_ACEOF
23851
23852fi
23853
23854elif test "$ac_cv_sizeof_double" = 8; then
23855 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
23856$as_echo_n "checking for bits64_t... " >&6; }
23857if test "${ac_cv_type_bits64_t+set}" = set; then
23858 $as_echo_n "(cached) " >&6
23859else
23860 ac_cv_type_bits64_t=no
23861cat >conftest.$ac_ext <<_ACEOF
23862/* confdefs.h. */
23863_ACEOF
23864cat confdefs.h >>conftest.$ac_ext
23865cat >>conftest.$ac_ext <<_ACEOF
23866/* end confdefs.h. */
23867$ac_includes_default
23868int
23869main ()
23870{
23871if (sizeof (bits64_t))
23872 return 0;
23873 ;
23874 return 0;
23875}
23876_ACEOF
23877rm -f conftest.$ac_objext
23878if { (ac_try="$ac_compile"
23879case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23882esac
23883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23884$as_echo "$ac_try_echo") >&5
23885 (eval "$ac_compile") 2>conftest.er1
23886 ac_status=$?
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
23890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest.$ac_objext; then
23895 cat >conftest.$ac_ext <<_ACEOF
23896/* confdefs.h. */
23897_ACEOF
23898cat confdefs.h >>conftest.$ac_ext
23899cat >>conftest.$ac_ext <<_ACEOF
23900/* end confdefs.h. */
23901$ac_includes_default
23902int
23903main ()
23904{
23905if (sizeof ((bits64_t)))
23906 return 0;
23907 ;
23908 return 0;
23909}
23910_ACEOF
23911rm -f conftest.$ac_objext
23912if { (ac_try="$ac_compile"
23913case "(($ac_try" in
23914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23916esac
23917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23918$as_echo "$ac_try_echo") >&5
23919 (eval "$ac_compile") 2>conftest.er1
23920 ac_status=$?
23921 grep -v '^ *+' conftest.er1 >conftest.err
23922 rm -f conftest.er1
23923 cat conftest.err >&5
23924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest.$ac_objext; then
23929 :
23930else
23931 $as_echo "$as_me: failed program was:" >&5
23932sed 's/^/| /' conftest.$ac_ext >&5
23933
23934 ac_cv_type_bits64_t=yes
23935fi
23936
23937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938else
23939 $as_echo "$as_me: failed program was:" >&5
23940sed 's/^/| /' conftest.$ac_ext >&5
23941
23942
23943fi
23944
23945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946fi
23947{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
23948$as_echo "$ac_cv_type_bits64_t" >&6; }
23949if test "x$ac_cv_type_bits64_t" = x""yes; then
23950 :
23951else
23952
23953cat >>confdefs.h <<_ACEOF
23954#define bits64_t double
23955_ACEOF
23956
23957fi
23958
23959elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
23960 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
23961$as_echo_n "checking for bits64_t... " >&6; }
f73dda09 23962if test "${ac_cv_type_bits64_t+set}" = set; then
3185942a 23963 $as_echo_n "(cached) " >&6
cce855bc 23964else
3185942a
JA
23965 ac_cv_type_bits64_t=no
23966cat >conftest.$ac_ext <<_ACEOF
23967/* confdefs.h. */
23968_ACEOF
23969cat confdefs.h >>conftest.$ac_ext
23970cat >>conftest.$ac_ext <<_ACEOF
23971/* end confdefs.h. */
23972$ac_includes_default
23973int
23974main ()
23975{
23976if (sizeof (bits64_t))
23977 return 0;
23978 ;
23979 return 0;
23980}
23981_ACEOF
23982rm -f conftest.$ac_objext
23983if { (ac_try="$ac_compile"
23984case "(($ac_try" in
23985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986 *) ac_try_echo=$ac_try;;
23987esac
23988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23989$as_echo "$ac_try_echo") >&5
23990 (eval "$ac_compile") 2>conftest.er1
23991 ac_status=$?
23992 grep -v '^ *+' conftest.er1 >conftest.err
23993 rm -f conftest.er1
23994 cat conftest.err >&5
23995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); } && {
23997 test -z "$ac_c_werror_flag" ||
23998 test ! -s conftest.err
23999 } && test -s conftest.$ac_objext; then
f73dda09 24000 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24001/* confdefs.h. */
24002_ACEOF
24003cat confdefs.h >>conftest.$ac_ext
24004cat >>conftest.$ac_ext <<_ACEOF
24005/* end confdefs.h. */
f73dda09
JA
24006$ac_includes_default
24007int
24008main ()
24009{
3185942a
JA
24010if (sizeof ((bits64_t)))
24011 return 0;
f73dda09
JA
24012 ;
24013 return 0;
24014}
24015_ACEOF
24016rm -f conftest.$ac_objext
3185942a
JA
24017if { (ac_try="$ac_compile"
24018case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24021esac
24022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24023$as_echo "$ac_try_echo") >&5
24024 (eval "$ac_compile") 2>conftest.er1
f73dda09 24025 ac_status=$?
0628567a
JA
24026 grep -v '^ *+' conftest.er1 >conftest.err
24027 rm -f conftest.er1
24028 cat conftest.err >&5
3185942a
JA
24029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } && {
24031 test -z "$ac_c_werror_flag" ||
24032 test ! -s conftest.err
24033 } && test -s conftest.$ac_objext; then
24034 :
24035else
24036 $as_echo "$as_me: failed program was:" >&5
24037sed 's/^/| /' conftest.$ac_ext >&5
24038
24039 ac_cv_type_bits64_t=yes
24040fi
24041
24042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24043else
3185942a 24044 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24045sed 's/^/| /' conftest.$ac_ext >&5
24046
3185942a 24047
b72432fd 24048fi
3185942a
JA
24049
24050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24051fi
3185942a
JA
24052{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24053$as_echo "$ac_cv_type_bits64_t" >&6; }
24054if test "x$ac_cv_type_bits64_t" = x""yes; then
f73dda09
JA
24055 :
24056else
24057
b80f6443 24058cat >>confdefs.h <<_ACEOF
3185942a 24059#define bits64_t long long
b80f6443 24060_ACEOF
b72432fd
JA
24061
24062fi
24063
3185942a
JA
24064elif test "$ac_cv_sizeof_long" = 8; then
24065 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24066$as_echo_n "checking for bits64_t... " >&6; }
f73dda09 24067if test "${ac_cv_type_bits64_t+set}" = set; then
3185942a 24068 $as_echo_n "(cached) " >&6
b72432fd 24069else
3185942a
JA
24070 ac_cv_type_bits64_t=no
24071cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24072/* confdefs.h. */
24073_ACEOF
24074cat confdefs.h >>conftest.$ac_ext
24075cat >>conftest.$ac_ext <<_ACEOF
24076/* end confdefs.h. */
f73dda09
JA
24077$ac_includes_default
24078int
24079main ()
24080{
f73dda09 24081if (sizeof (bits64_t))
3185942a 24082 return 0;
f73dda09
JA
24083 ;
24084 return 0;
24085}
24086_ACEOF
24087rm -f conftest.$ac_objext
3185942a
JA
24088if { (ac_try="$ac_compile"
24089case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24092esac
24093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24094$as_echo "$ac_try_echo") >&5
24095 (eval "$ac_compile") 2>conftest.er1
f73dda09 24096 ac_status=$?
0628567a
JA
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
3185942a
JA
24100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.$ac_objext; then
f73dda09 24105 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24106/* confdefs.h. */
24107_ACEOF
24108cat confdefs.h >>conftest.$ac_ext
24109cat >>conftest.$ac_ext <<_ACEOF
24110/* end confdefs.h. */
f73dda09
JA
24111$ac_includes_default
24112int
24113main ()
24114{
3185942a
JA
24115if (sizeof ((bits64_t)))
24116 return 0;
f73dda09
JA
24117 ;
24118 return 0;
24119}
24120_ACEOF
24121rm -f conftest.$ac_objext
3185942a
JA
24122if { (ac_try="$ac_compile"
24123case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24126esac
24127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24128$as_echo "$ac_try_echo") >&5
24129 (eval "$ac_compile") 2>conftest.er1
f73dda09 24130 ac_status=$?
0628567a
JA
24131 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1
24133 cat conftest.err >&5
3185942a
JA
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24139 :
24140else
24141 $as_echo "$as_me: failed program was:" >&5
24142sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 ac_cv_type_bits64_t=yes
24145fi
24146
24147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24148else
3185942a 24149 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24150sed 's/^/| /' conftest.$ac_ext >&5
24151
3185942a 24152
f73dda09 24153fi
3185942a
JA
24154
24155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24156fi
3185942a
JA
24157{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24158$as_echo "$ac_cv_type_bits64_t" >&6; }
24159if test "x$ac_cv_type_bits64_t" = x""yes; then
f73dda09
JA
24160 :
24161else
24162
b80f6443 24163cat >>confdefs.h <<_ACEOF
3185942a 24164#define bits64_t long
b80f6443 24165_ACEOF
f73dda09 24166
cce855bc 24167fi
b72432fd 24168
3185942a
JA
24169else
24170 { $as_echo "$as_me:$LINENO: checking for bits64_t" >&5
24171$as_echo_n "checking for bits64_t... " >&6; }
f73dda09 24172if test "${ac_cv_type_bits64_t+set}" = set; then
3185942a 24173 $as_echo_n "(cached) " >&6
f73dda09 24174else
3185942a
JA
24175 ac_cv_type_bits64_t=no
24176cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24177/* confdefs.h. */
24178_ACEOF
24179cat confdefs.h >>conftest.$ac_ext
24180cat >>conftest.$ac_ext <<_ACEOF
24181/* end confdefs.h. */
f73dda09
JA
24182$ac_includes_default
24183int
24184main ()
24185{
f73dda09 24186if (sizeof (bits64_t))
3185942a 24187 return 0;
f73dda09
JA
24188 ;
24189 return 0;
24190}
24191_ACEOF
24192rm -f conftest.$ac_objext
3185942a
JA
24193if { (ac_try="$ac_compile"
24194case "(($ac_try" in
24195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24196 *) ac_try_echo=$ac_try;;
24197esac
24198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24199$as_echo "$ac_try_echo") >&5
24200 (eval "$ac_compile") 2>conftest.er1
f73dda09 24201 ac_status=$?
0628567a
JA
24202 grep -v '^ *+' conftest.er1 >conftest.err
24203 rm -f conftest.er1
24204 cat conftest.err >&5
3185942a
JA
24205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } && {
24207 test -z "$ac_c_werror_flag" ||
24208 test ! -s conftest.err
24209 } && test -s conftest.$ac_objext; then
f73dda09 24210 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24211/* confdefs.h. */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h. */
f73dda09
JA
24216$ac_includes_default
24217int
24218main ()
24219{
3185942a
JA
24220if (sizeof ((bits64_t)))
24221 return 0;
f73dda09
JA
24222 ;
24223 return 0;
24224}
24225_ACEOF
24226rm -f conftest.$ac_objext
3185942a
JA
24227if { (ac_try="$ac_compile"
24228case "(($ac_try" in
24229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230 *) ac_try_echo=$ac_try;;
24231esac
24232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24233$as_echo "$ac_try_echo") >&5
24234 (eval "$ac_compile") 2>conftest.er1
f73dda09 24235 ac_status=$?
0628567a
JA
24236 grep -v '^ *+' conftest.er1 >conftest.err
24237 rm -f conftest.er1
24238 cat conftest.err >&5
3185942a
JA
24239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest.$ac_objext; then
24244 :
24245else
24246 $as_echo "$as_me: failed program was:" >&5
24247sed 's/^/| /' conftest.$ac_ext >&5
24248
24249 ac_cv_type_bits64_t=yes
24250fi
24251
24252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24253else
3185942a 24254 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24255sed 's/^/| /' conftest.$ac_ext >&5
24256
3185942a 24257
b72432fd 24258fi
3185942a
JA
24259
24260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b72432fd 24261fi
3185942a
JA
24262{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
24263$as_echo "$ac_cv_type_bits64_t" >&6; }
24264if test "x$ac_cv_type_bits64_t" = x""yes; then
f73dda09
JA
24265 :
24266else
24267
b80f6443 24268cat >>confdefs.h <<_ACEOF
b72432fd 24269#define bits64_t double
b80f6443 24270_ACEOF
cce855bc
JA
24271
24272fi
24273
24274fi
24275
b80f6443
JA
24276
24277
bb70624e 24278if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
3185942a
JA
24279 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24280$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 24281if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 24282 $as_echo_n "(cached) " >&6
bb70624e 24283else
3185942a
JA
24284 ac_cv_type_ptrdiff_t=no
24285cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24286/* confdefs.h. */
24287_ACEOF
24288cat confdefs.h >>conftest.$ac_ext
24289cat >>conftest.$ac_ext <<_ACEOF
24290/* end confdefs.h. */
f73dda09
JA
24291$ac_includes_default
24292int
24293main ()
24294{
f73dda09 24295if (sizeof (ptrdiff_t))
3185942a 24296 return 0;
f73dda09
JA
24297 ;
24298 return 0;
24299}
24300_ACEOF
24301rm -f conftest.$ac_objext
3185942a
JA
24302if { (ac_try="$ac_compile"
24303case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24306esac
24307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308$as_echo "$ac_try_echo") >&5
24309 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
24310 ac_status=$?
24311 grep -v '^ *+' conftest.er1 >conftest.err
24312 rm -f conftest.er1
24313 cat conftest.err >&5
3185942a
JA
24314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } && {
24316 test -z "$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24318 } && test -s conftest.$ac_objext; then
24319 cat >conftest.$ac_ext <<_ACEOF
24320/* confdefs.h. */
24321_ACEOF
24322cat confdefs.h >>conftest.$ac_ext
24323cat >>conftest.$ac_ext <<_ACEOF
24324/* end confdefs.h. */
24325$ac_includes_default
24326int
24327main ()
24328{
24329if (sizeof ((ptrdiff_t)))
24330 return 0;
24331 ;
24332 return 0;
24333}
24334_ACEOF
24335rm -f conftest.$ac_objext
24336if { (ac_try="$ac_compile"
24337case "(($ac_try" in
24338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339 *) ac_try_echo=$ac_try;;
24340esac
24341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24342$as_echo "$ac_try_echo") >&5
24343 (eval "$ac_compile") 2>conftest.er1
f73dda09 24344 ac_status=$?
3185942a
JA
24345 grep -v '^ *+' conftest.er1 >conftest.err
24346 rm -f conftest.er1
24347 cat conftest.err >&5
24348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } && {
24350 test -z "$ac_c_werror_flag" ||
24351 test ! -s conftest.err
24352 } && test -s conftest.$ac_objext; then
24353 :
24354else
24355 $as_echo "$as_me: failed program was:" >&5
24356sed 's/^/| /' conftest.$ac_ext >&5
24357
24358 ac_cv_type_ptrdiff_t=yes
24359fi
24360
24361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 24362else
3185942a 24363 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24364sed 's/^/| /' conftest.$ac_ext >&5
24365
3185942a 24366
bb70624e 24367fi
3185942a
JA
24368
24369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 24370fi
3185942a
JA
24371{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24372$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24373if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
24374 :
24375else
24376
b80f6443 24377cat >>confdefs.h <<_ACEOF
bb70624e 24378#define ptrdiff_t int
b80f6443 24379_ACEOF
bb70624e
JA
24380
24381fi
24382
24383elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
3185942a
JA
24384 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24385$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 24386if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 24387 $as_echo_n "(cached) " >&6
bb70624e 24388else
3185942a
JA
24389 ac_cv_type_ptrdiff_t=no
24390cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24391/* confdefs.h. */
24392_ACEOF
24393cat confdefs.h >>conftest.$ac_ext
24394cat >>conftest.$ac_ext <<_ACEOF
24395/* end confdefs.h. */
f73dda09
JA
24396$ac_includes_default
24397int
24398main ()
24399{
f73dda09 24400if (sizeof (ptrdiff_t))
3185942a 24401 return 0;
f73dda09
JA
24402 ;
24403 return 0;
24404}
24405_ACEOF
24406rm -f conftest.$ac_objext
3185942a
JA
24407if { (ac_try="$ac_compile"
24408case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411esac
24412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24413$as_echo "$ac_try_echo") >&5
24414 (eval "$ac_compile") 2>conftest.er1
f73dda09 24415 ac_status=$?
0628567a
JA
24416 grep -v '^ *+' conftest.er1 >conftest.err
24417 rm -f conftest.er1
24418 cat conftest.err >&5
3185942a
JA
24419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.$ac_objext; then
24424 cat >conftest.$ac_ext <<_ACEOF
24425/* confdefs.h. */
24426_ACEOF
24427cat confdefs.h >>conftest.$ac_ext
24428cat >>conftest.$ac_ext <<_ACEOF
24429/* end confdefs.h. */
24430$ac_includes_default
24431int
24432main ()
24433{
24434if (sizeof ((ptrdiff_t)))
24435 return 0;
24436 ;
24437 return 0;
24438}
24439_ACEOF
24440rm -f conftest.$ac_objext
24441if { (ac_try="$ac_compile"
24442case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24445esac
24446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24447$as_echo "$ac_try_echo") >&5
24448 (eval "$ac_compile") 2>conftest.er1
f73dda09 24449 ac_status=$?
3185942a
JA
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
24453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.$ac_objext; then
24458 :
24459else
24460 $as_echo "$as_me: failed program was:" >&5
24461sed 's/^/| /' conftest.$ac_ext >&5
24462
24463 ac_cv_type_ptrdiff_t=yes
24464fi
24465
24466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 24467else
3185942a 24468 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24469sed 's/^/| /' conftest.$ac_ext >&5
24470
3185942a 24471
bb70624e 24472fi
3185942a
JA
24473
24474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 24475fi
3185942a
JA
24476{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24477$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24478if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
24479 :
24480else
24481
b80f6443 24482cat >>confdefs.h <<_ACEOF
bb70624e 24483#define ptrdiff_t long
b80f6443 24484_ACEOF
bb70624e
JA
24485
24486fi
24487
f73dda09 24488elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
3185942a
JA
24489 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24490$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 24491if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 24492 $as_echo_n "(cached) " >&6
bb70624e 24493else
3185942a
JA
24494 ac_cv_type_ptrdiff_t=no
24495cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24496/* confdefs.h. */
24497_ACEOF
24498cat confdefs.h >>conftest.$ac_ext
24499cat >>conftest.$ac_ext <<_ACEOF
24500/* end confdefs.h. */
f73dda09
JA
24501$ac_includes_default
24502int
24503main ()
24504{
f73dda09 24505if (sizeof (ptrdiff_t))
3185942a 24506 return 0;
f73dda09
JA
24507 ;
24508 return 0;
24509}
24510_ACEOF
24511rm -f conftest.$ac_objext
3185942a
JA
24512if { (ac_try="$ac_compile"
24513case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24516esac
24517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24518$as_echo "$ac_try_echo") >&5
24519 (eval "$ac_compile") 2>conftest.er1
f73dda09 24520 ac_status=$?
0628567a
JA
24521 grep -v '^ *+' conftest.er1 >conftest.err
24522 rm -f conftest.er1
24523 cat conftest.err >&5
3185942a
JA
24524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } && {
24526 test -z "$ac_c_werror_flag" ||
24527 test ! -s conftest.err
24528 } && test -s conftest.$ac_objext; then
24529 cat >conftest.$ac_ext <<_ACEOF
24530/* confdefs.h. */
24531_ACEOF
24532cat confdefs.h >>conftest.$ac_ext
24533cat >>conftest.$ac_ext <<_ACEOF
24534/* end confdefs.h. */
24535$ac_includes_default
24536int
24537main ()
24538{
24539if (sizeof ((ptrdiff_t)))
24540 return 0;
24541 ;
24542 return 0;
24543}
24544_ACEOF
24545rm -f conftest.$ac_objext
24546if { (ac_try="$ac_compile"
24547case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24550esac
24551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24552$as_echo "$ac_try_echo") >&5
24553 (eval "$ac_compile") 2>conftest.er1
f73dda09 24554 ac_status=$?
3185942a
JA
24555 grep -v '^ *+' conftest.er1 >conftest.err
24556 rm -f conftest.er1
24557 cat conftest.err >&5
24558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest.$ac_objext; then
24563 :
24564else
24565 $as_echo "$as_me: failed program was:" >&5
24566sed 's/^/| /' conftest.$ac_ext >&5
24567
24568 ac_cv_type_ptrdiff_t=yes
24569fi
24570
24571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bb70624e 24572else
3185942a 24573 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24574sed 's/^/| /' conftest.$ac_ext >&5
24575
3185942a 24576
f73dda09 24577fi
3185942a
JA
24578
24579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24580fi
3185942a
JA
24581{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24582$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24583if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
24584 :
24585else
24586
b80f6443 24587cat >>confdefs.h <<_ACEOF
f73dda09 24588#define ptrdiff_t long long
b80f6443 24589_ACEOF
f73dda09 24590
bb70624e 24591fi
bb70624e 24592
f73dda09 24593else
3185942a
JA
24594 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24595$as_echo_n "checking for ptrdiff_t... " >&6; }
f73dda09 24596if test "${ac_cv_type_ptrdiff_t+set}" = set; then
3185942a 24597 $as_echo_n "(cached) " >&6
f73dda09 24598else
3185942a
JA
24599 ac_cv_type_ptrdiff_t=no
24600cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24601/* confdefs.h. */
24602_ACEOF
24603cat confdefs.h >>conftest.$ac_ext
24604cat >>conftest.$ac_ext <<_ACEOF
24605/* end confdefs.h. */
f73dda09
JA
24606$ac_includes_default
24607int
24608main ()
24609{
f73dda09 24610if (sizeof (ptrdiff_t))
3185942a 24611 return 0;
f73dda09
JA
24612 ;
24613 return 0;
24614}
24615_ACEOF
24616rm -f conftest.$ac_objext
3185942a
JA
24617if { (ac_try="$ac_compile"
24618case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24621esac
24622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24623$as_echo "$ac_try_echo") >&5
24624 (eval "$ac_compile") 2>conftest.er1
f73dda09 24625 ac_status=$?
0628567a
JA
24626 grep -v '^ *+' conftest.er1 >conftest.err
24627 rm -f conftest.er1
24628 cat conftest.err >&5
3185942a
JA
24629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } && {
24631 test -z "$ac_c_werror_flag" ||
24632 test ! -s conftest.err
24633 } && test -s conftest.$ac_objext; then
24634 cat >conftest.$ac_ext <<_ACEOF
24635/* confdefs.h. */
24636_ACEOF
24637cat confdefs.h >>conftest.$ac_ext
24638cat >>conftest.$ac_ext <<_ACEOF
24639/* end confdefs.h. */
24640$ac_includes_default
24641int
24642main ()
24643{
24644if (sizeof ((ptrdiff_t)))
24645 return 0;
24646 ;
24647 return 0;
24648}
24649_ACEOF
24650rm -f conftest.$ac_objext
24651if { (ac_try="$ac_compile"
24652case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24655esac
24656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24657$as_echo "$ac_try_echo") >&5
24658 (eval "$ac_compile") 2>conftest.er1
f73dda09 24659 ac_status=$?
3185942a
JA
24660 grep -v '^ *+' conftest.er1 >conftest.err
24661 rm -f conftest.er1
24662 cat conftest.err >&5
24663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } && {
24665 test -z "$ac_c_werror_flag" ||
24666 test ! -s conftest.err
24667 } && test -s conftest.$ac_objext; then
24668 :
24669else
24670 $as_echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
24673 ac_cv_type_ptrdiff_t=yes
24674fi
24675
24676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24677else
3185942a 24678 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24679sed 's/^/| /' conftest.$ac_ext >&5
24680
3185942a 24681
bb70624e 24682fi
3185942a
JA
24683
24684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 24685fi
3185942a
JA
24686{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24687$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
24688if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
f73dda09
JA
24689 :
24690else
24691
b80f6443 24692cat >>confdefs.h <<_ACEOF
bb70624e 24693#define ptrdiff_t int
b80f6443 24694_ACEOF
bb70624e
JA
24695
24696fi
24697
24698fi
24699
b80f6443 24700
3185942a
JA
24701{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
24702$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
f73dda09 24703if test "${ac_cv_header_stat_broken+set}" = set; then
3185942a 24704 $as_echo_n "(cached) " >&6
ccc6cda3 24705else
f73dda09 24706 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24707/* confdefs.h. */
24708_ACEOF
24709cat confdefs.h >>conftest.$ac_ext
24710cat >>conftest.$ac_ext <<_ACEOF
24711/* end confdefs.h. */
ccc6cda3
JA
24712#include <sys/types.h>
24713#include <sys/stat.h>
24714
3185942a
JA
24715#if defined S_ISBLK && defined S_IFDIR
24716extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
ccc6cda3
JA
24717#endif
24718
3185942a
JA
24719#if defined S_ISBLK && defined S_IFCHR
24720extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
ccc6cda3
JA
24721#endif
24722
3185942a
JA
24723#if defined S_ISLNK && defined S_IFREG
24724extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
ccc6cda3
JA
24725#endif
24726
3185942a
JA
24727#if defined S_ISSOCK && defined S_IFREG
24728extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
f73dda09
JA
24729#endif
24730
24731_ACEOF
3185942a
JA
24732rm -f conftest.$ac_objext
24733if { (ac_try="$ac_compile"
24734case "(($ac_try" in
24735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24737esac
24738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24739$as_echo "$ac_try_echo") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24741 ac_status=$?
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
24745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.$ac_objext; then
f73dda09 24750 ac_cv_header_stat_broken=no
3185942a
JA
24751else
24752 $as_echo "$as_me: failed program was:" >&5
24753sed 's/^/| /' conftest.$ac_ext >&5
24754
24755 ac_cv_header_stat_broken=yes
ccc6cda3 24756fi
ccc6cda3 24757
3185942a 24758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24759fi
3185942a
JA
24760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
24761$as_echo "$ac_cv_header_stat_broken" >&6; }
f73dda09 24762if test $ac_cv_header_stat_broken = yes; then
ccc6cda3 24763
b80f6443 24764cat >>confdefs.h <<\_ACEOF
f73dda09 24765#define STAT_MACROS_BROKEN 1
b80f6443 24766_ACEOF
ccc6cda3
JA
24767
24768fi
24769
b80f6443 24770
3185942a
JA
24771{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
24772$as_echo_n "checking whether #! works in shell scripts... " >&6; }
f73dda09 24773if test "${ac_cv_sys_interpreter+set}" = set; then
3185942a 24774 $as_echo_n "(cached) " >&6
ccc6cda3
JA
24775else
24776 echo '#! /bin/cat
24777exit 69
f73dda09 24778' >conftest
ccc6cda3 24779chmod u+x conftest
3185942a 24780(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
ccc6cda3
JA
24781if test $? -ne 69; then
24782 ac_cv_sys_interpreter=yes
24783else
24784 ac_cv_sys_interpreter=no
24785fi
24786rm -f conftest
24787fi
3185942a
JA
24788{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
24789$as_echo "$ac_cv_sys_interpreter" >&6; }
f73dda09 24790interpval=$ac_cv_sys_interpreter
ccc6cda3
JA
24791
24792if test $ac_cv_sys_interpreter = yes; then
b80f6443 24793cat >>confdefs.h <<\_ACEOF
ccc6cda3 24794#define HAVE_HASH_BANG_EXEC 1
b80f6443 24795_ACEOF
ccc6cda3 24796
ccc6cda3
JA
24797fi
24798
ccc6cda3 24799if test "$ac_cv_func_lstat" = "no"; then
3185942a
JA
24800{ $as_echo "$as_me:$LINENO: checking for lstat" >&5
24801$as_echo_n "checking for lstat... " >&6; }
f73dda09 24802if test "${bash_cv_func_lstat+set}" = set; then
3185942a 24803 $as_echo_n "(cached) " >&6
ccc6cda3 24804else
f73dda09 24805 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24806/* confdefs.h. */
24807_ACEOF
24808cat confdefs.h >>conftest.$ac_ext
24809cat >>conftest.$ac_ext <<_ACEOF
24810/* end confdefs.h. */
ccc6cda3
JA
24811
24812#include <sys/types.h>
24813#include <sys/stat.h>
24814
f73dda09
JA
24815int
24816main ()
24817{
24818 lstat(".",(struct stat *)0);
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
24824if { (ac_try="$ac_link"
24825case "(($ac_try" in
24826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24827 *) ac_try_echo=$ac_try;;
24828esac
24829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24830$as_echo "$ac_try_echo") >&5
24831 (eval "$ac_link") 2>conftest.er1
f73dda09 24832 ac_status=$?
0628567a
JA
24833 grep -v '^ *+' conftest.er1 >conftest.err
24834 rm -f conftest.er1
24835 cat conftest.err >&5
3185942a
JA
24836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest$ac_exeext && {
24841 test "$cross_compiling" = yes ||
24842 $as_test_x conftest$ac_exeext
24843 }; then
ccc6cda3
JA
24844 bash_cv_func_lstat=yes
24845else
3185942a 24846 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
24847sed 's/^/| /' conftest.$ac_ext >&5
24848
3185942a 24849 bash_cv_func_lstat=no
ccc6cda3 24850fi
3185942a
JA
24851
24852rm -rf conftest.dSYM
24853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 24854 conftest$ac_exeext conftest.$ac_ext
ccc6cda3 24855fi
3185942a
JA
24856{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
24857$as_echo "$bash_cv_func_lstat" >&6; }
ccc6cda3 24858if test $bash_cv_func_lstat = yes; then
b80f6443 24859 cat >>confdefs.h <<\_ACEOF
ccc6cda3 24860#define HAVE_LSTAT 1
b80f6443
JA
24861_ACEOF
24862
24863fi
24864
24865fi
24866
24867
3185942a
JA
24868{ $as_echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
24869$as_echo_n "checking whether the ctype macros accept non-ascii characters... " >&6; }
b80f6443 24870if test "${bash_cv_func_ctype_nonascii+set}" = set; then
3185942a 24871 $as_echo_n "(cached) " >&6
b80f6443
JA
24872else
24873 if test "$cross_compiling" = yes; then
3185942a
JA
24874 { $as_echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
24875$as_echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
b80f6443
JA
24876 bash_cv_func_ctype_nonascii=no
24877
24878else
24879 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
b80f6443
JA
24885
24886#ifdef HAVE_LOCALE_H
24887#include <locale.h>
24888#endif
24889#include <stdio.h>
24890#include <ctype.h>
24891
24892main(c, v)
24893int c;
24894char *v[];
24895{
24896 char *deflocale;
24897 unsigned char x;
24898 int r1, r2;
24899
24900#ifdef HAVE_SETLOCALE
24901 /* We take a shot here. If that locale is not known, try the
24902 system default. We try this one because '\342' (226) is
24903 known to be a printable character in that locale. */
24904 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
24905 if (deflocale == 0)
24906 deflocale = setlocale(LC_ALL, "");
24907#endif
24908
24909 x = '\342';
24910 r1 = isprint(x);
24911 x -= 128;
24912 r2 = isprint(x);
24913 exit (r1 == 0 || r2 == 0);
24914}
24915
24916_ACEOF
24917rm -f conftest$ac_exeext
3185942a
JA
24918if { (ac_try="$ac_link"
24919case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24922esac
24923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24924$as_echo "$ac_try_echo") >&5
24925 (eval "$ac_link") 2>&5
b80f6443 24926 ac_status=$?
3185942a 24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443 24928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
24929 { (case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24932esac
24933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934$as_echo "$ac_try_echo") >&5
24935 (eval "$ac_try") 2>&5
b80f6443 24936 ac_status=$?
3185942a 24937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b80f6443
JA
24938 (exit $ac_status); }; }; then
24939 bash_cv_func_ctype_nonascii=yes
24940else
3185942a
JA
24941 $as_echo "$as_me: program exited with status $ac_status" >&5
24942$as_echo "$as_me: failed program was:" >&5
0628567a
JA
24943sed 's/^/| /' conftest.$ac_ext >&5
24944
b80f6443
JA
24945( exit $ac_status )
24946bash_cv_func_ctype_nonascii=no
24947fi
3185942a
JA
24948rm -rf conftest.dSYM
24949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 24950fi
3185942a
JA
24951
24952
b80f6443
JA
24953fi
24954
3185942a
JA
24955{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
24956$as_echo "$bash_cv_func_ctype_nonascii" >&6; }
b80f6443
JA
24957if test $bash_cv_func_ctype_nonascii = yes; then
24958cat >>confdefs.h <<\_ACEOF
24959#define CTYPE_NON_ASCII 1
24960_ACEOF
ccc6cda3
JA
24961
24962fi
24963
3185942a
JA
24964{ $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
24965$as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; }
f73dda09 24966if test "${bash_cv_dup2_broken+set}" = set; then
3185942a 24967 $as_echo_n "(cached) " >&6
ccc6cda3
JA
24968else
24969 if test "$cross_compiling" = yes; then
3185942a
JA
24970 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
24971$as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
cce855bc 24972 bash_cv_dup2_broken=no
ccc6cda3 24973else
f73dda09 24974 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
24975/* confdefs.h. */
24976_ACEOF
24977cat confdefs.h >>conftest.$ac_ext
24978cat >>conftest.$ac_ext <<_ACEOF
24979/* end confdefs.h. */
ccc6cda3
JA
24980
24981#include <sys/types.h>
24982#include <fcntl.h>
24983main()
24984{
24985 int fd1, fd2, fl;
24986 fd1 = open("/dev/null", 2);
24987 if (fcntl(fd1, 2, 1) < 0)
24988 exit(1);
24989 fd2 = dup2(fd1, 1);
24990 if (fd2 < 0)
24991 exit(2);
24992 fl = fcntl(fd2, 1, 0);
24993 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
24994 exit(fl != 1);
24995}
24996
f73dda09
JA
24997_ACEOF
24998rm -f conftest$ac_exeext
3185942a
JA
24999if { (ac_try="$ac_link"
25000case "(($ac_try" in
25001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25003esac
25004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25005$as_echo "$ac_try_echo") >&5
25006 (eval "$ac_link") 2>&5
f73dda09 25007 ac_status=$?
3185942a 25008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
25010 { (case "(($ac_try" in
25011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012 *) ac_try_echo=$ac_try;;
25013esac
25014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25015$as_echo "$ac_try_echo") >&5
25016 (eval "$ac_try") 2>&5
f73dda09 25017 ac_status=$?
3185942a 25018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25019 (exit $ac_status); }; }; then
ccc6cda3
JA
25020 bash_cv_dup2_broken=yes
25021else
3185942a
JA
25022 $as_echo "$as_me: program exited with status $ac_status" >&5
25023$as_echo "$as_me: failed program was:" >&5
0628567a
JA
25024sed 's/^/| /' conftest.$ac_ext >&5
25025
b80f6443 25026( exit $ac_status )
f73dda09 25027bash_cv_dup2_broken=no
ccc6cda3 25028fi
3185942a
JA
25029rm -rf conftest.dSYM
25030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
25031fi
25032
3185942a
JA
25033
25034
ccc6cda3
JA
25035fi
25036
3185942a
JA
25037{ $as_echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
25038$as_echo "$bash_cv_dup2_broken" >&6; }
ccc6cda3 25039if test $bash_cv_dup2_broken = yes; then
b80f6443 25040cat >>confdefs.h <<\_ACEOF
ccc6cda3 25041#define DUP2_BROKEN 1
b80f6443 25042_ACEOF
ccc6cda3
JA
25043
25044fi
25045
b80f6443 25046
3185942a
JA
25047{ $as_echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
25048$as_echo_n "checking whether pgrps need synchronization... " >&6; }
f73dda09 25049if test "${bash_cv_pgrp_pipe+set}" = set; then
3185942a 25050 $as_echo_n "(cached) " >&6
ccc6cda3
JA
25051else
25052 if test "$cross_compiling" = yes; then
3185942a
JA
25053 { $as_echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
25054$as_echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
cce855bc 25055 bash_cv_pgrp_pipe=no
ccc6cda3 25056else
f73dda09 25057 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
ccc6cda3
JA
25063
25064#ifdef HAVE_UNISTD_H
25065# include <unistd.h>
25066#endif
25067main()
25068{
25069# ifdef GETPGRP_VOID
25070# define getpgID() getpgrp()
25071# else
25072# define getpgID() getpgrp(0)
25073# define setpgid(x,y) setpgrp(x,y)
25074# endif
25075 int pid1, pid2, fds[2];
25076 int status;
25077 char ok;
25078
25079 switch (pid1 = fork()) {
25080 case -1:
25081 exit(1);
25082 case 0:
25083 setpgid(0, getpid());
25084 exit(0);
25085 }
25086 setpgid(pid1, pid1);
25087
25088 sleep(2); /* let first child die */
25089
25090 if (pipe(fds) < 0)
25091 exit(2);
25092
25093 switch (pid2 = fork()) {
25094 case -1:
25095 exit(3);
25096 case 0:
25097 setpgid(0, pid1);
25098 ok = getpgID() == pid1;
25099 write(fds[1], &ok, 1);
25100 exit(0);
25101 }
25102 setpgid(pid2, pid1);
25103
25104 close(fds[1]);
25105 if (read(fds[0], &ok, 1) != 1)
25106 exit(4);
25107 wait(&status);
25108 wait(&status);
25109 exit(ok ? 0 : 5);
25110}
25111
f73dda09
JA
25112_ACEOF
25113rm -f conftest$ac_exeext
3185942a
JA
25114if { (ac_try="$ac_link"
25115case "(($ac_try" in
25116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25117 *) ac_try_echo=$ac_try;;
25118esac
25119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25120$as_echo "$ac_try_echo") >&5
25121 (eval "$ac_link") 2>&5
f73dda09 25122 ac_status=$?
3185942a 25123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
25125 { (case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25128esac
25129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25130$as_echo "$ac_try_echo") >&5
25131 (eval "$ac_try") 2>&5
f73dda09 25132 ac_status=$?
3185942a 25133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25134 (exit $ac_status); }; }; then
ccc6cda3
JA
25135 bash_cv_pgrp_pipe=no
25136else
3185942a
JA
25137 $as_echo "$as_me: program exited with status $ac_status" >&5
25138$as_echo "$as_me: failed program was:" >&5
0628567a
JA
25139sed 's/^/| /' conftest.$ac_ext >&5
25140
b80f6443 25141( exit $ac_status )
f73dda09 25142bash_cv_pgrp_pipe=yes
ccc6cda3 25143fi
3185942a
JA
25144rm -rf conftest.dSYM
25145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
25146fi
25147
3185942a
JA
25148
25149
ccc6cda3
JA
25150fi
25151
3185942a
JA
25152{ $as_echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
25153$as_echo "$bash_cv_pgrp_pipe" >&6; }
ccc6cda3 25154if test $bash_cv_pgrp_pipe = yes; then
b80f6443 25155cat >>confdefs.h <<\_ACEOF
ccc6cda3 25156#define PGRP_PIPE 1
b80f6443 25157_ACEOF
ccc6cda3
JA
25158
25159fi
25160
b80f6443 25161
3185942a
JA
25162{ $as_echo "$as_me:$LINENO: checking for type of signal functions" >&5
25163$as_echo_n "checking for type of signal functions... " >&6; }
f73dda09 25164if test "${bash_cv_signal_vintage+set}" = set; then
3185942a 25165 $as_echo_n "(cached) " >&6
ccc6cda3 25166else
f73dda09
JA
25167
25168 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25169/* confdefs.h. */
25170_ACEOF
25171cat confdefs.h >>conftest.$ac_ext
25172cat >>conftest.$ac_ext <<_ACEOF
25173/* end confdefs.h. */
d166f048 25174#include <signal.h>
f73dda09
JA
25175int
25176main ()
25177{
d166f048
JA
25178
25179 sigset_t ss;
25180 struct sigaction sa;
25181 sigemptyset(&ss); sigsuspend(&ss);
25182 sigaction(SIGINT, &sa, (struct sigaction *) 0);
25183 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
f73dda09
JA
25184
25185 ;
25186 return 0;
25187}
25188_ACEOF
25189rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
25190if { (ac_try="$ac_link"
25191case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25194esac
25195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25196$as_echo "$ac_try_echo") >&5
25197 (eval "$ac_link") 2>conftest.er1
f73dda09 25198 ac_status=$?
0628567a
JA
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
3185942a
JA
25202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } && {
25204 test -z "$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 } && test -s conftest$ac_exeext && {
25207 test "$cross_compiling" = yes ||
25208 $as_test_x conftest$ac_exeext
25209 }; then
d166f048 25210 bash_cv_signal_vintage=posix
ccc6cda3 25211else
3185942a 25212 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25213sed 's/^/| /' conftest.$ac_ext >&5
25214
f73dda09
JA
25215
25216 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25217/* confdefs.h. */
25218_ACEOF
25219cat confdefs.h >>conftest.$ac_ext
25220cat >>conftest.$ac_ext <<_ACEOF
25221/* end confdefs.h. */
d166f048 25222#include <signal.h>
f73dda09
JA
25223int
25224main ()
25225{
d166f048
JA
25226
25227 int mask = sigmask(SIGINT);
25228 sigsetmask(mask); sigblock(mask); sigpause(mask);
f73dda09
JA
25229
25230 ;
25231 return 0;
25232}
25233_ACEOF
25234rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
25235if { (ac_try="$ac_link"
25236case "(($ac_try" in
25237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25238 *) ac_try_echo=$ac_try;;
25239esac
25240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25241$as_echo "$ac_try_echo") >&5
25242 (eval "$ac_link") 2>conftest.er1
f73dda09 25243 ac_status=$?
0628567a
JA
25244 grep -v '^ *+' conftest.er1 >conftest.err
25245 rm -f conftest.er1
25246 cat conftest.err >&5
3185942a
JA
25247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } && {
25249 test -z "$ac_c_werror_flag" ||
25250 test ! -s conftest.err
25251 } && test -s conftest$ac_exeext && {
25252 test "$cross_compiling" = yes ||
25253 $as_test_x conftest$ac_exeext
25254 }; then
d166f048
JA
25255 bash_cv_signal_vintage=4.2bsd
25256else
3185942a 25257 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25258sed 's/^/| /' conftest.$ac_ext >&5
25259
f73dda09
JA
25260
25261 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25262/* confdefs.h. */
25263_ACEOF
25264cat confdefs.h >>conftest.$ac_ext
25265cat >>conftest.$ac_ext <<_ACEOF
25266/* end confdefs.h. */
d166f048
JA
25267
25268 #include <signal.h>
25269 RETSIGTYPE foo() { }
f73dda09
JA
25270int
25271main ()
25272{
d166f048
JA
25273
25274 int mask = sigmask(SIGINT);
25275 sigset(SIGINT, foo); sigrelse(SIGINT);
25276 sighold(SIGINT); sigpause(SIGINT);
f73dda09
JA
25277
25278 ;
25279 return 0;
25280}
25281_ACEOF
25282rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
25283if { (ac_try="$ac_link"
25284case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25287esac
25288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25289$as_echo "$ac_try_echo") >&5
25290 (eval "$ac_link") 2>conftest.er1
f73dda09 25291 ac_status=$?
0628567a
JA
25292 grep -v '^ *+' conftest.er1 >conftest.err
25293 rm -f conftest.er1
25294 cat conftest.err >&5
3185942a
JA
25295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); } && {
25297 test -z "$ac_c_werror_flag" ||
25298 test ! -s conftest.err
25299 } && test -s conftest$ac_exeext && {
25300 test "$cross_compiling" = yes ||
25301 $as_test_x conftest$ac_exeext
25302 }; then
d166f048
JA
25303 bash_cv_signal_vintage=svr3
25304else
3185942a 25305 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25306sed 's/^/| /' conftest.$ac_ext >&5
25307
3185942a 25308 bash_cv_signal_vintage=v7
f73dda09 25309
d166f048 25310fi
3185942a
JA
25311
25312rm -rf conftest.dSYM
25313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 25314 conftest$ac_exeext conftest.$ac_ext
f73dda09 25315
d166f048 25316fi
3185942a
JA
25317
25318rm -rf conftest.dSYM
25319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 25320 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
25321
25322fi
3185942a
JA
25323
25324rm -rf conftest.dSYM
25325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 25326 conftest$ac_exeext conftest.$ac_ext
d166f048
JA
25327
25328fi
25329
3185942a
JA
25330{ $as_echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
25331$as_echo "$bash_cv_signal_vintage" >&6; }
d166f048 25332if test "$bash_cv_signal_vintage" = posix; then
b80f6443 25333cat >>confdefs.h <<\_ACEOF
d166f048 25334#define HAVE_POSIX_SIGNALS 1
b80f6443 25335_ACEOF
d166f048
JA
25336
25337elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
b80f6443 25338cat >>confdefs.h <<\_ACEOF
d166f048 25339#define HAVE_BSD_SIGNALS 1
b80f6443 25340_ACEOF
d166f048
JA
25341
25342elif test "$bash_cv_signal_vintage" = svr3; then
b80f6443 25343cat >>confdefs.h <<\_ACEOF
d166f048 25344#define HAVE_USG_SIGHOLD 1
b80f6443 25345_ACEOF
d166f048
JA
25346
25347fi
25348
b80f6443 25349
3185942a
JA
25350{ $as_echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
25351$as_echo_n "checking for sys_errlist and sys_nerr... " >&6; }
f73dda09 25352if test "${bash_cv_sys_errlist+set}" = set; then
3185942a 25353 $as_echo_n "(cached) " >&6
cce855bc 25354else
f73dda09 25355 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25356/* confdefs.h. */
25357_ACEOF
25358cat confdefs.h >>conftest.$ac_ext
25359cat >>conftest.$ac_ext <<_ACEOF
25360/* end confdefs.h. */
f73dda09
JA
25361#include <errno.h>
25362int
cce855bc
JA
25363main ()
25364{
d166f048
JA
25365extern char *sys_errlist[];
25366 extern int sys_nerr;
25367 char *msg = sys_errlist[sys_nerr - 1];
f73dda09
JA
25368 ;
25369 return 0;
25370}
25371_ACEOF
25372rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
25373if { (ac_try="$ac_link"
25374case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377esac
25378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25379$as_echo "$ac_try_echo") >&5
25380 (eval "$ac_link") 2>conftest.er1
f73dda09 25381 ac_status=$?
0628567a
JA
25382 grep -v '^ *+' conftest.er1 >conftest.err
25383 rm -f conftest.er1
25384 cat conftest.err >&5
3185942a
JA
25385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } && {
25387 test -z "$ac_c_werror_flag" ||
25388 test ! -s conftest.err
25389 } && test -s conftest$ac_exeext && {
25390 test "$cross_compiling" = yes ||
25391 $as_test_x conftest$ac_exeext
25392 }; then
d166f048
JA
25393 bash_cv_sys_errlist=yes
25394else
3185942a 25395 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25396sed 's/^/| /' conftest.$ac_ext >&5
25397
3185942a 25398 bash_cv_sys_errlist=no
d166f048 25399fi
3185942a
JA
25400
25401rm -rf conftest.dSYM
25402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 25403 conftest$ac_exeext conftest.$ac_ext
d166f048 25404fi
3185942a
JA
25405{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
25406$as_echo "$bash_cv_sys_errlist" >&6; }
d166f048 25407if test $bash_cv_sys_errlist = yes; then
b80f6443 25408cat >>confdefs.h <<\_ACEOF
d166f048 25409#define HAVE_SYS_ERRLIST 1
b80f6443 25410_ACEOF
d166f048
JA
25411
25412fi
25413
b80f6443 25414
3185942a
JA
25415{ $as_echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
25416$as_echo_n "checking for sys_siglist in system C library... " >&6; }
f73dda09 25417if test "${bash_cv_sys_siglist+set}" = set; then
3185942a 25418 $as_echo_n "(cached) " >&6
ccc6cda3
JA
25419else
25420 if test "$cross_compiling" = yes; then
3185942a
JA
25421 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
25422$as_echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 25423 bash_cv_sys_siglist=no
ccc6cda3 25424else
f73dda09 25425 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25426/* confdefs.h. */
25427_ACEOF
25428cat confdefs.h >>conftest.$ac_ext
25429cat >>conftest.$ac_ext <<_ACEOF
25430/* end confdefs.h. */
ccc6cda3
JA
25431
25432#include <sys/types.h>
25433#include <signal.h>
25434#ifdef HAVE_UNISTD_H
25435#include <unistd.h>
25436#endif
3185942a 25437#if !HAVE_DECL_SYS_SIGLIST
ccc6cda3
JA
25438extern char *sys_siglist[];
25439#endif
25440main()
25441{
25442char *msg = sys_siglist[2];
25443exit(msg == 0);
25444}
f73dda09
JA
25445_ACEOF
25446rm -f conftest$ac_exeext
3185942a
JA
25447if { (ac_try="$ac_link"
25448case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25451esac
25452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25453$as_echo "$ac_try_echo") >&5
25454 (eval "$ac_link") 2>&5
f73dda09 25455 ac_status=$?
3185942a 25456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
25458 { (case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25461esac
25462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25463$as_echo "$ac_try_echo") >&5
25464 (eval "$ac_try") 2>&5
f73dda09 25465 ac_status=$?
3185942a 25466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25467 (exit $ac_status); }; }; then
ccc6cda3
JA
25468 bash_cv_sys_siglist=yes
25469else
3185942a
JA
25470 $as_echo "$as_me: program exited with status $ac_status" >&5
25471$as_echo "$as_me: failed program was:" >&5
0628567a
JA
25472sed 's/^/| /' conftest.$ac_ext >&5
25473
b80f6443 25474( exit $ac_status )
f73dda09 25475bash_cv_sys_siglist=no
ccc6cda3 25476fi
3185942a
JA
25477rm -rf conftest.dSYM
25478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25479fi
3185942a
JA
25480
25481
ccc6cda3 25482fi
cce855bc 25483
3185942a
JA
25484{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
25485$as_echo "$bash_cv_sys_siglist" >&6; }
ccc6cda3 25486if test $bash_cv_sys_siglist = yes; then
b80f6443 25487cat >>confdefs.h <<\_ACEOF
ccc6cda3 25488#define HAVE_SYS_SIGLIST 1
b80f6443 25489_ACEOF
ccc6cda3
JA
25490
25491fi
25492
3185942a
JA
25493{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
25494$as_echo_n "checking for _sys_siglist in signal.h or unistd.h... " >&6; }
f73dda09 25495if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
3185942a 25496 $as_echo_n "(cached) " >&6
e8ce775d 25497else
f73dda09 25498 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25499/* confdefs.h. */
25500_ACEOF
25501cat confdefs.h >>conftest.$ac_ext
25502cat >>conftest.$ac_ext <<_ACEOF
25503/* end confdefs.h. */
e8ce775d
JA
25504
25505#include <sys/types.h>
25506#include <signal.h>
25507#ifdef HAVE_UNISTD_H
25508#include <unistd.h>
25509#endif
f73dda09
JA
25510int
25511main ()
25512{
25513 char *msg = _sys_siglist[2];
25514 ;
25515 return 0;
25516}
25517_ACEOF
25518rm -f conftest.$ac_objext
3185942a
JA
25519if { (ac_try="$ac_compile"
25520case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25523esac
25524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25525$as_echo "$ac_try_echo") >&5
25526 (eval "$ac_compile") 2>conftest.er1
f73dda09 25527 ac_status=$?
0628567a
JA
25528 grep -v '^ *+' conftest.er1 >conftest.err
25529 rm -f conftest.er1
25530 cat conftest.err >&5
3185942a
JA
25531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } && {
25533 test -z "$ac_c_werror_flag" ||
25534 test ! -s conftest.err
25535 } && test -s conftest.$ac_objext; then
e8ce775d
JA
25536 bash_cv_decl_under_sys_siglist=yes
25537else
3185942a 25538 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25539sed 's/^/| /' conftest.$ac_ext >&5
25540
3185942a 25541 bash_cv_decl_under_sys_siglist=no
e8ce775d 25542fi
3185942a
JA
25543
25544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8ce775d 25545fi
3185942a
JA
25546{ $as_echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
25547$as_echo "$bash_cv_decl_under_sys_siglist" >&6; }
e8ce775d 25548if test $bash_cv_decl_under_sys_siglist = yes; then
b80f6443 25549cat >>confdefs.h <<\_ACEOF
e8ce775d 25550#define UNDER_SYS_SIGLIST_DECLARED 1
b80f6443 25551_ACEOF
e8ce775d
JA
25552
25553fi
25554
b80f6443 25555
3185942a
JA
25556{ $as_echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
25557$as_echo_n "checking for _sys_siglist in system C library... " >&6; }
f73dda09 25558if test "${bash_cv_under_sys_siglist+set}" = set; then
3185942a 25559 $as_echo_n "(cached) " >&6
ccc6cda3
JA
25560else
25561 if test "$cross_compiling" = yes; then
3185942a
JA
25562 { $as_echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
25563$as_echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
cce855bc 25564 bash_cv_under_sys_siglist=no
ccc6cda3 25565else
f73dda09 25566 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
ccc6cda3
JA
25572
25573#include <sys/types.h>
25574#include <signal.h>
25575#ifdef HAVE_UNISTD_H
25576#include <unistd.h>
25577#endif
e8ce775d 25578#ifndef UNDER_SYS_SIGLIST_DECLARED
ccc6cda3
JA
25579extern char *_sys_siglist[];
25580#endif
25581main()
25582{
e8ce775d 25583char *msg = (char *)_sys_siglist[2];
ccc6cda3
JA
25584exit(msg == 0);
25585}
f73dda09
JA
25586_ACEOF
25587rm -f conftest$ac_exeext
3185942a
JA
25588if { (ac_try="$ac_link"
25589case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25592esac
25593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25594$as_echo "$ac_try_echo") >&5
25595 (eval "$ac_link") 2>&5
f73dda09 25596 ac_status=$?
3185942a 25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
25599 { (case "(($ac_try" in
25600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601 *) ac_try_echo=$ac_try;;
25602esac
25603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25604$as_echo "$ac_try_echo") >&5
25605 (eval "$ac_try") 2>&5
f73dda09 25606 ac_status=$?
3185942a 25607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 25608 (exit $ac_status); }; }; then
ccc6cda3
JA
25609 bash_cv_under_sys_siglist=yes
25610else
3185942a
JA
25611 $as_echo "$as_me: program exited with status $ac_status" >&5
25612$as_echo "$as_me: failed program was:" >&5
0628567a
JA
25613sed 's/^/| /' conftest.$ac_ext >&5
25614
b80f6443 25615( exit $ac_status )
f73dda09 25616bash_cv_under_sys_siglist=no
ccc6cda3 25617fi
3185942a
JA
25618rm -rf conftest.dSYM
25619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25620fi
3185942a
JA
25621
25622
ccc6cda3 25623fi
cce855bc 25624
3185942a
JA
25625{ $as_echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
25626$as_echo "$bash_cv_under_sys_siglist" >&6; }
ccc6cda3 25627if test $bash_cv_under_sys_siglist = yes; then
b80f6443 25628cat >>confdefs.h <<\_ACEOF
ccc6cda3 25629#define HAVE_UNDER_SYS_SIGLIST 1
b80f6443 25630_ACEOF
ccc6cda3
JA
25631
25632fi
25633
b80f6443 25634
3185942a
JA
25635{ $as_echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
25636$as_echo_n "checking whether signal handlers are of type void... " >&6; }
f73dda09 25637if test "${bash_cv_void_sighandler+set}" = set; then
3185942a 25638 $as_echo_n "(cached) " >&6
ccc6cda3 25639else
f73dda09 25640 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25641/* confdefs.h. */
25642_ACEOF
25643cat confdefs.h >>conftest.$ac_ext
25644cat >>conftest.$ac_ext <<_ACEOF
25645/* end confdefs.h. */
ccc6cda3
JA
25646#include <sys/types.h>
25647#include <signal.h>
25648#ifdef signal
25649#undef signal
25650#endif
25651#ifdef __cplusplus
25652extern "C"
25653#endif
25654void (*signal ()) ();
f73dda09
JA
25655int
25656main ()
25657{
ccc6cda3 25658int i;
f73dda09
JA
25659 ;
25660 return 0;
25661}
25662_ACEOF
25663rm -f conftest.$ac_objext
3185942a
JA
25664if { (ac_try="$ac_compile"
25665case "(($ac_try" in
25666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667 *) ac_try_echo=$ac_try;;
25668esac
25669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670$as_echo "$ac_try_echo") >&5
25671 (eval "$ac_compile") 2>conftest.er1
f73dda09 25672 ac_status=$?
0628567a
JA
25673 grep -v '^ *+' conftest.er1 >conftest.err
25674 rm -f conftest.er1
25675 cat conftest.err >&5
3185942a
JA
25676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } && {
25678 test -z "$ac_c_werror_flag" ||
25679 test ! -s conftest.err
25680 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
25681 bash_cv_void_sighandler=yes
25682else
3185942a 25683 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
25684sed 's/^/| /' conftest.$ac_ext >&5
25685
3185942a 25686 bash_cv_void_sighandler=no
ccc6cda3 25687fi
3185942a
JA
25688
25689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 25690fi
3185942a
JA
25691{ $as_echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
25692$as_echo "$bash_cv_void_sighandler" >&6; }
ccc6cda3 25693if test $bash_cv_void_sighandler = yes; then
b80f6443 25694cat >>confdefs.h <<\_ACEOF
ccc6cda3 25695#define VOID_SIGHANDLER 1
b80f6443 25696_ACEOF
ccc6cda3
JA
25697
25698fi
25699
b80f6443
JA
25700
25701
3185942a
JA
25702{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5
25703$as_echo_n "checking for clock_t... " >&6; }
f73dda09 25704if test "${bash_cv_type_clock_t+set}" = set; then
3185942a 25705 $as_echo_n "(cached) " >&6
ccc6cda3 25706else
f73dda09 25707 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25708/* confdefs.h. */
25709_ACEOF
25710cat confdefs.h >>conftest.$ac_ext
25711cat >>conftest.$ac_ext <<_ACEOF
25712/* end confdefs.h. */
ccc6cda3
JA
25713#include <sys/types.h>
25714#if STDC_HEADERS
25715#include <stdlib.h>
f73dda09
JA
25716#include <stddef.h>
25717#endif
25718#if HAVE_INTTYPES_H
25719#include <inttypes.h>
ccc6cda3
JA
25720#endif
25721#include <sys/times.h>
25722
f73dda09 25723_ACEOF
ccc6cda3 25724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25725 $EGREP "clock_t" >/dev/null 2>&1; then
ccc6cda3
JA
25726 bash_cv_type_clock_t=yes
25727else
ccc6cda3
JA
25728 bash_cv_type_clock_t=no
25729fi
25730rm -f conftest*
25731
25732fi
25733
3185942a
JA
25734{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
25735$as_echo "$bash_cv_type_clock_t" >&6; }
ccc6cda3
JA
25736
25737if test $bash_cv_type_clock_t = no; then
b80f6443 25738 cat >>confdefs.h <<_ACEOF
ccc6cda3 25739#define clock_t long
b80f6443 25740_ACEOF
ccc6cda3
JA
25741
25742fi
25743
b80f6443
JA
25744
25745
3185942a
JA
25746{ $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
25747$as_echo_n "checking for sigset_t... " >&6; }
f73dda09 25748if test "${bash_cv_type_sigset_t+set}" = set; then
3185942a 25749 $as_echo_n "(cached) " >&6
ccc6cda3 25750else
f73dda09 25751 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25752/* confdefs.h. */
25753_ACEOF
25754cat confdefs.h >>conftest.$ac_ext
25755cat >>conftest.$ac_ext <<_ACEOF
25756/* end confdefs.h. */
ccc6cda3
JA
25757#include <sys/types.h>
25758#if STDC_HEADERS
25759#include <stdlib.h>
f73dda09
JA
25760#include <stddef.h>
25761#endif
25762#if HAVE_INTTYPES_H
25763#include <inttypes.h>
ccc6cda3
JA
25764#endif
25765#include <signal.h>
25766
f73dda09 25767_ACEOF
ccc6cda3 25768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25769 $EGREP "sigset_t" >/dev/null 2>&1; then
ccc6cda3
JA
25770 bash_cv_type_sigset_t=yes
25771else
ccc6cda3
JA
25772 bash_cv_type_sigset_t=no
25773fi
25774rm -f conftest*
25775
25776fi
25777
3185942a
JA
25778{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
25779$as_echo "$bash_cv_type_sigset_t" >&6; }
ccc6cda3
JA
25780
25781if test $bash_cv_type_sigset_t = no; then
b80f6443 25782 cat >>confdefs.h <<_ACEOF
ccc6cda3 25783#define sigset_t int
b80f6443 25784_ACEOF
ccc6cda3
JA
25785
25786fi
25787
b80f6443
JA
25788
25789
3185942a
JA
25790{ $as_echo "$as_me:$LINENO: checking for quad_t" >&5
25791$as_echo_n "checking for quad_t... " >&6; }
f73dda09 25792if test "${bash_cv_type_quad_t+set}" = set; then
3185942a 25793 $as_echo_n "(cached) " >&6
ccc6cda3 25794else
f73dda09 25795 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25796/* confdefs.h. */
25797_ACEOF
25798cat confdefs.h >>conftest.$ac_ext
25799cat >>conftest.$ac_ext <<_ACEOF
25800/* end confdefs.h. */
ccc6cda3
JA
25801#include <sys/types.h>
25802#if STDC_HEADERS
25803#include <stdlib.h>
f73dda09
JA
25804#include <stddef.h>
25805#endif
25806#if HAVE_INTTYPES_H
25807#include <inttypes.h>
ccc6cda3
JA
25808#endif
25809
b80f6443 25810
f73dda09 25811_ACEOF
ccc6cda3 25812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25813 $EGREP "quad_t" >/dev/null 2>&1; then
ccc6cda3
JA
25814 bash_cv_type_quad_t=yes
25815else
ccc6cda3
JA
25816 bash_cv_type_quad_t=no
25817fi
25818rm -f conftest*
25819
25820fi
25821
3185942a
JA
25822{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
25823$as_echo "$bash_cv_type_quad_t" >&6; }
ccc6cda3 25824if test $bash_cv_type_quad_t = yes; then
b80f6443 25825 cat >>confdefs.h <<\_ACEOF
ccc6cda3 25826#define HAVE_QUAD_T 1
b80f6443 25827_ACEOF
ccc6cda3
JA
25828
25829 fi
25830if test $bash_cv_type_quad_t = no; then
b80f6443 25831 cat >>confdefs.h <<_ACEOF
ccc6cda3 25832#define quad_t long
b80f6443 25833_ACEOF
ccc6cda3
JA
25834
25835fi
25836
b80f6443
JA
25837
25838
3185942a
JA
25839{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
25840$as_echo_n "checking for intmax_t... " >&6; }
f73dda09 25841if test "${bash_cv_type_intmax_t+set}" = set; then
3185942a 25842 $as_echo_n "(cached) " >&6
f73dda09
JA
25843else
25844 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25845/* confdefs.h. */
25846_ACEOF
25847cat confdefs.h >>conftest.$ac_ext
25848cat >>conftest.$ac_ext <<_ACEOF
25849/* end confdefs.h. */
f73dda09
JA
25850#include <sys/types.h>
25851#if STDC_HEADERS
25852#include <stdlib.h>
25853#include <stddef.h>
25854#endif
25855#if HAVE_INTTYPES_H
25856#include <inttypes.h>
25857#endif
25858
b80f6443 25859
f73dda09
JA
25860_ACEOF
25861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25862 $EGREP "intmax_t" >/dev/null 2>&1; then
f73dda09
JA
25863 bash_cv_type_intmax_t=yes
25864else
25865 bash_cv_type_intmax_t=no
25866fi
25867rm -f conftest*
25868
25869fi
25870
3185942a
JA
25871{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
25872$as_echo "$bash_cv_type_intmax_t" >&6; }
f73dda09
JA
25873
25874if test $bash_cv_type_intmax_t = no; then
b80f6443 25875 cat >>confdefs.h <<_ACEOF
f73dda09 25876#define intmax_t $bash_cv_type_long_long
b80f6443 25877_ACEOF
f73dda09
JA
25878
25879fi
25880
b80f6443
JA
25881
25882
3185942a
JA
25883{ $as_echo "$as_me:$LINENO: checking for uintmax_t" >&5
25884$as_echo_n "checking for uintmax_t... " >&6; }
f73dda09 25885if test "${bash_cv_type_uintmax_t+set}" = set; then
3185942a 25886 $as_echo_n "(cached) " >&6
f73dda09
JA
25887else
25888 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25889/* confdefs.h. */
25890_ACEOF
25891cat confdefs.h >>conftest.$ac_ext
25892cat >>conftest.$ac_ext <<_ACEOF
25893/* end confdefs.h. */
f73dda09
JA
25894#include <sys/types.h>
25895#if STDC_HEADERS
25896#include <stdlib.h>
25897#include <stddef.h>
25898#endif
25899#if HAVE_INTTYPES_H
25900#include <inttypes.h>
25901#endif
25902
b80f6443 25903
f73dda09
JA
25904_ACEOF
25905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25906 $EGREP "uintmax_t" >/dev/null 2>&1; then
f73dda09
JA
25907 bash_cv_type_uintmax_t=yes
25908else
25909 bash_cv_type_uintmax_t=no
25910fi
25911rm -f conftest*
25912
25913fi
25914
3185942a
JA
25915{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
25916$as_echo "$bash_cv_type_uintmax_t" >&6; }
f73dda09
JA
25917
25918if test $bash_cv_type_uintmax_t = no; then
b80f6443 25919 cat >>confdefs.h <<_ACEOF
f73dda09 25920#define uintmax_t $bash_cv_type_unsigned_long_long
b80f6443 25921_ACEOF
f73dda09
JA
25922
25923fi
25924
25925if test "$ac_cv_header_sys_socket_h" = "yes"; then
25926
b80f6443 25927
3185942a
JA
25928{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
25929$as_echo_n "checking for socklen_t... " >&6; }
f73dda09 25930if test "${bash_cv_type_socklen_t+set}" = set; then
3185942a 25931 $as_echo_n "(cached) " >&6
f73dda09
JA
25932else
25933 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25934/* confdefs.h. */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h. */
f73dda09
JA
25939#include <sys/types.h>
25940#if STDC_HEADERS
25941#include <stdlib.h>
25942#include <stddef.h>
25943#endif
25944#if HAVE_INTTYPES_H
25945#include <inttypes.h>
25946#endif
25947#include <sys/socket.h>
25948
25949_ACEOF
25950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 25951 $EGREP "socklen_t" >/dev/null 2>&1; then
f73dda09
JA
25952 bash_cv_type_socklen_t=yes
25953else
25954 bash_cv_type_socklen_t=no
25955fi
25956rm -f conftest*
25957
25958fi
25959
3185942a
JA
25960{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
25961$as_echo "$bash_cv_type_socklen_t" >&6; }
f73dda09 25962if test $bash_cv_type_socklen_t = yes; then
b80f6443 25963 cat >>confdefs.h <<\_ACEOF
f73dda09 25964#define HAVE_SOCKLEN_T 1
b80f6443 25965_ACEOF
f73dda09
JA
25966
25967 fi
25968if test $bash_cv_type_socklen_t = no; then
b80f6443 25969 cat >>confdefs.h <<_ACEOF
f73dda09 25970#define socklen_t int
b80f6443 25971_ACEOF
f73dda09
JA
25972
25973fi
25974
25975fi
3185942a
JA
25976{ $as_echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
25977$as_echo_n "checking for size and type of struct rlimit fields... " >&6; }
f73dda09 25978if test "${bash_cv_type_rlimit+set}" = set; then
3185942a 25979 $as_echo_n "(cached) " >&6
ccc6cda3 25980else
f73dda09 25981 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
25982/* confdefs.h. */
25983_ACEOF
25984cat confdefs.h >>conftest.$ac_ext
25985cat >>conftest.$ac_ext <<_ACEOF
25986/* end confdefs.h. */
ccc6cda3 25987#include <sys/types.h>
cce855bc 25988#include <sys/resource.h>
f73dda09
JA
25989int
25990main ()
25991{
ccc6cda3 25992rlim_t xxx;
f73dda09
JA
25993 ;
25994 return 0;
25995}
25996_ACEOF
25997rm -f conftest.$ac_objext
3185942a
JA
25998if { (ac_try="$ac_compile"
25999case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26002esac
26003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26004$as_echo "$ac_try_echo") >&5
26005 (eval "$ac_compile") 2>conftest.er1
f73dda09 26006 ac_status=$?
0628567a
JA
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
3185942a
JA
26010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && {
26012 test -z "$ac_c_werror_flag" ||
26013 test ! -s conftest.err
26014 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
26015 bash_cv_type_rlimit=rlim_t
26016else
3185942a 26017 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26018sed 's/^/| /' conftest.$ac_ext >&5
26019
f73dda09 26020
ccc6cda3 26021if test "$cross_compiling" = yes; then
3185942a
JA
26022 { $as_echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
26023$as_echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
cce855bc 26024 bash_cv_type_rlimit=long
ccc6cda3 26025else
f73dda09 26026 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26027/* confdefs.h. */
26028_ACEOF
26029cat confdefs.h >>conftest.$ac_ext
26030cat >>conftest.$ac_ext <<_ACEOF
26031/* end confdefs.h. */
ccc6cda3
JA
26032
26033#include <sys/types.h>
26034#include <sys/time.h>
26035#include <sys/resource.h>
26036main()
26037{
26038#ifdef HAVE_QUAD_T
26039 struct rlimit rl;
26040 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
26041 exit(0);
26042#endif
26043 exit(1);
26044}
f73dda09
JA
26045_ACEOF
26046rm -f conftest$ac_exeext
3185942a
JA
26047if { (ac_try="$ac_link"
26048case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26051esac
26052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26053$as_echo "$ac_try_echo") >&5
26054 (eval "$ac_link") 2>&5
f73dda09 26055 ac_status=$?
3185942a 26056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
26058 { (case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26061esac
26062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26063$as_echo "$ac_try_echo") >&5
26064 (eval "$ac_try") 2>&5
f73dda09 26065 ac_status=$?
3185942a 26066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 26067 (exit $ac_status); }; }; then
ccc6cda3
JA
26068 bash_cv_type_rlimit=quad_t
26069else
3185942a
JA
26070 $as_echo "$as_me: program exited with status $ac_status" >&5
26071$as_echo "$as_me: failed program was:" >&5
0628567a
JA
26072sed 's/^/| /' conftest.$ac_ext >&5
26073
b80f6443 26074( exit $ac_status )
f73dda09 26075bash_cv_type_rlimit=long
ccc6cda3 26076fi
3185942a
JA
26077rm -rf conftest.dSYM
26078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 26079fi
3185942a
JA
26080
26081
ccc6cda3 26082fi
3185942a
JA
26083
26084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26085
26086fi
26087
3185942a
JA
26088{ $as_echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
26089$as_echo "$bash_cv_type_rlimit" >&6; }
ccc6cda3 26090if test $bash_cv_type_rlimit = quad_t; then
b80f6443 26091cat >>confdefs.h <<\_ACEOF
ccc6cda3 26092#define RLIMTYPE quad_t
b80f6443 26093_ACEOF
ccc6cda3
JA
26094
26095elif test $bash_cv_type_rlimit = rlim_t; then
b80f6443 26096cat >>confdefs.h <<\_ACEOF
ccc6cda3 26097#define RLIMTYPE rlim_t
b80f6443 26098_ACEOF
ccc6cda3
JA
26099
26100fi
26101
b80f6443
JA
26102
26103
3185942a
JA
26104{ $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
26105$as_echo_n "checking for struct termios.c_line... " >&6; }
f73dda09 26106if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
3185942a 26107 $as_echo_n "(cached) " >&6
ccc6cda3 26108else
f73dda09 26109 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26110/* confdefs.h. */
26111_ACEOF
26112cat confdefs.h >>conftest.$ac_ext
26113cat >>conftest.$ac_ext <<_ACEOF
26114/* end confdefs.h. */
f73dda09 26115
ccc6cda3
JA
26116#include <sys/types.h>
26117#include <termios.h>
f73dda09 26118
b80f6443 26119
f73dda09
JA
26120int
26121main ()
26122{
26123static struct termios ac_aggr;
26124if (ac_aggr.c_line)
26125return 0;
26126 ;
26127 return 0;
26128}
26129_ACEOF
26130rm -f conftest.$ac_objext
3185942a
JA
26131if { (ac_try="$ac_compile"
26132case "(($ac_try" in
26133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26135esac
26136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26137$as_echo "$ac_try_echo") >&5
26138 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
26139 ac_status=$?
26140 grep -v '^ *+' conftest.er1 >conftest.err
26141 rm -f conftest.er1
26142 cat conftest.err >&5
3185942a
JA
26143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } && {
26145 test -z "$ac_c_werror_flag" ||
26146 test ! -s conftest.err
26147 } && test -s conftest.$ac_objext; then
0628567a
JA
26148 ac_cv_member_struct_termios_c_line=yes
26149else
3185942a 26150 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26151sed 's/^/| /' conftest.$ac_ext >&5
26152
3185942a 26153 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26154/* confdefs.h. */
26155_ACEOF
26156cat confdefs.h >>conftest.$ac_ext
26157cat >>conftest.$ac_ext <<_ACEOF
26158/* end confdefs.h. */
26159
26160#include <sys/types.h>
26161#include <termios.h>
26162
26163
26164int
26165main ()
26166{
26167static struct termios ac_aggr;
26168if (sizeof ac_aggr.c_line)
26169return 0;
26170 ;
26171 return 0;
26172}
26173_ACEOF
26174rm -f conftest.$ac_objext
3185942a
JA
26175if { (ac_try="$ac_compile"
26176case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26179esac
26180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26181$as_echo "$ac_try_echo") >&5
26182 (eval "$ac_compile") 2>conftest.er1
b80f6443 26183 ac_status=$?
0628567a
JA
26184 grep -v '^ *+' conftest.er1 >conftest.err
26185 rm -f conftest.er1
26186 cat conftest.err >&5
3185942a
JA
26187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } && {
26189 test -z "$ac_c_werror_flag" ||
26190 test ! -s conftest.err
26191 } && test -s conftest.$ac_objext; then
b80f6443
JA
26192 ac_cv_member_struct_termios_c_line=yes
26193else
3185942a 26194 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26195sed 's/^/| /' conftest.$ac_ext >&5
26196
3185942a 26197 ac_cv_member_struct_termios_c_line=no
f73dda09 26198fi
3185942a
JA
26199
26200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 26201fi
3185942a
JA
26202
26203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 26204fi
3185942a
JA
26205{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
26206$as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
26207if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
b80f6443 26208 cat >>confdefs.h <<\_ACEOF
ccc6cda3 26209#define TERMIOS_LDISC 1
b80f6443 26210_ACEOF
ccc6cda3
JA
26211
26212fi
26213
b80f6443
JA
26214
26215
3185942a
JA
26216{ $as_echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
26217$as_echo_n "checking for struct termio.c_line... " >&6; }
f73dda09 26218if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
3185942a 26219 $as_echo_n "(cached) " >&6
ccc6cda3 26220else
f73dda09 26221 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26222/* confdefs.h. */
26223_ACEOF
26224cat confdefs.h >>conftest.$ac_ext
26225cat >>conftest.$ac_ext <<_ACEOF
26226/* end confdefs.h. */
f73dda09 26227
ccc6cda3
JA
26228#include <sys/types.h>
26229#include <termio.h>
f73dda09 26230
b80f6443 26231
f73dda09
JA
26232int
26233main ()
26234{
26235static struct termio ac_aggr;
26236if (ac_aggr.c_line)
26237return 0;
26238 ;
26239 return 0;
26240}
26241_ACEOF
26242rm -f conftest.$ac_objext
3185942a
JA
26243if { (ac_try="$ac_compile"
26244case "(($ac_try" in
26245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26246 *) ac_try_echo=$ac_try;;
26247esac
26248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26249$as_echo "$ac_try_echo") >&5
26250 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
26251 ac_status=$?
26252 grep -v '^ *+' conftest.er1 >conftest.err
26253 rm -f conftest.er1
26254 cat conftest.err >&5
3185942a
JA
26255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } && {
26257 test -z "$ac_c_werror_flag" ||
26258 test ! -s conftest.err
26259 } && test -s conftest.$ac_objext; then
0628567a
JA
26260 ac_cv_member_struct_termio_c_line=yes
26261else
3185942a 26262 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26263sed 's/^/| /' conftest.$ac_ext >&5
26264
3185942a 26265 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26266/* confdefs.h. */
26267_ACEOF
26268cat confdefs.h >>conftest.$ac_ext
26269cat >>conftest.$ac_ext <<_ACEOF
26270/* end confdefs.h. */
26271
26272#include <sys/types.h>
26273#include <termio.h>
26274
26275
26276int
26277main ()
26278{
26279static struct termio ac_aggr;
26280if (sizeof ac_aggr.c_line)
26281return 0;
26282 ;
26283 return 0;
26284}
26285_ACEOF
26286rm -f conftest.$ac_objext
3185942a
JA
26287if { (ac_try="$ac_compile"
26288case "(($ac_try" in
26289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290 *) ac_try_echo=$ac_try;;
26291esac
26292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26293$as_echo "$ac_try_echo") >&5
26294 (eval "$ac_compile") 2>conftest.er1
b80f6443 26295 ac_status=$?
0628567a
JA
26296 grep -v '^ *+' conftest.er1 >conftest.err
26297 rm -f conftest.er1
26298 cat conftest.err >&5
3185942a
JA
26299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
26303 } && test -s conftest.$ac_objext; then
b80f6443
JA
26304 ac_cv_member_struct_termio_c_line=yes
26305else
3185942a 26306 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26307sed 's/^/| /' conftest.$ac_ext >&5
26308
3185942a 26309 ac_cv_member_struct_termio_c_line=no
f73dda09 26310fi
3185942a
JA
26311
26312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 26313fi
3185942a
JA
26314
26315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 26316fi
3185942a
JA
26317{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
26318$as_echo "$ac_cv_member_struct_termio_c_line" >&6; }
26319if test "x$ac_cv_member_struct_termio_c_line" = x""yes; then
b80f6443 26320 cat >>confdefs.h <<\_ACEOF
ccc6cda3 26321#define TERMIO_LDISC 1
b80f6443 26322_ACEOF
ccc6cda3
JA
26323
26324fi
26325
b80f6443
JA
26326
26327
3185942a
JA
26328{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
26329$as_echo_n "checking for struct dirent.d_ino... " >&6; }
f73dda09 26330if test "${bash_cv_dirent_has_dino+set}" = set; then
3185942a 26331 $as_echo_n "(cached) " >&6
ccc6cda3 26332else
f73dda09 26333 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26334/* confdefs.h. */
26335_ACEOF
26336cat confdefs.h >>conftest.$ac_ext
26337cat >>conftest.$ac_ext <<_ACEOF
26338/* end confdefs.h. */
ccc6cda3
JA
26339
26340#include <stdio.h>
26341#include <sys/types.h>
26342#ifdef HAVE_UNISTD_H
26343# include <unistd.h>
26344#endif /* HAVE_UNISTD_H */
26345#if defined(HAVE_DIRENT_H)
26346# include <dirent.h>
26347#else
26348# define dirent direct
26349# ifdef HAVE_SYS_NDIR_H
26350# include <sys/ndir.h>
26351# endif /* SYSNDIR */
26352# ifdef HAVE_SYS_DIR_H
26353# include <sys/dir.h>
26354# endif /* SYSDIR */
26355# ifdef HAVE_NDIR_H
26356# include <ndir.h>
26357# endif
26358#endif /* HAVE_DIRENT_H */
26359
f73dda09
JA
26360int
26361main ()
26362{
ccc6cda3
JA
26363
26364struct dirent d; int z; z = d.d_ino;
26365
f73dda09
JA
26366 ;
26367 return 0;
26368}
26369_ACEOF
26370rm -f conftest.$ac_objext
3185942a
JA
26371if { (ac_try="$ac_compile"
26372case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375esac
26376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26377$as_echo "$ac_try_echo") >&5
26378 (eval "$ac_compile") 2>conftest.er1
f73dda09 26379 ac_status=$?
0628567a
JA
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
3185942a
JA
26383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } && {
26385 test -z "$ac_c_werror_flag" ||
26386 test ! -s conftest.err
26387 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
26388 bash_cv_dirent_has_dino=yes
26389else
3185942a 26390 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26391sed 's/^/| /' conftest.$ac_ext >&5
26392
3185942a 26393 bash_cv_dirent_has_dino=no
ccc6cda3 26394fi
3185942a
JA
26395
26396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
26397fi
26398
3185942a
JA
26399{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
26400$as_echo "$bash_cv_dirent_has_dino" >&6; }
ccc6cda3 26401if test $bash_cv_dirent_has_dino = yes; then
b80f6443
JA
26402cat >>confdefs.h <<\_ACEOF
26403#define HAVE_STRUCT_DIRENT_D_INO 1
26404_ACEOF
ccc6cda3
JA
26405
26406fi
26407
b80f6443 26408
3185942a
JA
26409{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
26410$as_echo_n "checking for struct dirent.d_fileno... " >&6; }
f73dda09 26411if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
3185942a 26412 $as_echo_n "(cached) " >&6
d166f048 26413else
f73dda09 26414 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26415/* confdefs.h. */
26416_ACEOF
26417cat confdefs.h >>conftest.$ac_ext
26418cat >>conftest.$ac_ext <<_ACEOF
26419/* end confdefs.h. */
d166f048
JA
26420
26421#include <stdio.h>
26422#include <sys/types.h>
26423#ifdef HAVE_UNISTD_H
26424# include <unistd.h>
26425#endif /* HAVE_UNISTD_H */
26426#if defined(HAVE_DIRENT_H)
26427# include <dirent.h>
26428#else
26429# define dirent direct
26430# ifdef HAVE_SYS_NDIR_H
26431# include <sys/ndir.h>
26432# endif /* SYSNDIR */
26433# ifdef HAVE_SYS_DIR_H
26434# include <sys/dir.h>
26435# endif /* SYSDIR */
26436# ifdef HAVE_NDIR_H
26437# include <ndir.h>
26438# endif
26439#endif /* HAVE_DIRENT_H */
26440
f73dda09
JA
26441int
26442main ()
26443{
d166f048
JA
26444
26445struct dirent d; int z; z = d.d_fileno;
26446
f73dda09
JA
26447 ;
26448 return 0;
26449}
26450_ACEOF
26451rm -f conftest.$ac_objext
3185942a
JA
26452if { (ac_try="$ac_compile"
26453case "(($ac_try" in
26454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26455 *) ac_try_echo=$ac_try;;
26456esac
26457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26458$as_echo "$ac_try_echo") >&5
26459 (eval "$ac_compile") 2>conftest.er1
f73dda09 26460 ac_status=$?
0628567a
JA
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
3185942a
JA
26464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } && {
26466 test -z "$ac_c_werror_flag" ||
26467 test ! -s conftest.err
26468 } && test -s conftest.$ac_objext; then
d166f048
JA
26469 bash_cv_dirent_has_d_fileno=yes
26470else
3185942a 26471 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26472sed 's/^/| /' conftest.$ac_ext >&5
26473
3185942a 26474 bash_cv_dirent_has_d_fileno=no
d166f048 26475fi
3185942a
JA
26476
26477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
26478fi
26479
3185942a
JA
26480{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
26481$as_echo "$bash_cv_dirent_has_d_fileno" >&6; }
d166f048 26482if test $bash_cv_dirent_has_d_fileno = yes; then
b80f6443
JA
26483cat >>confdefs.h <<\_ACEOF
26484#define HAVE_STRUCT_DIRENT_D_FILENO 1
26485_ACEOF
26486
26487fi
26488
26489
3185942a
JA
26490{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
26491$as_echo_n "checking for struct dirent.d_namlen... " >&6; }
b80f6443 26492if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
3185942a 26493 $as_echo_n "(cached) " >&6
b80f6443
JA
26494else
26495 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26496/* confdefs.h. */
26497_ACEOF
26498cat confdefs.h >>conftest.$ac_ext
26499cat >>conftest.$ac_ext <<_ACEOF
26500/* end confdefs.h. */
b80f6443
JA
26501
26502#include <stdio.h>
26503#include <sys/types.h>
26504#ifdef HAVE_UNISTD_H
26505# include <unistd.h>
26506#endif /* HAVE_UNISTD_H */
26507#if defined(HAVE_DIRENT_H)
26508# include <dirent.h>
26509#else
26510# define dirent direct
26511# ifdef HAVE_SYS_NDIR_H
26512# include <sys/ndir.h>
26513# endif /* SYSNDIR */
26514# ifdef HAVE_SYS_DIR_H
26515# include <sys/dir.h>
26516# endif /* SYSDIR */
26517# ifdef HAVE_NDIR_H
26518# include <ndir.h>
26519# endif
26520#endif /* HAVE_DIRENT_H */
26521
26522int
26523main ()
26524{
26525
26526struct dirent d; int z; z = d.d_namlen;
26527
26528 ;
26529 return 0;
26530}
26531_ACEOF
26532rm -f conftest.$ac_objext
3185942a
JA
26533if { (ac_try="$ac_compile"
26534case "(($ac_try" in
26535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26536 *) ac_try_echo=$ac_try;;
26537esac
26538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26539$as_echo "$ac_try_echo") >&5
26540 (eval "$ac_compile") 2>conftest.er1
b80f6443 26541 ac_status=$?
0628567a
JA
26542 grep -v '^ *+' conftest.er1 >conftest.err
26543 rm -f conftest.er1
26544 cat conftest.err >&5
3185942a
JA
26545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } && {
26547 test -z "$ac_c_werror_flag" ||
26548 test ! -s conftest.err
26549 } && test -s conftest.$ac_objext; then
b80f6443
JA
26550 bash_cv_dirent_has_d_namlen=yes
26551else
3185942a 26552 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26553sed 's/^/| /' conftest.$ac_ext >&5
26554
3185942a 26555 bash_cv_dirent_has_d_namlen=no
d166f048 26556fi
3185942a
JA
26557
26558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b80f6443
JA
26559fi
26560
3185942a
JA
26561{ $as_echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
26562$as_echo "$bash_cv_dirent_has_d_namlen" >&6; }
b80f6443
JA
26563if test $bash_cv_dirent_has_d_namlen = yes; then
26564cat >>confdefs.h <<\_ACEOF
26565#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
26566_ACEOF
d166f048 26567
b80f6443
JA
26568fi
26569
3185942a
JA
26570{ $as_echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
26571$as_echo_n "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
f73dda09 26572if test "${bash_cv_struct_winsize_header+set}" = set; then
3185942a 26573 $as_echo_n "(cached) " >&6
d166f048 26574else
f73dda09 26575 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26576/* confdefs.h. */
26577_ACEOF
26578cat confdefs.h >>conftest.$ac_ext
26579cat >>conftest.$ac_ext <<_ACEOF
26580/* end confdefs.h. */
d166f048
JA
26581#include <sys/types.h>
26582#include <sys/ioctl.h>
f73dda09
JA
26583int
26584main ()
26585{
d166f048 26586struct winsize x;
f73dda09
JA
26587 ;
26588 return 0;
26589}
26590_ACEOF
26591rm -f conftest.$ac_objext
3185942a
JA
26592if { (ac_try="$ac_compile"
26593case "(($ac_try" in
26594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595 *) ac_try_echo=$ac_try;;
26596esac
26597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26598$as_echo "$ac_try_echo") >&5
26599 (eval "$ac_compile") 2>conftest.er1
f73dda09 26600 ac_status=$?
0628567a
JA
26601 grep -v '^ *+' conftest.er1 >conftest.err
26602 rm -f conftest.er1
26603 cat conftest.err >&5
3185942a
JA
26604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } && {
26606 test -z "$ac_c_werror_flag" ||
26607 test ! -s conftest.err
26608 } && test -s conftest.$ac_objext; then
cce855bc
JA
26609 bash_cv_struct_winsize_header=ioctl_h
26610else
3185942a 26611 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26612sed 's/^/| /' conftest.$ac_ext >&5
26613
3185942a 26614 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26615/* confdefs.h. */
26616_ACEOF
26617cat confdefs.h >>conftest.$ac_ext
26618cat >>conftest.$ac_ext <<_ACEOF
26619/* end confdefs.h. */
cce855bc
JA
26620#include <sys/types.h>
26621#include <termios.h>
f73dda09
JA
26622int
26623main ()
26624{
cce855bc 26625struct winsize x;
f73dda09
JA
26626 ;
26627 return 0;
26628}
26629_ACEOF
26630rm -f conftest.$ac_objext
3185942a
JA
26631if { (ac_try="$ac_compile"
26632case "(($ac_try" in
26633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26635esac
26636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26637$as_echo "$ac_try_echo") >&5
26638 (eval "$ac_compile") 2>conftest.er1
f73dda09 26639 ac_status=$?
0628567a
JA
26640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
3185942a
JA
26643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } && {
26645 test -z "$ac_c_werror_flag" ||
26646 test ! -s conftest.err
26647 } && test -s conftest.$ac_objext; then
cce855bc 26648 bash_cv_struct_winsize_header=termios_h
d166f048 26649else
3185942a 26650 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26651sed 's/^/| /' conftest.$ac_ext >&5
26652
3185942a 26653 bash_cv_struct_winsize_header=other
cce855bc 26654fi
3185942a
JA
26655
26656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cce855bc 26657
d166f048 26658fi
3185942a
JA
26659
26660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
26661fi
26662
cce855bc 26663if test $bash_cv_struct_winsize_header = ioctl_h; then
3185942a
JA
26664 { $as_echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
26665$as_echo "sys/ioctl.h" >&6; }
b80f6443 26666 cat >>confdefs.h <<\_ACEOF
d166f048 26667#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
b80f6443 26668_ACEOF
d166f048 26669
cce855bc 26670elif test $bash_cv_struct_winsize_header = termios_h; then
3185942a
JA
26671 { $as_echo "$as_me:$LINENO: result: termios.h" >&5
26672$as_echo "termios.h" >&6; }
b80f6443 26673 cat >>confdefs.h <<\_ACEOF
cce855bc 26674#define STRUCT_WINSIZE_IN_TERMIOS 1
b80f6443 26675_ACEOF
cce855bc
JA
26676
26677else
3185942a
JA
26678 { $as_echo "$as_me:$LINENO: result: not found" >&5
26679$as_echo "not found" >&6; }
d166f048
JA
26680fi
26681
3185942a
JA
26682{ $as_echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
26683$as_echo_n "checking for struct timeval in sys/time.h and time.h... " >&6; }
f73dda09 26684if test "${bash_cv_struct_timeval+set}" = set; then
3185942a 26685 $as_echo_n "(cached) " >&6
bb70624e 26686else
f73dda09
JA
26687
26688cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26689/* confdefs.h. */
26690_ACEOF
26691cat confdefs.h >>conftest.$ac_ext
26692cat >>conftest.$ac_ext <<_ACEOF
26693/* end confdefs.h. */
bb70624e 26694#include <sys/time.h>
f73dda09
JA
26695
26696_ACEOF
bb70624e 26697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26698 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
26699 bash_cv_struct_timeval=yes
26700else
f73dda09 26701 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26702/* confdefs.h. */
26703_ACEOF
26704cat confdefs.h >>conftest.$ac_ext
26705cat >>conftest.$ac_ext <<_ACEOF
26706/* end confdefs.h. */
bb70624e 26707#include <time.h>
f73dda09
JA
26708
26709_ACEOF
bb70624e 26710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 26711 $EGREP "struct timeval" >/dev/null 2>&1; then
bb70624e
JA
26712 bash_cv_struct_timeval=yes
26713else
bb70624e
JA
26714 bash_cv_struct_timeval=no
26715fi
26716rm -f conftest*
26717
26718fi
26719rm -f conftest*
26720
b80f6443 26721
bb70624e
JA
26722fi
26723
3185942a
JA
26724{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
26725$as_echo "$bash_cv_struct_timeval" >&6; }
bb70624e 26726if test $bash_cv_struct_timeval = yes; then
b80f6443 26727 cat >>confdefs.h <<\_ACEOF
bb70624e 26728#define HAVE_TIMEVAL 1
b80f6443 26729_ACEOF
bb70624e
JA
26730
26731fi
26732
3185942a
JA
26733{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
26734$as_echo_n "checking for struct stat.st_blocks... " >&6; }
f73dda09 26735if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
3185942a 26736 $as_echo_n "(cached) " >&6
f73dda09
JA
26737else
26738 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
f73dda09
JA
26744$ac_includes_default
26745int
26746main ()
26747{
26748static struct stat ac_aggr;
26749if (ac_aggr.st_blocks)
26750return 0;
26751 ;
26752 return 0;
26753}
26754_ACEOF
26755rm -f conftest.$ac_objext
3185942a
JA
26756if { (ac_try="$ac_compile"
26757case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26760esac
26761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26762$as_echo "$ac_try_echo") >&5
26763 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
26764 ac_status=$?
26765 grep -v '^ *+' conftest.er1 >conftest.err
26766 rm -f conftest.er1
26767 cat conftest.err >&5
3185942a
JA
26768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } && {
26770 test -z "$ac_c_werror_flag" ||
26771 test ! -s conftest.err
26772 } && test -s conftest.$ac_objext; then
0628567a
JA
26773 ac_cv_member_struct_stat_st_blocks=yes
26774else
3185942a 26775 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26776sed 's/^/| /' conftest.$ac_ext >&5
26777
3185942a 26778 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26779/* confdefs.h. */
26780_ACEOF
26781cat confdefs.h >>conftest.$ac_ext
26782cat >>conftest.$ac_ext <<_ACEOF
26783/* end confdefs.h. */
26784$ac_includes_default
26785int
26786main ()
26787{
26788static struct stat ac_aggr;
26789if (sizeof ac_aggr.st_blocks)
26790return 0;
26791 ;
26792 return 0;
26793}
26794_ACEOF
26795rm -f conftest.$ac_objext
3185942a
JA
26796if { (ac_try="$ac_compile"
26797case "(($ac_try" in
26798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799 *) ac_try_echo=$ac_try;;
26800esac
26801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26802$as_echo "$ac_try_echo") >&5
26803 (eval "$ac_compile") 2>conftest.er1
b80f6443 26804 ac_status=$?
0628567a
JA
26805 grep -v '^ *+' conftest.er1 >conftest.err
26806 rm -f conftest.er1
26807 cat conftest.err >&5
3185942a
JA
26808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); } && {
26810 test -z "$ac_c_werror_flag" ||
26811 test ! -s conftest.err
26812 } && test -s conftest.$ac_objext; then
b80f6443
JA
26813 ac_cv_member_struct_stat_st_blocks=yes
26814else
3185942a 26815 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26816sed 's/^/| /' conftest.$ac_ext >&5
26817
3185942a 26818 ac_cv_member_struct_stat_st_blocks=no
f73dda09 26819fi
3185942a
JA
26820
26821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 26822fi
3185942a
JA
26823
26824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f73dda09 26825fi
3185942a
JA
26826{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
26827$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
26828if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
f73dda09 26829
b80f6443 26830cat >>confdefs.h <<_ACEOF
f73dda09 26831#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b80f6443
JA
26832_ACEOF
26833
f73dda09
JA
26834
26835fi
d166f048 26836
3185942a
JA
26837{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26838$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7117c2d2 26839if test "${ac_cv_struct_tm+set}" = set; then
3185942a 26840 $as_echo_n "(cached) " >&6
7117c2d2
JA
26841else
26842 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26843/* confdefs.h. */
26844_ACEOF
26845cat confdefs.h >>conftest.$ac_ext
26846cat >>conftest.$ac_ext <<_ACEOF
26847/* end confdefs.h. */
7117c2d2
JA
26848#include <sys/types.h>
26849#include <time.h>
26850
26851int
26852main ()
26853{
3185942a
JA
26854struct tm tm;
26855 int *p = &tm.tm_sec;
26856 return !p;
7117c2d2
JA
26857 ;
26858 return 0;
26859}
26860_ACEOF
26861rm -f conftest.$ac_objext
3185942a
JA
26862if { (ac_try="$ac_compile"
26863case "(($ac_try" in
26864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865 *) ac_try_echo=$ac_try;;
26866esac
26867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26868$as_echo "$ac_try_echo") >&5
26869 (eval "$ac_compile") 2>conftest.er1
7117c2d2 26870 ac_status=$?
0628567a
JA
26871 grep -v '^ *+' conftest.er1 >conftest.err
26872 rm -f conftest.er1
26873 cat conftest.err >&5
3185942a
JA
26874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } && {
26876 test -z "$ac_c_werror_flag" ||
26877 test ! -s conftest.err
26878 } && test -s conftest.$ac_objext; then
7117c2d2
JA
26879 ac_cv_struct_tm=time.h
26880else
3185942a 26881 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26882sed 's/^/| /' conftest.$ac_ext >&5
26883
3185942a 26884 ac_cv_struct_tm=sys/time.h
7117c2d2 26885fi
3185942a
JA
26886
26887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 26888fi
3185942a
JA
26889{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26890$as_echo "$ac_cv_struct_tm" >&6; }
7117c2d2
JA
26891if test $ac_cv_struct_tm = sys/time.h; then
26892
b80f6443 26893cat >>confdefs.h <<\_ACEOF
7117c2d2 26894#define TM_IN_SYS_TIME 1
b80f6443 26895_ACEOF
7117c2d2
JA
26896
26897fi
26898
3185942a
JA
26899{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26900$as_echo_n "checking for struct tm.tm_zone... " >&6; }
7117c2d2 26901if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3185942a 26902 $as_echo_n "(cached) " >&6
7117c2d2 26903else
b80f6443 26904 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26905/* confdefs.h. */
26906_ACEOF
26907cat confdefs.h >>conftest.$ac_ext
26908cat >>conftest.$ac_ext <<_ACEOF
26909/* end confdefs.h. */
b80f6443
JA
26910#include <sys/types.h>
26911#include <$ac_cv_struct_tm>
26912
26913
26914int
26915main ()
26916{
26917static struct tm ac_aggr;
26918if (ac_aggr.tm_zone)
26919return 0;
26920 ;
26921 return 0;
26922}
26923_ACEOF
26924rm -f conftest.$ac_objext
3185942a
JA
26925if { (ac_try="$ac_compile"
26926case "(($ac_try" in
26927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26929esac
26930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26931$as_echo "$ac_try_echo") >&5
26932 (eval "$ac_compile") 2>conftest.er1
0628567a
JA
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
3185942a
JA
26937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } && {
26939 test -z "$ac_c_werror_flag" ||
26940 test ! -s conftest.err
26941 } && test -s conftest.$ac_objext; then
0628567a
JA
26942 ac_cv_member_struct_tm_tm_zone=yes
26943else
3185942a 26944 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26945sed 's/^/| /' conftest.$ac_ext >&5
26946
3185942a 26947 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
26948/* confdefs.h. */
26949_ACEOF
26950cat confdefs.h >>conftest.$ac_ext
26951cat >>conftest.$ac_ext <<_ACEOF
26952/* end confdefs.h. */
26953#include <sys/types.h>
26954#include <$ac_cv_struct_tm>
26955
26956
26957int
26958main ()
26959{
26960static struct tm ac_aggr;
26961if (sizeof ac_aggr.tm_zone)
26962return 0;
26963 ;
26964 return 0;
26965}
26966_ACEOF
26967rm -f conftest.$ac_objext
3185942a
JA
26968if { (ac_try="$ac_compile"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26974$as_echo "$ac_try_echo") >&5
26975 (eval "$ac_compile") 2>conftest.er1
b80f6443 26976 ac_status=$?
0628567a
JA
26977 grep -v '^ *+' conftest.er1 >conftest.err
26978 rm -f conftest.er1
26979 cat conftest.err >&5
3185942a
JA
26980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } && {
26982 test -z "$ac_c_werror_flag" ||
26983 test ! -s conftest.err
26984 } && test -s conftest.$ac_objext; then
b80f6443
JA
26985 ac_cv_member_struct_tm_tm_zone=yes
26986else
3185942a 26987 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
26988sed 's/^/| /' conftest.$ac_ext >&5
26989
3185942a 26990 ac_cv_member_struct_tm_tm_zone=no
7117c2d2 26991fi
3185942a
JA
26992
26993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0628567a 26994fi
3185942a
JA
26995
26996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117c2d2 26997fi
3185942a
JA
26998{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26999$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
27000if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7117c2d2 27001
b80f6443 27002cat >>confdefs.h <<_ACEOF
7117c2d2 27003#define HAVE_STRUCT_TM_TM_ZONE 1
b80f6443
JA
27004_ACEOF
27005
7117c2d2
JA
27006
27007fi
27008
27009if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
27010
b80f6443 27011cat >>confdefs.h <<\_ACEOF
7117c2d2 27012#define HAVE_TM_ZONE 1
b80f6443 27013_ACEOF
7117c2d2
JA
27014
27015else
3185942a
JA
27016 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
27017$as_echo_n "checking whether tzname is declared... " >&6; }
27018if test "${ac_cv_have_decl_tzname+set}" = set; then
27019 $as_echo_n "(cached) " >&6
27020else
27021 cat >conftest.$ac_ext <<_ACEOF
27022/* confdefs.h. */
27023_ACEOF
27024cat confdefs.h >>conftest.$ac_ext
27025cat >>conftest.$ac_ext <<_ACEOF
27026/* end confdefs.h. */
27027#include <time.h>
27028
27029int
27030main ()
27031{
27032#ifndef tzname
27033 (void) tzname;
27034#endif
27035
27036 ;
27037 return 0;
27038}
27039_ACEOF
27040rm -f conftest.$ac_objext
27041if { (ac_try="$ac_compile"
27042case "(($ac_try" in
27043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044 *) ac_try_echo=$ac_try;;
27045esac
27046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27047$as_echo "$ac_try_echo") >&5
27048 (eval "$ac_compile") 2>conftest.er1
27049 ac_status=$?
27050 grep -v '^ *+' conftest.er1 >conftest.err
27051 rm -f conftest.er1
27052 cat conftest.err >&5
27053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); } && {
27055 test -z "$ac_c_werror_flag" ||
27056 test ! -s conftest.err
27057 } && test -s conftest.$ac_objext; then
27058 ac_cv_have_decl_tzname=yes
27059else
27060 $as_echo "$as_me: failed program was:" >&5
27061sed 's/^/| /' conftest.$ac_ext >&5
27062
27063 ac_cv_have_decl_tzname=no
27064fi
27065
27066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27067fi
27068{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
27069$as_echo "$ac_cv_have_decl_tzname" >&6; }
27070if test "x$ac_cv_have_decl_tzname" = x""yes; then
27071
27072cat >>confdefs.h <<_ACEOF
27073#define HAVE_DECL_TZNAME 1
27074_ACEOF
27075
27076
27077else
27078 cat >>confdefs.h <<_ACEOF
27079#define HAVE_DECL_TZNAME 0
27080_ACEOF
27081
27082
27083fi
27084
27085
27086 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
27087$as_echo_n "checking for tzname... " >&6; }
7117c2d2 27088if test "${ac_cv_var_tzname+set}" = set; then
3185942a 27089 $as_echo_n "(cached) " >&6
7117c2d2
JA
27090else
27091 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27092/* confdefs.h. */
27093_ACEOF
27094cat confdefs.h >>conftest.$ac_ext
27095cat >>conftest.$ac_ext <<_ACEOF
27096/* end confdefs.h. */
7117c2d2 27097#include <time.h>
3185942a
JA
27098#if !HAVE_DECL_TZNAME
27099extern char *tzname[];
7117c2d2
JA
27100#endif
27101
27102int
27103main ()
27104{
3185942a 27105return tzname[0][0];
7117c2d2
JA
27106 ;
27107 return 0;
27108}
27109_ACEOF
27110rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
27111if { (ac_try="$ac_link"
27112case "(($ac_try" in
27113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114 *) ac_try_echo=$ac_try;;
27115esac
27116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27117$as_echo "$ac_try_echo") >&5
27118 (eval "$ac_link") 2>conftest.er1
7117c2d2 27119 ac_status=$?
0628567a
JA
27120 grep -v '^ *+' conftest.er1 >conftest.err
27121 rm -f conftest.er1
27122 cat conftest.err >&5
3185942a
JA
27123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } && {
27125 test -z "$ac_c_werror_flag" ||
27126 test ! -s conftest.err
27127 } && test -s conftest$ac_exeext && {
27128 test "$cross_compiling" = yes ||
27129 $as_test_x conftest$ac_exeext
27130 }; then
7117c2d2
JA
27131 ac_cv_var_tzname=yes
27132else
3185942a 27133 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27134sed 's/^/| /' conftest.$ac_ext >&5
27135
3185942a 27136 ac_cv_var_tzname=no
7117c2d2 27137fi
3185942a
JA
27138
27139rm -rf conftest.dSYM
27140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 27141 conftest$ac_exeext conftest.$ac_ext
7117c2d2 27142fi
3185942a
JA
27143{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27144$as_echo "$ac_cv_var_tzname" >&6; }
7117c2d2
JA
27145 if test $ac_cv_var_tzname = yes; then
27146
b80f6443 27147cat >>confdefs.h <<\_ACEOF
7117c2d2 27148#define HAVE_TZNAME 1
b80f6443 27149_ACEOF
7117c2d2
JA
27150
27151 fi
27152fi
27153
3185942a
JA
27154{ $as_echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
27155$as_echo_n "checking for struct timezone in sys/time.h and time.h... " >&6; }
b80f6443 27156if test "${bash_cv_struct_timezone+set}" = set; then
3185942a 27157 $as_echo_n "(cached) " >&6
b80f6443
JA
27158else
27159
27160cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
b80f6443
JA
27166#include <sys/time.h>
27167
27168_ACEOF
27169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 27170 $EGREP "struct timezone" >/dev/null 2>&1; then
b80f6443
JA
27171 bash_cv_struct_timezone=yes
27172else
27173 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27174/* confdefs.h. */
27175_ACEOF
27176cat confdefs.h >>conftest.$ac_ext
27177cat >>conftest.$ac_ext <<_ACEOF
27178/* end confdefs.h. */
b80f6443
JA
27179#include <time.h>
27180
27181_ACEOF
27182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 27183 $EGREP "struct timezone" >/dev/null 2>&1; then
b80f6443
JA
27184 bash_cv_struct_timezone=yes
27185else
27186 bash_cv_struct_timezone=no
27187fi
27188rm -f conftest*
27189
27190fi
27191rm -f conftest*
27192
27193
27194fi
27195
3185942a
JA
27196{ $as_echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
27197$as_echo "$bash_cv_struct_timezone" >&6; }
b80f6443
JA
27198if test $bash_cv_struct_timezone = yes; then
27199 cat >>confdefs.h <<\_ACEOF
27200#define HAVE_STRUCT_TIMEZONE 1
27201_ACEOF
27202
27203fi
27204
27205
3185942a
JA
27206{ $as_echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
27207$as_echo_n "checking for the existence of strsignal... " >&6; }
f73dda09 27208if test "${bash_cv_have_strsignal+set}" = set; then
3185942a 27209 $as_echo_n "(cached) " >&6
ccc6cda3 27210else
f73dda09 27211 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27212/* confdefs.h. */
27213_ACEOF
27214cat confdefs.h >>conftest.$ac_ext
27215cat >>conftest.$ac_ext <<_ACEOF
27216/* end confdefs.h. */
ccc6cda3
JA
27217#include <sys/types.h>
27218#include <signal.h>
f73dda09
JA
27219int
27220main ()
27221{
ccc6cda3 27222char *s = (char *)strsignal(2);
f73dda09
JA
27223 ;
27224 return 0;
27225}
27226_ACEOF
27227rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
27228if { (ac_try="$ac_link"
27229case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232esac
27233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27234$as_echo "$ac_try_echo") >&5
27235 (eval "$ac_link") 2>conftest.er1
f73dda09 27236 ac_status=$?
0628567a
JA
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
3185942a
JA
27240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && {
27242 test -z "$ac_c_werror_flag" ||
27243 test ! -s conftest.err
27244 } && test -s conftest$ac_exeext && {
27245 test "$cross_compiling" = yes ||
27246 $as_test_x conftest$ac_exeext
27247 }; then
ccc6cda3
JA
27248 bash_cv_have_strsignal=yes
27249else
3185942a 27250 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27251sed 's/^/| /' conftest.$ac_ext >&5
27252
3185942a 27253 bash_cv_have_strsignal=no
ccc6cda3 27254fi
3185942a
JA
27255
27256rm -rf conftest.dSYM
27257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 27258 conftest$ac_exeext conftest.$ac_ext
ccc6cda3
JA
27259fi
27260
3185942a
JA
27261{ $as_echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
27262$as_echo "$bash_cv_have_strsignal" >&6; }
ccc6cda3 27263if test $bash_cv_have_strsignal = yes; then
b80f6443 27264cat >>confdefs.h <<\_ACEOF
ccc6cda3 27265#define HAVE_STRSIGNAL 1
b80f6443 27266_ACEOF
ccc6cda3
JA
27267
27268fi
27269
3185942a
JA
27270{ $as_echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
27271$as_echo_n "checking if opendir() opens non-directories... " >&6; }
f73dda09 27272if test "${bash_cv_opendir_not_robust+set}" = set; then
3185942a 27273 $as_echo_n "(cached) " >&6
ccc6cda3
JA
27274else
27275 if test "$cross_compiling" = yes; then
3185942a
JA
27276 { $as_echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
27277$as_echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
27278 bash_cv_opendir_not_robust=no
27279
ccc6cda3 27280else
f73dda09 27281 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27282/* confdefs.h. */
27283_ACEOF
27284cat confdefs.h >>conftest.$ac_ext
27285cat >>conftest.$ac_ext <<_ACEOF
27286/* end confdefs.h. */
ccc6cda3
JA
27287
27288#include <stdio.h>
27289#include <sys/types.h>
27290#include <fcntl.h>
27291#ifdef HAVE_UNISTD_H
27292# include <unistd.h>
27293#endif /* HAVE_UNISTD_H */
27294#if defined(HAVE_DIRENT_H)
27295# include <dirent.h>
27296#else
27297# define dirent direct
27298# ifdef HAVE_SYS_NDIR_H
27299# include <sys/ndir.h>
27300# endif /* SYSNDIR */
27301# ifdef HAVE_SYS_DIR_H
27302# include <sys/dir.h>
27303# endif /* SYSDIR */
27304# ifdef HAVE_NDIR_H
27305# include <ndir.h>
27306# endif
27307#endif /* HAVE_DIRENT_H */
27308main()
27309{
27310DIR *dir;
bb70624e 27311int fd, err;
3185942a 27312err = mkdir("bash-aclocal", 0700);
bb70624e
JA
27313if (err < 0) {
27314 perror("mkdir");
27315 exit(1);
27316}
3185942a
JA
27317unlink("bash-aclocal/not_a_directory");
27318fd = open("bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
ccc6cda3
JA
27319write(fd, "\n", 1);
27320close(fd);
3185942a
JA
27321dir = opendir("bash-aclocal/not_a_directory");
27322unlink("bash-aclocal/not_a_directory");
27323rmdir("bash-aclocal");
ccc6cda3
JA
27324exit (dir == 0);
27325}
f73dda09
JA
27326_ACEOF
27327rm -f conftest$ac_exeext
3185942a
JA
27328if { (ac_try="$ac_link"
27329case "(($ac_try" in
27330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331 *) ac_try_echo=$ac_try;;
27332esac
27333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27334$as_echo "$ac_try_echo") >&5
27335 (eval "$ac_link") 2>&5
f73dda09 27336 ac_status=$?
3185942a 27337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27339 { (case "(($ac_try" in
27340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27341 *) ac_try_echo=$ac_try;;
27342esac
27343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27344$as_echo "$ac_try_echo") >&5
27345 (eval "$ac_try") 2>&5
f73dda09 27346 ac_status=$?
3185942a 27347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27348 (exit $ac_status); }; }; then
ccc6cda3
JA
27349 bash_cv_opendir_not_robust=yes
27350else
3185942a
JA
27351 $as_echo "$as_me: program exited with status $ac_status" >&5
27352$as_echo "$as_me: failed program was:" >&5
0628567a
JA
27353sed 's/^/| /' conftest.$ac_ext >&5
27354
b80f6443 27355( exit $ac_status )
f73dda09 27356bash_cv_opendir_not_robust=no
ccc6cda3 27357fi
3185942a
JA
27358rm -rf conftest.dSYM
27359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27360fi
3185942a
JA
27361
27362
ccc6cda3
JA
27363fi
27364
3185942a
JA
27365{ $as_echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
27366$as_echo "$bash_cv_opendir_not_robust" >&6; }
ccc6cda3 27367if test $bash_cv_opendir_not_robust = yes; then
b80f6443 27368cat >>confdefs.h <<\_ACEOF
ccc6cda3 27369#define OPENDIR_NOT_ROBUST 1
b80f6443 27370_ACEOF
ccc6cda3
JA
27371
27372fi
27373
3185942a
JA
27374{ $as_echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
27375$as_echo_n "checking whether ulimit can substitute for getdtablesize... " >&6; }
f73dda09 27376if test "${bash_cv_ulimit_maxfds+set}" = set; then
3185942a 27377 $as_echo_n "(cached) " >&6
ccc6cda3
JA
27378else
27379 if test "$cross_compiling" = yes; then
3185942a
JA
27380 { $as_echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
27381$as_echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
27382 bash_cv_ulimit_maxfds=no
27383
ccc6cda3 27384else
f73dda09 27385 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27386/* confdefs.h. */
27387_ACEOF
27388cat confdefs.h >>conftest.$ac_ext
27389cat >>conftest.$ac_ext <<_ACEOF
27390/* end confdefs.h. */
ccc6cda3
JA
27391
27392main()
27393{
27394long maxfds = ulimit(4, 0L);
27395exit (maxfds == -1L);
27396}
27397
f73dda09
JA
27398_ACEOF
27399rm -f conftest$ac_exeext
3185942a
JA
27400if { (ac_try="$ac_link"
27401case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27404esac
27405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27406$as_echo "$ac_try_echo") >&5
27407 (eval "$ac_link") 2>&5
f73dda09 27408 ac_status=$?
3185942a 27409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27411 { (case "(($ac_try" in
27412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27413 *) ac_try_echo=$ac_try;;
27414esac
27415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27416$as_echo "$ac_try_echo") >&5
27417 (eval "$ac_try") 2>&5
f73dda09 27418 ac_status=$?
3185942a 27419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27420 (exit $ac_status); }; }; then
ccc6cda3
JA
27421 bash_cv_ulimit_maxfds=yes
27422else
3185942a
JA
27423 $as_echo "$as_me: program exited with status $ac_status" >&5
27424$as_echo "$as_me: failed program was:" >&5
27425sed 's/^/| /' conftest.$ac_ext >&5
27426
27427( exit $ac_status )
27428bash_cv_ulimit_maxfds=no
27429fi
27430rm -rf conftest.dSYM
27431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27432fi
27433
27434
27435fi
27436
27437{ $as_echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
27438$as_echo "$bash_cv_ulimit_maxfds" >&6; }
27439if test $bash_cv_ulimit_maxfds = yes; then
27440cat >>confdefs.h <<\_ACEOF
27441#define ULIMIT_MAXFDS 1
27442_ACEOF
27443
27444fi
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463 { $as_echo "$as_me:$LINENO: checking whether fpurge is declared" >&5
27464$as_echo_n "checking whether fpurge is declared... " >&6; }
27465if test "${ac_cv_have_decl_fpurge+set}" = set; then
27466 $as_echo_n "(cached) " >&6
27467else
27468 cat >conftest.$ac_ext <<_ACEOF
27469/* confdefs.h. */
27470_ACEOF
27471cat confdefs.h >>conftest.$ac_ext
27472cat >>conftest.$ac_ext <<_ACEOF
27473/* end confdefs.h. */
27474#include <stdio.h>
27475
27476int
27477main ()
27478{
27479#ifndef fpurge
27480 (void) fpurge;
27481#endif
27482
27483 ;
27484 return 0;
27485}
27486_ACEOF
27487rm -f conftest.$ac_objext
27488if { (ac_try="$ac_compile"
27489case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492esac
27493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27494$as_echo "$ac_try_echo") >&5
27495 (eval "$ac_compile") 2>conftest.er1
27496 ac_status=$?
27497 grep -v '^ *+' conftest.er1 >conftest.err
27498 rm -f conftest.er1
27499 cat conftest.err >&5
27500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); } && {
27502 test -z "$ac_c_werror_flag" ||
27503 test ! -s conftest.err
27504 } && test -s conftest.$ac_objext; then
27505 ac_cv_have_decl_fpurge=yes
27506else
27507 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
3185942a 27510 ac_cv_have_decl_fpurge=no
ccc6cda3 27511fi
3185942a
JA
27512
27513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27514fi
3185942a
JA
27515{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fpurge" >&5
27516$as_echo "$ac_cv_have_decl_fpurge" >&6; }
27517if test "x$ac_cv_have_decl_fpurge" = x""yes; then
ccc6cda3 27518
3185942a
JA
27519cat >>confdefs.h <<_ACEOF
27520#define HAVE_DECL_FPURGE 1
27521_ACEOF
27522
27523
27524else
27525 cat >>confdefs.h <<_ACEOF
27526#define HAVE_DECL_FPURGE 0
b80f6443 27527_ACEOF
ccc6cda3 27528
3185942a 27529
ccc6cda3
JA
27530fi
27531
3185942a
JA
27532
27533
27534{ $as_echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
27535$as_echo_n "checking to see if getenv can be redefined... " >&6; }
f73dda09 27536if test "${bash_cv_getenv_redef+set}" = set; then
3185942a 27537 $as_echo_n "(cached) " >&6
ccc6cda3
JA
27538else
27539 if test "$cross_compiling" = yes; then
3185942a
JA
27540 { $as_echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
27541$as_echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
cce855bc
JA
27542 bash_cv_getenv_redef=yes
27543
ccc6cda3 27544else
f73dda09 27545 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27546/* confdefs.h. */
27547_ACEOF
27548cat confdefs.h >>conftest.$ac_ext
27549cat >>conftest.$ac_ext <<_ACEOF
27550/* end confdefs.h. */
ccc6cda3
JA
27551
27552#ifdef HAVE_UNISTD_H
27553# include <unistd.h>
27554#endif
27555#ifndef __STDC__
27556# ifndef const
27557# define const
27558# endif
27559#endif
27560char *
27561getenv (name)
27562#if defined (__linux__) || defined (__bsdi__) || defined (convex)
27563 const char *name;
27564#else
27565 char const *name;
27566#endif /* !__linux__ && !__bsdi__ && !convex */
27567{
27568return "42";
27569}
27570main()
27571{
27572char *s;
27573/* The next allows this program to run, but does not allow bash to link
27574 when it redefines getenv. I'm not really interested in figuring out
27575 why not. */
27576#if defined (NeXT)
27577exit(1);
27578#endif
27579s = getenv("ABCDE");
27580exit(s == 0); /* force optimizer to leave getenv in */
27581}
27582
f73dda09
JA
27583_ACEOF
27584rm -f conftest$ac_exeext
3185942a
JA
27585if { (ac_try="$ac_link"
27586case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591$as_echo "$ac_try_echo") >&5
27592 (eval "$ac_link") 2>&5
f73dda09 27593 ac_status=$?
3185942a 27594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27599esac
27600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27601$as_echo "$ac_try_echo") >&5
27602 (eval "$ac_try") 2>&5
f73dda09 27603 ac_status=$?
3185942a 27604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27605 (exit $ac_status); }; }; then
ccc6cda3
JA
27606 bash_cv_getenv_redef=yes
27607else
3185942a
JA
27608 $as_echo "$as_me: program exited with status $ac_status" >&5
27609$as_echo "$as_me: failed program was:" >&5
0628567a
JA
27610sed 's/^/| /' conftest.$ac_ext >&5
27611
b80f6443 27612( exit $ac_status )
f73dda09 27613bash_cv_getenv_redef=no
ccc6cda3 27614fi
3185942a
JA
27615rm -rf conftest.dSYM
27616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27617fi
3185942a
JA
27618
27619
ccc6cda3
JA
27620fi
27621
3185942a
JA
27622{ $as_echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
27623$as_echo "$bash_cv_getenv_redef" >&6; }
ccc6cda3 27624if test $bash_cv_getenv_redef = yes; then
b80f6443 27625cat >>confdefs.h <<\_ACEOF
ccc6cda3 27626#define CAN_REDEFINE_GETENV 1
b80f6443 27627_ACEOF
ccc6cda3
JA
27628
27629fi
27630
7117c2d2 27631if test "$ac_cv_func_getcwd" = "yes"; then
3185942a
JA
27632{ $as_echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory with 0 size" >&5
27633$as_echo_n "checking if getcwd() will dynamically allocate memory with 0 size... " >&6; }
b80f6443 27634if test "${bash_cv_getcwd_malloc+set}" = set; then
3185942a 27635 $as_echo_n "(cached) " >&6
ccc6cda3
JA
27636else
27637 if test "$cross_compiling" = yes; then
3185942a
JA
27638 { $as_echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
27639$as_echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
b80f6443 27640 bash_cv_getcwd_malloc=no
cce855bc 27641
ccc6cda3 27642else
f73dda09 27643 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27644/* confdefs.h. */
27645_ACEOF
27646cat confdefs.h >>conftest.$ac_ext
27647cat >>conftest.$ac_ext <<_ACEOF
27648/* end confdefs.h. */
ccc6cda3
JA
27649
27650#include <stdio.h>
27651#ifdef HAVE_UNISTD_H
27652#include <unistd.h>
27653#endif
27654
ccc6cda3
JA
27655main()
27656{
b80f6443
JA
27657 char *xpwd;
27658 xpwd = getcwd(0, 0);
27659 exit (xpwd == 0);
ccc6cda3
JA
27660}
27661
f73dda09
JA
27662_ACEOF
27663rm -f conftest$ac_exeext
3185942a
JA
27664if { (ac_try="$ac_link"
27665case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668esac
27669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27670$as_echo "$ac_try_echo") >&5
27671 (eval "$ac_link") 2>&5
f73dda09 27672 ac_status=$?
3185942a 27673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27680$as_echo "$ac_try_echo") >&5
27681 (eval "$ac_try") 2>&5
f73dda09 27682 ac_status=$?
3185942a 27683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27684 (exit $ac_status); }; }; then
b80f6443 27685 bash_cv_getcwd_malloc=yes
ccc6cda3 27686else
3185942a
JA
27687 $as_echo "$as_me: program exited with status $ac_status" >&5
27688$as_echo "$as_me: failed program was:" >&5
0628567a
JA
27689sed 's/^/| /' conftest.$ac_ext >&5
27690
b80f6443
JA
27691( exit $ac_status )
27692bash_cv_getcwd_malloc=no
ccc6cda3 27693fi
3185942a
JA
27694rm -rf conftest.dSYM
27695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27696fi
3185942a
JA
27697
27698
ccc6cda3
JA
27699fi
27700
3185942a
JA
27701{ $as_echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
27702$as_echo "$bash_cv_getcwd_malloc" >&6; }
b80f6443
JA
27703if test $bash_cv_getcwd_malloc = no; then
27704cat >>confdefs.h <<\_ACEOF
ccc6cda3 27705#define GETCWD_BROKEN 1
b80f6443 27706_ACEOF
ccc6cda3 27707
3185942a 27708case " $LIBOBJS " in
0628567a 27709 *" getcwd.$ac_objext "* ) ;;
3185942a
JA
27710 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
27711 ;;
0628567a
JA
27712esac
27713
ccc6cda3
JA
27714fi
27715
ccc6cda3
JA
27716fi
27717
3185942a
JA
27718{ $as_echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
27719$as_echo_n "checking for presence of POSIX-style sigsetjmp/siglongjmp... " >&6; }
f73dda09 27720if test "${bash_cv_func_sigsetjmp+set}" = set; then
3185942a 27721 $as_echo_n "(cached) " >&6
ccc6cda3
JA
27722else
27723 if test "$cross_compiling" = yes; then
3185942a
JA
27724 { $as_echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
27725$as_echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
27726 bash_cv_func_sigsetjmp=missing
27727
ccc6cda3 27728else
f73dda09 27729 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27730/* confdefs.h. */
27731_ACEOF
27732cat confdefs.h >>conftest.$ac_ext
27733cat >>conftest.$ac_ext <<_ACEOF
27734/* end confdefs.h. */
ccc6cda3
JA
27735
27736#ifdef HAVE_UNISTD_H
27737#include <unistd.h>
27738#endif
27739#include <sys/types.h>
27740#include <signal.h>
27741#include <setjmp.h>
27742
27743main()
27744{
27745#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
27746exit (1);
27747#else
27748
27749int code;
27750sigset_t set, oset;
27751sigjmp_buf xx;
27752
27753/* get the mask */
27754sigemptyset(&set);
27755sigemptyset(&oset);
27756sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
27757sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
27758
27759/* save it */
27760code = sigsetjmp(xx, 1);
27761if (code)
27762 exit(0); /* could get sigmask and compare to oset here. */
27763
27764/* change it */
27765sigaddset(&set, SIGINT);
27766sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
27767
27768/* and siglongjmp */
27769siglongjmp(xx, 10);
27770exit(1);
27771#endif
27772}
f73dda09
JA
27773_ACEOF
27774rm -f conftest$ac_exeext
3185942a
JA
27775if { (ac_try="$ac_link"
27776case "(($ac_try" in
27777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27778 *) ac_try_echo=$ac_try;;
27779esac
27780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27781$as_echo "$ac_try_echo") >&5
27782 (eval "$ac_link") 2>&5
f73dda09 27783 ac_status=$?
3185942a 27784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27786 { (case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27789esac
27790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27791$as_echo "$ac_try_echo") >&5
27792 (eval "$ac_try") 2>&5
f73dda09 27793 ac_status=$?
3185942a 27794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27795 (exit $ac_status); }; }; then
ccc6cda3
JA
27796 bash_cv_func_sigsetjmp=present
27797else
3185942a
JA
27798 $as_echo "$as_me: program exited with status $ac_status" >&5
27799$as_echo "$as_me: failed program was:" >&5
0628567a
JA
27800sed 's/^/| /' conftest.$ac_ext >&5
27801
b80f6443 27802( exit $ac_status )
f73dda09 27803bash_cv_func_sigsetjmp=missing
ccc6cda3 27804fi
3185942a
JA
27805rm -rf conftest.dSYM
27806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 27807fi
3185942a
JA
27808
27809
ccc6cda3
JA
27810fi
27811
3185942a
JA
27812{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
27813$as_echo "$bash_cv_func_sigsetjmp" >&6; }
ccc6cda3 27814if test $bash_cv_func_sigsetjmp = present; then
b80f6443 27815cat >>confdefs.h <<\_ACEOF
ccc6cda3 27816#define HAVE_POSIX_SIGSETJMP 1
b80f6443 27817_ACEOF
ccc6cda3
JA
27818
27819fi
27820
b80f6443 27821
3185942a
JA
27822{ $as_echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
27823$as_echo_n "checking whether or not strcoll and strcmp differ... " >&6; }
f73dda09 27824if test "${bash_cv_func_strcoll_broken+set}" = set; then
3185942a 27825 $as_echo_n "(cached) " >&6
d166f048
JA
27826else
27827 if test "$cross_compiling" = yes; then
3185942a
JA
27828 { $as_echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
27829$as_echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
27830 bash_cv_func_strcoll_broken=no
27831
d166f048 27832else
f73dda09 27833 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27834/* confdefs.h. */
27835_ACEOF
27836cat confdefs.h >>conftest.$ac_ext
27837cat >>conftest.$ac_ext <<_ACEOF
27838/* end confdefs.h. */
d166f048
JA
27839
27840#include <stdio.h>
27841#if defined (HAVE_LOCALE_H)
27842#include <locale.h>
27843#endif
27844
27845main(c, v)
27846int c;
27847char *v[];
27848{
27849 int r1, r2;
27850 char *deflocale, *defcoll;
27851
27852#ifdef HAVE_SETLOCALE
27853 deflocale = setlocale(LC_ALL, "");
27854 defcoll = setlocale(LC_COLLATE, "");
27855#endif
27856
27857#ifdef HAVE_STRCOLL
27858 /* These two values are taken from tests/glob-test. */
27859 r1 = strcoll("abd", "aXd");
27860#else
27861 r1 = 0;
27862#endif
27863 r2 = strcmp("abd", "aXd");
27864
27865 /* These two should both be greater than 0. It is permissible for
27866 a system to return different values, as long as the sign is the
27867 same. */
27868
27869 /* Exit with 1 (failure) if these two values are both > 0, since
27870 this tests whether strcoll(3) is broken with respect to strcmp(3)
27871 in the default locale. */
27872 exit (r1 > 0 && r2 > 0);
27873}
27874
f73dda09
JA
27875_ACEOF
27876rm -f conftest$ac_exeext
3185942a
JA
27877if { (ac_try="$ac_link"
27878case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27881esac
27882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27883$as_echo "$ac_try_echo") >&5
27884 (eval "$ac_link") 2>&5
f73dda09 27885 ac_status=$?
3185942a 27886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
27888 { (case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27891esac
27892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27893$as_echo "$ac_try_echo") >&5
27894 (eval "$ac_try") 2>&5
f73dda09 27895 ac_status=$?
3185942a 27896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 27897 (exit $ac_status); }; }; then
d166f048
JA
27898 bash_cv_func_strcoll_broken=yes
27899else
3185942a
JA
27900 $as_echo "$as_me: program exited with status $ac_status" >&5
27901$as_echo "$as_me: failed program was:" >&5
0628567a
JA
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
b80f6443 27904( exit $ac_status )
f73dda09 27905bash_cv_func_strcoll_broken=no
d166f048 27906fi
3185942a
JA
27907rm -rf conftest.dSYM
27908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d166f048 27909fi
3185942a
JA
27910
27911
d166f048
JA
27912fi
27913
3185942a
JA
27914{ $as_echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
27915$as_echo "$bash_cv_func_strcoll_broken" >&6; }
d166f048 27916if test $bash_cv_func_strcoll_broken = yes; then
b80f6443 27917cat >>confdefs.h <<\_ACEOF
d166f048 27918#define STRCOLL_BROKEN 1
b80f6443 27919_ACEOF
d166f048
JA
27920
27921fi
27922
b80f6443
JA
27923
27924
7117c2d2
JA
27925if test "$ac_cv_func_putenv" = "yes"; then
27926
b80f6443
JA
27927
27928
3185942a
JA
27929{ $as_echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
27930$as_echo_n "checking for standard-conformant putenv declaration... " >&6; }
7117c2d2 27931if test "${bash_cv_std_putenv+set}" = set; then
3185942a 27932 $as_echo_n "(cached) " >&6
7117c2d2
JA
27933else
27934 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
27935/* confdefs.h. */
27936_ACEOF
27937cat confdefs.h >>conftest.$ac_ext
27938cat >>conftest.$ac_ext <<_ACEOF
27939/* end confdefs.h. */
7117c2d2
JA
27940
27941#if STDC_HEADERS
27942#include <stdlib.h>
27943#include <stddef.h>
27944#endif
27945#ifndef __STDC__
27946# ifndef const
27947# define const
27948# endif
27949#endif
27950#ifdef PROTOTYPES
27951extern int putenv (char *);
27952#else
27953extern int putenv ();
27954#endif
27955
27956int
27957main ()
27958{
27959return (putenv == 0);
27960 ;
27961 return 0;
27962}
27963_ACEOF
27964rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
27965if { (ac_try="$ac_link"
27966case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27969esac
27970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27971$as_echo "$ac_try_echo") >&5
27972 (eval "$ac_link") 2>conftest.er1
7117c2d2 27973 ac_status=$?
0628567a
JA
27974 grep -v '^ *+' conftest.er1 >conftest.err
27975 rm -f conftest.er1
27976 cat conftest.err >&5
3185942a
JA
27977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } && {
27979 test -z "$ac_c_werror_flag" ||
27980 test ! -s conftest.err
27981 } && test -s conftest$ac_exeext && {
27982 test "$cross_compiling" = yes ||
27983 $as_test_x conftest$ac_exeext
27984 }; then
7117c2d2
JA
27985 bash_cv_std_putenv=yes
27986else
3185942a 27987 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
27988sed 's/^/| /' conftest.$ac_ext >&5
27989
3185942a 27990 bash_cv_std_putenv=no
7117c2d2
JA
27991
27992fi
3185942a
JA
27993
27994rm -rf conftest.dSYM
27995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 27996 conftest$ac_exeext conftest.$ac_ext
7117c2d2 27997fi
3185942a
JA
27998{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
27999$as_echo "$bash_cv_std_putenv" >&6; }
7117c2d2 28000if test $bash_cv_std_putenv = yes; then
b80f6443 28001cat >>confdefs.h <<\_ACEOF
7117c2d2 28002#define HAVE_STD_PUTENV 1
b80f6443 28003_ACEOF
7117c2d2
JA
28004
28005fi
28006
28007else
b80f6443 28008cat >>confdefs.h <<\_ACEOF
7117c2d2 28009#define HAVE_STD_PUTENV 1
b80f6443 28010_ACEOF
7117c2d2
JA
28011
28012fi
28013if test "$ac_cv_func_unsetenv" = "yes"; then
28014
b80f6443
JA
28015
28016
3185942a
JA
28017{ $as_echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
28018$as_echo_n "checking for standard-conformant unsetenv declaration... " >&6; }
7117c2d2 28019if test "${bash_cv_std_unsetenv+set}" = set; then
3185942a 28020 $as_echo_n "(cached) " >&6
7117c2d2
JA
28021else
28022 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28023/* confdefs.h. */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h. */
7117c2d2
JA
28028
28029#if STDC_HEADERS
28030#include <stdlib.h>
28031#include <stddef.h>
28032#endif
28033#ifndef __STDC__
28034# ifndef const
28035# define const
28036# endif
28037#endif
28038#ifdef PROTOTYPES
28039extern int unsetenv (const char *);
28040#else
28041extern int unsetenv ();
28042#endif
28043
28044int
28045main ()
28046{
28047return (unsetenv == 0);
28048 ;
28049 return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
28053if { (ac_try="$ac_link"
28054case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057esac
28058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28059$as_echo "$ac_try_echo") >&5
28060 (eval "$ac_link") 2>conftest.er1
7117c2d2 28061 ac_status=$?
0628567a
JA
28062 grep -v '^ *+' conftest.er1 >conftest.err
28063 rm -f conftest.er1
28064 cat conftest.err >&5
3185942a
JA
28065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } && {
28067 test -z "$ac_c_werror_flag" ||
28068 test ! -s conftest.err
28069 } && test -s conftest$ac_exeext && {
28070 test "$cross_compiling" = yes ||
28071 $as_test_x conftest$ac_exeext
28072 }; then
7117c2d2
JA
28073 bash_cv_std_unsetenv=yes
28074else
3185942a 28075 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28076sed 's/^/| /' conftest.$ac_ext >&5
28077
3185942a 28078 bash_cv_std_unsetenv=no
7117c2d2
JA
28079
28080fi
3185942a
JA
28081
28082rm -rf conftest.dSYM
28083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 28084 conftest$ac_exeext conftest.$ac_ext
7117c2d2 28085fi
3185942a
JA
28086{ $as_echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
28087$as_echo "$bash_cv_std_unsetenv" >&6; }
7117c2d2 28088if test $bash_cv_std_unsetenv = yes; then
b80f6443 28089cat >>confdefs.h <<\_ACEOF
7117c2d2 28090#define HAVE_STD_UNSETENV 1
b80f6443 28091_ACEOF
7117c2d2
JA
28092
28093fi
28094
28095else
b80f6443 28096cat >>confdefs.h <<\_ACEOF
7117c2d2 28097#define HAVE_STD_UNSETENV 1
b80f6443 28098_ACEOF
7117c2d2
JA
28099
28100fi
28101
3185942a
JA
28102{ $as_echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
28103$as_echo_n "checking for printf floating point output in hex notation... " >&6; }
f73dda09 28104if test "${bash_cv_printf_a_format+set}" = set; then
3185942a 28105 $as_echo_n "(cached) " >&6
f73dda09
JA
28106else
28107 if test "$cross_compiling" = yes; then
3185942a
JA
28108 { $as_echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
28109$as_echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
f73dda09
JA
28110 bash_cv_printf_a_format=no
28111
28112else
28113 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28114/* confdefs.h. */
28115_ACEOF
28116cat confdefs.h >>conftest.$ac_ext
28117cat >>conftest.$ac_ext <<_ACEOF
28118/* end confdefs.h. */
f73dda09
JA
28119
28120#include <stdio.h>
28121#include <string.h>
28122
28123int
28124main()
28125{
28126 double y = 0.0;
28127 char abuf[1024];
28128
28129 sprintf(abuf, "%A", y);
28130 exit(strchr(abuf, 'P') == (char *)0);
28131}
28132
28133_ACEOF
28134rm -f conftest$ac_exeext
3185942a
JA
28135if { (ac_try="$ac_link"
28136case "(($ac_try" in
28137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28138 *) ac_try_echo=$ac_try;;
28139esac
28140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28141$as_echo "$ac_try_echo") >&5
28142 (eval "$ac_link") 2>&5
f73dda09 28143 ac_status=$?
3185942a 28144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28146 { (case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28151$as_echo "$ac_try_echo") >&5
28152 (eval "$ac_try") 2>&5
f73dda09 28153 ac_status=$?
3185942a 28154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09
JA
28155 (exit $ac_status); }; }; then
28156 bash_cv_printf_a_format=yes
28157else
3185942a
JA
28158 $as_echo "$as_me: program exited with status $ac_status" >&5
28159$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28160sed 's/^/| /' conftest.$ac_ext >&5
28161
b80f6443 28162( exit $ac_status )
f73dda09
JA
28163bash_cv_printf_a_format=no
28164fi
3185942a
JA
28165rm -rf conftest.dSYM
28166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f73dda09 28167fi
3185942a
JA
28168
28169
f73dda09 28170fi
d166f048 28171
3185942a
JA
28172{ $as_echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
28173$as_echo "$bash_cv_printf_a_format" >&6; }
f73dda09 28174if test $bash_cv_printf_a_format = yes; then
b80f6443 28175cat >>confdefs.h <<\_ACEOF
f73dda09 28176#define HAVE_PRINTF_A_FORMAT 1
b80f6443 28177_ACEOF
d166f048 28178
f73dda09 28179fi
ccc6cda3 28180
b80f6443
JA
28181
28182
28183
3185942a
JA
28184{ $as_echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
28185$as_echo_n "checking if signal handlers must be reinstalled when invoked... " >&6; }
f73dda09 28186if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
3185942a 28187 $as_echo_n "(cached) " >&6
ccc6cda3
JA
28188else
28189 if test "$cross_compiling" = yes; then
3185942a
JA
28190 { $as_echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
28191$as_echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
cce855bc
JA
28192 bash_cv_must_reinstall_sighandlers=no
28193
ccc6cda3 28194else
f73dda09 28195 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28196/* confdefs.h. */
28197_ACEOF
28198cat confdefs.h >>conftest.$ac_ext
28199cat >>conftest.$ac_ext <<_ACEOF
28200/* end confdefs.h. */
ccc6cda3
JA
28201
28202#include <signal.h>
28203#ifdef HAVE_UNISTD_H
28204#include <unistd.h>
28205#endif
28206
28207typedef RETSIGTYPE sigfunc();
28208
28209int nsigint;
28210
28211#ifdef HAVE_POSIX_SIGNALS
28212sigfunc *
28213set_signal_handler(sig, handler)
28214 int sig;
28215 sigfunc *handler;
28216{
28217 struct sigaction act, oact;
28218 act.sa_handler = handler;
28219 act.sa_flags = 0;
28220 sigemptyset (&act.sa_mask);
28221 sigemptyset (&oact.sa_mask);
28222 sigaction (sig, &act, &oact);
28223 return (oact.sa_handler);
28224}
28225#else
28226#define set_signal_handler(s, h) signal(s, h)
28227#endif
28228
28229RETSIGTYPE
28230sigint(s)
28231int s;
28232{
28233 nsigint++;
28234}
28235
28236main()
28237{
28238 nsigint = 0;
28239 set_signal_handler(SIGINT, sigint);
28240 kill((int)getpid(), SIGINT);
28241 kill((int)getpid(), SIGINT);
28242 exit(nsigint != 2);
28243}
28244
f73dda09
JA
28245_ACEOF
28246rm -f conftest$ac_exeext
3185942a
JA
28247if { (ac_try="$ac_link"
28248case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28251esac
28252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28253$as_echo "$ac_try_echo") >&5
28254 (eval "$ac_link") 2>&5
f73dda09 28255 ac_status=$?
3185942a 28256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28258 { (case "(($ac_try" in
28259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260 *) ac_try_echo=$ac_try;;
28261esac
28262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28263$as_echo "$ac_try_echo") >&5
28264 (eval "$ac_try") 2>&5
f73dda09 28265 ac_status=$?
3185942a 28266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28267 (exit $ac_status); }; }; then
ccc6cda3
JA
28268 bash_cv_must_reinstall_sighandlers=no
28269else
3185942a
JA
28270 $as_echo "$as_me: program exited with status $ac_status" >&5
28271$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28272sed 's/^/| /' conftest.$ac_ext >&5
28273
b80f6443 28274( exit $ac_status )
f73dda09 28275bash_cv_must_reinstall_sighandlers=yes
ccc6cda3 28276fi
3185942a
JA
28277rm -rf conftest.dSYM
28278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 28279fi
3185942a
JA
28280
28281
ccc6cda3
JA
28282fi
28283
3185942a
JA
28284{ $as_echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
28285$as_echo "$bash_cv_must_reinstall_sighandlers" >&6; }
ccc6cda3 28286if test $bash_cv_must_reinstall_sighandlers = yes; then
b80f6443 28287cat >>confdefs.h <<\_ACEOF
ccc6cda3 28288#define MUST_REINSTALL_SIGHANDLERS 1
b80f6443 28289_ACEOF
ccc6cda3
JA
28290
28291fi
28292
b80f6443 28293
3185942a
JA
28294{ $as_echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
28295$as_echo_n "checking for presence of necessary job control definitions... " >&6; }
f73dda09 28296if test "${bash_cv_job_control_missing+set}" = set; then
3185942a 28297 $as_echo_n "(cached) " >&6
ccc6cda3
JA
28298else
28299 if test "$cross_compiling" = yes; then
3185942a
JA
28300 { $as_echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
28301$as_echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
28302 bash_cv_job_control_missing=missing
28303
ccc6cda3 28304else
f73dda09 28305 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28306/* confdefs.h. */
28307_ACEOF
28308cat confdefs.h >>conftest.$ac_ext
28309cat >>conftest.$ac_ext <<_ACEOF
28310/* end confdefs.h. */
ccc6cda3
JA
28311
28312#include <sys/types.h>
28313#ifdef HAVE_SYS_WAIT_H
28314#include <sys/wait.h>
28315#endif
28316#ifdef HAVE_UNISTD_H
28317#include <unistd.h>
28318#endif
28319#include <signal.h>
28320
28321/* Add more tests in here as appropriate. */
28322main()
28323{
28324/* signal type */
28325#if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
28326exit(1);
28327#endif
28328
28329/* signals and tty control. */
28330#if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
28331exit (1);
28332#endif
28333
28334/* process control */
f73dda09 28335#if !defined (WNOHANG) || !defined (WUNTRACED)
ccc6cda3
JA
28336exit(1);
28337#endif
28338
28339/* Posix systems have tcgetpgrp and waitpid. */
28340#if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
28341exit(1);
28342#endif
28343
28344#if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
28345exit(1);
28346#endif
28347
28348/* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
28349#if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
28350exit(1);
28351#endif
28352
28353exit(0);
28354}
f73dda09
JA
28355_ACEOF
28356rm -f conftest$ac_exeext
3185942a
JA
28357if { (ac_try="$ac_link"
28358case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28361esac
28362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28363$as_echo "$ac_try_echo") >&5
28364 (eval "$ac_link") 2>&5
f73dda09 28365 ac_status=$?
3185942a 28366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28368 { (case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371esac
28372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28373$as_echo "$ac_try_echo") >&5
28374 (eval "$ac_try") 2>&5
f73dda09 28375 ac_status=$?
3185942a 28376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28377 (exit $ac_status); }; }; then
ccc6cda3
JA
28378 bash_cv_job_control_missing=present
28379else
3185942a
JA
28380 $as_echo "$as_me: program exited with status $ac_status" >&5
28381$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28382sed 's/^/| /' conftest.$ac_ext >&5
28383
b80f6443 28384( exit $ac_status )
f73dda09 28385bash_cv_job_control_missing=missing
ccc6cda3 28386fi
3185942a
JA
28387rm -rf conftest.dSYM
28388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ccc6cda3 28389fi
3185942a
JA
28390
28391
ccc6cda3
JA
28392fi
28393
3185942a
JA
28394{ $as_echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
28395$as_echo "$bash_cv_job_control_missing" >&6; }
ccc6cda3 28396if test $bash_cv_job_control_missing = missing; then
b80f6443 28397cat >>confdefs.h <<\_ACEOF
ccc6cda3 28398#define JOB_CONTROL_MISSING 1
b80f6443 28399_ACEOF
ccc6cda3
JA
28400
28401fi
28402
3185942a
JA
28403{ $as_echo "$as_me:$LINENO: checking for presence of named pipes" >&5
28404$as_echo_n "checking for presence of named pipes... " >&6; }
f73dda09 28405if test "${bash_cv_sys_named_pipes+set}" = set; then
3185942a 28406 $as_echo_n "(cached) " >&6
ccc6cda3
JA
28407else
28408 if test "$cross_compiling" = yes; then
3185942a
JA
28409 { $as_echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
28410$as_echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
cce855bc
JA
28411 bash_cv_sys_named_pipes=missing
28412
ccc6cda3 28413else
f73dda09 28414 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28415/* confdefs.h. */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h. */
ccc6cda3
JA
28420
28421#include <sys/types.h>
28422#include <sys/stat.h>
28423#ifdef HAVE_UNISTD_H
28424#include <unistd.h>
28425#endif
28426
28427/* Add more tests in here as appropriate. */
28428main()
28429{
bb70624e 28430int fd, err;
ccc6cda3
JA
28431
28432#if defined (HAVE_MKFIFO)
28433exit (0);
28434#endif
28435
28436#if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
28437exit (1);
28438#endif
28439
28440#if defined (NeXT)
28441exit (1);
28442#endif
3185942a 28443err = mkdir("bash-aclocal", 0700);
bb70624e
JA
28444if (err < 0) {
28445 perror ("mkdir");
28446 exit(1);
28447}
3185942a 28448fd = mknod ("bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
bb70624e 28449if (fd == -1) {
3185942a 28450 rmdir ("bash-aclocal");
ccc6cda3 28451 exit (1);
bb70624e 28452}
ccc6cda3 28453close(fd);
3185942a
JA
28454unlink ("bash-aclocal/sh-np-autoconf");
28455rmdir ("bash-aclocal");
ccc6cda3
JA
28456exit(0);
28457}
f73dda09
JA
28458_ACEOF
28459rm -f conftest$ac_exeext
3185942a
JA
28460if { (ac_try="$ac_link"
28461case "(($ac_try" in
28462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28464esac
28465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28466$as_echo "$ac_try_echo") >&5
28467 (eval "$ac_link") 2>&5
f73dda09 28468 ac_status=$?
3185942a 28469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28471 { (case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28474esac
28475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28476$as_echo "$ac_try_echo") >&5
28477 (eval "$ac_try") 2>&5
f73dda09 28478 ac_status=$?
3185942a 28479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28480 (exit $ac_status); }; }; then
ccc6cda3
JA
28481 bash_cv_sys_named_pipes=present
28482else
3185942a
JA
28483 $as_echo "$as_me: program exited with status $ac_status" >&5
28484$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28485sed 's/^/| /' conftest.$ac_ext >&5
28486
28487( exit $ac_status )
28488bash_cv_sys_named_pipes=missing
28489fi
3185942a
JA
28490rm -rf conftest.dSYM
28491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
95732b49 28492fi
3185942a
JA
28493
28494
95732b49 28495fi
95732b49 28496
3185942a
JA
28497{ $as_echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
28498$as_echo "$bash_cv_sys_named_pipes" >&6; }
0628567a
JA
28499if test $bash_cv_sys_named_pipes = missing; then
28500cat >>confdefs.h <<\_ACEOF
28501#define NAMED_PIPES_MISSING 1
28502_ACEOF
28503
28504fi
28505
28506
3185942a
JA
28507{ $as_echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
28508$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
f73dda09 28509if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
3185942a 28510 $as_echo_n "(cached) " >&6
f73dda09
JA
28511else
28512 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28513/* confdefs.h. */
28514_ACEOF
28515cat confdefs.h >>conftest.$ac_ext
28516cat >>conftest.$ac_ext <<_ACEOF
28517/* end confdefs.h. */
f73dda09
JA
28518#include <sys/types.h>
28519#include <termios.h>
28520#ifdef TIOCGWINSZ
28521 yes
28522#endif
28523
28524_ACEOF
28525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28526 $EGREP "yes" >/dev/null 2>&1; then
f73dda09
JA
28527 ac_cv_sys_tiocgwinsz_in_termios_h=yes
28528else
28529 ac_cv_sys_tiocgwinsz_in_termios_h=no
28530fi
28531rm -f conftest*
28532
28533fi
3185942a
JA
28534{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
28535$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
d166f048 28536
f73dda09 28537if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3185942a
JA
28538 { $as_echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
28539$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
f73dda09 28540if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
3185942a 28541 $as_echo_n "(cached) " >&6
ccc6cda3 28542else
f73dda09 28543 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
ccc6cda3
JA
28549#include <sys/types.h>
28550#include <sys/ioctl.h>
f73dda09
JA
28551#ifdef TIOCGWINSZ
28552 yes
28553#endif
28554
28555_ACEOF
28556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28557 $EGREP "yes" >/dev/null 2>&1; then
f73dda09 28558 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
ccc6cda3 28559else
f73dda09 28560 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
ccc6cda3
JA
28561fi
28562rm -f conftest*
f73dda09 28563
ccc6cda3 28564fi
3185942a
JA
28565{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
28566$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
f73dda09
JA
28567
28568 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
ccc6cda3 28569
b80f6443 28570cat >>confdefs.h <<\_ACEOF
ccc6cda3 28571#define GWINSZ_IN_SYS_IOCTL 1
b80f6443 28572_ACEOF
ccc6cda3 28573
f73dda09 28574 fi
ccc6cda3
JA
28575fi
28576
3185942a
JA
28577{ $as_echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
28578$as_echo_n "checking for TIOCSTAT in sys/ioctl.h... " >&6; }
f73dda09 28579if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
3185942a 28580 $as_echo_n "(cached) " >&6
ccc6cda3 28581else
f73dda09 28582 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
ccc6cda3
JA
28588#include <sys/types.h>
28589#include <sys/ioctl.h>
f73dda09
JA
28590int
28591main ()
28592{
ccc6cda3 28593int x = TIOCSTAT;
f73dda09
JA
28594 ;
28595 return 0;
28596}
28597_ACEOF
28598rm -f conftest.$ac_objext
3185942a
JA
28599if { (ac_try="$ac_compile"
28600case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28605$as_echo "$ac_try_echo") >&5
28606 (eval "$ac_compile") 2>conftest.er1
f73dda09 28607 ac_status=$?
0628567a
JA
28608 grep -v '^ *+' conftest.er1 >conftest.err
28609 rm -f conftest.er1
28610 cat conftest.err >&5
3185942a
JA
28611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } && {
28613 test -z "$ac_c_werror_flag" ||
28614 test ! -s conftest.err
28615 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
28616 bash_cv_tiocstat_in_ioctl=yes
28617else
3185942a 28618 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28619sed 's/^/| /' conftest.$ac_ext >&5
28620
3185942a 28621 bash_cv_tiocstat_in_ioctl=no
ccc6cda3 28622fi
3185942a
JA
28623
28624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
28625fi
28626
3185942a
JA
28627{ $as_echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
28628$as_echo "$bash_cv_tiocstat_in_ioctl" >&6; }
f73dda09 28629if test $bash_cv_tiocstat_in_ioctl = yes; then
b80f6443 28630cat >>confdefs.h <<\_ACEOF
ccc6cda3 28631#define TIOCSTAT_IN_SYS_IOCTL 1
b80f6443 28632_ACEOF
ccc6cda3
JA
28633
28634fi
28635
3185942a
JA
28636{ $as_echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
28637$as_echo_n "checking for FIONREAD in sys/ioctl.h... " >&6; }
f73dda09 28638if test "${bash_cv_fionread_in_ioctl+set}" = set; then
3185942a 28639 $as_echo_n "(cached) " >&6
ccc6cda3 28640else
f73dda09 28641 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28642/* confdefs.h. */
28643_ACEOF
28644cat confdefs.h >>conftest.$ac_ext
28645cat >>conftest.$ac_ext <<_ACEOF
28646/* end confdefs.h. */
ccc6cda3
JA
28647#include <sys/types.h>
28648#include <sys/ioctl.h>
f73dda09
JA
28649int
28650main ()
28651{
ccc6cda3 28652int x = FIONREAD;
f73dda09
JA
28653 ;
28654 return 0;
28655}
28656_ACEOF
28657rm -f conftest.$ac_objext
3185942a
JA
28658if { (ac_try="$ac_compile"
28659case "(($ac_try" in
28660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28661 *) ac_try_echo=$ac_try;;
28662esac
28663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28664$as_echo "$ac_try_echo") >&5
28665 (eval "$ac_compile") 2>conftest.er1
f73dda09 28666 ac_status=$?
0628567a
JA
28667 grep -v '^ *+' conftest.er1 >conftest.err
28668 rm -f conftest.er1
28669 cat conftest.err >&5
3185942a
JA
28670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } && {
28672 test -z "$ac_c_werror_flag" ||
28673 test ! -s conftest.err
28674 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
28675 bash_cv_fionread_in_ioctl=yes
28676else
3185942a 28677 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28678sed 's/^/| /' conftest.$ac_ext >&5
28679
3185942a 28680 bash_cv_fionread_in_ioctl=no
ccc6cda3 28681fi
3185942a
JA
28682
28683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
28684fi
28685
3185942a
JA
28686{ $as_echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
28687$as_echo "$bash_cv_fionread_in_ioctl" >&6; }
f73dda09 28688if test $bash_cv_fionread_in_ioctl = yes; then
b80f6443 28689cat >>confdefs.h <<\_ACEOF
ccc6cda3 28690#define FIONREAD_IN_SYS_IOCTL 1
b80f6443 28691_ACEOF
ccc6cda3
JA
28692
28693fi
28694
b80f6443 28695
95732b49 28696
3185942a
JA
28697{ $as_echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
28698$as_echo_n "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... " >&6; }
95732b49 28699if test "${bash_cv_wcontinued_broken+set}" = set; then
3185942a 28700 $as_echo_n "(cached) " >&6
95732b49
JA
28701else
28702 if test "$cross_compiling" = yes; then
3185942a
JA
28703 { $as_echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
28704$as_echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
95732b49
JA
28705 bash_cv_wcontinued_broken=no
28706
28707else
28708 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28709/* confdefs.h. */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
28713/* end confdefs.h. */
95732b49
JA
28714
28715#include <sys/types.h>
28716#include <sys/wait.h>
28717#include <unistd.h>
28718#include <errno.h>
28719
28720#ifndef errno
28721extern int errno;
28722#endif
28723main()
28724{
28725 int x;
28726
28727 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
28728 if (x == -1 && errno == EINVAL)
28729 exit (1);
28730 else
28731 exit (0);
28732}
28733
28734_ACEOF
28735rm -f conftest$ac_exeext
3185942a
JA
28736if { (ac_try="$ac_link"
28737case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28740esac
28741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28742$as_echo "$ac_try_echo") >&5
28743 (eval "$ac_link") 2>&5
95732b49 28744 ac_status=$?
3185942a 28745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95732b49 28746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28747 { (case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28750esac
28751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28752$as_echo "$ac_try_echo") >&5
28753 (eval "$ac_try") 2>&5
95732b49 28754 ac_status=$?
3185942a 28755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95732b49
JA
28756 (exit $ac_status); }; }; then
28757 bash_cv_wcontinued_broken=no
28758else
3185942a
JA
28759 $as_echo "$as_me: program exited with status $ac_status" >&5
28760$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28761sed 's/^/| /' conftest.$ac_ext >&5
28762
95732b49
JA
28763( exit $ac_status )
28764bash_cv_wcontinued_broken=yes
28765fi
3185942a
JA
28766rm -rf conftest.dSYM
28767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
95732b49 28768fi
3185942a
JA
28769
28770
95732b49
JA
28771fi
28772
3185942a
JA
28773{ $as_echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
28774$as_echo "$bash_cv_wcontinued_broken" >&6; }
95732b49
JA
28775if test $bash_cv_wcontinued_broken = yes; then
28776cat >>confdefs.h <<\_ACEOF
28777#define WCONTINUED_BROKEN 1
28778_ACEOF
28779
28780fi
28781
28782
3185942a
JA
28783{ $as_echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
28784$as_echo_n "checking for speed_t in sys/types.h... " >&6; }
f73dda09 28785if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
3185942a 28786 $as_echo_n "(cached) " >&6
d166f048 28787else
f73dda09 28788 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28789/* confdefs.h. */
28790_ACEOF
28791cat confdefs.h >>conftest.$ac_ext
28792cat >>conftest.$ac_ext <<_ACEOF
28793/* end confdefs.h. */
d166f048 28794#include <sys/types.h>
f73dda09
JA
28795int
28796main ()
28797{
d166f048 28798speed_t x;
f73dda09
JA
28799 ;
28800 return 0;
28801}
28802_ACEOF
28803rm -f conftest.$ac_objext
3185942a
JA
28804if { (ac_try="$ac_compile"
28805case "(($ac_try" in
28806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28808esac
28809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28810$as_echo "$ac_try_echo") >&5
28811 (eval "$ac_compile") 2>conftest.er1
f73dda09 28812 ac_status=$?
0628567a
JA
28813 grep -v '^ *+' conftest.er1 >conftest.err
28814 rm -f conftest.er1
28815 cat conftest.err >&5
3185942a
JA
28816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); } && {
28818 test -z "$ac_c_werror_flag" ||
28819 test ! -s conftest.err
28820 } && test -s conftest.$ac_objext; then
d166f048
JA
28821 bash_cv_speed_t_in_sys_types=yes
28822else
3185942a 28823 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
28824sed 's/^/| /' conftest.$ac_ext >&5
28825
3185942a 28826 bash_cv_speed_t_in_sys_types=no
d166f048 28827fi
3185942a
JA
28828
28829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d166f048
JA
28830fi
28831
3185942a
JA
28832{ $as_echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
28833$as_echo "$bash_cv_speed_t_in_sys_types" >&6; }
f73dda09 28834if test $bash_cv_speed_t_in_sys_types = yes; then
b80f6443 28835cat >>confdefs.h <<\_ACEOF
d166f048 28836#define SPEED_T_IN_SYS_TYPES 1
b80f6443 28837_ACEOF
d166f048
JA
28838
28839fi
28840
3185942a
JA
28841{ $as_echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
28842$as_echo_n "checking whether getpw functions are declared in pwd.h... " >&6; }
f73dda09 28843if test "${bash_cv_getpw_declared+set}" = set; then
3185942a 28844 $as_echo_n "(cached) " >&6
ccc6cda3 28845else
f73dda09 28846 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28847/* confdefs.h. */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h. */
28ef6c31 28852
ccc6cda3 28853#include <sys/types.h>
28ef6c31
JA
28854#ifdef HAVE_UNISTD_H
28855# include <unistd.h>
28856#endif
ccc6cda3 28857#include <pwd.h>
28ef6c31 28858
f73dda09 28859_ACEOF
28ef6c31 28860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0628567a 28861 $EGREP "getpwuid" >/dev/null 2>&1; then
28ef6c31 28862 bash_cv_getpw_declared=yes
ccc6cda3 28863else
28ef6c31 28864 bash_cv_getpw_declared=no
ccc6cda3
JA
28865fi
28866rm -f conftest*
28ef6c31 28867
ccc6cda3
JA
28868fi
28869
3185942a
JA
28870{ $as_echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
28871$as_echo "$bash_cv_getpw_declared" >&6; }
28ef6c31 28872if test $bash_cv_getpw_declared = yes; then
b80f6443 28873cat >>confdefs.h <<\_ACEOF
ccc6cda3 28874#define HAVE_GETPW_DECLS 1
b80f6443 28875_ACEOF
ccc6cda3
JA
28876
28877fi
28878
3185942a
JA
28879{ $as_echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
28880$as_echo_n "checking for unusable real-time signals due to large values... " >&6; }
f73dda09 28881if test "${bash_cv_unusable_rtsigs+set}" = set; then
3185942a 28882 $as_echo_n "(cached) " >&6
28ef6c31
JA
28883else
28884 if test "$cross_compiling" = yes; then
3185942a
JA
28885 { $as_echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
28886$as_echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
28ef6c31
JA
28887 bash_cv_unusable_rtsigs=yes
28888
28889else
f73dda09 28890 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28891/* confdefs.h. */
28892_ACEOF
28893cat confdefs.h >>conftest.$ac_ext
28894cat >>conftest.$ac_ext <<_ACEOF
28895/* end confdefs.h. */
28ef6c31
JA
28896
28897#include <sys/types.h>
28898#include <signal.h>
28899
28900#ifndef NSIG
28901# define NSIG 64
28902#endif
28903
28904main ()
28905{
28906 int n_sigs = 2 * NSIG;
28907#ifdef SIGRTMIN
28908 int rtmin = SIGRTMIN;
28909#else
28910 int rtmin = 0;
28911#endif
28912
28913 exit(rtmin < n_sigs);
28914}
f73dda09
JA
28915_ACEOF
28916rm -f conftest$ac_exeext
3185942a
JA
28917if { (ac_try="$ac_link"
28918case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28921esac
28922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28923$as_echo "$ac_try_echo") >&5
28924 (eval "$ac_link") 2>&5
f73dda09 28925 ac_status=$?
3185942a 28926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3185942a
JA
28928 { (case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931esac
28932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28933$as_echo "$ac_try_echo") >&5
28934 (eval "$ac_try") 2>&5
f73dda09 28935 ac_status=$?
3185942a 28936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
f73dda09 28937 (exit $ac_status); }; }; then
28ef6c31
JA
28938 bash_cv_unusable_rtsigs=yes
28939else
3185942a
JA
28940 $as_echo "$as_me: program exited with status $ac_status" >&5
28941$as_echo "$as_me: failed program was:" >&5
0628567a
JA
28942sed 's/^/| /' conftest.$ac_ext >&5
28943
b80f6443 28944( exit $ac_status )
f73dda09 28945bash_cv_unusable_rtsigs=no
28ef6c31 28946fi
3185942a
JA
28947rm -rf conftest.dSYM
28948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28ef6c31 28949fi
3185942a
JA
28950
28951
28ef6c31
JA
28952fi
28953
3185942a
JA
28954{ $as_echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
28955$as_echo "$bash_cv_unusable_rtsigs" >&6; }
28ef6c31 28956if test $bash_cv_unusable_rtsigs = yes; then
b80f6443 28957cat >>confdefs.h <<\_ACEOF
28ef6c31 28958#define UNUSABLE_RT_SIGNALS 1
b80f6443 28959_ACEOF
28ef6c31
JA
28960
28961fi
28962
b80f6443
JA
28963
28964
28965
28966
f73dda09
JA
28967if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
28968 SIGLIST_O=siglist.o
28969else
28970 SIGLIST_O=
28971fi
ccc6cda3 28972
b80f6443
JA
28973
28974
ccc6cda3 28975case "$host_os" in
3185942a
JA
28976hpux*) { $as_echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
28977$as_echo_n "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
f73dda09 28978if test "${bash_cv_kernel_rlimit+set}" = set; then
3185942a 28979 $as_echo_n "(cached) " >&6
ccc6cda3 28980else
f73dda09 28981 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
28982/* confdefs.h. */
28983_ACEOF
28984cat confdefs.h >>conftest.$ac_ext
28985cat >>conftest.$ac_ext <<_ACEOF
28986/* end confdefs.h. */
ccc6cda3
JA
28987
28988#include <sys/types.h>
28989#include <sys/resource.h>
28990
f73dda09
JA
28991int
28992main ()
28993{
ccc6cda3
JA
28994
28995 int f;
28996 f = RLIMIT_DATA;
28997
f73dda09
JA
28998 ;
28999 return 0;
29000}
29001_ACEOF
29002rm -f conftest.$ac_objext
3185942a
JA
29003if { (ac_try="$ac_compile"
29004case "(($ac_try" in
29005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006 *) ac_try_echo=$ac_try;;
29007esac
29008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29009$as_echo "$ac_try_echo") >&5
29010 (eval "$ac_compile") 2>conftest.er1
f73dda09 29011 ac_status=$?
0628567a
JA
29012 grep -v '^ *+' conftest.er1 >conftest.err
29013 rm -f conftest.er1
29014 cat conftest.err >&5
3185942a
JA
29015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } && {
29017 test -z "$ac_c_werror_flag" ||
29018 test ! -s conftest.err
29019 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
29020 bash_cv_kernel_rlimit=no
29021else
3185942a 29022 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29023sed 's/^/| /' conftest.$ac_ext >&5
29024
3185942a 29025 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29026/* confdefs.h. */
29027_ACEOF
29028cat confdefs.h >>conftest.$ac_ext
29029cat >>conftest.$ac_ext <<_ACEOF
29030/* end confdefs.h. */
ccc6cda3 29031
cce855bc
JA
29032#include <sys/types.h>
29033#define _KERNEL
29034#include <sys/resource.h>
29035#undef _KERNEL
29036
f73dda09
JA
29037int
29038main ()
29039{
ccc6cda3
JA
29040
29041 int f;
29042 f = RLIMIT_DATA;
cce855bc 29043
f73dda09
JA
29044 ;
29045 return 0;
29046}
29047_ACEOF
29048rm -f conftest.$ac_objext
3185942a
JA
29049if { (ac_try="$ac_compile"
29050case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055$as_echo "$ac_try_echo") >&5
29056 (eval "$ac_compile") 2>conftest.er1
f73dda09 29057 ac_status=$?
0628567a
JA
29058 grep -v '^ *+' conftest.er1 >conftest.err
29059 rm -f conftest.er1
29060 cat conftest.err >&5
3185942a
JA
29061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } && {
29063 test -z "$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29065 } && test -s conftest.$ac_objext; then
ccc6cda3
JA
29066 bash_cv_kernel_rlimit=yes
29067else
3185942a 29068 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
3185942a 29071 bash_cv_kernel_rlimit=no
ccc6cda3 29072fi
3185942a
JA
29073
29074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
29075
29076fi
3185942a
JA
29077
29078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ccc6cda3
JA
29079fi
29080
3185942a
JA
29081{ $as_echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
29082$as_echo "$bash_cv_kernel_rlimit" >&6; }
ccc6cda3 29083if test $bash_cv_kernel_rlimit = yes; then
b80f6443 29084cat >>confdefs.h <<\_ACEOF
ccc6cda3 29085#define RLIMIT_NEEDS_KERNEL 1
b80f6443 29086_ACEOF
ccc6cda3
JA
29087
29088fi
29089 ;;
29090esac
29091
29092if test "$opt_readline" = yes; then
d166f048
JA
29093case "$host_os" in
29094aix*) prefer_curses=yes ;;
29095esac
ccc6cda3
JA
29096
29097if test "X$bash_cv_termcap_lib" = "X"; then
29098_bash_needmsg=yes
29099else
3185942a
JA
29100{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29101$as_echo_n "checking which library has the termcap functions... " >&6; }
ccc6cda3
JA
29102_bash_needmsg=
29103fi
f73dda09 29104if test "${bash_cv_termcap_lib+set}" = set; then
3185942a 29105 $as_echo_n "(cached) " >&6
ccc6cda3 29106else
3185942a
JA
29107 { $as_echo "$as_me:$LINENO: checking for tgetent" >&5
29108$as_echo_n "checking for tgetent... " >&6; }
b80f6443 29109if test "${ac_cv_func_tgetent+set}" = set; then
3185942a 29110 $as_echo_n "(cached) " >&6
b80f6443
JA
29111else
29112 cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29113/* confdefs.h. */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h. */
29118/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
29119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29120#define tgetent innocuous_tgetent
29121
b80f6443 29122/* System header to define __stub macros and hopefully few prototypes,
0628567a
JA
29123 which can conflict with char tgetent (); below.
29124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29125 <limits.h> exists even on freestanding compilers. */
29126
29127#ifdef __STDC__
29128# include <limits.h>
29129#else
29130# include <assert.h>
29131#endif
29132
29133#undef tgetent
29134
3185942a
JA
29135/* Override any GCC internal prototype to avoid an error.
29136 Use char because int might match the return type of a GCC
29137 builtin and then its argument prototype would still apply. */
b80f6443
JA
29138#ifdef __cplusplus
29139extern "C"
b80f6443 29140#endif
b80f6443
JA
29141char tgetent ();
29142/* The GNU C library defines this for functions which it implements
29143 to always fail with ENOSYS. Some functions are actually named
29144 something starting with __ and the normal name is an alias. */
3185942a 29145#if defined __stub_tgetent || defined __stub___tgetent
b80f6443 29146choke me
b80f6443
JA
29147#endif
29148
0628567a
JA
29149int
29150main ()
29151{
3185942a 29152return tgetent ();
b80f6443
JA
29153 ;
29154 return 0;
29155}
29156_ACEOF
29157rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29158if { (ac_try="$ac_link"
29159case "(($ac_try" in
29160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161 *) ac_try_echo=$ac_try;;
29162esac
29163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29164$as_echo "$ac_try_echo") >&5
29165 (eval "$ac_link") 2>conftest.er1
b80f6443 29166 ac_status=$?
0628567a
JA
29167 grep -v '^ *+' conftest.er1 >conftest.err
29168 rm -f conftest.er1
29169 cat conftest.err >&5
3185942a
JA
29170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest$ac_exeext && {
29175 test "$cross_compiling" = yes ||
29176 $as_test_x conftest$ac_exeext
29177 }; then
b80f6443
JA
29178 ac_cv_func_tgetent=yes
29179else
3185942a 29180 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29181sed 's/^/| /' conftest.$ac_ext >&5
29182
3185942a 29183 ac_cv_func_tgetent=no
b80f6443 29184fi
3185942a
JA
29185
29186rm -rf conftest.dSYM
29187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29188 conftest$ac_exeext conftest.$ac_ext
b80f6443 29189fi
3185942a
JA
29190{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
29191$as_echo "$ac_cv_func_tgetent" >&6; }
29192if test "x$ac_cv_func_tgetent" = x""yes; then
b80f6443
JA
29193 bash_cv_termcap_lib=libc
29194else
3185942a
JA
29195 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
29196$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
f73dda09 29197if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3185942a 29198 $as_echo_n "(cached) " >&6
ccc6cda3 29199else
f73dda09 29200 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 29201LIBS="-ltermcap $LIBS"
f73dda09 29202cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29203/* confdefs.h. */
29204_ACEOF
29205cat confdefs.h >>conftest.$ac_ext
29206cat >>conftest.$ac_ext <<_ACEOF
29207/* end confdefs.h. */
f73dda09 29208
3185942a
JA
29209/* Override any GCC internal prototype to avoid an error.
29210 Use char because int might match the return type of a GCC
29211 builtin and then its argument prototype would still apply. */
f73dda09
JA
29212#ifdef __cplusplus
29213extern "C"
29214#endif
f73dda09
JA
29215char tgetent ();
29216int
29217main ()
29218{
3185942a 29219return tgetent ();
f73dda09
JA
29220 ;
29221 return 0;
29222}
29223_ACEOF
29224rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29225if { (ac_try="$ac_link"
29226case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29229esac
29230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29231$as_echo "$ac_try_echo") >&5
29232 (eval "$ac_link") 2>conftest.er1
f73dda09 29233 ac_status=$?
0628567a
JA
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
3185942a
JA
29237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } && {
29239 test -z "$ac_c_werror_flag" ||
29240 test ! -s conftest.err
29241 } && test -s conftest$ac_exeext && {
29242 test "$cross_compiling" = yes ||
29243 $as_test_x conftest$ac_exeext
29244 }; then
f73dda09
JA
29245 ac_cv_lib_termcap_tgetent=yes
29246else
3185942a 29247 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29248sed 's/^/| /' conftest.$ac_ext >&5
29249
3185942a 29250 ac_cv_lib_termcap_tgetent=no
f73dda09 29251fi
3185942a
JA
29252
29253rm -rf conftest.dSYM
29254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29255 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
29256LIBS=$ac_check_lib_save_LIBS
29257fi
3185942a
JA
29258{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
29259$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
29260if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
ccc6cda3
JA
29261 bash_cv_termcap_lib=libtermcap
29262else
3185942a
JA
29263 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
29264$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
f73dda09 29265if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3185942a 29266 $as_echo_n "(cached) " >&6
ccc6cda3 29267else
f73dda09
JA
29268 ac_check_lib_save_LIBS=$LIBS
29269LIBS="-ltinfo $LIBS"
29270cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29271/* confdefs.h. */
29272_ACEOF
29273cat confdefs.h >>conftest.$ac_ext
29274cat >>conftest.$ac_ext <<_ACEOF
29275/* end confdefs.h. */
f73dda09 29276
3185942a
JA
29277/* Override any GCC internal prototype to avoid an error.
29278 Use char because int might match the return type of a GCC
29279 builtin and then its argument prototype would still apply. */
f73dda09
JA
29280#ifdef __cplusplus
29281extern "C"
29282#endif
f73dda09
JA
29283char tgetent ();
29284int
29285main ()
29286{
3185942a 29287return tgetent ();
f73dda09
JA
29288 ;
29289 return 0;
29290}
29291_ACEOF
29292rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29293if { (ac_try="$ac_link"
29294case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29297esac
29298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29299$as_echo "$ac_try_echo") >&5
29300 (eval "$ac_link") 2>conftest.er1
f73dda09 29301 ac_status=$?
0628567a
JA
29302 grep -v '^ *+' conftest.er1 >conftest.err
29303 rm -f conftest.er1
29304 cat conftest.err >&5
3185942a
JA
29305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } && {
29307 test -z "$ac_c_werror_flag" ||
29308 test ! -s conftest.err
29309 } && test -s conftest$ac_exeext && {
29310 test "$cross_compiling" = yes ||
29311 $as_test_x conftest$ac_exeext
29312 }; then
f73dda09
JA
29313 ac_cv_lib_tinfo_tgetent=yes
29314else
3185942a 29315 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
3185942a 29318 ac_cv_lib_tinfo_tgetent=no
f73dda09 29319fi
3185942a
JA
29320
29321rm -rf conftest.dSYM
29322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29323 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
29324LIBS=$ac_check_lib_save_LIBS
29325fi
3185942a
JA
29326{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
29327$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
29328if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
7117c2d2 29329 bash_cv_termcap_lib=libtinfo
f73dda09 29330else
3185942a
JA
29331 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
29332$as_echo_n "checking for tgetent in -lcurses... " >&6; }
f73dda09 29333if test "${ac_cv_lib_curses_tgetent+set}" = set; then
3185942a 29334 $as_echo_n "(cached) " >&6
f73dda09
JA
29335else
29336 ac_check_lib_save_LIBS=$LIBS
29337LIBS="-lcurses $LIBS"
29338cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29339/* confdefs.h. */
29340_ACEOF
29341cat confdefs.h >>conftest.$ac_ext
29342cat >>conftest.$ac_ext <<_ACEOF
29343/* end confdefs.h. */
ccc6cda3 29344
3185942a
JA
29345/* Override any GCC internal prototype to avoid an error.
29346 Use char because int might match the return type of a GCC
29347 builtin and then its argument prototype would still apply. */
f73dda09
JA
29348#ifdef __cplusplus
29349extern "C"
29350#endif
f73dda09
JA
29351char tgetent ();
29352int
29353main ()
29354{
3185942a 29355return tgetent ();
f73dda09
JA
29356 ;
29357 return 0;
29358}
29359_ACEOF
29360rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29361if { (ac_try="$ac_link"
29362case "(($ac_try" in
29363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29364 *) ac_try_echo=$ac_try;;
29365esac
29366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29367$as_echo "$ac_try_echo") >&5
29368 (eval "$ac_link") 2>conftest.er1
f73dda09 29369 ac_status=$?
0628567a
JA
29370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
3185942a
JA
29373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest$ac_exeext && {
29378 test "$cross_compiling" = yes ||
29379 $as_test_x conftest$ac_exeext
29380 }; then
f73dda09
JA
29381 ac_cv_lib_curses_tgetent=yes
29382else
3185942a 29383 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29384sed 's/^/| /' conftest.$ac_ext >&5
29385
3185942a 29386 ac_cv_lib_curses_tgetent=no
f73dda09 29387fi
3185942a
JA
29388
29389rm -rf conftest.dSYM
29390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29391 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
29392LIBS=$ac_check_lib_save_LIBS
29393fi
3185942a
JA
29394{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
29395$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
29396if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
ccc6cda3
JA
29397 bash_cv_termcap_lib=libcurses
29398else
3185942a
JA
29399 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
29400$as_echo_n "checking for tgetent in -lncurses... " >&6; }
f73dda09 29401if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
3185942a 29402 $as_echo_n "(cached) " >&6
ccc6cda3 29403else
f73dda09 29404 ac_check_lib_save_LIBS=$LIBS
ccc6cda3 29405LIBS="-lncurses $LIBS"
f73dda09 29406cat >conftest.$ac_ext <<_ACEOF
0628567a
JA
29407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
f73dda09 29412
3185942a
JA
29413/* Override any GCC internal prototype to avoid an error.
29414 Use char because int might match the return type of a GCC
29415 builtin and then its argument prototype would still apply. */
f73dda09
JA
29416#ifdef __cplusplus
29417extern "C"
29418#endif
f73dda09
JA
29419char tgetent ();
29420int
29421main ()
29422{
3185942a 29423return tgetent ();
f73dda09
JA
29424 ;
29425 return 0;
29426}
29427_ACEOF
29428rm -f conftest.$ac_objext conftest$ac_exeext
3185942a
JA
29429if { (ac_try="$ac_link"
29430case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29433esac
29434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29435$as_echo "$ac_try_echo") >&5
29436 (eval "$ac_link") 2>conftest.er1
f73dda09 29437 ac_status=$?
0628567a
JA
29438 grep -v '^ *+' conftest.er1 >conftest.err
29439 rm -f conftest.er1
29440 cat conftest.err >&5
3185942a
JA
29441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } && {
29443 test -z "$ac_c_werror_flag" ||
29444 test ! -s conftest.err
29445 } && test -s conftest$ac_exeext && {
29446 test "$cross_compiling" = yes ||
29447 $as_test_x conftest$ac_exeext
29448 }; then
f73dda09
JA
29449 ac_cv_lib_ncurses_tgetent=yes
29450else
3185942a 29451 $as_echo "$as_me: failed program was:" >&5
0628567a
JA
29452sed 's/^/| /' conftest.$ac_ext >&5
29453
3185942a 29454 ac_cv_lib_ncurses_tgetent=no
f73dda09 29455fi
3185942a
JA
29456
29457rm -rf conftest.dSYM
29458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0628567a 29459 conftest$ac_exeext conftest.$ac_ext
f73dda09
JA
29460LIBS=$ac_check_lib_save_LIBS
29461fi
3185942a
JA
29462{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
29463$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
29464if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
f73dda09 29465 bash_cv_termcap_lib=libncurses
ccc6cda3 29466else
f73dda09 29467 bash_cv_termcap_lib=gnutermcap
ccc6cda3 29468fi
ccc6cda3 29469
ccc6cda3
JA
29470fi
29471
29472fi
29473
29474fi
29475
29476fi
29477
b80f6443
JA
29478fi
29479
ccc6cda3 29480if test "X$_bash_needmsg" = "Xyes"; then
3185942a
JA
29481{ $as_echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
29482$as_echo_n "checking which library has the termcap functions... " >&6; }
ccc6cda3 29483fi
3185942a
JA
29484{ $as_echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
29485$as_echo "using $bash_cv_termcap_lib" >&6; }
cce855bc 29486if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
29487LDFLAGS="$LDFLAGS -L./lib/termcap"
29488TERMCAP_LIB="./lib/termcap/libtermcap.a"
29489TERMCAP_DEP="./lib/termcap/libtermcap.a"
d166f048 29490elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
ccc6cda3
JA
29491TERMCAP_LIB=-ltermcap
29492TERMCAP_DEP=
f73dda09
JA
29493elif test $bash_cv_termcap_lib = libtinfo; then
29494TERMCAP_LIB=-ltinfo
29495TERMCAP_DEP=
ccc6cda3
JA
29496elif test $bash_cv_termcap_lib = libncurses; then
29497TERMCAP_LIB=-lncurses
29498TERMCAP_DEP=
b80f6443
JA
29499elif test $bash_cv_termcap_lib = libc; then
29500TERMCAP_LIB=
29501TERMCAP_DEP=
ccc6cda3
JA
29502else
29503TERMCAP_LIB=-lcurses
29504TERMCAP_DEP=
29505fi
29506
29507fi
29508
b80f6443
JA
29509
29510
3185942a
JA
29511{ $as_echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
29512$as_echo_n "checking whether /dev/fd is available... " >&6; }
f73dda09 29513if test "${bash_cv_dev_fd+set}" = set; then
3185942a 29514 $as_echo_n "(cached) " >&6
d166f048 29515else
0628567a 29516 bash_cv_dev_fd=""
3185942a 29517if test -d /dev/fd && (exec test -r /dev/fd/0 < /dev/null) ; then
95732b49 29518# check for systems like FreeBSD 5 that only provide /dev/fd/[012]
3185942a 29519 if (exec test -r /dev/fd/3 3</dev/null) ; then
95732b49
JA
29520 bash_cv_dev_fd=standard
29521 else
29522 bash_cv_dev_fd=absent
29523 fi
0628567a
JA
29524fi
29525if test -z "$bash_cv_dev_fd" ; then
3185942a 29526 if test -d /proc/self/fd && (exec test -r /proc/self/fd/0 < /dev/null) ; then
0628567a
JA
29527 bash_cv_dev_fd=whacky
29528 else
29529 bash_cv_dev_fd=absent
29530 fi
29531fi
d166f048
JA
29532
29533fi
29534
3185942a
JA
29535{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
29536$as_echo "$bash_cv_dev_fd" >&6; }
d166f048 29537if test $bash_cv_dev_fd = "standard"; then
b80f6443 29538 cat >>confdefs.h <<\_ACEOF
d166f048 29539#define HAVE_DEV_FD 1
b80f6443 29540_ACEOF
d166f048 29541
b80f6443 29542 cat >>confdefs.h <<\_ACEOF
d166f048 29543#define DEV_FD_PREFIX "/dev/fd/"
b80f6443 29544_ACEOF
d166f048
JA
29545
29546elif test $bash_cv_dev_fd = "whacky"; then
b80f6443 29547 cat >>confdefs.h <<\_ACEOF
d166f048 29548#define HAVE_DEV_FD 1
b80f6443 29549_ACEOF
d166f048 29550
b80f6443 29551 cat >>confdefs.h <<\_ACEOF
d166f048 29552#define DEV_FD_PREFIX "/proc/self/fd/"
b80f6443 29553_ACEOF
d166f048
JA
29554
29555fi
29556
3185942a
JA
29557{ $as_echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
29558$as_echo_n "checking whether /dev/stdin stdout stderr are available... " >&6; }
f73dda09 29559if test "${bash_cv_dev_stdin+set}" = set; then
3185942a 29560 $as_echo_n "(cached) " >&6
bb70624e 29561else
3185942a 29562 if test -d /dev/fd && (exec test -r /dev/stdin < /dev/null) ; then
bb70624e 29563 bash_cv_dev_stdin=present
3185942a 29564 elif test -d /proc/self/fd && (exec test -r /dev/stdin < /dev/null) ; then
bb70624e
JA
29565 bash_cv_dev_stdin=present
29566 else
29567 bash_cv_dev_stdin=absent
29568 fi
29569
29570fi
29571
3185942a
JA
29572{ $as_echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
29573$as_echo "$bash_cv_dev_stdin" >&6; }
bb70624e 29574if test $bash_cv_dev_stdin = "present"; then
b80f6443 29575 cat >>confdefs.h <<\_ACEOF
bb70624e 29576#define HAVE_DEV_STDIN 1
b80f6443 29577_ACEOF
bb70624e
JA
29578
29579fi
29580
3185942a
JA
29581{ $as_echo "$as_me:$LINENO: checking for default mail directory" >&5
29582$as_echo_n "checking for default mail directory... " >&6; }
f73dda09 29583if test "${bash_cv_mail_dir+set}" = set; then
3185942a 29584 $as_echo_n "(cached) " >&6
ccc6cda3
JA
29585else
29586 if test -d /var/mail; then
29587 bash_cv_mail_dir=/var/mail
ccc6cda3
JA
29588 elif test -d /var/spool/mail; then
29589 bash_cv_mail_dir=/var/spool/mail
7117c2d2
JA
29590 elif test -d /usr/mail; then
29591 bash_cv_mail_dir=/usr/mail
e8ce775d
JA
29592 elif test -d /usr/spool/mail; then
29593 bash_cv_mail_dir=/usr/spool/mail
ccc6cda3
JA
29594 else
29595 bash_cv_mail_dir=unknown
29596 fi
29597
29598fi
29599
3185942a
JA
29600{ $as_echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
29601$as_echo "$bash_cv_mail_dir" >&6; }
b80f6443
JA
29602cat >>confdefs.h <<_ACEOF
29603#define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
29604_ACEOF
29605
29606
ccc6cda3 29607
ccc6cda3
JA
29608if test "$bash_cv_job_control_missing" = missing; then
29609 opt_job_control=no
29610fi
29611
29612if test "$opt_job_control" = yes; then
b80f6443 29613cat >>confdefs.h <<\_ACEOF
ccc6cda3 29614#define JOB_CONTROL 1
b80f6443 29615_ACEOF
ccc6cda3
JA
29616
29617JOBS_O=jobs.o
29618else
29619JOBS_O=nojobs.o
29620fi
29621
b80f6443
JA
29622
29623
29624
d166f048
JA
29625LOCAL_DEFS=-DSHELL
29626
b80f6443 29627
b72432fd 29628case "${host_os}" in
b80f6443 29629sysv4.2*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 29630#define SVR4_2 1
b80f6443 29631_ACEOF
ccc6cda3 29632
b80f6443 29633 cat >>confdefs.h <<\_ACEOF
ccc6cda3 29634#define SVR4 1
b80f6443 29635_ACEOF
ccc6cda3 29636 ;;
b80f6443 29637sysv4*) cat >>confdefs.h <<\_ACEOF
ccc6cda3 29638#define SVR4 1
b80f6443 29639_ACEOF
ccc6cda3 29640 ;;
b80f6443 29641sysv5*) cat >>confdefs.h <<\_ACEOF
b72432fd 29642#define SVR5 1
b80f6443 29643_ACEOF
b72432fd
JA
29644 ;;
29645hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
ccc6cda3
JA
29646hpux*) LOCAL_CFLAGS=-DHPUX ;;
29647dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
bb70624e
JA
29648isc*) LOCAL_CFLAGS=-Disc386 ;;
29649rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
f73dda09 29650darwin*) LOCAL_CFLAGS=-DMACOSX ;;
7117c2d2
JA
29651sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
29652sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
ccc6cda3 29653sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
d166f048 29654sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
f1be666c 29655solaris2.5*) LOCAL_CFLAGS="-DSunOS5 -DSOLARIS" ;;
3185942a
JA
29656solaris2.8*) LOCAL_CFLAGS=-DSOLARIS LOCAL_LDFLAGS='-z interpose' ;;
29657solaris2.9*) LOCAL_CFLAGS=-DSOLARIS LOCAL_LDFLAGS='-z interpose' ;;
29658solaris2.10*) LOCAL_CFLAGS=-DSOLARIS LOCAL_LDFLAGS='-z interpose' ;;
f1be666c 29659solaris2*) LOCAL_CFLAGS=-DSOLARIS ;;
b72432fd 29660lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
95732b49
JA
29661linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
29662 case "`uname -r`" in
29663 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
29664#define PGRP_PIPE 1
29665_ACEOF
29666 ;;
29667 esac ;;
29668*qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
7117c2d2 29669*qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
b72432fd 29670powerux*) LOCAL_LIBS="-lgen" ;;
b80f6443 29671cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
95732b49 29672opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
b72432fd
JA
29673esac
29674
29675case "${host_os}-${CC}" in
29676aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
29677aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
29678bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
ccc6cda3
JA
29679esac
29680
bb70624e 29681case "${host_os}" in
28ef6c31
JA
29682freebsd[3-9]*)
29683 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
bb70624e
JA
29684 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
29685 fi ;;
28ef6c31 29686freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
95732b49 29687dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
bb70624e
JA
29688esac
29689
ccc6cda3
JA
29690case "$host_cpu" in
29691*cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
29692esac
29693
29694case "$host_cpu-$host_os" in
29695ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
29696esac
29697
29698case "$host_cpu-$host_vendor-$host_os" in
29699m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
29700mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
29701esac
29702
b72432fd
JA
29703#
29704# Shared object configuration section. These values are generated by
29705# ${srcdir}/support/shobj-conf
29706#
29707if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
29708then
3185942a
JA
29709 { $as_echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
29710$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
28ef6c31 29711 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
f73dda09 29712
b80f6443
JA
29713
29714
29715
29716
29717
29718
3185942a
JA
29719 { $as_echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
29720$as_echo "$SHOBJ_STATUS" >&6; }
b72432fd
JA
29721fi
29722
ccc6cda3
JA
29723# try to create a directory tree if the source is elsewhere
29724# this should be packaged into a script accessible via ${srcdir}/support
29725case "$srcdir" in
29726.) ;;
cce855bc 29727*) for d in doc tests support lib examples; do # dirs
ccc6cda3
JA
29728 test -d $d || mkdir $d
29729 done
cce855bc 29730 for ld in readline glob tilde malloc sh termcap; do # libdirs
ccc6cda3
JA
29731 test -d lib/$ld || mkdir lib/$ld
29732 done
cce855bc 29733 test -d examples/loadables || mkdir examples/loadables # loadable builtins
bb70624e 29734 test -d examples/loadables/perl || mkdir examples/loadables/perl
ccc6cda3
JA
29735 ;;
29736esac
29737
29738BUILD_DIR=`pwd`
95732b49
JA
29739case "$BUILD_DIR" in
29740*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
29741*) ;;
29742esac
ccc6cda3 29743
3185942a
JA
29744if test -z "$localedir"; then
29745 localedir='${datarootdir}/locale'
29746fi
29747if test -z "$datarootdir"; then
29748 datarootdir='${prefix}/share'
29749fi
29750
29751
29752
29753
b80f6443
JA
29754
29755
3185942a 29756# Some versions of autoconf don't substitute these automatically
b80f6443
JA
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
d166f048
JA
29778#AC_SUBST(ALLOCA_SOURCE)
29779#AC_SUBST(ALLOCA_OBJECT)
29780
3185942a
JA
29781ac_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"
29782
29783ac_config_commands="$ac_config_commands default"
29784
f73dda09 29785cat >confcache <<\_ACEOF
ccc6cda3
JA
29786# This file is a shell script that caches the results of configure
29787# tests run on this system so they can be shared between configure
f73dda09
JA
29788# scripts and configure runs, see configure's option --config-cache.
29789# It is not useful on other systems. If it contains results you don't
29790# want to keep, you may remove or edit it.
726f6388 29791#
f73dda09
JA
29792# config.status only pays attention to the cache file if you give it
29793# the --recheck option to rerun configure.
ccc6cda3 29794#
0628567a 29795# `ac_cv_env_foo' variables (set or unset) will be overridden when
f73dda09
JA
29796# loading this file, other *unset* `ac_cv_foo' will be assigned the
29797# following values.
29798
29799_ACEOF
29800
ccc6cda3
JA
29801# The following way of writing the cache mishandles newlines in values,
29802# but we know of no workaround that is simple, portable, and efficient.
3185942a 29803# So, we kill variables containing newlines.
ccc6cda3
JA
29804# Ultrix sh set writes to stderr and can't be redirected directly,
29805# and sets the high bit in the cache file unless we assign to the vars.
3185942a
JA
29806(
29807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29808 eval ac_val=\$$ac_var
29809 case $ac_val in #(
29810 *${as_nl}*)
29811 case $ac_var in #(
29812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29814 esac
29815 case $ac_var in #(
29816 _ | IFS | as_nl) ;; #(
29817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29818 *) $as_unset $ac_var ;;
29819 esac ;;
29820 esac
29821 done
29822
f73dda09 29823 (set) 2>&1 |
3185942a
JA
29824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29825 *${as_nl}ac_space=\ *)
f73dda09
JA
29826 # `set' does not quote correctly, so add quotes (double-quote
29827 # substitution turns \\\\ into \\, and sed turns \\ into \).
29828 sed -n \
0628567a
JA
29829 "s/'/'\\\\''/g;
29830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3185942a 29831 ;; #(
f73dda09
JA
29832 *)
29833 # `set' quotes correctly as required by POSIX, so do not add quotes.
3185942a 29834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f73dda09 29835 ;;
3185942a
JA
29836 esac |
29837 sort
29838) |
f73dda09 29839 sed '
3185942a 29840 /^ac_cv_env_/b end
f73dda09 29841 t clear
3185942a 29842 :clear
f73dda09
JA
29843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29844 t end
3185942a
JA
29845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29846 :end' >>confcache
29847if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29848 if test -w "$cache_file"; then
29849 test "x$cache_file" != "x/dev/null" &&
29850 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29851$as_echo "$as_me: updating cache $cache_file" >&6;}
f73dda09 29852 cat confcache >$cache_file
ccc6cda3 29853 else
3185942a
JA
29854 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29855$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
ccc6cda3
JA
29856 fi
29857fi
29858rm -f confcache
29859
ccc6cda3
JA
29860test "x$prefix" = xNONE && prefix=$ac_default_prefix
29861# Let make expand exec_prefix.
29862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29863
ccc6cda3
JA
29864DEFS=-DHAVE_CONFIG_H
29865
0628567a
JA
29866ac_libobjs=
29867ac_ltlibobjs=
29868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29869 # 1. Remove the extension, and $U if already installed.
3185942a
JA
29870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29873 # will be set to the directory where LIBOBJS objects are built.
29874 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29875 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
0628567a
JA
29876done
29877LIBOBJS=$ac_libobjs
29878
29879LTLIBOBJS=$ac_ltlibobjs
29880
29881
b80f6443 29882
3185942a 29883
ccc6cda3 29884: ${CONFIG_STATUS=./config.status}
3185942a 29885ac_write_fail=0
f73dda09
JA
29886ac_clean_files_save=$ac_clean_files
29887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3185942a
JA
29888{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29889$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29890cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 29891#! $SHELL
b80f6443 29892# Generated by $as_me.
ccc6cda3 29893# Run this file to recreate the current configuration.
ccc6cda3 29894# Compiler output produced by configure, useful for debugging
f73dda09 29895# configure, is in config.log if it exists.
ccc6cda3 29896
f73dda09 29897debug=false
0628567a
JA
29898ac_cs_recheck=false
29899ac_cs_silent=false
f73dda09 29900SHELL=\${CONFIG_SHELL-$SHELL}
f73dda09
JA
29901_ACEOF
29902
3185942a 29903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80f6443
JA
29904## --------------------- ##
29905## M4sh Initialization. ##
29906## --------------------- ##
29907
3185942a
JA
29908# Be more Bourne compatible
29909DUALCASE=1; export DUALCASE # for MKS sh
f73dda09
JA
29910if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29911 emulate sh
29912 NULLCMD=:
3185942a 29913 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
0628567a
JA
29914 # is contrary to our usage. Disable this feature.
29915 alias -g '${1+"$@"}'='"$@"'
3185942a
JA
29916 setopt NO_GLOB_SUBST
29917else
29918 case `(set -o) 2>/dev/null` in
29919 *posix*) set -o posix ;;
29920esac
29921
29922fi
29923
29924
29925
29926
29927# PATH needs CR
29928# Avoid depending upon Character Ranges.
29929as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29930as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29931as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29932as_cr_digits='0123456789'
29933as_cr_alnum=$as_cr_Letters$as_cr_digits
29934
29935as_nl='
29936'
29937export as_nl
29938# Printing a long string crashes Solaris 7 /usr/bin/printf.
29939as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29942if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29943 as_echo='printf %s\n'
29944 as_echo_n='printf %s'
29945else
29946 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29947 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29948 as_echo_n='/usr/ucb/echo -n'
29949 else
29950 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29951 as_echo_n_body='eval
29952 arg=$1;
29953 case $arg in
29954 *"$as_nl"*)
29955 expr "X$arg" : "X\\(.*\\)$as_nl";
29956 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29957 esac;
29958 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29959 '
29960 export as_echo_n_body
29961 as_echo_n='sh -c $as_echo_n_body as_echo'
29962 fi
29963 export as_echo_body
29964 as_echo='sh -c $as_echo_body as_echo'
29965fi
29966
29967# The user is always right.
29968if test "${PATH_SEPARATOR+set}" != set; then
29969 PATH_SEPARATOR=:
29970 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29971 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29972 PATH_SEPARATOR=';'
29973 }
f73dda09
JA
29974fi
29975
b80f6443 29976# Support unset when possible.
0628567a 29977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b80f6443
JA
29978 as_unset=unset
29979else
29980 as_unset=false
29981fi
29982
0628567a 29983
3185942a
JA
29984# IFS
29985# We need space, tab and new line, in precisely that order. Quoting is
29986# there to prevent editors from complaining about space-tab.
29987# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29988# splitting by setting IFS to empty value.)
29989IFS=" "" $as_nl"
29990
29991# Find who we are. Look in the path if we contain no directory separator.
29992case $0 in
29993 *[\\/]* ) as_myself=$0 ;;
29994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29995for as_dir in $PATH
29996do
29997 IFS=$as_save_IFS
29998 test -z "$as_dir" && as_dir=.
29999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30000done
30001IFS=$as_save_IFS
30002
30003 ;;
30004esac
30005# We did not find ourselves, most probably we were run as `sh COMMAND'
30006# in which case we are not to be found in the path.
30007if test "x$as_myself" = x; then
30008 as_myself=$0
30009fi
30010if test ! -f "$as_myself"; then
30011 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30012 { (exit 1); exit 1; }
30013fi
30014
0628567a 30015# Work around bugs in pre-3.0 UWIN ksh.
3185942a
JA
30016for as_var in ENV MAIL MAILPATH
30017do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30018done
0628567a
JA
30019PS1='$ '
30020PS2='> '
30021PS4='+ '
30022
30023# NLS nuisances.
3185942a
JA
30024LC_ALL=C
30025export LC_ALL
30026LANGUAGE=C
30027export LANGUAGE
0628567a
JA
30028
30029# Required to use basename.
3185942a
JA
30030if expr a : '\(a\)' >/dev/null 2>&1 &&
30031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
0628567a
JA
30032 as_expr=expr
30033else
30034 as_expr=false
30035fi
30036
3185942a 30037if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
0628567a
JA
30038 as_basename=basename
30039else
30040 as_basename=false
30041fi
b80f6443
JA
30042
30043
f73dda09 30044# Name of the executable.
3185942a 30045as_me=`$as_basename -- "$0" ||
b80f6443
JA
30046$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30047 X"$0" : 'X\(//\)$' \| \
3185942a
JA
30048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30049$as_echo X/"$0" |
30050 sed '/^.*\/\([^/][^/]*\)\/*$/{
30051 s//\1/
30052 q
30053 }
30054 /^X\/\(\/\/\)$/{
30055 s//\1/
30056 q
30057 }
30058 /^X\/\(\/\).*/{
30059 s//\1/
30060 q
30061 }
30062 s/.*/./; q'`
b80f6443 30063
3185942a
JA
30064# CDPATH.
30065$as_unset CDPATH
b80f6443
JA
30066
30067
b80f6443 30068
b80f6443
JA
30069 as_lineno_1=$LINENO
30070 as_lineno_2=$LINENO
b80f6443 30071 test "x$as_lineno_1" != "x$as_lineno_2" &&
3185942a 30072 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
b80f6443
JA
30073
30074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30075 # uniformly replaced by the line number. The first 'sed' inserts a
3185942a
JA
30076 # line-number line after each line using $LINENO; the second 'sed'
30077 # does the real work. The second script uses 'N' to pair each
30078 # line-number line with the line containing $LINENO, and appends
30079 # trailing '-' during substitution so that $LINENO is not a special
30080 # case at line end.
b80f6443 30081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3185942a
JA
30082 # scripts with optimization help from Paolo Bonzini. Blame Lee
30083 # E. McMahon (1931-1989) for sed's syntax. :-)
30084 sed -n '
30085 p
30086 /[$]LINENO/=
30087 ' <$as_myself |
b80f6443 30088 sed '
3185942a
JA
30089 s/[$]LINENO.*/&-/
30090 t lineno
30091 b
30092 :lineno
b80f6443 30093 N
3185942a
JA
30094 :loop
30095 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b80f6443 30096 t loop
3185942a 30097 s/-\n.*//
b80f6443 30098 ' >$as_me.lineno &&
3185942a
JA
30099 chmod +x "$as_me.lineno" ||
30100 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b80f6443
JA
30101 { (exit 1); exit 1; }; }
30102
30103 # Don't try to exec as it changes $[0], causing all sort of problems
30104 # (the dirname of $[0] is not the place where we might find the
3185942a
JA
30105 # original and so on. Autoconf is especially sensitive to this).
30106 . "./$as_me.lineno"
b80f6443
JA
30107 # Exit status is that of the last command.
30108 exit
30109}
30110
30111
3185942a
JA
30112if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30113 as_dirname=dirname
30114else
30115 as_dirname=false
30116fi
f73dda09 30117
3185942a
JA
30118ECHO_C= ECHO_N= ECHO_T=
30119case `echo -n x` in
30120-n*)
30121 case `echo 'x\c'` in
30122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30123 *) ECHO_C='\c';;
30124 esac;;
30125*)
30126 ECHO_N='-n';;
30127esac
30128if expr a : '\(a\)' >/dev/null 2>&1 &&
30129 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f73dda09
JA
30130 as_expr=expr
30131else
30132 as_expr=false
30133fi
30134
30135rm -f conf$$ conf$$.exe conf$$.file
3185942a
JA
30136if test -d conf$$.dir; then
30137 rm -f conf$$.dir/conf$$.file
30138else
30139 rm -f conf$$.dir
30140 mkdir conf$$.dir 2>/dev/null
30141fi
30142if (echo >conf$$.file) 2>/dev/null; then
30143 if ln -s conf$$.file conf$$ 2>/dev/null; then
f73dda09 30144 as_ln_s='ln -s'
3185942a
JA
30145 # ... but there are two gotchas:
30146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30148 # In both cases, we have to default to `cp -p'.
30149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30150 as_ln_s='cp -p'
30151 elif ln conf$$.file conf$$ 2>/dev/null; then
30152 as_ln_s=ln
30153 else
30154 as_ln_s='cp -p'
f73dda09 30155 fi
f73dda09
JA
30156else
30157 as_ln_s='cp -p'
30158fi
3185942a
JA
30159rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30160rmdir conf$$.dir 2>/dev/null
f73dda09 30161
0628567a
JA
30162if mkdir -p . 2>/dev/null; then
30163 as_mkdir_p=:
30164else
30165 test -d ./-p && rmdir ./-p
30166 as_mkdir_p=false
30167fi
30168
3185942a
JA
30169if test -x / >/dev/null 2>&1; then
30170 as_test_x='test -x'
30171else
30172 if ls -dL / >/dev/null 2>&1; then
30173 as_ls_L_option=L
30174 else
30175 as_ls_L_option=
30176 fi
30177 as_test_x='
30178 eval sh -c '\''
30179 if test -d "$1"; then
30180 test -d "$1/.";
30181 else
30182 case $1 in
30183 -*)set "./$1";;
30184 esac;
30185 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30186 ???[sx]*):;;*)false;;esac;fi
30187 '\'' sh
30188 '
30189fi
30190as_executable_p=$as_test_x
b80f6443
JA
30191
30192# Sed expression to map a string onto a valid CPP name.
0628567a 30193as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b80f6443
JA
30194
30195# Sed expression to map a string onto a valid variable name.
0628567a 30196as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b80f6443 30197
f73dda09 30198
f73dda09
JA
30199exec 6>&1
30200
3185942a 30201# Save the log message, to keep $[0] and so on meaningful, and to
b80f6443 30202# report actual input values of CONFIG_FILES etc. instead of their
3185942a
JA
30203# values after options handling.
30204ac_log="
30205This file was extended by bash $as_me 4.0-rc1, which was
30206generated by GNU Autoconf 2.63. Invocation command line was
b80f6443
JA
30207
30208 CONFIG_FILES = $CONFIG_FILES
30209 CONFIG_HEADERS = $CONFIG_HEADERS
30210 CONFIG_LINKS = $CONFIG_LINKS
30211 CONFIG_COMMANDS = $CONFIG_COMMANDS
30212 $ $0 $@
30213
3185942a
JA
30214on `(hostname || uname -n) 2>/dev/null | sed 1q`
30215"
30216
f73dda09
JA
30217_ACEOF
30218
3185942a
JA
30219case $ac_config_files in *"
30220"*) set x $ac_config_files; shift; ac_config_files=$*;;
30221esac
f73dda09 30222
3185942a
JA
30223case $ac_config_headers in *"
30224"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30225esac
f73dda09 30226
f73dda09 30227
3185942a
JA
30228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30229# Files that config.status was made for.
30230config_files="$ac_config_files"
30231config_headers="$ac_config_headers"
30232config_commands="$ac_config_commands"
f73dda09 30233
3185942a 30234_ACEOF
f73dda09 30235
3185942a 30236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09
JA
30237ac_cs_usage="\
30238\`$as_me' instantiates files from templates according to the
30239current configuration.
30240
3185942a 30241Usage: $0 [OPTION]... [FILE]...
f73dda09
JA
30242
30243 -h, --help print this help, then exit
3185942a
JA
30244 -V, --version print version number and configuration settings, then exit
30245 -q, --quiet, --silent
30246 do not print progress messages
f73dda09
JA
30247 -d, --debug don't remove temporary files
30248 --recheck update $as_me by reconfiguring in the same conditions
3185942a
JA
30249 --file=FILE[:TEMPLATE]
30250 instantiate the configuration file FILE
30251 --header=FILE[:TEMPLATE]
30252 instantiate the configuration header FILE
f73dda09
JA
30253
30254Configuration files:
30255$config_files
30256
30257Configuration headers:
30258$config_headers
30259
30260Configuration commands:
30261$config_commands
30262
30263Report bugs to <bug-autoconf@gnu.org>."
f73dda09 30264
3185942a
JA
30265_ACEOF
30266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f73dda09 30267ac_cs_version="\\
3185942a
JA
30268bash config.status 4.0-rc1
30269configured by $0, generated by GNU Autoconf 2.63,
30270 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f73dda09 30271
3185942a 30272Copyright (C) 2008 Free Software Foundation, Inc.
f73dda09
JA
30273This config.status script is free software; the Free Software Foundation
30274gives unlimited permission to copy, distribute and modify it."
3185942a
JA
30275
30276ac_pwd='$ac_pwd'
30277srcdir='$srcdir'
30278INSTALL='$INSTALL'
30279test -n "\$AWK" || AWK=awk
b80f6443 30280_ACEOF
f73dda09 30281
3185942a
JA
30282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30283# The default lists apply if the user does not specify any file.
f73dda09
JA
30284ac_need_defaults=:
30285while test $# != 0
ccc6cda3 30286do
f73dda09
JA
30287 case $1 in
30288 --*=*)
3185942a
JA
30289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30290 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
0628567a
JA
30291 ac_shift=:
30292 ;;
3185942a 30293 *)
0628567a
JA
30294 ac_option=$1
30295 ac_optarg=$2
30296 ac_shift=shift
f73dda09 30297 ;;
f73dda09
JA
30298 esac
30299
0628567a 30300 case $ac_option in
f73dda09 30301 # Handling of the options.
0628567a
JA
30302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30303 ac_cs_recheck=: ;;
3185942a
JA
30304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30305 $as_echo "$ac_cs_version"; exit ;;
30306 --debug | --debu | --deb | --de | --d | -d )
f73dda09
JA
30307 debug=: ;;
30308 --file | --fil | --fi | --f )
0628567a 30309 $ac_shift
3185942a
JA
30310 case $ac_optarg in
30311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30312 esac
30313 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
f73dda09
JA
30314 ac_need_defaults=false;;
30315 --header | --heade | --head | --hea )
0628567a 30316 $ac_shift
3185942a
JA
30317 case $ac_optarg in
30318 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30319 esac
30320 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
f73dda09 30321 ac_need_defaults=false;;
3185942a
JA
30322 --he | --h)
30323 # Conflict between --help and --header
30324 { $as_echo "$as_me: error: ambiguous option: $1
30325Try \`$0 --help' for more information." >&2
30326 { (exit 1); exit 1; }; };;
30327 --help | --hel | -h )
30328 $as_echo "$ac_cs_usage"; exit ;;
0628567a
JA
30329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30331 ac_cs_silent=: ;;
f73dda09
JA
30332
30333 # This is an error.
3185942a
JA
30334 -*) { $as_echo "$as_me: error: unrecognized option: $1
30335Try \`$0 --help' for more information." >&2
f73dda09
JA
30336 { (exit 1); exit 1; }; } ;;
30337
3185942a
JA
30338 *) ac_config_targets="$ac_config_targets $1"
30339 ac_need_defaults=false ;;
f73dda09 30340
ccc6cda3 30341 esac
f73dda09 30342 shift
ccc6cda3
JA
30343done
30344
0628567a
JA
30345ac_configure_extra_args=
30346
30347if $ac_cs_silent; then
30348 exec 6>/dev/null
30349 ac_configure_extra_args="$ac_configure_extra_args --silent"
30350fi
30351
30352_ACEOF
3185942a 30353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0628567a 30354if \$ac_cs_recheck; then
3185942a
JA
30355 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30356 shift
30357 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30358 CONFIG_SHELL='$SHELL'
30359 export CONFIG_SHELL
30360 exec "\$@"
0628567a
JA
30361fi
30362
b80f6443 30363_ACEOF
3185942a
JA
30364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30365exec 5>>config.log
30366{
30367 echo
30368 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30369## Running $as_me. ##
30370_ASBOX
30371 $as_echo "$ac_log"
30372} >&5
b80f6443 30373
3185942a
JA
30374_ACEOF
30375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b80f6443 30376#
3185942a 30377# INIT-COMMANDS
b80f6443 30378#
b80f6443
JA
30379# Capture the value of obsolete ALL_LINGUAS because we need it to compute
30380 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
30381 # from automake.
30382 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30383 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30384 LINGUAS="${LINGUAS-%UNSET%}"
f73dda09 30385
f73dda09
JA
30386
30387_ACEOF
ccc6cda3 30388
3185942a 30389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80f6443 30390
3185942a 30391# Handling of arguments.
f73dda09
JA
30392for ac_config_target in $ac_config_targets
30393do
3185942a
JA
30394 case $ac_config_target in
30395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30396 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30397 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30398 "builtins/Makefile") CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
30399 "lib/readline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
30400 "lib/glob/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
30401 "lib/intl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
30402 "lib/malloc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
30403 "lib/sh/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
30404 "lib/termcap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
30405 "lib/tilde/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
30406 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30407 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30408 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30409 "examples/loadables/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
30410 "examples/loadables/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
30411 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30412
30413 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30414$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
f73dda09
JA
30415 { (exit 1); exit 1; }; };;
30416 esac
30417done
30418
3185942a 30419
f73dda09
JA
30420# If the user did not use the arguments to specify the items to instantiate,
30421# then the envvar interface is used. Set only those that are not.
30422# We use the long form for the default assignment because of an extremely
30423# bizarre bug on SunOS 4.1.3.
30424if $ac_need_defaults; then
30425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30428fi
30429
0628567a 30430# Have a temporary directory for convenience. Make it in the build tree
3185942a 30431# simply because there is no reason against having it here, and in addition,
0628567a 30432# creating and moving files from /tmp can sometimes cause problems.
3185942a
JA
30433# Hook for its removal unless debugging.
30434# Note that there is a small window in which the directory will not be cleaned:
30435# after its creation but before its name has been assigned to `$tmp'.
f73dda09
JA
30436$debug ||
30437{
3185942a
JA
30438 tmp=
30439 trap 'exit_status=$?
30440 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30441' 0
f73dda09
JA
30442 trap '{ (exit 1); exit 1; }' 1 2 13 15
30443}
f73dda09 30444# Create a (secure) tmp directory for tmp files.
0628567a 30445
f73dda09 30446{
3185942a 30447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f73dda09
JA
30448 test -n "$tmp" && test -d "$tmp"
30449} ||
30450{
3185942a
JA
30451 tmp=./conf$$-$RANDOM
30452 (umask 077 && mkdir "$tmp")
f73dda09
JA
30453} ||
30454{
3185942a 30455 $as_echo "$as_me: cannot create a temporary directory in ." >&2
f73dda09
JA
30456 { (exit 1); exit 1; }
30457}
ccc6cda3 30458
3185942a
JA
30459# Set up the scripts for CONFIG_FILES section.
30460# No need to generate them if there are no CONFIG_FILES.
30461# This happens for instance with `./config.status config.h'.
30462if test -n "$CONFIG_FILES"; then
30463
30464
30465ac_cr='\r'
30466ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30467if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30468 ac_cs_awk_cr='\\r'
30469else
30470 ac_cs_awk_cr=$ac_cr
30471fi
30472
30473echo 'BEGIN {' >"$tmp/subs1.awk" &&
b80f6443 30474_ACEOF
ccc6cda3 30475
ccc6cda3 30476
3185942a
JA
30477{
30478 echo "cat >conf$$subs.awk <<_ACEOF" &&
30479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30480 echo "_ACEOF"
30481} >conf$$subs.sh ||
30482 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30483$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30484 { (exit 1); exit 1; }; }
30485ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30486ac_delim='%!_!# '
30487for ac_last_try in false false false false false :; do
30488 . ./conf$$subs.sh ||
30489 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30490$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30491 { (exit 1); exit 1; }; }
f73dda09 30492
3185942a
JA
30493 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30494 if test $ac_delim_n = $ac_delim_num; then
30495 break
30496 elif $ac_last_try; then
30497 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30498$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30499 { (exit 1); exit 1; }; }
30500 else
30501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ccc6cda3 30502 fi
3185942a
JA
30503done
30504rm -f conf$$subs.sh
30505
30506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30507cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30508_ACEOF
30509sed -n '
30510h
30511s/^/S["/; s/!.*/"]=/
30512p
30513g
30514s/^[^!]*!//
30515:repl
30516t repl
30517s/'"$ac_delim"'$//
30518t delim
30519:nl
30520h
30521s/\(.\{148\}\).*/\1/
30522t more1
30523s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30524p
30525n
30526b repl
30527:more1
30528s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30529p
30530g
30531s/.\{148\}//
30532t nl
30533:delim
30534h
30535s/\(.\{148\}\).*/\1/
30536t more2
30537s/["\\]/\\&/g; s/^/"/; s/$/"/
30538p
30539b
30540:more2
30541s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30542p
30543g
30544s/.\{148\}//
30545t delim
30546' <conf$$subs.awk | sed '
30547/^[^""]/{
30548 N
30549 s/\n//
30550}
30551' >>$CONFIG_STATUS || ac_write_fail=1
30552rm -f conf$$subs.awk
30553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30554_ACAWK
30555cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30556 for (key in S) S_is_set[key] = 1
30557 FS = "\a"
30558
30559}
30560{
30561 line = $ 0
30562 nfields = split(line, field, "@")
30563 substed = 0
30564 len = length(field[1])
30565 for (i = 2; i < nfields; i++) {
30566 key = field[i]
30567 keylen = length(key)
30568 if (S_is_set[key]) {
30569 value = S[key]
30570 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30571 len += length(value) + length(field[++i])
30572 substed = 1
30573 } else
30574 len += 1 + keylen
30575 }
30576
30577 print line
30578}
30579
30580_ACAWK
30581_ACEOF
30582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30583if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30584 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30585else
30586 cat
30587fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30588 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30589$as_echo "$as_me: error: could not setup config files machinery" >&2;}
30590 { (exit 1); exit 1; }; }
30591_ACEOF
30592
30593# VPATH may cause trouble with some makes, so we remove $(srcdir),
30594# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30595# trailing colons and then remove the whole line if VPATH becomes empty
30596# (actually we leave an empty line to preserve line numbers).
30597if test "x$srcdir" = x.; then
30598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30599s/:*\$(srcdir):*/:/
30600s/:*\${srcdir}:*/:/
30601s/:*@srcdir@:*/:/
30602s/^\([^=]*=[ ]*\):*/\1/
30603s/:*$//
30604s/^[^=]*=[ ]*$//
30605}'
30606fi
30607
30608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09 30609fi # test -n "$CONFIG_FILES"
ccc6cda3 30610
3185942a
JA
30611# Set up the scripts for CONFIG_HEADERS section.
30612# No need to generate them if there are no CONFIG_HEADERS.
30613# This happens for instance with `./config.status Makefile'.
30614if test -n "$CONFIG_HEADERS"; then
30615cat >"$tmp/defines.awk" <<\_ACAWK ||
30616BEGIN {
b80f6443 30617_ACEOF
3185942a
JA
30618
30619# Transform confdefs.h into an awk script `defines.awk', embedded as
30620# here-document in config.status, that substitutes the proper values into
30621# config.h.in to produce config.h.
30622
30623# Create a delimiter string that does not exist in confdefs.h, to ease
30624# handling of long lines.
30625ac_delim='%!_!# '
30626for ac_last_try in false false :; do
30627 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30628 if test -z "$ac_t"; then
30629 break
30630 elif $ac_last_try; then
30631 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30632$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30633 { (exit 1); exit 1; }; }
30634 else
30635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30636 fi
30637done
30638
30639# For the awk script, D is an array of macro values keyed by name,
30640# likewise P contains macro parameters if any. Preserve backslash
30641# newline sequences.
30642
30643ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30644sed -n '
30645s/.\{148\}/&'"$ac_delim"'/g
30646t rset
30647:rset
30648s/^[ ]*#[ ]*define[ ][ ]*/ /
30649t def
30650d
30651:def
30652s/\\$//
30653t bsnl
30654s/["\\]/\\&/g
30655s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30656D["\1"]=" \3"/p
30657s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30658d
30659:bsnl
30660s/["\\]/\\&/g
30661s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30662D["\1"]=" \3\\\\\\n"\\/p
30663t cont
30664s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30665t cont
30666d
30667:cont
30668n
30669s/.\{148\}/&'"$ac_delim"'/g
30670t clear
30671:clear
30672s/\\$//
30673t bsnlc
30674s/["\\]/\\&/g; s/^/"/; s/$/"/p
30675d
30676:bsnlc
30677s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30678b cont
30679' <confdefs.h | sed '
30680s/'"$ac_delim"'/"\\\
30681"/g' >>$CONFIG_STATUS || ac_write_fail=1
30682
30683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30684 for (key in D) D_is_set[key] = 1
30685 FS = "\a"
30686}
30687/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30688 line = \$ 0
30689 split(line, arg, " ")
30690 if (arg[1] == "#") {
30691 defundef = arg[2]
30692 mac1 = arg[3]
30693 } else {
30694 defundef = substr(arg[1], 2)
30695 mac1 = arg[2]
30696 }
30697 split(mac1, mac2, "(") #)
30698 macro = mac2[1]
30699 prefix = substr(line, 1, index(line, defundef) - 1)
30700 if (D_is_set[macro]) {
30701 # Preserve the white space surrounding the "#".
30702 print prefix "define", macro P[macro] D[macro]
30703 next
30704 } else {
30705 # Replace #undef with comments. This is necessary, for example,
30706 # in the case of _POSIX_SOURCE, which is predefined and required
30707 # on some systems where configure will not decide to define it.
30708 if (defundef == "undef") {
30709 print "/*", prefix defundef, macro, "*/"
30710 next
30711 }
30712 }
30713}
30714{ print }
30715_ACAWK
30716_ACEOF
30717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30718 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30719$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30720 { (exit 1); exit 1; }; }
30721fi # test -n "$CONFIG_HEADERS"
30722
30723
30724eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30725shift
30726for ac_tag
30727do
30728 case $ac_tag in
30729 :[FHLC]) ac_mode=$ac_tag; continue;;
30730 esac
30731 case $ac_mode$ac_tag in
30732 :[FHL]*:*);;
30733 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30734$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30735 { (exit 1); exit 1; }; };;
30736 :[FH]-) ac_tag=-:-;;
30737 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30738 esac
30739 ac_save_IFS=$IFS
30740 IFS=:
30741 set x $ac_tag
30742 IFS=$ac_save_IFS
30743 shift
30744 ac_file=$1
30745 shift
30746
30747 case $ac_mode in
30748 :L) ac_source=$1;;
30749 :[FH])
30750 ac_file_inputs=
30751 for ac_f
30752 do
30753 case $ac_f in
30754 -) ac_f="$tmp/stdin";;
30755 *) # Look for the file first in the build tree, then in the source tree
30756 # (if the path is not absolute). The absolute path cannot be DOS-style,
30757 # because $ac_f cannot contain `:'.
30758 test -f "$ac_f" ||
30759 case $ac_f in
30760 [\\/$]*) false;;
30761 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30762 esac ||
30763 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30764$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30765 { (exit 1); exit 1; }; };;
30766 esac
30767 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30768 ac_file_inputs="$ac_file_inputs '$ac_f'"
30769 done
30770
30771 # Let's still pretend it is `configure' which instantiates (i.e., don't
30772 # use $as_me), people would be surprised to read:
30773 # /* config.h. Generated by config.status. */
30774 configure_input='Generated from '`
30775 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30776 `' by configure.'
30777 if test x"$ac_file" != x-; then
30778 configure_input="$ac_file. $configure_input"
30779 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30780$as_echo "$as_me: creating $ac_file" >&6;}
30781 fi
30782 # Neutralize special characters interpreted by sed in replacement strings.
30783 case $configure_input in #(
30784 *\&* | *\|* | *\\* )
30785 ac_sed_conf_input=`$as_echo "$configure_input" |
30786 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30787 *) ac_sed_conf_input=$configure_input;;
30788 esac
30789
30790 case $ac_tag in
30791 *:-:* | *:-) cat >"$tmp/stdin" \
30792 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30793$as_echo "$as_me: error: could not create $ac_file" >&2;}
30794 { (exit 1); exit 1; }; } ;;
30795 esac
30796 ;;
ccc6cda3
JA
30797 esac
30798
3185942a 30799 ac_dir=`$as_dirname -- "$ac_file" ||
b80f6443 30800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
0628567a
JA
30801 X"$ac_file" : 'X\(//\)[^/]' \| \
30802 X"$ac_file" : 'X\(//\)$' \| \
3185942a
JA
30803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30804$as_echo X"$ac_file" |
30805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30806 s//\1/
30807 q
30808 }
30809 /^X\(\/\/\)[^/].*/{
30810 s//\1/
30811 q
30812 }
30813 /^X\(\/\/\)$/{
30814 s//\1/
30815 q
30816 }
30817 /^X\(\/\).*/{
30818 s//\1/
30819 q
30820 }
30821 s/.*/./; q'`
30822 { as_dir="$ac_dir"
30823 case $as_dir in #(
30824 -*) as_dir=./$as_dir;;
30825 esac
30826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
0628567a 30827 as_dirs=
3185942a
JA
30828 while :; do
30829 case $as_dir in #(
30830 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30831 *) as_qdir=$as_dir;;
30832 esac
30833 as_dirs="'$as_qdir' $as_dirs"
30834 as_dir=`$as_dirname -- "$as_dir" ||
0628567a
JA
30835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30836 X"$as_dir" : 'X\(//\)[^/]' \| \
30837 X"$as_dir" : 'X\(//\)$' \| \
3185942a
JA
30838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30839$as_echo X"$as_dir" |
30840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30841 s//\1/
30842 q
30843 }
30844 /^X\(\/\/\)[^/].*/{
30845 s//\1/
30846 q
30847 }
30848 /^X\(\/\/\)$/{
30849 s//\1/
30850 q
30851 }
30852 /^X\(\/\).*/{
30853 s//\1/
30854 q
30855 }
30856 s/.*/./; q'`
30857 test -d "$as_dir" && break
0628567a 30858 done
3185942a
JA
30859 test -z "$as_dirs" || eval "mkdir $as_dirs"
30860 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30861$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
0628567a 30862 { (exit 1); exit 1; }; }; }
b80f6443
JA
30863 ac_builddir=.
30864
3185942a
JA
30865case "$ac_dir" in
30866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30867*)
30868 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30869 # A ".." for each directory in $ac_dir_suffix.
30870 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30871 case $ac_top_builddir_sub in
30872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30874 esac ;;
30875esac
30876ac_abs_top_builddir=$ac_pwd
30877ac_abs_builddir=$ac_pwd$ac_dir_suffix
30878# for backward compatibility:
30879ac_top_builddir=$ac_top_build_prefix
b80f6443
JA
30880
30881case $srcdir in
3185942a 30882 .) # We are building in place.
b80f6443 30883 ac_srcdir=.
3185942a
JA
30884 ac_top_srcdir=$ac_top_builddir_sub
30885 ac_abs_top_srcdir=$ac_pwd ;;
30886 [\\/]* | ?:[\\/]* ) # Absolute name.
b80f6443 30887 ac_srcdir=$srcdir$ac_dir_suffix;
3185942a
JA
30888 ac_top_srcdir=$srcdir
30889 ac_abs_top_srcdir=$srcdir ;;
30890 *) # Relative name.
30891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30892 ac_top_srcdir=$ac_top_build_prefix$srcdir
30893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b80f6443 30894esac
3185942a 30895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
0628567a 30896
b80f6443 30897
3185942a
JA
30898 case $ac_mode in
30899 :F)
30900 #
30901 # CONFIG_FILE
30902 #
ccc6cda3 30903
f73dda09
JA
30904 case $INSTALL in
30905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3185942a 30906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
ccc6cda3 30907 esac
3185942a 30908_ACEOF
ccc6cda3 30909
3185942a
JA
30910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30911# If the template does not know about datarootdir, expand it.
30912# FIXME: This hack should be removed a few years after 2.60.
30913ac_datarootdir_hack=; ac_datarootdir_seen=
30914
30915ac_sed_dataroot='
30916/datarootdir/ {
30917 p
30918 q
30919}
30920/@datadir@/p
30921/@docdir@/p
30922/@infodir@/p
30923/@localedir@/p
30924/@mandir@/p
30925'
30926case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30927*datarootdir*) ac_datarootdir_seen=yes;;
30928*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30929 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30930$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30931_ACEOF
30932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30933 ac_datarootdir_hack='
30934 s&@datadir@&$datadir&g
30935 s&@docdir@&$docdir&g
30936 s&@infodir@&$infodir&g
30937 s&@localedir@&$localedir&g
30938 s&@mandir@&$mandir&g
30939 s&\\\${datarootdir}&$datarootdir&g' ;;
30940esac
b80f6443 30941_ACEOF
3185942a
JA
30942
30943# Neutralize VPATH when `$srcdir' = `.'.
30944# Shell code in configure.ac might set extrasub.
30945# FIXME: do we really want to maintain this feature?
30946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30947ac_sed_extra="$ac_vpsub
f73dda09 30948$extrasub
b80f6443 30949_ACEOF
3185942a 30950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f73dda09
JA
30951:t
30952/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3185942a
JA
30953s|@configure_input@|$ac_sed_conf_input|;t t
30954s&@top_builddir@&$ac_top_builddir_sub&;t t
30955s&@top_build_prefix@&$ac_top_build_prefix&;t t
30956s&@srcdir@&$ac_srcdir&;t t
30957s&@abs_srcdir@&$ac_abs_srcdir&;t t
30958s&@top_srcdir@&$ac_top_srcdir&;t t
30959s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30960s&@builddir@&$ac_builddir&;t t
30961s&@abs_builddir@&$ac_abs_builddir&;t t
30962s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30963s&@INSTALL@&$ac_INSTALL&;t t
30964$ac_datarootdir_hack
30965"
30966eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30967 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30968$as_echo "$as_me: error: could not create $ac_file" >&2;}
30969 { (exit 1); exit 1; }; }
ccc6cda3 30970
3185942a
JA
30971test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30972 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30974 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30975which seems to be undefined. Please make sure it is defined." >&5
30976$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30977which seems to be undefined. Please make sure it is defined." >&2;}
ccc6cda3 30978
3185942a 30979 rm -f "$tmp/stdin"
f73dda09 30980 case $ac_file in
3185942a
JA
30981 -) cat "$tmp/out" && rm -f "$tmp/out";;
30982 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30983 esac \
30984 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30985$as_echo "$as_me: error: could not create $ac_file" >&2;}
f73dda09 30986 { (exit 1); exit 1; }; }
3185942a
JA
30987 ;;
30988 :H)
30989 #
30990 # CONFIG_HEADER
30991 #
f73dda09 30992 if test x"$ac_file" != x-; then
3185942a
JA
30993 {
30994 $as_echo "/* $configure_input */" \
30995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30996 } >"$tmp/config.h" \
30997 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30998$as_echo "$as_me: error: could not create $ac_file" >&2;}
30999 { (exit 1); exit 1; }; }
31000 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31001 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31002$as_echo "$as_me: $ac_file is unchanged" >&6;}
f73dda09 31003 else
3185942a
JA
31004 rm -f "$ac_file"
31005 mv "$tmp/config.h" "$ac_file" \
31006 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31007$as_echo "$as_me: error: could not create $ac_file" >&2;}
31008 { (exit 1); exit 1; }; }
ccc6cda3 31009 fi
f73dda09 31010 else
3185942a
JA
31011 $as_echo "/* $configure_input */" \
31012 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31013 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31014$as_echo "$as_me: error: could not create -" >&2;}
31015 { (exit 1); exit 1; }; }
ccc6cda3 31016 fi
3185942a 31017 ;;
0628567a 31018
3185942a
JA
31019 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31020$as_echo "$as_me: executing $ac_file commands" >&6;}
31021 ;;
31022 esac
b80f6443 31023
ccc6cda3 31024
3185942a
JA
31025 case $ac_file$ac_mode in
31026 "default-1":C)
b80f6443
JA
31027 for ac_file in $CONFIG_FILES; do
31028 # Support "outfile[:infile[:infile...]]"
31029 case "$ac_file" in
31030 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31031 esac
31032 # PO directories have a Makefile.in generated from Makefile.in.in.
31033 case "$ac_file" in */Makefile.in)
31034 # Adjust a relative srcdir.
31035 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31036 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31037 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31038 # In autoconf-2.13 it is called $ac_given_srcdir.
31039 # In autoconf-2.50 it is called $srcdir.
31040 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31041 case "$ac_given_srcdir" in
31042 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31043 /*) top_srcdir="$ac_given_srcdir" ;;
31044 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31045 esac
31046 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31047 rm -f "$ac_dir/POTFILES"
31048 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31049 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31050 POMAKEFILEDEPS="POTFILES.in"
31051 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
31052 # on $ac_dir but don't depend on user-specified configuration
31053 # parameters.
31054 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31055 # The LINGUAS file contains the set of available languages.
31056 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31057 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31058 fi
31059 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31060 # Hide the ALL_LINGUAS assigment from automake.
31061 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31062 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31063 else
31064 # The set of available languages was given in configure.in.
31065 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31066 fi
31067 case "$ac_given_srcdir" in
31068 .) srcdirpre= ;;
31069 *) srcdirpre='$(srcdir)/' ;;
31070 esac
31071 POFILES=
31072 GMOFILES=
31073 UPDATEPOFILES=
31074 DUMMYPOFILES=
31075 for lang in $ALL_LINGUAS; do
31076 POFILES="$POFILES $srcdirpre$lang.po"
31077 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31078 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31079 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31080 done
31081 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31082 # environment variable.
31083 INST_LINGUAS=
31084 if test -n "$ALL_LINGUAS"; then
31085 for presentlang in $ALL_LINGUAS; do
31086 useit=no
31087 if test "%UNSET%" != "$LINGUAS"; then
31088 desiredlanguages="$LINGUAS"
31089 else
31090 desiredlanguages="$ALL_LINGUAS"
31091 fi
31092 for desiredlang in $desiredlanguages; do
31093 # Use the presentlang catalog if desiredlang is
31094 # a. equal to presentlang, or
31095 # b. a variant of presentlang (because in this case,
31096 # presentlang can be used as a fallback for messages
31097 # which are not translated in the desiredlang catalog).
31098 case "$desiredlang" in
31099 "$presentlang"*) useit=yes;;
31100 esac
31101 done
31102 if test $useit = yes; then
31103 INST_LINGUAS="$INST_LINGUAS $presentlang"
31104 fi
31105 done
31106 fi
31107 CATALOGS=
31108 if test -n "$INST_LINGUAS"; then
31109 for lang in $INST_LINGUAS; do
31110 CATALOGS="$CATALOGS $lang.gmo"
31111 done
31112 fi
31113 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31114 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"
31115 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31116 if test -f "$f"; then
31117 case "$f" in
31118 *.orig | *.bak | *~) ;;
31119 *) cat "$f" >> "$ac_dir/Makefile" ;;
31120 esac
31121 fi
31122 done
31123 fi
31124 ;;
31125 esac
31126 done ;;
3185942a 31127 "default":C)
ccc6cda3
JA
31128# Makefile uses this timestamp file to record whether config.h is up to date.
31129echo timestamp > stamp-h
f73dda09 31130 ;;
3185942a 31131
f73dda09 31132 esac
3185942a 31133done # for ac_tag
ccc6cda3 31134
f73dda09
JA
31135
31136{ (exit 0); exit 0; }
b80f6443 31137_ACEOF
ccc6cda3 31138chmod +x $CONFIG_STATUS
f73dda09
JA
31139ac_clean_files=$ac_clean_files_save
31140
3185942a
JA
31141test $ac_write_fail = 0 ||
31142 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31143$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31144 { (exit 1); exit 1; }; }
31145
b80f6443 31146
f73dda09
JA
31147# configure is writing to config.log, and then calls config.status.
31148# config.status does its own redirection, appending to config.log.
31149# Unfortunately, on DOS this fails, as config.log is still kept open
31150# by configure, so config.status won't be able to write to it; its
31151# output is simply discarded. So we exec the FD to /dev/null,
31152# effectively closing config.log, so it can be properly (re)opened and
31153# appended to by config.status. When coming back to configure, we
31154# need to make the FD available again.
31155if test "$no_create" != yes; then
31156 ac_cs_success=:
0628567a
JA
31157 ac_config_status_args=
31158 test "$silent" = yes &&
31159 ac_config_status_args="$ac_config_status_args --quiet"
f73dda09 31160 exec 5>/dev/null
0628567a 31161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f73dda09
JA
31162 exec 5>>config.log
31163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31164 # would make configure fail if this is the last instruction.
31165 $ac_cs_success || { (exit 1); exit 1; }
31166fi
3185942a
JA
31167if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31168 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31169$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31170fi
ccc6cda3 31171