commit bash-20051123 snapshot
[platform/upstream/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 3.1, version 3.182.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for bash 3.1-rc2.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='bash'
272 PACKAGE_TARNAME='bash'
273 PACKAGE_VERSION='3.1-rc2'
274 PACKAGE_STRING='bash 3.1-rc2'
275 PACKAGE_BUGREPORT='bug-bash@gnu.org'
276
277 ac_unique_file="shell.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILE SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR TILDE_LIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
757 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
758 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
759 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
760 ac_env_CC_set=${CC+set}
761 ac_env_CC_value=$CC
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures bash 3.1-rc2 to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 System types:
842   --build=BUILD     configure for building on BUILD [guessed]
843   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of bash 3.1-rc2:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --enable-minimal-config a minimal sh-like configuration
857   --enable-alias          enable shell aliases
858   --enable-arith-for-command
859                           enable arithmetic for command
860   --enable-array-variables
861                           include shell array variables
862   --enable-bang-history   turn on csh-style history substitution
863   --enable-brace-expansion
864                           include brace expansion
865   --enable-command-timing enable the time reserved word and command timing
866   --enable-cond-command   enable the conditional command
867   --enable-cond-regexp    enable extgended regular expression matching in
868                           conditional commands
869   --enable-debugger       enable support for bash debugger
870   --enable-directory-stack
871                           enable builtins pushd/popd/dirs
872   --enable-disabled-builtins
873                           allow disabled builtins to still be invoked
874   --enable-dparen-arithmetic
875                           include ((...)) command
876   --enable-extended-glob  include ksh-style extended pattern matching
877   --enable-help-builtin   include the help builtin
878   --enable-history        turn on command history
879   --enable-job-control    enable job control features
880   --enable-multibyte      enable multibyte characters if OS supports them
881   --enable-net-redirections
882                           enable /dev/tcp/host/port redirection
883   --enable-process-substitution
884                           enable process substitution
885   --enable-progcomp       enable programmable completion and the complete
886                           builtin
887   --enable-prompt-string-decoding
888                           turn on escape character decoding in prompts
889   --enable-readline       turn on command line editing
890   --enable-restricted     enable a restricted shell
891   --enable-select         include select command
892   --enable-separate-helpfiles
893                           use external files for help builtin documentation
894   --enable-single-help-strings
895                           store help documentation as a single string to ease
896                           translation
897   --enable-strict-posix-default
898                           configure bash to be posix-conformant by default
899   --enable-usg-echo-default
900                           a synonym for --enable-xpg-echo-default
901   --enable-xpg-echo-default
902                           make the echo builtin expand escape sequences by
903                           default
904   --enable-mem-scramble   scramble memory on calls to malloc and free
905   --enable-profiling      allow profiling with gprof
906   --enable-static-link    link bash statically, for use as a root shell
907   --disable-largefile     omit support for large files
908   --disable-nls           do not use Native Language Support
909   --disable-rpath         do not hardcode runtime library paths
910
911 Optional Packages:
912   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
913   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
914   --with-lispdir          override the default lisp directory
915   --with-afs              if you are running AFS
916   --with-bash-malloc      use the Bash version of malloc
917   --with-curses           use the curses library instead of the termcap
918                           library
919   --with-gnu-malloc       synonym for --with-bash-malloc
920   --with-installed-readline
921                           use a version of the readline library that is
922                           already installed
923   --with-purecov          configure to postprocess with pure coverage
924   --with-purify           configure to postprocess with purify
925   --with-gnu-ld           assume the C compiler uses GNU ld default=no
926   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
927   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
928   --with-included-gettext use the GNU gettext library included here
929   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
930   --without-libintl-prefix     don't search for libintl in includedir and libdir
931
932 Some influential environment variables:
933   DEBUGGER_START_FILE
934               location of bash debugger initialization file
935   CC          C compiler command
936   CFLAGS      C compiler flags
937   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
938               nonstandard directory <lib dir>
939   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
940               headers in a nonstandard directory <include dir>
941   CPP         C preprocessor
942
943 Use these variables to override the choices made by `configure' or to help
944 it to find libraries and programs with nonstandard names/locations.
945
946 Report bugs to <bug-bash@gnu.org>.
947 _ACEOF
948 fi
949
950 if test "$ac_init_help" = "recursive"; then
951   # If there are subdirs, report their specific --help.
952   ac_popdir=`pwd`
953   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954     test -d $ac_dir || continue
955     ac_builddir=.
956
957 if test "$ac_dir" != .; then
958   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959   # A "../" for each directory in $ac_dir_suffix.
960   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962   ac_dir_suffix= ac_top_builddir=
963 fi
964
965 case $srcdir in
966   .)  # No --srcdir option.  We are building in place.
967     ac_srcdir=.
968     if test -z "$ac_top_builddir"; then
969        ac_top_srcdir=.
970     else
971        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972     fi ;;
973   [\\/]* | ?:[\\/]* )  # Absolute path.
974     ac_srcdir=$srcdir$ac_dir_suffix;
975     ac_top_srcdir=$srcdir ;;
976   *) # Relative path.
977     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978     ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
980
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
985 *)
986   case "$ac_dir" in
987   .) ac_abs_builddir=`pwd`;;
988   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989   *) ac_abs_builddir=`pwd`/"$ac_dir";;
990   esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *)
995   case ${ac_top_builddir}. in
996   .) ac_abs_top_builddir=$ac_abs_builddir;;
997   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999   esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1003 *)
1004   case $ac_srcdir in
1005   .) ac_abs_srcdir=$ac_abs_builddir;;
1006   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008   esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *)
1013   case $ac_top_srcdir in
1014   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017   esac;;
1018 esac
1019
1020     cd $ac_dir
1021     # Check for guested configure; otherwise get Cygnus style configure.
1022     if test -f $ac_srcdir/configure.gnu; then
1023       echo
1024       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1025     elif test -f $ac_srcdir/configure; then
1026       echo
1027       $SHELL $ac_srcdir/configure  --help=recursive
1028     elif test -f $ac_srcdir/configure.ac ||
1029            test -f $ac_srcdir/configure.in; then
1030       echo
1031       $ac_configure --help
1032     else
1033       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034     fi
1035     cd $ac_popdir
1036   done
1037 fi
1038
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041   cat <<\_ACEOF
1042 bash configure 3.1-rc2
1043 generated by GNU Autoconf 2.59
1044
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1048 _ACEOF
1049   exit 0
1050 fi
1051 exec 5>config.log
1052 cat >&5 <<_ACEOF
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1055
1056 It was created by bash $as_me 3.1-rc2, which was
1057 generated by GNU Autoconf 2.59.  Invocation command line was
1058
1059   $ $0 $@
1060
1061 _ACEOF
1062 {
1063 cat <<_ASUNAME
1064 ## --------- ##
1065 ## Platform. ##
1066 ## --------- ##
1067
1068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073
1074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1076
1077 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1078 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1081 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1082 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1083 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1084
1085 _ASUNAME
1086
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1088 for as_dir in $PATH
1089 do
1090   IFS=$as_save_IFS
1091   test -z "$as_dir" && as_dir=.
1092   echo "PATH: $as_dir"
1093 done
1094
1095 } >&5
1096
1097 cat >&5 <<_ACEOF
1098
1099
1100 ## ----------- ##
1101 ## Core tests. ##
1102 ## ----------- ##
1103
1104 _ACEOF
1105
1106
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_configure_args=
1113 ac_configure_args0=
1114 ac_configure_args1=
1115 ac_sep=
1116 ac_must_keep_next=false
1117 for ac_pass in 1 2
1118 do
1119   for ac_arg
1120   do
1121     case $ac_arg in
1122     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124     | -silent | --silent | --silen | --sile | --sil)
1125       continue ;;
1126     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1128     esac
1129     case $ac_pass in
1130     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131     2)
1132       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133       if test $ac_must_keep_next = true; then
1134         ac_must_keep_next=false # Got value, back to normal.
1135       else
1136         case $ac_arg in
1137           *=* | --config-cache | -C | -disable-* | --disable-* \
1138           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140           | -with-* | --with-* | -without-* | --without-* | --x)
1141             case "$ac_configure_args0 " in
1142               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143             esac
1144             ;;
1145           -* ) ac_must_keep_next=true ;;
1146         esac
1147       fi
1148       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149       # Get rid of the leading space.
1150       ac_sep=" "
1151       ;;
1152     esac
1153   done
1154 done
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log.  We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close' the trap.
1163 trap 'exit_status=$?
1164   # Save into config.log some information that might help in debugging.
1165   {
1166     echo
1167
1168     cat <<\_ASBOX
1169 ## ---------------- ##
1170 ## Cache variables. ##
1171 ## ---------------- ##
1172 _ASBOX
1173     echo
1174     # The following way of writing the cache mishandles newlines in values,
1175 {
1176   (set) 2>&1 |
1177     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178     *ac_space=\ *)
1179       sed -n \
1180         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182       ;;
1183     *)
1184       sed -n \
1185         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186       ;;
1187     esac;
1188 }
1189     echo
1190
1191     cat <<\_ASBOX
1192 ## ----------------- ##
1193 ## Output variables. ##
1194 ## ----------------- ##
1195 _ASBOX
1196     echo
1197     for ac_var in $ac_subst_vars
1198     do
1199       eval ac_val=$`echo $ac_var`
1200       echo "$ac_var='"'"'$ac_val'"'"'"
1201     done | sort
1202     echo
1203
1204     if test -n "$ac_subst_files"; then
1205       cat <<\_ASBOX
1206 ## ------------- ##
1207 ## Output files. ##
1208 ## ------------- ##
1209 _ASBOX
1210       echo
1211       for ac_var in $ac_subst_files
1212       do
1213         eval ac_val=$`echo $ac_var`
1214         echo "$ac_var='"'"'$ac_val'"'"'"
1215       done | sort
1216       echo
1217     fi
1218
1219     if test -s confdefs.h; then
1220       cat <<\_ASBOX
1221 ## ----------- ##
1222 ## confdefs.h. ##
1223 ## ----------- ##
1224 _ASBOX
1225       echo
1226       sed "/^$/d" confdefs.h | sort
1227       echo
1228     fi
1229     test "$ac_signal" != 0 &&
1230       echo "$as_me: caught signal $ac_signal"
1231     echo "$as_me: exit $exit_status"
1232   } >&5
1233   rm -f core *.core &&
1234   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1235     exit $exit_status
1236      ' 0
1237 for ac_signal in 1 2 13 15; do
1238   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1239 done
1240 ac_signal=0
1241
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 echo >confdefs.h
1246
1247 # Predefined preprocessor variables.
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_NAME "$PACKAGE_NAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_STRING "$PACKAGE_STRING"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1271 _ACEOF
1272
1273
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277   if test "x$prefix" != xNONE; then
1278     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279   else
1280     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281   fi
1282 fi
1283 for ac_site_file in $CONFIG_SITE; do
1284   if test -r "$ac_site_file"; then
1285     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287     sed 's/^/| /' "$ac_site_file" >&5
1288     . "$ac_site_file"
1289   fi
1290 done
1291
1292 if test -r "$cache_file"; then
1293   # Some versions of bash will fail to source /dev/null (special
1294   # files actually), so we avoid doing that.
1295   if test -f "$cache_file"; then
1296     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1298     case $cache_file in
1299       [\\/]* | ?:[\\/]* ) . $cache_file;;
1300       *)                      . ./$cache_file;;
1301     esac
1302   fi
1303 else
1304   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1306   >$cache_file
1307 fi
1308
1309 # Check that the precious variables saved in the cache have kept the same
1310 # value.
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1314   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315   eval ac_new_set=\$ac_env_${ac_var}_set
1316   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317   eval ac_new_val="\$ac_env_${ac_var}_value"
1318   case $ac_old_set,$ac_new_set in
1319     set,)
1320       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322       ac_cache_corrupted=: ;;
1323     ,set)
1324       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326       ac_cache_corrupted=: ;;
1327     ,);;
1328     *)
1329       if test "x$ac_old_val" != "x$ac_new_val"; then
1330         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1331 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1332         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1333 echo "$as_me:   former value:  $ac_old_val" >&2;}
1334         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1335 echo "$as_me:   current value: $ac_new_val" >&2;}
1336         ac_cache_corrupted=:
1337       fi;;
1338   esac
1339   # Pass precious variables to config.status.
1340   if test "$ac_new_set" = set; then
1341     case $ac_new_val in
1342     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344     *) ac_arg=$ac_var=$ac_new_val ;;
1345     esac
1346     case " $ac_configure_args " in
1347       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1348       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1349     esac
1350   fi
1351 done
1352 if $ac_cache_corrupted; then
1353   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1356 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359
1360 ac_ext=c
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396 ac_aux_dir=
1397 for ac_dir in ./support $srcdir/./support; do
1398   if test -f $ac_dir/install-sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install-sh -c"
1401     break
1402   elif test -f $ac_dir/install.sh; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/install.sh -c"
1405     break
1406   elif test -f $ac_dir/shtool; then
1407     ac_aux_dir=$ac_dir
1408     ac_install_sh="$ac_aux_dir/shtool install -c"
1409     break
1410   fi
1411 done
1412 if test -z "$ac_aux_dir"; then
1413   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1415    { (exit 1); exit 1; }; }
1416 fi
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
1421           ac_config_headers="$ac_config_headers config.h"
1422
1423
1424 BASHVERS=3.1
1425 RELSTATUS=rc2
1426
1427 case "$RELSTATUS" in
1428 alp*|bet*|dev*|rc*)     DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1429 *)      DEBUG= MALLOC_DEBUG= ;;
1430 esac
1431
1432 # Make sure we can run config.sub.
1433 $ac_config_sub sun4 >/dev/null 2>&1 ||
1434   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1435 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1436    { (exit 1); exit 1; }; }
1437
1438 echo "$as_me:$LINENO: checking build system type" >&5
1439 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1440 if test "${ac_cv_build+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   ac_cv_build_alias=$build_alias
1444 test -z "$ac_cv_build_alias" &&
1445   ac_cv_build_alias=`$ac_config_guess`
1446 test -z "$ac_cv_build_alias" &&
1447   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1449    { (exit 1); exit 1; }; }
1450 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1451   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1453    { (exit 1); exit 1; }; }
1454
1455 fi
1456 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1457 echo "${ECHO_T}$ac_cv_build" >&6
1458 build=$ac_cv_build
1459 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462
1463
1464 echo "$as_me:$LINENO: checking host system type" >&5
1465 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1466 if test "${ac_cv_host+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_host_alias=$host_alias
1470 test -z "$ac_cv_host_alias" &&
1471   ac_cv_host_alias=$ac_cv_build_alias
1472 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1473   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1475    { (exit 1); exit 1; }; }
1476
1477 fi
1478 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1479 echo "${ECHO_T}$ac_cv_host" >&6
1480 host=$ac_cv_host
1481 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484
1485
1486
1487 opt_bash_malloc=yes
1488 opt_purify=no
1489 opt_purecov=no
1490 opt_afs=no
1491 opt_curses=no
1492 opt_with_installed_readline=no
1493
1494 #htmldir=
1495
1496 case "${host_cpu}-${host_os}" in
1497 alpha*-*)       opt_bash_malloc=no ;;   # alpha running osf/1 or linux
1498 *[Cc]ray*-*)    opt_bash_malloc=no ;;   # Crays
1499 *-osf1*)        opt_bash_malloc=no ;;   # other osf/1 machines
1500 sparc-svr4*)    opt_bash_malloc=no ;;   # sparc SVR4, SVR4.2
1501 sparc-netbsd*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
1502 mips-irix6*)    opt_bash_malloc=no ;;   # needs 8-byte alignment
1503 m68k-sysv)      opt_bash_malloc=no ;;   # fixes file descriptor leak in closedir
1504 sparc-linux*)   opt_bash_malloc=no ;;   # sparc running linux; requires ELF
1505 #*-freebsd*-gnu)        opt_bash_malloc=no ;;   # there's some undetermined problem here
1506 #*-freebsd*)    opt_bash_malloc=no ;;   # they claim it's better; I disagree
1507 *-openbsd*)     opt_bash_malloc=no ;;   # they claim it needs eight-bit alignment
1508 *-aix*)         opt_bash_malloc=no ;;   # AIX machines
1509 *-nextstep*)    opt_bash_malloc=no ;;   # NeXT machines running NeXTstep
1510 *-macos*)       opt_bash_malloc=no ;;   # Apple MacOS X
1511 *-rhapsody*)    opt_bash_malloc=no ;;   # Apple Rhapsody (MacOS X)
1512 *-darwin*)      opt_bash_malloc=no ;;   # Apple Darwin (MacOS X)
1513 *-dgux*)        opt_bash_malloc=no ;;   # DG/UX machines
1514 *-qnx*)         opt_bash_malloc=no ;;   # QNX 4.2, QNX 6.x
1515 *-machten4)     opt_bash_malloc=no ;;   # MachTen 4.x
1516 *-bsdi2.1|*-bsdi3.?)    opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1517 *-beos*)        opt_bash_malloc=no ;;   # they say it's suitable
1518 *-cygwin*)      opt_bash_malloc=no ;;   # Cygnus's CYGWIN environment
1519 *-opennt*|*-interix*)   opt_bash_malloc=no ;;   # Interix, now owned by Microsoft
1520 esac
1521
1522 # memory scrambling on free()
1523 case "${host_os}" in
1524 sco3.2v5*|sco3.2v4*)    opt_memscramble=no ;;
1525 *)                      opt_memscramble=yes ;;
1526 esac
1527
1528
1529 # Check whether --with-lispdir or --without-lispdir was given.
1530 if test "${with_lispdir+set}" = set; then
1531   withval="$with_lispdir"
1532    lispdir="$withval"
1533     echo "$as_me:$LINENO: checking where .elc files should go" >&5
1534 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1535     echo "$as_me:$LINENO: result: $lispdir" >&5
1536 echo "${ECHO_T}$lispdir" >&6
1537 else
1538
1539   # If set to t, that means we are running in a shell under Emacs.
1540   # If you have an Emacs named "t", then use the full path.
1541   test x"$EMACS" = xt && EMACS=
1542   for ac_prog in emacs xemacs
1543 do
1544   # Extract the first word of "$ac_prog", so it can be a program name with args.
1545 set dummy $ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_EMACS+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   if test -n "$EMACS"; then
1552   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   for ac_exec_ext in '' $ac_executable_extensions; do
1560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561     ac_cv_prog_EMACS="$ac_prog"
1562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563     break 2
1564   fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 EMACS=$ac_cv_prog_EMACS
1571 if test -n "$EMACS"; then
1572   echo "$as_me:$LINENO: result: $EMACS" >&5
1573 echo "${ECHO_T}$EMACS" >&6
1574 else
1575   echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579   test -n "$EMACS" && break
1580 done
1581 test -n "$EMACS" || EMACS="no"
1582
1583   if test $EMACS != "no"; then
1584     if test x${lispdir+set} != xset; then
1585       echo "$as_me:$LINENO: checking where .elc files should go" >&5
1586 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1587 if test "${am_cv_lispdir+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590         am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1591         if test -z "$am_cv_lispdir"; then
1592           am_cv_lispdir='${datadir}/emacs/site-lisp'
1593         fi
1594
1595 fi
1596 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1597 echo "${ECHO_T}$am_cv_lispdir" >&6
1598       lispdir="$am_cv_lispdir"
1599     fi
1600   fi
1601
1602 fi;
1603
1604
1605
1606
1607
1608 # Check whether --with-afs or --without-afs was given.
1609 if test "${with_afs+set}" = set; then
1610   withval="$with_afs"
1611   opt_afs=$withval
1612 fi;
1613
1614 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1615 if test "${with_bash_malloc+set}" = set; then
1616   withval="$with_bash_malloc"
1617   opt_bash_malloc=$withval
1618 fi;
1619
1620 # Check whether --with-curses or --without-curses was given.
1621 if test "${with_curses+set}" = set; then
1622   withval="$with_curses"
1623   opt_curses=$withval
1624 fi;
1625
1626 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1627 if test "${with_gnu_malloc+set}" = set; then
1628   withval="$with_gnu_malloc"
1629   opt_bash_malloc=$withval
1630 fi;
1631
1632 # Check whether --with-installed-readline or --without-installed-readline was given.
1633 if test "${with_installed_readline+set}" = set; then
1634   withval="$with_installed_readline"
1635   opt_with_installed_readline=$withval
1636 fi;
1637
1638 # Check whether --with-purecov or --without-purecov was given.
1639 if test "${with_purecov+set}" = set; then
1640   withval="$with_purecov"
1641   opt_purecov=$withval
1642 fi;
1643
1644 # Check whether --with-purify or --without-purify was given.
1645 if test "${with_purify+set}" = set; then
1646   withval="$with_purify"
1647   opt_purify=$withval
1648 fi;
1649
1650 if test "$opt_bash_malloc" = yes; then
1651         MALLOC_TARGET=malloc
1652         MALLOC_SRC=malloc.c
1653
1654         MALLOC_LIB='-lmalloc'
1655         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1656         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1657         MALLOC_DEP='$(MALLOC_LIBRARY)'
1658
1659         cat >>confdefs.h <<\_ACEOF
1660 #define USING_BASH_MALLOC 1
1661 _ACEOF
1662
1663 else
1664         MALLOC_LIB=
1665         MALLOC_LIBRARY=
1666         MALLOC_LDFLAGS=
1667         MALLOC_DEP=
1668 fi
1669
1670 if test "$opt_purify" = yes; then
1671         PURIFY="purify "
1672         cat >>confdefs.h <<\_ACEOF
1673 #define DISABLE_MALLOC_WRAPPERS 1
1674 _ACEOF
1675
1676 else
1677         PURIFY=
1678 fi
1679
1680 if test "$opt_purecov" = yes; then
1681         PURIFY="${PURIFY}purecov"
1682 fi
1683
1684 if test "$opt_afs" = yes; then
1685         cat >>confdefs.h <<\_ACEOF
1686 #define AFS 1
1687 _ACEOF
1688
1689 fi
1690
1691 if test "$opt_curses" = yes; then
1692         prefer_curses=yes
1693 fi
1694
1695 if test -z "${DEBUGGER_START_FILE}"; then
1696         DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1697 fi
1698
1699 opt_minimal_config=no
1700
1701 opt_job_control=yes
1702 opt_alias=yes
1703 opt_readline=yes
1704 opt_history=yes
1705 opt_bang_history=yes
1706 opt_dirstack=yes
1707 opt_restricted=yes
1708 opt_process_subst=yes
1709 opt_prompt_decoding=yes
1710 opt_select=yes
1711 opt_help=yes
1712 opt_array_variables=yes
1713 opt_dparen_arith=yes
1714 opt_extended_glob=yes
1715 opt_brace_expansion=yes
1716 opt_disabled_builtins=no
1717 opt_command_timing=yes
1718 opt_xpg_echo=no
1719 opt_strict_posix=no
1720 opt_cond_command=yes
1721 opt_cond_regexp=yes
1722 opt_arith_for_command=yes
1723 opt_net_redirs=yes
1724 opt_progcomp=yes
1725 opt_separate_help=no
1726 opt_multibyte=yes
1727 opt_debugger=yes
1728 opt_single_longdoc_strings=yes
1729
1730 opt_static_link=no
1731 opt_profiling=no
1732
1733 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1734 if test "${enable_minimal_config+set}" = set; then
1735   enableval="$enable_minimal_config"
1736   opt_minimal_config=$enableval
1737 fi;
1738
1739 if test $opt_minimal_config = yes; then
1740         opt_job_control=no opt_alias=no opt_readline=no
1741         opt_history=no opt_bang_history=no opt_dirstack=no
1742         opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1743         opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1744         opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1745         opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1746         opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1747         opt_multibyte=yes opt_cond_regexp=no
1748 fi
1749
1750 # Check whether --enable-alias or --disable-alias was given.
1751 if test "${enable_alias+set}" = set; then
1752   enableval="$enable_alias"
1753   opt_alias=$enableval
1754 fi;
1755 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1756 if test "${enable_arith_for_command+set}" = set; then
1757   enableval="$enable_arith_for_command"
1758   opt_arith_for_command=$enableval
1759 fi;
1760 # Check whether --enable-array-variables or --disable-array-variables was given.
1761 if test "${enable_array_variables+set}" = set; then
1762   enableval="$enable_array_variables"
1763   opt_array_variables=$enableval
1764 fi;
1765 # Check whether --enable-bang-history or --disable-bang-history was given.
1766 if test "${enable_bang_history+set}" = set; then
1767   enableval="$enable_bang_history"
1768   opt_bang_history=$enableval
1769 fi;
1770 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1771 if test "${enable_brace_expansion+set}" = set; then
1772   enableval="$enable_brace_expansion"
1773   opt_brace_expansion=$enableval
1774 fi;
1775 # Check whether --enable-command-timing or --disable-command-timing was given.
1776 if test "${enable_command_timing+set}" = set; then
1777   enableval="$enable_command_timing"
1778   opt_command_timing=$enableval
1779 fi;
1780 # Check whether --enable-cond-command or --disable-cond-command was given.
1781 if test "${enable_cond_command+set}" = set; then
1782   enableval="$enable_cond_command"
1783   opt_cond_command=$enableval
1784 fi;
1785 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1786 if test "${enable_cond_regexp+set}" = set; then
1787   enableval="$enable_cond_regexp"
1788   opt_cond_regexp=$enableval
1789 fi;
1790 # Check whether --enable-debugger or --disable-debugger was given.
1791 if test "${enable_debugger+set}" = set; then
1792   enableval="$enable_debugger"
1793   opt_debugger=$enableval
1794 fi;
1795 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1796 if test "${enable_directory_stack+set}" = set; then
1797   enableval="$enable_directory_stack"
1798   opt_dirstack=$enableval
1799 fi;
1800 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1801 if test "${enable_disabled_builtins+set}" = set; then
1802   enableval="$enable_disabled_builtins"
1803   opt_disabled_builtins=$enableval
1804 fi;
1805 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1806 if test "${enable_dparen_arithmetic+set}" = set; then
1807   enableval="$enable_dparen_arithmetic"
1808   opt_dparen_arith=$enableval
1809 fi;
1810 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1811 if test "${enable_extended_glob+set}" = set; then
1812   enableval="$enable_extended_glob"
1813   opt_extended_glob=$enableval
1814 fi;
1815 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1816 if test "${enable_help_builtin+set}" = set; then
1817   enableval="$enable_help_builtin"
1818   opt_help=$enableval
1819 fi;
1820 # Check whether --enable-history or --disable-history was given.
1821 if test "${enable_history+set}" = set; then
1822   enableval="$enable_history"
1823   opt_history=$enableval
1824 fi;
1825 # Check whether --enable-job-control or --disable-job-control was given.
1826 if test "${enable_job_control+set}" = set; then
1827   enableval="$enable_job_control"
1828   opt_job_control=$enableval
1829 fi;
1830 # Check whether --enable-multibyte or --disable-multibyte was given.
1831 if test "${enable_multibyte+set}" = set; then
1832   enableval="$enable_multibyte"
1833   opt_multibyte=$enableval
1834 fi;
1835 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1836 if test "${enable_net_redirections+set}" = set; then
1837   enableval="$enable_net_redirections"
1838   opt_net_redirs=$enableval
1839 fi;
1840 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1841 if test "${enable_process_substitution+set}" = set; then
1842   enableval="$enable_process_substitution"
1843   opt_process_subst=$enableval
1844 fi;
1845 # Check whether --enable-progcomp or --disable-progcomp was given.
1846 if test "${enable_progcomp+set}" = set; then
1847   enableval="$enable_progcomp"
1848   opt_progcomp=$enableval
1849 fi;
1850 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1851 if test "${enable_prompt_string_decoding+set}" = set; then
1852   enableval="$enable_prompt_string_decoding"
1853   opt_prompt_decoding=$enableval
1854 fi;
1855 # Check whether --enable-readline or --disable-readline was given.
1856 if test "${enable_readline+set}" = set; then
1857   enableval="$enable_readline"
1858   opt_readline=$enableval
1859 fi;
1860 # Check whether --enable-restricted or --disable-restricted was given.
1861 if test "${enable_restricted+set}" = set; then
1862   enableval="$enable_restricted"
1863   opt_restricted=$enableval
1864 fi;
1865 # Check whether --enable-select or --disable-select was given.
1866 if test "${enable_select+set}" = set; then
1867   enableval="$enable_select"
1868   opt_select=$enableval
1869 fi;
1870 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1871 if test "${enable_separate_helpfiles+set}" = set; then
1872   enableval="$enable_separate_helpfiles"
1873   opt_separate_help=$enableval
1874 fi;
1875 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1876 if test "${enable_single_help_strings+set}" = set; then
1877   enableval="$enable_single_help_strings"
1878   opt_single_longdoc_strings=$enableval
1879 fi;
1880 # Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1881 if test "${enable_strict_posix_default+set}" = set; then
1882   enableval="$enable_strict_posix_default"
1883   opt_strict_posix=$enableval
1884 fi;
1885 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1886 if test "${enable_usg_echo_default+set}" = set; then
1887   enableval="$enable_usg_echo_default"
1888   opt_xpg_echo=$enableval
1889 fi;
1890 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1891 if test "${enable_xpg_echo_default+set}" = set; then
1892   enableval="$enable_xpg_echo_default"
1893   opt_xpg_echo=$enableval
1894 fi;
1895
1896 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1897 if test "${enable_mem_scramble+set}" = set; then
1898   enableval="$enable_mem_scramble"
1899   opt_memscramble=$enableval
1900 fi;
1901 # Check whether --enable-profiling or --disable-profiling was given.
1902 if test "${enable_profiling+set}" = set; then
1903   enableval="$enable_profiling"
1904   opt_profiling=$enableval
1905 fi;
1906 # Check whether --enable-static-link or --disable-static-link was given.
1907 if test "${enable_static_link+set}" = set; then
1908   enableval="$enable_static_link"
1909   opt_static_link=$enableval
1910 fi;
1911
1912
1913
1914 if test $opt_alias = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1916 #define ALIAS 1
1917 _ACEOF
1918
1919 fi
1920 if test $opt_dirstack = yes; then
1921 cat >>confdefs.h <<\_ACEOF
1922 #define PUSHD_AND_POPD 1
1923 _ACEOF
1924
1925 fi
1926 if test $opt_restricted = yes; then
1927 cat >>confdefs.h <<\_ACEOF
1928 #define RESTRICTED_SHELL 1
1929 _ACEOF
1930
1931 fi
1932 if test $opt_process_subst = yes; then
1933 cat >>confdefs.h <<\_ACEOF
1934 #define PROCESS_SUBSTITUTION 1
1935 _ACEOF
1936
1937 fi
1938 if test $opt_prompt_decoding = yes; then
1939 cat >>confdefs.h <<\_ACEOF
1940 #define PROMPT_STRING_DECODE 1
1941 _ACEOF
1942
1943 fi
1944 if test $opt_select = yes; then
1945 cat >>confdefs.h <<\_ACEOF
1946 #define SELECT_COMMAND 1
1947 _ACEOF
1948
1949 fi
1950 if test $opt_help = yes; then
1951 cat >>confdefs.h <<\_ACEOF
1952 #define HELP_BUILTIN 1
1953 _ACEOF
1954
1955 fi
1956 if test $opt_array_variables = yes; then
1957 cat >>confdefs.h <<\_ACEOF
1958 #define ARRAY_VARS 1
1959 _ACEOF
1960
1961 fi
1962 if test $opt_dparen_arith = yes; then
1963 cat >>confdefs.h <<\_ACEOF
1964 #define DPAREN_ARITHMETIC 1
1965 _ACEOF
1966
1967 fi
1968 if test $opt_brace_expansion = yes; then
1969 cat >>confdefs.h <<\_ACEOF
1970 #define BRACE_EXPANSION 1
1971 _ACEOF
1972
1973 fi
1974 if test $opt_disabled_builtins = yes; then
1975 cat >>confdefs.h <<\_ACEOF
1976 #define DISABLED_BUILTINS 1
1977 _ACEOF
1978
1979 fi
1980 if test $opt_command_timing = yes; then
1981 cat >>confdefs.h <<\_ACEOF
1982 #define COMMAND_TIMING 1
1983 _ACEOF
1984
1985 fi
1986 if test $opt_xpg_echo = yes ; then
1987 cat >>confdefs.h <<\_ACEOF
1988 #define DEFAULT_ECHO_TO_XPG 1
1989 _ACEOF
1990
1991 fi
1992 if test $opt_strict_posix = yes; then
1993 cat >>confdefs.h <<\_ACEOF
1994 #define STRICT_POSIX 1
1995 _ACEOF
1996
1997 fi
1998 if test $opt_extended_glob = yes ; then
1999 cat >>confdefs.h <<\_ACEOF
2000 #define EXTENDED_GLOB 1
2001 _ACEOF
2002
2003 fi
2004 if test $opt_cond_command = yes ; then
2005 cat >>confdefs.h <<\_ACEOF
2006 #define COND_COMMAND 1
2007 _ACEOF
2008
2009 fi
2010 if test $opt_cond_regexp = yes ; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define COND_REGEXP 1
2013 _ACEOF
2014
2015 fi
2016 if test $opt_arith_for_command = yes; then
2017 cat >>confdefs.h <<\_ACEOF
2018 #define ARITH_FOR_COMMAND 1
2019 _ACEOF
2020
2021 fi
2022 if test $opt_net_redirs = yes; then
2023 cat >>confdefs.h <<\_ACEOF
2024 #define NETWORK_REDIRECTIONS 1
2025 _ACEOF
2026
2027 fi
2028 if test $opt_progcomp = yes; then
2029 cat >>confdefs.h <<\_ACEOF
2030 #define PROGRAMMABLE_COMPLETION 1
2031 _ACEOF
2032
2033 fi
2034 if test $opt_multibyte = no; then
2035 cat >>confdefs.h <<\_ACEOF
2036 #define NO_MULTIBYTE_SUPPORT 1
2037 _ACEOF
2038
2039 fi
2040 if test $opt_debugger = yes; then
2041 cat >>confdefs.h <<\_ACEOF
2042 #define DEBUGGER 1
2043 _ACEOF
2044
2045 fi
2046
2047 if test $opt_memscramble = yes; then
2048 cat >>confdefs.h <<\_ACEOF
2049 #define MEMSCRAMBLE 1
2050 _ACEOF
2051
2052 fi
2053
2054 if test "$opt_minimal_config" = yes; then
2055         TESTSCRIPT=run-minimal
2056 else
2057         TESTSCRIPT=run-all
2058 fi
2059
2060 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2061 if test "$opt_separate_help" != no; then
2062         if test "$opt_separate_help" = "yes" ; then
2063                 HELPDIR='${datadir}/bash'
2064         else
2065                 HELPDIR=$opt_separate_help
2066         fi
2067         HELPDIRDEFINE='-H ${HELPDIR}'
2068         HELPINSTALL='install-help'
2069 fi
2070 HELPSTRINGS=
2071 if test "$opt_single_longdoc_strings" != "yes"; then
2072         HELPSTRINGS='-S'
2073 fi
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092 echo ""
2093 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2094 echo ""
2095
2096 ac_ext=c
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test -n "$CC"; then
2110   ac_cv_prog_CC="$CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115   IFS=$as_save_IFS
2116   test -z "$as_dir" && as_dir=.
2117   for ac_exec_ext in '' $ac_executable_extensions; do
2118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121     break 2
2122   fi
2123 done
2124 done
2125
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130   echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6
2132 else
2133   echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2135 fi
2136
2137 fi
2138 if test -z "$ac_cv_prog_CC"; then
2139   ac_ct_CC=$CC
2140   # Extract the first word of "gcc", so it can be a program name with args.
2141 set dummy gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$ac_ct_CC"; then
2148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_ac_ct_CC="gcc"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175   CC=$ac_ct_CC
2176 else
2177   CC="$ac_cv_prog_CC"
2178 fi
2179
2180 if test -z "$CC"; then
2181   if test -n "$ac_tool_prefix"; then
2182   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2183 set dummy ${ac_tool_prefix}cc; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$CC"; then
2190   ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_CC="${ac_tool_prefix}cc"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210   echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217 fi
2218 if test -z "$ac_cv_prog_CC"; then
2219   ac_ct_CC=$CC
2220   # Extract the first word of "cc", so it can be a program name with args.
2221 set dummy cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   if test -n "$ac_ct_CC"; then
2228   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237     ac_cv_prog_ac_ct_CC="cc"
2238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243
2244 fi
2245 fi
2246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247 if test -n "$ac_ct_CC"; then
2248   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2249 echo "${ECHO_T}$ac_ct_CC" >&6
2250 else
2251   echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255   CC=$ac_ct_CC
2256 else
2257   CC="$ac_cv_prog_CC"
2258 fi
2259
2260 fi
2261 if test -z "$CC"; then
2262   # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$CC"; then
2270   ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272   ac_prog_rejected=no
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281        ac_prog_rejected=yes
2282        continue
2283      fi
2284     ac_cv_prog_CC="cc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290
2291 if test $ac_prog_rejected = yes; then
2292   # We found a bogon in the path, so make sure we never use it.
2293   set dummy $ac_cv_prog_CC
2294   shift
2295   if test $# != 0; then
2296     # We chose a different compiler from the bogus one.
2297     # However, it has the same basename, so the bogon will be chosen
2298     # first if we set CC to just the basename; use the full file name.
2299     shift
2300     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2301   fi
2302 fi
2303 fi
2304 fi
2305 CC=$ac_cv_prog_CC
2306 if test -n "$CC"; then
2307   echo "$as_me:$LINENO: result: $CC" >&5
2308 echo "${ECHO_T}$CC" >&6
2309 else
2310   echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2312 fi
2313
2314 fi
2315 if test -z "$CC"; then
2316   if test -n "$ac_tool_prefix"; then
2317   for ac_prog in cl
2318   do
2319     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   if test -n "$CC"; then
2327   ac_cv_prog_CC="$CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347   echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2349 else
2350   echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354     test -n "$CC" && break
2355   done
2356 fi
2357 if test -z "$CC"; then
2358   ac_ct_CC=$CC
2359   for ac_prog in cl
2360 do
2361   # Extract the first word of "$ac_prog", so it can be a program name with args.
2362 set dummy $ac_prog; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   if test -n "$ac_ct_CC"; then
2369   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376   for ac_exec_ext in '' $ac_executable_extensions; do
2377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378     ac_cv_prog_ac_ct_CC="$ac_prog"
2379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384
2385 fi
2386 fi
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6
2391 else
2392   echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2394 fi
2395
2396   test -n "$ac_ct_CC" && break
2397 done
2398
2399   CC=$ac_ct_CC
2400 fi
2401
2402 fi
2403
2404
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409    { (exit 1); exit 1; }; }
2410
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO:" \
2413      "checking for C compiler version" >&5
2414 ac_compiler=`set X $ac_compile; echo $2`
2415 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2416   (eval $ac_compiler --version </dev/null >&5) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }
2420 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2421   (eval $ac_compiler -v </dev/null >&5) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2426   (eval $ac_compiler -V </dev/null >&5) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }
2430
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437
2438 int
2439 main ()
2440 {
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 ac_clean_files_save=$ac_clean_files
2447 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2448 # Try to create an executable without -o first, disregard a.out.
2449 # It will help us diagnose broken compilers, and finding out an intuition
2450 # of exeext.
2451 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2452 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2453 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2455   (eval $ac_link_default) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; then
2459   # Find the output, starting from the most likely.  This scheme is
2460 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2461 # resort.
2462
2463 # Be careful to initialize this variable, since it used to be cached.
2464 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2465 ac_cv_exeext=
2466 # b.out is created by i960 compilers.
2467 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2468 do
2469   test -f "$ac_file" || continue
2470   case $ac_file in
2471     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2472         ;;
2473     conftest.$ac_ext )
2474         # This is the source file.
2475         ;;
2476     [ab].out )
2477         # We found the default executable, but exeext='' is most
2478         # certainly right.
2479         break;;
2480     *.* )
2481         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482         # FIXME: I believe we export ac_cv_exeext for Libtool,
2483         # but it would be cool to find out if it's true.  Does anybody
2484         # maintain Libtool? --akim.
2485         export ac_cv_exeext
2486         break;;
2487     * )
2488         break;;
2489   esac
2490 done
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: C compiler cannot create executables
2498 See \`config.log' for more details." >&2;}
2499    { (exit 77); exit 77; }; }
2500 fi
2501
2502 ac_exeext=$ac_cv_exeext
2503 echo "$as_me:$LINENO: result: $ac_file" >&5
2504 echo "${ECHO_T}$ac_file" >&6
2505
2506 # Check the compiler produces executables we can run.  If not, either
2507 # the compiler is broken, or we cross compile.
2508 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2509 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2510 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2511 # If not cross compiling, check that we can run a simple program.
2512 if test "$cross_compiling" != yes; then
2513   if { ac_try='./$ac_file'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519     cross_compiling=no
2520   else
2521     if test "$cross_compiling" = maybe; then
2522         cross_compiling=yes
2523     else
2524         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531     fi
2532   fi
2533 fi
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2536
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check the compiler produces executables we can run.  If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2545
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549   (eval $ac_link) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; then
2553   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2556 # `rm'.
2557 for ac_file in conftest.exe conftest conftest.*; do
2558   test -f "$ac_file" || continue
2559   case $ac_file in
2560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2561     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562           export ac_cv_exeext
2563           break;;
2564     * ) break;;
2565   esac
2566 done
2567 else
2568   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573 fi
2574
2575 rm -f conftest$ac_cv_exeext
2576 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2577 echo "${ECHO_T}$ac_cv_exeext" >&6
2578
2579 rm -f conftest.$ac_ext
2580 EXEEXT=$ac_cv_exeext
2581 ac_exeext=$EXEEXT
2582 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2583 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2584 if test "${ac_cv_objext+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   cat >conftest.$ac_ext <<_ACEOF
2588 /* confdefs.h.  */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h.  */
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.o conftest.obj
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604   (eval $ac_compile) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; then
2608   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2609   case $ac_file in
2610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2611     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612        break;;
2613   esac
2614 done
2615 else
2616   echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2618
2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&2;}
2623    { (exit 1); exit 1; }; }
2624 fi
2625
2626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2627 fi
2628 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629 echo "${ECHO_T}$ac_cv_objext" >&6
2630 OBJEXT=$ac_cv_objext
2631 ac_objext=$OBJEXT
2632 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643
2644 int
2645 main ()
2646 {
2647 #ifndef __GNUC__
2648        choke me
2649 #endif
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_compiler_gnu=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_compiler_gnu=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690 GCC=`test $ac_compiler_gnu = yes && echo yes`
2691 ac_test_CFLAGS=${CFLAGS+set}
2692 ac_save_CFLAGS=$CFLAGS
2693 CFLAGS="-g"
2694 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_g+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>conftest.er1
2717   ac_status=$?
2718   grep -v '^ *+' conftest.er1 >conftest.err
2719   rm -f conftest.er1
2720   cat conftest.err >&5
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -z "$ac_c_werror_flag"
2724                          || test ! -s conftest.err'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; } &&
2730          { ac_try='test -s conftest.$ac_objext'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; }; then
2736   ac_cv_prog_cc_g=yes
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 ac_cv_prog_cc_g=no
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747 if test "$ac_test_CFLAGS" = set; then
2748   CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750   if test "$GCC" = yes; then
2751     CFLAGS="-g -O2"
2752   else
2753     CFLAGS="-g"
2754   fi
2755 else
2756   if test "$GCC" = yes; then
2757     CFLAGS="-O2"
2758   else
2759     CFLAGS=
2760   fi
2761 fi
2762 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   ac_cv_prog_cc_stdc=no
2768 ac_save_CC=$CC
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783      char **p;
2784      int i;
2785 {
2786   return p[i];
2787 }
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2789 {
2790   char *s;
2791   va_list v;
2792   va_start (v,p);
2793   s = g (p, va_arg (v,int));
2794   va_end (v);
2795   return s;
2796 }
2797
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2799    function prototypes and stuff, but not '\xHH' hex character constants.
2800    These don't provoke an error unfortunately, instead are silently treated
2801    as 'x'.  The following induces an error, until -std1 is added to get
2802    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2803    array size at least.  It's necessary to write '\x00'==0 to get something
2804    that's true only with -std1.  */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811 int argc;
2812 char **argv;
2813 int
2814 main ()
2815 {
2816 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX                   -qlanglvl=ansi
2824 # Ultrix and OSF/1      -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2827 # SVR4                  -Xc -D__EXTENSIONS__
2828 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 do
2830   CC="$ac_save_CC $ac_arg"
2831   rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833   (eval $ac_compile) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840          { ac_try='test -z "$ac_c_werror_flag"
2841                          || test ! -s conftest.err'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; } &&
2847          { ac_try='test -s conftest.$ac_objext'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853   ac_cv_prog_cc_stdc=$ac_arg
2854 break
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.err conftest.$ac_objext
2861 done
2862 rm -f conftest.$ac_ext conftest.$ac_objext
2863 CC=$ac_save_CC
2864
2865 fi
2866
2867 case "x$ac_cv_prog_cc_stdc" in
2868   x|xno)
2869     echo "$as_me:$LINENO: result: none needed" >&5
2870 echo "${ECHO_T}none needed" >&6 ;;
2871   *)
2872     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874     CC="$CC $ac_cv_prog_cc_stdc" ;;
2875 esac
2876
2877 # Some people use a C++ compiler to compile C.  Since we use `exit',
2878 # in C++ we need to declare it.  In case someone uses the same compiler
2879 # for both compiling C and C++ we need to have the C++ compiler decide
2880 # the declaration of exit, since it's the most demanding environment.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #ifndef __cplusplus
2883   choke me
2884 #endif
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888   (eval $ac_compile) 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } &&
2895          { ac_try='test -z "$ac_c_werror_flag"
2896                          || test ! -s conftest.err'
2897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898   (eval $ac_try) 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }; } &&
2902          { ac_try='test -s conftest.$ac_objext'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; }; then
2908   for ac_declaration in \
2909    '' \
2910    'extern "C" void std::exit (int) throw (); using std::exit;' \
2911    'extern "C" void std::exit (int); using std::exit;' \
2912    'extern "C" void exit (int) throw ();' \
2913    'extern "C" void exit (int);' \
2914    'void exit (int);'
2915 do
2916   cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922 $ac_declaration
2923 #include <stdlib.h>
2924 int
2925 main ()
2926 {
2927 exit (42);
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934   (eval $ac_compile) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } &&
2941          { ac_try='test -z "$ac_c_werror_flag"
2942                          || test ! -s conftest.err'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; } &&
2948          { ac_try='test -s conftest.$ac_objext'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; }; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 continue
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962   cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h.  */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h.  */
2968 $ac_declaration
2969 int
2970 main ()
2971 {
2972 exit (42);
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979   (eval $ac_compile) 2>conftest.er1
2980   ac_status=$?
2981   grep -v '^ *+' conftest.er1 >conftest.err
2982   rm -f conftest.er1
2983   cat conftest.err >&5
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } &&
2986          { ac_try='test -z "$ac_c_werror_flag"
2987                          || test ! -s conftest.err'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995   (eval $ac_try) 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; }; then
2999   break
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 fi
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 done
3007 rm -f conftest*
3008 if test -n "$ac_declaration"; then
3009   echo '#ifdef __cplusplus' >>confdefs.h
3010   echo $ac_declaration      >>confdefs.h
3011   echo '#endif'             >>confdefs.h
3012 fi
3013
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 fi
3019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026
3027
3028
3029         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_check_lib_save_LIBS=$LIBS
3035 LIBS="-lcposix  $LIBS"
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042
3043 /* Override any gcc2 internal prototype to avoid an error.  */
3044 #ifdef __cplusplus
3045 extern "C"
3046 #endif
3047 /* We use char because int might match the return type of a gcc2
3048    builtin and then its argument prototype would still apply.  */
3049 char strerror ();
3050 int
3051 main ()
3052 {
3053 strerror ();
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext conftest$ac_exeext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060   (eval $ac_link) 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_c_werror_flag"
3068                          || test ! -s conftest.err'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; } &&
3074          { ac_try='test -s conftest$ac_exeext'
3075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076   (eval $ac_try) 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_cv_lib_cposix_strerror=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 ac_cv_lib_cposix_strerror=no
3086 fi
3087 rm -f conftest.err conftest.$ac_objext \
3088       conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3090 fi
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093 if test $ac_cv_lib_cposix_strerror = yes; then
3094   LIBS="$LIBS -lcposix"
3095 fi
3096
3097
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3108   CPP=
3109 fi
3110 if test -z "$CPP"; then
3111   if test "${ac_cv_prog_CPP+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114       # Double quotes because CPP needs to be expanded
3115     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116     do
3117       ac_preproc_ok=false
3118 for ac_c_preproc_warn_flag in '' yes
3119 do
3120   # Use a header file that comes with gcc, so configuring glibc
3121   # with a fresh cross-compiler works.
3122   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123   # <limits.h> exists even on freestanding compilers.
3124   # On the NeXT, cc -E runs the code through the compiler's parser,
3125   # not just through cpp. "Syntax error" is here to catch this case.
3126   cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132 #ifdef __STDC__
3133 # include <limits.h>
3134 #else
3135 # include <assert.h>
3136 #endif
3137                      Syntax error
3138 _ACEOF
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } >/dev/null; then
3147   if test -s conftest.err; then
3148     ac_cpp_err=$ac_c_preproc_warn_flag
3149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150   else
3151     ac_cpp_err=
3152   fi
3153 else
3154   ac_cpp_err=yes
3155 fi
3156 if test -z "$ac_cpp_err"; then
3157   :
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162   # Broken: fails on valid input.
3163 continue
3164 fi
3165 rm -f conftest.err conftest.$ac_ext
3166
3167   # OK, works on sane cases.  Now check whether non-existent headers
3168   # can be detected and how.
3169   cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h.  */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h.  */
3175 #include <ac_nonexistent.h>
3176 _ACEOF
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } >/dev/null; then
3185   if test -s conftest.err; then
3186     ac_cpp_err=$ac_c_preproc_warn_flag
3187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188   else
3189     ac_cpp_err=
3190   fi
3191 else
3192   ac_cpp_err=yes
3193 fi
3194 if test -z "$ac_cpp_err"; then
3195   # Broken: success on invalid input.
3196 continue
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201   # Passes both tests.
3202 ac_preproc_ok=:
3203 break
3204 fi
3205 rm -f conftest.err conftest.$ac_ext
3206
3207 done
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3211   break
3212 fi
3213
3214     done
3215     ac_cv_prog_CPP=$CPP
3216
3217 fi
3218   CPP=$ac_cv_prog_CPP
3219 else
3220   ac_cv_prog_CPP=$CPP
3221 fi
3222 echo "$as_me:$LINENO: result: $CPP" >&5
3223 echo "${ECHO_T}$CPP" >&6
3224 ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227   # Use a header file that comes with gcc, so configuring glibc
3228   # with a fresh cross-compiler works.
3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230   # <limits.h> exists even on freestanding compilers.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244                      Syntax error
3245 _ACEOF
3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248   ac_status=$?
3249   grep -v '^ *+' conftest.er1 >conftest.err
3250   rm -f conftest.er1
3251   cat conftest.err >&5
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); } >/dev/null; then
3254   if test -s conftest.err; then
3255     ac_cpp_err=$ac_c_preproc_warn_flag
3256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257   else
3258     ac_cpp_err=
3259   fi
3260 else
3261   ac_cpp_err=yes
3262 fi
3263 if test -z "$ac_cpp_err"; then
3264   :
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269   # Broken: fails on valid input.
3270 continue
3271 fi
3272 rm -f conftest.err conftest.$ac_ext
3273
3274   # OK, works on sane cases.  Now check whether non-existent headers
3275   # can be detected and how.
3276   cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #include <ac_nonexistent.h>
3283 _ACEOF
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   # Broken: success on invalid input.
3303 continue
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308   # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3311 fi
3312 rm -f conftest.err conftest.$ac_ext
3313
3314 done
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3318   :
3319 else
3320   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&5
3322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&2;}
3324    { (exit 1); exit 1; }; }
3325 fi
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333
3334 echo "$as_me:$LINENO: checking for egrep" >&5
3335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3336 if test "${ac_cv_prog_egrep+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3340     then ac_cv_prog_egrep='grep -E'
3341     else ac_cv_prog_egrep='egrep'
3342     fi
3343 fi
3344 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3345 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3346  EGREP=$ac_cv_prog_egrep
3347
3348
3349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352   echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354   cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360 #include <stdlib.h>
3361 #include <stdarg.h>
3362 #include <string.h>
3363 #include <float.h>
3364
3365 int
3366 main ()
3367 {
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375   (eval $ac_compile) 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -z "$ac_c_werror_flag"
3383                          || test ! -s conftest.err'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; } &&
3389          { ac_try='test -s conftest.$ac_objext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   ac_cv_header_stdc=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 ac_cv_header_stdc=no
3401 fi
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403
3404 if test $ac_cv_header_stdc = yes; then
3405   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <string.h>
3413
3414 _ACEOF
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416   $EGREP "memchr" >/dev/null 2>&1; then
3417   :
3418 else
3419   ac_cv_header_stdc=no
3420 fi
3421 rm -f conftest*
3422
3423 fi
3424
3425 if test $ac_cv_header_stdc = yes; then
3426   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433 #include <stdlib.h>
3434
3435 _ACEOF
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437   $EGREP "free" >/dev/null 2>&1; then
3438   :
3439 else
3440   ac_cv_header_stdc=no
3441 fi
3442 rm -f conftest*
3443
3444 fi
3445
3446 if test $ac_cv_header_stdc = yes; then
3447   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448   if test "$cross_compiling" = yes; then
3449   :
3450 else
3451   cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h.  */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h.  */
3457 #include <ctype.h>
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461 #else
3462 # define ISLOWER(c) \
3463                    (('a' <= (c) && (c) <= 'i') \
3464                      || ('j' <= (c) && (c) <= 'r') \
3465                      || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467 #endif
3468
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3470 int
3471 main ()
3472 {
3473   int i;
3474   for (i = 0; i < 256; i++)
3475     if (XOR (islower (i), ISLOWER (i))
3476         || toupper (i) != TOUPPER (i))
3477       exit(2);
3478   exit (0);
3479 }
3480 _ACEOF
3481 rm -f conftest$ac_exeext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483   (eval $ac_link) 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488   (eval $ac_try) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; }; then
3492   :
3493 else
3494   echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ( exit $ac_status )
3499 ac_cv_header_stdc=no
3500 fi
3501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3502 fi
3503 fi
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507 if test $ac_cv_header_stdc = yes; then
3508
3509 cat >>confdefs.h <<\_ACEOF
3510 #define STDC_HEADERS 1
3511 _ACEOF
3512
3513 fi
3514
3515 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526                   inttypes.h stdint.h unistd.h
3527 do
3528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529 echo "$as_me:$LINENO: checking for $ac_header" >&5
3530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 $ac_includes_default
3541
3542 #include <$ac_header>
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546   (eval $ac_compile) 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } &&
3553          { ac_try='test -z "$ac_c_werror_flag"
3554                          || test ! -s conftest.err'
3555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556   (eval $ac_try) 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; } &&
3560          { ac_try='test -s conftest.$ac_objext'
3561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566   eval "$as_ac_Header=yes"
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 eval "$as_ac_Header=no"
3572 fi
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3578   cat >>confdefs.h <<_ACEOF
3579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3580 _ACEOF
3581
3582 fi
3583
3584 done
3585
3586
3587 if test "${ac_cv_header_minix_config_h+set}" = set; then
3588   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3589 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3590 if test "${ac_cv_header_minix_config_h+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3594 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3595 else
3596   # Is the header compilable?
3597 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3598 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 $ac_includes_default
3606 #include <minix/config.h>
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610   (eval $ac_compile) 2>conftest.er1
3611   ac_status=$?
3612   grep -v '^ *+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } &&
3617          { ac_try='test -z "$ac_c_werror_flag"
3618                          || test ! -s conftest.err'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   ac_header_compiler=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_header_compiler=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3639 echo "${ECHO_T}$ac_header_compiler" >&6
3640
3641 # Is the header present?
3642 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3643 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include <minix/config.h>
3651 _ACEOF
3652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } >/dev/null; then
3660   if test -s conftest.err; then
3661     ac_cpp_err=$ac_c_preproc_warn_flag
3662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3663   else
3664     ac_cpp_err=
3665   fi
3666 else
3667   ac_cpp_err=yes
3668 fi
3669 if test -z "$ac_cpp_err"; then
3670   ac_header_preproc=yes
3671 else
3672   echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675   ac_header_preproc=no
3676 fi
3677 rm -f conftest.err conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3679 echo "${ECHO_T}$ac_header_preproc" >&6
3680
3681 # So?  What about this header?
3682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3683   yes:no: )
3684     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3685 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3686     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3687 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3688     ac_header_preproc=yes
3689     ;;
3690   no:yes:* )
3691     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3692 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3693     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3694 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3695     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3696 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3697     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3698 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3699     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3700 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3701     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3702 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3703     (
3704       cat <<\_ASBOX
3705 ## ------------------------------- ##
3706 ## Report this to bug-bash@gnu.org ##
3707 ## ------------------------------- ##
3708 _ASBOX
3709     ) |
3710       sed "s/^/$as_me: WARNING:     /" >&2
3711     ;;
3712 esac
3713 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3714 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3715 if test "${ac_cv_header_minix_config_h+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   ac_cv_header_minix_config_h=$ac_header_preproc
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3721 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3722
3723 fi
3724 if test $ac_cv_header_minix_config_h = yes; then
3725   MINIX=yes
3726 else
3727   MINIX=
3728 fi
3729
3730
3731 if test "$MINIX" = yes; then
3732
3733 cat >>confdefs.h <<\_ACEOF
3734 #define _POSIX_SOURCE 1
3735 _ACEOF
3736
3737
3738 cat >>confdefs.h <<\_ACEOF
3739 #define _POSIX_1_SOURCE 2
3740 _ACEOF
3741
3742
3743 cat >>confdefs.h <<\_ACEOF
3744 #define _MINIX 1
3745 _ACEOF
3746
3747 fi
3748
3749
3750 # Check whether --enable-largefile or --disable-largefile was given.
3751 if test "${enable_largefile+set}" = set; then
3752   enableval="$enable_largefile"
3753
3754 fi;
3755 if test "$enable_largefile" != no; then
3756
3757   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3758 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3759 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   ac_cv_sys_largefile_CC=no
3763      if test "$GCC" != yes; then
3764        ac_save_CC=$CC
3765        while :; do
3766          # IRIX 6.2 and later do not support large files by default,
3767          # so use the C compiler's -n32 option if that helps.
3768          cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774 #include <sys/types.h>
3775  /* Check that off_t can represent 2**63 - 1 correctly.
3776     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777     since some C++ compilers masquerading as C compilers
3778     incorrectly reject 9223372036854775807.  */
3779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781                        && LARGE_OFF_T % 2147483647 == 1)
3782                       ? 1 : -1];
3783 int
3784 main ()
3785 {
3786
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791          rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793   (eval $ac_compile) 2>conftest.er1
3794   ac_status=$?
3795   grep -v '^ *+' conftest.er1 >conftest.err
3796   rm -f conftest.er1
3797   cat conftest.err >&5
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -z "$ac_c_werror_flag"
3801                          || test ! -s conftest.err'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; } &&
3807          { ac_try='test -s conftest.$ac_objext'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; }; then
3813   break
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 fi
3819 rm -f conftest.err conftest.$ac_objext
3820          CC="$CC -n32"
3821          rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823   (eval $ac_compile) 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } &&
3830          { ac_try='test -z "$ac_c_werror_flag"
3831                          || test ! -s conftest.err'
3832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833   (eval $ac_try) 2>&5
3834   ac_status=$?
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); }; } &&
3837          { ac_try='test -s conftest.$ac_objext'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; }; then
3843   ac_cv_sys_largefile_CC=' -n32'; break
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 fi
3849 rm -f conftest.err conftest.$ac_objext
3850          break
3851        done
3852        CC=$ac_save_CC
3853        rm -f conftest.$ac_ext
3854     fi
3855 fi
3856 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3857 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3858   if test "$ac_cv_sys_largefile_CC" != no; then
3859     CC=$CC$ac_cv_sys_largefile_CC
3860   fi
3861
3862   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3863 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3864 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   while :; do
3868   ac_cv_sys_file_offset_bits=no
3869   cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 #include <sys/types.h>
3876  /* Check that off_t can represent 2**63 - 1 correctly.
3877     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3878     since some C++ compilers masquerading as C compilers
3879     incorrectly reject 9223372036854775807.  */
3880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3881   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3882                        && LARGE_OFF_T % 2147483647 == 1)
3883                       ? 1 : -1];
3884 int
3885 main ()
3886 {
3887
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894   (eval $ac_compile) 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } &&
3901          { ac_try='test -z "$ac_c_werror_flag"
3902                          || test ! -s conftest.err'
3903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904   (eval $ac_try) 2>&5
3905   ac_status=$?
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); }; } &&
3908          { ac_try='test -s conftest.$ac_objext'
3909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910   (eval $ac_try) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; }; then
3914   break
3915 else
3916   echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 fi
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921   cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #define _FILE_OFFSET_BITS 64
3928 #include <sys/types.h>
3929  /* Check that off_t can represent 2**63 - 1 correctly.
3930     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3931     since some C++ compilers masquerading as C compilers
3932     incorrectly reject 9223372036854775807.  */
3933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3934   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3935                        && LARGE_OFF_T % 2147483647 == 1)
3936                       ? 1 : -1];
3937 int
3938 main ()
3939 {
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947   (eval $ac_compile) 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } &&
3954          { ac_try='test -z "$ac_c_werror_flag"
3955                          || test ! -s conftest.err'
3956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957   (eval $ac_try) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }; } &&
3961          { ac_try='test -s conftest.$ac_objext'
3962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963   (eval $ac_try) 2>&5
3964   ac_status=$?
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); }; }; then
3967   ac_cv_sys_file_offset_bits=64; break
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 fi
3973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3974   break
3975 done
3976 fi
3977 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3978 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3979 if test "$ac_cv_sys_file_offset_bits" != no; then
3980
3981 cat >>confdefs.h <<_ACEOF
3982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3983 _ACEOF
3984
3985 fi
3986 rm -f conftest*
3987   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3988 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3989 if test "${ac_cv_sys_large_files+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   while :; do
3993   ac_cv_sys_large_files=no
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 #include <sys/types.h>
4001  /* Check that off_t can represent 2**63 - 1 correctly.
4002     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4003     since some C++ compilers masquerading as C compilers
4004     incorrectly reject 9223372036854775807.  */
4005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4006   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4007                        && LARGE_OFF_T % 2147483647 == 1)
4008                       ? 1 : -1];
4009 int
4010 main ()
4011 {
4012
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019   (eval $ac_compile) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag"
4027                          || test ! -s conftest.err'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; }; then
4039   break
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 fi
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052 #define _LARGE_FILES 1
4053 #include <sys/types.h>
4054  /* Check that off_t can represent 2**63 - 1 correctly.
4055     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056     since some C++ compilers masquerading as C compilers
4057     incorrectly reject 9223372036854775807.  */
4058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060                        && LARGE_OFF_T % 2147483647 == 1)
4061                       ? 1 : -1];
4062 int
4063 main ()
4064 {
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072   (eval $ac_compile) 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } &&
4079          { ac_try='test -z "$ac_c_werror_flag"
4080                          || test ! -s conftest.err'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; } &&
4086          { ac_try='test -s conftest.$ac_objext'
4087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088   (eval $ac_try) 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; }; then
4092   ac_cv_sys_large_files=1; break
4093 else
4094   echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 fi
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099   break
4100 done
4101 fi
4102 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4103 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4104 if test "$ac_cv_sys_large_files" != no; then
4105
4106 cat >>confdefs.h <<_ACEOF
4107 #define _LARGE_FILES $ac_cv_sys_large_files
4108 _ACEOF
4109
4110 fi
4111 rm -f conftest*
4112 fi
4113
4114
4115
4116 SIGNAMES_H=lsignames.h
4117
4118
4119
4120 if test "x$cross_compiling" = "xyes"; then
4121     case "${host}" in
4122     *-cygwin*)
4123         cross_cache=${srcdir}/cross-build/cygwin32.cache
4124         SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
4125         ;;
4126     *-mingw*)
4127         cross_cache=${srcdir}/cross-build/cygwin32.cache
4128         ;;
4129     i[3456]86-*-beos*)
4130         cross_cache=${srcdir}/cross-build/x86-beos.cache
4131         SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
4132         ;;
4133     *)  echo "configure: cross-compiling for $host is not supported" >&2
4134         ;;
4135     esac
4136     if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4137         echo "loading cross-build cache file ${cross_cache}"
4138         . ${cross_cache}
4139     fi
4140     unset cross_cache
4141     CROSS_COMPILE='-DCROSS_COMPILING'
4142
4143 fi
4144
4145
4146 if test -z "$CC_FOR_BUILD"; then
4147     if test "x$cross_compiling" = "xno"; then
4148         CC_FOR_BUILD='$(CC)'
4149     else
4150         CC_FOR_BUILD=gcc
4151     fi
4152 fi
4153
4154
4155
4156 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
4157
4158 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4159
4160 if test "$opt_profiling" = "yes"; then
4161         PROFILE_FLAGS=-pg
4162         case "$host_os" in
4163         solaris2*)      ;;
4164         *)              opt_static_link=yes ;;
4165         esac
4166         DEBUG= MALLOC_DEBUG=
4167 fi
4168
4169 if test "$opt_static_link" = yes; then
4170         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4171         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4172                 STATIC_LD="-static"
4173                 case "$host_os" in
4174                 solaris2*)      ;;
4175                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
4176                 esac
4177         fi
4178 fi
4179
4180 if test "X$cross_compiling" = "Xno"; then
4181         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4182         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4183 else
4184         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4185         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4186 fi
4187
4188 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199 if test $ac_cv_c_compiler_gnu = yes; then
4200     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4201 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4202 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205     ac_pattern="Autoconf.*'x'"
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <sgtty.h>
4213 Autoconf TIOCGETP
4214 _ACEOF
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4217   ac_cv_prog_gcc_traditional=yes
4218 else
4219   ac_cv_prog_gcc_traditional=no
4220 fi
4221 rm -f conftest*
4222
4223
4224   if test $ac_cv_prog_gcc_traditional = no; then
4225     cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 #include <termio.h>
4232 Autoconf TCGETA
4233 _ACEOF
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4236   ac_cv_prog_gcc_traditional=yes
4237 fi
4238 rm -f conftest*
4239
4240   fi
4241 fi
4242 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4243 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4244   if test $ac_cv_prog_gcc_traditional = yes; then
4245     CC="$CC -traditional"
4246   fi
4247 fi
4248
4249
4250
4251 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4252 then
4253         # If the user specified --with-installed-readline=PREFIX and PREFIX
4254         # is not `yes', set ac_cv_rl_prefix to PREFIX
4255         test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4256
4257
4258 if test "X$bash_cv_termcap_lib" = "X"; then
4259 _bash_needmsg=yes
4260 else
4261 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4262 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4263 _bash_needmsg=
4264 fi
4265 if test "${bash_cv_termcap_lib+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   echo "$as_me:$LINENO: checking for tgetent" >&5
4269 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4270 if test "${ac_cv_func_tgetent+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4281 #define tgetent innocuous_tgetent
4282
4283 /* System header to define __stub macros and hopefully few prototypes,
4284     which can conflict with char tgetent (); below.
4285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4286     <limits.h> exists even on freestanding compilers.  */
4287
4288 #ifdef __STDC__
4289 # include <limits.h>
4290 #else
4291 # include <assert.h>
4292 #endif
4293
4294 #undef tgetent
4295
4296 /* Override any gcc2 internal prototype to avoid an error.  */
4297 #ifdef __cplusplus
4298 extern "C"
4299 {
4300 #endif
4301 /* We use char because int might match the return type of a gcc2
4302    builtin and then its argument prototype would still apply.  */
4303 char tgetent ();
4304 /* The GNU C library defines this for functions which it implements
4305     to always fail with ENOSYS.  Some functions are actually named
4306     something starting with __ and the normal name is an alias.  */
4307 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4308 choke me
4309 #else
4310 char (*f) () = tgetent;
4311 #endif
4312 #ifdef __cplusplus
4313 }
4314 #endif
4315
4316 int
4317 main ()
4318 {
4319 return f != tgetent;
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326   (eval $ac_link) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest$ac_exeext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_cv_func_tgetent=yes
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ac_cv_func_tgetent=no
4352 fi
4353 rm -f conftest.err conftest.$ac_objext \
4354       conftest$ac_exeext conftest.$ac_ext
4355 fi
4356 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4357 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4358 if test $ac_cv_func_tgetent = yes; then
4359   bash_cv_termcap_lib=libc
4360 else
4361   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4362 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4363 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-ltermcap  $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 /* Override any gcc2 internal prototype to avoid an error.  */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380    builtin and then its argument prototype would still apply.  */
4381 char tgetent ();
4382 int
4383 main ()
4384 {
4385 tgetent ();
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392   (eval $ac_link) 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag"
4400                          || test ! -s conftest.err'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; } &&
4406          { ac_try='test -s conftest$ac_exeext'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; }; then
4412   ac_cv_lib_termcap_tgetent=yes
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 ac_cv_lib_termcap_tgetent=no
4418 fi
4419 rm -f conftest.err conftest.$ac_objext \
4420       conftest$ac_exeext conftest.$ac_ext
4421 LIBS=$ac_check_lib_save_LIBS
4422 fi
4423 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4424 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4425 if test $ac_cv_lib_termcap_tgetent = yes; then
4426   bash_cv_termcap_lib=libtermcap
4427 else
4428   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4429 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4430 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   ac_check_lib_save_LIBS=$LIBS
4434 LIBS="-ltinfo  $LIBS"
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h.  */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h.  */
4441
4442 /* Override any gcc2 internal prototype to avoid an error.  */
4443 #ifdef __cplusplus
4444 extern "C"
4445 #endif
4446 /* We use char because int might match the return type of a gcc2
4447    builtin and then its argument prototype would still apply.  */
4448 char tgetent ();
4449 int
4450 main ()
4451 {
4452 tgetent ();
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459   (eval $ac_link) 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } &&
4466          { ac_try='test -z "$ac_c_werror_flag"
4467                          || test ! -s conftest.err'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; } &&
4473          { ac_try='test -s conftest$ac_exeext'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   ac_cv_lib_tinfo_tgetent=yes
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_cv_lib_tinfo_tgetent=no
4485 fi
4486 rm -f conftest.err conftest.$ac_objext \
4487       conftest$ac_exeext conftest.$ac_ext
4488 LIBS=$ac_check_lib_save_LIBS
4489 fi
4490 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4491 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4492 if test $ac_cv_lib_tinfo_tgetent = yes; then
4493   bash_cv_termcap_lib=libtinfo
4494 else
4495   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4496 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4497 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   ac_check_lib_save_LIBS=$LIBS
4501 LIBS="-lcurses  $LIBS"
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h.  */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h.  */
4508
4509 /* Override any gcc2 internal prototype to avoid an error.  */
4510 #ifdef __cplusplus
4511 extern "C"
4512 #endif
4513 /* We use char because int might match the return type of a gcc2
4514    builtin and then its argument prototype would still apply.  */
4515 char tgetent ();
4516 int
4517 main ()
4518 {
4519 tgetent ();
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.$ac_objext conftest$ac_exeext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526   (eval $ac_link) 2>conftest.er1
4527   ac_status=$?
4528   grep -v '^ *+' conftest.er1 >conftest.err
4529   rm -f conftest.er1
4530   cat conftest.err >&5
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); } &&
4533          { ac_try='test -z "$ac_c_werror_flag"
4534                          || test ! -s conftest.err'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; } &&
4540          { ac_try='test -s conftest$ac_exeext'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   ac_cv_lib_curses_tgetent=yes
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 ac_cv_lib_curses_tgetent=no
4552 fi
4553 rm -f conftest.err conftest.$ac_objext \
4554       conftest$ac_exeext conftest.$ac_ext
4555 LIBS=$ac_check_lib_save_LIBS
4556 fi
4557 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4558 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4559 if test $ac_cv_lib_curses_tgetent = yes; then
4560   bash_cv_termcap_lib=libcurses
4561 else
4562   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4563 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4564 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   ac_check_lib_save_LIBS=$LIBS
4568 LIBS="-lncurses  $LIBS"
4569 cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h.  */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h.  */
4575
4576 /* Override any gcc2 internal prototype to avoid an error.  */
4577 #ifdef __cplusplus
4578 extern "C"
4579 #endif
4580 /* We use char because int might match the return type of a gcc2
4581    builtin and then its argument prototype would still apply.  */
4582 char tgetent ();
4583 int
4584 main ()
4585 {
4586 tgetent ();
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593   (eval $ac_link) 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_c_werror_flag"
4601                          || test ! -s conftest.err'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; } &&
4607          { ac_try='test -s conftest$ac_exeext'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   ac_cv_lib_ncurses_tgetent=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_cv_lib_ncurses_tgetent=no
4619 fi
4620 rm -f conftest.err conftest.$ac_objext \
4621       conftest$ac_exeext conftest.$ac_ext
4622 LIBS=$ac_check_lib_save_LIBS
4623 fi
4624 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4625 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4626 if test $ac_cv_lib_ncurses_tgetent = yes; then
4627   bash_cv_termcap_lib=libncurses
4628 else
4629   bash_cv_termcap_lib=gnutermcap
4630 fi
4631
4632 fi
4633
4634 fi
4635
4636 fi
4637
4638 fi
4639
4640 fi
4641
4642 if test "X$_bash_needmsg" = "Xyes"; then
4643 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4644 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4645 fi
4646 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4647 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4648 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4649 LDFLAGS="$LDFLAGS -L./lib/termcap"
4650 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4651 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4652 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4653 TERMCAP_LIB=-ltermcap
4654 TERMCAP_DEP=
4655 elif test $bash_cv_termcap_lib = libtinfo; then
4656 TERMCAP_LIB=-ltinfo
4657 TERMCAP_DEP=
4658 elif test $bash_cv_termcap_lib = libncurses; then
4659 TERMCAP_LIB=-lncurses
4660 TERMCAP_DEP=
4661 elif test $bash_cv_termcap_lib = libc; then
4662 TERMCAP_LIB=
4663 TERMCAP_DEP=
4664 else
4665 TERMCAP_LIB=-lcurses
4666 TERMCAP_DEP=
4667 fi
4668
4669
4670
4671
4672 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4673 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4674
4675 # What a pain in the ass this is.
4676
4677 # save cpp and ld options
4678 _save_CFLAGS="$CFLAGS"
4679 _save_LDFLAGS="$LDFLAGS"
4680 _save_LIBS="$LIBS"
4681
4682 # Don't set ac_cv_rl_prefix if the caller has already assigned a value.  This
4683 # allows the caller to do something like $_rl_prefix=$withval if the user
4684 # specifies --with-installed-readline=PREFIX as an argument to configure
4685
4686 if test -z "$ac_cv_rl_prefix"; then
4687 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4688 fi
4689
4690 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4691 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4692
4693 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4694 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4695 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4696
4697 if test "${ac_cv_rl_version+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test "$cross_compiling" = yes; then
4701   ac_cv_rl_version='4.2'
4702 else
4703   cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709
4710 #include <stdio.h>
4711 #include <readline/readline.h>
4712
4713 extern int rl_gnu_readline_p;
4714
4715 main()
4716 {
4717         FILE *fp;
4718         fp = fopen("conftest.rlv", "w");
4719         if (fp == 0)
4720                 exit(1);
4721         if (rl_gnu_readline_p != 1)
4722                 fprintf(fp, "0.0\n");
4723         else
4724                 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4725         fclose(fp);
4726         exit(0);
4727 }
4728
4729 _ACEOF
4730 rm -f conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732   (eval $ac_link) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_rl_version=`cat conftest.rlv`
4742 else
4743   echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 ( exit $ac_status )
4748 ac_cv_rl_version='0.0'
4749 fi
4750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 fi
4753
4754
4755 CFLAGS="$_save_CFLAGS"
4756 LDFLAGS="$_save_LDFLAGS"
4757 LIBS="$_save_LIBS"
4758
4759 RL_MAJOR=0
4760 RL_MINOR=0
4761
4762 # (
4763 case "$ac_cv_rl_version" in
4764 2*|3*|4*|5*|6*|7*|8*|9*)
4765         RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4766         RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4767         ;;
4768 esac
4769
4770 # (((
4771 case $RL_MAJOR in
4772 [0-9][0-9])     _RL_MAJOR=$RL_MAJOR ;;
4773 [0-9])  _RL_MAJOR=0$RL_MAJOR ;;
4774 *)              _RL_MAJOR=00 ;;
4775 esac
4776
4777 # (((
4778 case $RL_MINOR in
4779 [0-9][0-9])     _RL_MINOR=$RL_MINOR ;;
4780 [0-9])  _RL_MINOR=0$RL_MINOR ;;
4781 *)              _RL_MINOR=00 ;;
4782 esac
4783
4784 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4785
4786 # Readline versions greater than 4.2 have these defines in readline.h
4787
4788 if test $ac_cv_rl_version = '0.0' ; then
4789         { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4790 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4791 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4792         # set these for use by the caller
4793         RL_PREFIX=$ac_cv_rl_prefix
4794         RL_LIBDIR=$ac_cv_rl_libdir
4795         RL_INCLUDEDIR=$ac_cv_rl_includedir
4796         echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4797 echo "${ECHO_T}$ac_cv_rl_version" >&6
4798 else
4799
4800
4801 cat >>confdefs.h <<_ACEOF
4802 #define RL_READLINE_VERSION $RL_VERSION
4803 _ACEOF
4804
4805
4806 cat >>confdefs.h <<_ACEOF
4807 #define RL_VERSION_MAJOR $RL_MAJOR
4808 _ACEOF
4809
4810
4811 cat >>confdefs.h <<_ACEOF
4812 #define RL_VERSION_MINOR $RL_MINOR
4813 _ACEOF
4814
4815
4816
4817
4818
4819
4820 # set these for use by the caller
4821 RL_PREFIX=$ac_cv_rl_prefix
4822 RL_LIBDIR=$ac_cv_rl_libdir
4823 RL_INCLUDEDIR=$ac_cv_rl_includedir
4824
4825 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4826 echo "${ECHO_T}$ac_cv_rl_version" >&6
4827
4828 fi
4829
4830
4831         case "$ac_cv_rl_version" in
4832         5*|6*|7*|8*|9*) ;;
4833         *)      opt_with_installed_readline=no
4834                 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4835 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4836                 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4837 echo "$as_me: WARNING: using private bash version" >&2;}
4838                 ;;
4839         esac
4840 fi
4841
4842 TILDE_LIB=-ltilde
4843 if test $opt_readline = yes; then
4844         cat >>confdefs.h <<\_ACEOF
4845 #define READLINE 1
4846 _ACEOF
4847
4848         if test "$opt_with_installed_readline" != "no" ; then
4849                 case "$opt_with_installed_readline" in
4850                 yes)    RL_INCLUDE= ;;
4851                 *)      case "$RL_INCLUDEDIR" in
4852                         /usr/include)   ;;
4853                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4854                         esac
4855                         ;;
4856                 esac
4857                 READLINE_DEP=
4858                 READLINE_LIB=-lreadline
4859                 # section for OS versions that don't allow unresolved symbols
4860                 # to be compiled into dynamic libraries.
4861                 case "$host_os" in
4862                 cygwin*)        TILDE_LIB= ;;
4863                 esac
4864         else
4865                 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4866                 READLINE_DEP='$(READLINE_LIBRARY)'
4867                 # section for OS versions that ship an older/broken version of
4868                 # readline as a standard dynamic library and don't allow a
4869                 # static version specified as -llibname to override the
4870                 # dynamic version
4871                 case "${host_os}" in
4872                 darwin8*)       READLINE_LIB='${READLINE_LIBRARY}' ;;
4873                 *)              READLINE_LIB=-lreadline ;;
4874                 esac
4875         fi
4876 else
4877         RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4878         READLINE_LIB= READLINE_DEP=
4879 fi
4880 if test $opt_history = yes || test $opt_bang_history = yes; then
4881         if test $opt_history = yes; then
4882                 cat >>confdefs.h <<\_ACEOF
4883 #define HISTORY 1
4884 _ACEOF
4885
4886         fi
4887         if test $opt_bang_history = yes; then
4888                 cat >>confdefs.h <<\_ACEOF
4889 #define BANG_HISTORY 1
4890 _ACEOF
4891
4892         fi
4893         if test "$opt_with_installed_readline" != "no"; then
4894                 HIST_LIBDIR=$RL_LIBDIR
4895                 HISTORY_DEP=
4896                 HISTORY_LIB=-lhistory
4897                 case "$opt_with_installed_readline" in
4898                 yes)    RL_INCLUDE= ;;
4899                 *)      case "$RL_INCLUDEDIR" in
4900                         /usr/include)   ;;
4901                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4902                         esac
4903                         ;;
4904                 esac
4905         else
4906                 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4907                 HISTORY_DEP='$(HISTORY_LIBRARY)'
4908                 # section for OS versions that ship an older version of
4909                 # readline as a standard dynamic library and don't allow a
4910                 # static version specified as -llibname to override the
4911                 # dynamic version
4912                 case "${host_os}" in
4913                 darwin8*)       HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4914                 *)              HISTORY_LIB=-lhistory ;;
4915                 esac
4916         fi
4917 else
4918         HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4919         HISTORY_LIB= HISTORY_DEP=
4920 fi
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 # Find a good install program.  We prefer a C program (faster),
4933 # so one script is as good as another.  But avoid the broken or
4934 # incompatible versions:
4935 # SysV /etc/install, /usr/sbin/install
4936 # SunOS /usr/etc/install
4937 # IRIX /sbin/install
4938 # AIX /bin/install
4939 # AmigaOS /C/install, which installs bootblocks on floppy discs
4940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4943 # OS/2's system install, which has a completely different semantic
4944 # ./install, which can be erroneously created by make from ./install.sh.
4945 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4947 if test -z "$INSTALL"; then
4948 if test "${ac_cv_path_install+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   # Account for people who put trailing slashes in PATH elements.
4957 case $as_dir/ in
4958   ./ | .// | /cC/* | \
4959   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4960   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4961   /usr/ucb/* ) ;;
4962   *)
4963     # OSF1 and SCO ODT 3.0 have their own names for install.
4964     # Don't use installbsd from OSF since it installs stuff as root
4965     # by default.
4966     for ac_prog in ginstall scoinst install; do
4967       for ac_exec_ext in '' $ac_executable_extensions; do
4968         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4969           if test $ac_prog = install &&
4970             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4971             # AIX install.  It has an incompatible calling convention.
4972             :
4973           elif test $ac_prog = install &&
4974             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4975             # program-specific install script used by HP pwplus--don't use.
4976             :
4977           else
4978             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4979             break 3
4980           fi
4981         fi
4982       done
4983     done
4984     ;;
4985 esac
4986 done
4987
4988
4989 fi
4990   if test "${ac_cv_path_install+set}" = set; then
4991     INSTALL=$ac_cv_path_install
4992   else
4993     # As a last resort, use the slow shell script.  We don't cache a
4994     # path for INSTALL within a source directory, because that will
4995     # break other packages using the cache if that directory is
4996     # removed, or if the path is relative.
4997     INSTALL=$ac_install_sh
4998   fi
4999 fi
5000 echo "$as_me:$LINENO: result: $INSTALL" >&5
5001 echo "${ECHO_T}$INSTALL" >&6
5002
5003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5004 # It thinks the first close brace ends the variable substitution.
5005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5006
5007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5008
5009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5010
5011 # Extract the first word of "ar", so it can be a program name with args.
5012 set dummy ar; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_AR+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   if test -n "$AR"; then
5019   ac_cv_prog_AR="$AR" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_prog_AR=""
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5036 fi
5037 fi
5038 AR=$ac_cv_prog_AR
5039 if test -n "$AR"; then
5040   echo "$as_me:$LINENO: result: $AR" >&5
5041 echo "${ECHO_T}$AR" >&6
5042 else
5043   echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6
5045 fi
5046
5047 test -n "$ARFLAGS" || ARFLAGS="cr"
5048 if test -n "$ac_tool_prefix"; then
5049   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_prog_RANLIB+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$RANLIB"; then
5057   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072
5073 fi
5074 fi
5075 RANLIB=$ac_cv_prog_RANLIB
5076 if test -n "$RANLIB"; then
5077   echo "$as_me:$LINENO: result: $RANLIB" >&5
5078 echo "${ECHO_T}$RANLIB" >&6
5079 else
5080   echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5082 fi
5083
5084 fi
5085 if test -z "$ac_cv_prog_RANLIB"; then
5086   ac_ct_RANLIB=$RANLIB
5087   # Extract the first word of "ranlib", so it can be a program name with args.
5088 set dummy ranlib; ac_word=$2
5089 echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   if test -n "$ac_ct_RANLIB"; then
5095   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for ac_exec_ext in '' $ac_executable_extensions; do
5103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104     ac_cv_prog_ac_ct_RANLIB="ranlib"
5105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109 done
5110
5111   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5112 fi
5113 fi
5114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5115 if test -n "$ac_ct_RANLIB"; then
5116   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5117 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5118 else
5119   echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5121 fi
5122
5123   RANLIB=$ac_ct_RANLIB
5124 else
5125   RANLIB="$ac_cv_prog_RANLIB"
5126 fi
5127
5128 for ac_prog in 'bison -y' byacc
5129 do
5130   # Extract the first word of "$ac_prog", so it can be a program name with args.
5131 set dummy $ac_prog; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_prog_YACC+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if test -n "$YACC"; then
5138   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145   for ac_exec_ext in '' $ac_executable_extensions; do
5146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147     ac_cv_prog_YACC="$ac_prog"
5148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149     break 2
5150   fi
5151 done
5152 done
5153
5154 fi
5155 fi
5156 YACC=$ac_cv_prog_YACC
5157 if test -n "$YACC"; then
5158   echo "$as_me:$LINENO: result: $YACC" >&5
5159 echo "${ECHO_T}$YACC" >&6
5160 else
5161   echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5163 fi
5164
5165   test -n "$YACC" && break
5166 done
5167 test -n "$YACC" || YACC="yacc"
5168
5169 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5170 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5171 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5172 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   cat >conftest.make <<\_ACEOF
5176 all:
5177         @echo 'ac_maketemp="$(MAKE)"'
5178 _ACEOF
5179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5180 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5181 if test -n "$ac_maketemp"; then
5182   eval ac_cv_prog_make_${ac_make}_set=yes
5183 else
5184   eval ac_cv_prog_make_${ac_make}_set=no
5185 fi
5186 rm -f conftest.make
5187 fi
5188 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5189   echo "$as_me:$LINENO: result: yes" >&5
5190 echo "${ECHO_T}yes" >&6
5191   SET_MAKE=
5192 else
5193   echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5195   SET_MAKE="MAKE=${MAKE-make}"
5196 fi
5197
5198
5199 case "$host_os" in
5200 opennt*|interix*)       MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5201 *)                      MAKE_SHELL=/bin/sh ;;
5202 esac
5203
5204
5205 if test x$SIZE = x; then
5206         if test x$ac_tool_prefix = x; then
5207                 SIZE=size
5208         else
5209                 SIZE=${ac_tool_prefix}size
5210                 save_IFS=$IFS ; IFS=:
5211                 size_found=0
5212                 for dir in $PATH; do
5213                         if test -x $dir/$SIZE ; then
5214                                 size_found=1
5215                                 break
5216                         fi
5217                 done
5218                 if test $size_found -eq 0; then
5219                         SIZE=:
5220                 fi
5221                 IFS=$save_IFS
5222         fi
5223 fi
5224
5225
5226 cat >>confdefs.h <<\_ACEOF
5227 #define _GNU_SOURCE 1
5228 _ACEOF
5229
5230
5231 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5233 if test "${ac_cv_c_const+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242
5243 int
5244 main ()
5245 {
5246 /* FIXME: Include the comments suggested by Paul. */
5247 #ifndef __cplusplus
5248   /* Ultrix mips cc rejects this.  */
5249   typedef int charset[2];
5250   const charset x;
5251   /* SunOS 4.1.1 cc rejects this.  */
5252   char const *const *ccp;
5253   char **p;
5254   /* NEC SVR4.0.2 mips cc rejects this.  */
5255   struct point {int x, y;};
5256   static struct point const zero = {0,0};
5257   /* AIX XL C 1.02.0.0 rejects this.
5258      It does not let you subtract one const X* pointer from another in
5259      an arm of an if-expression whose if-part is not a constant
5260      expression */
5261   const char *g = "string";
5262   ccp = &g + (g ? g-g : 0);
5263   /* HPUX 7.0 cc rejects these. */
5264   ++ccp;
5265   p = (char**) ccp;
5266   ccp = (char const *const *) p;
5267   { /* SCO 3.2v4 cc rejects this.  */
5268     char *t;
5269     char const *s = 0 ? (char *) 0 : (char const *) 0;
5270
5271     *t++ = 0;
5272   }
5273   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5274     int x[] = {25, 17};
5275     const int *foo = &x[0];
5276     ++foo;
5277   }
5278   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5279     typedef const int *iptr;
5280     iptr p = 0;
5281     ++p;
5282   }
5283   { /* AIX XL C 1.02.0.0 rejects this saying
5284        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5285     struct s { int j; const int *ap[3]; };
5286     struct s *b; b->j = 5;
5287   }
5288   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5289     const int foo = 10;
5290   }
5291 #endif
5292
5293   ;
5294   return 0;
5295 }
5296 _ACEOF
5297 rm -f conftest.$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299   (eval $ac_compile) 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } &&
5306          { ac_try='test -z "$ac_c_werror_flag"
5307                          || test ! -s conftest.err'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; } &&
5313          { ac_try='test -s conftest.$ac_objext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_c_const=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_cv_c_const=no
5325 fi
5326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5327 fi
5328 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5329 echo "${ECHO_T}$ac_cv_c_const" >&6
5330 if test $ac_cv_c_const = no; then
5331
5332 cat >>confdefs.h <<\_ACEOF
5333 #define const
5334 _ACEOF
5335
5336 fi
5337
5338 echo "$as_me:$LINENO: checking for inline" >&5
5339 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5340 if test "${ac_cv_c_inline+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   ac_cv_c_inline=no
5344 for ac_kw in inline __inline__ __inline; do
5345   cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351 #ifndef __cplusplus
5352 typedef int foo_t;
5353 static $ac_kw foo_t static_foo () {return 0; }
5354 $ac_kw foo_t foo () {return 0; }
5355 #endif
5356
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -z "$ac_c_werror_flag"
5368                          || test ! -s conftest.err'
5369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370   (eval $ac_try) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; } &&
5374          { ac_try='test -s conftest.$ac_objext'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   ac_cv_c_inline=$ac_kw; break
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 fi
5386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 done
5388
5389 fi
5390 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5391 echo "${ECHO_T}$ac_cv_c_inline" >&6
5392
5393
5394 case $ac_cv_c_inline in
5395   inline | yes) ;;
5396   *)
5397     case $ac_cv_c_inline in
5398       no) ac_val=;;
5399       *) ac_val=$ac_cv_c_inline;;
5400     esac
5401     cat >>confdefs.h <<_ACEOF
5402 #ifndef __cplusplus
5403 #define inline $ac_val
5404 #endif
5405 _ACEOF
5406     ;;
5407 esac
5408
5409 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5410 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5411 if test "${ac_cv_c_bigendian+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   # See if sys/param.h defines the BYTE_ORDER macro.
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421 #include <sys/types.h>
5422 #include <sys/param.h>
5423
5424 int
5425 main ()
5426 {
5427 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5428  bogus endian macros
5429 #endif
5430
5431   ;
5432   return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437   (eval $ac_compile) 2>conftest.er1
5438   ac_status=$?
5439   grep -v '^ *+' conftest.er1 >conftest.err
5440   rm -f conftest.er1
5441   cat conftest.err >&5
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -z "$ac_c_werror_flag"
5445                          || test ! -s conftest.err'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; } &&
5451          { ac_try='test -s conftest.$ac_objext'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; }; then
5457   # It does; now see whether it defined to BIG_ENDIAN or not.
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h.  */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h.  */
5464 #include <sys/types.h>
5465 #include <sys/param.h>
5466
5467 int
5468 main ()
5469 {
5470 #if BYTE_ORDER != BIG_ENDIAN
5471  not big endian
5472 #endif
5473
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480   (eval $ac_compile) 2>conftest.er1
5481   ac_status=$?
5482   grep -v '^ *+' conftest.er1 >conftest.err
5483   rm -f conftest.er1
5484   cat conftest.err >&5
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -z "$ac_c_werror_flag"
5488                          || test ! -s conftest.err'
5489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490   (eval $ac_try) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; } &&
5494          { ac_try='test -s conftest.$ac_objext'
5495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496   (eval $ac_try) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); }; }; then
5500   ac_cv_c_bigendian=yes
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 ac_cv_c_bigendian=no
5506 fi
5507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508 else
5509   echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 # It does not; compile a test program.
5513 if test "$cross_compiling" = yes; then
5514   # try to guess the endianness by grepping values into an object file
5515   ac_cv_c_bigendian=unknown
5516   cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5523 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5524 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5525 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5526 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5527 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5528 int
5529 main ()
5530 {
5531  _ascii (); _ebcdic ();
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538   (eval $ac_compile) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_c_werror_flag"
5546                          || test ! -s conftest.err'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; } &&
5552          { ac_try='test -s conftest.$ac_objext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5559   ac_cv_c_bigendian=yes
5560 fi
5561 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5562   if test "$ac_cv_c_bigendian" = unknown; then
5563     ac_cv_c_bigendian=no
5564   else
5565     # finding both strings is unlikely to happen, but who knows?
5566     ac_cv_c_bigendian=unknown
5567   fi
5568 fi
5569 else
5570   echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5572
5573 fi
5574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5575 else
5576   cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h.  */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h.  */
5582 int
5583 main ()
5584 {
5585   /* Are we little or big endian?  From Harbison&Steele.  */
5586   union
5587   {
5588     long l;
5589     char c[sizeof (long)];
5590   } u;
5591   u.l = 1;
5592   exit (u.c[sizeof (long) - 1] == 1);
5593 }
5594 _ACEOF
5595 rm -f conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597   (eval $ac_link) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602   (eval $ac_try) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }; }; then
5606   ac_cv_c_bigendian=no
5607 else
5608   echo "$as_me: program exited with status $ac_status" >&5
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 ( exit $ac_status )
5613 ac_cv_c_bigendian=yes
5614 fi
5615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5616 fi
5617 fi
5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5621 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5622 case $ac_cv_c_bigendian in
5623   yes)
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define WORDS_BIGENDIAN 1
5627 _ACEOF
5628  ;;
5629   no)
5630      ;;
5631   *)
5632     { { echo "$as_me:$LINENO: error: unknown endianness
5633 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5634 echo "$as_me: error: unknown endianness
5635 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5636    { (exit 1); exit 1; }; } ;;
5637 esac
5638
5639 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5640 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5641 if test "${ac_cv_c_stringize+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 #define x(y) #y
5651
5652 char *s = x(teststring);
5653 _ACEOF
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655   $EGREP "#teststring" >/dev/null 2>&1; then
5656   ac_cv_c_stringize=no
5657 else
5658   ac_cv_c_stringize=yes
5659 fi
5660 rm -f conftest*
5661
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5664 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5665 if test $ac_cv_c_stringize = yes; then
5666
5667 cat >>confdefs.h <<\_ACEOF
5668 #define HAVE_STRINGIZE 1
5669 _ACEOF
5670
5671 fi
5672
5673 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5674 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5675 if test "${ac_cv_c_long_double+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h.  */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h.  */
5684 #include <float.h>
5685           long double foo = 0.0;
5686 int
5687 main ()
5688 {
5689 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5690           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5691           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5692 test_array [0] = 0
5693
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>conftest.er1
5701   ac_status=$?
5702   grep -v '^ *+' conftest.er1 >conftest.err
5703   rm -f conftest.er1
5704   cat conftest.err >&5
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } &&
5707          { ac_try='test -z "$ac_c_werror_flag"
5708                          || test ! -s conftest.err'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; } &&
5714          { ac_try='test -s conftest.$ac_objext'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; }; then
5720   ac_cv_c_long_double=yes
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725 ac_cv_c_long_double=no
5726 fi
5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728 fi
5729 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5730 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5731 if test $ac_cv_c_long_double = yes; then
5732
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_LONG_DOUBLE 1
5735 _ACEOF
5736
5737 fi
5738
5739 echo "$as_me:$LINENO: checking for function prototypes" >&5
5740 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5741 if test "$ac_cv_prog_cc_stdc" != no; then
5742   echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6
5744
5745 cat >>confdefs.h <<\_ACEOF
5746 #define PROTOTYPES 1
5747 _ACEOF
5748
5749
5750 cat >>confdefs.h <<\_ACEOF
5751 #define __PROTOTYPES 1
5752 _ACEOF
5753
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759
5760 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5761 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5762 if test "${ac_cv_c_char_unsigned+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 $ac_includes_default
5772 int
5773 main ()
5774 {
5775 static int test_array [1 - 2 * !(((char) -1) < 0)];
5776 test_array [0] = 0
5777
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784   (eval $ac_compile) 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } &&
5791          { ac_try='test -z "$ac_c_werror_flag"
5792                          || test ! -s conftest.err'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; } &&
5798          { ac_try='test -s conftest.$ac_objext'
5799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800   (eval $ac_try) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); }; }; then
5804   ac_cv_c_char_unsigned=no
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_cv_c_char_unsigned=yes
5810 fi
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5814 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5815 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5816   cat >>confdefs.h <<\_ACEOF
5817 #define __CHAR_UNSIGNED__ 1
5818 _ACEOF
5819
5820 fi
5821
5822
5823
5824         MKINSTALLDIRS=
5825   if test -n "$ac_aux_dir"; then
5826     case "$ac_aux_dir" in
5827       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5828       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5829     esac
5830   fi
5831   if test -z "$MKINSTALLDIRS"; then
5832     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5833   fi
5834
5835
5836
5837   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5838 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5839     # Check whether --enable-nls or --disable-nls was given.
5840 if test "${enable_nls+set}" = set; then
5841   enableval="$enable_nls"
5842   USE_NLS=$enableval
5843 else
5844   USE_NLS=yes
5845 fi;
5846   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5847 echo "${ECHO_T}$USE_NLS" >&6
5848
5849
5850
5851
5852
5853
5854 # Prepare PATH_SEPARATOR.
5855 # The user is always right.
5856 if test "${PATH_SEPARATOR+set}" != set; then
5857   echo "#! /bin/sh" >conf$$.sh
5858   echo  "exit 0"   >>conf$$.sh
5859   chmod +x conf$$.sh
5860   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5861     PATH_SEPARATOR=';'
5862   else
5863     PATH_SEPARATOR=:
5864   fi
5865   rm -f conf$$.sh
5866 fi
5867
5868 # Find out how to test for executable files. Don't use a zero-byte file,
5869 # as systems may use methods other than mode bits to determine executability.
5870 cat >conf$$.file <<_ASEOF
5871 #! /bin/sh
5872 exit 0
5873 _ASEOF
5874 chmod +x conf$$.file
5875 if test -x conf$$.file >/dev/null 2>&1; then
5876   ac_executable_p="test -x"
5877 else
5878   ac_executable_p="test -f"
5879 fi
5880 rm -f conf$$.file
5881
5882 # Extract the first word of "msgfmt", so it can be a program name with args.
5883 set dummy msgfmt; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_path_MSGFMT+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   case "$MSGFMT" in
5890   [\\/]* | ?:[\\/]*)
5891     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5892     ;;
5893   *)
5894     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5895     for ac_dir in $PATH; do
5896       IFS="$ac_save_IFS"
5897       test -z "$ac_dir" && ac_dir=.
5898       for ac_exec_ext in '' $ac_executable_extensions; do
5899         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5900           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5901      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5902             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5903             break 2
5904           fi
5905         fi
5906       done
5907     done
5908     IFS="$ac_save_IFS"
5909   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5910     ;;
5911 esac
5912 fi
5913 MSGFMT="$ac_cv_path_MSGFMT"
5914 if test "$MSGFMT" != ":"; then
5915   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5916 echo "${ECHO_T}$MSGFMT" >&6
5917 else
5918   echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5923 set dummy gmsgfmt; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case $GMSGFMT in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947
5948   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5949   ;;
5950 esac
5951 fi
5952 GMSGFMT=$ac_cv_path_GMSGFMT
5953
5954 if test -n "$GMSGFMT"; then
5955   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5956 echo "${ECHO_T}$GMSGFMT" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962
5963
5964 # Prepare PATH_SEPARATOR.
5965 # The user is always right.
5966 if test "${PATH_SEPARATOR+set}" != set; then
5967   echo "#! /bin/sh" >conf$$.sh
5968   echo  "exit 0"   >>conf$$.sh
5969   chmod +x conf$$.sh
5970   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5971     PATH_SEPARATOR=';'
5972   else
5973     PATH_SEPARATOR=:
5974   fi
5975   rm -f conf$$.sh
5976 fi
5977
5978 # Find out how to test for executable files. Don't use a zero-byte file,
5979 # as systems may use methods other than mode bits to determine executability.
5980 cat >conf$$.file <<_ASEOF
5981 #! /bin/sh
5982 exit 0
5983 _ASEOF
5984 chmod +x conf$$.file
5985 if test -x conf$$.file >/dev/null 2>&1; then
5986   ac_executable_p="test -x"
5987 else
5988   ac_executable_p="test -f"
5989 fi
5990 rm -f conf$$.file
5991
5992 # Extract the first word of "xgettext", so it can be a program name with args.
5993 set dummy xgettext; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   case "$XGETTEXT" in
6000   [\\/]* | ?:[\\/]*)
6001     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6002     ;;
6003   *)
6004     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6005     for ac_dir in $PATH; do
6006       IFS="$ac_save_IFS"
6007       test -z "$ac_dir" && ac_dir=.
6008       for ac_exec_ext in '' $ac_executable_extensions; do
6009         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6010           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6011      (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
6012             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6013             break 2
6014           fi
6015         fi
6016       done
6017     done
6018     IFS="$ac_save_IFS"
6019   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6020     ;;
6021 esac
6022 fi
6023 XGETTEXT="$ac_cv_path_XGETTEXT"
6024 if test "$XGETTEXT" != ":"; then
6025   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6026 echo "${ECHO_T}$XGETTEXT" >&6
6027 else
6028   echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030 fi
6031
6032     rm -f messages.po
6033
6034
6035 # Prepare PATH_SEPARATOR.
6036 # The user is always right.
6037 if test "${PATH_SEPARATOR+set}" != set; then
6038   echo "#! /bin/sh" >conf$$.sh
6039   echo  "exit 0"   >>conf$$.sh
6040   chmod +x conf$$.sh
6041   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6042     PATH_SEPARATOR=';'
6043   else
6044     PATH_SEPARATOR=:
6045   fi
6046   rm -f conf$$.sh
6047 fi
6048
6049 # Find out how to test for executable files. Don't use a zero-byte file,
6050 # as systems may use methods other than mode bits to determine executability.
6051 cat >conf$$.file <<_ASEOF
6052 #! /bin/sh
6053 exit 0
6054 _ASEOF
6055 chmod +x conf$$.file
6056 if test -x conf$$.file >/dev/null 2>&1; then
6057   ac_executable_p="test -x"
6058 else
6059   ac_executable_p="test -f"
6060 fi
6061 rm -f conf$$.file
6062
6063 # Extract the first word of "msgmerge", so it can be a program name with args.
6064 set dummy msgmerge; ac_word=$2
6065 echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6067 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   case "$MSGMERGE" in
6071   [\\/]* | ?:[\\/]*)
6072     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6073     ;;
6074   *)
6075     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6076     for ac_dir in $PATH; do
6077       IFS="$ac_save_IFS"
6078       test -z "$ac_dir" && ac_dir=.
6079       for ac_exec_ext in '' $ac_executable_extensions; do
6080         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6081           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6082             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6083             break 2
6084           fi
6085         fi
6086       done
6087     done
6088     IFS="$ac_save_IFS"
6089   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6090     ;;
6091 esac
6092 fi
6093 MSGMERGE="$ac_cv_path_MSGMERGE"
6094 if test "$MSGMERGE" != ":"; then
6095   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6096 echo "${ECHO_T}$MSGMERGE" >&6
6097 else
6098   echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6
6100 fi
6101
6102
6103       if test "$GMSGFMT" != ":"; then
6104             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6105        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6106       : ;
6107     else
6108       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6109       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6110 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6111       GMSGFMT=":"
6112     fi
6113   fi
6114
6115       if test "$XGETTEXT" != ":"; then
6116             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6117        (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
6118       : ;
6119     else
6120       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6121 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6122       XGETTEXT=":"
6123     fi
6124         rm -f messages.po
6125   fi
6126
6127             ac_config_commands="$ac_config_commands default-1"
6128
6129
6130 echo "$as_me:$LINENO: checking for off_t" >&5
6131 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6132 if test "${ac_cv_type_off_t+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 $ac_includes_default
6142 int
6143 main ()
6144 {
6145 if ((off_t *) 0)
6146   return 0;
6147 if (sizeof (off_t))
6148   return 0;
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155   (eval $ac_compile) 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } &&
6162          { ac_try='test -z "$ac_c_werror_flag"
6163                          || test ! -s conftest.err'
6164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165   (eval $ac_try) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; } &&
6169          { ac_try='test -s conftest.$ac_objext'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; }; then
6175   ac_cv_type_off_t=yes
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 ac_cv_type_off_t=no
6181 fi
6182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6185 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6186 if test $ac_cv_type_off_t = yes; then
6187   :
6188 else
6189
6190 cat >>confdefs.h <<_ACEOF
6191 #define off_t long
6192 _ACEOF
6193
6194 fi
6195
6196 echo "$as_me:$LINENO: checking for size_t" >&5
6197 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6198 if test "${ac_cv_type_size_t+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207 $ac_includes_default
6208 int
6209 main ()
6210 {
6211 if ((size_t *) 0)
6212   return 0;
6213 if (sizeof (size_t))
6214   return 0;
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221   (eval $ac_compile) 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -z "$ac_c_werror_flag"
6229                          || test ! -s conftest.err'
6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231   (eval $ac_try) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }; } &&
6235          { ac_try='test -s conftest.$ac_objext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   ac_cv_type_size_t=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cv_type_size_t=no
6247 fi
6248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6251 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6252 if test $ac_cv_type_size_t = yes; then
6253   :
6254 else
6255
6256 cat >>confdefs.h <<_ACEOF
6257 #define size_t unsigned
6258 _ACEOF
6259
6260 fi
6261
6262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6263 # for constant arguments.  Useless!
6264 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6266 if test "${ac_cv_working_alloca_h+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 #include <alloca.h>
6276 int
6277 main ()
6278 {
6279 char *p = (char *) alloca (2 * sizeof (int));
6280   ;
6281   return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286   (eval $ac_link) 2>conftest.er1
6287   ac_status=$?
6288   grep -v '^ *+' conftest.er1 >conftest.err
6289   rm -f conftest.er1
6290   cat conftest.err >&5
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -z "$ac_c_werror_flag"
6294                          || test ! -s conftest.err'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; } &&
6300          { ac_try='test -s conftest$ac_exeext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_cv_working_alloca_h=yes
6307 else
6308   echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_cv_working_alloca_h=no
6312 fi
6313 rm -f conftest.err conftest.$ac_objext \
6314       conftest$ac_exeext conftest.$ac_ext
6315 fi
6316 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6317 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6318 if test $ac_cv_working_alloca_h = yes; then
6319
6320 cat >>confdefs.h <<\_ACEOF
6321 #define HAVE_ALLOCA_H 1
6322 _ACEOF
6323
6324 fi
6325
6326 echo "$as_me:$LINENO: checking for alloca" >&5
6327 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6328 if test "${ac_cv_func_alloca_works+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #ifdef __GNUC__
6338 # define alloca __builtin_alloca
6339 #else
6340 # ifdef _MSC_VER
6341 #  include <malloc.h>
6342 #  define alloca _alloca
6343 # else
6344 #  if HAVE_ALLOCA_H
6345 #   include <alloca.h>
6346 #  else
6347 #   ifdef _AIX
6348  #pragma alloca
6349 #   else
6350 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6351 char *alloca ();
6352 #    endif
6353 #   endif
6354 #  endif
6355 # endif
6356 #endif
6357
6358 int
6359 main ()
6360 {
6361 char *p = (char *) alloca (1);
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368   (eval $ac_link) 2>conftest.er1
6369   ac_status=$?
6370   grep -v '^ *+' conftest.er1 >conftest.err
6371   rm -f conftest.er1
6372   cat conftest.err >&5
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -z "$ac_c_werror_flag"
6376                          || test ! -s conftest.err'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; } &&
6382          { ac_try='test -s conftest$ac_exeext'
6383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384   (eval $ac_try) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   ac_cv_func_alloca_works=yes
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_cv_func_alloca_works=no
6394 fi
6395 rm -f conftest.err conftest.$ac_objext \
6396       conftest$ac_exeext conftest.$ac_ext
6397 fi
6398 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6400
6401 if test $ac_cv_func_alloca_works = yes; then
6402
6403 cat >>confdefs.h <<\_ACEOF
6404 #define HAVE_ALLOCA 1
6405 _ACEOF
6406
6407 else
6408   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6409 # that cause trouble.  Some versions do not even contain alloca or
6410 # contain a buggy version.  If you still want to use their alloca,
6411 # use ar to extract alloca.o from them instead of compiling alloca.c.
6412
6413 ALLOCA=alloca.$ac_objext
6414
6415 cat >>confdefs.h <<\_ACEOF
6416 #define C_ALLOCA 1
6417 _ACEOF
6418
6419
6420 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6422 if test "${ac_cv_os_cray+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h.  */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h.  */
6431 #if defined(CRAY) && ! defined(CRAY2)
6432 webecray
6433 #else
6434 wenotbecray
6435 #endif
6436
6437 _ACEOF
6438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6439   $EGREP "webecray" >/dev/null 2>&1; then
6440   ac_cv_os_cray=yes
6441 else
6442   ac_cv_os_cray=no
6443 fi
6444 rm -f conftest*
6445
6446 fi
6447 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6448 echo "${ECHO_T}$ac_cv_os_cray" >&6
6449 if test $ac_cv_os_cray = yes; then
6450   for ac_func in _getb67 GETB67 getb67; do
6451     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6452 echo "$as_me:$LINENO: checking for $ac_func" >&5
6453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_var+set}\" = set"; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6465 #define $ac_func innocuous_$ac_func
6466
6467 /* System header to define __stub macros and hopefully few prototypes,
6468     which can conflict with char $ac_func (); below.
6469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6470     <limits.h> exists even on freestanding compilers.  */
6471
6472 #ifdef __STDC__
6473 # include <limits.h>
6474 #else
6475 # include <assert.h>
6476 #endif
6477
6478 #undef $ac_func
6479
6480 /* Override any gcc2 internal prototype to avoid an error.  */
6481 #ifdef __cplusplus
6482 extern "C"
6483 {
6484 #endif
6485 /* We use char because int might match the return type of a gcc2
6486    builtin and then its argument prototype would still apply.  */
6487 char $ac_func ();
6488 /* The GNU C library defines this for functions which it implements
6489     to always fail with ENOSYS.  Some functions are actually named
6490     something starting with __ and the normal name is an alias.  */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6492 choke me
6493 #else
6494 char (*f) () = $ac_func;
6495 #endif
6496 #ifdef __cplusplus
6497 }
6498 #endif
6499
6500 int
6501 main ()
6502 {
6503 return f != $ac_func;
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510   (eval $ac_link) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest$ac_exeext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   eval "$as_ac_var=yes"
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 eval "$as_ac_var=no"
6536 fi
6537 rm -f conftest.err conftest.$ac_objext \
6538       conftest$ac_exeext conftest.$ac_ext
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6542 if test `eval echo '${'$as_ac_var'}'` = yes; then
6543
6544 cat >>confdefs.h <<_ACEOF
6545 #define CRAY_STACKSEG_END $ac_func
6546 _ACEOF
6547
6548     break
6549 fi
6550
6551   done
6552 fi
6553
6554 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6555 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6556 if test "${ac_cv_c_stack_direction+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   if test "$cross_compiling" = yes; then
6560   ac_cv_c_stack_direction=0
6561 else
6562   cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h.  */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h.  */
6568 int
6569 find_stack_direction ()
6570 {
6571   static char *addr = 0;
6572   auto char dummy;
6573   if (addr == 0)
6574     {
6575       addr = &dummy;
6576       return find_stack_direction ();
6577     }
6578   else
6579     return (&dummy > addr) ? 1 : -1;
6580 }
6581
6582 int
6583 main ()
6584 {
6585   exit (find_stack_direction () < 0);
6586 }
6587 _ACEOF
6588 rm -f conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590   (eval $ac_link) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   ac_cv_c_stack_direction=1
6600 else
6601   echo "$as_me: program exited with status $ac_status" >&5
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 ( exit $ac_status )
6606 ac_cv_c_stack_direction=-1
6607 fi
6608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6609 fi
6610 fi
6611 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6613
6614 cat >>confdefs.h <<_ACEOF
6615 #define STACK_DIRECTION $ac_cv_c_stack_direction
6616 _ACEOF
6617
6618
6619 fi
6620
6621
6622
6623 for ac_header in stdlib.h unistd.h
6624 do
6625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6627   echo "$as_me:$LINENO: checking for $ac_header" >&5
6628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 fi
6632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6634 else
6635   # Is the header compilable?
6636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h.  */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h.  */
6644 $ac_includes_default
6645 #include <$ac_header>
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649   (eval $ac_compile) 2>conftest.er1
6650   ac_status=$?
6651   grep -v '^ *+' conftest.er1 >conftest.err
6652   rm -f conftest.er1
6653   cat conftest.err >&5
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -z "$ac_c_werror_flag"
6657                          || test ! -s conftest.err'
6658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659   (eval $ac_try) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); }; } &&
6663          { ac_try='test -s conftest.$ac_objext'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; }; then
6669   ac_header_compiler=yes
6670 else
6671   echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 ac_header_compiler=no
6675 fi
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6678 echo "${ECHO_T}$ac_header_compiler" >&6
6679
6680 # Is the header present?
6681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689 #include <$ac_header>
6690 _ACEOF
6691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6693   ac_status=$?
6694   grep -v '^ *+' conftest.er1 >conftest.err
6695   rm -f conftest.er1
6696   cat conftest.err >&5
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } >/dev/null; then
6699   if test -s conftest.err; then
6700     ac_cpp_err=$ac_c_preproc_warn_flag
6701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6702   else
6703     ac_cpp_err=
6704   fi
6705 else
6706   ac_cpp_err=yes
6707 fi
6708 if test -z "$ac_cpp_err"; then
6709   ac_header_preproc=yes
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714   ac_header_preproc=no
6715 fi
6716 rm -f conftest.err conftest.$ac_ext
6717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6718 echo "${ECHO_T}$ac_header_preproc" >&6
6719
6720 # So?  What about this header?
6721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6722   yes:no: )
6723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6727     ac_header_preproc=yes
6728     ;;
6729   no:yes:* )
6730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6742     (
6743       cat <<\_ASBOX
6744 ## ------------------------------- ##
6745 ## Report this to bug-bash@gnu.org ##
6746 ## ------------------------------- ##
6747 _ASBOX
6748     ) |
6749       sed "s/^/$as_me: WARNING:     /" >&2
6750     ;;
6751 esac
6752 echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   eval "$as_ac_Header=\$ac_header_preproc"
6758 fi
6759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6761
6762 fi
6763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6764   cat >>confdefs.h <<_ACEOF
6765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6766 _ACEOF
6767
6768 fi
6769
6770 done
6771
6772
6773 for ac_func in getpagesize
6774 do
6775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6776 echo "$as_me:$LINENO: checking for $ac_func" >&5
6777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6778 if eval "test \"\${$as_ac_var+set}\" = set"; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6789 #define $ac_func innocuous_$ac_func
6790
6791 /* System header to define __stub macros and hopefully few prototypes,
6792     which can conflict with char $ac_func (); below.
6793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6794     <limits.h> exists even on freestanding compilers.  */
6795
6796 #ifdef __STDC__
6797 # include <limits.h>
6798 #else
6799 # include <assert.h>
6800 #endif
6801
6802 #undef $ac_func
6803
6804 /* Override any gcc2 internal prototype to avoid an error.  */
6805 #ifdef __cplusplus
6806 extern "C"
6807 {
6808 #endif
6809 /* We use char because int might match the return type of a gcc2
6810    builtin and then its argument prototype would still apply.  */
6811 char $ac_func ();
6812 /* The GNU C library defines this for functions which it implements
6813     to always fail with ENOSYS.  Some functions are actually named
6814     something starting with __ and the normal name is an alias.  */
6815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6816 choke me
6817 #else
6818 char (*f) () = $ac_func;
6819 #endif
6820 #ifdef __cplusplus
6821 }
6822 #endif
6823
6824 int
6825 main ()
6826 {
6827 return f != $ac_func;
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834   (eval $ac_link) 2>conftest.er1
6835   ac_status=$?
6836   grep -v '^ *+' conftest.er1 >conftest.err
6837   rm -f conftest.er1
6838   cat conftest.err >&5
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); } &&
6841          { ac_try='test -z "$ac_c_werror_flag"
6842                          || test ! -s conftest.err'
6843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844   (eval $ac_try) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; } &&
6848          { ac_try='test -s conftest$ac_exeext'
6849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850   (eval $ac_try) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); }; }; then
6854   eval "$as_ac_var=yes"
6855 else
6856   echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 eval "$as_ac_var=no"
6860 fi
6861 rm -f conftest.err conftest.$ac_objext \
6862       conftest$ac_exeext conftest.$ac_ext
6863 fi
6864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6866 if test `eval echo '${'$as_ac_var'}'` = yes; then
6867   cat >>confdefs.h <<_ACEOF
6868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6869 _ACEOF
6870
6871 fi
6872 done
6873
6874 echo "$as_me:$LINENO: checking for working mmap" >&5
6875 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6876 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   if test "$cross_compiling" = yes; then
6880   ac_cv_func_mmap_fixed_mapped=no
6881 else
6882   cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888 $ac_includes_default
6889 /* malloc might have been renamed as rpl_malloc. */
6890 #undef malloc
6891
6892 /* Thanks to Mike Haertel and Jim Avera for this test.
6893    Here is a matrix of mmap possibilities:
6894         mmap private not fixed
6895         mmap private fixed at somewhere currently unmapped
6896         mmap private fixed at somewhere already mapped
6897         mmap shared not fixed
6898         mmap shared fixed at somewhere currently unmapped
6899         mmap shared fixed at somewhere already mapped
6900    For private mappings, we should verify that changes cannot be read()
6901    back from the file, nor mmap's back from the file at a different
6902    address.  (There have been systems where private was not correctly
6903    implemented like the infamous i386 svr4.0, and systems where the
6904    VM page cache was not coherent with the file system buffer cache
6905    like early versions of FreeBSD and possibly contemporary NetBSD.)
6906    For shared mappings, we should conversely verify that changes get
6907    propagated back to all the places they're supposed to be.
6908
6909    Grep wants private fixed already mapped.
6910    The main things grep needs to know about mmap are:
6911    * does it exist and is it safe to write into the mmap'd area
6912    * how to use it (BSD variants)  */
6913
6914 #include <fcntl.h>
6915 #include <sys/mman.h>
6916
6917 #if !STDC_HEADERS && !HAVE_STDLIB_H
6918 char *malloc ();
6919 #endif
6920
6921 /* This mess was copied from the GNU getpagesize.h.  */
6922 #if !HAVE_GETPAGESIZE
6923 /* Assume that all systems that can run configure have sys/param.h.  */
6924 # if !HAVE_SYS_PARAM_H
6925 #  define HAVE_SYS_PARAM_H 1
6926 # endif
6927
6928 # ifdef _SC_PAGESIZE
6929 #  define getpagesize() sysconf(_SC_PAGESIZE)
6930 # else /* no _SC_PAGESIZE */
6931 #  if HAVE_SYS_PARAM_H
6932 #   include <sys/param.h>
6933 #   ifdef EXEC_PAGESIZE
6934 #    define getpagesize() EXEC_PAGESIZE
6935 #   else /* no EXEC_PAGESIZE */
6936 #    ifdef NBPG
6937 #     define getpagesize() NBPG * CLSIZE
6938 #     ifndef CLSIZE
6939 #      define CLSIZE 1
6940 #     endif /* no CLSIZE */
6941 #    else /* no NBPG */
6942 #     ifdef NBPC
6943 #      define getpagesize() NBPC
6944 #     else /* no NBPC */
6945 #      ifdef PAGESIZE
6946 #       define getpagesize() PAGESIZE
6947 #      endif /* PAGESIZE */
6948 #     endif /* no NBPC */
6949 #    endif /* no NBPG */
6950 #   endif /* no EXEC_PAGESIZE */
6951 #  else /* no HAVE_SYS_PARAM_H */
6952 #   define getpagesize() 8192   /* punt totally */
6953 #  endif /* no HAVE_SYS_PARAM_H */
6954 # endif /* no _SC_PAGESIZE */
6955
6956 #endif /* no HAVE_GETPAGESIZE */
6957
6958 int
6959 main ()
6960 {
6961   char *data, *data2, *data3;
6962   int i, pagesize;
6963   int fd;
6964
6965   pagesize = getpagesize ();
6966
6967   /* First, make a file with some known garbage in it. */
6968   data = (char *) malloc (pagesize);
6969   if (!data)
6970     exit (1);
6971   for (i = 0; i < pagesize; ++i)
6972     *(data + i) = rand ();
6973   umask (0);
6974   fd = creat ("conftest.mmap", 0600);
6975   if (fd < 0)
6976     exit (1);
6977   if (write (fd, data, pagesize) != pagesize)
6978     exit (1);
6979   close (fd);
6980
6981   /* Next, try to mmap the file at a fixed address which already has
6982      something else allocated at it.  If we can, also make sure that
6983      we see the same garbage.  */
6984   fd = open ("conftest.mmap", O_RDWR);
6985   if (fd < 0)
6986     exit (1);
6987   data2 = (char *) malloc (2 * pagesize);
6988   if (!data2)
6989     exit (1);
6990   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6991   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6992                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6993     exit (1);
6994   for (i = 0; i < pagesize; ++i)
6995     if (*(data + i) != *(data2 + i))
6996       exit (1);
6997
6998   /* Finally, make sure that changes to the mapped area do not
6999      percolate back to the file as seen by read().  (This is a bug on
7000      some variants of i386 svr4.0.)  */
7001   for (i = 0; i < pagesize; ++i)
7002     *(data2 + i) = *(data2 + i) + 1;
7003   data3 = (char *) malloc (pagesize);
7004   if (!data3)
7005     exit (1);
7006   if (read (fd, data3, pagesize) != pagesize)
7007     exit (1);
7008   for (i = 0; i < pagesize; ++i)
7009     if (*(data + i) != *(data3 + i))
7010       exit (1);
7011   close (fd);
7012   exit (0);
7013 }
7014 _ACEOF
7015 rm -f conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017   (eval $ac_link) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   ac_cv_func_mmap_fixed_mapped=yes
7027 else
7028   echo "$as_me: program exited with status $ac_status" >&5
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ( exit $ac_status )
7033 ac_cv_func_mmap_fixed_mapped=no
7034 fi
7035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7036 fi
7037 fi
7038 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7039 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7040 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7041
7042 cat >>confdefs.h <<\_ACEOF
7043 #define HAVE_MMAP 1
7044 _ACEOF
7045
7046 fi
7047 rm -f conftest.mmap
7048
7049
7050     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7051 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7052 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061
7062 #include <features.h>
7063 #ifdef __GNU_LIBRARY__
7064  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7065   Lucky GNU user
7066  #endif
7067 #endif
7068
7069 _ACEOF
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7072   ac_cv_gnu_library_2_1=yes
7073 else
7074   ac_cv_gnu_library_2_1=no
7075 fi
7076 rm -f conftest*
7077
7078
7079
7080 fi
7081 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7082 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7083
7084     GLIBC21="$ac_cv_gnu_library_2_1"
7085
7086
7087
7088
7089   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7090 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7091 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094
7095       if test "$cross_compiling" = yes; then
7096
7097           # Guess based on the CPU.
7098           case "$host_cpu" in
7099             alpha* | i3456786 | m68k | s390*)
7100               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7101             *)
7102               gt_cv_int_divbyzero_sigfpe="guessing no";;
7103           esac
7104
7105 else
7106   cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112
7113 #include <stdlib.h>
7114 #include <signal.h>
7115
7116 static void
7117 #ifdef __cplusplus
7118 sigfpe_handler (int sig)
7119 #else
7120 sigfpe_handler (sig) int sig;
7121 #endif
7122 {
7123   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7124   exit (sig != SIGFPE);
7125 }
7126
7127 int x = 1;
7128 int y = 0;
7129 int z;
7130 int nan;
7131
7132 int main ()
7133 {
7134   signal (SIGFPE, sigfpe_handler);
7135 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7136 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7137   signal (SIGTRAP, sigfpe_handler);
7138 #endif
7139 /* Linux/SPARC yields signal SIGILL.  */
7140 #if defined (__sparc__) && defined (__linux__)
7141   signal (SIGILL, sigfpe_handler);
7142 #endif
7143
7144   z = x / y;
7145   nan = y / y;
7146   exit (1);
7147 }
7148
7149 _ACEOF
7150 rm -f conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152   (eval $ac_link) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   gt_cv_int_divbyzero_sigfpe=yes
7162 else
7163   echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167 ( exit $ac_status )
7168 gt_cv_int_divbyzero_sigfpe=no
7169 fi
7170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7171 fi
7172
7173 fi
7174 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7175 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7176   case "$gt_cv_int_divbyzero_sigfpe" in
7177     *yes) value=1;;
7178     *) value=0;;
7179   esac
7180
7181 cat >>confdefs.h <<_ACEOF
7182 #define INTDIV0_RAISES_SIGFPE $value
7183 _ACEOF
7184
7185
7186
7187   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7188 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7189 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #include <sys/types.h>
7199 #include <inttypes.h>
7200 int
7201 main ()
7202 {
7203 uintmax_t i = (uintmax_t) -1;
7204   ;
7205   return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210   (eval $ac_compile) 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } &&
7217          { ac_try='test -z "$ac_c_werror_flag"
7218                          || test ! -s conftest.err'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; } &&
7224          { ac_try='test -s conftest.$ac_objext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   jm_ac_cv_header_inttypes_h=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 jm_ac_cv_header_inttypes_h=no
7236 fi
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7240 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7241   if test $jm_ac_cv_header_inttypes_h = yes; then
7242
7243 cat >>confdefs.h <<_ACEOF
7244 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7245 _ACEOF
7246
7247   fi
7248
7249
7250   echo "$as_me:$LINENO: checking for stdint.h" >&5
7251 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7252 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261 #include <sys/types.h>
7262 #include <stdint.h>
7263 int
7264 main ()
7265 {
7266 uintmax_t i = (uintmax_t) -1;
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273   (eval $ac_compile) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -z "$ac_c_werror_flag"
7281                          || test ! -s conftest.err'
7282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest.$ac_objext'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; }; then
7293   jm_ac_cv_header_stdint_h=yes
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 jm_ac_cv_header_stdint_h=no
7299 fi
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 fi
7302 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7303 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7304   if test $jm_ac_cv_header_stdint_h = yes; then
7305
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_STDINT_H_WITH_UINTMAX 1
7308 _ACEOF
7309
7310   fi
7311
7312
7313   echo "$as_me:$LINENO: checking for unsigned long long" >&5
7314 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7315 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 unsigned long long ull = 1; int i = 63;
7325 int
7326 main ()
7327 {
7328 unsigned long long ullmax = (unsigned long long) -1;
7329      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336   (eval $ac_link) 2>conftest.er1
7337   ac_status=$?
7338   grep -v '^ *+' conftest.er1 >conftest.err
7339   rm -f conftest.er1
7340   cat conftest.err >&5
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } &&
7343          { ac_try='test -z "$ac_c_werror_flag"
7344                          || test ! -s conftest.err'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; } &&
7350          { ac_try='test -s conftest$ac_exeext'
7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352   (eval $ac_try) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); }; }; then
7356   ac_cv_type_unsigned_long_long=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_cv_type_unsigned_long_long=no
7362 fi
7363 rm -f conftest.err conftest.$ac_objext \
7364       conftest$ac_exeext conftest.$ac_ext
7365 fi
7366 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7367 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7368   if test $ac_cv_type_unsigned_long_long = yes; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_UNSIGNED_LONG_LONG 1
7372 _ACEOF
7373
7374   fi
7375
7376
7377
7378
7379   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7380
7381     test $ac_cv_type_unsigned_long_long = yes \
7382       && ac_type='unsigned long long' \
7383       || ac_type='unsigned long'
7384
7385 cat >>confdefs.h <<_ACEOF
7386 #define uintmax_t $ac_type
7387 _ACEOF
7388
7389   else
7390
7391 cat >>confdefs.h <<\_ACEOF
7392 #define HAVE_UINTMAX_T 1
7393 _ACEOF
7394
7395   fi
7396
7397
7398   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7399 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7400 if test "${gt_cv_header_inttypes_h+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403
7404     cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 #include <sys/types.h>
7411 #include <inttypes.h>
7412 int
7413 main ()
7414 {
7415
7416   ;
7417   return 0;
7418 }
7419 _ACEOF
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422   (eval $ac_compile) 2>conftest.er1
7423   ac_status=$?
7424   grep -v '^ *+' conftest.er1 >conftest.err
7425   rm -f conftest.er1
7426   cat conftest.err >&5
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } &&
7429          { ac_try='test -z "$ac_c_werror_flag"
7430                          || test ! -s conftest.err'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; } &&
7436          { ac_try='test -s conftest.$ac_objext'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; }; then
7442   gt_cv_header_inttypes_h=yes
7443 else
7444   echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 gt_cv_header_inttypes_h=no
7448 fi
7449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7450
7451 fi
7452 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7453 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7454   if test $gt_cv_header_inttypes_h = yes; then
7455
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_INTTYPES_H 1
7458 _ACEOF
7459
7460   fi
7461
7462
7463
7464   if test $gt_cv_header_inttypes_h = yes; then
7465     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7466 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7467 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470
7471         cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 #include <inttypes.h>
7478 #ifdef PRId32
7479 char *p = PRId32;
7480 #endif
7481
7482 int
7483 main ()
7484 {
7485
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492   (eval $ac_compile) 2>conftest.er1
7493   ac_status=$?
7494   grep -v '^ *+' conftest.er1 >conftest.err
7495   rm -f conftest.er1
7496   cat conftest.err >&5
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); } &&
7499          { ac_try='test -z "$ac_c_werror_flag"
7500                          || test ! -s conftest.err'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; } &&
7506          { ac_try='test -s conftest.$ac_objext'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; }; then
7512   gt_cv_inttypes_pri_broken=no
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517 gt_cv_inttypes_pri_broken=yes
7518 fi
7519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520
7521 fi
7522 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7523 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7524   fi
7525   if test "$gt_cv_inttypes_pri_broken" = yes; then
7526
7527 cat >>confdefs.h <<_ACEOF
7528 #define PRI_MACROS_BROKEN 1
7529 _ACEOF
7530
7531   fi
7532
7533
7534       if test "X$prefix" = "XNONE"; then
7535     acl_final_prefix="$ac_default_prefix"
7536   else
7537     acl_final_prefix="$prefix"
7538   fi
7539   if test "X$exec_prefix" = "XNONE"; then
7540     acl_final_exec_prefix='${prefix}'
7541   else
7542     acl_final_exec_prefix="$exec_prefix"
7543   fi
7544   acl_save_prefix="$prefix"
7545   prefix="$acl_final_prefix"
7546   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7547   prefix="$acl_save_prefix"
7548
7549
7550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7551 if test "${with_gnu_ld+set}" = set; then
7552   withval="$with_gnu_ld"
7553   test "$withval" = no || with_gnu_ld=yes
7554 else
7555   with_gnu_ld=no
7556 fi;
7557 # Prepare PATH_SEPARATOR.
7558 # The user is always right.
7559 if test "${PATH_SEPARATOR+set}" != set; then
7560   echo "#! /bin/sh" >conf$$.sh
7561   echo  "exit 0"   >>conf$$.sh
7562   chmod +x conf$$.sh
7563   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7564     PATH_SEPARATOR=';'
7565   else
7566     PATH_SEPARATOR=:
7567   fi
7568   rm -f conf$$.sh
7569 fi
7570 ac_prog=ld
7571 if test "$GCC" = yes; then
7572   # Check if gcc -print-prog-name=ld gives a path.
7573   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7574 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7575   case $host in
7576   *-*-mingw*)
7577     # gcc leaves a trailing carriage return which upsets mingw
7578     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7579   *)
7580     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7581   esac
7582   case $ac_prog in
7583     # Accept absolute paths.
7584     [\\/]* | [A-Za-z]:[\\/]*)
7585       re_direlt='/[^/][^/]*/\.\./'
7586       # Canonicalize the path of ld
7587       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7588       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7589         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7590       done
7591       test -z "$LD" && LD="$ac_prog"
7592       ;;
7593   "")
7594     # If it fails, then pretend we aren't using GCC.
7595     ac_prog=ld
7596     ;;
7597   *)
7598     # If it is relative, then search for the first ld in PATH.
7599     with_gnu_ld=unknown
7600     ;;
7601   esac
7602 elif test "$with_gnu_ld" = yes; then
7603   echo "$as_me:$LINENO: checking for GNU ld" >&5
7604 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7605 else
7606   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7607 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7608 fi
7609 if test "${acl_cv_path_LD+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   if test -z "$LD"; then
7613   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7614   for ac_dir in $PATH; do
7615     test -z "$ac_dir" && ac_dir=.
7616     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7617       acl_cv_path_LD="$ac_dir/$ac_prog"
7618       # Check to see if the program is GNU ld.  I'd rather use --version,
7619       # but apparently some GNU ld's only accept -v.
7620       # Break only if it was the GNU/non-GNU ld that we prefer.
7621       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7622         test "$with_gnu_ld" != no && break
7623       else
7624         test "$with_gnu_ld" != yes && break
7625       fi
7626     fi
7627   done
7628   IFS="$ac_save_ifs"
7629 else
7630   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7631 fi
7632 fi
7633
7634 LD="$acl_cv_path_LD"
7635 if test -n "$LD"; then
7636   echo "$as_me:$LINENO: result: $LD" >&5
7637 echo "${ECHO_T}$LD" >&6
7638 else
7639   echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7641 fi
7642 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7643 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7644    { (exit 1); exit 1; }; }
7645 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7646 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7647 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7651 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7652   acl_cv_prog_gnu_ld=yes
7653 else
7654   acl_cv_prog_gnu_ld=no
7655 fi
7656 fi
7657 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7658 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7659 with_gnu_ld=$acl_cv_prog_gnu_ld
7660
7661
7662
7663                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7664 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7665 if test "${acl_cv_rpath+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668
7669     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7670     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7671     . ./conftest.sh
7672     rm -f ./conftest.sh
7673     acl_cv_rpath=done
7674
7675 fi
7676 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7677 echo "${ECHO_T}$acl_cv_rpath" >&6
7678   wl="$acl_cv_wl"
7679   libext="$acl_cv_libext"
7680   shlibext="$acl_cv_shlibext"
7681   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7682   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7683   hardcode_direct="$acl_cv_hardcode_direct"
7684   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7685     # Check whether --enable-rpath or --disable-rpath was given.
7686 if test "${enable_rpath+set}" = set; then
7687   enableval="$enable_rpath"
7688   :
7689 else
7690   enable_rpath=yes
7691 fi;
7692
7693
7694
7695
7696
7697
7698
7699     use_additional=yes
7700
7701   acl_save_prefix="$prefix"
7702   prefix="$acl_final_prefix"
7703   acl_save_exec_prefix="$exec_prefix"
7704   exec_prefix="$acl_final_exec_prefix"
7705
7706     eval additional_includedir=\"$includedir\"
7707     eval additional_libdir=\"$libdir\"
7708
7709   exec_prefix="$acl_save_exec_prefix"
7710   prefix="$acl_save_prefix"
7711
7712
7713 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7714 if test "${with_libiconv_prefix+set}" = set; then
7715   withval="$with_libiconv_prefix"
7716
7717     if test "X$withval" = "Xno"; then
7718       use_additional=no
7719     else
7720       if test "X$withval" = "X"; then
7721
7722   acl_save_prefix="$prefix"
7723   prefix="$acl_final_prefix"
7724   acl_save_exec_prefix="$exec_prefix"
7725   exec_prefix="$acl_final_exec_prefix"
7726
7727           eval additional_includedir=\"$includedir\"
7728           eval additional_libdir=\"$libdir\"
7729
7730   exec_prefix="$acl_save_exec_prefix"
7731   prefix="$acl_save_prefix"
7732
7733       else
7734         additional_includedir="$withval/include"
7735         additional_libdir="$withval/lib"
7736       fi
7737     fi
7738
7739 fi;
7740       LIBICONV=
7741   LTLIBICONV=
7742   INCICONV=
7743   rpathdirs=
7744   ltrpathdirs=
7745   names_already_handled=
7746   names_next_round='iconv '
7747   while test -n "$names_next_round"; do
7748     names_this_round="$names_next_round"
7749     names_next_round=
7750     for name in $names_this_round; do
7751       already_handled=
7752       for n in $names_already_handled; do
7753         if test "$n" = "$name"; then
7754           already_handled=yes
7755           break
7756         fi
7757       done
7758       if test -z "$already_handled"; then
7759         names_already_handled="$names_already_handled $name"
7760                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7761         eval value=\"\$HAVE_LIB$uppername\"
7762         if test -n "$value"; then
7763           if test "$value" = yes; then
7764             eval value=\"\$LIB$uppername\"
7765             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7766             eval value=\"\$LTLIB$uppername\"
7767             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7768           else
7769                                     :
7770           fi
7771         else
7772                               found_dir=
7773           found_la=
7774           found_so=
7775           found_a=
7776           if test $use_additional = yes; then
7777             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7778               found_dir="$additional_libdir"
7779               found_so="$additional_libdir/lib$name.$shlibext"
7780               if test -f "$additional_libdir/lib$name.la"; then
7781                 found_la="$additional_libdir/lib$name.la"
7782               fi
7783             else
7784               if test -f "$additional_libdir/lib$name.$libext"; then
7785                 found_dir="$additional_libdir"
7786                 found_a="$additional_libdir/lib$name.$libext"
7787                 if test -f "$additional_libdir/lib$name.la"; then
7788                   found_la="$additional_libdir/lib$name.la"
7789                 fi
7790               fi
7791             fi
7792           fi
7793           if test "X$found_dir" = "X"; then
7794             for x in $LDFLAGS $LTLIBICONV; do
7795
7796   acl_save_prefix="$prefix"
7797   prefix="$acl_final_prefix"
7798   acl_save_exec_prefix="$exec_prefix"
7799   exec_prefix="$acl_final_exec_prefix"
7800   eval x=\"$x\"
7801   exec_prefix="$acl_save_exec_prefix"
7802   prefix="$acl_save_prefix"
7803
7804               case "$x" in
7805                 -L*)
7806                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7807                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7808                     found_dir="$dir"
7809                     found_so="$dir/lib$name.$shlibext"
7810                     if test -f "$dir/lib$name.la"; then
7811                       found_la="$dir/lib$name.la"
7812                     fi
7813                   else
7814                     if test -f "$dir/lib$name.$libext"; then
7815                       found_dir="$dir"
7816                       found_a="$dir/lib$name.$libext"
7817                       if test -f "$dir/lib$name.la"; then
7818                         found_la="$dir/lib$name.la"
7819                       fi
7820                     fi
7821                   fi
7822                   ;;
7823               esac
7824               if test "X$found_dir" != "X"; then
7825                 break
7826               fi
7827             done
7828           fi
7829           if test "X$found_dir" != "X"; then
7830                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7831             if test "X$found_so" != "X"; then
7832                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7833                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7834               else
7835                                                                                 haveit=
7836                 for x in $ltrpathdirs; do
7837                   if test "X$x" = "X$found_dir"; then
7838                     haveit=yes
7839                     break
7840                   fi
7841                 done
7842                 if test -z "$haveit"; then
7843                   ltrpathdirs="$ltrpathdirs $found_dir"
7844                 fi
7845                                 if test "$hardcode_direct" = yes; then
7846                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7847                 else
7848                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7849                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7850                                                             haveit=
7851                     for x in $rpathdirs; do
7852                       if test "X$x" = "X$found_dir"; then
7853                         haveit=yes
7854                         break
7855                       fi
7856                     done
7857                     if test -z "$haveit"; then
7858                       rpathdirs="$rpathdirs $found_dir"
7859                     fi
7860                   else
7861                                                                                 haveit=
7862                     for x in $LDFLAGS $LIBICONV; do
7863
7864   acl_save_prefix="$prefix"
7865   prefix="$acl_final_prefix"
7866   acl_save_exec_prefix="$exec_prefix"
7867   exec_prefix="$acl_final_exec_prefix"
7868   eval x=\"$x\"
7869   exec_prefix="$acl_save_exec_prefix"
7870   prefix="$acl_save_prefix"
7871
7872                       if test "X$x" = "X-L$found_dir"; then
7873                         haveit=yes
7874                         break
7875                       fi
7876                     done
7877                     if test -z "$haveit"; then
7878                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7879                     fi
7880                     if test "$hardcode_minus_L" != no; then
7881                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7882                     else
7883                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7884                     fi
7885                   fi
7886                 fi
7887               fi
7888             else
7889               if test "X$found_a" != "X"; then
7890                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7891               else
7892                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7893               fi
7894             fi
7895                         additional_includedir=
7896             case "$found_dir" in
7897               */lib | */lib/)
7898                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7899                 additional_includedir="$basedir/include"
7900                 ;;
7901             esac
7902             if test "X$additional_includedir" != "X"; then
7903                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7904                 haveit=
7905                 if test "X$additional_includedir" = "X/usr/local/include"; then
7906                   if test -n "$GCC"; then
7907                     case $host_os in
7908                       linux*) haveit=yes;;
7909                     esac
7910                   fi
7911                 fi
7912                 if test -z "$haveit"; then
7913                   for x in $CPPFLAGS $INCICONV; do
7914
7915   acl_save_prefix="$prefix"
7916   prefix="$acl_final_prefix"
7917   acl_save_exec_prefix="$exec_prefix"
7918   exec_prefix="$acl_final_exec_prefix"
7919   eval x=\"$x\"
7920   exec_prefix="$acl_save_exec_prefix"
7921   prefix="$acl_save_prefix"
7922
7923                     if test "X$x" = "X-I$additional_includedir"; then
7924                       haveit=yes
7925                       break
7926                     fi
7927                   done
7928                   if test -z "$haveit"; then
7929                     if test -d "$additional_includedir"; then
7930                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7931                     fi
7932                   fi
7933                 fi
7934               fi
7935             fi
7936                         if test -n "$found_la"; then
7937                                                         save_libdir="$libdir"
7938               case "$found_la" in
7939                 */* | *\\*) . "$found_la" ;;
7940                 *) . "./$found_la" ;;
7941               esac
7942               libdir="$save_libdir"
7943                             for dep in $dependency_libs; do
7944                 case "$dep" in
7945                   -L*)
7946                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7947                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7948                       haveit=
7949                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7950                         if test -n "$GCC"; then
7951                           case $host_os in
7952                             linux*) haveit=yes;;
7953                           esac
7954                         fi
7955                       fi
7956                       if test -z "$haveit"; then
7957                         haveit=
7958                         for x in $LDFLAGS $LIBICONV; do
7959
7960   acl_save_prefix="$prefix"
7961   prefix="$acl_final_prefix"
7962   acl_save_exec_prefix="$exec_prefix"
7963   exec_prefix="$acl_final_exec_prefix"
7964   eval x=\"$x\"
7965   exec_prefix="$acl_save_exec_prefix"
7966   prefix="$acl_save_prefix"
7967
7968                           if test "X$x" = "X-L$additional_libdir"; then
7969                             haveit=yes
7970                             break
7971                           fi
7972                         done
7973                         if test -z "$haveit"; then
7974                           if test -d "$additional_libdir"; then
7975                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7976                           fi
7977                         fi
7978                         haveit=
7979                         for x in $LDFLAGS $LTLIBICONV; do
7980
7981   acl_save_prefix="$prefix"
7982   prefix="$acl_final_prefix"
7983   acl_save_exec_prefix="$exec_prefix"
7984   exec_prefix="$acl_final_exec_prefix"
7985   eval x=\"$x\"
7986   exec_prefix="$acl_save_exec_prefix"
7987   prefix="$acl_save_prefix"
7988
7989                           if test "X$x" = "X-L$additional_libdir"; then
7990                             haveit=yes
7991                             break
7992                           fi
7993                         done
7994                         if test -z "$haveit"; then
7995                           if test -d "$additional_libdir"; then
7996                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7997                           fi
7998                         fi
7999                       fi
8000                     fi
8001                     ;;
8002                   -R*)
8003                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8004                     if test "$enable_rpath" != no; then
8005                                                                   haveit=
8006                       for x in $rpathdirs; do
8007                         if test "X$x" = "X$dir"; then
8008                           haveit=yes
8009                           break
8010                         fi
8011                       done
8012                       if test -z "$haveit"; then
8013                         rpathdirs="$rpathdirs $dir"
8014                       fi
8015                                                                   haveit=
8016                       for x in $ltrpathdirs; do
8017                         if test "X$x" = "X$dir"; then
8018                           haveit=yes
8019                           break
8020                         fi
8021                       done
8022                       if test -z "$haveit"; then
8023                         ltrpathdirs="$ltrpathdirs $dir"
8024                       fi
8025                     fi
8026                     ;;
8027                   -l*)
8028                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8029                     ;;
8030                   *.la)
8031                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8032                     ;;
8033                   *)
8034                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8035                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8036                     ;;
8037                 esac
8038               done
8039             fi
8040           else
8041                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8042             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8043           fi
8044         fi
8045       fi
8046     done
8047   done
8048   if test "X$rpathdirs" != "X"; then
8049     if test -n "$hardcode_libdir_separator"; then
8050                         alldirs=
8051       for found_dir in $rpathdirs; do
8052         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8053       done
8054             acl_save_libdir="$libdir"
8055       libdir="$alldirs"
8056       eval flag=\"$hardcode_libdir_flag_spec\"
8057       libdir="$acl_save_libdir"
8058       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8059     else
8060             for found_dir in $rpathdirs; do
8061         acl_save_libdir="$libdir"
8062         libdir="$found_dir"
8063         eval flag=\"$hardcode_libdir_flag_spec\"
8064         libdir="$acl_save_libdir"
8065         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8066       done
8067     fi
8068   fi
8069   if test "X$ltrpathdirs" != "X"; then
8070             for found_dir in $ltrpathdirs; do
8071       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8072     done
8073   fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8089 stdlib.h string.h unistd.h sys/param.h
8090 do
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093   echo "$as_me:$LINENO: checking for $ac_header" >&5
8094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 fi
8098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8100 else
8101   # Is the header compilable?
8102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 $ac_includes_default
8111 #include <$ac_header>
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115   (eval $ac_compile) 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag"
8123                          || test ! -s conftest.err'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest.$ac_objext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_header_compiler=yes
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ac_header_compiler=no
8141 fi
8142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8145
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155 #include <$ac_header>
8156 _ACEOF
8157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159   ac_status=$?
8160   grep -v '^ *+' conftest.er1 >conftest.err
8161   rm -f conftest.er1
8162   cat conftest.err >&5
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } >/dev/null; then
8165   if test -s conftest.err; then
8166     ac_cpp_err=$ac_c_preproc_warn_flag
8167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8168   else
8169     ac_cpp_err=
8170   fi
8171 else
8172   ac_cpp_err=yes
8173 fi
8174 if test -z "$ac_cpp_err"; then
8175   ac_header_preproc=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180   ac_header_preproc=no
8181 fi
8182 rm -f conftest.err conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8184 echo "${ECHO_T}$ac_header_preproc" >&6
8185
8186 # So?  What about this header?
8187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8188   yes:no: )
8189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8193     ac_header_preproc=yes
8194     ;;
8195   no:yes:* )
8196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8208     (
8209       cat <<\_ASBOX
8210 ## ------------------------------- ##
8211 ## Report this to bug-bash@gnu.org ##
8212 ## ------------------------------- ##
8213 _ASBOX
8214     ) |
8215       sed "s/^/$as_me: WARNING:     /" >&2
8216     ;;
8217 esac
8218 echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   eval "$as_ac_Header=\$ac_header_preproc"
8224 fi
8225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8227
8228 fi
8229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8230   cat >>confdefs.h <<_ACEOF
8231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8232 _ACEOF
8233
8234 fi
8235
8236 done
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8261 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8262 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8263 __fsetlocking
8264 do
8265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8266 echo "$as_me:$LINENO: checking for $ac_func" >&5
8267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8268 if eval "test \"\${$as_ac_var+set}\" = set"; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8279 #define $ac_func innocuous_$ac_func
8280
8281 /* System header to define __stub macros and hopefully few prototypes,
8282     which can conflict with char $ac_func (); below.
8283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284     <limits.h> exists even on freestanding compilers.  */
8285
8286 #ifdef __STDC__
8287 # include <limits.h>
8288 #else
8289 # include <assert.h>
8290 #endif
8291
8292 #undef $ac_func
8293
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 #ifdef __cplusplus
8296 extern "C"
8297 {
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300    builtin and then its argument prototype would still apply.  */
8301 char $ac_func ();
8302 /* The GNU C library defines this for functions which it implements
8303     to always fail with ENOSYS.  Some functions are actually named
8304     something starting with __ and the normal name is an alias.  */
8305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8306 choke me
8307 #else
8308 char (*f) () = $ac_func;
8309 #endif
8310 #ifdef __cplusplus
8311 }
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 return f != $ac_func;
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324   (eval $ac_link) 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } &&
8331          { ac_try='test -z "$ac_c_werror_flag"
8332                          || test ! -s conftest.err'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest$ac_exeext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   eval "$as_ac_var=yes"
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 eval "$as_ac_var=no"
8350 fi
8351 rm -f conftest.err conftest.$ac_objext \
8352       conftest$ac_exeext conftest.$ac_ext
8353 fi
8354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8356 if test `eval echo '${'$as_ac_var'}'` = yes; then
8357   cat >>confdefs.h <<_ACEOF
8358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8359 _ACEOF
8360
8361 fi
8362 done
8363
8364
8365
8366
8367
8368
8369
8370           am_save_CPPFLAGS="$CPPFLAGS"
8371
8372   for element in $INCICONV; do
8373     haveit=
8374     for x in $CPPFLAGS; do
8375
8376   acl_save_prefix="$prefix"
8377   prefix="$acl_final_prefix"
8378   acl_save_exec_prefix="$exec_prefix"
8379   exec_prefix="$acl_final_exec_prefix"
8380   eval x=\"$x\"
8381   exec_prefix="$acl_save_exec_prefix"
8382   prefix="$acl_save_prefix"
8383
8384       if test "X$x" = "X$element"; then
8385         haveit=yes
8386         break
8387       fi
8388     done
8389     if test -z "$haveit"; then
8390       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8391     fi
8392   done
8393
8394
8395   echo "$as_me:$LINENO: checking for iconv" >&5
8396 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8397 if test "${am_cv_func_iconv+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400
8401     am_cv_func_iconv="no, consider installing GNU libiconv"
8402     am_cv_lib_iconv=no
8403     cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409 #include <stdlib.h>
8410 #include <iconv.h>
8411 int
8412 main ()
8413 {
8414 iconv_t cd = iconv_open("","");
8415        iconv(cd,NULL,NULL,NULL,NULL);
8416        iconv_close(cd);
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423   (eval $ac_link) 2>conftest.er1
8424   ac_status=$?
8425   grep -v '^ *+' conftest.er1 >conftest.err
8426   rm -f conftest.er1
8427   cat conftest.err >&5
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } &&
8430          { ac_try='test -z "$ac_c_werror_flag"
8431                          || test ! -s conftest.err'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   am_cv_func_iconv=yes
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 fi
8449 rm -f conftest.err conftest.$ac_objext \
8450       conftest$ac_exeext conftest.$ac_ext
8451     if test "$am_cv_func_iconv" != yes; then
8452       am_save_LIBS="$LIBS"
8453       LIBS="$LIBS $LIBICONV"
8454       cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460 #include <stdlib.h>
8461 #include <iconv.h>
8462 int
8463 main ()
8464 {
8465 iconv_t cd = iconv_open("","");
8466          iconv(cd,NULL,NULL,NULL,NULL);
8467          iconv_close(cd);
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474   (eval $ac_link) 2>conftest.er1
8475   ac_status=$?
8476   grep -v '^ *+' conftest.er1 >conftest.err
8477   rm -f conftest.er1
8478   cat conftest.err >&5
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); } &&
8481          { ac_try='test -z "$ac_c_werror_flag"
8482                          || test ! -s conftest.err'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; } &&
8488          { ac_try='test -s conftest$ac_exeext'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494   am_cv_lib_iconv=yes
8495         am_cv_func_iconv=yes
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 fi
8501 rm -f conftest.err conftest.$ac_objext \
8502       conftest$ac_exeext conftest.$ac_ext
8503       LIBS="$am_save_LIBS"
8504     fi
8505
8506 fi
8507 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8508 echo "${ECHO_T}$am_cv_func_iconv" >&6
8509   if test "$am_cv_func_iconv" = yes; then
8510
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_ICONV 1
8513 _ACEOF
8514
8515   fi
8516   if test "$am_cv_lib_iconv" = yes; then
8517     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8518 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8519     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8520 echo "${ECHO_T}$LIBICONV" >&6
8521   else
8522             CPPFLAGS="$am_save_CPPFLAGS"
8523     LIBICONV=
8524     LTLIBICONV=
8525   fi
8526
8527
8528
8529   if test "$am_cv_func_iconv" = yes; then
8530     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8531 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8532     if test "${am_cv_proto_iconv+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535
8536       cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542
8543 #include <stdlib.h>
8544 #include <iconv.h>
8545 extern
8546 #ifdef __cplusplus
8547 "C"
8548 #endif
8549 #if defined(__STDC__) || defined(__cplusplus)
8550 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8551 #else
8552 size_t iconv();
8553 #endif
8554
8555 int
8556 main ()
8557 {
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565   (eval $ac_compile) 2>conftest.er1
8566   ac_status=$?
8567   grep -v '^ *+' conftest.er1 >conftest.err
8568   rm -f conftest.er1
8569   cat conftest.err >&5
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } &&
8572          { ac_try='test -z "$ac_c_werror_flag"
8573                          || test ! -s conftest.err'
8574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); }; } &&
8579          { ac_try='test -s conftest.$ac_objext'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; }; then
8585   am_cv_proto_iconv_arg1=""
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 am_cv_proto_iconv_arg1="const"
8591 fi
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593       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);"
8594 fi
8595
8596     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8597     echo "$as_me:$LINENO: result: ${ac_t:-
8598          }$am_cv_proto_iconv" >&5
8599 echo "${ECHO_T}${ac_t:-
8600          }$am_cv_proto_iconv" >&6
8601
8602 cat >>confdefs.h <<_ACEOF
8603 #define ICONV_CONST $am_cv_proto_iconv_arg1
8604 _ACEOF
8605
8606   fi
8607
8608
8609   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8610 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8611 if test "${am_cv_langinfo_codeset+set}" = set; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h.  */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h.  */
8620 #include <langinfo.h>
8621 int
8622 main ()
8623 {
8624 char* cs = nl_langinfo(CODESET);
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631   (eval $ac_link) 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag"
8639                          || test ! -s conftest.err'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; } &&
8645          { ac_try='test -s conftest$ac_exeext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   am_cv_langinfo_codeset=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 am_cv_langinfo_codeset=no
8657 fi
8658 rm -f conftest.err conftest.$ac_objext \
8659       conftest$ac_exeext conftest.$ac_ext
8660
8661 fi
8662 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8663 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8664   if test $am_cv_langinfo_codeset = yes; then
8665
8666 cat >>confdefs.h <<\_ACEOF
8667 #define HAVE_LANGINFO_CODESET 1
8668 _ACEOF
8669
8670   fi
8671
8672   if test $ac_cv_header_locale_h = yes; then
8673
8674   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8675 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8676 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685 #include <locale.h>
8686 int
8687 main ()
8688 {
8689 return LC_MESSAGES
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696   (eval $ac_link) 2>conftest.er1
8697   ac_status=$?
8698   grep -v '^ *+' conftest.er1 >conftest.err
8699   rm -f conftest.er1
8700   cat conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } &&
8703          { ac_try='test -z "$ac_c_werror_flag"
8704                          || test ! -s conftest.err'
8705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706   (eval $ac_try) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; } &&
8710          { ac_try='test -s conftest$ac_exeext'
8711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712   (eval $ac_try) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); }; }; then
8716   am_cv_val_LC_MESSAGES=yes
8717 else
8718   echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 am_cv_val_LC_MESSAGES=no
8722 fi
8723 rm -f conftest.err conftest.$ac_objext \
8724       conftest$ac_exeext conftest.$ac_ext
8725 fi
8726 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8727 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8728   if test $am_cv_val_LC_MESSAGES = yes; then
8729
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_LC_MESSAGES 1
8732 _ACEOF
8733
8734   fi
8735
8736   fi
8737
8738                       for ac_prog in bison
8739 do
8740   # Extract the first word of "$ac_prog", so it can be a program name with args.
8741 set dummy $ac_prog; ac_word=$2
8742 echo "$as_me:$LINENO: checking for $ac_word" >&5
8743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8744 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   if test -n "$INTLBISON"; then
8748   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753   IFS=$as_save_IFS
8754   test -z "$as_dir" && as_dir=.
8755   for ac_exec_ext in '' $ac_executable_extensions; do
8756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757     ac_cv_prog_INTLBISON="$ac_prog"
8758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8759     break 2
8760   fi
8761 done
8762 done
8763
8764 fi
8765 fi
8766 INTLBISON=$ac_cv_prog_INTLBISON
8767 if test -n "$INTLBISON"; then
8768   echo "$as_me:$LINENO: result: $INTLBISON" >&5
8769 echo "${ECHO_T}$INTLBISON" >&6
8770 else
8771   echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8773 fi
8774
8775   test -n "$INTLBISON" && break
8776 done
8777
8778   if test -z "$INTLBISON"; then
8779     ac_verc_fail=yes
8780   else
8781         echo "$as_me:$LINENO: checking version of bison" >&5
8782 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8783     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8784     case $ac_prog_version in
8785       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8786       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8787          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8788       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8789     esac
8790     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8791 echo "${ECHO_T}$ac_prog_version" >&6
8792   fi
8793   if test $ac_verc_fail = yes; then
8794     INTLBISON=:
8795   fi
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8813 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8814     # Check whether --enable-nls or --disable-nls was given.
8815 if test "${enable_nls+set}" = set; then
8816   enableval="$enable_nls"
8817   USE_NLS=$enableval
8818 else
8819   USE_NLS=yes
8820 fi;
8821   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8822 echo "${ECHO_T}$USE_NLS" >&6
8823
8824
8825
8826
8827     BUILD_INCLUDED_LIBINTL=no
8828     USE_INCLUDED_LIBINTL=no
8829
8830   LIBINTL=
8831   LTLIBINTL=
8832   POSUB=
8833
8834     if test "$USE_NLS" = "yes"; then
8835     gt_use_preinstalled_gnugettext=no
8836
8837       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8838 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8839
8840 # Check whether --with-included-gettext or --without-included-gettext was given.
8841 if test "${with_included_gettext+set}" = set; then
8842   withval="$with_included_gettext"
8843   nls_cv_force_use_gnu_gettext=$withval
8844 else
8845   nls_cv_force_use_gnu_gettext=no
8846 fi;
8847       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8848 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8849
8850       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8851       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8852
8853
8854
8855
8856
8857
8858         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8859 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8860 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869 #include <libintl.h>
8870 extern int _nl_msg_cat_cntr;
8871 extern int *_nl_domain_bindings;
8872 int
8873 main ()
8874 {
8875 bindtextdomain ("", "");
8876 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883   (eval $ac_link) 2>conftest.er1
8884   ac_status=$?
8885   grep -v '^ *+' conftest.er1 >conftest.err
8886   rm -f conftest.er1
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } &&
8890          { ac_try='test -z "$ac_c_werror_flag"
8891                          || test ! -s conftest.err'
8892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; } &&
8897          { ac_try='test -s conftest$ac_exeext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   gt_cv_func_gnugettext2_libc=yes
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 gt_cv_func_gnugettext2_libc=no
8909 fi
8910 rm -f conftest.err conftest.$ac_objext \
8911       conftest$ac_exeext conftest.$ac_ext
8912 fi
8913 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8914 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8915
8916         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8917
8918
8919
8920     use_additional=yes
8921
8922   acl_save_prefix="$prefix"
8923   prefix="$acl_final_prefix"
8924   acl_save_exec_prefix="$exec_prefix"
8925   exec_prefix="$acl_final_exec_prefix"
8926
8927     eval additional_includedir=\"$includedir\"
8928     eval additional_libdir=\"$libdir\"
8929
8930   exec_prefix="$acl_save_exec_prefix"
8931   prefix="$acl_save_prefix"
8932
8933
8934 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8935 if test "${with_libintl_prefix+set}" = set; then
8936   withval="$with_libintl_prefix"
8937
8938     if test "X$withval" = "Xno"; then
8939       use_additional=no
8940     else
8941       if test "X$withval" = "X"; then
8942
8943   acl_save_prefix="$prefix"
8944   prefix="$acl_final_prefix"
8945   acl_save_exec_prefix="$exec_prefix"
8946   exec_prefix="$acl_final_exec_prefix"
8947
8948           eval additional_includedir=\"$includedir\"
8949           eval additional_libdir=\"$libdir\"
8950
8951   exec_prefix="$acl_save_exec_prefix"
8952   prefix="$acl_save_prefix"
8953
8954       else
8955         additional_includedir="$withval/include"
8956         additional_libdir="$withval/lib"
8957       fi
8958     fi
8959
8960 fi;
8961       LIBINTL=
8962   LTLIBINTL=
8963   INCINTL=
8964   rpathdirs=
8965   ltrpathdirs=
8966   names_already_handled=
8967   names_next_round='intl '
8968   while test -n "$names_next_round"; do
8969     names_this_round="$names_next_round"
8970     names_next_round=
8971     for name in $names_this_round; do
8972       already_handled=
8973       for n in $names_already_handled; do
8974         if test "$n" = "$name"; then
8975           already_handled=yes
8976           break
8977         fi
8978       done
8979       if test -z "$already_handled"; then
8980         names_already_handled="$names_already_handled $name"
8981                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8982         eval value=\"\$HAVE_LIB$uppername\"
8983         if test -n "$value"; then
8984           if test "$value" = yes; then
8985             eval value=\"\$LIB$uppername\"
8986             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8987             eval value=\"\$LTLIB$uppername\"
8988             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8989           else
8990                                     :
8991           fi
8992         else
8993                               found_dir=
8994           found_la=
8995           found_so=
8996           found_a=
8997           if test $use_additional = yes; then
8998             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8999               found_dir="$additional_libdir"
9000               found_so="$additional_libdir/lib$name.$shlibext"
9001               if test -f "$additional_libdir/lib$name.la"; then
9002                 found_la="$additional_libdir/lib$name.la"
9003               fi
9004             else
9005               if test -f "$additional_libdir/lib$name.$libext"; then
9006                 found_dir="$additional_libdir"
9007                 found_a="$additional_libdir/lib$name.$libext"
9008                 if test -f "$additional_libdir/lib$name.la"; then
9009                   found_la="$additional_libdir/lib$name.la"
9010                 fi
9011               fi
9012             fi
9013           fi
9014           if test "X$found_dir" = "X"; then
9015             for x in $LDFLAGS $LTLIBINTL; do
9016
9017   acl_save_prefix="$prefix"
9018   prefix="$acl_final_prefix"
9019   acl_save_exec_prefix="$exec_prefix"
9020   exec_prefix="$acl_final_exec_prefix"
9021   eval x=\"$x\"
9022   exec_prefix="$acl_save_exec_prefix"
9023   prefix="$acl_save_prefix"
9024
9025               case "$x" in
9026                 -L*)
9027                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9028                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9029                     found_dir="$dir"
9030                     found_so="$dir/lib$name.$shlibext"
9031                     if test -f "$dir/lib$name.la"; then
9032                       found_la="$dir/lib$name.la"
9033                     fi
9034                   else
9035                     if test -f "$dir/lib$name.$libext"; then
9036                       found_dir="$dir"
9037                       found_a="$dir/lib$name.$libext"
9038                       if test -f "$dir/lib$name.la"; then
9039                         found_la="$dir/lib$name.la"
9040                       fi
9041                     fi
9042                   fi
9043                   ;;
9044               esac
9045               if test "X$found_dir" != "X"; then
9046                 break
9047               fi
9048             done
9049           fi
9050           if test "X$found_dir" != "X"; then
9051                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9052             if test "X$found_so" != "X"; then
9053                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9054                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9055               else
9056                                                                                 haveit=
9057                 for x in $ltrpathdirs; do
9058                   if test "X$x" = "X$found_dir"; then
9059                     haveit=yes
9060                     break
9061                   fi
9062                 done
9063                 if test -z "$haveit"; then
9064                   ltrpathdirs="$ltrpathdirs $found_dir"
9065                 fi
9066                                 if test "$hardcode_direct" = yes; then
9067                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9068                 else
9069                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9070                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9071                                                             haveit=
9072                     for x in $rpathdirs; do
9073                       if test "X$x" = "X$found_dir"; then
9074                         haveit=yes
9075                         break
9076                       fi
9077                     done
9078                     if test -z "$haveit"; then
9079                       rpathdirs="$rpathdirs $found_dir"
9080                     fi
9081                   else
9082                                                                                 haveit=
9083                     for x in $LDFLAGS $LIBINTL; do
9084
9085   acl_save_prefix="$prefix"
9086   prefix="$acl_final_prefix"
9087   acl_save_exec_prefix="$exec_prefix"
9088   exec_prefix="$acl_final_exec_prefix"
9089   eval x=\"$x\"
9090   exec_prefix="$acl_save_exec_prefix"
9091   prefix="$acl_save_prefix"
9092
9093                       if test "X$x" = "X-L$found_dir"; then
9094                         haveit=yes
9095                         break
9096                       fi
9097                     done
9098                     if test -z "$haveit"; then
9099                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9100                     fi
9101                     if test "$hardcode_minus_L" != no; then
9102                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9103                     else
9104                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9105                     fi
9106                   fi
9107                 fi
9108               fi
9109             else
9110               if test "X$found_a" != "X"; then
9111                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9112               else
9113                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9114               fi
9115             fi
9116                         additional_includedir=
9117             case "$found_dir" in
9118               */lib | */lib/)
9119                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9120                 additional_includedir="$basedir/include"
9121                 ;;
9122             esac
9123             if test "X$additional_includedir" != "X"; then
9124                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9125                 haveit=
9126                 if test "X$additional_includedir" = "X/usr/local/include"; then
9127                   if test -n "$GCC"; then
9128                     case $host_os in
9129                       linux*) haveit=yes;;
9130                     esac
9131                   fi
9132                 fi
9133                 if test -z "$haveit"; then
9134                   for x in $CPPFLAGS $INCINTL; do
9135
9136   acl_save_prefix="$prefix"
9137   prefix="$acl_final_prefix"
9138   acl_save_exec_prefix="$exec_prefix"
9139   exec_prefix="$acl_final_exec_prefix"
9140   eval x=\"$x\"
9141   exec_prefix="$acl_save_exec_prefix"
9142   prefix="$acl_save_prefix"
9143
9144                     if test "X$x" = "X-I$additional_includedir"; then
9145                       haveit=yes
9146                       break
9147                     fi
9148                   done
9149                   if test -z "$haveit"; then
9150                     if test -d "$additional_includedir"; then
9151                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9152                     fi
9153                   fi
9154                 fi
9155               fi
9156             fi
9157                         if test -n "$found_la"; then
9158                                                         save_libdir="$libdir"
9159               case "$found_la" in
9160                 */* | *\\*) . "$found_la" ;;
9161                 *) . "./$found_la" ;;
9162               esac
9163               libdir="$save_libdir"
9164                             for dep in $dependency_libs; do
9165                 case "$dep" in
9166                   -L*)
9167                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9168                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9169                       haveit=
9170                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9171                         if test -n "$GCC"; then
9172                           case $host_os in
9173                             linux*) haveit=yes;;
9174                           esac
9175                         fi
9176                       fi
9177                       if test -z "$haveit"; then
9178                         haveit=
9179                         for x in $LDFLAGS $LIBINTL; do
9180
9181   acl_save_prefix="$prefix"
9182   prefix="$acl_final_prefix"
9183   acl_save_exec_prefix="$exec_prefix"
9184   exec_prefix="$acl_final_exec_prefix"
9185   eval x=\"$x\"
9186   exec_prefix="$acl_save_exec_prefix"
9187   prefix="$acl_save_prefix"
9188
9189                           if test "X$x" = "X-L$additional_libdir"; then
9190                             haveit=yes
9191                             break
9192                           fi
9193                         done
9194                         if test -z "$haveit"; then
9195                           if test -d "$additional_libdir"; then
9196                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9197                           fi
9198                         fi
9199                         haveit=
9200                         for x in $LDFLAGS $LTLIBINTL; do
9201
9202   acl_save_prefix="$prefix"
9203   prefix="$acl_final_prefix"
9204   acl_save_exec_prefix="$exec_prefix"
9205   exec_prefix="$acl_final_exec_prefix"
9206   eval x=\"$x\"
9207   exec_prefix="$acl_save_exec_prefix"
9208   prefix="$acl_save_prefix"
9209
9210                           if test "X$x" = "X-L$additional_libdir"; then
9211                             haveit=yes
9212                             break
9213                           fi
9214                         done
9215                         if test -z "$haveit"; then
9216                           if test -d "$additional_libdir"; then
9217                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9218                           fi
9219                         fi
9220                       fi
9221                     fi
9222                     ;;
9223                   -R*)
9224                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9225                     if test "$enable_rpath" != no; then
9226                                                                   haveit=
9227                       for x in $rpathdirs; do
9228                         if test "X$x" = "X$dir"; then
9229                           haveit=yes
9230                           break
9231                         fi
9232                       done
9233                       if test -z "$haveit"; then
9234                         rpathdirs="$rpathdirs $dir"
9235                       fi
9236                                                                   haveit=
9237                       for x in $ltrpathdirs; do
9238                         if test "X$x" = "X$dir"; then
9239                           haveit=yes
9240                           break
9241                         fi
9242                       done
9243                       if test -z "$haveit"; then
9244                         ltrpathdirs="$ltrpathdirs $dir"
9245                       fi
9246                     fi
9247                     ;;
9248                   -l*)
9249                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9250                     ;;
9251                   *.la)
9252                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9253                     ;;
9254                   *)
9255                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9256                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9257                     ;;
9258                 esac
9259               done
9260             fi
9261           else
9262                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9263             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9264           fi
9265         fi
9266       fi
9267     done
9268   done
9269   if test "X$rpathdirs" != "X"; then
9270     if test -n "$hardcode_libdir_separator"; then
9271                         alldirs=
9272       for found_dir in $rpathdirs; do
9273         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9274       done
9275             acl_save_libdir="$libdir"
9276       libdir="$alldirs"
9277       eval flag=\"$hardcode_libdir_flag_spec\"
9278       libdir="$acl_save_libdir"
9279       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9280     else
9281             for found_dir in $rpathdirs; do
9282         acl_save_libdir="$libdir"
9283         libdir="$found_dir"
9284         eval flag=\"$hardcode_libdir_flag_spec\"
9285         libdir="$acl_save_libdir"
9286         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9287       done
9288     fi
9289   fi
9290   if test "X$ltrpathdirs" != "X"; then
9291             for found_dir in $ltrpathdirs; do
9292       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9293     done
9294   fi
9295
9296           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9297 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9298 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   gt_save_CPPFLAGS="$CPPFLAGS"
9302             CPPFLAGS="$CPPFLAGS $INCINTL"
9303             gt_save_LIBS="$LIBS"
9304             LIBS="$LIBS $LIBINTL"
9305                         cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h.  */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h.  */
9311 #include <libintl.h>
9312 extern int _nl_msg_cat_cntr;
9313 extern
9314 #ifdef __cplusplus
9315 "C"
9316 #endif
9317 const char *_nl_expand_alias ();
9318 int
9319 main ()
9320 {
9321 bindtextdomain ("", "");
9322 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9329   (eval $ac_link) 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag"
9337                          || test ! -s conftest.err'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest$ac_exeext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   gt_cv_func_gnugettext2_libintl=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 gt_cv_func_gnugettext2_libintl=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext \
9357       conftest$ac_exeext conftest.$ac_ext
9358                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9359               LIBS="$LIBS $LIBICONV"
9360               cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366 #include <libintl.h>
9367 extern int _nl_msg_cat_cntr;
9368 extern
9369 #ifdef __cplusplus
9370 "C"
9371 #endif
9372 const char *_nl_expand_alias ();
9373 int
9374 main ()
9375 {
9376 bindtextdomain ("", "");
9377 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384   (eval $ac_link) 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } &&
9391          { ac_try='test -z "$ac_c_werror_flag"
9392                          || test ! -s conftest.err'
9393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394   (eval $ac_try) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); }; } &&
9398          { ac_try='test -s conftest$ac_exeext'
9399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; }; then
9404   LIBINTL="$LIBINTL $LIBICONV"
9405                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9406                 gt_cv_func_gnugettext2_libintl=yes
9407
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 fi
9413 rm -f conftest.err conftest.$ac_objext \
9414       conftest$ac_exeext conftest.$ac_ext
9415             fi
9416             CPPFLAGS="$gt_save_CPPFLAGS"
9417             LIBS="$gt_save_LIBS"
9418 fi
9419 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9420 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9421         fi
9422
9423                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9424            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9425                 && test "$PACKAGE" != gettext-runtime \
9426                 && test "$PACKAGE" != gettext-tools; }; then
9427           gt_use_preinstalled_gnugettext=yes
9428         else
9429                     LIBINTL=
9430           LTLIBINTL=
9431           INCINTL=
9432         fi
9433
9434
9435         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9436                               nls_cv_use_gnu_gettext=yes
9437         fi
9438       fi
9439
9440       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9441                 BUILD_INCLUDED_LIBINTL=yes
9442         USE_INCLUDED_LIBINTL=yes
9443         LIBINTL="lib/intl/libintl.a $LIBICONV"
9444         LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9445         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9446       fi
9447
9448       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9449          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9450                 CATOBJEXT=.gmo
9451       fi
9452
9453
9454     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9455        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define ENABLE_NLS 1
9459 _ACEOF
9460
9461     else
9462       USE_NLS=no
9463     fi
9464   fi
9465
9466   echo "$as_me:$LINENO: checking whether to use NLS" >&5
9467 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9468   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9469 echo "${ECHO_T}$USE_NLS" >&6
9470   if test "$USE_NLS" = "yes"; then
9471     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9472 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9473     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9474       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9475         gt_source="external libintl"
9476       else
9477         gt_source="libc"
9478       fi
9479     else
9480       gt_source="included intl directory"
9481     fi
9482     echo "$as_me:$LINENO: result: $gt_source" >&5
9483 echo "${ECHO_T}$gt_source" >&6
9484   fi
9485
9486   if test "$USE_NLS" = "yes"; then
9487
9488     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9489       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9490         echo "$as_me:$LINENO: checking how to link with libintl" >&5
9491 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9492         echo "$as_me:$LINENO: result: $LIBINTL" >&5
9493 echo "${ECHO_T}$LIBINTL" >&6
9494
9495   for element in $INCINTL; do
9496     haveit=
9497     for x in $CPPFLAGS; do
9498
9499   acl_save_prefix="$prefix"
9500   prefix="$acl_final_prefix"
9501   acl_save_exec_prefix="$exec_prefix"
9502   exec_prefix="$acl_final_exec_prefix"
9503   eval x=\"$x\"
9504   exec_prefix="$acl_save_exec_prefix"
9505   prefix="$acl_save_prefix"
9506
9507       if test "X$x" = "X$element"; then
9508         haveit=yes
9509         break
9510       fi
9511     done
9512     if test -z "$haveit"; then
9513       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9514     fi
9515   done
9516
9517       fi
9518
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_GETTEXT 1
9522 _ACEOF
9523
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_DCGETTEXT 1
9527 _ACEOF
9528
9529     fi
9530
9531         POSUB=po
9532   fi
9533
9534
9535             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9536       BUILD_INCLUDED_LIBINTL=yes
9537     fi
9538
9539
9540
9541
9542
9543         nls_cv_header_intl=
9544     nls_cv_header_libgt=
9545
9546         DATADIRNAME=share
9547
9548
9549         INSTOBJEXT=.mo
9550
9551
9552         GENCAT=gencat
9553
9554
9555         if test "$USE_INCLUDED_LIBINTL" = yes; then
9556       INTLOBJS="\$(GETTOBJS)"
9557     fi
9558
9559
9560         INTL_LIBTOOL_SUFFIX_PREFIX=
9561
9562
9563
9564     INTLLIBS="$LIBINTL"
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 ac_header_dirent=no
9578 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9579   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9580 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9581 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591 #include <sys/types.h>
9592 #include <$ac_hdr>
9593
9594 int
9595 main ()
9596 {
9597 if ((DIR *) 0)
9598 return 0;
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605   (eval $ac_compile) 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -z "$ac_c_werror_flag"
9613                          || test ! -s conftest.err'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; } &&
9619          { ac_try='test -s conftest.$ac_objext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   eval "$as_ac_Header=yes"
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 eval "$as_ac_Header=no"
9631 fi
9632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 fi
9634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9637   cat >>confdefs.h <<_ACEOF
9638 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9639 _ACEOF
9640
9641 ac_header_dirent=$ac_hdr; break
9642 fi
9643
9644 done
9645 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9646 if test $ac_header_dirent = dirent.h; then
9647   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9648 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9649 if test "${ac_cv_search_opendir+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   ac_func_search_save_LIBS=$LIBS
9653 ac_cv_search_opendir=no
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any gcc2 internal prototype to avoid an error.  */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 /* We use char because int might match the return type of a gcc2
9666    builtin and then its argument prototype would still apply.  */
9667 char opendir ();
9668 int
9669 main ()
9670 {
9671 opendir ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag"
9686                          || test ! -s conftest.err'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; } &&
9692          { ac_try='test -s conftest$ac_exeext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_cv_search_opendir="none required"
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 fi
9704 rm -f conftest.err conftest.$ac_objext \
9705       conftest$ac_exeext conftest.$ac_ext
9706 if test "$ac_cv_search_opendir" = no; then
9707   for ac_lib in dir; do
9708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9709     cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715
9716 /* Override any gcc2 internal prototype to avoid an error.  */
9717 #ifdef __cplusplus
9718 extern "C"
9719 #endif
9720 /* We use char because int might match the return type of a gcc2
9721    builtin and then its argument prototype would still apply.  */
9722 char opendir ();
9723 int
9724 main ()
9725 {
9726 opendir ();
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733   (eval $ac_link) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_c_werror_flag"
9741                          || test ! -s conftest.err'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_cv_search_opendir="-l$ac_lib"
9754 break
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 fi
9760 rm -f conftest.err conftest.$ac_objext \
9761       conftest$ac_exeext conftest.$ac_ext
9762   done
9763 fi
9764 LIBS=$ac_func_search_save_LIBS
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9767 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9768 if test "$ac_cv_search_opendir" != no; then
9769   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9770
9771 fi
9772
9773 else
9774   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9776 if test "${ac_cv_search_opendir+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   ac_func_search_save_LIBS=$LIBS
9780 ac_cv_search_opendir=no
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787
9788 /* Override any gcc2 internal prototype to avoid an error.  */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 /* We use char because int might match the return type of a gcc2
9793    builtin and then its argument prototype would still apply.  */
9794 char opendir ();
9795 int
9796 main ()
9797 {
9798 opendir ();
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805   (eval $ac_link) 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -z "$ac_c_werror_flag"
9813                          || test ! -s conftest.err'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; } &&
9819          { ac_try='test -s conftest$ac_exeext'
9820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821   (eval $ac_try) 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); }; }; then
9825   ac_cv_search_opendir="none required"
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 fi
9831 rm -f conftest.err conftest.$ac_objext \
9832       conftest$ac_exeext conftest.$ac_ext
9833 if test "$ac_cv_search_opendir" = no; then
9834   for ac_lib in x; do
9835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9836     cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 /* Override any gcc2 internal prototype to avoid an error.  */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 /* We use char because int might match the return type of a gcc2
9848    builtin and then its argument prototype would still apply.  */
9849 char opendir ();
9850 int
9851 main ()
9852 {
9853 opendir ();
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860   (eval $ac_link) 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag"
9868                          || test ! -s conftest.err'
9869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870   (eval $ac_try) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; } &&
9874          { ac_try='test -s conftest$ac_exeext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_cv_search_opendir="-l$ac_lib"
9881 break
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 fi
9887 rm -f conftest.err conftest.$ac_objext \
9888       conftest$ac_exeext conftest.$ac_ext
9889   done
9890 fi
9891 LIBS=$ac_func_search_save_LIBS
9892 fi
9893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9895 if test "$ac_cv_search_opendir" != no; then
9896   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9897
9898 fi
9899
9900 fi
9901
9902 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9903 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9904 if test "${ac_cv_header_time+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913 #include <sys/types.h>
9914 #include <sys/time.h>
9915 #include <time.h>
9916
9917 int
9918 main ()
9919 {
9920 if ((struct tm *) 0)
9921 return 0;
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9928   (eval $ac_compile) 2>conftest.er1
9929   ac_status=$?
9930   grep -v '^ *+' conftest.er1 >conftest.err
9931   rm -f conftest.er1
9932   cat conftest.err >&5
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } &&
9935          { ac_try='test -z "$ac_c_werror_flag"
9936                          || test ! -s conftest.err'
9937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938   (eval $ac_try) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; } &&
9942          { ac_try='test -s conftest.$ac_objext'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; }; then
9948   ac_cv_header_time=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_header_time=no
9954 fi
9955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9956 fi
9957 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9958 echo "${ECHO_T}$ac_cv_header_time" >&6
9959 if test $ac_cv_header_time = yes; then
9960
9961 cat >>confdefs.h <<\_ACEOF
9962 #define TIME_WITH_SYS_TIME 1
9963 _ACEOF
9964
9965 fi
9966
9967
9968
9969
9970 for ac_header in inttypes.h
9971 do
9972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9974   echo "$as_me:$LINENO: checking for $ac_header" >&5
9975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 fi
9979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9981 else
9982   # Is the header compilable?
9983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 $ac_includes_default
9992 #include <$ac_header>
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996   (eval $ac_compile) 2>conftest.er1
9997   ac_status=$?
9998   grep -v '^ *+' conftest.er1 >conftest.err
9999   rm -f conftest.er1
10000   cat conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -z "$ac_c_werror_flag"
10004                          || test ! -s conftest.err'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; } &&
10010          { ac_try='test -s conftest.$ac_objext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016   ac_header_compiler=yes
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_header_compiler=no
10022 fi
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10025 echo "${ECHO_T}$ac_header_compiler" >&6
10026
10027 # Is the header present?
10028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036 #include <$ac_header>
10037 _ACEOF
10038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } >/dev/null; then
10046   if test -s conftest.err; then
10047     ac_cpp_err=$ac_c_preproc_warn_flag
10048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10049   else
10050     ac_cpp_err=
10051   fi
10052 else
10053   ac_cpp_err=yes
10054 fi
10055 if test -z "$ac_cpp_err"; then
10056   ac_header_preproc=yes
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061   ac_header_preproc=no
10062 fi
10063 rm -f conftest.err conftest.$ac_ext
10064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10065 echo "${ECHO_T}$ac_header_preproc" >&6
10066
10067 # So?  What about this header?
10068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10069   yes:no: )
10070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10074     ac_header_preproc=yes
10075     ;;
10076   no:yes:* )
10077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10089     (
10090       cat <<\_ASBOX
10091 ## ------------------------------- ##
10092 ## Report this to bug-bash@gnu.org ##
10093 ## ------------------------------- ##
10094 _ASBOX
10095     ) |
10096       sed "s/^/$as_me: WARNING:     /" >&2
10097     ;;
10098 esac
10099 echo "$as_me:$LINENO: checking for $ac_header" >&5
10100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   eval "$as_ac_Header=\$ac_header_preproc"
10105 fi
10106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108
10109 fi
10110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10111   cat >>confdefs.h <<_ACEOF
10112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10113 _ACEOF
10114
10115 fi
10116
10117 done
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10141                  memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
10142                  stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
10143 do
10144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146   echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 fi
10151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10153 else
10154   # Is the header compilable?
10155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163 $ac_includes_default
10164 #include <$ac_header>
10165 _ACEOF
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168   (eval $ac_compile) 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -z "$ac_c_werror_flag"
10176                          || test ! -s conftest.err'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; } &&
10182          { ac_try='test -s conftest.$ac_objext'
10183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184   (eval $ac_try) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; }; then
10188   ac_header_compiler=yes
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 ac_header_compiler=no
10194 fi
10195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10197 echo "${ECHO_T}$ac_header_compiler" >&6
10198
10199 # Is the header present?
10200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h.  */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h.  */
10208 #include <$ac_header>
10209 _ACEOF
10210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } >/dev/null; then
10218   if test -s conftest.err; then
10219     ac_cpp_err=$ac_c_preproc_warn_flag
10220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10221   else
10222     ac_cpp_err=
10223   fi
10224 else
10225   ac_cpp_err=yes
10226 fi
10227 if test -z "$ac_cpp_err"; then
10228   ac_header_preproc=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233   ac_header_preproc=no
10234 fi
10235 rm -f conftest.err conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10237 echo "${ECHO_T}$ac_header_preproc" >&6
10238
10239 # So?  What about this header?
10240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10241   yes:no: )
10242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10246     ac_header_preproc=yes
10247     ;;
10248   no:yes:* )
10249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10261     (
10262       cat <<\_ASBOX
10263 ## ------------------------------- ##
10264 ## Report this to bug-bash@gnu.org ##
10265 ## ------------------------------- ##
10266 _ASBOX
10267     ) |
10268       sed "s/^/$as_me: WARNING:     /" >&2
10269     ;;
10270 esac
10271 echo "$as_me:$LINENO: checking for $ac_header" >&5
10272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10274   echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276   eval "$as_ac_Header=\$ac_header_preproc"
10277 fi
10278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10280
10281 fi
10282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10283   cat >>confdefs.h <<_ACEOF
10284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10285 _ACEOF
10286
10287 fi
10288
10289 done
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
10304                  sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10305                  sys/time.h sys/times.h sys/types.h sys/wait.h
10306 do
10307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309   echo "$as_me:$LINENO: checking for $ac_header" >&5
10310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 fi
10314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10316 else
10317   # Is the header compilable?
10318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 $ac_includes_default
10327 #include <$ac_header>
10328 _ACEOF
10329 rm -f conftest.$ac_objext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10331   (eval $ac_compile) 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } &&
10338          { ac_try='test -z "$ac_c_werror_flag"
10339                          || test ! -s conftest.err'
10340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341   (eval $ac_try) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; } &&
10345          { ac_try='test -s conftest.$ac_objext'
10346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347   (eval $ac_try) 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; }; then
10351   ac_header_compiler=yes
10352 else
10353   echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356 ac_header_compiler=no
10357 fi
10358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10360 echo "${ECHO_T}$ac_header_compiler" >&6
10361
10362 # Is the header present?
10363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371 #include <$ac_header>
10372 _ACEOF
10373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } >/dev/null; then
10381   if test -s conftest.err; then
10382     ac_cpp_err=$ac_c_preproc_warn_flag
10383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10384   else
10385     ac_cpp_err=
10386   fi
10387 else
10388   ac_cpp_err=yes
10389 fi
10390 if test -z "$ac_cpp_err"; then
10391   ac_header_preproc=yes
10392 else
10393   echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396   ac_header_preproc=no
10397 fi
10398 rm -f conftest.err conftest.$ac_ext
10399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400 echo "${ECHO_T}$ac_header_preproc" >&6
10401
10402 # So?  What about this header?
10403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10404   yes:no: )
10405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10409     ac_header_preproc=yes
10410     ;;
10411   no:yes:* )
10412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10424     (
10425       cat <<\_ASBOX
10426 ## ------------------------------- ##
10427 ## Report this to bug-bash@gnu.org ##
10428 ## ------------------------------- ##
10429 _ASBOX
10430     ) |
10431       sed "s/^/$as_me: WARNING:     /" >&2
10432     ;;
10433 esac
10434 echo "$as_me:$LINENO: checking for $ac_header" >&5
10435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10437   echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439   eval "$as_ac_Header=\$ac_header_preproc"
10440 fi
10441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10443
10444 fi
10445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10446   cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 fi
10451
10452 done
10453
10454
10455
10456 for ac_header in netinet/in.h arpa/inet.h
10457 do
10458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10460   echo "$as_me:$LINENO: checking for $ac_header" >&5
10461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 fi
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10467 else
10468   # Is the header compilable?
10469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477 $ac_includes_default
10478 #include <$ac_header>
10479 _ACEOF
10480 rm -f conftest.$ac_objext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482   (eval $ac_compile) 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } &&
10489          { ac_try='test -z "$ac_c_werror_flag"
10490                          || test ! -s conftest.err'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; } &&
10496          { ac_try='test -s conftest.$ac_objext'
10497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498   (eval $ac_try) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; }; then
10502   ac_header_compiler=yes
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507 ac_header_compiler=no
10508 fi
10509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10511 echo "${ECHO_T}$ac_header_compiler" >&6
10512
10513 # Is the header present?
10514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #include <$ac_header>
10523 _ACEOF
10524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } >/dev/null; then
10532   if test -s conftest.err; then
10533     ac_cpp_err=$ac_c_preproc_warn_flag
10534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10535   else
10536     ac_cpp_err=
10537   fi
10538 else
10539   ac_cpp_err=yes
10540 fi
10541 if test -z "$ac_cpp_err"; then
10542   ac_header_preproc=yes
10543 else
10544   echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10546
10547   ac_header_preproc=no
10548 fi
10549 rm -f conftest.err conftest.$ac_ext
10550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10551 echo "${ECHO_T}$ac_header_preproc" >&6
10552
10553 # So?  What about this header?
10554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10555   yes:no: )
10556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10560     ac_header_preproc=yes
10561     ;;
10562   no:yes:* )
10563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10575     (
10576       cat <<\_ASBOX
10577 ## ------------------------------- ##
10578 ## Report this to bug-bash@gnu.org ##
10579 ## ------------------------------- ##
10580 _ASBOX
10581     ) |
10582       sed "s/^/$as_me: WARNING:     /" >&2
10583     ;;
10584 esac
10585 echo "$as_me:$LINENO: checking for $ac_header" >&5
10586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590   eval "$as_ac_Header=\$ac_header_preproc"
10591 fi
10592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10594
10595 fi
10596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10597   cat >>confdefs.h <<_ACEOF
10598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10599 _ACEOF
10600
10601 fi
10602
10603 done
10604
10605
10606 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10607 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10608 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617
10618 #if HAVE_SYS_STREAM_H
10619 #  include <sys/stream.h>
10620 #endif
10621
10622
10623 #include <sys/ptem.h>
10624 _ACEOF
10625 rm -f conftest.$ac_objext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10627   (eval $ac_compile) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } &&
10634          { ac_try='test -z "$ac_c_werror_flag"
10635                          || test ! -s conftest.err'
10636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637   (eval $ac_try) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }; } &&
10641          { ac_try='test -s conftest.$ac_objext'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647   ac_cv_header_sys_ptem_h=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_header_sys_ptem_h=no
10653 fi
10654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10655 fi
10656 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10657 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10658
10659
10660
10661 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10662 # for constant arguments.  Useless!
10663 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10664 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10665 if test "${ac_cv_working_alloca_h+set}" = set; then
10666   echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668   cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h.  */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h.  */
10674 #include <alloca.h>
10675 int
10676 main ()
10677 {
10678 char *p = (char *) alloca (2 * sizeof (int));
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685   (eval $ac_link) 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -z "$ac_c_werror_flag"
10693                          || test ! -s conftest.err'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; } &&
10699          { ac_try='test -s conftest$ac_exeext'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   ac_cv_working_alloca_h=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ac_cv_working_alloca_h=no
10711 fi
10712 rm -f conftest.err conftest.$ac_objext \
10713       conftest$ac_exeext conftest.$ac_ext
10714 fi
10715 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10716 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10717 if test $ac_cv_working_alloca_h = yes; then
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_ALLOCA_H 1
10721 _ACEOF
10722
10723 fi
10724
10725 echo "$as_me:$LINENO: checking for alloca" >&5
10726 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10727 if test "${ac_cv_func_alloca_works+set}" = set; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730   cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h.  */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h.  */
10736 #ifdef __GNUC__
10737 # define alloca __builtin_alloca
10738 #else
10739 # ifdef _MSC_VER
10740 #  include <malloc.h>
10741 #  define alloca _alloca
10742 # else
10743 #  if HAVE_ALLOCA_H
10744 #   include <alloca.h>
10745 #  else
10746 #   ifdef _AIX
10747  #pragma alloca
10748 #   else
10749 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10750 char *alloca ();
10751 #    endif
10752 #   endif
10753 #  endif
10754 # endif
10755 #endif
10756
10757 int
10758 main ()
10759 {
10760 char *p = (char *) alloca (1);
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10767   (eval $ac_link) 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } &&
10774          { ac_try='test -z "$ac_c_werror_flag"
10775                          || test ! -s conftest.err'
10776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777   (eval $ac_try) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; } &&
10781          { ac_try='test -s conftest$ac_exeext'
10782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783   (eval $ac_try) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); }; }; then
10787   ac_cv_func_alloca_works=yes
10788 else
10789   echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792 ac_cv_func_alloca_works=no
10793 fi
10794 rm -f conftest.err conftest.$ac_objext \
10795       conftest$ac_exeext conftest.$ac_ext
10796 fi
10797 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10798 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10799
10800 if test $ac_cv_func_alloca_works = yes; then
10801
10802 cat >>confdefs.h <<\_ACEOF
10803 #define HAVE_ALLOCA 1
10804 _ACEOF
10805
10806 else
10807   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10808 # that cause trouble.  Some versions do not even contain alloca or
10809 # contain a buggy version.  If you still want to use their alloca,
10810 # use ar to extract alloca.o from them instead of compiling alloca.c.
10811
10812 ALLOCA=alloca.$ac_objext
10813
10814 cat >>confdefs.h <<\_ACEOF
10815 #define C_ALLOCA 1
10816 _ACEOF
10817
10818
10819 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10820 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10821 if test "${ac_cv_os_cray+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830 #if defined(CRAY) && ! defined(CRAY2)
10831 webecray
10832 #else
10833 wenotbecray
10834 #endif
10835
10836 _ACEOF
10837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10838   $EGREP "webecray" >/dev/null 2>&1; then
10839   ac_cv_os_cray=yes
10840 else
10841   ac_cv_os_cray=no
10842 fi
10843 rm -f conftest*
10844
10845 fi
10846 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10847 echo "${ECHO_T}$ac_cv_os_cray" >&6
10848 if test $ac_cv_os_cray = yes; then
10849   for ac_func in _getb67 GETB67 getb67; do
10850     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10851 echo "$as_me:$LINENO: checking for $ac_func" >&5
10852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10853 if eval "test \"\${$as_ac_var+set}\" = set"; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h.  */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h.  */
10862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10864 #define $ac_func innocuous_$ac_func
10865
10866 /* System header to define __stub macros and hopefully few prototypes,
10867     which can conflict with char $ac_func (); below.
10868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869     <limits.h> exists even on freestanding compilers.  */
10870
10871 #ifdef __STDC__
10872 # include <limits.h>
10873 #else
10874 # include <assert.h>
10875 #endif
10876
10877 #undef $ac_func
10878
10879 /* Override any gcc2 internal prototype to avoid an error.  */
10880 #ifdef __cplusplus
10881 extern "C"
10882 {
10883 #endif
10884 /* We use char because int might match the return type of a gcc2
10885    builtin and then its argument prototype would still apply.  */
10886 char $ac_func ();
10887 /* The GNU C library defines this for functions which it implements
10888     to always fail with ENOSYS.  Some functions are actually named
10889     something starting with __ and the normal name is an alias.  */
10890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10891 choke me
10892 #else
10893 char (*f) () = $ac_func;
10894 #endif
10895 #ifdef __cplusplus
10896 }
10897 #endif
10898
10899 int
10900 main ()
10901 {
10902 return f != $ac_func;
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909   (eval $ac_link) 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } &&
10916          { ac_try='test -z "$ac_c_werror_flag"
10917                          || test ! -s conftest.err'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; } &&
10923          { ac_try='test -s conftest$ac_exeext'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; }; then
10929   eval "$as_ac_var=yes"
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 eval "$as_ac_var=no"
10935 fi
10936 rm -f conftest.err conftest.$ac_objext \
10937       conftest$ac_exeext conftest.$ac_ext
10938 fi
10939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10941 if test `eval echo '${'$as_ac_var'}'` = yes; then
10942
10943 cat >>confdefs.h <<_ACEOF
10944 #define CRAY_STACKSEG_END $ac_func
10945 _ACEOF
10946
10947     break
10948 fi
10949
10950   done
10951 fi
10952
10953 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10954 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10955 if test "${ac_cv_c_stack_direction+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   if test "$cross_compiling" = yes; then
10959   ac_cv_c_stack_direction=0
10960 else
10961   cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h.  */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h.  */
10967 int
10968 find_stack_direction ()
10969 {
10970   static char *addr = 0;
10971   auto char dummy;
10972   if (addr == 0)
10973     {
10974       addr = &dummy;
10975       return find_stack_direction ();
10976     }
10977   else
10978     return (&dummy > addr) ? 1 : -1;
10979 }
10980
10981 int
10982 main ()
10983 {
10984   exit (find_stack_direction () < 0);
10985 }
10986 _ACEOF
10987 rm -f conftest$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989   (eval $ac_link) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994   (eval $ac_try) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; }; then
10998   ac_cv_c_stack_direction=1
10999 else
11000   echo "$as_me: program exited with status $ac_status" >&5
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 ( exit $ac_status )
11005 ac_cv_c_stack_direction=-1
11006 fi
11007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11008 fi
11009 fi
11010 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11011 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11012
11013 cat >>confdefs.h <<_ACEOF
11014 #define STACK_DIRECTION $ac_cv_c_stack_direction
11015 _ACEOF
11016
11017
11018 fi
11019
11020 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11021 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11022 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   # Use it with a single arg.
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 $ac_includes_default
11033 int
11034 main ()
11035 {
11036 getpgrp (0);
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043   (eval $ac_compile) 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag"
11051                          || test ! -s conftest.err'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; } &&
11057          { ac_try='test -s conftest.$ac_objext'
11058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059   (eval $ac_try) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   ac_cv_func_getpgrp_void=no
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 ac_cv_func_getpgrp_void=yes
11069 fi
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071
11072 fi
11073 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11074 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11075 if test $ac_cv_func_getpgrp_void = yes; then
11076
11077 cat >>confdefs.h <<\_ACEOF
11078 #define GETPGRP_VOID 1
11079 _ACEOF
11080
11081 fi
11082
11083 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11084 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11085 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   ac_cv_func_setvbuf_reversed=no
11089    cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 #include <stdio.h>
11096 #         if PROTOTYPES
11097            int (setvbuf) (FILE *, int, char *, size_t);
11098 #         endif
11099 int
11100 main ()
11101 {
11102 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109   (eval $ac_link) 2>conftest.er1
11110   ac_status=$?
11111   grep -v '^ *+' conftest.er1 >conftest.err
11112   rm -f conftest.er1
11113   cat conftest.err >&5
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } &&
11116          { ac_try='test -z "$ac_c_werror_flag"
11117                          || test ! -s conftest.err'
11118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119   (eval $ac_try) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); }; } &&
11123          { ac_try='test -s conftest$ac_exeext'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129   cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <stdio.h>
11136 #            if PROTOTYPES
11137               int (setvbuf) (FILE *, int, char *, size_t);
11138 #            endif
11139 int
11140 main ()
11141 {
11142 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11143   ;
11144   return 0;
11145 }
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149   (eval $ac_link) 2>conftest.er1
11150   ac_status=$?
11151   grep -v '^ *+' conftest.er1 >conftest.err
11152   rm -f conftest.er1
11153   cat conftest.err >&5
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } &&
11156          { ac_try='test -z "$ac_c_werror_flag"
11157                          || test ! -s conftest.err'
11158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159   (eval $ac_try) 2>&5
11160   ac_status=$?
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); }; } &&
11163          { ac_try='test -s conftest$ac_exeext'
11164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165   (eval $ac_try) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; }; then
11169   # It compiles and links either way, so it must not be declared
11170          # with a prototype and most likely this is a K&R C compiler.
11171          # Try running it.
11172          if test "$cross_compiling" = yes; then
11173   : # Assume setvbuf is not reversed when cross-compiling.
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <stdio.h>
11182 int
11183 main ()
11184 {
11185 /* This call has the arguments reversed.
11186                    A reversed system may check and see that the address of buf
11187                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
11188                 char buf;
11189                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11190                   exit (1);
11191                 putchar ('\r');
11192                 exit (0); /* Non-reversed systems SEGV here.  */
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   ac_cv_func_setvbuf_reversed=yes
11209 else
11210   echo "$as_me: program exited with status $ac_status" >&5
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 ( exit $ac_status )
11215 rm -f core *.core
11216 fi
11217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11218 fi
11219         ac_cv_func_setvbuf_reversed=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 fi
11225 rm -f conftest.err conftest.$ac_objext \
11226       conftest$ac_exeext conftest.$ac_ext
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 fi
11232 rm -f conftest.err conftest.$ac_objext \
11233       conftest$ac_exeext conftest.$ac_ext
11234 fi
11235 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11236 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11237 if test $ac_cv_func_setvbuf_reversed = yes; then
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define SETVBUF_REVERSED 1
11241 _ACEOF
11242
11243 fi
11244
11245
11246 for ac_func in vprintf
11247 do
11248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11249 echo "$as_me:$LINENO: checking for $ac_func" >&5
11250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11251 if eval "test \"\${$as_ac_var+set}\" = set"; then
11252   echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254   cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11262 #define $ac_func innocuous_$ac_func
11263
11264 /* System header to define __stub macros and hopefully few prototypes,
11265     which can conflict with char $ac_func (); below.
11266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11267     <limits.h> exists even on freestanding compilers.  */
11268
11269 #ifdef __STDC__
11270 # include <limits.h>
11271 #else
11272 # include <assert.h>
11273 #endif
11274
11275 #undef $ac_func
11276
11277 /* Override any gcc2 internal prototype to avoid an error.  */
11278 #ifdef __cplusplus
11279 extern "C"
11280 {
11281 #endif
11282 /* We use char because int might match the return type of a gcc2
11283    builtin and then its argument prototype would still apply.  */
11284 char $ac_func ();
11285 /* The GNU C library defines this for functions which it implements
11286     to always fail with ENOSYS.  Some functions are actually named
11287     something starting with __ and the normal name is an alias.  */
11288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11289 choke me
11290 #else
11291 char (*f) () = $ac_func;
11292 #endif
11293 #ifdef __cplusplus
11294 }
11295 #endif
11296
11297 int
11298 main ()
11299 {
11300 return f != $ac_func;
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307   (eval $ac_link) 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } &&
11314          { ac_try='test -z "$ac_c_werror_flag"
11315                          || test ! -s conftest.err'
11316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317   (eval $ac_try) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; } &&
11321          { ac_try='test -s conftest$ac_exeext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   eval "$as_ac_var=yes"
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 eval "$as_ac_var=no"
11333 fi
11334 rm -f conftest.err conftest.$ac_objext \
11335       conftest$ac_exeext conftest.$ac_ext
11336 fi
11337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11339 if test `eval echo '${'$as_ac_var'}'` = yes; then
11340   cat >>confdefs.h <<_ACEOF
11341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11342 _ACEOF
11343
11344 echo "$as_me:$LINENO: checking for _doprnt" >&5
11345 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11346 if test "${ac_cv_func__doprnt+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11357 #define _doprnt innocuous__doprnt
11358
11359 /* System header to define __stub macros and hopefully few prototypes,
11360     which can conflict with char _doprnt (); below.
11361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362     <limits.h> exists even on freestanding compilers.  */
11363
11364 #ifdef __STDC__
11365 # include <limits.h>
11366 #else
11367 # include <assert.h>
11368 #endif
11369
11370 #undef _doprnt
11371
11372 /* Override any gcc2 internal prototype to avoid an error.  */
11373 #ifdef __cplusplus
11374 extern "C"
11375 {
11376 #endif
11377 /* We use char because int might match the return type of a gcc2
11378    builtin and then its argument prototype would still apply.  */
11379 char _doprnt ();
11380 /* The GNU C library defines this for functions which it implements
11381     to always fail with ENOSYS.  Some functions are actually named
11382     something starting with __ and the normal name is an alias.  */
11383 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11384 choke me
11385 #else
11386 char (*f) () = _doprnt;
11387 #endif
11388 #ifdef __cplusplus
11389 }
11390 #endif
11391
11392 int
11393 main ()
11394 {
11395 return f != _doprnt;
11396   ;
11397   return 0;
11398 }
11399 _ACEOF
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11402   (eval $ac_link) 2>conftest.er1
11403   ac_status=$?
11404   grep -v '^ *+' conftest.er1 >conftest.err
11405   rm -f conftest.er1
11406   cat conftest.err >&5
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); } &&
11409          { ac_try='test -z "$ac_c_werror_flag"
11410                          || test ! -s conftest.err'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; } &&
11416          { ac_try='test -s conftest$ac_exeext'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   ac_cv_func__doprnt=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 ac_cv_func__doprnt=no
11428 fi
11429 rm -f conftest.err conftest.$ac_objext \
11430       conftest$ac_exeext conftest.$ac_ext
11431 fi
11432 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11433 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11434 if test $ac_cv_func__doprnt = yes; then
11435
11436 cat >>confdefs.h <<\_ACEOF
11437 #define HAVE_DOPRNT 1
11438 _ACEOF
11439
11440 fi
11441
11442 fi
11443 done
11444
11445
11446 echo "$as_me:$LINENO: checking for working strcoll" >&5
11447 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11448 if test "${ac_cv_func_strcoll_works+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   if test "$cross_compiling" = yes; then
11452   ac_cv_func_strcoll_works=no
11453 else
11454   cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h.  */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h.  */
11460 $ac_includes_default
11461 int
11462 main ()
11463 {
11464 exit (strcoll ("abc", "def") >= 0 ||
11465          strcoll ("ABC", "DEF") >= 0 ||
11466          strcoll ("123", "456") >= 0)
11467   ;
11468   return 0;
11469 }
11470 _ACEOF
11471 rm -f conftest$ac_exeext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11473   (eval $ac_link) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478   (eval $ac_try) 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; }; then
11482   ac_cv_func_strcoll_works=yes
11483 else
11484   echo "$as_me: program exited with status $ac_status" >&5
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ( exit $ac_status )
11489 ac_cv_func_strcoll_works=no
11490 fi
11491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11492 fi
11493 fi
11494 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11495 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11496 if test $ac_cv_func_strcoll_works = yes; then
11497
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_STRCOLL 1
11500 _ACEOF
11501
11502 fi
11503
11504
11505
11506 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11507         MALLOC_TARGET=alloca
11508         MALLOC_SRC=alloca.c
11509
11510         MALLOC_LIB='-lmalloc'
11511         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11512         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11513         MALLOC_DEP='$(MALLOC_LIBRARY)'
11514 fi
11515
11516 if test "$ac_cv_func_vprintf" = no; then
11517     echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11518 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11519     cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 #include <stdio.h>
11526
11527 _ACEOF
11528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11529   $EGREP "[int[         ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
11530   ac_cv_func_vprintf=yes
11531 fi
11532 rm -f conftest*
11533
11534     echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11535 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11536     if test $ac_cv_func_vprintf = yes; then
11537         cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_VPRINTF 1
11539 _ACEOF
11540
11541     fi
11542 fi
11543
11544 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
11545   case $LIBOBJS in
11546     "vprint.$ac_objext"   | \
11547   *" vprint.$ac_objext"   | \
11548     "vprint.$ac_objext "* | \
11549   *" vprint.$ac_objext "* ) ;;
11550   *) LIBOBJS="$LIBOBJS vprint.$ac_objext" ;;
11551 esac
11552
11553 fi
11554
11555 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11556 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11557 if test "${ac_cv_type_signal+set}" = set; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 #include <sys/types.h>
11567 #include <signal.h>
11568 #ifdef signal
11569 # undef signal
11570 #endif
11571 #ifdef __cplusplus
11572 extern "C" void (*signal (int, void (*)(int)))(int);
11573 #else
11574 void (*signal ()) ();
11575 #endif
11576
11577 int
11578 main ()
11579 {
11580 int i;
11581   ;
11582   return 0;
11583 }
11584 _ACEOF
11585 rm -f conftest.$ac_objext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11587   (eval $ac_compile) 2>conftest.er1
11588   ac_status=$?
11589   grep -v '^ *+' conftest.er1 >conftest.err
11590   rm -f conftest.er1
11591   cat conftest.err >&5
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); } &&
11594          { ac_try='test -z "$ac_c_werror_flag"
11595                          || test ! -s conftest.err'
11596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597   (eval $ac_try) 2>&5
11598   ac_status=$?
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); }; } &&
11601          { ac_try='test -s conftest.$ac_objext'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; }; then
11607   ac_cv_type_signal=void
11608 else
11609   echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 ac_cv_type_signal=int
11613 fi
11614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615 fi
11616 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11617 echo "${ECHO_T}$ac_cv_type_signal" >&6
11618
11619 cat >>confdefs.h <<_ACEOF
11620 #define RETSIGTYPE $ac_cv_type_signal
11621 _ACEOF
11622
11623
11624
11625 echo "$as_me:$LINENO: checking for __setostype" >&5
11626 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11627 if test "${ac_cv_func___setostype+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11638 #define __setostype innocuous___setostype
11639
11640 /* System header to define __stub macros and hopefully few prototypes,
11641     which can conflict with char __setostype (); below.
11642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643     <limits.h> exists even on freestanding compilers.  */
11644
11645 #ifdef __STDC__
11646 # include <limits.h>
11647 #else
11648 # include <assert.h>
11649 #endif
11650
11651 #undef __setostype
11652
11653 /* Override any gcc2 internal prototype to avoid an error.  */
11654 #ifdef __cplusplus
11655 extern "C"
11656 {
11657 #endif
11658 /* We use char because int might match the return type of a gcc2
11659    builtin and then its argument prototype would still apply.  */
11660 char __setostype ();
11661 /* The GNU C library defines this for functions which it implements
11662     to always fail with ENOSYS.  Some functions are actually named
11663     something starting with __ and the normal name is an alias.  */
11664 #if defined (__stub___setostype) || defined (__stub_____setostype)
11665 choke me
11666 #else
11667 char (*f) () = __setostype;
11668 #endif
11669 #ifdef __cplusplus
11670 }
11671 #endif
11672
11673 int
11674 main ()
11675 {
11676 return f != __setostype;
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683   (eval $ac_link) 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } &&
11690          { ac_try='test -z "$ac_c_werror_flag"
11691                          || test ! -s conftest.err'
11692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693   (eval $ac_try) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   ac_cv_func___setostype=yes
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_cv_func___setostype=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext \
11711       conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11714 echo "${ECHO_T}$ac_cv_func___setostype" >&6
11715 if test $ac_cv_func___setostype = yes; then
11716   cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_SETOSTYPE 1
11718 _ACEOF
11719
11720 fi
11721
11722 echo "$as_me:$LINENO: checking for wait3" >&5
11723 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11724 if test "${ac_cv_func_wait3+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h.  */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h.  */
11733 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11735 #define wait3 innocuous_wait3
11736
11737 /* System header to define __stub macros and hopefully few prototypes,
11738     which can conflict with char wait3 (); below.
11739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740     <limits.h> exists even on freestanding compilers.  */
11741
11742 #ifdef __STDC__
11743 # include <limits.h>
11744 #else
11745 # include <assert.h>
11746 #endif
11747
11748 #undef wait3
11749
11750 /* Override any gcc2 internal prototype to avoid an error.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 {
11754 #endif
11755 /* We use char because int might match the return type of a gcc2
11756    builtin and then its argument prototype would still apply.  */
11757 char wait3 ();
11758 /* The GNU C library defines this for functions which it implements
11759     to always fail with ENOSYS.  Some functions are actually named
11760     something starting with __ and the normal name is an alias.  */
11761 #if defined (__stub_wait3) || defined (__stub___wait3)
11762 choke me
11763 #else
11764 char (*f) () = wait3;
11765 #endif
11766 #ifdef __cplusplus
11767 }
11768 #endif
11769
11770 int
11771 main ()
11772 {
11773 return f != wait3;
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780   (eval $ac_link) 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -z "$ac_c_werror_flag"
11788                          || test ! -s conftest.err'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; } &&
11794          { ac_try='test -s conftest$ac_exeext'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   ac_cv_func_wait3=yes
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_cv_func_wait3=no
11806 fi
11807 rm -f conftest.err conftest.$ac_objext \
11808       conftest$ac_exeext conftest.$ac_ext
11809 fi
11810 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11811 echo "${ECHO_T}$ac_cv_func_wait3" >&6
11812 if test $ac_cv_func_wait3 = yes; then
11813   cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_WAIT3 1
11815 _ACEOF
11816
11817 fi
11818
11819 echo "$as_me:$LINENO: checking for isinf" >&5
11820 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11821 if test "${ac_cv_func_isinf+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11832 #define isinf innocuous_isinf
11833
11834 /* System header to define __stub macros and hopefully few prototypes,
11835     which can conflict with char isinf (); below.
11836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837     <limits.h> exists even on freestanding compilers.  */
11838
11839 #ifdef __STDC__
11840 # include <limits.h>
11841 #else
11842 # include <assert.h>
11843 #endif
11844
11845 #undef isinf
11846
11847 /* Override any gcc2 internal prototype to avoid an error.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 {
11851 #endif
11852 /* We use char because int might match the return type of a gcc2
11853    builtin and then its argument prototype would still apply.  */
11854 char isinf ();
11855 /* The GNU C library defines this for functions which it implements
11856     to always fail with ENOSYS.  Some functions are actually named
11857     something starting with __ and the normal name is an alias.  */
11858 #if defined (__stub_isinf) || defined (__stub___isinf)
11859 choke me
11860 #else
11861 char (*f) () = isinf;
11862 #endif
11863 #ifdef __cplusplus
11864 }
11865 #endif
11866
11867 int
11868 main ()
11869 {
11870 return f != isinf;
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877   (eval $ac_link) 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } &&
11884          { ac_try='test -z "$ac_c_werror_flag"
11885                          || test ! -s conftest.err'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   ac_cv_func_isinf=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_func_isinf=no
11903 fi
11904 rm -f conftest.err conftest.$ac_objext \
11905       conftest$ac_exeext conftest.$ac_ext
11906 fi
11907 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11908 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11909 if test $ac_cv_func_isinf = yes; then
11910   cat >>confdefs.h <<\_ACEOF
11911 #define HAVE_ISINF_IN_LIBC 1
11912 _ACEOF
11913
11914 fi
11915
11916
11917 echo "$as_me:$LINENO: checking for mkfifo" >&5
11918 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11919 if test "${ac_cv_func_mkfifo+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
11929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11930 #define mkfifo innocuous_mkfifo
11931
11932 /* System header to define __stub macros and hopefully few prototypes,
11933     which can conflict with char mkfifo (); below.
11934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11935     <limits.h> exists even on freestanding compilers.  */
11936
11937 #ifdef __STDC__
11938 # include <limits.h>
11939 #else
11940 # include <assert.h>
11941 #endif
11942
11943 #undef mkfifo
11944
11945 /* Override any gcc2 internal prototype to avoid an error.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 {
11949 #endif
11950 /* We use char because int might match the return type of a gcc2
11951    builtin and then its argument prototype would still apply.  */
11952 char mkfifo ();
11953 /* The GNU C library defines this for functions which it implements
11954     to always fail with ENOSYS.  Some functions are actually named
11955     something starting with __ and the normal name is an alias.  */
11956 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11957 choke me
11958 #else
11959 char (*f) () = mkfifo;
11960 #endif
11961 #ifdef __cplusplus
11962 }
11963 #endif
11964
11965 int
11966 main ()
11967 {
11968 return f != mkfifo;
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975   (eval $ac_link) 2>conftest.er1
11976   ac_status=$?
11977   grep -v '^ *+' conftest.er1 >conftest.err
11978   rm -f conftest.er1
11979   cat conftest.err >&5
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } &&
11982          { ac_try='test -z "$ac_c_werror_flag"
11983                          || test ! -s conftest.err'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; } &&
11989          { ac_try='test -s conftest$ac_exeext'
11990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991   (eval $ac_try) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995   ac_cv_func_mkfifo=yes
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_cv_func_mkfifo=no
12001 fi
12002 rm -f conftest.err conftest.$ac_objext \
12003       conftest$ac_exeext conftest.$ac_ext
12004 fi
12005 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
12006 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
12007 if test $ac_cv_func_mkfifo = yes; then
12008   cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_MKFIFO 1
12010 _ACEOF
12011
12012 else
12013   cat >>confdefs.h <<\_ACEOF
12014 #define MKFIFO_MISSING 1
12015 _ACEOF
12016
12017 fi
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041 for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
12042                 getpeername getrlimit getrusage gettimeofday kill killpg \
12043                 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
12044                 ulimit waitpid
12045 do
12046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12047 echo "$as_me:$LINENO: checking for $ac_func" >&5
12048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12049 if eval "test \"\${$as_ac_var+set}\" = set"; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h.  */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h.  */
12058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12060 #define $ac_func innocuous_$ac_func
12061
12062 /* System header to define __stub macros and hopefully few prototypes,
12063     which can conflict with char $ac_func (); below.
12064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065     <limits.h> exists even on freestanding compilers.  */
12066
12067 #ifdef __STDC__
12068 # include <limits.h>
12069 #else
12070 # include <assert.h>
12071 #endif
12072
12073 #undef $ac_func
12074
12075 /* Override any gcc2 internal prototype to avoid an error.  */
12076 #ifdef __cplusplus
12077 extern "C"
12078 {
12079 #endif
12080 /* We use char because int might match the return type of a gcc2
12081    builtin and then its argument prototype would still apply.  */
12082 char $ac_func ();
12083 /* The GNU C library defines this for functions which it implements
12084     to always fail with ENOSYS.  Some functions are actually named
12085     something starting with __ and the normal name is an alias.  */
12086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12087 choke me
12088 #else
12089 char (*f) () = $ac_func;
12090 #endif
12091 #ifdef __cplusplus
12092 }
12093 #endif
12094
12095 int
12096 main ()
12097 {
12098 return f != $ac_func;
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105   (eval $ac_link) 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_c_werror_flag"
12113                          || test ! -s conftest.err'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest$ac_exeext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   eval "$as_ac_var=yes"
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 eval "$as_ac_var=no"
12131 fi
12132 rm -f conftest.err conftest.$ac_objext \
12133       conftest$ac_exeext conftest.$ac_ext
12134 fi
12135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12137 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138   cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12140 _ACEOF
12141
12142 fi
12143 done
12144
12145
12146 for ac_func in rename
12147 do
12148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12149 echo "$as_me:$LINENO: checking for $ac_func" >&5
12150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12151 if eval "test \"\${$as_ac_var+set}\" = set"; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12162 #define $ac_func innocuous_$ac_func
12163
12164 /* System header to define __stub macros and hopefully few prototypes,
12165     which can conflict with char $ac_func (); below.
12166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167     <limits.h> exists even on freestanding compilers.  */
12168
12169 #ifdef __STDC__
12170 # include <limits.h>
12171 #else
12172 # include <assert.h>
12173 #endif
12174
12175 #undef $ac_func
12176
12177 /* Override any gcc2 internal prototype to avoid an error.  */
12178 #ifdef __cplusplus
12179 extern "C"
12180 {
12181 #endif
12182 /* We use char because int might match the return type of a gcc2
12183    builtin and then its argument prototype would still apply.  */
12184 char $ac_func ();
12185 /* The GNU C library defines this for functions which it implements
12186     to always fail with ENOSYS.  Some functions are actually named
12187     something starting with __ and the normal name is an alias.  */
12188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12189 choke me
12190 #else
12191 char (*f) () = $ac_func;
12192 #endif
12193 #ifdef __cplusplus
12194 }
12195 #endif
12196
12197 int
12198 main ()
12199 {
12200 return f != $ac_func;
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207   (eval $ac_link) 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -z "$ac_c_werror_flag"
12215                          || test ! -s conftest.err'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; } &&
12221          { ac_try='test -s conftest$ac_exeext'
12222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223   (eval $ac_try) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   eval "$as_ac_var=yes"
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 eval "$as_ac_var=no"
12233 fi
12234 rm -f conftest.err conftest.$ac_objext \
12235       conftest$ac_exeext conftest.$ac_ext
12236 fi
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240   cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242 _ACEOF
12243
12244 else
12245   case $LIBOBJS in
12246     "$ac_func.$ac_objext"   | \
12247   *" $ac_func.$ac_objext"   | \
12248     "$ac_func.$ac_objext "* | \
12249   *" $ac_func.$ac_objext "* ) ;;
12250   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12251 esac
12252
12253 fi
12254 done
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285 for ac_func in bcopy bzero confstr fnmatch \
12286                 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12287                 memmove pathconf putenv raise regcomp regexec \
12288                 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12289                 sysconf tcgetattr times ttyname tzset unsetenv
12290 do
12291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292 echo "$as_me:$LINENO: checking for $ac_func" >&5
12293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294 if eval "test \"\${$as_ac_var+set}\" = set"; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12305 #define $ac_func innocuous_$ac_func
12306
12307 /* System header to define __stub macros and hopefully few prototypes,
12308     which can conflict with char $ac_func (); below.
12309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12310     <limits.h> exists even on freestanding compilers.  */
12311
12312 #ifdef __STDC__
12313 # include <limits.h>
12314 #else
12315 # include <assert.h>
12316 #endif
12317
12318 #undef $ac_func
12319
12320 /* Override any gcc2 internal prototype to avoid an error.  */
12321 #ifdef __cplusplus
12322 extern "C"
12323 {
12324 #endif
12325 /* We use char because int might match the return type of a gcc2
12326    builtin and then its argument prototype would still apply.  */
12327 char $ac_func ();
12328 /* The GNU C library defines this for functions which it implements
12329     to always fail with ENOSYS.  Some functions are actually named
12330     something starting with __ and the normal name is an alias.  */
12331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12332 choke me
12333 #else
12334 char (*f) () = $ac_func;
12335 #endif
12336 #ifdef __cplusplus
12337 }
12338 #endif
12339
12340 int
12341 main ()
12342 {
12343 return f != $ac_func;
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350   (eval $ac_link) 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag"
12358                          || test ! -s conftest.err'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; } &&
12364          { ac_try='test -s conftest$ac_exeext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   eval "$as_ac_var=yes"
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 eval "$as_ac_var=no"
12376 fi
12377 rm -f conftest.err conftest.$ac_objext \
12378       conftest$ac_exeext conftest.$ac_ext
12379 fi
12380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12382 if test `eval echo '${'$as_ac_var'}'` = yes; then
12383   cat >>confdefs.h <<_ACEOF
12384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12385 _ACEOF
12386
12387 fi
12388 done
12389
12390
12391
12392
12393
12394
12395 for ac_func in vsnprintf snprintf vasprintf asprintf
12396 do
12397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12398 echo "$as_me:$LINENO: checking for $ac_func" >&5
12399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12400 if eval "test \"\${$as_ac_var+set}\" = set"; then
12401   echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403   cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12411 #define $ac_func innocuous_$ac_func
12412
12413 /* System header to define __stub macros and hopefully few prototypes,
12414     which can conflict with char $ac_func (); below.
12415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416     <limits.h> exists even on freestanding compilers.  */
12417
12418 #ifdef __STDC__
12419 # include <limits.h>
12420 #else
12421 # include <assert.h>
12422 #endif
12423
12424 #undef $ac_func
12425
12426 /* Override any gcc2 internal prototype to avoid an error.  */
12427 #ifdef __cplusplus
12428 extern "C"
12429 {
12430 #endif
12431 /* We use char because int might match the return type of a gcc2
12432    builtin and then its argument prototype would still apply.  */
12433 char $ac_func ();
12434 /* The GNU C library defines this for functions which it implements
12435     to always fail with ENOSYS.  Some functions are actually named
12436     something starting with __ and the normal name is an alias.  */
12437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12438 choke me
12439 #else
12440 char (*f) () = $ac_func;
12441 #endif
12442 #ifdef __cplusplus
12443 }
12444 #endif
12445
12446 int
12447 main ()
12448 {
12449 return f != $ac_func;
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456   (eval $ac_link) 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_c_werror_flag"
12464                          || test ! -s conftest.err'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; } &&
12470          { ac_try='test -s conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   eval "$as_ac_var=yes"
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 eval "$as_ac_var=no"
12482 fi
12483 rm -f conftest.err conftest.$ac_objext \
12484       conftest$ac_exeext conftest.$ac_ext
12485 fi
12486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12488 if test `eval echo '${'$as_ac_var'}'` = yes; then
12489   cat >>confdefs.h <<_ACEOF
12490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12491 _ACEOF
12492
12493 fi
12494 done
12495
12496
12497
12498
12499
12500
12501
12502 for ac_func in isascii isblank isgraph isprint isspace isxdigit
12503 do
12504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 echo "$as_me:$LINENO: checking for $ac_func" >&5
12506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12507 if eval "test \"\${$as_ac_var+set}\" = set"; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12518 #define $ac_func innocuous_$ac_func
12519
12520 /* System header to define __stub macros and hopefully few prototypes,
12521     which can conflict with char $ac_func (); below.
12522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12523     <limits.h> exists even on freestanding compilers.  */
12524
12525 #ifdef __STDC__
12526 # include <limits.h>
12527 #else
12528 # include <assert.h>
12529 #endif
12530
12531 #undef $ac_func
12532
12533 /* Override any gcc2 internal prototype to avoid an error.  */
12534 #ifdef __cplusplus
12535 extern "C"
12536 {
12537 #endif
12538 /* We use char because int might match the return type of a gcc2
12539    builtin and then its argument prototype would still apply.  */
12540 char $ac_func ();
12541 /* The GNU C library defines this for functions which it implements
12542     to always fail with ENOSYS.  Some functions are actually named
12543     something starting with __ and the normal name is an alias.  */
12544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12545 choke me
12546 #else
12547 char (*f) () = $ac_func;
12548 #endif
12549 #ifdef __cplusplus
12550 }
12551 #endif
12552
12553 int
12554 main ()
12555 {
12556 return f != $ac_func;
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 rm -f conftest.$ac_objext conftest$ac_exeext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563   (eval $ac_link) 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -z "$ac_c_werror_flag"
12571                          || test ! -s conftest.err'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; } &&
12577          { ac_try='test -s conftest$ac_exeext'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   eval "$as_ac_var=yes"
12584 else
12585   echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 eval "$as_ac_var=no"
12589 fi
12590 rm -f conftest.err conftest.$ac_objext \
12591       conftest$ac_exeext conftest.$ac_ext
12592 fi
12593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12595 if test `eval echo '${'$as_ac_var'}'` = yes; then
12596   cat >>confdefs.h <<_ACEOF
12597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12598 _ACEOF
12599
12600 fi
12601 done
12602
12603
12604
12605
12606 for ac_func in getpwent getpwnam getpwuid
12607 do
12608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12609 echo "$as_me:$LINENO: checking for $ac_func" >&5
12610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12611 if eval "test \"\${$as_ac_var+set}\" = set"; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614   cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12622 #define $ac_func innocuous_$ac_func
12623
12624 /* System header to define __stub macros and hopefully few prototypes,
12625     which can conflict with char $ac_func (); below.
12626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12627     <limits.h> exists even on freestanding compilers.  */
12628
12629 #ifdef __STDC__
12630 # include <limits.h>
12631 #else
12632 # include <assert.h>
12633 #endif
12634
12635 #undef $ac_func
12636
12637 /* Override any gcc2 internal prototype to avoid an error.  */
12638 #ifdef __cplusplus
12639 extern "C"
12640 {
12641 #endif
12642 /* We use char because int might match the return type of a gcc2
12643    builtin and then its argument prototype would still apply.  */
12644 char $ac_func ();
12645 /* The GNU C library defines this for functions which it implements
12646     to always fail with ENOSYS.  Some functions are actually named
12647     something starting with __ and the normal name is an alias.  */
12648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12649 choke me
12650 #else
12651 char (*f) () = $ac_func;
12652 #endif
12653 #ifdef __cplusplus
12654 }
12655 #endif
12656
12657 int
12658 main ()
12659 {
12660 return f != $ac_func;
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667   (eval $ac_link) 2>conftest.er1
12668   ac_status=$?
12669   grep -v '^ *+' conftest.er1 >conftest.err
12670   rm -f conftest.er1
12671   cat conftest.err >&5
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } &&
12674          { ac_try='test -z "$ac_c_werror_flag"
12675                          || test ! -s conftest.err'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; } &&
12681          { ac_try='test -s conftest$ac_exeext'
12682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683   (eval $ac_try) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; }; then
12687   eval "$as_ac_var=yes"
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 eval "$as_ac_var=no"
12693 fi
12694 rm -f conftest.err conftest.$ac_objext \
12695       conftest$ac_exeext conftest.$ac_ext
12696 fi
12697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12699 if test `eval echo '${'$as_ac_var'}'` = yes; then
12700   cat >>confdefs.h <<_ACEOF
12701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12702 _ACEOF
12703
12704 fi
12705 done
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
12716 do
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12720 if eval "test \"\${$as_ac_var+set}\" = set"; then
12721   echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723   cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12731 #define $ac_func innocuous_$ac_func
12732
12733 /* System header to define __stub macros and hopefully few prototypes,
12734     which can conflict with char $ac_func (); below.
12735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736     <limits.h> exists even on freestanding compilers.  */
12737
12738 #ifdef __STDC__
12739 # include <limits.h>
12740 #else
12741 # include <assert.h>
12742 #endif
12743
12744 #undef $ac_func
12745
12746 /* Override any gcc2 internal prototype to avoid an error.  */
12747 #ifdef __cplusplus
12748 extern "C"
12749 {
12750 #endif
12751 /* We use char because int might match the return type of a gcc2
12752    builtin and then its argument prototype would still apply.  */
12753 char $ac_func ();
12754 /* The GNU C library defines this for functions which it implements
12755     to always fail with ENOSYS.  Some functions are actually named
12756     something starting with __ and the normal name is an alias.  */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12758 choke me
12759 #else
12760 char (*f) () = $ac_func;
12761 #endif
12762 #ifdef __cplusplus
12763 }
12764 #endif
12765
12766 int
12767 main ()
12768 {
12769 return f != $ac_func;
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776   (eval $ac_link) 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } &&
12783          { ac_try='test -z "$ac_c_werror_flag"
12784                          || test ! -s conftest.err'
12785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786   (eval $ac_try) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; } &&
12790          { ac_try='test -s conftest$ac_exeext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   eval "$as_ac_var=yes"
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 eval "$as_ac_var=no"
12802 fi
12803 rm -f conftest.err conftest.$ac_objext \
12804       conftest$ac_exeext conftest.$ac_ext
12805 fi
12806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12808 if test `eval echo '${'$as_ac_var'}'` = yes; then
12809   cat >>confdefs.h <<_ACEOF
12810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12811 _ACEOF
12812
12813 else
12814   case $LIBOBJS in
12815     "$ac_func.$ac_objext"   | \
12816   *" $ac_func.$ac_objext"   | \
12817     "$ac_func.$ac_objext "* | \
12818   *" $ac_func.$ac_objext "* ) ;;
12819   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12820 esac
12821
12822 fi
12823 done
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12834 do
12835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12836 echo "$as_me:$LINENO: checking for $ac_func" >&5
12837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12838 if eval "test \"\${$as_ac_var+set}\" = set"; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12849 #define $ac_func innocuous_$ac_func
12850
12851 /* System header to define __stub macros and hopefully few prototypes,
12852     which can conflict with char $ac_func (); below.
12853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12854     <limits.h> exists even on freestanding compilers.  */
12855
12856 #ifdef __STDC__
12857 # include <limits.h>
12858 #else
12859 # include <assert.h>
12860 #endif
12861
12862 #undef $ac_func
12863
12864 /* Override any gcc2 internal prototype to avoid an error.  */
12865 #ifdef __cplusplus
12866 extern "C"
12867 {
12868 #endif
12869 /* We use char because int might match the return type of a gcc2
12870    builtin and then its argument prototype would still apply.  */
12871 char $ac_func ();
12872 /* The GNU C library defines this for functions which it implements
12873     to always fail with ENOSYS.  Some functions are actually named
12874     something starting with __ and the normal name is an alias.  */
12875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12876 choke me
12877 #else
12878 char (*f) () = $ac_func;
12879 #endif
12880 #ifdef __cplusplus
12881 }
12882 #endif
12883
12884 int
12885 main ()
12886 {
12887 return f != $ac_func;
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894   (eval $ac_link) 2>conftest.er1
12895   ac_status=$?
12896   grep -v '^ *+' conftest.er1 >conftest.err
12897   rm -f conftest.er1
12898   cat conftest.err >&5
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } &&
12901          { ac_try='test -z "$ac_c_werror_flag"
12902                          || test ! -s conftest.err'
12903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904   (eval $ac_try) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   eval "$as_ac_var=yes"
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 eval "$as_ac_var=no"
12920 fi
12921 rm -f conftest.err conftest.$ac_objext \
12922       conftest$ac_exeext conftest.$ac_ext
12923 fi
12924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12926 if test `eval echo '${'$as_ac_var'}'` = yes; then
12927   cat >>confdefs.h <<_ACEOF
12928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929 _ACEOF
12930
12931 else
12932   case $LIBOBJS in
12933     "$ac_func.$ac_objext"   | \
12934   *" $ac_func.$ac_objext"   | \
12935     "$ac_func.$ac_objext "* | \
12936   *" $ac_func.$ac_objext "* ) ;;
12937   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12938 esac
12939
12940 fi
12941 done
12942
12943
12944
12945 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
12946 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
12947 if test "${ac_cv_have_decl_confstr+set}" = set; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956 $ac_includes_default
12957 int
12958 main ()
12959 {
12960 #ifndef confstr
12961   char *p = (char *) confstr;
12962 #endif
12963
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970   (eval $ac_compile) 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_c_werror_flag"
12978                          || test ! -s conftest.err'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest.$ac_objext'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; }; then
12990   ac_cv_have_decl_confstr=yes
12991 else
12992   echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_cv_have_decl_confstr=no
12996 fi
12997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12998 fi
12999 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
13000 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
13001 if test $ac_cv_have_decl_confstr = yes; then
13002
13003 cat >>confdefs.h <<_ACEOF
13004 #define HAVE_DECL_CONFSTR 1
13005 _ACEOF
13006
13007
13008 else
13009   cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_CONFSTR 0
13011 _ACEOF
13012
13013
13014 fi
13015
13016
13017 echo "$as_me:$LINENO: checking whether printf is declared" >&5
13018 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13019 if test "${ac_cv_have_decl_printf+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 /* confdefs.h.  */
13024 _ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h.  */
13028 $ac_includes_default
13029 int
13030 main ()
13031 {
13032 #ifndef printf
13033   char *p = (char *) printf;
13034 #endif
13035
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042   (eval $ac_compile) 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -z "$ac_c_werror_flag"
13050                          || test ! -s conftest.err'
13051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052   (eval $ac_try) 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; } &&
13056          { ac_try='test -s conftest.$ac_objext'
13057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058   (eval $ac_try) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; }; then
13062   ac_cv_have_decl_printf=yes
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067 ac_cv_have_decl_printf=no
13068 fi
13069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 fi
13071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
13072 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13073 if test $ac_cv_have_decl_printf = yes; then
13074
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_DECL_PRINTF 1
13077 _ACEOF
13078
13079
13080 else
13081   cat >>confdefs.h <<_ACEOF
13082 #define HAVE_DECL_PRINTF 0
13083 _ACEOF
13084
13085
13086 fi
13087
13088
13089 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13090 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13091 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13092   echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094   cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100 $ac_includes_default
13101 int
13102 main ()
13103 {
13104 #ifndef sbrk
13105   char *p = (char *) sbrk;
13106 #endif
13107
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 rm -f conftest.$ac_objext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114   (eval $ac_compile) 2>conftest.er1
13115   ac_status=$?
13116   grep -v '^ *+' conftest.er1 >conftest.err
13117   rm -f conftest.er1
13118   cat conftest.err >&5
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } &&
13121          { ac_try='test -z "$ac_c_werror_flag"
13122                          || test ! -s conftest.err'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; } &&
13128          { ac_try='test -s conftest.$ac_objext'
13129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130   (eval $ac_try) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); }; }; then
13134   ac_cv_have_decl_sbrk=yes
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139 ac_cv_have_decl_sbrk=no
13140 fi
13141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13142 fi
13143 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13144 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13145 if test $ac_cv_have_decl_sbrk = yes; then
13146
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_DECL_SBRK 1
13149 _ACEOF
13150
13151
13152 else
13153   cat >>confdefs.h <<_ACEOF
13154 #define HAVE_DECL_SBRK 0
13155 _ACEOF
13156
13157
13158 fi
13159
13160
13161 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
13162 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13163 if test "${ac_cv_have_decl_strcpy+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172 $ac_includes_default
13173 int
13174 main ()
13175 {
13176 #ifndef strcpy
13177   char *p = (char *) strcpy;
13178 #endif
13179
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186   (eval $ac_compile) 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } &&
13193          { ac_try='test -z "$ac_c_werror_flag"
13194                          || test ! -s conftest.err'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; } &&
13200          { ac_try='test -s conftest.$ac_objext'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   ac_cv_have_decl_strcpy=yes
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211 ac_cv_have_decl_strcpy=no
13212 fi
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13214 fi
13215 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
13216 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13217 if test $ac_cv_have_decl_strcpy = yes; then
13218
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_DECL_STRCPY 1
13221 _ACEOF
13222
13223
13224 else
13225   cat >>confdefs.h <<_ACEOF
13226 #define HAVE_DECL_STRCPY 0
13227 _ACEOF
13228
13229
13230 fi
13231
13232
13233 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13234 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13235 if test "${ac_cv_have_decl_strsignal+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h.  */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h.  */
13244 $ac_includes_default
13245 int
13246 main ()
13247 {
13248 #ifndef strsignal
13249   char *p = (char *) strsignal;
13250 #endif
13251
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 rm -f conftest.$ac_objext
13257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13258   (eval $ac_compile) 2>conftest.er1
13259   ac_status=$?
13260   grep -v '^ *+' conftest.er1 >conftest.err
13261   rm -f conftest.er1
13262   cat conftest.err >&5
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } &&
13265          { ac_try='test -z "$ac_c_werror_flag"
13266                          || test ! -s conftest.err'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; } &&
13272          { ac_try='test -s conftest.$ac_objext'
13273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274   (eval $ac_try) 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); }; }; then
13278   ac_cv_have_decl_strsignal=yes
13279 else
13280   echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 ac_cv_have_decl_strsignal=no
13284 fi
13285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13286 fi
13287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13288 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13289 if test $ac_cv_have_decl_strsignal = yes; then
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_DECL_STRSIGNAL 1
13293 _ACEOF
13294
13295
13296 else
13297   cat >>confdefs.h <<_ACEOF
13298 #define HAVE_DECL_STRSIGNAL 0
13299 _ACEOF
13300
13301
13302 fi
13303
13304
13305
13306 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13307 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13308 if test "${ac_cv_have_decl_strtold+set}" = set; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311   cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h.  */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h.  */
13317 $ac_includes_default
13318 int
13319 main ()
13320 {
13321 #ifndef strtold
13322   char *p = (char *) strtold;
13323 #endif
13324
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331   (eval $ac_compile) 2>conftest.er1
13332   ac_status=$?
13333   grep -v '^ *+' conftest.er1 >conftest.err
13334   rm -f conftest.er1
13335   cat conftest.err >&5
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); } &&
13338          { ac_try='test -z "$ac_c_werror_flag"
13339                          || test ! -s conftest.err'
13340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341   (eval $ac_try) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; } &&
13345          { ac_try='test -s conftest.$ac_objext'
13346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347   (eval $ac_try) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; }; then
13351   ac_cv_have_decl_strtold=yes
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 ac_cv_have_decl_strtold=no
13357 fi
13358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13359 fi
13360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13361 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13362 if test $ac_cv_have_decl_strtold = yes; then
13363
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_DECL_STRTOLD 1
13366 _ACEOF
13367
13368
13369     echo "$as_me:$LINENO: checking for broken strtold" >&5
13370 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13371     if test "${bash_cv_strtold_broken+set}" = set; then
13372   echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374   cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380 #include <stdlib.h>
13381 int
13382 main ()
13383 {
13384 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391   (eval $ac_compile) 2>conftest.er1
13392   ac_status=$?
13393   grep -v '^ *+' conftest.er1 >conftest.err
13394   rm -f conftest.er1
13395   cat conftest.err >&5
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); } &&
13398          { ac_try='test -z "$ac_c_werror_flag"
13399                          || test ! -s conftest.err'
13400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401   (eval $ac_try) 2>&5
13402   ac_status=$?
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); }; } &&
13405          { ac_try='test -s conftest.$ac_objext'
13406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407   (eval $ac_try) 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; }; then
13411   bash_cv_strtold_broken=no
13412 else
13413   echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 bash_cv_strtold_broken=yes
13417 fi
13418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13419
13420
13421 fi
13422
13423     echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13424 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13425     if test "$bash_cv_strtold_broken" = "yes" ; then
13426         cat >>confdefs.h <<\_ACEOF
13427 #define STRTOLD_BROKEN 1
13428 _ACEOF
13429
13430     fi
13431
13432 else
13433   cat >>confdefs.h <<_ACEOF
13434 #define HAVE_DECL_STRTOLD 0
13435 _ACEOF
13436
13437
13438 fi
13439
13440
13441
13442
13443
13444
13445
13446 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13447 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13448 if test "${bash_cv_decl_strtoimax+set}" = set; then
13449   echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451   cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h.  */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h.  */
13457
13458 #if STDC_HEADERS
13459 #  include <stdlib.h>
13460 #endif
13461 #if HAVE_INTTYPES_H
13462 #  include <inttypes.h>
13463 #endif
13464
13465 int
13466 main ()
13467 {
13468 return !strtoimax;
13469   ;
13470   return 0;
13471 }
13472 _ACEOF
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13475   (eval $ac_link) 2>conftest.er1
13476   ac_status=$?
13477   grep -v '^ *+' conftest.er1 >conftest.err
13478   rm -f conftest.er1
13479   cat conftest.err >&5
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); } &&
13482          { ac_try='test -z "$ac_c_werror_flag"
13483                          || test ! -s conftest.err'
13484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485   (eval $ac_try) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; } &&
13489          { ac_try='test -s conftest$ac_exeext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   bash_cv_decl_strtoimax=yes
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500 bash_cv_decl_strtoimax=no
13501 fi
13502 rm -f conftest.err conftest.$ac_objext \
13503       conftest$ac_exeext conftest.$ac_ext
13504 fi
13505 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13506 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13507 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13508 if test $bash_cv_decl_strtoimax = yes; then
13509   cat >>confdefs.h <<_ACEOF
13510 #define $bash_tr_func 1
13511 _ACEOF
13512
13513 else
13514   cat >>confdefs.h <<_ACEOF
13515 #define $bash_tr_func 0
13516 _ACEOF
13517
13518 fi
13519
13520
13521
13522
13523 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13524 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13525 if test "${bash_cv_decl_strtol+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534
13535 #if STDC_HEADERS
13536 #  include <stdlib.h>
13537 #endif
13538 #if HAVE_INTTYPES_H
13539 #  include <inttypes.h>
13540 #endif
13541
13542 int
13543 main ()
13544 {
13545 return !strtol;
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552   (eval $ac_link) 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -z "$ac_c_werror_flag"
13560                          || test ! -s conftest.err'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest$ac_exeext'
13567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568   (eval $ac_try) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }; then
13572   bash_cv_decl_strtol=yes
13573 else
13574   echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 bash_cv_decl_strtol=no
13578 fi
13579 rm -f conftest.err conftest.$ac_objext \
13580       conftest$ac_exeext conftest.$ac_ext
13581 fi
13582 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13583 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13584 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13585 if test $bash_cv_decl_strtol = yes; then
13586   cat >>confdefs.h <<_ACEOF
13587 #define $bash_tr_func 1
13588 _ACEOF
13589
13590 else
13591   cat >>confdefs.h <<_ACEOF
13592 #define $bash_tr_func 0
13593 _ACEOF
13594
13595 fi
13596
13597
13598
13599
13600 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13601 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13602 if test "${bash_cv_decl_strtoll+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611
13612 #if STDC_HEADERS
13613 #  include <stdlib.h>
13614 #endif
13615 #if HAVE_INTTYPES_H
13616 #  include <inttypes.h>
13617 #endif
13618
13619 int
13620 main ()
13621 {
13622 return !strtoll;
13623   ;
13624   return 0;
13625 }
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629   (eval $ac_link) 2>conftest.er1
13630   ac_status=$?
13631   grep -v '^ *+' conftest.er1 >conftest.err
13632   rm -f conftest.er1
13633   cat conftest.err >&5
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); } &&
13636          { ac_try='test -z "$ac_c_werror_flag"
13637                          || test ! -s conftest.err'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; } &&
13643          { ac_try='test -s conftest$ac_exeext'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; }; then
13649   bash_cv_decl_strtoll=yes
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 bash_cv_decl_strtoll=no
13655 fi
13656 rm -f conftest.err conftest.$ac_objext \
13657       conftest$ac_exeext conftest.$ac_ext
13658 fi
13659 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13660 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13661 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13662 if test $bash_cv_decl_strtoll = yes; then
13663   cat >>confdefs.h <<_ACEOF
13664 #define $bash_tr_func 1
13665 _ACEOF
13666
13667 else
13668   cat >>confdefs.h <<_ACEOF
13669 #define $bash_tr_func 0
13670 _ACEOF
13671
13672 fi
13673
13674
13675
13676
13677 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13678 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13679 if test "${bash_cv_decl_strtoul+set}" = set; then
13680   echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682   cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h.  */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h.  */
13688
13689 #if STDC_HEADERS
13690 #  include <stdlib.h>
13691 #endif
13692 #if HAVE_INTTYPES_H
13693 #  include <inttypes.h>
13694 #endif
13695
13696 int
13697 main ()
13698 {
13699 return !strtoul;
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706   (eval $ac_link) 2>conftest.er1
13707   ac_status=$?
13708   grep -v '^ *+' conftest.er1 >conftest.err
13709   rm -f conftest.er1
13710   cat conftest.err >&5
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } &&
13713          { ac_try='test -z "$ac_c_werror_flag"
13714                          || test ! -s conftest.err'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; } &&
13720          { ac_try='test -s conftest$ac_exeext'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   bash_cv_decl_strtoul=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 bash_cv_decl_strtoul=no
13732 fi
13733 rm -f conftest.err conftest.$ac_objext \
13734       conftest$ac_exeext conftest.$ac_ext
13735 fi
13736 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13737 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13738 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13739 if test $bash_cv_decl_strtoul = yes; then
13740   cat >>confdefs.h <<_ACEOF
13741 #define $bash_tr_func 1
13742 _ACEOF
13743
13744 else
13745   cat >>confdefs.h <<_ACEOF
13746 #define $bash_tr_func 0
13747 _ACEOF
13748
13749 fi
13750
13751
13752
13753
13754 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13755 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13756 if test "${bash_cv_decl_strtoull+set}" = set; then
13757   echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759   cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h.  */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h.  */
13765
13766 #if STDC_HEADERS
13767 #  include <stdlib.h>
13768 #endif
13769 #if HAVE_INTTYPES_H
13770 #  include <inttypes.h>
13771 #endif
13772
13773 int
13774 main ()
13775 {
13776 return !strtoull;
13777   ;
13778   return 0;
13779 }
13780 _ACEOF
13781 rm -f conftest.$ac_objext conftest$ac_exeext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783   (eval $ac_link) 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } &&
13790          { ac_try='test -z "$ac_c_werror_flag"
13791                          || test ! -s conftest.err'
13792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793   (eval $ac_try) 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; } &&
13797          { ac_try='test -s conftest$ac_exeext'
13798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799   (eval $ac_try) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; }; then
13803   bash_cv_decl_strtoull=yes
13804 else
13805   echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808 bash_cv_decl_strtoull=no
13809 fi
13810 rm -f conftest.err conftest.$ac_objext \
13811       conftest$ac_exeext conftest.$ac_ext
13812 fi
13813 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13814 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13815 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13816 if test $bash_cv_decl_strtoull = yes; then
13817   cat >>confdefs.h <<_ACEOF
13818 #define $bash_tr_func 1
13819 _ACEOF
13820
13821 else
13822   cat >>confdefs.h <<_ACEOF
13823 #define $bash_tr_func 0
13824 _ACEOF
13825
13826 fi
13827
13828
13829
13830
13831 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
13832 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
13833 if test "${bash_cv_decl_strtoumax+set}" = set; then
13834   echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836   cat >conftest.$ac_ext <<_ACEOF
13837 /* confdefs.h.  */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h.  */
13842
13843 #if STDC_HEADERS
13844 #  include <stdlib.h>
13845 #endif
13846 #if HAVE_INTTYPES_H
13847 #  include <inttypes.h>
13848 #endif
13849
13850 int
13851 main ()
13852 {
13853 return !strtoumax;
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860   (eval $ac_link) 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_c_werror_flag"
13868                          || test ! -s conftest.err'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; } &&
13874          { ac_try='test -s conftest$ac_exeext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   bash_cv_decl_strtoumax=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 bash_cv_decl_strtoumax=no
13886 fi
13887 rm -f conftest.err conftest.$ac_objext \
13888       conftest$ac_exeext conftest.$ac_ext
13889 fi
13890 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
13891 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
13892 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13893 if test $bash_cv_decl_strtoumax = yes; then
13894   cat >>confdefs.h <<_ACEOF
13895 #define $bash_tr_func 1
13896 _ACEOF
13897
13898 else
13899   cat >>confdefs.h <<_ACEOF
13900 #define $bash_tr_func 0
13901 _ACEOF
13902
13903 fi
13904
13905
13906
13907
13908
13909 for ac_header in stdlib.h sys/time.h unistd.h
13910 do
13911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13913   echo "$as_me:$LINENO: checking for $ac_header" >&5
13914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13916   echo $ECHO_N "(cached) $ECHO_C" >&6
13917 fi
13918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13920 else
13921   # Is the header compilable?
13922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h.  */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h.  */
13930 $ac_includes_default
13931 #include <$ac_header>
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935   (eval $ac_compile) 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -z "$ac_c_werror_flag"
13943                          || test ! -s conftest.err'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; } &&
13949          { ac_try='test -s conftest.$ac_objext'
13950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951   (eval $ac_try) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955   ac_header_compiler=yes
13956 else
13957   echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 ac_header_compiler=no
13961 fi
13962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 echo "${ECHO_T}$ac_header_compiler" >&6
13965
13966 # Is the header present?
13967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975 #include <$ac_header>
13976 _ACEOF
13977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13979   ac_status=$?
13980   grep -v '^ *+' conftest.er1 >conftest.err
13981   rm -f conftest.er1
13982   cat conftest.err >&5
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } >/dev/null; then
13985   if test -s conftest.err; then
13986     ac_cpp_err=$ac_c_preproc_warn_flag
13987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13988   else
13989     ac_cpp_err=
13990   fi
13991 else
13992   ac_cpp_err=yes
13993 fi
13994 if test -z "$ac_cpp_err"; then
13995   ac_header_preproc=yes
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000   ac_header_preproc=no
14001 fi
14002 rm -f conftest.err conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14004 echo "${ECHO_T}$ac_header_preproc" >&6
14005
14006 # So?  What about this header?
14007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14008   yes:no: )
14009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14013     ac_header_preproc=yes
14014     ;;
14015   no:yes:* )
14016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14028     (
14029       cat <<\_ASBOX
14030 ## ------------------------------- ##
14031 ## Report this to bug-bash@gnu.org ##
14032 ## ------------------------------- ##
14033 _ASBOX
14034     ) |
14035       sed "s/^/$as_me: WARNING:     /" >&2
14036     ;;
14037 esac
14038 echo "$as_me:$LINENO: checking for $ac_header" >&5
14039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043   eval "$as_ac_Header=\$ac_header_preproc"
14044 fi
14045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14047
14048 fi
14049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14050   cat >>confdefs.h <<_ACEOF
14051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14052 _ACEOF
14053
14054 fi
14055
14056 done
14057
14058
14059 for ac_func in alarm
14060 do
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_var+set}\" = set"; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h.  */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h.  */
14073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14075 #define $ac_func innocuous_$ac_func
14076
14077 /* System header to define __stub macros and hopefully few prototypes,
14078     which can conflict with char $ac_func (); below.
14079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080     <limits.h> exists even on freestanding compilers.  */
14081
14082 #ifdef __STDC__
14083 # include <limits.h>
14084 #else
14085 # include <assert.h>
14086 #endif
14087
14088 #undef $ac_func
14089
14090 /* Override any gcc2 internal prototype to avoid an error.  */
14091 #ifdef __cplusplus
14092 extern "C"
14093 {
14094 #endif
14095 /* We use char because int might match the return type of a gcc2
14096    builtin and then its argument prototype would still apply.  */
14097 char $ac_func ();
14098 /* The GNU C library defines this for functions which it implements
14099     to always fail with ENOSYS.  Some functions are actually named
14100     something starting with __ and the normal name is an alias.  */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14102 choke me
14103 #else
14104 char (*f) () = $ac_func;
14105 #endif
14106 #ifdef __cplusplus
14107 }
14108 #endif
14109
14110 int
14111 main ()
14112 {
14113 return f != $ac_func;
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120   (eval $ac_link) 2>conftest.er1
14121   ac_status=$?
14122   grep -v '^ *+' conftest.er1 >conftest.err
14123   rm -f conftest.er1
14124   cat conftest.err >&5
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); } &&
14127          { ac_try='test -z "$ac_c_werror_flag"
14128                          || test ! -s conftest.err'
14129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130   (eval $ac_try) 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; } &&
14134          { ac_try='test -s conftest$ac_exeext'
14135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136   (eval $ac_try) 2>&5
14137   ac_status=$?
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); }; }; then
14140   eval "$as_ac_var=yes"
14141 else
14142   echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14144
14145 eval "$as_ac_var=no"
14146 fi
14147 rm -f conftest.err conftest.$ac_objext \
14148       conftest$ac_exeext conftest.$ac_ext
14149 fi
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14152 if test `eval echo '${'$as_ac_var'}'` = yes; then
14153   cat >>confdefs.h <<_ACEOF
14154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14155 _ACEOF
14156
14157 fi
14158 done
14159
14160 echo "$as_me:$LINENO: checking for working mktime" >&5
14161 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14162 if test "${ac_cv_func_working_mktime+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   if test "$cross_compiling" = yes; then
14166   ac_cv_func_working_mktime=no
14167 else
14168   cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h.  */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h.  */
14174 /* Test program from Paul Eggert and Tony Leneis.  */
14175 #if TIME_WITH_SYS_TIME
14176 # include <sys/time.h>
14177 # include <time.h>
14178 #else
14179 # if HAVE_SYS_TIME_H
14180 #  include <sys/time.h>
14181 # else
14182 #  include <time.h>
14183 # endif
14184 #endif
14185
14186 #if HAVE_STDLIB_H
14187 # include <stdlib.h>
14188 #endif
14189
14190 #if HAVE_UNISTD_H
14191 # include <unistd.h>
14192 #endif
14193
14194 #if !HAVE_ALARM
14195 # define alarm(X) /* empty */
14196 #endif
14197
14198 /* Work around redefinition to rpl_putenv by other config tests.  */
14199 #undef putenv
14200
14201 static time_t time_t_max;
14202 static time_t time_t_min;
14203
14204 /* Values we'll use to set the TZ environment variable.  */
14205 static char *tz_strings[] = {
14206   (char *) 0, "TZ=GMT0", "TZ=JST-9",
14207   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14208 };
14209 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14210
14211 /* Fail if mktime fails to convert a date in the spring-forward gap.
14212    Based on a problem report from Andreas Jaeger.  */
14213 static void
14214 spring_forward_gap ()
14215 {
14216   /* glibc (up to about 1998-10-07) failed this test. */
14217   struct tm tm;
14218
14219   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14220      instead of "TZ=America/Vancouver" in order to detect the bug even
14221      on systems that don't support the Olson extension, or don't have the
14222      full zoneinfo tables installed.  */
14223   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14224
14225   tm.tm_year = 98;
14226   tm.tm_mon = 3;
14227   tm.tm_mday = 5;
14228   tm.tm_hour = 2;
14229   tm.tm_min = 0;
14230   tm.tm_sec = 0;
14231   tm.tm_isdst = -1;
14232   if (mktime (&tm) == (time_t)-1)
14233     exit (1);
14234 }
14235
14236 static void
14237 mktime_test1 (now)
14238      time_t now;
14239 {
14240   struct tm *lt;
14241   if ((lt = localtime (&now)) && mktime (lt) != now)
14242     exit (1);
14243 }
14244
14245 static void
14246 mktime_test (now)
14247      time_t now;
14248 {
14249   mktime_test1 (now);
14250   mktime_test1 ((time_t) (time_t_max - now));
14251   mktime_test1 ((time_t) (time_t_min + now));
14252 }
14253
14254 static void
14255 irix_6_4_bug ()
14256 {
14257   /* Based on code from Ariel Faigon.  */
14258   struct tm tm;
14259   tm.tm_year = 96;
14260   tm.tm_mon = 3;
14261   tm.tm_mday = 0;
14262   tm.tm_hour = 0;
14263   tm.tm_min = 0;
14264   tm.tm_sec = 0;
14265   tm.tm_isdst = -1;
14266   mktime (&tm);
14267   if (tm.tm_mon != 2 || tm.tm_mday != 31)
14268     exit (1);
14269 }
14270
14271 static void
14272 bigtime_test (j)
14273      int j;
14274 {
14275   struct tm tm;
14276   time_t now;
14277   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14278   now = mktime (&tm);
14279   if (now != (time_t) -1)
14280     {
14281       struct tm *lt = localtime (&now);
14282       if (! (lt
14283              && lt->tm_year == tm.tm_year
14284              && lt->tm_mon == tm.tm_mon
14285              && lt->tm_mday == tm.tm_mday
14286              && lt->tm_hour == tm.tm_hour
14287              && lt->tm_min == tm.tm_min
14288              && lt->tm_sec == tm.tm_sec
14289              && lt->tm_yday == tm.tm_yday
14290              && lt->tm_wday == tm.tm_wday
14291              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14292                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14293         exit (1);
14294     }
14295 }
14296
14297 int
14298 main ()
14299 {
14300   time_t t, delta;
14301   int i, j;
14302
14303   /* This test makes some buggy mktime implementations loop.
14304      Give up after 60 seconds; a mktime slower than that
14305      isn't worth using anyway.  */
14306   alarm (60);
14307
14308   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14309     continue;
14310   time_t_max--;
14311   if ((time_t) -1 < 0)
14312     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14313       continue;
14314   delta = time_t_max / 997; /* a suitable prime number */
14315   for (i = 0; i < N_STRINGS; i++)
14316     {
14317       if (tz_strings[i])
14318         putenv (tz_strings[i]);
14319
14320       for (t = 0; t <= time_t_max - delta; t += delta)
14321         mktime_test (t);
14322       mktime_test ((time_t) 1);
14323       mktime_test ((time_t) (60 * 60));
14324       mktime_test ((time_t) (60 * 60 * 24));
14325
14326       for (j = 1; 0 < j; j *= 2)
14327         bigtime_test (j);
14328       bigtime_test (j - 1);
14329     }
14330   irix_6_4_bug ();
14331   spring_forward_gap ();
14332   exit (0);
14333 }
14334 _ACEOF
14335 rm -f conftest$ac_exeext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14337   (eval $ac_link) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   ac_cv_func_working_mktime=yes
14347 else
14348   echo "$as_me: program exited with status $ac_status" >&5
14349 echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 ( exit $ac_status )
14353 ac_cv_func_working_mktime=no
14354 fi
14355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14356 fi
14357 fi
14358 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14359 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14360 if test $ac_cv_func_working_mktime = no; then
14361   case $LIBOBJS in
14362     "mktime.$ac_objext"   | \
14363   *" mktime.$ac_objext"   | \
14364     "mktime.$ac_objext "* | \
14365   *" mktime.$ac_objext "* ) ;;
14366   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14367 esac
14368
14369 fi
14370
14371
14372
14373
14374
14375
14376
14377
14378 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14379 do
14380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14382   echo "$as_me:$LINENO: checking for $ac_header" >&5
14383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14385   echo $ECHO_N "(cached) $ECHO_C" >&6
14386 fi
14387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14389 else
14390   # Is the header compilable?
14391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h.  */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h.  */
14399 $ac_includes_default
14400 #include <$ac_header>
14401 _ACEOF
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404   (eval $ac_compile) 2>conftest.er1
14405   ac_status=$?
14406   grep -v '^ *+' conftest.er1 >conftest.err
14407   rm -f conftest.er1
14408   cat conftest.err >&5
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } &&
14411          { ac_try='test -z "$ac_c_werror_flag"
14412                          || test ! -s conftest.err'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; } &&
14418          { ac_try='test -s conftest.$ac_objext'
14419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420   (eval $ac_try) 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; }; then
14424   ac_header_compiler=yes
14425 else
14426   echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14428
14429 ac_header_compiler=no
14430 fi
14431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14433 echo "${ECHO_T}$ac_header_compiler" >&6
14434
14435 # Is the header present?
14436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444 #include <$ac_header>
14445 _ACEOF
14446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14448   ac_status=$?
14449   grep -v '^ *+' conftest.er1 >conftest.err
14450   rm -f conftest.er1
14451   cat conftest.err >&5
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); } >/dev/null; then
14454   if test -s conftest.err; then
14455     ac_cpp_err=$ac_c_preproc_warn_flag
14456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14457   else
14458     ac_cpp_err=
14459   fi
14460 else
14461   ac_cpp_err=yes
14462 fi
14463 if test -z "$ac_cpp_err"; then
14464   ac_header_preproc=yes
14465 else
14466   echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469   ac_header_preproc=no
14470 fi
14471 rm -f conftest.err conftest.$ac_ext
14472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 echo "${ECHO_T}$ac_header_preproc" >&6
14474
14475 # So?  What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14477   yes:no: )
14478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14482     ac_header_preproc=yes
14483     ;;
14484   no:yes:* )
14485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14497     (
14498       cat <<\_ASBOX
14499 ## ------------------------------- ##
14500 ## Report this to bug-bash@gnu.org ##
14501 ## ------------------------------- ##
14502 _ASBOX
14503     ) |
14504       sed "s/^/$as_me: WARNING:     /" >&2
14505     ;;
14506 esac
14507 echo "$as_me:$LINENO: checking for $ac_header" >&5
14508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14510   echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512   eval "$as_ac_Header=\$ac_header_preproc"
14513 fi
14514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14516
14517 fi
14518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519   cat >>confdefs.h <<_ACEOF
14520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14521 _ACEOF
14522
14523 fi
14524
14525 done
14526
14527
14528
14529
14530 for ac_header in stdlib.h unistd.h
14531 do
14532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14534   echo "$as_me:$LINENO: checking for $ac_header" >&5
14535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14537   echo $ECHO_N "(cached) $ECHO_C" >&6
14538 fi
14539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14541 else
14542   # Is the header compilable?
14543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h.  */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h.  */
14551 $ac_includes_default
14552 #include <$ac_header>
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556   (eval $ac_compile) 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } &&
14563          { ac_try='test -z "$ac_c_werror_flag"
14564                          || test ! -s conftest.err'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; } &&
14570          { ac_try='test -s conftest.$ac_objext'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; }; then
14576   ac_header_compiler=yes
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 ac_header_compiler=no
14582 fi
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14585 echo "${ECHO_T}$ac_header_compiler" >&6
14586
14587 # Is the header present?
14588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596 #include <$ac_header>
14597 _ACEOF
14598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } >/dev/null; then
14606   if test -s conftest.err; then
14607     ac_cpp_err=$ac_c_preproc_warn_flag
14608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14609   else
14610     ac_cpp_err=
14611   fi
14612 else
14613   ac_cpp_err=yes
14614 fi
14615 if test -z "$ac_cpp_err"; then
14616   ac_header_preproc=yes
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621   ac_header_preproc=no
14622 fi
14623 rm -f conftest.err conftest.$ac_ext
14624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14625 echo "${ECHO_T}$ac_header_preproc" >&6
14626
14627 # So?  What about this header?
14628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14629   yes:no: )
14630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14634     ac_header_preproc=yes
14635     ;;
14636   no:yes:* )
14637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14649     (
14650       cat <<\_ASBOX
14651 ## ------------------------------- ##
14652 ## Report this to bug-bash@gnu.org ##
14653 ## ------------------------------- ##
14654 _ASBOX
14655     ) |
14656       sed "s/^/$as_me: WARNING:     /" >&2
14657     ;;
14658 esac
14659 echo "$as_me:$LINENO: checking for $ac_header" >&5
14660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   eval "$as_ac_Header=\$ac_header_preproc"
14665 fi
14666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14668
14669 fi
14670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14671   cat >>confdefs.h <<_ACEOF
14672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14673 _ACEOF
14674
14675 fi
14676
14677 done
14678
14679
14680 for ac_func in getpagesize
14681 do
14682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683 echo "$as_me:$LINENO: checking for $ac_func" >&5
14684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14685 if eval "test \"\${$as_ac_var+set}\" = set"; then
14686   echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688   cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14696 #define $ac_func innocuous_$ac_func
14697
14698 /* System header to define __stub macros and hopefully few prototypes,
14699     which can conflict with char $ac_func (); below.
14700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14701     <limits.h> exists even on freestanding compilers.  */
14702
14703 #ifdef __STDC__
14704 # include <limits.h>
14705 #else
14706 # include <assert.h>
14707 #endif
14708
14709 #undef $ac_func
14710
14711 /* Override any gcc2 internal prototype to avoid an error.  */
14712 #ifdef __cplusplus
14713 extern "C"
14714 {
14715 #endif
14716 /* We use char because int might match the return type of a gcc2
14717    builtin and then its argument prototype would still apply.  */
14718 char $ac_func ();
14719 /* The GNU C library defines this for functions which it implements
14720     to always fail with ENOSYS.  Some functions are actually named
14721     something starting with __ and the normal name is an alias.  */
14722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14723 choke me
14724 #else
14725 char (*f) () = $ac_func;
14726 #endif
14727 #ifdef __cplusplus
14728 }
14729 #endif
14730
14731 int
14732 main ()
14733 {
14734 return f != $ac_func;
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741   (eval $ac_link) 2>conftest.er1
14742   ac_status=$?
14743   grep -v '^ *+' conftest.er1 >conftest.err
14744   rm -f conftest.er1
14745   cat conftest.err >&5
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } &&
14748          { ac_try='test -z "$ac_c_werror_flag"
14749                          || test ! -s conftest.err'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; } &&
14755          { ac_try='test -s conftest$ac_exeext'
14756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757   (eval $ac_try) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   eval "$as_ac_var=yes"
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 eval "$as_ac_var=no"
14767 fi
14768 rm -f conftest.err conftest.$ac_objext \
14769       conftest$ac_exeext conftest.$ac_ext
14770 fi
14771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14773 if test `eval echo '${'$as_ac_var'}'` = yes; then
14774   cat >>confdefs.h <<_ACEOF
14775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776 _ACEOF
14777
14778 fi
14779 done
14780
14781 echo "$as_me:$LINENO: checking for working mmap" >&5
14782 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14783 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   if test "$cross_compiling" = yes; then
14787   ac_cv_func_mmap_fixed_mapped=no
14788 else
14789   cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 $ac_includes_default
14796 /* malloc might have been renamed as rpl_malloc. */
14797 #undef malloc
14798
14799 /* Thanks to Mike Haertel and Jim Avera for this test.
14800    Here is a matrix of mmap possibilities:
14801         mmap private not fixed
14802         mmap private fixed at somewhere currently unmapped
14803         mmap private fixed at somewhere already mapped
14804         mmap shared not fixed
14805         mmap shared fixed at somewhere currently unmapped
14806         mmap shared fixed at somewhere already mapped
14807    For private mappings, we should verify that changes cannot be read()
14808    back from the file, nor mmap's back from the file at a different
14809    address.  (There have been systems where private was not correctly
14810    implemented like the infamous i386 svr4.0, and systems where the
14811    VM page cache was not coherent with the file system buffer cache
14812    like early versions of FreeBSD and possibly contemporary NetBSD.)
14813    For shared mappings, we should conversely verify that changes get
14814    propagated back to all the places they're supposed to be.
14815
14816    Grep wants private fixed already mapped.
14817    The main things grep needs to know about mmap are:
14818    * does it exist and is it safe to write into the mmap'd area
14819    * how to use it (BSD variants)  */
14820
14821 #include <fcntl.h>
14822 #include <sys/mman.h>
14823
14824 #if !STDC_HEADERS && !HAVE_STDLIB_H
14825 char *malloc ();
14826 #endif
14827
14828 /* This mess was copied from the GNU getpagesize.h.  */
14829 #if !HAVE_GETPAGESIZE
14830 /* Assume that all systems that can run configure have sys/param.h.  */
14831 # if !HAVE_SYS_PARAM_H
14832 #  define HAVE_SYS_PARAM_H 1
14833 # endif
14834
14835 # ifdef _SC_PAGESIZE
14836 #  define getpagesize() sysconf(_SC_PAGESIZE)
14837 # else /* no _SC_PAGESIZE */
14838 #  if HAVE_SYS_PARAM_H
14839 #   include <sys/param.h>
14840 #   ifdef EXEC_PAGESIZE
14841 #    define getpagesize() EXEC_PAGESIZE
14842 #   else /* no EXEC_PAGESIZE */
14843 #    ifdef NBPG
14844 #     define getpagesize() NBPG * CLSIZE
14845 #     ifndef CLSIZE
14846 #      define CLSIZE 1
14847 #     endif /* no CLSIZE */
14848 #    else /* no NBPG */
14849 #     ifdef NBPC
14850 #      define getpagesize() NBPC
14851 #     else /* no NBPC */
14852 #      ifdef PAGESIZE
14853 #       define getpagesize() PAGESIZE
14854 #      endif /* PAGESIZE */
14855 #     endif /* no NBPC */
14856 #    endif /* no NBPG */
14857 #   endif /* no EXEC_PAGESIZE */
14858 #  else /* no HAVE_SYS_PARAM_H */
14859 #   define getpagesize() 8192   /* punt totally */
14860 #  endif /* no HAVE_SYS_PARAM_H */
14861 # endif /* no _SC_PAGESIZE */
14862
14863 #endif /* no HAVE_GETPAGESIZE */
14864
14865 int
14866 main ()
14867 {
14868   char *data, *data2, *data3;
14869   int i, pagesize;
14870   int fd;
14871
14872   pagesize = getpagesize ();
14873
14874   /* First, make a file with some known garbage in it. */
14875   data = (char *) malloc (pagesize);
14876   if (!data)
14877     exit (1);
14878   for (i = 0; i < pagesize; ++i)
14879     *(data + i) = rand ();
14880   umask (0);
14881   fd = creat ("conftest.mmap", 0600);
14882   if (fd < 0)
14883     exit (1);
14884   if (write (fd, data, pagesize) != pagesize)
14885     exit (1);
14886   close (fd);
14887
14888   /* Next, try to mmap the file at a fixed address which already has
14889      something else allocated at it.  If we can, also make sure that
14890      we see the same garbage.  */
14891   fd = open ("conftest.mmap", O_RDWR);
14892   if (fd < 0)
14893     exit (1);
14894   data2 = (char *) malloc (2 * pagesize);
14895   if (!data2)
14896     exit (1);
14897   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14898   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14899                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14900     exit (1);
14901   for (i = 0; i < pagesize; ++i)
14902     if (*(data + i) != *(data2 + i))
14903       exit (1);
14904
14905   /* Finally, make sure that changes to the mapped area do not
14906      percolate back to the file as seen by read().  (This is a bug on
14907      some variants of i386 svr4.0.)  */
14908   for (i = 0; i < pagesize; ++i)
14909     *(data2 + i) = *(data2 + i) + 1;
14910   data3 = (char *) malloc (pagesize);
14911   if (!data3)
14912     exit (1);
14913   if (read (fd, data3, pagesize) != pagesize)
14914     exit (1);
14915   for (i = 0; i < pagesize; ++i)
14916     if (*(data + i) != *(data3 + i))
14917       exit (1);
14918   close (fd);
14919   exit (0);
14920 }
14921 _ACEOF
14922 rm -f conftest$ac_exeext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14924   (eval $ac_link) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; }; then
14933   ac_cv_func_mmap_fixed_mapped=yes
14934 else
14935   echo "$as_me: program exited with status $ac_status" >&5
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 ( exit $ac_status )
14940 ac_cv_func_mmap_fixed_mapped=no
14941 fi
14942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14943 fi
14944 fi
14945 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14946 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14948
14949 cat >>confdefs.h <<\_ACEOF
14950 #define HAVE_MMAP 1
14951 _ACEOF
14952
14953 fi
14954 rm -f conftest.mmap
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
14966                 munmap stpcpy strcspn strdup
14967 do
14968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14969 echo "$as_me:$LINENO: checking for $ac_func" >&5
14970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14971 if eval "test \"\${$as_ac_var+set}\" = set"; then
14972   echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974   cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h.  */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h.  */
14980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14982 #define $ac_func innocuous_$ac_func
14983
14984 /* System header to define __stub macros and hopefully few prototypes,
14985     which can conflict with char $ac_func (); below.
14986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14987     <limits.h> exists even on freestanding compilers.  */
14988
14989 #ifdef __STDC__
14990 # include <limits.h>
14991 #else
14992 # include <assert.h>
14993 #endif
14994
14995 #undef $ac_func
14996
14997 /* Override any gcc2 internal prototype to avoid an error.  */
14998 #ifdef __cplusplus
14999 extern "C"
15000 {
15001 #endif
15002 /* We use char because int might match the return type of a gcc2
15003    builtin and then its argument prototype would still apply.  */
15004 char $ac_func ();
15005 /* The GNU C library defines this for functions which it implements
15006     to always fail with ENOSYS.  Some functions are actually named
15007     something starting with __ and the normal name is an alias.  */
15008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15009 choke me
15010 #else
15011 char (*f) () = $ac_func;
15012 #endif
15013 #ifdef __cplusplus
15014 }
15015 #endif
15016
15017 int
15018 main ()
15019 {
15020 return f != $ac_func;
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15027   (eval $ac_link) 2>conftest.er1
15028   ac_status=$?
15029   grep -v '^ *+' conftest.er1 >conftest.err
15030   rm -f conftest.er1
15031   cat conftest.err >&5
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); } &&
15034          { ac_try='test -z "$ac_c_werror_flag"
15035                          || test ! -s conftest.err'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; } &&
15041          { ac_try='test -s conftest$ac_exeext'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047   eval "$as_ac_var=yes"
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052 eval "$as_ac_var=no"
15053 fi
15054 rm -f conftest.err conftest.$ac_objext \
15055       conftest$ac_exeext conftest.$ac_ext
15056 fi
15057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15059 if test `eval echo '${'$as_ac_var'}'` = yes; then
15060   cat >>confdefs.h <<_ACEOF
15061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15062 _ACEOF
15063
15064 fi
15065 done
15066
15067
15068 INTL_DEP= INTL_INC= LIBINTL_H=
15069 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15070         INTL_DEP='${INTL_LIBDIR}/libintl.a'
15071         INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15072         LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15073 fi
15074
15075
15076
15077
15078
15079
15080
15081 for ac_header in wctype.h
15082 do
15083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15085   echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 fi
15090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15092 else
15093   # Is the header compilable?
15094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h.  */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h.  */
15102 $ac_includes_default
15103 #include <$ac_header>
15104 _ACEOF
15105 rm -f conftest.$ac_objext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107   (eval $ac_compile) 2>conftest.er1
15108   ac_status=$?
15109   grep -v '^ *+' conftest.er1 >conftest.err
15110   rm -f conftest.er1
15111   cat conftest.err >&5
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } &&
15114          { ac_try='test -z "$ac_c_werror_flag"
15115                          || test ! -s conftest.err'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; } &&
15121          { ac_try='test -s conftest.$ac_objext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_header_compiler=yes
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 ac_header_compiler=no
15133 fi
15134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15136 echo "${ECHO_T}$ac_header_compiler" >&6
15137
15138 # Is the header present?
15139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 #include <$ac_header>
15148 _ACEOF
15149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15151   ac_status=$?
15152   grep -v '^ *+' conftest.er1 >conftest.err
15153   rm -f conftest.er1
15154   cat conftest.err >&5
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } >/dev/null; then
15157   if test -s conftest.err; then
15158     ac_cpp_err=$ac_c_preproc_warn_flag
15159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15160   else
15161     ac_cpp_err=
15162   fi
15163 else
15164   ac_cpp_err=yes
15165 fi
15166 if test -z "$ac_cpp_err"; then
15167   ac_header_preproc=yes
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172   ac_header_preproc=no
15173 fi
15174 rm -f conftest.err conftest.$ac_ext
15175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15176 echo "${ECHO_T}$ac_header_preproc" >&6
15177
15178 # So?  What about this header?
15179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15180   yes:no: )
15181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15185     ac_header_preproc=yes
15186     ;;
15187   no:yes:* )
15188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15200     (
15201       cat <<\_ASBOX
15202 ## ------------------------------- ##
15203 ## Report this to bug-bash@gnu.org ##
15204 ## ------------------------------- ##
15205 _ASBOX
15206     ) |
15207       sed "s/^/$as_me: WARNING:     /" >&2
15208     ;;
15209 esac
15210 echo "$as_me:$LINENO: checking for $ac_header" >&5
15211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15213   echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215   eval "$as_ac_Header=\$ac_header_preproc"
15216 fi
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15219
15220 fi
15221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15222   cat >>confdefs.h <<_ACEOF
15223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15224 _ACEOF
15225
15226 fi
15227
15228 done
15229
15230
15231 for ac_header in wchar.h
15232 do
15233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15235   echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 fi
15240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15242 else
15243   # Is the header compilable?
15244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252 $ac_includes_default
15253 #include <$ac_header>
15254 _ACEOF
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257   (eval $ac_compile) 2>conftest.er1
15258   ac_status=$?
15259   grep -v '^ *+' conftest.er1 >conftest.err
15260   rm -f conftest.er1
15261   cat conftest.err >&5
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); } &&
15264          { ac_try='test -z "$ac_c_werror_flag"
15265                          || test ! -s conftest.err'
15266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267   (eval $ac_try) 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; } &&
15271          { ac_try='test -s conftest.$ac_objext'
15272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273   (eval $ac_try) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); }; }; then
15277   ac_header_compiler=yes
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_header_compiler=no
15283 fi
15284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6
15287
15288 # Is the header present?
15289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 #include <$ac_header>
15298 _ACEOF
15299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15301   ac_status=$?
15302   grep -v '^ *+' conftest.er1 >conftest.err
15303   rm -f conftest.er1
15304   cat conftest.err >&5
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); } >/dev/null; then
15307   if test -s conftest.err; then
15308     ac_cpp_err=$ac_c_preproc_warn_flag
15309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15310   else
15311     ac_cpp_err=
15312   fi
15313 else
15314   ac_cpp_err=yes
15315 fi
15316 if test -z "$ac_cpp_err"; then
15317   ac_header_preproc=yes
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322   ac_header_preproc=no
15323 fi
15324 rm -f conftest.err conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15326 echo "${ECHO_T}$ac_header_preproc" >&6
15327
15328 # So?  What about this header?
15329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15330   yes:no: )
15331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15335     ac_header_preproc=yes
15336     ;;
15337   no:yes:* )
15338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15350     (
15351       cat <<\_ASBOX
15352 ## ------------------------------- ##
15353 ## Report this to bug-bash@gnu.org ##
15354 ## ------------------------------- ##
15355 _ASBOX
15356     ) |
15357       sed "s/^/$as_me: WARNING:     /" >&2
15358     ;;
15359 esac
15360 echo "$as_me:$LINENO: checking for $ac_header" >&5
15361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15363   echo $ECHO_N "(cached) $ECHO_C" >&6
15364 else
15365   eval "$as_ac_Header=\$ac_header_preproc"
15366 fi
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15369
15370 fi
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372   cat >>confdefs.h <<_ACEOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374 _ACEOF
15375
15376 fi
15377
15378 done
15379
15380
15381 for ac_header in langinfo.h
15382 do
15383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15385   echo "$as_me:$LINENO: checking for $ac_header" >&5
15386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 fi
15390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15392 else
15393   # Is the header compilable?
15394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402 $ac_includes_default
15403 #include <$ac_header>
15404 _ACEOF
15405 rm -f conftest.$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407   (eval $ac_compile) 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -z "$ac_c_werror_flag"
15415                          || test ! -s conftest.err'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; } &&
15421          { ac_try='test -s conftest.$ac_objext'
15422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423   (eval $ac_try) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; }; then
15427   ac_header_compiler=yes
15428 else
15429   echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 ac_header_compiler=no
15433 fi
15434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6
15437
15438 # Is the header present?
15439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <$ac_header>
15448 _ACEOF
15449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } >/dev/null; then
15457   if test -s conftest.err; then
15458     ac_cpp_err=$ac_c_preproc_warn_flag
15459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15460   else
15461     ac_cpp_err=
15462   fi
15463 else
15464   ac_cpp_err=yes
15465 fi
15466 if test -z "$ac_cpp_err"; then
15467   ac_header_preproc=yes
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472   ac_header_preproc=no
15473 fi
15474 rm -f conftest.err conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15476 echo "${ECHO_T}$ac_header_preproc" >&6
15477
15478 # So?  What about this header?
15479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15480   yes:no: )
15481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15485     ac_header_preproc=yes
15486     ;;
15487   no:yes:* )
15488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15500     (
15501       cat <<\_ASBOX
15502 ## ------------------------------- ##
15503 ## Report this to bug-bash@gnu.org ##
15504 ## ------------------------------- ##
15505 _ASBOX
15506     ) |
15507       sed "s/^/$as_me: WARNING:     /" >&2
15508     ;;
15509 esac
15510 echo "$as_me:$LINENO: checking for $ac_header" >&5
15511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15513   echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515   eval "$as_ac_Header=\$ac_header_preproc"
15516 fi
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15519
15520 fi
15521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15522   cat >>confdefs.h <<_ACEOF
15523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15524 _ACEOF
15525
15526 fi
15527
15528 done
15529
15530
15531 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15532 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15533 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15544 #define mbsrtowcs innocuous_mbsrtowcs
15545
15546 /* System header to define __stub macros and hopefully few prototypes,
15547     which can conflict with char mbsrtowcs (); below.
15548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15549     <limits.h> exists even on freestanding compilers.  */
15550
15551 #ifdef __STDC__
15552 # include <limits.h>
15553 #else
15554 # include <assert.h>
15555 #endif
15556
15557 #undef mbsrtowcs
15558
15559 /* Override any gcc2 internal prototype to avoid an error.  */
15560 #ifdef __cplusplus
15561 extern "C"
15562 {
15563 #endif
15564 /* We use char because int might match the return type of a gcc2
15565    builtin and then its argument prototype would still apply.  */
15566 char mbsrtowcs ();
15567 /* The GNU C library defines this for functions which it implements
15568     to always fail with ENOSYS.  Some functions are actually named
15569     something starting with __ and the normal name is an alias.  */
15570 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15571 choke me
15572 #else
15573 char (*f) () = mbsrtowcs;
15574 #endif
15575 #ifdef __cplusplus
15576 }
15577 #endif
15578
15579 int
15580 main ()
15581 {
15582 return f != mbsrtowcs;
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589   (eval $ac_link) 2>conftest.er1
15590   ac_status=$?
15591   grep -v '^ *+' conftest.er1 >conftest.err
15592   rm -f conftest.er1
15593   cat conftest.err >&5
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } &&
15596          { ac_try='test -z "$ac_c_werror_flag"
15597                          || test ! -s conftest.err'
15598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599   (eval $ac_try) 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; } &&
15603          { ac_try='test -s conftest$ac_exeext'
15604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605   (eval $ac_try) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; }; then
15609   ac_cv_func_mbsrtowcs=yes
15610 else
15611   echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614 ac_cv_func_mbsrtowcs=no
15615 fi
15616 rm -f conftest.err conftest.$ac_objext \
15617       conftest$ac_exeext conftest.$ac_ext
15618 fi
15619 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15620 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15621 if test $ac_cv_func_mbsrtowcs = yes; then
15622   cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_MBSRTOWCS 1
15624 _ACEOF
15625
15626 fi
15627
15628 echo "$as_me:$LINENO: checking for mbrtowc" >&5
15629 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
15630 if test "${ac_cv_func_mbrtowc+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633   cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
15640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15641 #define mbrtowc innocuous_mbrtowc
15642
15643 /* System header to define __stub macros and hopefully few prototypes,
15644     which can conflict with char mbrtowc (); below.
15645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15646     <limits.h> exists even on freestanding compilers.  */
15647
15648 #ifdef __STDC__
15649 # include <limits.h>
15650 #else
15651 # include <assert.h>
15652 #endif
15653
15654 #undef mbrtowc
15655
15656 /* Override any gcc2 internal prototype to avoid an error.  */
15657 #ifdef __cplusplus
15658 extern "C"
15659 {
15660 #endif
15661 /* We use char because int might match the return type of a gcc2
15662    builtin and then its argument prototype would still apply.  */
15663 char mbrtowc ();
15664 /* The GNU C library defines this for functions which it implements
15665     to always fail with ENOSYS.  Some functions are actually named
15666     something starting with __ and the normal name is an alias.  */
15667 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
15668 choke me
15669 #else
15670 char (*f) () = mbrtowc;
15671 #endif
15672 #ifdef __cplusplus
15673 }
15674 #endif
15675
15676 int
15677 main ()
15678 {
15679 return f != mbrtowc;
15680   ;
15681   return 0;
15682 }
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686   (eval $ac_link) 2>conftest.er1
15687   ac_status=$?
15688   grep -v '^ *+' conftest.er1 >conftest.err
15689   rm -f conftest.er1
15690   cat conftest.err >&5
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } &&
15693          { ac_try='test -z "$ac_c_werror_flag"
15694                          || test ! -s conftest.err'
15695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696   (eval $ac_try) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; } &&
15700          { ac_try='test -s conftest$ac_exeext'
15701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702   (eval $ac_try) 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706   ac_cv_func_mbrtowc=yes
15707 else
15708   echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15710
15711 ac_cv_func_mbrtowc=no
15712 fi
15713 rm -f conftest.err conftest.$ac_objext \
15714       conftest$ac_exeext conftest.$ac_ext
15715 fi
15716 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
15717 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
15718 if test $ac_cv_func_mbrtowc = yes; then
15719   cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_MBRTOWC 1
15721 _ACEOF
15722
15723 fi
15724
15725 echo "$as_me:$LINENO: checking for mbrlen" >&5
15726 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15727 if test "${ac_cv_func_mbrlen+set}" = set; then
15728   echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730   cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h.  */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h.  */
15736 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15738 #define mbrlen innocuous_mbrlen
15739
15740 /* System header to define __stub macros and hopefully few prototypes,
15741     which can conflict with char mbrlen (); below.
15742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15743     <limits.h> exists even on freestanding compilers.  */
15744
15745 #ifdef __STDC__
15746 # include <limits.h>
15747 #else
15748 # include <assert.h>
15749 #endif
15750
15751 #undef mbrlen
15752
15753 /* Override any gcc2 internal prototype to avoid an error.  */
15754 #ifdef __cplusplus
15755 extern "C"
15756 {
15757 #endif
15758 /* We use char because int might match the return type of a gcc2
15759    builtin and then its argument prototype would still apply.  */
15760 char mbrlen ();
15761 /* The GNU C library defines this for functions which it implements
15762     to always fail with ENOSYS.  Some functions are actually named
15763     something starting with __ and the normal name is an alias.  */
15764 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15765 choke me
15766 #else
15767 char (*f) () = mbrlen;
15768 #endif
15769 #ifdef __cplusplus
15770 }
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 return f != mbrlen;
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783   (eval $ac_link) 2>conftest.er1
15784   ac_status=$?
15785   grep -v '^ *+' conftest.er1 >conftest.err
15786   rm -f conftest.er1
15787   cat conftest.err >&5
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); } &&
15790          { ac_try='test -z "$ac_c_werror_flag"
15791                          || test ! -s conftest.err'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; } &&
15797          { ac_try='test -s conftest$ac_exeext'
15798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799   (eval $ac_try) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); }; }; then
15803   ac_cv_func_mbrlen=yes
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 ac_cv_func_mbrlen=no
15809 fi
15810 rm -f conftest.err conftest.$ac_objext \
15811       conftest$ac_exeext conftest.$ac_ext
15812 fi
15813 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15814 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15815 if test $ac_cv_func_mbrlen = yes; then
15816   cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_MBRLEN 1
15818 _ACEOF
15819
15820 fi
15821
15822 echo "$as_me:$LINENO: checking for wctomb" >&5
15823 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
15824 if test "${ac_cv_func_wctomb+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
15834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15835 #define wctomb innocuous_wctomb
15836
15837 /* System header to define __stub macros and hopefully few prototypes,
15838     which can conflict with char wctomb (); below.
15839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15840     <limits.h> exists even on freestanding compilers.  */
15841
15842 #ifdef __STDC__
15843 # include <limits.h>
15844 #else
15845 # include <assert.h>
15846 #endif
15847
15848 #undef wctomb
15849
15850 /* Override any gcc2 internal prototype to avoid an error.  */
15851 #ifdef __cplusplus
15852 extern "C"
15853 {
15854 #endif
15855 /* We use char because int might match the return type of a gcc2
15856    builtin and then its argument prototype would still apply.  */
15857 char wctomb ();
15858 /* The GNU C library defines this for functions which it implements
15859     to always fail with ENOSYS.  Some functions are actually named
15860     something starting with __ and the normal name is an alias.  */
15861 #if defined (__stub_wctomb) || defined (__stub___wctomb)
15862 choke me
15863 #else
15864 char (*f) () = wctomb;
15865 #endif
15866 #ifdef __cplusplus
15867 }
15868 #endif
15869
15870 int
15871 main ()
15872 {
15873 return f != wctomb;
15874   ;
15875   return 0;
15876 }
15877 _ACEOF
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15880   (eval $ac_link) 2>conftest.er1
15881   ac_status=$?
15882   grep -v '^ *+' conftest.er1 >conftest.err
15883   rm -f conftest.er1
15884   cat conftest.err >&5
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } &&
15887          { ac_try='test -z "$ac_c_werror_flag"
15888                          || test ! -s conftest.err'
15889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890   (eval $ac_try) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; } &&
15894          { ac_try='test -s conftest$ac_exeext'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900   ac_cv_func_wctomb=yes
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_cv_func_wctomb=no
15906 fi
15907 rm -f conftest.err conftest.$ac_objext \
15908       conftest$ac_exeext conftest.$ac_ext
15909 fi
15910 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
15911 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
15912 if test $ac_cv_func_wctomb = yes; then
15913   cat >>confdefs.h <<\_ACEOF
15914 #define HAVE_WCTOMB 1
15915 _ACEOF
15916
15917 fi
15918
15919 echo "$as_me:$LINENO: checking for wcwidth" >&5
15920 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
15921 if test "${ac_cv_func_wcwidth+set}" = set; then
15922   echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924   cat >conftest.$ac_ext <<_ACEOF
15925 /* confdefs.h.  */
15926 _ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h.  */
15930 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
15931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15932 #define wcwidth innocuous_wcwidth
15933
15934 /* System header to define __stub macros and hopefully few prototypes,
15935     which can conflict with char wcwidth (); below.
15936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15937     <limits.h> exists even on freestanding compilers.  */
15938
15939 #ifdef __STDC__
15940 # include <limits.h>
15941 #else
15942 # include <assert.h>
15943 #endif
15944
15945 #undef wcwidth
15946
15947 /* Override any gcc2 internal prototype to avoid an error.  */
15948 #ifdef __cplusplus
15949 extern "C"
15950 {
15951 #endif
15952 /* We use char because int might match the return type of a gcc2
15953    builtin and then its argument prototype would still apply.  */
15954 char wcwidth ();
15955 /* The GNU C library defines this for functions which it implements
15956     to always fail with ENOSYS.  Some functions are actually named
15957     something starting with __ and the normal name is an alias.  */
15958 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
15959 choke me
15960 #else
15961 char (*f) () = wcwidth;
15962 #endif
15963 #ifdef __cplusplus
15964 }
15965 #endif
15966
15967 int
15968 main ()
15969 {
15970 return f != wcwidth;
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext conftest$ac_exeext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15977   (eval $ac_link) 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -z "$ac_c_werror_flag"
15985                          || test ! -s conftest.err'
15986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987   (eval $ac_try) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); }; } &&
15991          { ac_try='test -s conftest$ac_exeext'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; }; then
15997   ac_cv_func_wcwidth=yes
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 ac_cv_func_wcwidth=no
16003 fi
16004 rm -f conftest.err conftest.$ac_objext \
16005       conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
16008 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
16009 if test $ac_cv_func_wcwidth = yes; then
16010   cat >>confdefs.h <<\_ACEOF
16011 #define HAVE_WCWIDTH 1
16012 _ACEOF
16013
16014 fi
16015
16016 echo "$as_me:$LINENO: checking for wcsdup" >&5
16017 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16018 if test "${ac_cv_func_wcsdup+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16029 #define wcsdup innocuous_wcsdup
16030
16031 /* System header to define __stub macros and hopefully few prototypes,
16032     which can conflict with char wcsdup (); below.
16033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16034     <limits.h> exists even on freestanding compilers.  */
16035
16036 #ifdef __STDC__
16037 # include <limits.h>
16038 #else
16039 # include <assert.h>
16040 #endif
16041
16042 #undef wcsdup
16043
16044 /* Override any gcc2 internal prototype to avoid an error.  */
16045 #ifdef __cplusplus
16046 extern "C"
16047 {
16048 #endif
16049 /* We use char because int might match the return type of a gcc2
16050    builtin and then its argument prototype would still apply.  */
16051 char wcsdup ();
16052 /* The GNU C library defines this for functions which it implements
16053     to always fail with ENOSYS.  Some functions are actually named
16054     something starting with __ and the normal name is an alias.  */
16055 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16056 choke me
16057 #else
16058 char (*f) () = wcsdup;
16059 #endif
16060 #ifdef __cplusplus
16061 }
16062 #endif
16063
16064 int
16065 main ()
16066 {
16067 return f != wcsdup;
16068   ;
16069   return 0;
16070 }
16071 _ACEOF
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16074   (eval $ac_link) 2>conftest.er1
16075   ac_status=$?
16076   grep -v '^ *+' conftest.er1 >conftest.err
16077   rm -f conftest.er1
16078   cat conftest.err >&5
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); } &&
16081          { ac_try='test -z "$ac_c_werror_flag"
16082                          || test ! -s conftest.err'
16083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084   (eval $ac_try) 2>&5
16085   ac_status=$?
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); }; } &&
16088          { ac_try='test -s conftest$ac_exeext'
16089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090   (eval $ac_try) 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; }; then
16094   ac_cv_func_wcsdup=yes
16095 else
16096   echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099 ac_cv_func_wcsdup=no
16100 fi
16101 rm -f conftest.err conftest.$ac_objext \
16102       conftest$ac_exeext conftest.$ac_ext
16103 fi
16104 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
16105 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16106 if test $ac_cv_func_wcsdup = yes; then
16107   cat >>confdefs.h <<\_ACEOF
16108 #define HAVE_WCSDUP 1
16109 _ACEOF
16110
16111 fi
16112
16113
16114 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16115 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16116 if test "${bash_cv_have_mbstate_t+set}" = set; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119   cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125
16126 #include <wchar.h>
16127 int
16128 main ()
16129 {
16130
16131   mbstate_t ps;
16132   mbstate_t *psp;
16133   psp = (mbstate_t *)0;
16134
16135   ;
16136   return 0;
16137 }
16138 _ACEOF
16139 rm -f conftest.$ac_objext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16141   (eval $ac_compile) 2>conftest.er1
16142   ac_status=$?
16143   grep -v '^ *+' conftest.er1 >conftest.err
16144   rm -f conftest.er1
16145   cat conftest.err >&5
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); } &&
16148          { ac_try='test -z "$ac_c_werror_flag"
16149                          || test ! -s conftest.err'
16150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151   (eval $ac_try) 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); }; } &&
16155          { ac_try='test -s conftest.$ac_objext'
16156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157   (eval $ac_try) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   bash_cv_have_mbstate_t=yes
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 bash_cv_have_mbstate_t=no
16167 fi
16168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16169 fi
16170 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
16171 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
16172 if test $bash_cv_have_mbstate_t = yes; then
16173         cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_MBSTATE_T 1
16175 _ACEOF
16176
16177 fi
16178
16179 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16180 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16181 if test "${bash_cv_langinfo_codeset+set}" = set; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184   cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 #include <langinfo.h>
16191 int
16192 main ()
16193 {
16194 char* cs = nl_langinfo(CODESET);
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201   (eval $ac_link) 2>conftest.er1
16202   ac_status=$?
16203   grep -v '^ *+' conftest.er1 >conftest.err
16204   rm -f conftest.er1
16205   cat conftest.err >&5
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } &&
16208          { ac_try='test -z "$ac_c_werror_flag"
16209                          || test ! -s conftest.err'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; } &&
16215          { ac_try='test -s conftest$ac_exeext'
16216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217   (eval $ac_try) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; }; then
16221   bash_cv_langinfo_codeset=yes
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 bash_cv_langinfo_codeset=no
16227 fi
16228 rm -f conftest.err conftest.$ac_objext \
16229       conftest$ac_exeext conftest.$ac_ext
16230 fi
16231 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16232 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16233 if test $bash_cv_langinfo_codeset = yes; then
16234   cat >>confdefs.h <<\_ACEOF
16235 #define HAVE_LANGINFO_CODESET 1
16236 _ACEOF
16237
16238 fi
16239
16240
16241
16242 if test "$opt_static_link" != yes; then
16243
16244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16247   echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249   ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-ldl  $LIBS"
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 #ifdef __cplusplus
16260 extern "C"
16261 #endif
16262 /* We use char because int might match the return type of a gcc2
16263    builtin and then its argument prototype would still apply.  */
16264 char dlopen ();
16265 int
16266 main ()
16267 {
16268 dlopen ();
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275   (eval $ac_link) 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } &&
16282          { ac_try='test -z "$ac_c_werror_flag"
16283                          || test ! -s conftest.err'
16284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285   (eval $ac_try) 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; } &&
16289          { ac_try='test -s conftest$ac_exeext'
16290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291   (eval $ac_try) 2>&5
16292   ac_status=$?
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); }; }; then
16295   ac_cv_lib_dl_dlopen=yes
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300 ac_cv_lib_dl_dlopen=no
16301 fi
16302 rm -f conftest.err conftest.$ac_objext \
16303       conftest$ac_exeext conftest.$ac_ext
16304 LIBS=$ac_check_lib_save_LIBS
16305 fi
16306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16308 if test $ac_cv_lib_dl_dlopen = yes; then
16309   cat >>confdefs.h <<_ACEOF
16310 #define HAVE_LIBDL 1
16311 _ACEOF
16312
16313   LIBS="-ldl $LIBS"
16314
16315 fi
16316
16317
16318
16319
16320 for ac_func in dlopen dlclose dlsym
16321 do
16322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16323 echo "$as_me:$LINENO: checking for $ac_func" >&5
16324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16325 if eval "test \"\${$as_ac_var+set}\" = set"; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328   cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h.  */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h.  */
16334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16336 #define $ac_func innocuous_$ac_func
16337
16338 /* System header to define __stub macros and hopefully few prototypes,
16339     which can conflict with char $ac_func (); below.
16340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16341     <limits.h> exists even on freestanding compilers.  */
16342
16343 #ifdef __STDC__
16344 # include <limits.h>
16345 #else
16346 # include <assert.h>
16347 #endif
16348
16349 #undef $ac_func
16350
16351 /* Override any gcc2 internal prototype to avoid an error.  */
16352 #ifdef __cplusplus
16353 extern "C"
16354 {
16355 #endif
16356 /* We use char because int might match the return type of a gcc2
16357    builtin and then its argument prototype would still apply.  */
16358 char $ac_func ();
16359 /* The GNU C library defines this for functions which it implements
16360     to always fail with ENOSYS.  Some functions are actually named
16361     something starting with __ and the normal name is an alias.  */
16362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16363 choke me
16364 #else
16365 char (*f) () = $ac_func;
16366 #endif
16367 #ifdef __cplusplus
16368 }
16369 #endif
16370
16371 int
16372 main ()
16373 {
16374 return f != $ac_func;
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381   (eval $ac_link) 2>conftest.er1
16382   ac_status=$?
16383   grep -v '^ *+' conftest.er1 >conftest.err
16384   rm -f conftest.er1
16385   cat conftest.err >&5
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } &&
16388          { ac_try='test -z "$ac_c_werror_flag"
16389                          || test ! -s conftest.err'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   eval "$as_ac_var=yes"
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 eval "$as_ac_var=no"
16407 fi
16408 rm -f conftest.err conftest.$ac_objext \
16409       conftest$ac_exeext conftest.$ac_ext
16410 fi
16411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16413 if test `eval echo '${'$as_ac_var'}'` = yes; then
16414   cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16416 _ACEOF
16417
16418 fi
16419 done
16420
16421 fi
16422
16423 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16424 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16425 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h.  */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h.  */
16434 #include <signal.h>
16435 /* NetBSD declares sys_siglist in unistd.h.  */
16436 #if HAVE_UNISTD_H
16437 # include <unistd.h>
16438 #endif
16439
16440
16441 int
16442 main ()
16443 {
16444 #ifndef sys_siglist
16445   char *p = (char *) sys_siglist;
16446 #endif
16447
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16454   (eval $ac_compile) 2>conftest.er1
16455   ac_status=$?
16456   grep -v '^ *+' conftest.er1 >conftest.err
16457   rm -f conftest.er1
16458   cat conftest.err >&5
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } &&
16461          { ac_try='test -z "$ac_c_werror_flag"
16462                          || test ! -s conftest.err'
16463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464   (eval $ac_try) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; } &&
16468          { ac_try='test -s conftest.$ac_objext'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_cv_have_decl_sys_siglist=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 ac_cv_have_decl_sys_siglist=no
16480 fi
16481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16482 fi
16483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16484 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16485 if test $ac_cv_have_decl_sys_siglist = yes; then
16486
16487 cat >>confdefs.h <<_ACEOF
16488 #define HAVE_DECL_SYS_SIGLIST 1
16489 _ACEOF
16490
16491
16492 else
16493   cat >>confdefs.h <<_ACEOF
16494 #define HAVE_DECL_SYS_SIGLIST 0
16495 _ACEOF
16496
16497
16498 fi
16499
16500
16501
16502
16503 if test "$ac_cv_func_inet_aton" != 'yes'; then
16504
16505 echo "$as_me:$LINENO: checking for inet_aton" >&5
16506 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
16507 if test "${bash_cv_func_inet_aton+set}" = set; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516
16517 #include <sys/types.h>
16518 #include <netinet/in.h>
16519 #include <arpa/inet.h>
16520 struct in_addr ap;
16521 int
16522 main ()
16523 {
16524  inet_aton("127.0.0.1", &ap);
16525   ;
16526   return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531   (eval $ac_link) 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } &&
16538          { ac_try='test -z "$ac_c_werror_flag"
16539                          || test ! -s conftest.err'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest$ac_exeext'
16546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547   (eval $ac_try) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; }; then
16551   bash_cv_func_inet_aton=yes
16552 else
16553   echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 bash_cv_func_inet_aton=no
16557 fi
16558 rm -f conftest.err conftest.$ac_objext \
16559       conftest$ac_exeext conftest.$ac_ext
16560 fi
16561 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
16562 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
16563 if test $bash_cv_func_inet_aton = yes; then
16564   cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_INET_ATON 1
16566 _ACEOF
16567
16568 else
16569   case $LIBOBJS in
16570     "inet_aton.$ac_objext"   | \
16571   *" inet_aton.$ac_objext"   | \
16572     "inet_aton.$ac_objext "* | \
16573   *" inet_aton.$ac_objext "* ) ;;
16574   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
16575 esac
16576
16577 fi
16578
16579 fi
16580
16581 case "$host_os" in
16582 irix4*)
16583 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
16584 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
16585 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   ac_check_lib_save_LIBS=$LIBS
16589 LIBS="-lsun  $LIBS"
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596
16597 /* Override any gcc2 internal prototype to avoid an error.  */
16598 #ifdef __cplusplus
16599 extern "C"
16600 #endif
16601 /* We use char because int might match the return type of a gcc2
16602    builtin and then its argument prototype would still apply.  */
16603 char getpwent ();
16604 int
16605 main ()
16606 {
16607 getpwent ();
16608   ;
16609   return 0;
16610 }
16611 _ACEOF
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614   (eval $ac_link) 2>conftest.er1
16615   ac_status=$?
16616   grep -v '^ *+' conftest.er1 >conftest.err
16617   rm -f conftest.er1
16618   cat conftest.err >&5
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); } &&
16621          { ac_try='test -z "$ac_c_werror_flag"
16622                          || test ! -s conftest.err'
16623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624   (eval $ac_try) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; } &&
16628          { ac_try='test -s conftest$ac_exeext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   ac_cv_lib_sun_getpwent=yes
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 ac_cv_lib_sun_getpwent=no
16640 fi
16641 rm -f conftest.err conftest.$ac_objext \
16642       conftest$ac_exeext conftest.$ac_ext
16643 LIBS=$ac_check_lib_save_LIBS
16644 fi
16645 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
16646 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
16647 if test $ac_cv_lib_sun_getpwent = yes; then
16648   cat >>confdefs.h <<_ACEOF
16649 #define HAVE_LIBSUN 1
16650 _ACEOF
16651
16652   LIBS="-lsun $LIBS"
16653
16654 fi
16655  ;;
16656 esac
16657
16658 if test "$ac_cv_func_getpeername" = no; then
16659
16660 if test "X$bash_cv_have_socklib" = "X"; then
16661 _bash_needmsg=
16662 else
16663 echo "$as_me:$LINENO: checking for socket library" >&5
16664 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
16665 _bash_needmsg=yes
16666 fi
16667 if test "${bash_cv_have_socklib+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
16671 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
16672 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
16673   echo $ECHO_N "(cached) $ECHO_C" >&6
16674 else
16675   ac_check_lib_save_LIBS=$LIBS
16676 LIBS="-lsocket -lnsl $LIBS"
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683
16684 /* Override any gcc2 internal prototype to avoid an error.  */
16685 #ifdef __cplusplus
16686 extern "C"
16687 #endif
16688 /* We use char because int might match the return type of a gcc2
16689    builtin and then its argument prototype would still apply.  */
16690 char getpeername ();
16691 int
16692 main ()
16693 {
16694 getpeername ();
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext conftest$ac_exeext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701   (eval $ac_link) 2>conftest.er1
16702   ac_status=$?
16703   grep -v '^ *+' conftest.er1 >conftest.err
16704   rm -f conftest.er1
16705   cat conftest.err >&5
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } &&
16708          { ac_try='test -z "$ac_c_werror_flag"
16709                          || test ! -s conftest.err'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest$ac_exeext'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   ac_cv_lib_socket_getpeername=yes
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726 ac_cv_lib_socket_getpeername=no
16727 fi
16728 rm -f conftest.err conftest.$ac_objext \
16729       conftest$ac_exeext conftest.$ac_ext
16730 LIBS=$ac_check_lib_save_LIBS
16731 fi
16732 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
16733 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
16734 if test $ac_cv_lib_socket_getpeername = yes; then
16735   bash_cv_have_socklib=yes
16736 else
16737   bash_cv_have_socklib=no
16738 fi
16739
16740 fi
16741
16742 if test "X$_bash_needmsg" = Xyes; then
16743   echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
16744 echo "${ECHO_T}$bash_cv_have_socklib" >&6
16745   _bash_needmsg=
16746 fi
16747 if test $bash_cv_have_socklib = yes; then
16748   # check for libnsl, add it to LIBS if present
16749   if test "X$bash_cv_have_libnsl" = "X"; then
16750     _bash_needmsg=
16751   else
16752     echo "$as_me:$LINENO: checking for libnsl" >&5
16753 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
16754     _bash_needmsg=yes
16755   fi
16756   if test "${bash_cv_have_libnsl+set}" = set; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
16760 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
16761 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16762   echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764   ac_check_lib_save_LIBS=$LIBS
16765 LIBS="-lnsl  $LIBS"
16766 cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h.  */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h.  */
16772
16773 /* Override any gcc2 internal prototype to avoid an error.  */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 /* We use char because int might match the return type of a gcc2
16778    builtin and then its argument prototype would still apply.  */
16779 char t_open ();
16780 int
16781 main ()
16782 {
16783 t_open ();
16784   ;
16785   return 0;
16786 }
16787 _ACEOF
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790   (eval $ac_link) 2>conftest.er1
16791   ac_status=$?
16792   grep -v '^ *+' conftest.er1 >conftest.err
16793   rm -f conftest.er1
16794   cat conftest.err >&5
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } &&
16797          { ac_try='test -z "$ac_c_werror_flag"
16798                          || test ! -s conftest.err'
16799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800   (eval $ac_try) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; } &&
16804          { ac_try='test -s conftest$ac_exeext'
16805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806   (eval $ac_try) 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); }; }; then
16810   ac_cv_lib_nsl_t_open=yes
16811 else
16812   echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ac_cv_lib_nsl_t_open=no
16816 fi
16817 rm -f conftest.err conftest.$ac_objext \
16818       conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_check_lib_save_LIBS
16820 fi
16821 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
16822 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
16823 if test $ac_cv_lib_nsl_t_open = yes; then
16824   bash_cv_have_libnsl=yes
16825 else
16826   bash_cv_have_libnsl=no
16827 fi
16828
16829 fi
16830
16831   if test "X$_bash_needmsg" = Xyes; then
16832     echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
16833 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
16834     _bash_needmsg=
16835   fi
16836   if test $bash_cv_have_libnsl = yes; then
16837     LIBS="-lsocket -lnsl $LIBS"
16838   else
16839     LIBS="-lsocket $LIBS"
16840   fi
16841   cat >>confdefs.h <<\_ACEOF
16842 #define HAVE_LIBSOCKET 1
16843 _ACEOF
16844
16845   cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_GETPEERNAME 1
16847 _ACEOF
16848
16849 fi
16850
16851 fi
16852 if test "$ac_cv_func_gethostbyname" = no; then
16853         if test "X$bash_cv_have_gethostbyname" = "X"; then
16854 _bash_needmsg=yes
16855 else
16856 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16857 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16858 _bash_needmsg=
16859 fi
16860 if test "${bash_cv_have_gethostbyname+set}" = set; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863   cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h.  */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h.  */
16869 #include <netdb.h>
16870 int
16871 main ()
16872 {
16873  struct hostent *hp;
16874   hp = gethostbyname("localhost");
16875
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882   (eval $ac_link) 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag"
16890                          || test ! -s conftest.err'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest$ac_exeext'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   bash_cv_have_gethostbyname=yes
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 bash_cv_have_gethostbyname=no
16908 fi
16909 rm -f conftest.err conftest.$ac_objext \
16910       conftest$ac_exeext conftest.$ac_ext
16911
16912 fi
16913
16914 if test "X$_bash_needmsg" = Xyes; then
16915     echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16916 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16917 fi
16918 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
16919 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
16920 if test "$bash_cv_have_gethostbyname" = yes; then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define HAVE_GETHOSTBYNAME 1
16923 _ACEOF
16924
16925 fi
16926
16927 fi
16928
16929 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
16930 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
16931 if test "${ac_cv_type_uid_t+set}" = set; then
16932   echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934   cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h.  */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h.  */
16940 #include <sys/types.h>
16941
16942 _ACEOF
16943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16944   $EGREP "uid_t" >/dev/null 2>&1; then
16945   ac_cv_type_uid_t=yes
16946 else
16947   ac_cv_type_uid_t=no
16948 fi
16949 rm -f conftest*
16950
16951 fi
16952 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
16953 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
16954 if test $ac_cv_type_uid_t = no; then
16955
16956 cat >>confdefs.h <<\_ACEOF
16957 #define uid_t int
16958 _ACEOF
16959
16960
16961 cat >>confdefs.h <<\_ACEOF
16962 #define gid_t int
16963 _ACEOF
16964
16965 fi
16966
16967 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
16968 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
16969 if test "${ac_cv_type_getgroups+set}" = set; then
16970   echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972   if test "$cross_compiling" = yes; then
16973   ac_cv_type_getgroups=cross
16974 else
16975   cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 /* Thanks to Mike Rendell for this test.  */
16982 #include <sys/types.h>
16983 #define NGID 256
16984 #undef MAX
16985 #define MAX(x, y) ((x) > (y) ? (x) : (y))
16986
16987 int
16988 main ()
16989 {
16990   gid_t gidset[NGID];
16991   int i, n;
16992   union { gid_t gval; long lval; }  val;
16993
16994   val.lval = -1;
16995   for (i = 0; i < NGID; i++)
16996     gidset[i] = val.gval;
16997   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16998                  gidset);
16999   /* Exit non-zero if getgroups seems to require an array of ints.  This
17000      happens when gid_t is short but getgroups modifies an array of ints.  */
17001   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
17002 }
17003 _ACEOF
17004 rm -f conftest$ac_exeext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006   (eval $ac_link) 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; }; then
17015   ac_cv_type_getgroups=gid_t
17016 else
17017   echo "$as_me: program exited with status $ac_status" >&5
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ( exit $ac_status )
17022 ac_cv_type_getgroups=int
17023 fi
17024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17025 fi
17026 if test $ac_cv_type_getgroups = cross; then
17027         cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h.  */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h.  */
17033 #include <unistd.h>
17034
17035 _ACEOF
17036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17037   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
17038   ac_cv_type_getgroups=gid_t
17039 else
17040   ac_cv_type_getgroups=int
17041 fi
17042 rm -f conftest*
17043
17044 fi
17045 fi
17046 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
17047 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17048
17049 cat >>confdefs.h <<_ACEOF
17050 #define GETGROUPS_T $ac_cv_type_getgroups
17051 _ACEOF
17052
17053
17054 echo "$as_me:$LINENO: checking for off_t" >&5
17055 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17056 if test "${ac_cv_type_off_t+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 $ac_includes_default
17066 int
17067 main ()
17068 {
17069 if ((off_t *) 0)
17070   return 0;
17071 if (sizeof (off_t))
17072   return 0;
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079   (eval $ac_compile) 2>conftest.er1
17080   ac_status=$?
17081   grep -v '^ *+' conftest.er1 >conftest.err
17082   rm -f conftest.er1
17083   cat conftest.err >&5
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); } &&
17086          { ac_try='test -z "$ac_c_werror_flag"
17087                          || test ! -s conftest.err'
17088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089   (eval $ac_try) 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; } &&
17093          { ac_try='test -s conftest.$ac_objext'
17094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095   (eval $ac_try) 2>&5
17096   ac_status=$?
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); }; }; then
17099   ac_cv_type_off_t=yes
17100 else
17101   echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17103
17104 ac_cv_type_off_t=no
17105 fi
17106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17107 fi
17108 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17109 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17110 if test $ac_cv_type_off_t = yes; then
17111   :
17112 else
17113
17114 cat >>confdefs.h <<_ACEOF
17115 #define off_t long
17116 _ACEOF
17117
17118 fi
17119
17120 echo "$as_me:$LINENO: checking for mode_t" >&5
17121 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17122 if test "${ac_cv_type_mode_t+set}" = set; then
17123   echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125   cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h.  */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h.  */
17131 $ac_includes_default
17132 int
17133 main ()
17134 {
17135 if ((mode_t *) 0)
17136   return 0;
17137 if (sizeof (mode_t))
17138   return 0;
17139   ;
17140   return 0;
17141 }
17142 _ACEOF
17143 rm -f conftest.$ac_objext
17144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17145   (eval $ac_compile) 2>conftest.er1
17146   ac_status=$?
17147   grep -v '^ *+' conftest.er1 >conftest.err
17148   rm -f conftest.er1
17149   cat conftest.err >&5
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); } &&
17152          { ac_try='test -z "$ac_c_werror_flag"
17153                          || test ! -s conftest.err'
17154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155   (eval $ac_try) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest.$ac_objext'
17160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161   (eval $ac_try) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; }; then
17165   ac_cv_type_mode_t=yes
17166 else
17167   echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_cv_type_mode_t=no
17171 fi
17172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17173 fi
17174 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17175 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17176 if test $ac_cv_type_mode_t = yes; then
17177   :
17178 else
17179
17180 cat >>confdefs.h <<_ACEOF
17181 #define mode_t int
17182 _ACEOF
17183
17184 fi
17185
17186 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17187 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17188 if test "${ac_cv_type_uid_t+set}" = set; then
17189   echo $ECHO_N "(cached) $ECHO_C" >&6
17190 else
17191   cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h.  */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h.  */
17197 #include <sys/types.h>
17198
17199 _ACEOF
17200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17201   $EGREP "uid_t" >/dev/null 2>&1; then
17202   ac_cv_type_uid_t=yes
17203 else
17204   ac_cv_type_uid_t=no
17205 fi
17206 rm -f conftest*
17207
17208 fi
17209 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17210 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17211 if test $ac_cv_type_uid_t = no; then
17212
17213 cat >>confdefs.h <<\_ACEOF
17214 #define uid_t int
17215 _ACEOF
17216
17217
17218 cat >>confdefs.h <<\_ACEOF
17219 #define gid_t int
17220 _ACEOF
17221
17222 fi
17223
17224 echo "$as_me:$LINENO: checking for pid_t" >&5
17225 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17226 if test "${ac_cv_type_pid_t+set}" = set; then
17227   echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229   cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235 $ac_includes_default
17236 int
17237 main ()
17238 {
17239 if ((pid_t *) 0)
17240   return 0;
17241 if (sizeof (pid_t))
17242   return 0;
17243   ;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249   (eval $ac_compile) 2>conftest.er1
17250   ac_status=$?
17251   grep -v '^ *+' conftest.er1 >conftest.err
17252   rm -f conftest.er1
17253   cat conftest.err >&5
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); } &&
17256          { ac_try='test -z "$ac_c_werror_flag"
17257                          || test ! -s conftest.err'
17258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259   (eval $ac_try) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; } &&
17263          { ac_try='test -s conftest.$ac_objext'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; }; then
17269   ac_cv_type_pid_t=yes
17270 else
17271   echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ac_cv_type_pid_t=no
17275 fi
17276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17277 fi
17278 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17279 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17280 if test $ac_cv_type_pid_t = yes; then
17281   :
17282 else
17283
17284 cat >>confdefs.h <<_ACEOF
17285 #define pid_t int
17286 _ACEOF
17287
17288 fi
17289
17290 echo "$as_me:$LINENO: checking for size_t" >&5
17291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17292 if test "${ac_cv_type_size_t+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301 $ac_includes_default
17302 int
17303 main ()
17304 {
17305 if ((size_t *) 0)
17306   return 0;
17307 if (sizeof (size_t))
17308   return 0;
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315   (eval $ac_compile) 2>conftest.er1
17316   ac_status=$?
17317   grep -v '^ *+' conftest.er1 >conftest.err
17318   rm -f conftest.er1
17319   cat conftest.err >&5
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); } &&
17322          { ac_try='test -z "$ac_c_werror_flag"
17323                          || test ! -s conftest.err'
17324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325   (eval $ac_try) 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); }; } &&
17329          { ac_try='test -s conftest.$ac_objext'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335   ac_cv_type_size_t=yes
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 ac_cv_type_size_t=no
17341 fi
17342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343 fi
17344 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17345 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17346 if test $ac_cv_type_size_t = yes; then
17347   :
17348 else
17349
17350 cat >>confdefs.h <<_ACEOF
17351 #define size_t unsigned
17352 _ACEOF
17353
17354 fi
17355
17356 echo "$as_me:$LINENO: checking for ssize_t" >&5
17357 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17358 if test "${ac_cv_type_ssize_t+set}" = set; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361   cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367 $ac_includes_default
17368 int
17369 main ()
17370 {
17371 if ((ssize_t *) 0)
17372   return 0;
17373 if (sizeof (ssize_t))
17374   return 0;
17375   ;
17376   return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17381   (eval $ac_compile) 2>conftest.er1
17382   ac_status=$?
17383   grep -v '^ *+' conftest.er1 >conftest.err
17384   rm -f conftest.er1
17385   cat conftest.err >&5
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); } &&
17388          { ac_try='test -z "$ac_c_werror_flag"
17389                          || test ! -s conftest.err'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; } &&
17395          { ac_try='test -s conftest.$ac_objext'
17396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397   (eval $ac_try) 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; }; then
17401   ac_cv_type_ssize_t=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 ac_cv_type_ssize_t=no
17407 fi
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17409 fi
17410 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17411 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17412 if test $ac_cv_type_ssize_t = yes; then
17413   :
17414 else
17415
17416 cat >>confdefs.h <<_ACEOF
17417 #define ssize_t int
17418 _ACEOF
17419
17420 fi
17421
17422 echo "$as_me:$LINENO: checking for time_t" >&5
17423 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17424 if test "${ac_cv_type_time_t+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433 $ac_includes_default
17434 int
17435 main ()
17436 {
17437 if ((time_t *) 0)
17438   return 0;
17439 if (sizeof (time_t))
17440   return 0;
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447   (eval $ac_compile) 2>conftest.er1
17448   ac_status=$?
17449   grep -v '^ *+' conftest.er1 >conftest.err
17450   rm -f conftest.er1
17451   cat conftest.err >&5
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); } &&
17454          { ac_try='test -z "$ac_c_werror_flag"
17455                          || test ! -s conftest.err'
17456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457   (eval $ac_try) 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; } &&
17461          { ac_try='test -s conftest.$ac_objext'
17462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463   (eval $ac_try) 2>&5
17464   ac_status=$?
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); }; }; then
17467   ac_cv_type_time_t=yes
17468 else
17469   echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 ac_cv_type_time_t=no
17473 fi
17474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475 fi
17476 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
17477 echo "${ECHO_T}$ac_cv_type_time_t" >&6
17478 if test $ac_cv_type_time_t = yes; then
17479   :
17480 else
17481
17482 cat >>confdefs.h <<_ACEOF
17483 #define time_t long
17484 _ACEOF
17485
17486 fi
17487
17488
17489
17490 echo "$as_me:$LINENO: checking for long long" >&5
17491 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17492 if test "${bash_cv_type_long_long+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h.  */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h.  */
17501
17502 long long ll = 1; int i = 63;
17503 int
17504 main ()
17505 {
17506
17507 long long llm = (long long) -1;
17508 return ll << i | ll >> i | llm / ll | llm % ll;
17509
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516   (eval $ac_link) 2>conftest.er1
17517   ac_status=$?
17518   grep -v '^ *+' conftest.er1 >conftest.err
17519   rm -f conftest.er1
17520   cat conftest.err >&5
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); } &&
17523          { ac_try='test -z "$ac_c_werror_flag"
17524                          || test ! -s conftest.err'
17525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526   (eval $ac_try) 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; } &&
17530          { ac_try='test -s conftest$ac_exeext'
17531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532   (eval $ac_try) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; }; then
17536   bash_cv_type_long_long='long long'
17537 else
17538   echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 bash_cv_type_long_long='long'
17542 fi
17543 rm -f conftest.err conftest.$ac_objext \
17544       conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
17547 echo "${ECHO_T}$bash_cv_type_long_long" >&6
17548 if test "$bash_cv_type_long_long" = 'long long'; then
17549   cat >>confdefs.h <<\_ACEOF
17550 #define HAVE_LONG_LONG 1
17551 _ACEOF
17552
17553 fi
17554
17555
17556 echo "$as_me:$LINENO: checking for unsigned long long" >&5
17557 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17558 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 unsigned long long ull = 1; int i = 63;
17569 int
17570 main ()
17571 {
17572
17573 unsigned long long ullmax = (unsigned long long) -1;
17574 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17575
17576   ;
17577   return 0;
17578 }
17579 _ACEOF
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582   (eval $ac_link) 2>conftest.er1
17583   ac_status=$?
17584   grep -v '^ *+' conftest.er1 >conftest.err
17585   rm -f conftest.er1
17586   cat conftest.err >&5
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } &&
17589          { ac_try='test -z "$ac_c_werror_flag"
17590                          || test ! -s conftest.err'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; } &&
17596          { ac_try='test -s conftest$ac_exeext'
17597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598   (eval $ac_try) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; }; then
17602   bash_cv_type_unsigned_long_long='unsigned long long'
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 bash_cv_type_unsigned_long_long='unsigned long'
17608 fi
17609 rm -f conftest.err conftest.$ac_objext \
17610       conftest$ac_exeext conftest.$ac_ext
17611 fi
17612 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
17613 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
17614 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
17615   cat >>confdefs.h <<\_ACEOF
17616 #define HAVE_UNSIGNED_LONG_LONG 1
17617 _ACEOF
17618
17619 fi
17620
17621
17622 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17623 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17624 if test "${ac_cv_type_signal+set}" = set; then
17625   echo $ECHO_N "(cached) $ECHO_C" >&6
17626 else
17627   cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 #include <sys/types.h>
17634 #include <signal.h>
17635 #ifdef signal
17636 # undef signal
17637 #endif
17638 #ifdef __cplusplus
17639 extern "C" void (*signal (int, void (*)(int)))(int);
17640 #else
17641 void (*signal ()) ();
17642 #endif
17643
17644 int
17645 main ()
17646 {
17647 int i;
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654   (eval $ac_compile) 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_c_werror_flag"
17662                          || test ! -s conftest.err'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; } &&
17668          { ac_try='test -s conftest.$ac_objext'
17669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670   (eval $ac_try) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   ac_cv_type_signal=void
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_type_signal=int
17680 fi
17681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682 fi
17683 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17684 echo "${ECHO_T}$ac_cv_type_signal" >&6
17685
17686 cat >>confdefs.h <<_ACEOF
17687 #define RETSIGTYPE $ac_cv_type_signal
17688 _ACEOF
17689
17690
17691
17692 echo "$as_me:$LINENO: checking for char" >&5
17693 echo $ECHO_N "checking for char... $ECHO_C" >&6
17694 if test "${ac_cv_type_char+set}" = set; then
17695   echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697   cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h.  */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h.  */
17703 $ac_includes_default
17704 int
17705 main ()
17706 {
17707 if ((char *) 0)
17708   return 0;
17709 if (sizeof (char))
17710   return 0;
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17717   (eval $ac_compile) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_c_werror_flag"
17725                          || test ! -s conftest.err'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest.$ac_objext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   ac_cv_type_char=yes
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_cv_type_char=no
17743 fi
17744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17745 fi
17746 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17747 echo "${ECHO_T}$ac_cv_type_char" >&6
17748
17749 echo "$as_me:$LINENO: checking size of char" >&5
17750 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17751 if test "${ac_cv_sizeof_char+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754   if test "$ac_cv_type_char" = yes; then
17755   # The cast to unsigned long works around a bug in the HP C Compiler
17756   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17757   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17758   # This bug is HP SR number 8606223364.
17759   if test "$cross_compiling" = yes; then
17760   # Depending upon the size, compute the lo and hi bounds.
17761 cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 $ac_includes_default
17768 int
17769 main ()
17770 {
17771 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17772 test_array [0] = 0
17773
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780   (eval $ac_compile) 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -z "$ac_c_werror_flag"
17788                          || test ! -s conftest.err'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; } &&
17794          { ac_try='test -s conftest.$ac_objext'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; }; then
17800   ac_lo=0 ac_mid=0
17801   while :; do
17802     cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808 $ac_includes_default
17809 int
17810 main ()
17811 {
17812 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17813 test_array [0] = 0
17814
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821   (eval $ac_compile) 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_c_werror_flag"
17829                          || test ! -s conftest.err'
17830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831   (eval $ac_try) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; } &&
17835          { ac_try='test -s conftest.$ac_objext'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; }; then
17841   ac_hi=$ac_mid; break
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_lo=`expr $ac_mid + 1`
17847                     if test $ac_lo -le $ac_mid; then
17848                       ac_lo= ac_hi=
17849                       break
17850                     fi
17851                     ac_mid=`expr 2 '*' $ac_mid + 1`
17852 fi
17853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17854   done
17855 else
17856   echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17858
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h.  */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h.  */
17865 $ac_includes_default
17866 int
17867 main ()
17868 {
17869 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17870 test_array [0] = 0
17871
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878   (eval $ac_compile) 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } &&
17885          { ac_try='test -z "$ac_c_werror_flag"
17886                          || test ! -s conftest.err'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; } &&
17892          { ac_try='test -s conftest.$ac_objext'
17893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894   (eval $ac_try) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; }; then
17898   ac_hi=-1 ac_mid=-1
17899   while :; do
17900     cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906 $ac_includes_default
17907 int
17908 main ()
17909 {
17910 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17911 test_array [0] = 0
17912
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919   (eval $ac_compile) 2>conftest.er1
17920   ac_status=$?
17921   grep -v '^ *+' conftest.er1 >conftest.err
17922   rm -f conftest.er1
17923   cat conftest.err >&5
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); } &&
17926          { ac_try='test -z "$ac_c_werror_flag"
17927                          || test ! -s conftest.err'
17928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929   (eval $ac_try) 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); }; } &&
17933          { ac_try='test -s conftest.$ac_objext'
17934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935   (eval $ac_try) 2>&5
17936   ac_status=$?
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); }; }; then
17939   ac_lo=$ac_mid; break
17940 else
17941   echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 ac_hi=`expr '(' $ac_mid ')' - 1`
17945                        if test $ac_mid -le $ac_hi; then
17946                          ac_lo= ac_hi=
17947                          break
17948                        fi
17949                        ac_mid=`expr 2 '*' $ac_mid`
17950 fi
17951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17952   done
17953 else
17954   echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 ac_lo= ac_hi=
17958 fi
17959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17960 fi
17961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17962 # Binary search between lo and hi bounds.
17963 while test "x$ac_lo" != "x$ac_hi"; do
17964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17965   cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971 $ac_includes_default
17972 int
17973 main ()
17974 {
17975 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17976 test_array [0] = 0
17977
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984   (eval $ac_compile) 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } &&
17991          { ac_try='test -z "$ac_c_werror_flag"
17992                          || test ! -s conftest.err'
17993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994   (eval $ac_try) 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; } &&
17998          { ac_try='test -s conftest.$ac_objext'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; }; then
18004   ac_hi=$ac_mid
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_lo=`expr '(' $ac_mid ')' + 1`
18010 fi
18011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18012 done
18013 case $ac_lo in
18014 ?*) ac_cv_sizeof_char=$ac_lo;;
18015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18016 See \`config.log' for more details." >&5
18017 echo "$as_me: error: cannot compute sizeof (char), 77
18018 See \`config.log' for more details." >&2;}
18019    { (exit 1); exit 1; }; } ;;
18020 esac
18021 else
18022   if test "$cross_compiling" = yes; then
18023   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18024 See \`config.log' for more details." >&5
18025 echo "$as_me: error: cannot run test program while cross compiling
18026 See \`config.log' for more details." >&2;}
18027    { (exit 1); exit 1; }; }
18028 else
18029   cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035 $ac_includes_default
18036 long longval () { return (long) (sizeof (char)); }
18037 unsigned long ulongval () { return (long) (sizeof (char)); }
18038 #include <stdio.h>
18039 #include <stdlib.h>
18040 int
18041 main ()
18042 {
18043
18044   FILE *f = fopen ("conftest.val", "w");
18045   if (! f)
18046     exit (1);
18047   if (((long) (sizeof (char))) < 0)
18048     {
18049       long i = longval ();
18050       if (i != ((long) (sizeof (char))))
18051         exit (1);
18052       fprintf (f, "%ld\n", i);
18053     }
18054   else
18055     {
18056       unsigned long i = ulongval ();
18057       if (i != ((long) (sizeof (char))))
18058         exit (1);
18059       fprintf (f, "%lu\n", i);
18060     }
18061   exit (ferror (f) || fclose (f) != 0);
18062
18063   ;
18064   return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest$ac_exeext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18069   (eval $ac_link) 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074   (eval $ac_try) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; }; then
18078   ac_cv_sizeof_char=`cat conftest.val`
18079 else
18080   echo "$as_me: program exited with status $ac_status" >&5
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 ( exit $ac_status )
18085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18086 See \`config.log' for more details." >&5
18087 echo "$as_me: error: cannot compute sizeof (char), 77
18088 See \`config.log' for more details." >&2;}
18089    { (exit 1); exit 1; }; }
18090 fi
18091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18092 fi
18093 fi
18094 rm -f conftest.val
18095 else
18096   ac_cv_sizeof_char=0
18097 fi
18098 fi
18099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18100 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18101 cat >>confdefs.h <<_ACEOF
18102 #define SIZEOF_CHAR $ac_cv_sizeof_char
18103 _ACEOF
18104
18105
18106 echo "$as_me:$LINENO: checking for short" >&5
18107 echo $ECHO_N "checking for short... $ECHO_C" >&6
18108 if test "${ac_cv_type_short+set}" = set; then
18109   echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111   cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h.  */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h.  */
18117 $ac_includes_default
18118 int
18119 main ()
18120 {
18121 if ((short *) 0)
18122   return 0;
18123 if (sizeof (short))
18124   return 0;
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131   (eval $ac_compile) 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } &&
18138          { ac_try='test -z "$ac_c_werror_flag"
18139                          || test ! -s conftest.err'
18140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest.$ac_objext'
18146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147   (eval $ac_try) 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; }; then
18151   ac_cv_type_short=yes
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 ac_cv_type_short=no
18157 fi
18158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159 fi
18160 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18161 echo "${ECHO_T}$ac_cv_type_short" >&6
18162
18163 echo "$as_me:$LINENO: checking size of short" >&5
18164 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18165 if test "${ac_cv_sizeof_short+set}" = set; then
18166   echo $ECHO_N "(cached) $ECHO_C" >&6
18167 else
18168   if test "$ac_cv_type_short" = yes; then
18169   # The cast to unsigned long works around a bug in the HP C Compiler
18170   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18171   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18172   # This bug is HP SR number 8606223364.
18173   if test "$cross_compiling" = yes; then
18174   # Depending upon the size, compute the lo and hi bounds.
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h.  */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h.  */
18181 $ac_includes_default
18182 int
18183 main ()
18184 {
18185 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18186 test_array [0] = 0
18187
18188   ;
18189   return 0;
18190 }
18191 _ACEOF
18192 rm -f conftest.$ac_objext
18193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18194   (eval $ac_compile) 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } &&
18201          { ac_try='test -z "$ac_c_werror_flag"
18202                          || test ! -s conftest.err'
18203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204   (eval $ac_try) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; } &&
18208          { ac_try='test -s conftest.$ac_objext'
18209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210   (eval $ac_try) 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; }; then
18214   ac_lo=0 ac_mid=0
18215   while :; do
18216     cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222 $ac_includes_default
18223 int
18224 main ()
18225 {
18226 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18227 test_array [0] = 0
18228
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext
18234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18235   (eval $ac_compile) 2>conftest.er1
18236   ac_status=$?
18237   grep -v '^ *+' conftest.er1 >conftest.err
18238   rm -f conftest.er1
18239   cat conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); } &&
18242          { ac_try='test -z "$ac_c_werror_flag"
18243                          || test ! -s conftest.err'
18244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245   (eval $ac_try) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; } &&
18249          { ac_try='test -s conftest.$ac_objext'
18250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251   (eval $ac_try) 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; }; then
18255   ac_hi=$ac_mid; break
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260 ac_lo=`expr $ac_mid + 1`
18261                     if test $ac_lo -le $ac_mid; then
18262                       ac_lo= ac_hi=
18263                       break
18264                     fi
18265                     ac_mid=`expr 2 '*' $ac_mid + 1`
18266 fi
18267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18268   done
18269 else
18270   echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h.  */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h.  */
18279 $ac_includes_default
18280 int
18281 main ()
18282 {
18283 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18284 test_array [0] = 0
18285
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 rm -f conftest.$ac_objext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18292   (eval $ac_compile) 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag"
18300                          || test ! -s conftest.err'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; } &&
18306          { ac_try='test -s conftest.$ac_objext'
18307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308   (eval $ac_try) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; }; then
18312   ac_hi=-1 ac_mid=-1
18313   while :; do
18314     cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320 $ac_includes_default
18321 int
18322 main ()
18323 {
18324 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18325 test_array [0] = 0
18326
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333   (eval $ac_compile) 2>conftest.er1
18334   ac_status=$?
18335   grep -v '^ *+' conftest.er1 >conftest.err
18336   rm -f conftest.er1
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); } &&
18340          { ac_try='test -z "$ac_c_werror_flag"
18341                          || test ! -s conftest.err'
18342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343   (eval $ac_try) 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; } &&
18347          { ac_try='test -s conftest.$ac_objext'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; }; then
18353   ac_lo=$ac_mid; break
18354 else
18355   echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 ac_hi=`expr '(' $ac_mid ')' - 1`
18359                        if test $ac_mid -le $ac_hi; then
18360                          ac_lo= ac_hi=
18361                          break
18362                        fi
18363                        ac_mid=`expr 2 '*' $ac_mid`
18364 fi
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366   done
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 ac_lo= ac_hi=
18372 fi
18373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18374 fi
18375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18376 # Binary search between lo and hi bounds.
18377 while test "x$ac_lo" != "x$ac_hi"; do
18378   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18379   cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385 $ac_includes_default
18386 int
18387 main ()
18388 {
18389 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18390 test_array [0] = 0
18391
18392   ;
18393   return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398   (eval $ac_compile) 2>conftest.er1
18399   ac_status=$?
18400   grep -v '^ *+' conftest.er1 >conftest.err
18401   rm -f conftest.er1
18402   cat conftest.err >&5
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); } &&
18405          { ac_try='test -z "$ac_c_werror_flag"
18406                          || test ! -s conftest.err'
18407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408   (eval $ac_try) 2>&5
18409   ac_status=$?
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); }; } &&
18412          { ac_try='test -s conftest.$ac_objext'
18413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414   (eval $ac_try) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; }; then
18418   ac_hi=$ac_mid
18419 else
18420   echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 ac_lo=`expr '(' $ac_mid ')' + 1`
18424 fi
18425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18426 done
18427 case $ac_lo in
18428 ?*) ac_cv_sizeof_short=$ac_lo;;
18429 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18430 See \`config.log' for more details." >&5
18431 echo "$as_me: error: cannot compute sizeof (short), 77
18432 See \`config.log' for more details." >&2;}
18433    { (exit 1); exit 1; }; } ;;
18434 esac
18435 else
18436   if test "$cross_compiling" = yes; then
18437   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18438 See \`config.log' for more details." >&5
18439 echo "$as_me: error: cannot run test program while cross compiling
18440 See \`config.log' for more details." >&2;}
18441    { (exit 1); exit 1; }; }
18442 else
18443   cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h.  */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h.  */
18449 $ac_includes_default
18450 long longval () { return (long) (sizeof (short)); }
18451 unsigned long ulongval () { return (long) (sizeof (short)); }
18452 #include <stdio.h>
18453 #include <stdlib.h>
18454 int
18455 main ()
18456 {
18457
18458   FILE *f = fopen ("conftest.val", "w");
18459   if (! f)
18460     exit (1);
18461   if (((long) (sizeof (short))) < 0)
18462     {
18463       long i = longval ();
18464       if (i != ((long) (sizeof (short))))
18465         exit (1);
18466       fprintf (f, "%ld\n", i);
18467     }
18468   else
18469     {
18470       unsigned long i = ulongval ();
18471       if (i != ((long) (sizeof (short))))
18472         exit (1);
18473       fprintf (f, "%lu\n", i);
18474     }
18475   exit (ferror (f) || fclose (f) != 0);
18476
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 rm -f conftest$ac_exeext
18482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18483   (eval $ac_link) 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488   (eval $ac_try) 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; }; then
18492   ac_cv_sizeof_short=`cat conftest.val`
18493 else
18494   echo "$as_me: program exited with status $ac_status" >&5
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498 ( exit $ac_status )
18499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18500 See \`config.log' for more details." >&5
18501 echo "$as_me: error: cannot compute sizeof (short), 77
18502 See \`config.log' for more details." >&2;}
18503    { (exit 1); exit 1; }; }
18504 fi
18505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18506 fi
18507 fi
18508 rm -f conftest.val
18509 else
18510   ac_cv_sizeof_short=0
18511 fi
18512 fi
18513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18514 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18515 cat >>confdefs.h <<_ACEOF
18516 #define SIZEOF_SHORT $ac_cv_sizeof_short
18517 _ACEOF
18518
18519
18520 echo "$as_me:$LINENO: checking for int" >&5
18521 echo $ECHO_N "checking for int... $ECHO_C" >&6
18522 if test "${ac_cv_type_int+set}" = set; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525   cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531 $ac_includes_default
18532 int
18533 main ()
18534 {
18535 if ((int *) 0)
18536   return 0;
18537 if (sizeof (int))
18538   return 0;
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 rm -f conftest.$ac_objext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18545   (eval $ac_compile) 2>conftest.er1
18546   ac_status=$?
18547   grep -v '^ *+' conftest.er1 >conftest.err
18548   rm -f conftest.er1
18549   cat conftest.err >&5
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); } &&
18552          { ac_try='test -z "$ac_c_werror_flag"
18553                          || test ! -s conftest.err'
18554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555   (eval $ac_try) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; } &&
18559          { ac_try='test -s conftest.$ac_objext'
18560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561   (eval $ac_try) 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; }; then
18565   ac_cv_type_int=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_cv_type_int=no
18571 fi
18572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18573 fi
18574 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18575 echo "${ECHO_T}$ac_cv_type_int" >&6
18576
18577 echo "$as_me:$LINENO: checking size of int" >&5
18578 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18579 if test "${ac_cv_sizeof_int+set}" = set; then
18580   echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582   if test "$ac_cv_type_int" = yes; then
18583   # The cast to unsigned long works around a bug in the HP C Compiler
18584   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18585   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18586   # This bug is HP SR number 8606223364.
18587   if test "$cross_compiling" = yes; then
18588   # Depending upon the size, compute the lo and hi bounds.
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595 $ac_includes_default
18596 int
18597 main ()
18598 {
18599 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18600 test_array [0] = 0
18601
18602   ;
18603   return 0;
18604 }
18605 _ACEOF
18606 rm -f conftest.$ac_objext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18608   (eval $ac_compile) 2>conftest.er1
18609   ac_status=$?
18610   grep -v '^ *+' conftest.er1 >conftest.err
18611   rm -f conftest.er1
18612   cat conftest.err >&5
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); } &&
18615          { ac_try='test -z "$ac_c_werror_flag"
18616                          || test ! -s conftest.err'
18617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618   (eval $ac_try) 2>&5
18619   ac_status=$?
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); }; } &&
18622          { ac_try='test -s conftest.$ac_objext'
18623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624   (eval $ac_try) 2>&5
18625   ac_status=$?
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); }; }; then
18628   ac_lo=0 ac_mid=0
18629   while :; do
18630     cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636 $ac_includes_default
18637 int
18638 main ()
18639 {
18640 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18641 test_array [0] = 0
18642
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext
18648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649   (eval $ac_compile) 2>conftest.er1
18650   ac_status=$?
18651   grep -v '^ *+' conftest.er1 >conftest.err
18652   rm -f conftest.er1
18653   cat conftest.err >&5
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); } &&
18656          { ac_try='test -z "$ac_c_werror_flag"
18657                          || test ! -s conftest.err'
18658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659   (eval $ac_try) 2>&5
18660   ac_status=$?
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); }; } &&
18663          { ac_try='test -s conftest.$ac_objext'
18664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665   (eval $ac_try) 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; }; then
18669   ac_hi=$ac_mid; break
18670 else
18671   echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 ac_lo=`expr $ac_mid + 1`
18675                     if test $ac_lo -le $ac_mid; then
18676                       ac_lo= ac_hi=
18677                       break
18678                     fi
18679                     ac_mid=`expr 2 '*' $ac_mid + 1`
18680 fi
18681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18682   done
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693 $ac_includes_default
18694 int
18695 main ()
18696 {
18697 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18698 test_array [0] = 0
18699
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706   (eval $ac_compile) 2>conftest.er1
18707   ac_status=$?
18708   grep -v '^ *+' conftest.er1 >conftest.err
18709   rm -f conftest.er1
18710   cat conftest.err >&5
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); } &&
18713          { ac_try='test -z "$ac_c_werror_flag"
18714                          || test ! -s conftest.err'
18715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716   (eval $ac_try) 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; } &&
18720          { ac_try='test -s conftest.$ac_objext'
18721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722   (eval $ac_try) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); }; }; then
18726   ac_hi=-1 ac_mid=-1
18727   while :; do
18728     cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734 $ac_includes_default
18735 int
18736 main ()
18737 {
18738 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18739 test_array [0] = 0
18740
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747   (eval $ac_compile) 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -z "$ac_c_werror_flag"
18755                          || test ! -s conftest.err'
18756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757   (eval $ac_try) 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest.$ac_objext'
18762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763   (eval $ac_try) 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }; then
18767   ac_lo=$ac_mid; break
18768 else
18769   echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 ac_hi=`expr '(' $ac_mid ')' - 1`
18773                        if test $ac_mid -le $ac_hi; then
18774                          ac_lo= ac_hi=
18775                          break
18776                        fi
18777                        ac_mid=`expr 2 '*' $ac_mid`
18778 fi
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780   done
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 ac_lo= ac_hi=
18786 fi
18787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18788 fi
18789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18790 # Binary search between lo and hi bounds.
18791 while test "x$ac_lo" != "x$ac_hi"; do
18792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18793   cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h.  */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h.  */
18799 $ac_includes_default
18800 int
18801 main ()
18802 {
18803 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18804 test_array [0] = 0
18805
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812   (eval $ac_compile) 2>conftest.er1
18813   ac_status=$?
18814   grep -v '^ *+' conftest.er1 >conftest.err
18815   rm -f conftest.er1
18816   cat conftest.err >&5
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); } &&
18819          { ac_try='test -z "$ac_c_werror_flag"
18820                          || test ! -s conftest.err'
18821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822   (eval $ac_try) 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; } &&
18826          { ac_try='test -s conftest.$ac_objext'
18827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828   (eval $ac_try) 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); }; }; then
18832   ac_hi=$ac_mid
18833 else
18834   echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18836
18837 ac_lo=`expr '(' $ac_mid ')' + 1`
18838 fi
18839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18840 done
18841 case $ac_lo in
18842 ?*) ac_cv_sizeof_int=$ac_lo;;
18843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18844 See \`config.log' for more details." >&5
18845 echo "$as_me: error: cannot compute sizeof (int), 77
18846 See \`config.log' for more details." >&2;}
18847    { (exit 1); exit 1; }; } ;;
18848 esac
18849 else
18850   if test "$cross_compiling" = yes; then
18851   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18852 See \`config.log' for more details." >&5
18853 echo "$as_me: error: cannot run test program while cross compiling
18854 See \`config.log' for more details." >&2;}
18855    { (exit 1); exit 1; }; }
18856 else
18857   cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863 $ac_includes_default
18864 long longval () { return (long) (sizeof (int)); }
18865 unsigned long ulongval () { return (long) (sizeof (int)); }
18866 #include <stdio.h>
18867 #include <stdlib.h>
18868 int
18869 main ()
18870 {
18871
18872   FILE *f = fopen ("conftest.val", "w");
18873   if (! f)
18874     exit (1);
18875   if (((long) (sizeof (int))) < 0)
18876     {
18877       long i = longval ();
18878       if (i != ((long) (sizeof (int))))
18879         exit (1);
18880       fprintf (f, "%ld\n", i);
18881     }
18882   else
18883     {
18884       unsigned long i = ulongval ();
18885       if (i != ((long) (sizeof (int))))
18886         exit (1);
18887       fprintf (f, "%lu\n", i);
18888     }
18889   exit (ferror (f) || fclose (f) != 0);
18890
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897   (eval $ac_link) 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902   (eval $ac_try) 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); }; }; then
18906   ac_cv_sizeof_int=`cat conftest.val`
18907 else
18908   echo "$as_me: program exited with status $ac_status" >&5
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ( exit $ac_status )
18913 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18914 See \`config.log' for more details." >&5
18915 echo "$as_me: error: cannot compute sizeof (int), 77
18916 See \`config.log' for more details." >&2;}
18917    { (exit 1); exit 1; }; }
18918 fi
18919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 fi
18922 rm -f conftest.val
18923 else
18924   ac_cv_sizeof_int=0
18925 fi
18926 fi
18927 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18928 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18929 cat >>confdefs.h <<_ACEOF
18930 #define SIZEOF_INT $ac_cv_sizeof_int
18931 _ACEOF
18932
18933
18934 echo "$as_me:$LINENO: checking for long" >&5
18935 echo $ECHO_N "checking for long... $ECHO_C" >&6
18936 if test "${ac_cv_type_long+set}" = set; then
18937   echo $ECHO_N "(cached) $ECHO_C" >&6
18938 else
18939   cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945 $ac_includes_default
18946 int
18947 main ()
18948 {
18949 if ((long *) 0)
18950   return 0;
18951 if (sizeof (long))
18952   return 0;
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18959   (eval $ac_compile) 2>conftest.er1
18960   ac_status=$?
18961   grep -v '^ *+' conftest.er1 >conftest.err
18962   rm -f conftest.er1
18963   cat conftest.err >&5
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); } &&
18966          { ac_try='test -z "$ac_c_werror_flag"
18967                          || test ! -s conftest.err'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; } &&
18973          { ac_try='test -s conftest.$ac_objext'
18974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975   (eval $ac_try) 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; }; then
18979   ac_cv_type_long=yes
18980 else
18981   echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984 ac_cv_type_long=no
18985 fi
18986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18987 fi
18988 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18989 echo "${ECHO_T}$ac_cv_type_long" >&6
18990
18991 echo "$as_me:$LINENO: checking size of long" >&5
18992 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18993 if test "${ac_cv_sizeof_long+set}" = set; then
18994   echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996   if test "$ac_cv_type_long" = yes; then
18997   # The cast to unsigned long works around a bug in the HP C Compiler
18998   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18999   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19000   # This bug is HP SR number 8606223364.
19001   if test "$cross_compiling" = yes; then
19002   # Depending upon the size, compute the lo and hi bounds.
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009 $ac_includes_default
19010 int
19011 main ()
19012 {
19013 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19014 test_array [0] = 0
19015
19016   ;
19017   return 0;
19018 }
19019 _ACEOF
19020 rm -f conftest.$ac_objext
19021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19022   (eval $ac_compile) 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } &&
19029          { ac_try='test -z "$ac_c_werror_flag"
19030                          || test ! -s conftest.err'
19031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032   (eval $ac_try) 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); }; } &&
19036          { ac_try='test -s conftest.$ac_objext'
19037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038   (eval $ac_try) 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; }; then
19042   ac_lo=0 ac_mid=0
19043   while :; do
19044     cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h.  */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h.  */
19050 $ac_includes_default
19051 int
19052 main ()
19053 {
19054 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19055 test_array [0] = 0
19056
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063   (eval $ac_compile) 2>conftest.er1
19064   ac_status=$?
19065   grep -v '^ *+' conftest.er1 >conftest.err
19066   rm -f conftest.er1
19067   cat conftest.err >&5
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); } &&
19070          { ac_try='test -z "$ac_c_werror_flag"
19071                          || test ! -s conftest.err'
19072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073   (eval $ac_try) 2>&5
19074   ac_status=$?
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); }; } &&
19077          { ac_try='test -s conftest.$ac_objext'
19078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079   (eval $ac_try) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; }; then
19083   ac_hi=$ac_mid; break
19084 else
19085   echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_lo=`expr $ac_mid + 1`
19089                     if test $ac_lo -le $ac_mid; then
19090                       ac_lo= ac_hi=
19091                       break
19092                     fi
19093                     ac_mid=`expr 2 '*' $ac_mid + 1`
19094 fi
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19096   done
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 $ac_includes_default
19108 int
19109 main ()
19110 {
19111 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19112 test_array [0] = 0
19113
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120   (eval $ac_compile) 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -z "$ac_c_werror_flag"
19128                          || test ! -s conftest.err'
19129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130   (eval $ac_try) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); }; } &&
19134          { ac_try='test -s conftest.$ac_objext'
19135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_hi=-1 ac_mid=-1
19141   while :; do
19142     cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148 $ac_includes_default
19149 int
19150 main ()
19151 {
19152 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19153 test_array [0] = 0
19154
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19161   (eval $ac_compile) 2>conftest.er1
19162   ac_status=$?
19163   grep -v '^ *+' conftest.er1 >conftest.err
19164   rm -f conftest.er1
19165   cat conftest.err >&5
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); } &&
19168          { ac_try='test -z "$ac_c_werror_flag"
19169                          || test ! -s conftest.err'
19170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171   (eval $ac_try) 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; } &&
19175          { ac_try='test -s conftest.$ac_objext'
19176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177   (eval $ac_try) 2>&5
19178   ac_status=$?
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); }; }; then
19181   ac_lo=$ac_mid; break
19182 else
19183   echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186 ac_hi=`expr '(' $ac_mid ')' - 1`
19187                        if test $ac_mid -le $ac_hi; then
19188                          ac_lo= ac_hi=
19189                          break
19190                        fi
19191                        ac_mid=`expr 2 '*' $ac_mid`
19192 fi
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194   done
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 ac_lo= ac_hi=
19200 fi
19201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19202 fi
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204 # Binary search between lo and hi bounds.
19205 while test "x$ac_lo" != "x$ac_hi"; do
19206   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19207   cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19213 $ac_includes_default
19214 int
19215 main ()
19216 {
19217 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19218 test_array [0] = 0
19219
19220   ;
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19226   (eval $ac_compile) 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } &&
19233          { ac_try='test -z "$ac_c_werror_flag"
19234                          || test ! -s conftest.err'
19235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236   (eval $ac_try) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; } &&
19240          { ac_try='test -s conftest.$ac_objext'
19241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242   (eval $ac_try) 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; }; then
19246   ac_hi=$ac_mid
19247 else
19248   echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_lo=`expr '(' $ac_mid ')' + 1`
19252 fi
19253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19254 done
19255 case $ac_lo in
19256 ?*) ac_cv_sizeof_long=$ac_lo;;
19257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19258 See \`config.log' for more details." >&5
19259 echo "$as_me: error: cannot compute sizeof (long), 77
19260 See \`config.log' for more details." >&2;}
19261    { (exit 1); exit 1; }; } ;;
19262 esac
19263 else
19264   if test "$cross_compiling" = yes; then
19265   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19266 See \`config.log' for more details." >&5
19267 echo "$as_me: error: cannot run test program while cross compiling
19268 See \`config.log' for more details." >&2;}
19269    { (exit 1); exit 1; }; }
19270 else
19271   cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 $ac_includes_default
19278 long longval () { return (long) (sizeof (long)); }
19279 unsigned long ulongval () { return (long) (sizeof (long)); }
19280 #include <stdio.h>
19281 #include <stdlib.h>
19282 int
19283 main ()
19284 {
19285
19286   FILE *f = fopen ("conftest.val", "w");
19287   if (! f)
19288     exit (1);
19289   if (((long) (sizeof (long))) < 0)
19290     {
19291       long i = longval ();
19292       if (i != ((long) (sizeof (long))))
19293         exit (1);
19294       fprintf (f, "%ld\n", i);
19295     }
19296   else
19297     {
19298       unsigned long i = ulongval ();
19299       if (i != ((long) (sizeof (long))))
19300         exit (1);
19301       fprintf (f, "%lu\n", i);
19302     }
19303   exit (ferror (f) || fclose (f) != 0);
19304
19305   ;
19306   return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311   (eval $ac_link) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316   (eval $ac_try) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; }; then
19320   ac_cv_sizeof_long=`cat conftest.val`
19321 else
19322   echo "$as_me: program exited with status $ac_status" >&5
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 ( exit $ac_status )
19327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19328 See \`config.log' for more details." >&5
19329 echo "$as_me: error: cannot compute sizeof (long), 77
19330 See \`config.log' for more details." >&2;}
19331    { (exit 1); exit 1; }; }
19332 fi
19333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19334 fi
19335 fi
19336 rm -f conftest.val
19337 else
19338   ac_cv_sizeof_long=0
19339 fi
19340 fi
19341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19342 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19343 cat >>confdefs.h <<_ACEOF
19344 #define SIZEOF_LONG $ac_cv_sizeof_long
19345 _ACEOF
19346
19347
19348 echo "$as_me:$LINENO: checking for char *" >&5
19349 echo $ECHO_N "checking for char *... $ECHO_C" >&6
19350 if test "${ac_cv_type_char_p+set}" = set; then
19351   echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
19353   cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359 $ac_includes_default
19360 int
19361 main ()
19362 {
19363 if ((char * *) 0)
19364   return 0;
19365 if (sizeof (char *))
19366   return 0;
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373   (eval $ac_compile) 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } &&
19380          { ac_try='test -z "$ac_c_werror_flag"
19381                          || test ! -s conftest.err'
19382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383   (eval $ac_try) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest.$ac_objext'
19388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389   (eval $ac_try) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   ac_cv_type_char_p=yes
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_type_char_p=no
19399 fi
19400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19401 fi
19402 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19403 echo "${ECHO_T}$ac_cv_type_char_p" >&6
19404
19405 echo "$as_me:$LINENO: checking size of char *" >&5
19406 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19407 if test "${ac_cv_sizeof_char_p+set}" = set; then
19408   echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410   if test "$ac_cv_type_char_p" = yes; then
19411   # The cast to unsigned long works around a bug in the HP C Compiler
19412   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19413   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19414   # This bug is HP SR number 8606223364.
19415   if test "$cross_compiling" = yes; then
19416   # Depending upon the size, compute the lo and hi bounds.
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 $ac_includes_default
19424 int
19425 main ()
19426 {
19427 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
19428 test_array [0] = 0
19429
19430   ;
19431   return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19436   (eval $ac_compile) 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } &&
19443          { ac_try='test -z "$ac_c_werror_flag"
19444                          || test ! -s conftest.err'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; } &&
19450          { ac_try='test -s conftest.$ac_objext'
19451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452   (eval $ac_try) 2>&5
19453   ac_status=$?
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); }; }; then
19456   ac_lo=0 ac_mid=0
19457   while :; do
19458     cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 $ac_includes_default
19465 int
19466 main ()
19467 {
19468 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19469 test_array [0] = 0
19470
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477   (eval $ac_compile) 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } &&
19484          { ac_try='test -z "$ac_c_werror_flag"
19485                          || test ! -s conftest.err'
19486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487   (eval $ac_try) 2>&5
19488   ac_status=$?
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); }; } &&
19491          { ac_try='test -s conftest.$ac_objext'
19492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493   (eval $ac_try) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; }; then
19497   ac_hi=$ac_mid; break
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502 ac_lo=`expr $ac_mid + 1`
19503                     if test $ac_lo -le $ac_mid; then
19504                       ac_lo= ac_hi=
19505                       break
19506                     fi
19507                     ac_mid=`expr 2 '*' $ac_mid + 1`
19508 fi
19509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19510   done
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h.  */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h.  */
19521 $ac_includes_default
19522 int
19523 main ()
19524 {
19525 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
19526 test_array [0] = 0
19527
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534   (eval $ac_compile) 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -z "$ac_c_werror_flag"
19542                          || test ! -s conftest.err'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; } &&
19548          { ac_try='test -s conftest.$ac_objext'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_hi=-1 ac_mid=-1
19555   while :; do
19556     cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562 $ac_includes_default
19563 int
19564 main ()
19565 {
19566 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
19567 test_array [0] = 0
19568
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575   (eval $ac_compile) 2>conftest.er1
19576   ac_status=$?
19577   grep -v '^ *+' conftest.er1 >conftest.err
19578   rm -f conftest.er1
19579   cat conftest.err >&5
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } &&
19582          { ac_try='test -z "$ac_c_werror_flag"
19583                          || test ! -s conftest.err'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; } &&
19589          { ac_try='test -s conftest.$ac_objext'
19590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591   (eval $ac_try) 2>&5
19592   ac_status=$?
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); }; }; then
19595   ac_lo=$ac_mid; break
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_hi=`expr '(' $ac_mid ')' - 1`
19601                        if test $ac_mid -le $ac_hi; then
19602                          ac_lo= ac_hi=
19603                          break
19604                        fi
19605                        ac_mid=`expr 2 '*' $ac_mid`
19606 fi
19607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19608   done
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_lo= ac_hi=
19614 fi
19615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19616 fi
19617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618 # Binary search between lo and hi bounds.
19619 while test "x$ac_lo" != "x$ac_hi"; do
19620   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19621   cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 $ac_includes_default
19628 int
19629 main ()
19630 {
19631 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
19632 test_array [0] = 0
19633
19634   ;
19635   return 0;
19636 }
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640   (eval $ac_compile) 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } &&
19647          { ac_try='test -z "$ac_c_werror_flag"
19648                          || test ! -s conftest.err'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; } &&
19654          { ac_try='test -s conftest.$ac_objext'
19655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656   (eval $ac_try) 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660   ac_hi=$ac_mid
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 ac_lo=`expr '(' $ac_mid ')' + 1`
19666 fi
19667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668 done
19669 case $ac_lo in
19670 ?*) ac_cv_sizeof_char_p=$ac_lo;;
19671 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19672 See \`config.log' for more details." >&5
19673 echo "$as_me: error: cannot compute sizeof (char *), 77
19674 See \`config.log' for more details." >&2;}
19675    { (exit 1); exit 1; }; } ;;
19676 esac
19677 else
19678   if test "$cross_compiling" = yes; then
19679   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19680 See \`config.log' for more details." >&5
19681 echo "$as_me: error: cannot run test program while cross compiling
19682 See \`config.log' for more details." >&2;}
19683    { (exit 1); exit 1; }; }
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 $ac_includes_default
19692 long longval () { return (long) (sizeof (char *)); }
19693 unsigned long ulongval () { return (long) (sizeof (char *)); }
19694 #include <stdio.h>
19695 #include <stdlib.h>
19696 int
19697 main ()
19698 {
19699
19700   FILE *f = fopen ("conftest.val", "w");
19701   if (! f)
19702     exit (1);
19703   if (((long) (sizeof (char *))) < 0)
19704     {
19705       long i = longval ();
19706       if (i != ((long) (sizeof (char *))))
19707         exit (1);
19708       fprintf (f, "%ld\n", i);
19709     }
19710   else
19711     {
19712       unsigned long i = ulongval ();
19713       if (i != ((long) (sizeof (char *))))
19714         exit (1);
19715       fprintf (f, "%lu\n", i);
19716     }
19717   exit (ferror (f) || fclose (f) != 0);
19718
19719   ;
19720   return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest$ac_exeext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19725   (eval $ac_link) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730   (eval $ac_try) 2>&5
19731   ac_status=$?
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); }; }; then
19734   ac_cv_sizeof_char_p=`cat conftest.val`
19735 else
19736   echo "$as_me: program exited with status $ac_status" >&5
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ( exit $ac_status )
19741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19742 See \`config.log' for more details." >&5
19743 echo "$as_me: error: cannot compute sizeof (char *), 77
19744 See \`config.log' for more details." >&2;}
19745    { (exit 1); exit 1; }; }
19746 fi
19747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19748 fi
19749 fi
19750 rm -f conftest.val
19751 else
19752   ac_cv_sizeof_char_p=0
19753 fi
19754 fi
19755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
19756 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
19757 cat >>confdefs.h <<_ACEOF
19758 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19759 _ACEOF
19760
19761
19762 echo "$as_me:$LINENO: checking for double" >&5
19763 echo $ECHO_N "checking for double... $ECHO_C" >&6
19764 if test "${ac_cv_type_double+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 $ac_includes_default
19774 int
19775 main ()
19776 {
19777 if ((double *) 0)
19778   return 0;
19779 if (sizeof (double))
19780   return 0;
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787   (eval $ac_compile) 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -z "$ac_c_werror_flag"
19795                          || test ! -s conftest.err'
19796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797   (eval $ac_try) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; } &&
19801          { ac_try='test -s conftest.$ac_objext'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; }; then
19807   ac_cv_type_double=yes
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 ac_cv_type_double=no
19813 fi
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 fi
19816 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19817 echo "${ECHO_T}$ac_cv_type_double" >&6
19818
19819 echo "$as_me:$LINENO: checking size of double" >&5
19820 echo $ECHO_N "checking size of double... $ECHO_C" >&6
19821 if test "${ac_cv_sizeof_double+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   if test "$ac_cv_type_double" = yes; then
19825   # The cast to unsigned long works around a bug in the HP C Compiler
19826   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19827   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19828   # This bug is HP SR number 8606223364.
19829   if test "$cross_compiling" = yes; then
19830   # Depending upon the size, compute the lo and hi bounds.
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 $ac_includes_default
19838 int
19839 main ()
19840 {
19841 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
19842 test_array [0] = 0
19843
19844   ;
19845   return 0;
19846 }
19847 _ACEOF
19848 rm -f conftest.$ac_objext
19849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19850   (eval $ac_compile) 2>conftest.er1
19851   ac_status=$?
19852   grep -v '^ *+' conftest.er1 >conftest.err
19853   rm -f conftest.er1
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } &&
19857          { ac_try='test -z "$ac_c_werror_flag"
19858                          || test ! -s conftest.err'
19859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860   (eval $ac_try) 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; } &&
19864          { ac_try='test -s conftest.$ac_objext'
19865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; }; then
19870   ac_lo=0 ac_mid=0
19871   while :; do
19872     cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878 $ac_includes_default
19879 int
19880 main ()
19881 {
19882 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
19883 test_array [0] = 0
19884
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891   (eval $ac_compile) 2>conftest.er1
19892   ac_status=$?
19893   grep -v '^ *+' conftest.er1 >conftest.err
19894   rm -f conftest.er1
19895   cat conftest.err >&5
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); } &&
19898          { ac_try='test -z "$ac_c_werror_flag"
19899                          || test ! -s conftest.err'
19900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901   (eval $ac_try) 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; } &&
19905          { ac_try='test -s conftest.$ac_objext'
19906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907   (eval $ac_try) 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; }; then
19911   ac_hi=$ac_mid; break
19912 else
19913   echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ac_lo=`expr $ac_mid + 1`
19917                     if test $ac_lo -le $ac_mid; then
19918                       ac_lo= ac_hi=
19919                       break
19920                     fi
19921                     ac_mid=`expr 2 '*' $ac_mid + 1`
19922 fi
19923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924   done
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935 $ac_includes_default
19936 int
19937 main ()
19938 {
19939 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
19940 test_array [0] = 0
19941
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948   (eval $ac_compile) 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } &&
19955          { ac_try='test -z "$ac_c_werror_flag"
19956                          || test ! -s conftest.err'
19957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958   (eval $ac_try) 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; } &&
19962          { ac_try='test -s conftest.$ac_objext'
19963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964   (eval $ac_try) 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968   ac_hi=-1 ac_mid=-1
19969   while :; do
19970     cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976 $ac_includes_default
19977 int
19978 main ()
19979 {
19980 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
19981 test_array [0] = 0
19982
19983   ;
19984   return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989   (eval $ac_compile) 2>conftest.er1
19990   ac_status=$?
19991   grep -v '^ *+' conftest.er1 >conftest.err
19992   rm -f conftest.er1
19993   cat conftest.err >&5
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); } &&
19996          { ac_try='test -z "$ac_c_werror_flag"
19997                          || test ! -s conftest.err'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; } &&
20003          { ac_try='test -s conftest.$ac_objext'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009   ac_lo=$ac_mid; break
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_hi=`expr '(' $ac_mid ')' - 1`
20015                        if test $ac_mid -le $ac_hi; then
20016                          ac_lo= ac_hi=
20017                          break
20018                        fi
20019                        ac_mid=`expr 2 '*' $ac_mid`
20020 fi
20021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20022   done
20023 else
20024   echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 ac_lo= ac_hi=
20028 fi
20029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20030 fi
20031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20032 # Binary search between lo and hi bounds.
20033 while test "x$ac_lo" != "x$ac_hi"; do
20034   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20035   cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 $ac_includes_default
20042 int
20043 main ()
20044 {
20045 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
20046 test_array [0] = 0
20047
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054   (eval $ac_compile) 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -z "$ac_c_werror_flag"
20062                          || test ! -s conftest.err'
20063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064   (eval $ac_try) 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest.$ac_objext'
20069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070   (eval $ac_try) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   ac_hi=$ac_mid
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ac_lo=`expr '(' $ac_mid ')' + 1`
20080 fi
20081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20082 done
20083 case $ac_lo in
20084 ?*) ac_cv_sizeof_double=$ac_lo;;
20085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20086 See \`config.log' for more details." >&5
20087 echo "$as_me: error: cannot compute sizeof (double), 77
20088 See \`config.log' for more details." >&2;}
20089    { (exit 1); exit 1; }; } ;;
20090 esac
20091 else
20092   if test "$cross_compiling" = yes; then
20093   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20094 See \`config.log' for more details." >&5
20095 echo "$as_me: error: cannot run test program while cross compiling
20096 See \`config.log' for more details." >&2;}
20097    { (exit 1); exit 1; }; }
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 $ac_includes_default
20106 long longval () { return (long) (sizeof (double)); }
20107 unsigned long ulongval () { return (long) (sizeof (double)); }
20108 #include <stdio.h>
20109 #include <stdlib.h>
20110 int
20111 main ()
20112 {
20113
20114   FILE *f = fopen ("conftest.val", "w");
20115   if (! f)
20116     exit (1);
20117   if (((long) (sizeof (double))) < 0)
20118     {
20119       long i = longval ();
20120       if (i != ((long) (sizeof (double))))
20121         exit (1);
20122       fprintf (f, "%ld\n", i);
20123     }
20124   else
20125     {
20126       unsigned long i = ulongval ();
20127       if (i != ((long) (sizeof (double))))
20128         exit (1);
20129       fprintf (f, "%lu\n", i);
20130     }
20131   exit (ferror (f) || fclose (f) != 0);
20132
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest$ac_exeext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139   (eval $ac_link) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; }; then
20148   ac_cv_sizeof_double=`cat conftest.val`
20149 else
20150   echo "$as_me: program exited with status $ac_status" >&5
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ( exit $ac_status )
20155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20156 See \`config.log' for more details." >&5
20157 echo "$as_me: error: cannot compute sizeof (double), 77
20158 See \`config.log' for more details." >&2;}
20159    { (exit 1); exit 1; }; }
20160 fi
20161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20162 fi
20163 fi
20164 rm -f conftest.val
20165 else
20166   ac_cv_sizeof_double=0
20167 fi
20168 fi
20169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
20170 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
20171 cat >>confdefs.h <<_ACEOF
20172 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
20173 _ACEOF
20174
20175
20176 echo "$as_me:$LINENO: checking for long long" >&5
20177 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20178 if test "${ac_cv_type_long_long+set}" = set; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181   cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 $ac_includes_default
20188 int
20189 main ()
20190 {
20191 if ((long long *) 0)
20192   return 0;
20193 if (sizeof (long long))
20194   return 0;
20195   ;
20196   return 0;
20197 }
20198 _ACEOF
20199 rm -f conftest.$ac_objext
20200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20201   (eval $ac_compile) 2>conftest.er1
20202   ac_status=$?
20203   grep -v '^ *+' conftest.er1 >conftest.err
20204   rm -f conftest.er1
20205   cat conftest.err >&5
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); } &&
20208          { ac_try='test -z "$ac_c_werror_flag"
20209                          || test ! -s conftest.err'
20210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211   (eval $ac_try) 2>&5
20212   ac_status=$?
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); }; } &&
20215          { ac_try='test -s conftest.$ac_objext'
20216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217   (eval $ac_try) 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); }; }; then
20221   ac_cv_type_long_long=yes
20222 else
20223   echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226 ac_cv_type_long_long=no
20227 fi
20228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20229 fi
20230 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20231 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20232
20233 echo "$as_me:$LINENO: checking size of long long" >&5
20234 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20235 if test "${ac_cv_sizeof_long_long+set}" = set; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   if test "$ac_cv_type_long_long" = yes; then
20239   # The cast to unsigned long works around a bug in the HP C Compiler
20240   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20241   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20242   # This bug is HP SR number 8606223364.
20243   if test "$cross_compiling" = yes; then
20244   # Depending upon the size, compute the lo and hi bounds.
20245 cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 $ac_includes_default
20252 int
20253 main ()
20254 {
20255 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20256 test_array [0] = 0
20257
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264   (eval $ac_compile) 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag"
20272                          || test ! -s conftest.err'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; } &&
20278          { ac_try='test -s conftest.$ac_objext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   ac_lo=0 ac_mid=0
20285   while :; do
20286     cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292 $ac_includes_default
20293 int
20294 main ()
20295 {
20296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20297 test_array [0] = 0
20298
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest.$ac_objext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20305   (eval $ac_compile) 2>conftest.er1
20306   ac_status=$?
20307   grep -v '^ *+' conftest.er1 >conftest.err
20308   rm -f conftest.er1
20309   cat conftest.err >&5
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); } &&
20312          { ac_try='test -z "$ac_c_werror_flag"
20313                          || test ! -s conftest.err'
20314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315   (eval $ac_try) 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); }; } &&
20319          { ac_try='test -s conftest.$ac_objext'
20320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321   (eval $ac_try) 2>&5
20322   ac_status=$?
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); }; }; then
20325   ac_hi=$ac_mid; break
20326 else
20327   echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330 ac_lo=`expr $ac_mid + 1`
20331                     if test $ac_lo -le $ac_mid; then
20332                       ac_lo= ac_hi=
20333                       break
20334                     fi
20335                     ac_mid=`expr 2 '*' $ac_mid + 1`
20336 fi
20337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20338   done
20339 else
20340   echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349 $ac_includes_default
20350 int
20351 main ()
20352 {
20353 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20354 test_array [0] = 0
20355
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362   (eval $ac_compile) 2>conftest.er1
20363   ac_status=$?
20364   grep -v '^ *+' conftest.er1 >conftest.err
20365   rm -f conftest.er1
20366   cat conftest.err >&5
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } &&
20369          { ac_try='test -z "$ac_c_werror_flag"
20370                          || test ! -s conftest.err'
20371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372   (eval $ac_try) 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); }; } &&
20376          { ac_try='test -s conftest.$ac_objext'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_hi=-1 ac_mid=-1
20383   while :; do
20384     cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391 int
20392 main ()
20393 {
20394 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20395 test_array [0] = 0
20396
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403   (eval $ac_compile) 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_c_werror_flag"
20411                          || test ! -s conftest.err'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; } &&
20417          { ac_try='test -s conftest.$ac_objext'
20418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419   (eval $ac_try) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; }; then
20423   ac_lo=$ac_mid; break
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_hi=`expr '(' $ac_mid ')' - 1`
20429                        if test $ac_mid -le $ac_hi; then
20430                          ac_lo= ac_hi=
20431                          break
20432                        fi
20433                        ac_mid=`expr 2 '*' $ac_mid`
20434 fi
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436   done
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 ac_lo= ac_hi=
20442 fi
20443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20444 fi
20445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20446 # Binary search between lo and hi bounds.
20447 while test "x$ac_lo" != "x$ac_hi"; do
20448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20449   cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455 $ac_includes_default
20456 int
20457 main ()
20458 {
20459 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20460 test_array [0] = 0
20461
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468   (eval $ac_compile) 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } &&
20475          { ac_try='test -z "$ac_c_werror_flag"
20476                          || test ! -s conftest.err'
20477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478   (eval $ac_try) 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); }; } &&
20482          { ac_try='test -s conftest.$ac_objext'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; }; then
20488   ac_hi=$ac_mid
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 ac_lo=`expr '(' $ac_mid ')' + 1`
20494 fi
20495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20496 done
20497 case $ac_lo in
20498 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20500 See \`config.log' for more details." >&5
20501 echo "$as_me: error: cannot compute sizeof (long long), 77
20502 See \`config.log' for more details." >&2;}
20503    { (exit 1); exit 1; }; } ;;
20504 esac
20505 else
20506   if test "$cross_compiling" = yes; then
20507   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20508 See \`config.log' for more details." >&5
20509 echo "$as_me: error: cannot run test program while cross compiling
20510 See \`config.log' for more details." >&2;}
20511    { (exit 1); exit 1; }; }
20512 else
20513   cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519 $ac_includes_default
20520 long longval () { return (long) (sizeof (long long)); }
20521 unsigned long ulongval () { return (long) (sizeof (long long)); }
20522 #include <stdio.h>
20523 #include <stdlib.h>
20524 int
20525 main ()
20526 {
20527
20528   FILE *f = fopen ("conftest.val", "w");
20529   if (! f)
20530     exit (1);
20531   if (((long) (sizeof (long long))) < 0)
20532     {
20533       long i = longval ();
20534       if (i != ((long) (sizeof (long long))))
20535         exit (1);
20536       fprintf (f, "%ld\n", i);
20537     }
20538   else
20539     {
20540       unsigned long i = ulongval ();
20541       if (i != ((long) (sizeof (long long))))
20542         exit (1);
20543       fprintf (f, "%lu\n", i);
20544     }
20545   exit (ferror (f) || fclose (f) != 0);
20546
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest$ac_exeext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553   (eval $ac_link) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558   (eval $ac_try) 2>&5
20559   ac_status=$?
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); }; }; then
20562   ac_cv_sizeof_long_long=`cat conftest.val`
20563 else
20564   echo "$as_me: program exited with status $ac_status" >&5
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 ( exit $ac_status )
20569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20570 See \`config.log' for more details." >&5
20571 echo "$as_me: error: cannot compute sizeof (long long), 77
20572 See \`config.log' for more details." >&2;}
20573    { (exit 1); exit 1; }; }
20574 fi
20575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20576 fi
20577 fi
20578 rm -f conftest.val
20579 else
20580   ac_cv_sizeof_long_long=0
20581 fi
20582 fi
20583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20584 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20585 cat >>confdefs.h <<_ACEOF
20586 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20587 _ACEOF
20588
20589
20590
20591 echo "$as_me:$LINENO: checking for u_int" >&5
20592 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
20593 if test "${ac_cv_type_u_int+set}" = set; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596   cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602 $ac_includes_default
20603 int
20604 main ()
20605 {
20606 if ((u_int *) 0)
20607   return 0;
20608 if (sizeof (u_int))
20609   return 0;
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616   (eval $ac_compile) 2>conftest.er1
20617   ac_status=$?
20618   grep -v '^ *+' conftest.er1 >conftest.err
20619   rm -f conftest.er1
20620   cat conftest.err >&5
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } &&
20623          { ac_try='test -z "$ac_c_werror_flag"
20624                          || test ! -s conftest.err'
20625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626   (eval $ac_try) 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; } &&
20630          { ac_try='test -s conftest.$ac_objext'
20631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632   (eval $ac_try) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; }; then
20636   ac_cv_type_u_int=yes
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641 ac_cv_type_u_int=no
20642 fi
20643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20644 fi
20645 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
20646 echo "${ECHO_T}$ac_cv_type_u_int" >&6
20647 if test $ac_cv_type_u_int = yes; then
20648   :
20649 else
20650
20651 cat >>confdefs.h <<_ACEOF
20652 #define u_int unsigned int
20653 _ACEOF
20654
20655 fi
20656
20657 echo "$as_me:$LINENO: checking for u_long" >&5
20658 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
20659 if test "${ac_cv_type_u_long+set}" = set; then
20660   echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662   cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h.  */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h.  */
20668 $ac_includes_default
20669 int
20670 main ()
20671 {
20672 if ((u_long *) 0)
20673   return 0;
20674 if (sizeof (u_long))
20675   return 0;
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20682   (eval $ac_compile) 2>conftest.er1
20683   ac_status=$?
20684   grep -v '^ *+' conftest.er1 >conftest.err
20685   rm -f conftest.er1
20686   cat conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } &&
20689          { ac_try='test -z "$ac_c_werror_flag"
20690                          || test ! -s conftest.err'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; } &&
20696          { ac_try='test -s conftest.$ac_objext'
20697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698   (eval $ac_try) 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; }; then
20702   ac_cv_type_u_long=yes
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707 ac_cv_type_u_long=no
20708 fi
20709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20710 fi
20711 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
20712 echo "${ECHO_T}$ac_cv_type_u_long" >&6
20713 if test $ac_cv_type_u_long = yes; then
20714   :
20715 else
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define u_long unsigned long
20719 _ACEOF
20720
20721 fi
20722
20723
20724
20725 if test "$ac_cv_sizeof_short" = 2; then
20726   echo "$as_me:$LINENO: checking for bits16_t" >&5
20727 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20728 if test "${ac_cv_type_bits16_t+set}" = set; then
20729   echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731   cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h.  */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h.  */
20737 $ac_includes_default
20738 int
20739 main ()
20740 {
20741 if ((bits16_t *) 0)
20742   return 0;
20743 if (sizeof (bits16_t))
20744   return 0;
20745   ;
20746   return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751   (eval $ac_compile) 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } &&
20758          { ac_try='test -z "$ac_c_werror_flag"
20759                          || test ! -s conftest.err'
20760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761   (eval $ac_try) 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); }; } &&
20765          { ac_try='test -s conftest.$ac_objext'
20766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767   (eval $ac_try) 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; }; then
20771   ac_cv_type_bits16_t=yes
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 ac_cv_type_bits16_t=no
20777 fi
20778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20779 fi
20780 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20781 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20782 if test $ac_cv_type_bits16_t = yes; then
20783   :
20784 else
20785
20786 cat >>confdefs.h <<_ACEOF
20787 #define bits16_t short
20788 _ACEOF
20789
20790 fi
20791
20792 elif test "$ac_cv_sizeof_char" = 2; then
20793   echo "$as_me:$LINENO: checking for bits16_t" >&5
20794 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20795 if test "${ac_cv_type_bits16_t+set}" = set; then
20796   echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798   cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h.  */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h.  */
20804 $ac_includes_default
20805 int
20806 main ()
20807 {
20808 if ((bits16_t *) 0)
20809   return 0;
20810 if (sizeof (bits16_t))
20811   return 0;
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818   (eval $ac_compile) 2>conftest.er1
20819   ac_status=$?
20820   grep -v '^ *+' conftest.er1 >conftest.err
20821   rm -f conftest.er1
20822   cat conftest.err >&5
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); } &&
20825          { ac_try='test -z "$ac_c_werror_flag"
20826                          || test ! -s conftest.err'
20827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828   (eval $ac_try) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; } &&
20832          { ac_try='test -s conftest.$ac_objext'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_cv_type_bits16_t=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_cv_type_bits16_t=no
20844 fi
20845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20846 fi
20847 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20848 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20849 if test $ac_cv_type_bits16_t = yes; then
20850   :
20851 else
20852
20853 cat >>confdefs.h <<_ACEOF
20854 #define bits16_t char
20855 _ACEOF
20856
20857 fi
20858
20859 else
20860   echo "$as_me:$LINENO: checking for bits16_t" >&5
20861 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20862 if test "${ac_cv_type_bits16_t+set}" = set; then
20863   echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865   cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 $ac_includes_default
20872 int
20873 main ()
20874 {
20875 if ((bits16_t *) 0)
20876   return 0;
20877 if (sizeof (bits16_t))
20878   return 0;
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20885   (eval $ac_compile) 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } &&
20892          { ac_try='test -z "$ac_c_werror_flag"
20893                          || test ! -s conftest.err'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; } &&
20899          { ac_try='test -s conftest.$ac_objext'
20900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901   (eval $ac_try) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); }; }; then
20905   ac_cv_type_bits16_t=yes
20906 else
20907   echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 ac_cv_type_bits16_t=no
20911 fi
20912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20913 fi
20914 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20915 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20916 if test $ac_cv_type_bits16_t = yes; then
20917   :
20918 else
20919
20920 cat >>confdefs.h <<_ACEOF
20921 #define bits16_t short
20922 _ACEOF
20923
20924 fi
20925
20926 fi
20927
20928
20929 if test "$ac_cv_sizeof_short" = 2; then
20930   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20931 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20932 if test "${ac_cv_type_u_bits16_t+set}" = set; then
20933   echo $ECHO_N "(cached) $ECHO_C" >&6
20934 else
20935   cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 $ac_includes_default
20942 int
20943 main ()
20944 {
20945 if ((u_bits16_t *) 0)
20946   return 0;
20947 if (sizeof (u_bits16_t))
20948   return 0;
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955   (eval $ac_compile) 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } &&
20962          { ac_try='test -z "$ac_c_werror_flag"
20963                          || test ! -s conftest.err'
20964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965   (eval $ac_try) 2>&5
20966   ac_status=$?
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); }; } &&
20969          { ac_try='test -s conftest.$ac_objext'
20970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971   (eval $ac_try) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); }; }; then
20975   ac_cv_type_u_bits16_t=yes
20976 else
20977   echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 ac_cv_type_u_bits16_t=no
20981 fi
20982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20983 fi
20984 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
20985 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
20986 if test $ac_cv_type_u_bits16_t = yes; then
20987   :
20988 else
20989
20990 cat >>confdefs.h <<_ACEOF
20991 #define u_bits16_t unsigned short
20992 _ACEOF
20993
20994 fi
20995
20996 elif test "$ac_cv_sizeof_char" = 2; then
20997   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
20998 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
20999 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 $ac_includes_default
21009 int
21010 main ()
21011 {
21012 if ((u_bits16_t *) 0)
21013   return 0;
21014 if (sizeof (u_bits16_t))
21015   return 0;
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022   (eval $ac_compile) 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag"
21030                          || test ! -s conftest.err'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; } &&
21036          { ac_try='test -s conftest.$ac_objext'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_cv_type_u_bits16_t=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ac_cv_type_u_bits16_t=no
21048 fi
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 fi
21051 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21052 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21053 if test $ac_cv_type_u_bits16_t = yes; then
21054   :
21055 else
21056
21057 cat >>confdefs.h <<_ACEOF
21058 #define u_bits16_t unsigned char
21059 _ACEOF
21060
21061 fi
21062
21063 else
21064   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21065 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21066 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069   cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h.  */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h.  */
21075 $ac_includes_default
21076 int
21077 main ()
21078 {
21079 if ((u_bits16_t *) 0)
21080   return 0;
21081 if (sizeof (u_bits16_t))
21082   return 0;
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089   (eval $ac_compile) 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag"
21097                          || test ! -s conftest.err'
21098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099   (eval $ac_try) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; } &&
21103          { ac_try='test -s conftest.$ac_objext'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; }; then
21109   ac_cv_type_u_bits16_t=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 ac_cv_type_u_bits16_t=no
21115 fi
21116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21117 fi
21118 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21119 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21120 if test $ac_cv_type_u_bits16_t = yes; then
21121   :
21122 else
21123
21124 cat >>confdefs.h <<_ACEOF
21125 #define u_bits16_t unsigned short
21126 _ACEOF
21127
21128 fi
21129
21130 fi
21131
21132
21133 if test "$ac_cv_sizeof_int" = 4; then
21134   echo "$as_me:$LINENO: checking for bits32_t" >&5
21135 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21136 if test "${ac_cv_type_bits32_t+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139   cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 $ac_includes_default
21146 int
21147 main ()
21148 {
21149 if ((bits32_t *) 0)
21150   return 0;
21151 if (sizeof (bits32_t))
21152   return 0;
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21159   (eval $ac_compile) 2>conftest.er1
21160   ac_status=$?
21161   grep -v '^ *+' conftest.er1 >conftest.err
21162   rm -f conftest.er1
21163   cat conftest.err >&5
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } &&
21166          { ac_try='test -z "$ac_c_werror_flag"
21167                          || test ! -s conftest.err'
21168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169   (eval $ac_try) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); }; } &&
21173          { ac_try='test -s conftest.$ac_objext'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175   (eval $ac_try) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; }; then
21179   ac_cv_type_bits32_t=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 ac_cv_type_bits32_t=no
21185 fi
21186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21187 fi
21188 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21189 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21190 if test $ac_cv_type_bits32_t = yes; then
21191   :
21192 else
21193
21194 cat >>confdefs.h <<_ACEOF
21195 #define bits32_t int
21196 _ACEOF
21197
21198 fi
21199
21200 elif test "$ac_cv_sizeof_long" = 4; then
21201   echo "$as_me:$LINENO: checking for bits32_t" >&5
21202 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21203 if test "${ac_cv_type_bits32_t+set}" = set; then
21204   echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206   cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212 $ac_includes_default
21213 int
21214 main ()
21215 {
21216 if ((bits32_t *) 0)
21217   return 0;
21218 if (sizeof (bits32_t))
21219   return 0;
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226   (eval $ac_compile) 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } &&
21233          { ac_try='test -z "$ac_c_werror_flag"
21234                          || test ! -s conftest.err'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; } &&
21240          { ac_try='test -s conftest.$ac_objext'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; }; then
21246   ac_cv_type_bits32_t=yes
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 ac_cv_type_bits32_t=no
21252 fi
21253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21254 fi
21255 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21256 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21257 if test $ac_cv_type_bits32_t = yes; then
21258   :
21259 else
21260
21261 cat >>confdefs.h <<_ACEOF
21262 #define bits32_t long
21263 _ACEOF
21264
21265 fi
21266
21267 else
21268   echo "$as_me:$LINENO: checking for bits32_t" >&5
21269 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21270 if test "${ac_cv_type_bits32_t+set}" = set; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273   cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h.  */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h.  */
21279 $ac_includes_default
21280 int
21281 main ()
21282 {
21283 if ((bits32_t *) 0)
21284   return 0;
21285 if (sizeof (bits32_t))
21286   return 0;
21287   ;
21288   return 0;
21289 }
21290 _ACEOF
21291 rm -f conftest.$ac_objext
21292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21293   (eval $ac_compile) 2>conftest.er1
21294   ac_status=$?
21295   grep -v '^ *+' conftest.er1 >conftest.err
21296   rm -f conftest.er1
21297   cat conftest.err >&5
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } &&
21300          { ac_try='test -z "$ac_c_werror_flag"
21301                          || test ! -s conftest.err'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; } &&
21307          { ac_try='test -s conftest.$ac_objext'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; }; then
21313   ac_cv_type_bits32_t=yes
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318 ac_cv_type_bits32_t=no
21319 fi
21320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21321 fi
21322 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21323 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21324 if test $ac_cv_type_bits32_t = yes; then
21325   :
21326 else
21327
21328 cat >>confdefs.h <<_ACEOF
21329 #define bits32_t int
21330 _ACEOF
21331
21332 fi
21333
21334 fi
21335
21336
21337 if test "$ac_cv_sizeof_int" = 4; then
21338   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21339 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21340 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21341   echo $ECHO_N "(cached) $ECHO_C" >&6
21342 else
21343   cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349 $ac_includes_default
21350 int
21351 main ()
21352 {
21353 if ((u_bits32_t *) 0)
21354   return 0;
21355 if (sizeof (u_bits32_t))
21356   return 0;
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21363   (eval $ac_compile) 2>conftest.er1
21364   ac_status=$?
21365   grep -v '^ *+' conftest.er1 >conftest.err
21366   rm -f conftest.er1
21367   cat conftest.err >&5
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); } &&
21370          { ac_try='test -z "$ac_c_werror_flag"
21371                          || test ! -s conftest.err'
21372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373   (eval $ac_try) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; } &&
21377          { ac_try='test -s conftest.$ac_objext'
21378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379   (eval $ac_try) 2>&5
21380   ac_status=$?
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); }; }; then
21383   ac_cv_type_u_bits32_t=yes
21384 else
21385   echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388 ac_cv_type_u_bits32_t=no
21389 fi
21390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21391 fi
21392 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21393 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21394 if test $ac_cv_type_u_bits32_t = yes; then
21395   :
21396 else
21397
21398 cat >>confdefs.h <<_ACEOF
21399 #define u_bits32_t unsigned int
21400 _ACEOF
21401
21402 fi
21403
21404 elif test "$ac_cv_sizeof_long" = 4; then
21405   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21406 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21407 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21408   echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410   cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 $ac_includes_default
21417 int
21418 main ()
21419 {
21420 if ((u_bits32_t *) 0)
21421   return 0;
21422 if (sizeof (u_bits32_t))
21423   return 0;
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 rm -f conftest.$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430   (eval $ac_compile) 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } &&
21437          { ac_try='test -z "$ac_c_werror_flag"
21438                          || test ! -s conftest.err'
21439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440   (eval $ac_try) 2>&5
21441   ac_status=$?
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); }; } &&
21444          { ac_try='test -s conftest.$ac_objext'
21445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446   (eval $ac_try) 2>&5
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); }; }; then
21450   ac_cv_type_u_bits32_t=yes
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 ac_cv_type_u_bits32_t=no
21456 fi
21457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21458 fi
21459 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21460 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21461 if test $ac_cv_type_u_bits32_t = yes; then
21462   :
21463 else
21464
21465 cat >>confdefs.h <<_ACEOF
21466 #define u_bits32_t unsigned long
21467 _ACEOF
21468
21469 fi
21470
21471 else
21472   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21473 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21474 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477   cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483 $ac_includes_default
21484 int
21485 main ()
21486 {
21487 if ((u_bits32_t *) 0)
21488   return 0;
21489 if (sizeof (u_bits32_t))
21490   return 0;
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21497   (eval $ac_compile) 2>conftest.er1
21498   ac_status=$?
21499   grep -v '^ *+' conftest.er1 >conftest.err
21500   rm -f conftest.er1
21501   cat conftest.err >&5
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); } &&
21504          { ac_try='test -z "$ac_c_werror_flag"
21505                          || test ! -s conftest.err'
21506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507   (eval $ac_try) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; } &&
21511          { ac_try='test -s conftest.$ac_objext'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; }; then
21517   ac_cv_type_u_bits32_t=yes
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ac_cv_type_u_bits32_t=no
21523 fi
21524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21525 fi
21526 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21527 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21528 if test $ac_cv_type_u_bits32_t = yes; then
21529   :
21530 else
21531
21532 cat >>confdefs.h <<_ACEOF
21533 #define u_bits32_t unsigned int
21534 _ACEOF
21535
21536 fi
21537
21538 fi
21539
21540
21541 if test "$ac_cv_sizeof_char_p" = 8; then
21542   echo "$as_me:$LINENO: checking for bits64_t" >&5
21543 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21544 if test "${ac_cv_type_bits64_t+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 $ac_includes_default
21554 int
21555 main ()
21556 {
21557 if ((bits64_t *) 0)
21558   return 0;
21559 if (sizeof (bits64_t))
21560   return 0;
21561   ;
21562   return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567   (eval $ac_compile) 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } &&
21574          { ac_try='test -z "$ac_c_werror_flag"
21575                          || test ! -s conftest.err'
21576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577   (eval $ac_try) 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); }; } &&
21581          { ac_try='test -s conftest.$ac_objext'
21582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); }; }; then
21587   ac_cv_type_bits64_t=yes
21588 else
21589   echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21591
21592 ac_cv_type_bits64_t=no
21593 fi
21594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21595 fi
21596 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21597 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21598 if test $ac_cv_type_bits64_t = yes; then
21599   :
21600 else
21601
21602 cat >>confdefs.h <<_ACEOF
21603 #define bits64_t char *
21604 _ACEOF
21605
21606 fi
21607
21608 elif test "$ac_cv_sizeof_double" = 8; then
21609   echo "$as_me:$LINENO: checking for bits64_t" >&5
21610 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21611 if test "${ac_cv_type_bits64_t+set}" = set; then
21612   echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614   cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 $ac_includes_default
21621 int
21622 main ()
21623 {
21624 if ((bits64_t *) 0)
21625   return 0;
21626 if (sizeof (bits64_t))
21627   return 0;
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21634   (eval $ac_compile) 2>conftest.er1
21635   ac_status=$?
21636   grep -v '^ *+' conftest.er1 >conftest.err
21637   rm -f conftest.er1
21638   cat conftest.err >&5
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); } &&
21641          { ac_try='test -z "$ac_c_werror_flag"
21642                          || test ! -s conftest.err'
21643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644   (eval $ac_try) 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; } &&
21648          { ac_try='test -s conftest.$ac_objext'
21649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650   (eval $ac_try) 2>&5
21651   ac_status=$?
21652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); }; }; then
21654   ac_cv_type_bits64_t=yes
21655 else
21656   echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21658
21659 ac_cv_type_bits64_t=no
21660 fi
21661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21662 fi
21663 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21664 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21665 if test $ac_cv_type_bits64_t = yes; then
21666   :
21667 else
21668
21669 cat >>confdefs.h <<_ACEOF
21670 #define bits64_t double
21671 _ACEOF
21672
21673 fi
21674
21675 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
21676   echo "$as_me:$LINENO: checking for bits64_t" >&5
21677 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21678 if test "${ac_cv_type_bits64_t+set}" = set; then
21679   echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681   cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h.  */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h.  */
21687 $ac_includes_default
21688 int
21689 main ()
21690 {
21691 if ((bits64_t *) 0)
21692   return 0;
21693 if (sizeof (bits64_t))
21694   return 0;
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701   (eval $ac_compile) 2>conftest.er1
21702   ac_status=$?
21703   grep -v '^ *+' conftest.er1 >conftest.err
21704   rm -f conftest.er1
21705   cat conftest.err >&5
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); } &&
21708          { ac_try='test -z "$ac_c_werror_flag"
21709                          || test ! -s conftest.err'
21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711   (eval $ac_try) 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; } &&
21715          { ac_try='test -s conftest.$ac_objext'
21716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717   (eval $ac_try) 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); }; }; then
21721   ac_cv_type_bits64_t=yes
21722 else
21723   echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726 ac_cv_type_bits64_t=no
21727 fi
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729 fi
21730 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21731 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21732 if test $ac_cv_type_bits64_t = yes; then
21733   :
21734 else
21735
21736 cat >>confdefs.h <<_ACEOF
21737 #define bits64_t long long
21738 _ACEOF
21739
21740 fi
21741
21742 elif test "$ac_cv_sizeof_long" = 8; then
21743   echo "$as_me:$LINENO: checking for bits64_t" >&5
21744 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21745 if test "${ac_cv_type_bits64_t+set}" = set; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748   cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754 $ac_includes_default
21755 int
21756 main ()
21757 {
21758 if ((bits64_t *) 0)
21759   return 0;
21760 if (sizeof (bits64_t))
21761   return 0;
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 rm -f conftest.$ac_objext
21767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21768   (eval $ac_compile) 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } &&
21775          { ac_try='test -z "$ac_c_werror_flag"
21776                          || test ! -s conftest.err'
21777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778   (eval $ac_try) 2>&5
21779   ac_status=$?
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); }; } &&
21782          { ac_try='test -s conftest.$ac_objext'
21783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784   (eval $ac_try) 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; }; then
21788   ac_cv_type_bits64_t=yes
21789 else
21790   echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793 ac_cv_type_bits64_t=no
21794 fi
21795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21796 fi
21797 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21798 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21799 if test $ac_cv_type_bits64_t = yes; then
21800   :
21801 else
21802
21803 cat >>confdefs.h <<_ACEOF
21804 #define bits64_t long
21805 _ACEOF
21806
21807 fi
21808
21809 else
21810   echo "$as_me:$LINENO: checking for bits64_t" >&5
21811 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21812 if test "${ac_cv_type_bits64_t+set}" = set; then
21813   echo $ECHO_N "(cached) $ECHO_C" >&6
21814 else
21815   cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 $ac_includes_default
21822 int
21823 main ()
21824 {
21825 if ((bits64_t *) 0)
21826   return 0;
21827 if (sizeof (bits64_t))
21828   return 0;
21829   ;
21830   return 0;
21831 }
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21835   (eval $ac_compile) 2>conftest.er1
21836   ac_status=$?
21837   grep -v '^ *+' conftest.er1 >conftest.err
21838   rm -f conftest.er1
21839   cat conftest.err >&5
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } &&
21842          { ac_try='test -z "$ac_c_werror_flag"
21843                          || test ! -s conftest.err'
21844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845   (eval $ac_try) 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; } &&
21849          { ac_try='test -s conftest.$ac_objext'
21850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851   (eval $ac_try) 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); }; }; then
21855   ac_cv_type_bits64_t=yes
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860 ac_cv_type_bits64_t=no
21861 fi
21862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21863 fi
21864 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21865 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21866 if test $ac_cv_type_bits64_t = yes; then
21867   :
21868 else
21869
21870 cat >>confdefs.h <<_ACEOF
21871 #define bits64_t double
21872 _ACEOF
21873
21874 fi
21875
21876 fi
21877
21878
21879
21880 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
21881   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21882 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21883 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21884   echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886   cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h.  */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h.  */
21892 $ac_includes_default
21893 int
21894 main ()
21895 {
21896 if ((ptrdiff_t *) 0)
21897   return 0;
21898 if (sizeof (ptrdiff_t))
21899   return 0;
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 rm -f conftest.$ac_objext
21905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21906   (eval $ac_compile) 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } &&
21913          { ac_try='test -z "$ac_c_werror_flag"
21914                          || test ! -s conftest.err'
21915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916   (eval $ac_try) 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; } &&
21920          { ac_try='test -s conftest.$ac_objext'
21921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922   (eval $ac_try) 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; }; then
21926   ac_cv_type_ptrdiff_t=yes
21927 else
21928   echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931 ac_cv_type_ptrdiff_t=no
21932 fi
21933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21934 fi
21935 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21936 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21937 if test $ac_cv_type_ptrdiff_t = yes; then
21938   :
21939 else
21940
21941 cat >>confdefs.h <<_ACEOF
21942 #define ptrdiff_t int
21943 _ACEOF
21944
21945 fi
21946
21947 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
21948   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21949 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21950 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 $ac_includes_default
21960 int
21961 main ()
21962 {
21963 if ((ptrdiff_t *) 0)
21964   return 0;
21965 if (sizeof (ptrdiff_t))
21966   return 0;
21967   ;
21968   return 0;
21969 }
21970 _ACEOF
21971 rm -f conftest.$ac_objext
21972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21973   (eval $ac_compile) 2>conftest.er1
21974   ac_status=$?
21975   grep -v '^ *+' conftest.er1 >conftest.err
21976   rm -f conftest.er1
21977   cat conftest.err >&5
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } &&
21980          { ac_try='test -z "$ac_c_werror_flag"
21981                          || test ! -s conftest.err'
21982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983   (eval $ac_try) 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); }; } &&
21987          { ac_try='test -s conftest.$ac_objext'
21988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989   (eval $ac_try) 2>&5
21990   ac_status=$?
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); }; }; then
21993   ac_cv_type_ptrdiff_t=yes
21994 else
21995   echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998 ac_cv_type_ptrdiff_t=no
21999 fi
22000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22001 fi
22002 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22003 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22004 if test $ac_cv_type_ptrdiff_t = yes; then
22005   :
22006 else
22007
22008 cat >>confdefs.h <<_ACEOF
22009 #define ptrdiff_t long
22010 _ACEOF
22011
22012 fi
22013
22014 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
22015   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22016 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22017 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026 $ac_includes_default
22027 int
22028 main ()
22029 {
22030 if ((ptrdiff_t *) 0)
22031   return 0;
22032 if (sizeof (ptrdiff_t))
22033   return 0;
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 rm -f conftest.$ac_objext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22040   (eval $ac_compile) 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } &&
22047          { ac_try='test -z "$ac_c_werror_flag"
22048                          || test ! -s conftest.err'
22049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050   (eval $ac_try) 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; } &&
22054          { ac_try='test -s conftest.$ac_objext'
22055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056   (eval $ac_try) 2>&5
22057   ac_status=$?
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); }; }; then
22060   ac_cv_type_ptrdiff_t=yes
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065 ac_cv_type_ptrdiff_t=no
22066 fi
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22068 fi
22069 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22070 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22071 if test $ac_cv_type_ptrdiff_t = yes; then
22072   :
22073 else
22074
22075 cat >>confdefs.h <<_ACEOF
22076 #define ptrdiff_t long long
22077 _ACEOF
22078
22079 fi
22080
22081 else
22082   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22083 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22084 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22085   echo $ECHO_N "(cached) $ECHO_C" >&6
22086 else
22087   cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093 $ac_includes_default
22094 int
22095 main ()
22096 {
22097 if ((ptrdiff_t *) 0)
22098   return 0;
22099 if (sizeof (ptrdiff_t))
22100   return 0;
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22107   (eval $ac_compile) 2>conftest.er1
22108   ac_status=$?
22109   grep -v '^ *+' conftest.er1 >conftest.err
22110   rm -f conftest.er1
22111   cat conftest.err >&5
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } &&
22114          { ac_try='test -z "$ac_c_werror_flag"
22115                          || test ! -s conftest.err'
22116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117   (eval $ac_try) 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); }; } &&
22121          { ac_try='test -s conftest.$ac_objext'
22122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123   (eval $ac_try) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; }; then
22127   ac_cv_type_ptrdiff_t=yes
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132 ac_cv_type_ptrdiff_t=no
22133 fi
22134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22135 fi
22136 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22137 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22138 if test $ac_cv_type_ptrdiff_t = yes; then
22139   :
22140 else
22141
22142 cat >>confdefs.h <<_ACEOF
22143 #define ptrdiff_t int
22144 _ACEOF
22145
22146 fi
22147
22148 fi
22149
22150
22151 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22152 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22153 if test "${ac_cv_header_stat_broken+set}" = set; then
22154   echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156   cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162 #include <sys/types.h>
22163 #include <sys/stat.h>
22164
22165 #if defined(S_ISBLK) && defined(S_IFDIR)
22166 # if S_ISBLK (S_IFDIR)
22167 You lose.
22168 # endif
22169 #endif
22170
22171 #if defined(S_ISBLK) && defined(S_IFCHR)
22172 # if S_ISBLK (S_IFCHR)
22173 You lose.
22174 # endif
22175 #endif
22176
22177 #if defined(S_ISLNK) && defined(S_IFREG)
22178 # if S_ISLNK (S_IFREG)
22179 You lose.
22180 # endif
22181 #endif
22182
22183 #if defined(S_ISSOCK) && defined(S_IFREG)
22184 # if S_ISSOCK (S_IFREG)
22185 You lose.
22186 # endif
22187 #endif
22188
22189 _ACEOF
22190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22191   $EGREP "You lose" >/dev/null 2>&1; then
22192   ac_cv_header_stat_broken=yes
22193 else
22194   ac_cv_header_stat_broken=no
22195 fi
22196 rm -f conftest*
22197
22198 fi
22199 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22200 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22201 if test $ac_cv_header_stat_broken = yes; then
22202
22203 cat >>confdefs.h <<\_ACEOF
22204 #define STAT_MACROS_BROKEN 1
22205 _ACEOF
22206
22207 fi
22208
22209
22210 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
22211 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
22212 if test "${ac_cv_sys_interpreter+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   echo '#! /bin/cat
22216 exit 69
22217 ' >conftest
22218 chmod u+x conftest
22219 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
22220 if test $? -ne 69; then
22221    ac_cv_sys_interpreter=yes
22222 else
22223    ac_cv_sys_interpreter=no
22224 fi
22225 rm -f conftest
22226 fi
22227 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22228 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22229 interpval=$ac_cv_sys_interpreter
22230
22231 if test $ac_cv_sys_interpreter = yes; then
22232 cat >>confdefs.h <<\_ACEOF
22233 #define HAVE_HASH_BANG_EXEC 1
22234 _ACEOF
22235
22236 fi
22237
22238 if test "$ac_cv_func_lstat" = "no"; then
22239 echo "$as_me:$LINENO: checking for lstat" >&5
22240 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22241 if test "${bash_cv_func_lstat+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244   cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h.  */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h.  */
22250
22251 #include <sys/types.h>
22252 #include <sys/stat.h>
22253
22254 int
22255 main ()
22256 {
22257  lstat(".",(struct stat *)0);
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264   (eval $ac_link) 2>conftest.er1
22265   ac_status=$?
22266   grep -v '^ *+' conftest.er1 >conftest.err
22267   rm -f conftest.er1
22268   cat conftest.err >&5
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); } &&
22271          { ac_try='test -z "$ac_c_werror_flag"
22272                          || test ! -s conftest.err'
22273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274   (eval $ac_try) 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); }; } &&
22278          { ac_try='test -s conftest$ac_exeext'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; }; then
22284   bash_cv_func_lstat=yes
22285 else
22286   echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22288
22289 bash_cv_func_lstat=no
22290 fi
22291 rm -f conftest.err conftest.$ac_objext \
22292       conftest$ac_exeext conftest.$ac_ext
22293 fi
22294 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
22295 echo "${ECHO_T}$bash_cv_func_lstat" >&6
22296 if test $bash_cv_func_lstat = yes; then
22297   cat >>confdefs.h <<\_ACEOF
22298 #define HAVE_LSTAT 1
22299 _ACEOF
22300
22301 fi
22302
22303 fi
22304
22305
22306 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22307 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22308 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311   if test "$cross_compiling" = yes; then
22312   { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22313 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22314     bash_cv_func_ctype_nonascii=no
22315
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323
22324 #ifdef HAVE_LOCALE_H
22325 #include <locale.h>
22326 #endif
22327 #include <stdio.h>
22328 #include <ctype.h>
22329
22330 main(c, v)
22331 int     c;
22332 char    *v[];
22333 {
22334         char    *deflocale;
22335         unsigned char x;
22336         int     r1, r2;
22337
22338 #ifdef HAVE_SETLOCALE
22339         /* We take a shot here.  If that locale is not known, try the
22340            system default.  We try this one because '\342' (226) is
22341            known to be a printable character in that locale. */
22342         deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22343         if (deflocale == 0)
22344                 deflocale = setlocale(LC_ALL, "");
22345 #endif
22346
22347         x = '\342';
22348         r1 = isprint(x);
22349         x -= 128;
22350         r2 = isprint(x);
22351         exit (r1 == 0 || r2 == 0);
22352 }
22353
22354 _ACEOF
22355 rm -f conftest$ac_exeext
22356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22357   (eval $ac_link) 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362   (eval $ac_try) 2>&5
22363   ac_status=$?
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); }; }; then
22366   bash_cv_func_ctype_nonascii=yes
22367 else
22368   echo "$as_me: program exited with status $ac_status" >&5
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372 ( exit $ac_status )
22373 bash_cv_func_ctype_nonascii=no
22374 fi
22375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22376 fi
22377 fi
22378
22379 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22380 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22381 if test $bash_cv_func_ctype_nonascii = yes; then
22382 cat >>confdefs.h <<\_ACEOF
22383 #define CTYPE_NON_ASCII 1
22384 _ACEOF
22385
22386 fi
22387
22388 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
22389 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22390 if test "${bash_cv_dup2_broken+set}" = set; then
22391   echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22393   if test "$cross_compiling" = yes; then
22394   { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
22395 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
22396      bash_cv_dup2_broken=no
22397 else
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404
22405 #include <sys/types.h>
22406 #include <fcntl.h>
22407 main()
22408 {
22409   int fd1, fd2, fl;
22410   fd1 = open("/dev/null", 2);
22411   if (fcntl(fd1, 2, 1) < 0)
22412     exit(1);
22413   fd2 = dup2(fd1, 1);
22414   if (fd2 < 0)
22415     exit(2);
22416   fl = fcntl(fd2, 1, 0);
22417   /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22418   exit(fl != 1);
22419 }
22420
22421 _ACEOF
22422 rm -f conftest$ac_exeext
22423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22424   (eval $ac_link) 2>&5
22425   ac_status=$?
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429   (eval $ac_try) 2>&5
22430   ac_status=$?
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); }; }; then
22433   bash_cv_dup2_broken=yes
22434 else
22435   echo "$as_me: program exited with status $ac_status" >&5
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439 ( exit $ac_status )
22440 bash_cv_dup2_broken=no
22441 fi
22442 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22443 fi
22444
22445 fi
22446
22447 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
22448 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
22449 if test $bash_cv_dup2_broken = yes; then
22450 cat >>confdefs.h <<\_ACEOF
22451 #define DUP2_BROKEN 1
22452 _ACEOF
22453
22454 fi
22455
22456
22457 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
22458 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
22459 if test "${bash_cv_pgrp_pipe+set}" = set; then
22460   echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462   if test "$cross_compiling" = yes; then
22463   { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
22464 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
22465     bash_cv_pgrp_pipe=no
22466 else
22467   cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473
22474 #ifdef HAVE_UNISTD_H
22475 #  include <unistd.h>
22476 #endif
22477 main()
22478 {
22479 # ifdef GETPGRP_VOID
22480 #  define getpgID()     getpgrp()
22481 # else
22482 #  define getpgID()     getpgrp(0)
22483 #  define setpgid(x,y)  setpgrp(x,y)
22484 # endif
22485         int pid1, pid2, fds[2];
22486         int status;
22487         char ok;
22488
22489         switch (pid1 = fork()) {
22490           case -1:
22491             exit(1);
22492           case 0:
22493             setpgid(0, getpid());
22494             exit(0);
22495         }
22496         setpgid(pid1, pid1);
22497
22498         sleep(2);       /* let first child die */
22499
22500         if (pipe(fds) < 0)
22501           exit(2);
22502
22503         switch (pid2 = fork()) {
22504           case -1:
22505             exit(3);
22506           case 0:
22507             setpgid(0, pid1);
22508             ok = getpgID() == pid1;
22509             write(fds[1], &ok, 1);
22510             exit(0);
22511         }
22512         setpgid(pid2, pid1);
22513
22514         close(fds[1]);
22515         if (read(fds[0], &ok, 1) != 1)
22516           exit(4);
22517         wait(&status);
22518         wait(&status);
22519         exit(ok ? 0 : 5);
22520 }
22521
22522 _ACEOF
22523 rm -f conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525   (eval $ac_link) 2>&5
22526   ac_status=$?
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530   (eval $ac_try) 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); }; }; then
22534   bash_cv_pgrp_pipe=no
22535 else
22536   echo "$as_me: program exited with status $ac_status" >&5
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22539
22540 ( exit $ac_status )
22541 bash_cv_pgrp_pipe=yes
22542 fi
22543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22544 fi
22545
22546 fi
22547
22548 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
22549 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
22550 if test $bash_cv_pgrp_pipe = yes; then
22551 cat >>confdefs.h <<\_ACEOF
22552 #define PGRP_PIPE 1
22553 _ACEOF
22554
22555 fi
22556
22557
22558 echo "$as_me:$LINENO: checking for type of signal functions" >&5
22559 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
22560 if test "${bash_cv_signal_vintage+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563
22564   cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h.  */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h.  */
22570 #include <signal.h>
22571 int
22572 main ()
22573 {
22574
22575     sigset_t ss;
22576     struct sigaction sa;
22577     sigemptyset(&ss); sigsuspend(&ss);
22578     sigaction(SIGINT, &sa, (struct sigaction *) 0);
22579     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22580
22581   ;
22582   return 0;
22583 }
22584 _ACEOF
22585 rm -f conftest.$ac_objext conftest$ac_exeext
22586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22587   (eval $ac_link) 2>conftest.er1
22588   ac_status=$?
22589   grep -v '^ *+' conftest.er1 >conftest.err
22590   rm -f conftest.er1
22591   cat conftest.err >&5
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } &&
22594          { ac_try='test -z "$ac_c_werror_flag"
22595                          || test ! -s conftest.err'
22596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597   (eval $ac_try) 2>&5
22598   ac_status=$?
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); }; } &&
22601          { ac_try='test -s conftest$ac_exeext'
22602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603   (eval $ac_try) 2>&5
22604   ac_status=$?
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); }; }; then
22607   bash_cv_signal_vintage=posix
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612
22613     cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619 #include <signal.h>
22620 int
22621 main ()
22622 {
22623
22624         int mask = sigmask(SIGINT);
22625         sigsetmask(mask); sigblock(mask); sigpause(mask);
22626
22627   ;
22628   return 0;
22629 }
22630 _ACEOF
22631 rm -f conftest.$ac_objext conftest$ac_exeext
22632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22633   (eval $ac_link) 2>conftest.er1
22634   ac_status=$?
22635   grep -v '^ *+' conftest.er1 >conftest.err
22636   rm -f conftest.er1
22637   cat conftest.err >&5
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); } &&
22640          { ac_try='test -z "$ac_c_werror_flag"
22641                          || test ! -s conftest.err'
22642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643   (eval $ac_try) 2>&5
22644   ac_status=$?
22645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646   (exit $ac_status); }; } &&
22647          { ac_try='test -s conftest$ac_exeext'
22648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649   (eval $ac_try) 2>&5
22650   ac_status=$?
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); }; }; then
22653   bash_cv_signal_vintage=4.2bsd
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658
22659       cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665
22666         #include <signal.h>
22667         RETSIGTYPE foo() { }
22668 int
22669 main ()
22670 {
22671
22672                 int mask = sigmask(SIGINT);
22673                 sigset(SIGINT, foo); sigrelse(SIGINT);
22674                 sighold(SIGINT); sigpause(SIGINT);
22675
22676   ;
22677   return 0;
22678 }
22679 _ACEOF
22680 rm -f conftest.$ac_objext conftest$ac_exeext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22682   (eval $ac_link) 2>conftest.er1
22683   ac_status=$?
22684   grep -v '^ *+' conftest.er1 >conftest.err
22685   rm -f conftest.er1
22686   cat conftest.err >&5
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); } &&
22689          { ac_try='test -z "$ac_c_werror_flag"
22690                          || test ! -s conftest.err'
22691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692   (eval $ac_try) 2>&5
22693   ac_status=$?
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); }; } &&
22696          { ac_try='test -s conftest$ac_exeext'
22697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698   (eval $ac_try) 2>&5
22699   ac_status=$?
22700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701   (exit $ac_status); }; }; then
22702   bash_cv_signal_vintage=svr3
22703 else
22704   echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22706
22707 bash_cv_signal_vintage=v7
22708
22709 fi
22710 rm -f conftest.err conftest.$ac_objext \
22711       conftest$ac_exeext conftest.$ac_ext
22712
22713 fi
22714 rm -f conftest.err conftest.$ac_objext \
22715       conftest$ac_exeext conftest.$ac_ext
22716
22717 fi
22718 rm -f conftest.err conftest.$ac_objext \
22719       conftest$ac_exeext conftest.$ac_ext
22720
22721 fi
22722
22723 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22724 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22725 if test "$bash_cv_signal_vintage" = posix; then
22726 cat >>confdefs.h <<\_ACEOF
22727 #define HAVE_POSIX_SIGNALS 1
22728 _ACEOF
22729
22730 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22731 cat >>confdefs.h <<\_ACEOF
22732 #define HAVE_BSD_SIGNALS 1
22733 _ACEOF
22734
22735 elif test "$bash_cv_signal_vintage" = svr3; then
22736 cat >>confdefs.h <<\_ACEOF
22737 #define HAVE_USG_SIGHOLD 1
22738 _ACEOF
22739
22740 fi
22741
22742
22743 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
22744 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
22745 if test "${bash_cv_sys_errlist+set}" = set; then
22746   echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748   cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h.  */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h.  */
22754 #include <errno.h>
22755 int
22756 main ()
22757 {
22758 extern char *sys_errlist[];
22759  extern int sys_nerr;
22760  char *msg = sys_errlist[sys_nerr - 1];
22761   ;
22762   return 0;
22763 }
22764 _ACEOF
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22767   (eval $ac_link) 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } &&
22774          { ac_try='test -z "$ac_c_werror_flag"
22775                          || test ! -s conftest.err'
22776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777   (eval $ac_try) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; } &&
22781          { ac_try='test -s conftest$ac_exeext'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; }; then
22787   bash_cv_sys_errlist=yes
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 bash_cv_sys_errlist=no
22793 fi
22794 rm -f conftest.err conftest.$ac_objext \
22795       conftest$ac_exeext conftest.$ac_ext
22796 fi
22797 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
22798 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
22799 if test $bash_cv_sys_errlist = yes; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_SYS_ERRLIST 1
22802 _ACEOF
22803
22804 fi
22805
22806
22807 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
22808 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
22809 if test "${bash_cv_sys_siglist+set}" = set; then
22810   echo $ECHO_N "(cached) $ECHO_C" >&6
22811 else
22812   if test "$cross_compiling" = yes; then
22813   { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
22814 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
22815          bash_cv_sys_siglist=no
22816 else
22817   cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h.  */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h.  */
22823
22824 #include <sys/types.h>
22825 #include <signal.h>
22826 #ifdef HAVE_UNISTD_H
22827 #include <unistd.h>
22828 #endif
22829 #ifndef SYS_SIGLIST_DECLARED
22830 extern char *sys_siglist[];
22831 #endif
22832 main()
22833 {
22834 char *msg = sys_siglist[2];
22835 exit(msg == 0);
22836 }
22837 _ACEOF
22838 rm -f conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840   (eval $ac_link) 2>&5
22841   ac_status=$?
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845   (eval $ac_try) 2>&5
22846   ac_status=$?
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); }; }; then
22849   bash_cv_sys_siglist=yes
22850 else
22851   echo "$as_me: program exited with status $ac_status" >&5
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22854
22855 ( exit $ac_status )
22856 bash_cv_sys_siglist=no
22857 fi
22858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22859 fi
22860 fi
22861
22862 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
22863 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
22864 if test $bash_cv_sys_siglist = yes; then
22865 cat >>confdefs.h <<\_ACEOF
22866 #define HAVE_SYS_SIGLIST 1
22867 _ACEOF
22868
22869 fi
22870
22871 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
22872 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
22873 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
22874   echo $ECHO_N "(cached) $ECHO_C" >&6
22875 else
22876   cat >conftest.$ac_ext <<_ACEOF
22877 /* confdefs.h.  */
22878 _ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h.  */
22882
22883 #include <sys/types.h>
22884 #include <signal.h>
22885 #ifdef HAVE_UNISTD_H
22886 #include <unistd.h>
22887 #endif
22888 int
22889 main ()
22890 {
22891  char *msg = _sys_siglist[2];
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22898   (eval $ac_compile) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_c_werror_flag"
22906                          || test ! -s conftest.err'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; } &&
22912          { ac_try='test -s conftest.$ac_objext'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }; then
22918   bash_cv_decl_under_sys_siglist=yes
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 bash_cv_decl_under_sys_siglist=no
22924 fi
22925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22926 fi
22927 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
22928 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
22929 if test $bash_cv_decl_under_sys_siglist = yes; then
22930 cat >>confdefs.h <<\_ACEOF
22931 #define UNDER_SYS_SIGLIST_DECLARED 1
22932 _ACEOF
22933
22934 fi
22935
22936
22937 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
22938 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
22939 if test "${bash_cv_under_sys_siglist+set}" = set; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942   if test "$cross_compiling" = yes; then
22943   { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
22944 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
22945          bash_cv_under_sys_siglist=no
22946 else
22947   cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953
22954 #include <sys/types.h>
22955 #include <signal.h>
22956 #ifdef HAVE_UNISTD_H
22957 #include <unistd.h>
22958 #endif
22959 #ifndef UNDER_SYS_SIGLIST_DECLARED
22960 extern char *_sys_siglist[];
22961 #endif
22962 main()
22963 {
22964 char *msg = (char *)_sys_siglist[2];
22965 exit(msg == 0);
22966 }
22967 _ACEOF
22968 rm -f conftest$ac_exeext
22969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22970   (eval $ac_link) 2>&5
22971   ac_status=$?
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975   (eval $ac_try) 2>&5
22976   ac_status=$?
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); }; }; then
22979   bash_cv_under_sys_siglist=yes
22980 else
22981   echo "$as_me: program exited with status $ac_status" >&5
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985 ( exit $ac_status )
22986 bash_cv_under_sys_siglist=no
22987 fi
22988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22989 fi
22990 fi
22991
22992 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
22993 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
22994 if test $bash_cv_under_sys_siglist = yes; then
22995 cat >>confdefs.h <<\_ACEOF
22996 #define HAVE_UNDER_SYS_SIGLIST 1
22997 _ACEOF
22998
22999 fi
23000
23001
23002 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
23003 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
23004 if test "${bash_cv_void_sighandler+set}" = set; then
23005   echo $ECHO_N "(cached) $ECHO_C" >&6
23006 else
23007   cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013 #include <sys/types.h>
23014 #include <signal.h>
23015 #ifdef signal
23016 #undef signal
23017 #endif
23018 #ifdef __cplusplus
23019 extern "C"
23020 #endif
23021 void (*signal ()) ();
23022 int
23023 main ()
23024 {
23025 int i;
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23032   (eval $ac_compile) 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } &&
23039          { ac_try='test -z "$ac_c_werror_flag"
23040                          || test ! -s conftest.err'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; } &&
23046          { ac_try='test -s conftest.$ac_objext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   bash_cv_void_sighandler=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 bash_cv_void_sighandler=no
23058 fi
23059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23060 fi
23061 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
23062 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
23063 if test $bash_cv_void_sighandler = yes; then
23064 cat >>confdefs.h <<\_ACEOF
23065 #define VOID_SIGHANDLER 1
23066 _ACEOF
23067
23068 fi
23069
23070
23071
23072 echo "$as_me:$LINENO: checking for clock_t" >&5
23073 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23074 if test "${bash_cv_type_clock_t+set}" = set; then
23075   echo $ECHO_N "(cached) $ECHO_C" >&6
23076 else
23077   cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h.  */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h.  */
23083 #include <sys/types.h>
23084 #if STDC_HEADERS
23085 #include <stdlib.h>
23086 #include <stddef.h>
23087 #endif
23088 #if HAVE_INTTYPES_H
23089 #include <inttypes.h>
23090 #endif
23091 #include <sys/times.h>
23092
23093 _ACEOF
23094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23095   $EGREP "clock_t" >/dev/null 2>&1; then
23096   bash_cv_type_clock_t=yes
23097 else
23098   bash_cv_type_clock_t=no
23099 fi
23100 rm -f conftest*
23101
23102 fi
23103
23104 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
23105 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
23106
23107 if test $bash_cv_type_clock_t = no; then
23108   cat >>confdefs.h <<_ACEOF
23109 #define clock_t long
23110 _ACEOF
23111
23112 fi
23113
23114
23115
23116 echo "$as_me:$LINENO: checking for sigset_t" >&5
23117 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23118 if test "${bash_cv_type_sigset_t+set}" = set; then
23119   echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127 #include <sys/types.h>
23128 #if STDC_HEADERS
23129 #include <stdlib.h>
23130 #include <stddef.h>
23131 #endif
23132 #if HAVE_INTTYPES_H
23133 #include <inttypes.h>
23134 #endif
23135 #include <signal.h>
23136
23137 _ACEOF
23138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23139   $EGREP "sigset_t" >/dev/null 2>&1; then
23140   bash_cv_type_sigset_t=yes
23141 else
23142   bash_cv_type_sigset_t=no
23143 fi
23144 rm -f conftest*
23145
23146 fi
23147
23148 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
23149 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
23150
23151 if test $bash_cv_type_sigset_t = no; then
23152   cat >>confdefs.h <<_ACEOF
23153 #define sigset_t int
23154 _ACEOF
23155
23156 fi
23157
23158
23159
23160 echo "$as_me:$LINENO: checking for quad_t" >&5
23161 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23162 if test "${bash_cv_type_quad_t+set}" = set; then
23163   echo $ECHO_N "(cached) $ECHO_C" >&6
23164 else
23165   cat >conftest.$ac_ext <<_ACEOF
23166 /* confdefs.h.  */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h.  */
23171 #include <sys/types.h>
23172 #if STDC_HEADERS
23173 #include <stdlib.h>
23174 #include <stddef.h>
23175 #endif
23176 #if HAVE_INTTYPES_H
23177 #include <inttypes.h>
23178 #endif
23179
23180
23181 _ACEOF
23182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23183   $EGREP "quad_t" >/dev/null 2>&1; then
23184   bash_cv_type_quad_t=yes
23185 else
23186   bash_cv_type_quad_t=no
23187 fi
23188 rm -f conftest*
23189
23190 fi
23191
23192 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
23193 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
23194 if test $bash_cv_type_quad_t = yes; then
23195         cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_QUAD_T 1
23197 _ACEOF
23198
23199         fi
23200 if test $bash_cv_type_quad_t = no; then
23201   cat >>confdefs.h <<_ACEOF
23202 #define quad_t long
23203 _ACEOF
23204
23205 fi
23206
23207
23208
23209 echo "$as_me:$LINENO: checking for intmax_t" >&5
23210 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23211 if test "${bash_cv_type_intmax_t+set}" = set; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214   cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220 #include <sys/types.h>
23221 #if STDC_HEADERS
23222 #include <stdlib.h>
23223 #include <stddef.h>
23224 #endif
23225 #if HAVE_INTTYPES_H
23226 #include <inttypes.h>
23227 #endif
23228
23229
23230 _ACEOF
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232   $EGREP "intmax_t" >/dev/null 2>&1; then
23233   bash_cv_type_intmax_t=yes
23234 else
23235   bash_cv_type_intmax_t=no
23236 fi
23237 rm -f conftest*
23238
23239 fi
23240
23241 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
23242 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23243
23244 if test $bash_cv_type_intmax_t = no; then
23245   cat >>confdefs.h <<_ACEOF
23246 #define intmax_t $bash_cv_type_long_long
23247 _ACEOF
23248
23249 fi
23250
23251
23252
23253 echo "$as_me:$LINENO: checking for uintmax_t" >&5
23254 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23255 if test "${bash_cv_type_uintmax_t+set}" = set; then
23256   echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258   cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h.  */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h.  */
23264 #include <sys/types.h>
23265 #if STDC_HEADERS
23266 #include <stdlib.h>
23267 #include <stddef.h>
23268 #endif
23269 #if HAVE_INTTYPES_H
23270 #include <inttypes.h>
23271 #endif
23272
23273
23274 _ACEOF
23275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23276   $EGREP "uintmax_t" >/dev/null 2>&1; then
23277   bash_cv_type_uintmax_t=yes
23278 else
23279   bash_cv_type_uintmax_t=no
23280 fi
23281 rm -f conftest*
23282
23283 fi
23284
23285 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
23286 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23287
23288 if test $bash_cv_type_uintmax_t = no; then
23289   cat >>confdefs.h <<_ACEOF
23290 #define uintmax_t $bash_cv_type_unsigned_long_long
23291 _ACEOF
23292
23293 fi
23294
23295 if test "$ac_cv_header_sys_socket_h" = "yes"; then
23296
23297
23298 echo "$as_me:$LINENO: checking for socklen_t" >&5
23299 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23300 if test "${bash_cv_type_socklen_t+set}" = set; then
23301   echo $ECHO_N "(cached) $ECHO_C" >&6
23302 else
23303   cat >conftest.$ac_ext <<_ACEOF
23304 /* confdefs.h.  */
23305 _ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h.  */
23309 #include <sys/types.h>
23310 #if STDC_HEADERS
23311 #include <stdlib.h>
23312 #include <stddef.h>
23313 #endif
23314 #if HAVE_INTTYPES_H
23315 #include <inttypes.h>
23316 #endif
23317 #include <sys/socket.h>
23318
23319 _ACEOF
23320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23321   $EGREP "socklen_t" >/dev/null 2>&1; then
23322   bash_cv_type_socklen_t=yes
23323 else
23324   bash_cv_type_socklen_t=no
23325 fi
23326 rm -f conftest*
23327
23328 fi
23329
23330 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
23331 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23332 if test $bash_cv_type_socklen_t = yes; then
23333         cat >>confdefs.h <<\_ACEOF
23334 #define HAVE_SOCKLEN_T 1
23335 _ACEOF
23336
23337         fi
23338 if test $bash_cv_type_socklen_t = no; then
23339   cat >>confdefs.h <<_ACEOF
23340 #define socklen_t int
23341 _ACEOF
23342
23343 fi
23344
23345 fi
23346 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
23347 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23348 if test "${bash_cv_type_rlimit+set}" = set; then
23349   echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351   cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 #include <sys/types.h>
23358 #include <sys/resource.h>
23359 int
23360 main ()
23361 {
23362 rlim_t xxx;
23363   ;
23364   return 0;
23365 }
23366 _ACEOF
23367 rm -f conftest.$ac_objext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23369   (eval $ac_compile) 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } &&
23376          { ac_try='test -z "$ac_c_werror_flag"
23377                          || test ! -s conftest.err'
23378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379   (eval $ac_try) 2>&5
23380   ac_status=$?
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); }; } &&
23383          { ac_try='test -s conftest.$ac_objext'
23384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385   (eval $ac_try) 2>&5
23386   ac_status=$?
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); }; }; then
23389   bash_cv_type_rlimit=rlim_t
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394
23395 if test "$cross_compiling" = yes; then
23396   { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
23397 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
23398          bash_cv_type_rlimit=long
23399 else
23400   cat >conftest.$ac_ext <<_ACEOF
23401 /* confdefs.h.  */
23402 _ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h.  */
23406
23407 #include <sys/types.h>
23408 #include <sys/time.h>
23409 #include <sys/resource.h>
23410 main()
23411 {
23412 #ifdef HAVE_QUAD_T
23413   struct rlimit rl;
23414   if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23415     exit(0);
23416 #endif
23417   exit(1);
23418 }
23419 _ACEOF
23420 rm -f conftest$ac_exeext
23421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23422   (eval $ac_link) 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427   (eval $ac_try) 2>&5
23428   ac_status=$?
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); }; }; then
23431   bash_cv_type_rlimit=quad_t
23432 else
23433   echo "$as_me: program exited with status $ac_status" >&5
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 ( exit $ac_status )
23438 bash_cv_type_rlimit=long
23439 fi
23440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23441 fi
23442 fi
23443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23444
23445 fi
23446
23447 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
23448 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
23449 if test $bash_cv_type_rlimit = quad_t; then
23450 cat >>confdefs.h <<\_ACEOF
23451 #define RLIMTYPE quad_t
23452 _ACEOF
23453
23454 elif test $bash_cv_type_rlimit = rlim_t; then
23455 cat >>confdefs.h <<\_ACEOF
23456 #define RLIMTYPE rlim_t
23457 _ACEOF
23458
23459 fi
23460
23461
23462
23463 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
23464 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
23465 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
23466   echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468   cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474
23475 #include <sys/types.h>
23476 #include <termios.h>
23477
23478
23479 int
23480 main ()
23481 {
23482 static struct termios ac_aggr;
23483 if (ac_aggr.c_line)
23484 return 0;
23485   ;
23486   return 0;
23487 }
23488 _ACEOF
23489 rm -f conftest.$ac_objext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23491   (eval $ac_compile) 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } &&
23498          { ac_try='test -z "$ac_c_werror_flag"
23499                          || test ! -s conftest.err'
23500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; } &&
23505          { ac_try='test -s conftest.$ac_objext'
23506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507   (eval $ac_try) 2>&5
23508   ac_status=$?
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); }; }; then
23511   ac_cv_member_struct_termios_c_line=yes
23512 else
23513   echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h.  */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h.  */
23522
23523 #include <sys/types.h>
23524 #include <termios.h>
23525
23526
23527 int
23528 main ()
23529 {
23530 static struct termios ac_aggr;
23531 if (sizeof ac_aggr.c_line)
23532 return 0;
23533   ;
23534   return 0;
23535 }
23536 _ACEOF
23537 rm -f conftest.$ac_objext
23538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23539   (eval $ac_compile) 2>conftest.er1
23540   ac_status=$?
23541   grep -v '^ *+' conftest.er1 >conftest.err
23542   rm -f conftest.er1
23543   cat conftest.err >&5
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); } &&
23546          { ac_try='test -z "$ac_c_werror_flag"
23547                          || test ! -s conftest.err'
23548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549   (eval $ac_try) 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); }; } &&
23553          { ac_try='test -s conftest.$ac_objext'
23554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555   (eval $ac_try) 2>&5
23556   ac_status=$?
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); }; }; then
23559   ac_cv_member_struct_termios_c_line=yes
23560 else
23561   echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 ac_cv_member_struct_termios_c_line=no
23565 fi
23566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23567 fi
23568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23569 fi
23570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
23571 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
23572 if test $ac_cv_member_struct_termios_c_line = yes; then
23573   cat >>confdefs.h <<\_ACEOF
23574 #define TERMIOS_LDISC 1
23575 _ACEOF
23576
23577 fi
23578
23579
23580
23581 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
23582 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
23583 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
23584   echo $ECHO_N "(cached) $ECHO_C" >&6
23585 else
23586   cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h.  */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h.  */
23592
23593 #include <sys/types.h>
23594 #include <termio.h>
23595
23596
23597 int
23598 main ()
23599 {
23600 static struct termio ac_aggr;
23601 if (ac_aggr.c_line)
23602 return 0;
23603   ;
23604   return 0;
23605 }
23606 _ACEOF
23607 rm -f conftest.$ac_objext
23608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23609   (eval $ac_compile) 2>conftest.er1
23610   ac_status=$?
23611   grep -v '^ *+' conftest.er1 >conftest.err
23612   rm -f conftest.er1
23613   cat conftest.err >&5
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); } &&
23616          { ac_try='test -z "$ac_c_werror_flag"
23617                          || test ! -s conftest.err'
23618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619   (eval $ac_try) 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }; } &&
23623          { ac_try='test -s conftest.$ac_objext'
23624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625   (eval $ac_try) 2>&5
23626   ac_status=$?
23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); }; }; then
23629   ac_cv_member_struct_termio_c_line=yes
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634 cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640
23641 #include <sys/types.h>
23642 #include <termio.h>
23643
23644
23645 int
23646 main ()
23647 {
23648 static struct termio ac_aggr;
23649 if (sizeof ac_aggr.c_line)
23650 return 0;
23651   ;
23652   return 0;
23653 }
23654 _ACEOF
23655 rm -f conftest.$ac_objext
23656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23657   (eval $ac_compile) 2>conftest.er1
23658   ac_status=$?
23659   grep -v '^ *+' conftest.er1 >conftest.err
23660   rm -f conftest.er1
23661   cat conftest.err >&5
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); } &&
23664          { ac_try='test -z "$ac_c_werror_flag"
23665                          || test ! -s conftest.err'
23666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667   (eval $ac_try) 2>&5
23668   ac_status=$?
23669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670   (exit $ac_status); }; } &&
23671          { ac_try='test -s conftest.$ac_objext'
23672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673   (eval $ac_try) 2>&5
23674   ac_status=$?
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); }; }; then
23677   ac_cv_member_struct_termio_c_line=yes
23678 else
23679   echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682 ac_cv_member_struct_termio_c_line=no
23683 fi
23684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23685 fi
23686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23687 fi
23688 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
23689 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
23690 if test $ac_cv_member_struct_termio_c_line = yes; then
23691   cat >>confdefs.h <<\_ACEOF
23692 #define TERMIO_LDISC 1
23693 _ACEOF
23694
23695 fi
23696
23697
23698
23699 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
23700 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
23701 if test "${bash_cv_dirent_has_dino+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704   cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710
23711 #include <stdio.h>
23712 #include <sys/types.h>
23713 #ifdef HAVE_UNISTD_H
23714 # include <unistd.h>
23715 #endif /* HAVE_UNISTD_H */
23716 #if defined(HAVE_DIRENT_H)
23717 # include <dirent.h>
23718 #else
23719 # define dirent direct
23720 # ifdef HAVE_SYS_NDIR_H
23721 #  include <sys/ndir.h>
23722 # endif /* SYSNDIR */
23723 # ifdef HAVE_SYS_DIR_H
23724 #  include <sys/dir.h>
23725 # endif /* SYSDIR */
23726 # ifdef HAVE_NDIR_H
23727 #  include <ndir.h>
23728 # endif
23729 #endif /* HAVE_DIRENT_H */
23730
23731 int
23732 main ()
23733 {
23734
23735 struct dirent d; int z; z = d.d_ino;
23736
23737   ;
23738   return 0;
23739 }
23740 _ACEOF
23741 rm -f conftest.$ac_objext
23742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23743   (eval $ac_compile) 2>conftest.er1
23744   ac_status=$?
23745   grep -v '^ *+' conftest.er1 >conftest.err
23746   rm -f conftest.er1
23747   cat conftest.err >&5
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); } &&
23750          { ac_try='test -z "$ac_c_werror_flag"
23751                          || test ! -s conftest.err'
23752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753   (eval $ac_try) 2>&5
23754   ac_status=$?
23755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756   (exit $ac_status); }; } &&
23757          { ac_try='test -s conftest.$ac_objext'
23758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23759   (eval $ac_try) 2>&5
23760   ac_status=$?
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); }; }; then
23763   bash_cv_dirent_has_dino=yes
23764 else
23765   echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23767
23768 bash_cv_dirent_has_dino=no
23769 fi
23770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23771 fi
23772
23773 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
23774 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
23775 if test $bash_cv_dirent_has_dino = yes; then
23776 cat >>confdefs.h <<\_ACEOF
23777 #define HAVE_STRUCT_DIRENT_D_INO 1
23778 _ACEOF
23779
23780 fi
23781
23782
23783 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
23784 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
23785 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
23786   echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788   cat >conftest.$ac_ext <<_ACEOF
23789 /* confdefs.h.  */
23790 _ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h.  */
23794
23795 #include <stdio.h>
23796 #include <sys/types.h>
23797 #ifdef HAVE_UNISTD_H
23798 # include <unistd.h>
23799 #endif /* HAVE_UNISTD_H */
23800 #if defined(HAVE_DIRENT_H)
23801 # include <dirent.h>
23802 #else
23803 # define dirent direct
23804 # ifdef HAVE_SYS_NDIR_H
23805 #  include <sys/ndir.h>
23806 # endif /* SYSNDIR */
23807 # ifdef HAVE_SYS_DIR_H
23808 #  include <sys/dir.h>
23809 # endif /* SYSDIR */
23810 # ifdef HAVE_NDIR_H
23811 #  include <ndir.h>
23812 # endif
23813 #endif /* HAVE_DIRENT_H */
23814
23815 int
23816 main ()
23817 {
23818
23819 struct dirent d; int z; z = d.d_fileno;
23820
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23827   (eval $ac_compile) 2>conftest.er1
23828   ac_status=$?
23829   grep -v '^ *+' conftest.er1 >conftest.err
23830   rm -f conftest.er1
23831   cat conftest.err >&5
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); } &&
23834          { ac_try='test -z "$ac_c_werror_flag"
23835                          || test ! -s conftest.err'
23836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837   (eval $ac_try) 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; } &&
23841          { ac_try='test -s conftest.$ac_objext'
23842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843   (eval $ac_try) 2>&5
23844   ac_status=$?
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); }; }; then
23847   bash_cv_dirent_has_d_fileno=yes
23848 else
23849   echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 bash_cv_dirent_has_d_fileno=no
23853 fi
23854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23855 fi
23856
23857 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
23858 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
23859 if test $bash_cv_dirent_has_d_fileno = yes; then
23860 cat >>confdefs.h <<\_ACEOF
23861 #define HAVE_STRUCT_DIRENT_D_FILENO 1
23862 _ACEOF
23863
23864 fi
23865
23866
23867 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
23868 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
23869 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
23870   echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872   cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h.  */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h.  */
23878
23879 #include <stdio.h>
23880 #include <sys/types.h>
23881 #ifdef HAVE_UNISTD_H
23882 # include <unistd.h>
23883 #endif /* HAVE_UNISTD_H */
23884 #if defined(HAVE_DIRENT_H)
23885 # include <dirent.h>
23886 #else
23887 # define dirent direct
23888 # ifdef HAVE_SYS_NDIR_H
23889 #  include <sys/ndir.h>
23890 # endif /* SYSNDIR */
23891 # ifdef HAVE_SYS_DIR_H
23892 #  include <sys/dir.h>
23893 # endif /* SYSDIR */
23894 # ifdef HAVE_NDIR_H
23895 #  include <ndir.h>
23896 # endif
23897 #endif /* HAVE_DIRENT_H */
23898
23899 int
23900 main ()
23901 {
23902
23903 struct dirent d; int z; z = d.d_namlen;
23904
23905   ;
23906   return 0;
23907 }
23908 _ACEOF
23909 rm -f conftest.$ac_objext
23910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23911   (eval $ac_compile) 2>conftest.er1
23912   ac_status=$?
23913   grep -v '^ *+' conftest.er1 >conftest.err
23914   rm -f conftest.er1
23915   cat conftest.err >&5
23916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917   (exit $ac_status); } &&
23918          { ac_try='test -z "$ac_c_werror_flag"
23919                          || test ! -s conftest.err'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; } &&
23925          { ac_try='test -s conftest.$ac_objext'
23926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927   (eval $ac_try) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; }; then
23931   bash_cv_dirent_has_d_namlen=yes
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936 bash_cv_dirent_has_d_namlen=no
23937 fi
23938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23939 fi
23940
23941 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
23942 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
23943 if test $bash_cv_dirent_has_d_namlen = yes; then
23944 cat >>confdefs.h <<\_ACEOF
23945 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
23946 _ACEOF
23947
23948 fi
23949
23950 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
23951 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
23952 if test "${bash_cv_struct_winsize_header+set}" = set; then
23953   echo $ECHO_N "(cached) $ECHO_C" >&6
23954 else
23955   cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961 #include <sys/types.h>
23962 #include <sys/ioctl.h>
23963 int
23964 main ()
23965 {
23966 struct winsize x;
23967   ;
23968   return 0;
23969 }
23970 _ACEOF
23971 rm -f conftest.$ac_objext
23972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23973   (eval $ac_compile) 2>conftest.er1
23974   ac_status=$?
23975   grep -v '^ *+' conftest.er1 >conftest.err
23976   rm -f conftest.er1
23977   cat conftest.err >&5
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); } &&
23980          { ac_try='test -z "$ac_c_werror_flag"
23981                          || test ! -s conftest.err'
23982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983   (eval $ac_try) 2>&5
23984   ac_status=$?
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); }; } &&
23987          { ac_try='test -s conftest.$ac_objext'
23988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989   (eval $ac_try) 2>&5
23990   ac_status=$?
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); }; }; then
23993   bash_cv_struct_winsize_header=ioctl_h
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998 cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h.  */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h.  */
24004 #include <sys/types.h>
24005 #include <termios.h>
24006 int
24007 main ()
24008 {
24009 struct winsize x;
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext
24015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24016   (eval $ac_compile) 2>conftest.er1
24017   ac_status=$?
24018   grep -v '^ *+' conftest.er1 >conftest.err
24019   rm -f conftest.er1
24020   cat conftest.err >&5
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); } &&
24023          { ac_try='test -z "$ac_c_werror_flag"
24024                          || test ! -s conftest.err'
24025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026   (eval $ac_try) 2>&5
24027   ac_status=$?
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); }; } &&
24030          { ac_try='test -s conftest.$ac_objext'
24031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); }; }; then
24036   bash_cv_struct_winsize_header=termios_h
24037 else
24038   echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24040
24041 bash_cv_struct_winsize_header=other
24042 fi
24043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24044
24045 fi
24046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24047 fi
24048
24049 if test $bash_cv_struct_winsize_header = ioctl_h; then
24050   echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
24051 echo "${ECHO_T}sys/ioctl.h" >&6
24052   cat >>confdefs.h <<\_ACEOF
24053 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
24054 _ACEOF
24055
24056 elif test $bash_cv_struct_winsize_header = termios_h; then
24057   echo "$as_me:$LINENO: result: termios.h" >&5
24058 echo "${ECHO_T}termios.h" >&6
24059   cat >>confdefs.h <<\_ACEOF
24060 #define STRUCT_WINSIZE_IN_TERMIOS 1
24061 _ACEOF
24062
24063 else
24064   echo "$as_me:$LINENO: result: not found" >&5
24065 echo "${ECHO_T}not found" >&6
24066 fi
24067
24068 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
24069 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24070 if test "${bash_cv_struct_timeval+set}" = set; then
24071   echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h.  */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h.  */
24080 #include <sys/time.h>
24081
24082 _ACEOF
24083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24084   $EGREP "struct timeval" >/dev/null 2>&1; then
24085   bash_cv_struct_timeval=yes
24086 else
24087   cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093 #include <time.h>
24094
24095 _ACEOF
24096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24097   $EGREP "struct timeval" >/dev/null 2>&1; then
24098   bash_cv_struct_timeval=yes
24099 else
24100   bash_cv_struct_timeval=no
24101 fi
24102 rm -f conftest*
24103
24104 fi
24105 rm -f conftest*
24106
24107
24108 fi
24109
24110 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
24111 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
24112 if test $bash_cv_struct_timeval = yes; then
24113   cat >>confdefs.h <<\_ACEOF
24114 #define HAVE_TIMEVAL 1
24115 _ACEOF
24116
24117 fi
24118
24119 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
24120 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24121 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24122   echo $ECHO_N "(cached) $ECHO_C" >&6
24123 else
24124   cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h.  */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h.  */
24130 $ac_includes_default
24131 int
24132 main ()
24133 {
24134 static struct stat ac_aggr;
24135 if (ac_aggr.st_blocks)
24136 return 0;
24137   ;
24138   return 0;
24139 }
24140 _ACEOF
24141 rm -f conftest.$ac_objext
24142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24143   (eval $ac_compile) 2>conftest.er1
24144   ac_status=$?
24145   grep -v '^ *+' conftest.er1 >conftest.err
24146   rm -f conftest.er1
24147   cat conftest.err >&5
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } &&
24150          { ac_try='test -z "$ac_c_werror_flag"
24151                          || test ! -s conftest.err'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; } &&
24157          { ac_try='test -s conftest.$ac_objext'
24158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159   (eval $ac_try) 2>&5
24160   ac_status=$?
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); }; }; then
24163   ac_cv_member_struct_stat_st_blocks=yes
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168 cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h.  */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h.  */
24174 $ac_includes_default
24175 int
24176 main ()
24177 {
24178 static struct stat ac_aggr;
24179 if (sizeof ac_aggr.st_blocks)
24180 return 0;
24181   ;
24182   return 0;
24183 }
24184 _ACEOF
24185 rm -f conftest.$ac_objext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24187   (eval $ac_compile) 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } &&
24194          { ac_try='test -z "$ac_c_werror_flag"
24195                          || test ! -s conftest.err'
24196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197   (eval $ac_try) 2>&5
24198   ac_status=$?
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); }; } &&
24201          { ac_try='test -s conftest.$ac_objext'
24202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203   (eval $ac_try) 2>&5
24204   ac_status=$?
24205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206   (exit $ac_status); }; }; then
24207   ac_cv_member_struct_stat_st_blocks=yes
24208 else
24209   echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212 ac_cv_member_struct_stat_st_blocks=no
24213 fi
24214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24215 fi
24216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24217 fi
24218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
24219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24220 if test $ac_cv_member_struct_stat_st_blocks = yes; then
24221
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
24224 _ACEOF
24225
24226
24227 fi
24228
24229 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24230 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24231 if test "${ac_cv_struct_tm+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234   cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h.  */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h.  */
24240 #include <sys/types.h>
24241 #include <time.h>
24242
24243 int
24244 main ()
24245 {
24246 struct tm *tp; tp->tm_sec;
24247   ;
24248   return 0;
24249 }
24250 _ACEOF
24251 rm -f conftest.$ac_objext
24252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24253   (eval $ac_compile) 2>conftest.er1
24254   ac_status=$?
24255   grep -v '^ *+' conftest.er1 >conftest.err
24256   rm -f conftest.er1
24257   cat conftest.err >&5
24258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259   (exit $ac_status); } &&
24260          { ac_try='test -z "$ac_c_werror_flag"
24261                          || test ! -s conftest.err'
24262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263   (eval $ac_try) 2>&5
24264   ac_status=$?
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); }; } &&
24267          { ac_try='test -s conftest.$ac_objext'
24268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269   (eval $ac_try) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; }; then
24273   ac_cv_struct_tm=time.h
24274 else
24275   echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24277
24278 ac_cv_struct_tm=sys/time.h
24279 fi
24280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24281 fi
24282 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24283 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24284 if test $ac_cv_struct_tm = sys/time.h; then
24285
24286 cat >>confdefs.h <<\_ACEOF
24287 #define TM_IN_SYS_TIME 1
24288 _ACEOF
24289
24290 fi
24291
24292 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24293 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24294 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24295   echo $ECHO_N "(cached) $ECHO_C" >&6
24296 else
24297   cat >conftest.$ac_ext <<_ACEOF
24298 /* confdefs.h.  */
24299 _ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h.  */
24303 #include <sys/types.h>
24304 #include <$ac_cv_struct_tm>
24305
24306
24307 int
24308 main ()
24309 {
24310 static struct tm ac_aggr;
24311 if (ac_aggr.tm_zone)
24312 return 0;
24313   ;
24314   return 0;
24315 }
24316 _ACEOF
24317 rm -f conftest.$ac_objext
24318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24319   (eval $ac_compile) 2>conftest.er1
24320   ac_status=$?
24321   grep -v '^ *+' conftest.er1 >conftest.err
24322   rm -f conftest.er1
24323   cat conftest.err >&5
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); } &&
24326          { ac_try='test -z "$ac_c_werror_flag"
24327                          || test ! -s conftest.err'
24328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329   (eval $ac_try) 2>&5
24330   ac_status=$?
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); }; } &&
24333          { ac_try='test -s conftest.$ac_objext'
24334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); }; }; then
24339   ac_cv_member_struct_tm_tm_zone=yes
24340 else
24341   echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h.  */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h.  */
24350 #include <sys/types.h>
24351 #include <$ac_cv_struct_tm>
24352
24353
24354 int
24355 main ()
24356 {
24357 static struct tm ac_aggr;
24358 if (sizeof ac_aggr.tm_zone)
24359 return 0;
24360   ;
24361   return 0;
24362 }
24363 _ACEOF
24364 rm -f conftest.$ac_objext
24365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24366   (eval $ac_compile) 2>conftest.er1
24367   ac_status=$?
24368   grep -v '^ *+' conftest.er1 >conftest.err
24369   rm -f conftest.er1
24370   cat conftest.err >&5
24371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372   (exit $ac_status); } &&
24373          { ac_try='test -z "$ac_c_werror_flag"
24374                          || test ! -s conftest.err'
24375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24376   (eval $ac_try) 2>&5
24377   ac_status=$?
24378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379   (exit $ac_status); }; } &&
24380          { ac_try='test -s conftest.$ac_objext'
24381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382   (eval $ac_try) 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; }; then
24386   ac_cv_member_struct_tm_tm_zone=yes
24387 else
24388   echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24390
24391 ac_cv_member_struct_tm_tm_zone=no
24392 fi
24393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24394 fi
24395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24396 fi
24397 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24398 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24399 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24400
24401 cat >>confdefs.h <<_ACEOF
24402 #define HAVE_STRUCT_TM_TM_ZONE 1
24403 _ACEOF
24404
24405
24406 fi
24407
24408 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24409
24410 cat >>confdefs.h <<\_ACEOF
24411 #define HAVE_TM_ZONE 1
24412 _ACEOF
24413
24414 else
24415   echo "$as_me:$LINENO: checking for tzname" >&5
24416 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24417 if test "${ac_cv_var_tzname+set}" = set; then
24418   echo $ECHO_N "(cached) $ECHO_C" >&6
24419 else
24420   cat >conftest.$ac_ext <<_ACEOF
24421 /* confdefs.h.  */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h.  */
24426 #include <time.h>
24427 #ifndef tzname /* For SGI.  */
24428 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
24429 #endif
24430
24431 int
24432 main ()
24433 {
24434 atoi(*tzname);
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24441   (eval $ac_link) 2>conftest.er1
24442   ac_status=$?
24443   grep -v '^ *+' conftest.er1 >conftest.err
24444   rm -f conftest.er1
24445   cat conftest.err >&5
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } &&
24448          { ac_try='test -z "$ac_c_werror_flag"
24449                          || test ! -s conftest.err'
24450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451   (eval $ac_try) 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); }; } &&
24455          { ac_try='test -s conftest$ac_exeext'
24456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; }; then
24461   ac_cv_var_tzname=yes
24462 else
24463   echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466 ac_cv_var_tzname=no
24467 fi
24468 rm -f conftest.err conftest.$ac_objext \
24469       conftest$ac_exeext conftest.$ac_ext
24470 fi
24471 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24472 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24473   if test $ac_cv_var_tzname = yes; then
24474
24475 cat >>confdefs.h <<\_ACEOF
24476 #define HAVE_TZNAME 1
24477 _ACEOF
24478
24479   fi
24480 fi
24481
24482 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
24483 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
24484 if test "${bash_cv_struct_timezone+set}" = set; then
24485   echo $ECHO_N "(cached) $ECHO_C" >&6
24486 else
24487
24488 cat >conftest.$ac_ext <<_ACEOF
24489 /* confdefs.h.  */
24490 _ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h.  */
24494 #include <sys/time.h>
24495
24496 _ACEOF
24497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24498   $EGREP "struct timezone" >/dev/null 2>&1; then
24499   bash_cv_struct_timezone=yes
24500 else
24501   cat >conftest.$ac_ext <<_ACEOF
24502 /* confdefs.h.  */
24503 _ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h.  */
24507 #include <time.h>
24508
24509 _ACEOF
24510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24511   $EGREP "struct timezone" >/dev/null 2>&1; then
24512   bash_cv_struct_timezone=yes
24513 else
24514   bash_cv_struct_timezone=no
24515 fi
24516 rm -f conftest*
24517
24518 fi
24519 rm -f conftest*
24520
24521
24522 fi
24523
24524 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
24525 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
24526 if test $bash_cv_struct_timezone = yes; then
24527   cat >>confdefs.h <<\_ACEOF
24528 #define HAVE_STRUCT_TIMEZONE 1
24529 _ACEOF
24530
24531 fi
24532
24533
24534 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
24535 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
24536 if test "${bash_cv_have_strsignal+set}" = set; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h.  */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h.  */
24545 #include <sys/types.h>
24546 #include <signal.h>
24547 int
24548 main ()
24549 {
24550 char *s = (char *)strsignal(2);
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557   (eval $ac_link) 2>conftest.er1
24558   ac_status=$?
24559   grep -v '^ *+' conftest.er1 >conftest.err
24560   rm -f conftest.er1
24561   cat conftest.err >&5
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); } &&
24564          { ac_try='test -z "$ac_c_werror_flag"
24565                          || test ! -s conftest.err'
24566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; } &&
24571          { ac_try='test -s conftest$ac_exeext'
24572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573   (eval $ac_try) 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   bash_cv_have_strsignal=yes
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 bash_cv_have_strsignal=no
24583 fi
24584 rm -f conftest.err conftest.$ac_objext \
24585       conftest$ac_exeext conftest.$ac_ext
24586 fi
24587
24588 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
24589 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
24590 if test $bash_cv_have_strsignal = yes; then
24591 cat >>confdefs.h <<\_ACEOF
24592 #define HAVE_STRSIGNAL 1
24593 _ACEOF
24594
24595 fi
24596
24597 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
24598 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
24599 if test "${bash_cv_opendir_not_robust+set}" = set; then
24600   echo $ECHO_N "(cached) $ECHO_C" >&6
24601 else
24602   if test "$cross_compiling" = yes; then
24603   { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
24604 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
24605      bash_cv_opendir_not_robust=no
24606
24607 else
24608   cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614
24615 #include <stdio.h>
24616 #include <sys/types.h>
24617 #include <fcntl.h>
24618 #ifdef HAVE_UNISTD_H
24619 # include <unistd.h>
24620 #endif /* HAVE_UNISTD_H */
24621 #if defined(HAVE_DIRENT_H)
24622 # include <dirent.h>
24623 #else
24624 # define dirent direct
24625 # ifdef HAVE_SYS_NDIR_H
24626 #  include <sys/ndir.h>
24627 # endif /* SYSNDIR */
24628 # ifdef HAVE_SYS_DIR_H
24629 #  include <sys/dir.h>
24630 # endif /* SYSDIR */
24631 # ifdef HAVE_NDIR_H
24632 #  include <ndir.h>
24633 # endif
24634 #endif /* HAVE_DIRENT_H */
24635 main()
24636 {
24637 DIR *dir;
24638 int fd, err;
24639 err = mkdir("/tmp/bash-aclocal", 0700);
24640 if (err < 0) {
24641   perror("mkdir");
24642   exit(1);
24643 }
24644 unlink("/tmp/bash-aclocal/not_a_directory");
24645 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
24646 write(fd, "\n", 1);
24647 close(fd);
24648 dir = opendir("/tmp/bash-aclocal/not_a_directory");
24649 unlink("/tmp/bash-aclocal/not_a_directory");
24650 rmdir("/tmp/bash-aclocal");
24651 exit (dir == 0);
24652 }
24653 _ACEOF
24654 rm -f conftest$ac_exeext
24655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24656   (eval $ac_link) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661   (eval $ac_try) 2>&5
24662   ac_status=$?
24663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664   (exit $ac_status); }; }; then
24665   bash_cv_opendir_not_robust=yes
24666 else
24667   echo "$as_me: program exited with status $ac_status" >&5
24668 echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24670
24671 ( exit $ac_status )
24672 bash_cv_opendir_not_robust=no
24673 fi
24674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24675 fi
24676 fi
24677
24678 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
24679 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
24680 if test $bash_cv_opendir_not_robust = yes; then
24681 cat >>confdefs.h <<\_ACEOF
24682 #define OPENDIR_NOT_ROBUST 1
24683 _ACEOF
24684
24685 fi
24686
24687 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
24688 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
24689 if test "${bash_cv_ulimit_maxfds+set}" = set; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   if test "$cross_compiling" = yes; then
24693   { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
24694 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
24695     bash_cv_ulimit_maxfds=no
24696
24697 else
24698   cat >conftest.$ac_ext <<_ACEOF
24699 /* confdefs.h.  */
24700 _ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h.  */
24704
24705 main()
24706 {
24707 long maxfds = ulimit(4, 0L);
24708 exit (maxfds == -1L);
24709 }
24710
24711 _ACEOF
24712 rm -f conftest$ac_exeext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24714   (eval $ac_link) 2>&5
24715   ac_status=$?
24716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719   (eval $ac_try) 2>&5
24720   ac_status=$?
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); }; }; then
24723   bash_cv_ulimit_maxfds=yes
24724 else
24725   echo "$as_me: program exited with status $ac_status" >&5
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24728
24729 ( exit $ac_status )
24730 bash_cv_ulimit_maxfds=no
24731 fi
24732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24733 fi
24734 fi
24735
24736 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
24737 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
24738 if test $bash_cv_ulimit_maxfds = yes; then
24739 cat >>confdefs.h <<\_ACEOF
24740 #define ULIMIT_MAXFDS 1
24741 _ACEOF
24742
24743 fi
24744
24745 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
24746 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
24747 if test "${bash_cv_getenv_redef+set}" = set; then
24748   echo $ECHO_N "(cached) $ECHO_C" >&6
24749 else
24750   if test "$cross_compiling" = yes; then
24751   { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
24752 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
24753     bash_cv_getenv_redef=yes
24754
24755 else
24756   cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762
24763 #ifdef HAVE_UNISTD_H
24764 #  include <unistd.h>
24765 #endif
24766 #ifndef __STDC__
24767 #  ifndef const
24768 #    define const
24769 #  endif
24770 #endif
24771 char *
24772 getenv (name)
24773 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
24774      const char *name;
24775 #else
24776      char const *name;
24777 #endif /* !__linux__ && !__bsdi__ && !convex */
24778 {
24779 return "42";
24780 }
24781 main()
24782 {
24783 char *s;
24784 /* The next allows this program to run, but does not allow bash to link
24785    when it redefines getenv.  I'm not really interested in figuring out
24786    why not. */
24787 #if defined (NeXT)
24788 exit(1);
24789 #endif
24790 s = getenv("ABCDE");
24791 exit(s == 0);   /* force optimizer to leave getenv in */
24792 }
24793
24794 _ACEOF
24795 rm -f conftest$ac_exeext
24796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24797   (eval $ac_link) 2>&5
24798   ac_status=$?
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802   (eval $ac_try) 2>&5
24803   ac_status=$?
24804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805   (exit $ac_status); }; }; then
24806   bash_cv_getenv_redef=yes
24807 else
24808   echo "$as_me: program exited with status $ac_status" >&5
24809 echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24811
24812 ( exit $ac_status )
24813 bash_cv_getenv_redef=no
24814 fi
24815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24816 fi
24817 fi
24818
24819 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
24820 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
24821 if test $bash_cv_getenv_redef = yes; then
24822 cat >>confdefs.h <<\_ACEOF
24823 #define CAN_REDEFINE_GETENV 1
24824 _ACEOF
24825
24826 fi
24827
24828 if test "$ac_cv_func_getcwd" = "yes"; then
24829 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
24830 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
24831 if test "${bash_cv_getcwd_malloc+set}" = set; then
24832   echo $ECHO_N "(cached) $ECHO_C" >&6
24833 else
24834   if test "$cross_compiling" = yes; then
24835   { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
24836 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
24837     bash_cv_getcwd_malloc=no
24838
24839 else
24840   cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846
24847 #include <stdio.h>
24848 #ifdef HAVE_UNISTD_H
24849 #include <unistd.h>
24850 #endif
24851
24852 main()
24853 {
24854         char    *xpwd;
24855         xpwd = getcwd(0, 0);
24856         exit (xpwd == 0);
24857 }
24858
24859 _ACEOF
24860 rm -f conftest$ac_exeext
24861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24862   (eval $ac_link) 2>&5
24863   ac_status=$?
24864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24867   (eval $ac_try) 2>&5
24868   ac_status=$?
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); }; }; then
24871   bash_cv_getcwd_malloc=yes
24872 else
24873   echo "$as_me: program exited with status $ac_status" >&5
24874 echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24876
24877 ( exit $ac_status )
24878 bash_cv_getcwd_malloc=no
24879 fi
24880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24881 fi
24882 fi
24883
24884 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
24885 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
24886 if test $bash_cv_getcwd_malloc = no; then
24887 cat >>confdefs.h <<\_ACEOF
24888 #define GETCWD_BROKEN 1
24889 _ACEOF
24890
24891 case $LIBOBJS in
24892     "getcwd.$ac_objext"   | \
24893   *" getcwd.$ac_objext"   | \
24894     "getcwd.$ac_objext "* | \
24895   *" getcwd.$ac_objext "* ) ;;
24896   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
24897 esac
24898
24899 fi
24900
24901 fi
24902
24903 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
24904 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
24905 if test "${bash_cv_func_sigsetjmp+set}" = set; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908   if test "$cross_compiling" = yes; then
24909   { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
24910 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
24911      bash_cv_func_sigsetjmp=missing
24912
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h.  */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h.  */
24920
24921 #ifdef HAVE_UNISTD_H
24922 #include <unistd.h>
24923 #endif
24924 #include <sys/types.h>
24925 #include <signal.h>
24926 #include <setjmp.h>
24927
24928 main()
24929 {
24930 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
24931 exit (1);
24932 #else
24933
24934 int code;
24935 sigset_t set, oset;
24936 sigjmp_buf xx;
24937
24938 /* get the mask */
24939 sigemptyset(&set);
24940 sigemptyset(&oset);
24941 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
24942 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
24943
24944 /* save it */
24945 code = sigsetjmp(xx, 1);
24946 if (code)
24947   exit(0);      /* could get sigmask and compare to oset here. */
24948
24949 /* change it */
24950 sigaddset(&set, SIGINT);
24951 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
24952
24953 /* and siglongjmp */
24954 siglongjmp(xx, 10);
24955 exit(1);
24956 #endif
24957 }
24958 _ACEOF
24959 rm -f conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961   (eval $ac_link) 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966   (eval $ac_try) 2>&5
24967   ac_status=$?
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); }; }; then
24970   bash_cv_func_sigsetjmp=present
24971 else
24972   echo "$as_me: program exited with status $ac_status" >&5
24973 echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976 ( exit $ac_status )
24977 bash_cv_func_sigsetjmp=missing
24978 fi
24979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24980 fi
24981 fi
24982
24983 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
24984 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
24985 if test $bash_cv_func_sigsetjmp = present; then
24986 cat >>confdefs.h <<\_ACEOF
24987 #define HAVE_POSIX_SIGSETJMP 1
24988 _ACEOF
24989
24990 fi
24991
24992
24993 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
24994 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
24995 if test "${bash_cv_func_strcoll_broken+set}" = set; then
24996   echo $ECHO_N "(cached) $ECHO_C" >&6
24997 else
24998   if test "$cross_compiling" = yes; then
24999   { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
25000 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
25001     bash_cv_func_strcoll_broken=no
25002
25003 else
25004   cat >conftest.$ac_ext <<_ACEOF
25005 /* confdefs.h.  */
25006 _ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h.  */
25010
25011 #include <stdio.h>
25012 #if defined (HAVE_LOCALE_H)
25013 #include <locale.h>
25014 #endif
25015
25016 main(c, v)
25017 int     c;
25018 char    *v[];
25019 {
25020         int     r1, r2;
25021         char    *deflocale, *defcoll;
25022
25023 #ifdef HAVE_SETLOCALE
25024         deflocale = setlocale(LC_ALL, "");
25025         defcoll = setlocale(LC_COLLATE, "");
25026 #endif
25027
25028 #ifdef HAVE_STRCOLL
25029         /* These two values are taken from tests/glob-test. */
25030         r1 = strcoll("abd", "aXd");
25031 #else
25032         r1 = 0;
25033 #endif
25034         r2 = strcmp("abd", "aXd");
25035
25036         /* These two should both be greater than 0.  It is permissible for
25037            a system to return different values, as long as the sign is the
25038            same. */
25039
25040         /* Exit with 1 (failure) if these two values are both > 0, since
25041            this tests whether strcoll(3) is broken with respect to strcmp(3)
25042            in the default locale. */
25043         exit (r1 > 0 && r2 > 0);
25044 }
25045
25046 _ACEOF
25047 rm -f conftest$ac_exeext
25048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049   (eval $ac_link) 2>&5
25050   ac_status=$?
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054   (eval $ac_try) 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); }; }; then
25058   bash_cv_func_strcoll_broken=yes
25059 else
25060   echo "$as_me: program exited with status $ac_status" >&5
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064 ( exit $ac_status )
25065 bash_cv_func_strcoll_broken=no
25066 fi
25067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25068 fi
25069 fi
25070
25071 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
25072 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
25073 if test $bash_cv_func_strcoll_broken = yes; then
25074 cat >>confdefs.h <<\_ACEOF
25075 #define STRCOLL_BROKEN 1
25076 _ACEOF
25077
25078 fi
25079
25080
25081
25082 if test "$ac_cv_func_putenv" = "yes"; then
25083
25084
25085
25086 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
25087 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25088 if test "${bash_cv_std_putenv+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097
25098 #if STDC_HEADERS
25099 #include <stdlib.h>
25100 #include <stddef.h>
25101 #endif
25102 #ifndef __STDC__
25103 #  ifndef const
25104 #    define const
25105 #  endif
25106 #endif
25107 #ifdef PROTOTYPES
25108 extern int putenv (char *);
25109 #else
25110 extern int putenv ();
25111 #endif
25112
25113 int
25114 main ()
25115 {
25116 return (putenv == 0);
25117   ;
25118   return 0;
25119 }
25120 _ACEOF
25121 rm -f conftest.$ac_objext conftest$ac_exeext
25122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25123   (eval $ac_link) 2>conftest.er1
25124   ac_status=$?
25125   grep -v '^ *+' conftest.er1 >conftest.err
25126   rm -f conftest.er1
25127   cat conftest.err >&5
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); } &&
25130          { ac_try='test -z "$ac_c_werror_flag"
25131                          || test ! -s conftest.err'
25132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133   (eval $ac_try) 2>&5
25134   ac_status=$?
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); }; } &&
25137          { ac_try='test -s conftest$ac_exeext'
25138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139   (eval $ac_try) 2>&5
25140   ac_status=$?
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); }; }; then
25143   bash_cv_std_putenv=yes
25144 else
25145   echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25147
25148 bash_cv_std_putenv=no
25149
25150 fi
25151 rm -f conftest.err conftest.$ac_objext \
25152       conftest$ac_exeext conftest.$ac_ext
25153 fi
25154 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
25155 echo "${ECHO_T}$bash_cv_std_putenv" >&6
25156 if test $bash_cv_std_putenv = yes; then
25157 cat >>confdefs.h <<\_ACEOF
25158 #define HAVE_STD_PUTENV 1
25159 _ACEOF
25160
25161 fi
25162
25163 else
25164 cat >>confdefs.h <<\_ACEOF
25165 #define HAVE_STD_PUTENV 1
25166 _ACEOF
25167
25168 fi
25169 if test "$ac_cv_func_unsetenv" = "yes"; then
25170
25171
25172
25173 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
25174 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25175 if test "${bash_cv_std_unsetenv+set}" = set; then
25176   echo $ECHO_N "(cached) $ECHO_C" >&6
25177 else
25178   cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h.  */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h.  */
25184
25185 #if STDC_HEADERS
25186 #include <stdlib.h>
25187 #include <stddef.h>
25188 #endif
25189 #ifndef __STDC__
25190 #  ifndef const
25191 #    define const
25192 #  endif
25193 #endif
25194 #ifdef PROTOTYPES
25195 extern int unsetenv (const char *);
25196 #else
25197 extern int unsetenv ();
25198 #endif
25199
25200 int
25201 main ()
25202 {
25203 return (unsetenv == 0);
25204   ;
25205   return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext conftest$ac_exeext
25209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25210   (eval $ac_link) 2>conftest.er1
25211   ac_status=$?
25212   grep -v '^ *+' conftest.er1 >conftest.err
25213   rm -f conftest.er1
25214   cat conftest.err >&5
25215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); } &&
25217          { ac_try='test -z "$ac_c_werror_flag"
25218                          || test ! -s conftest.err'
25219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220   (eval $ac_try) 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); }; } &&
25224          { ac_try='test -s conftest$ac_exeext'
25225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226   (eval $ac_try) 2>&5
25227   ac_status=$?
25228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229   (exit $ac_status); }; }; then
25230   bash_cv_std_unsetenv=yes
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 bash_cv_std_unsetenv=no
25236
25237 fi
25238 rm -f conftest.err conftest.$ac_objext \
25239       conftest$ac_exeext conftest.$ac_ext
25240 fi
25241 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
25242 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25243 if test $bash_cv_std_unsetenv = yes; then
25244 cat >>confdefs.h <<\_ACEOF
25245 #define HAVE_STD_UNSETENV 1
25246 _ACEOF
25247
25248 fi
25249
25250 else
25251 cat >>confdefs.h <<\_ACEOF
25252 #define HAVE_STD_UNSETENV 1
25253 _ACEOF
25254
25255 fi
25256
25257 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
25258 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25259 if test "${bash_cv_printf_a_format+set}" = set; then
25260   echo $ECHO_N "(cached) $ECHO_C" >&6
25261 else
25262   if test "$cross_compiling" = yes; then
25263   { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
25264 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25265     bash_cv_printf_a_format=no
25266
25267 else
25268   cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h.  */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h.  */
25274
25275 #include <stdio.h>
25276 #include <string.h>
25277
25278 int
25279 main()
25280 {
25281         double y = 0.0;
25282         char abuf[1024];
25283
25284         sprintf(abuf, "%A", y);
25285         exit(strchr(abuf, 'P') == (char *)0);
25286 }
25287
25288 _ACEOF
25289 rm -f conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291   (eval $ac_link) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296   (eval $ac_try) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }; }; then
25300   bash_cv_printf_a_format=yes
25301 else
25302   echo "$as_me: program exited with status $ac_status" >&5
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 ( exit $ac_status )
25307 bash_cv_printf_a_format=no
25308 fi
25309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25310 fi
25311 fi
25312
25313 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
25314 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25315 if test $bash_cv_printf_a_format = yes; then
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_PRINTF_A_FORMAT 1
25318 _ACEOF
25319
25320 fi
25321
25322
25323
25324
25325 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
25326 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25327 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25328   echo $ECHO_N "(cached) $ECHO_C" >&6
25329 else
25330   if test "$cross_compiling" = yes; then
25331   { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
25332 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
25333     bash_cv_must_reinstall_sighandlers=no
25334
25335 else
25336   cat >conftest.$ac_ext <<_ACEOF
25337 /* confdefs.h.  */
25338 _ACEOF
25339 cat confdefs.h >>conftest.$ac_ext
25340 cat >>conftest.$ac_ext <<_ACEOF
25341 /* end confdefs.h.  */
25342
25343 #include <signal.h>
25344 #ifdef HAVE_UNISTD_H
25345 #include <unistd.h>
25346 #endif
25347
25348 typedef RETSIGTYPE sigfunc();
25349
25350 int nsigint;
25351
25352 #ifdef HAVE_POSIX_SIGNALS
25353 sigfunc *
25354 set_signal_handler(sig, handler)
25355      int sig;
25356      sigfunc *handler;
25357 {
25358   struct sigaction act, oact;
25359   act.sa_handler = handler;
25360   act.sa_flags = 0;
25361   sigemptyset (&act.sa_mask);
25362   sigemptyset (&oact.sa_mask);
25363   sigaction (sig, &act, &oact);
25364   return (oact.sa_handler);
25365 }
25366 #else
25367 #define set_signal_handler(s, h) signal(s, h)
25368 #endif
25369
25370 RETSIGTYPE
25371 sigint(s)
25372 int s;
25373 {
25374   nsigint++;
25375 }
25376
25377 main()
25378 {
25379         nsigint = 0;
25380         set_signal_handler(SIGINT, sigint);
25381         kill((int)getpid(), SIGINT);
25382         kill((int)getpid(), SIGINT);
25383         exit(nsigint != 2);
25384 }
25385
25386 _ACEOF
25387 rm -f conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389   (eval $ac_link) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394   (eval $ac_try) 2>&5
25395   ac_status=$?
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); }; }; then
25398   bash_cv_must_reinstall_sighandlers=no
25399 else
25400   echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ( exit $ac_status )
25405 bash_cv_must_reinstall_sighandlers=yes
25406 fi
25407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25408 fi
25409 fi
25410
25411 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
25412 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
25413 if test $bash_cv_must_reinstall_sighandlers = yes; then
25414 cat >>confdefs.h <<\_ACEOF
25415 #define MUST_REINSTALL_SIGHANDLERS 1
25416 _ACEOF
25417
25418 fi
25419
25420
25421 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
25422 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25423 if test "${bash_cv_job_control_missing+set}" = set; then
25424   echo $ECHO_N "(cached) $ECHO_C" >&6
25425 else
25426   if test "$cross_compiling" = yes; then
25427   { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
25428 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
25429      bash_cv_job_control_missing=missing
25430
25431 else
25432   cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h.  */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h.  */
25438
25439 #include <sys/types.h>
25440 #ifdef HAVE_SYS_WAIT_H
25441 #include <sys/wait.h>
25442 #endif
25443 #ifdef HAVE_UNISTD_H
25444 #include <unistd.h>
25445 #endif
25446 #include <signal.h>
25447
25448 /* Add more tests in here as appropriate. */
25449 main()
25450 {
25451 /* signal type */
25452 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
25453 exit(1);
25454 #endif
25455
25456 /* signals and tty control. */
25457 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
25458 exit (1);
25459 #endif
25460
25461 /* process control */
25462 #if !defined (WNOHANG) || !defined (WUNTRACED)
25463 exit(1);
25464 #endif
25465
25466 /* Posix systems have tcgetpgrp and waitpid. */
25467 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
25468 exit(1);
25469 #endif
25470
25471 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
25472 exit(1);
25473 #endif
25474
25475 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
25476 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
25477 exit(1);
25478 #endif
25479
25480 exit(0);
25481 }
25482 _ACEOF
25483 rm -f conftest$ac_exeext
25484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25485   (eval $ac_link) 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490   (eval $ac_try) 2>&5
25491   ac_status=$?
25492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); }; }; then
25494   bash_cv_job_control_missing=present
25495 else
25496   echo "$as_me: program exited with status $ac_status" >&5
25497 echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25499
25500 ( exit $ac_status )
25501 bash_cv_job_control_missing=missing
25502 fi
25503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25504 fi
25505 fi
25506
25507 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
25508 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
25509 if test $bash_cv_job_control_missing = missing; then
25510 cat >>confdefs.h <<\_ACEOF
25511 #define JOB_CONTROL_MISSING 1
25512 _ACEOF
25513
25514 fi
25515
25516 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
25517 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
25518 if test "${bash_cv_sys_named_pipes+set}" = set; then
25519   echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521   if test "$cross_compiling" = yes; then
25522   { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
25523 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
25524      bash_cv_sys_named_pipes=missing
25525
25526 else
25527   cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533
25534 #include <sys/types.h>
25535 #include <sys/stat.h>
25536 #ifdef HAVE_UNISTD_H
25537 #include <unistd.h>
25538 #endif
25539
25540 /* Add more tests in here as appropriate. */
25541 main()
25542 {
25543 int fd, err;
25544
25545 #if defined (HAVE_MKFIFO)
25546 exit (0);
25547 #endif
25548
25549 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
25550 exit (1);
25551 #endif
25552
25553 #if defined (NeXT)
25554 exit (1);
25555 #endif
25556 err = mkdir("/tmp/bash-aclocal", 0700);
25557 if (err < 0) {
25558   perror ("mkdir");
25559   exit(1);
25560 }
25561 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
25562 if (fd == -1) {
25563   rmdir ("/tmp/bash-aclocal");
25564   exit (1);
25565 }
25566 close(fd);
25567 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
25568 rmdir ("/tmp/bash-aclocal");
25569 exit(0);
25570 }
25571 _ACEOF
25572 rm -f conftest$ac_exeext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25574   (eval $ac_link) 2>&5
25575   ac_status=$?
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579   (eval $ac_try) 2>&5
25580   ac_status=$?
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); }; }; then
25583   bash_cv_sys_named_pipes=present
25584 else
25585   echo "$as_me: program exited with status $ac_status" >&5
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589 ( exit $ac_status )
25590 bash_cv_sys_named_pipes=missing
25591 fi
25592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25593 fi
25594 fi
25595
25596 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
25597 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
25598 if test $bash_cv_sys_named_pipes = missing; then
25599 cat >>confdefs.h <<\_ACEOF
25600 #define NAMED_PIPES_MISSING 1
25601 _ACEOF
25602
25603 fi
25604
25605
25606 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
25607 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
25608 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
25609   echo $ECHO_N "(cached) $ECHO_C" >&6
25610 else
25611   cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h.  */
25613 _ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h.  */
25617 #include <sys/types.h>
25618 #include <termios.h>
25619 #ifdef TIOCGWINSZ
25620   yes
25621 #endif
25622
25623 _ACEOF
25624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25625   $EGREP "yes" >/dev/null 2>&1; then
25626   ac_cv_sys_tiocgwinsz_in_termios_h=yes
25627 else
25628   ac_cv_sys_tiocgwinsz_in_termios_h=no
25629 fi
25630 rm -f conftest*
25631
25632 fi
25633 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
25634 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
25635
25636 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
25637   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
25638 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
25639 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
25640   echo $ECHO_N "(cached) $ECHO_C" >&6
25641 else
25642   cat >conftest.$ac_ext <<_ACEOF
25643 /* confdefs.h.  */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h.  */
25648 #include <sys/types.h>
25649 #include <sys/ioctl.h>
25650 #ifdef TIOCGWINSZ
25651   yes
25652 #endif
25653
25654 _ACEOF
25655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25656   $EGREP "yes" >/dev/null 2>&1; then
25657   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
25658 else
25659   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
25660 fi
25661 rm -f conftest*
25662
25663 fi
25664 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
25665 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
25666
25667   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
25668
25669 cat >>confdefs.h <<\_ACEOF
25670 #define GWINSZ_IN_SYS_IOCTL 1
25671 _ACEOF
25672
25673   fi
25674 fi
25675
25676 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
25677 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
25678 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
25679   echo $ECHO_N "(cached) $ECHO_C" >&6
25680 else
25681   cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687 #include <sys/types.h>
25688 #include <sys/ioctl.h>
25689 int
25690 main ()
25691 {
25692 int x = TIOCSTAT;
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699   (eval $ac_compile) 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } &&
25706          { ac_try='test -z "$ac_c_werror_flag"
25707                          || test ! -s conftest.err'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; } &&
25713          { ac_try='test -s conftest.$ac_objext'
25714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715   (eval $ac_try) 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); }; }; then
25719   bash_cv_tiocstat_in_ioctl=yes
25720 else
25721   echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25723
25724 bash_cv_tiocstat_in_ioctl=no
25725 fi
25726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25727 fi
25728
25729 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
25730 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
25731 if test $bash_cv_tiocstat_in_ioctl = yes; then
25732 cat >>confdefs.h <<\_ACEOF
25733 #define TIOCSTAT_IN_SYS_IOCTL 1
25734 _ACEOF
25735
25736 fi
25737
25738 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
25739 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
25740 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743   cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749 #include <sys/types.h>
25750 #include <sys/ioctl.h>
25751 int
25752 main ()
25753 {
25754 int x = FIONREAD;
25755   ;
25756   return 0;
25757 }
25758 _ACEOF
25759 rm -f conftest.$ac_objext
25760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25761   (eval $ac_compile) 2>conftest.er1
25762   ac_status=$?
25763   grep -v '^ *+' conftest.er1 >conftest.err
25764   rm -f conftest.er1
25765   cat conftest.err >&5
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); } &&
25768          { ac_try='test -z "$ac_c_werror_flag"
25769                          || test ! -s conftest.err'
25770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771   (eval $ac_try) 2>&5
25772   ac_status=$?
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); }; } &&
25775          { ac_try='test -s conftest.$ac_objext'
25776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777   (eval $ac_try) 2>&5
25778   ac_status=$?
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); }; }; then
25781   bash_cv_fionread_in_ioctl=yes
25782 else
25783   echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 bash_cv_fionread_in_ioctl=no
25787 fi
25788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25789 fi
25790
25791 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
25792 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
25793 if test $bash_cv_fionread_in_ioctl = yes; then
25794 cat >>confdefs.h <<\_ACEOF
25795 #define FIONREAD_IN_SYS_IOCTL 1
25796 _ACEOF
25797
25798 fi
25799
25800
25801
25802 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
25803 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
25804 if test "${bash_cv_wcontinued_broken+set}" = set; then
25805   echo $ECHO_N "(cached) $ECHO_C" >&6
25806 else
25807   if test "$cross_compiling" = yes; then
25808   { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
25809 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
25810     bash_cv_wcontinued_broken=no
25811
25812 else
25813   cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819
25820 #include <sys/types.h>
25821 #include <sys/wait.h>
25822 #include <unistd.h>
25823 #include <errno.h>
25824
25825 #ifndef errno
25826 extern int errno;
25827 #endif
25828 main()
25829 {
25830         int     x;
25831
25832         x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
25833         if (x == -1 && errno == EINVAL)
25834                 exit (1);
25835         else
25836                 exit (0);
25837 }
25838
25839 _ACEOF
25840 rm -f conftest$ac_exeext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25842   (eval $ac_link) 2>&5
25843   ac_status=$?
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847   (eval $ac_try) 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); }; }; then
25851   bash_cv_wcontinued_broken=no
25852 else
25853   echo "$as_me: program exited with status $ac_status" >&5
25854 echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25856
25857 ( exit $ac_status )
25858 bash_cv_wcontinued_broken=yes
25859 fi
25860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25861 fi
25862 fi
25863
25864 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
25865 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
25866 if test $bash_cv_wcontinued_broken = yes; then
25867 cat >>confdefs.h <<\_ACEOF
25868 #define WCONTINUED_BROKEN 1
25869 _ACEOF
25870
25871 fi
25872
25873
25874 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
25875 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
25876 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 #include <sys/types.h>
25886 int
25887 main ()
25888 {
25889 speed_t x;
25890   ;
25891   return 0;
25892 }
25893 _ACEOF
25894 rm -f conftest.$ac_objext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25896   (eval $ac_compile) 2>conftest.er1
25897   ac_status=$?
25898   grep -v '^ *+' conftest.er1 >conftest.err
25899   rm -f conftest.er1
25900   cat conftest.err >&5
25901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); } &&
25903          { ac_try='test -z "$ac_c_werror_flag"
25904                          || test ! -s conftest.err'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; } &&
25910          { ac_try='test -s conftest.$ac_objext'
25911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912   (eval $ac_try) 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); }; }; then
25916   bash_cv_speed_t_in_sys_types=yes
25917 else
25918   echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921 bash_cv_speed_t_in_sys_types=no
25922 fi
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25924 fi
25925
25926 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
25927 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
25928 if test $bash_cv_speed_t_in_sys_types = yes; then
25929 cat >>confdefs.h <<\_ACEOF
25930 #define SPEED_T_IN_SYS_TYPES 1
25931 _ACEOF
25932
25933 fi
25934
25935 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
25936 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
25937 if test "${bash_cv_getpw_declared+set}" = set; then
25938   echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940   cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h.  */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h.  */
25946
25947 #include <sys/types.h>
25948 #ifdef HAVE_UNISTD_H
25949 #  include <unistd.h>
25950 #endif
25951 #include <pwd.h>
25952
25953 _ACEOF
25954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25955   $EGREP "getpwuid" >/dev/null 2>&1; then
25956   bash_cv_getpw_declared=yes
25957 else
25958   bash_cv_getpw_declared=no
25959 fi
25960 rm -f conftest*
25961
25962 fi
25963
25964 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
25965 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
25966 if test $bash_cv_getpw_declared = yes; then
25967 cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_GETPW_DECLS 1
25969 _ACEOF
25970
25971 fi
25972
25973 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
25974 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
25975 if test "${bash_cv_unusable_rtsigs+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978   if test "$cross_compiling" = yes; then
25979   { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
25980 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
25981      bash_cv_unusable_rtsigs=yes
25982
25983 else
25984   cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990
25991 #include <sys/types.h>
25992 #include <signal.h>
25993
25994 #ifndef NSIG
25995 #  define NSIG 64
25996 #endif
25997
25998 main ()
25999 {
26000   int n_sigs = 2 * NSIG;
26001 #ifdef SIGRTMIN
26002   int rtmin = SIGRTMIN;
26003 #else
26004   int rtmin = 0;
26005 #endif
26006
26007   exit(rtmin < n_sigs);
26008 }
26009 _ACEOF
26010 rm -f conftest$ac_exeext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26012   (eval $ac_link) 2>&5
26013   ac_status=$?
26014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017   (eval $ac_try) 2>&5
26018   ac_status=$?
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); }; }; then
26021   bash_cv_unusable_rtsigs=yes
26022 else
26023   echo "$as_me: program exited with status $ac_status" >&5
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027 ( exit $ac_status )
26028 bash_cv_unusable_rtsigs=no
26029 fi
26030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26031 fi
26032 fi
26033
26034 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
26035 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
26036 if test $bash_cv_unusable_rtsigs = yes; then
26037 cat >>confdefs.h <<\_ACEOF
26038 #define UNUSABLE_RT_SIGNALS 1
26039 _ACEOF
26040
26041 fi
26042
26043
26044
26045
26046
26047 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
26048   SIGLIST_O=siglist.o
26049 else
26050   SIGLIST_O=
26051 fi
26052
26053
26054
26055 case "$host_os" in
26056 hpux*)  echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
26057 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26058 if test "${bash_cv_kernel_rlimit+set}" = set; then
26059   echo $ECHO_N "(cached) $ECHO_C" >&6
26060 else
26061   cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h.  */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h.  */
26067
26068 #include <sys/types.h>
26069 #include <sys/resource.h>
26070
26071 int
26072 main ()
26073 {
26074
26075   int f;
26076   f = RLIMIT_DATA;
26077
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26084   (eval $ac_compile) 2>conftest.er1
26085   ac_status=$?
26086   grep -v '^ *+' conftest.er1 >conftest.err
26087   rm -f conftest.er1
26088   cat conftest.err >&5
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); } &&
26091          { ac_try='test -z "$ac_c_werror_flag"
26092                          || test ! -s conftest.err'
26093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094   (eval $ac_try) 2>&5
26095   ac_status=$?
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); }; } &&
26098          { ac_try='test -s conftest.$ac_objext'
26099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100   (eval $ac_try) 2>&5
26101   ac_status=$?
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); }; }; then
26104   bash_cv_kernel_rlimit=no
26105 else
26106   echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115
26116 #include <sys/types.h>
26117 #define _KERNEL
26118 #include <sys/resource.h>
26119 #undef _KERNEL
26120
26121 int
26122 main ()
26123 {
26124
26125         int f;
26126         f = RLIMIT_DATA;
26127
26128   ;
26129   return 0;
26130 }
26131 _ACEOF
26132 rm -f conftest.$ac_objext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26134   (eval $ac_compile) 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } &&
26141          { ac_try='test -z "$ac_c_werror_flag"
26142                          || test ! -s conftest.err'
26143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144   (eval $ac_try) 2>&5
26145   ac_status=$?
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); }; } &&
26148          { ac_try='test -s conftest.$ac_objext'
26149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150   (eval $ac_try) 2>&5
26151   ac_status=$?
26152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153   (exit $ac_status); }; }; then
26154   bash_cv_kernel_rlimit=yes
26155 else
26156   echo "$as_me: failed program was:" >&5
26157 sed 's/^/| /' conftest.$ac_ext >&5
26158
26159 bash_cv_kernel_rlimit=no
26160 fi
26161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26162
26163 fi
26164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26165 fi
26166
26167 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
26168 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
26169 if test $bash_cv_kernel_rlimit = yes; then
26170 cat >>confdefs.h <<\_ACEOF
26171 #define RLIMIT_NEEDS_KERNEL 1
26172 _ACEOF
26173
26174 fi
26175  ;;
26176 esac
26177
26178 if test "$opt_readline" = yes; then
26179 case "$host_os" in
26180 aix*)   prefer_curses=yes ;;
26181 esac
26182
26183 if test "X$bash_cv_termcap_lib" = "X"; then
26184 _bash_needmsg=yes
26185 else
26186 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26187 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26188 _bash_needmsg=
26189 fi
26190 if test "${bash_cv_termcap_lib+set}" = set; then
26191   echo $ECHO_N "(cached) $ECHO_C" >&6
26192 else
26193   echo "$as_me:$LINENO: checking for tgetent" >&5
26194 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26195 if test "${ac_cv_func_tgetent+set}" = set; then
26196   echo $ECHO_N "(cached) $ECHO_C" >&6
26197 else
26198   cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h.  */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h.  */
26204 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26206 #define tgetent innocuous_tgetent
26207
26208 /* System header to define __stub macros and hopefully few prototypes,
26209     which can conflict with char tgetent (); below.
26210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26211     <limits.h> exists even on freestanding compilers.  */
26212
26213 #ifdef __STDC__
26214 # include <limits.h>
26215 #else
26216 # include <assert.h>
26217 #endif
26218
26219 #undef tgetent
26220
26221 /* Override any gcc2 internal prototype to avoid an error.  */
26222 #ifdef __cplusplus
26223 extern "C"
26224 {
26225 #endif
26226 /* We use char because int might match the return type of a gcc2
26227    builtin and then its argument prototype would still apply.  */
26228 char tgetent ();
26229 /* The GNU C library defines this for functions which it implements
26230     to always fail with ENOSYS.  Some functions are actually named
26231     something starting with __ and the normal name is an alias.  */
26232 #if defined (__stub_tgetent) || defined (__stub___tgetent)
26233 choke me
26234 #else
26235 char (*f) () = tgetent;
26236 #endif
26237 #ifdef __cplusplus
26238 }
26239 #endif
26240
26241 int
26242 main ()
26243 {
26244 return f != tgetent;
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 rm -f conftest.$ac_objext conftest$ac_exeext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26251   (eval $ac_link) 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } &&
26258          { ac_try='test -z "$ac_c_werror_flag"
26259                          || test ! -s conftest.err'
26260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261   (eval $ac_try) 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; } &&
26265          { ac_try='test -s conftest$ac_exeext'
26266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267   (eval $ac_try) 2>&5
26268   ac_status=$?
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); }; }; then
26271   ac_cv_func_tgetent=yes
26272 else
26273   echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26275
26276 ac_cv_func_tgetent=no
26277 fi
26278 rm -f conftest.err conftest.$ac_objext \
26279       conftest$ac_exeext conftest.$ac_ext
26280 fi
26281 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26282 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26283 if test $ac_cv_func_tgetent = yes; then
26284   bash_cv_termcap_lib=libc
26285 else
26286   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26287 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26288 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26289   echo $ECHO_N "(cached) $ECHO_C" >&6
26290 else
26291   ac_check_lib_save_LIBS=$LIBS
26292 LIBS="-ltermcap  $LIBS"
26293 cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h.  */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h.  */
26299
26300 /* Override any gcc2 internal prototype to avoid an error.  */
26301 #ifdef __cplusplus
26302 extern "C"
26303 #endif
26304 /* We use char because int might match the return type of a gcc2
26305    builtin and then its argument prototype would still apply.  */
26306 char tgetent ();
26307 int
26308 main ()
26309 {
26310 tgetent ();
26311   ;
26312   return 0;
26313 }
26314 _ACEOF
26315 rm -f conftest.$ac_objext conftest$ac_exeext
26316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26317   (eval $ac_link) 2>conftest.er1
26318   ac_status=$?
26319   grep -v '^ *+' conftest.er1 >conftest.err
26320   rm -f conftest.er1
26321   cat conftest.err >&5
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); } &&
26324          { ac_try='test -z "$ac_c_werror_flag"
26325                          || test ! -s conftest.err'
26326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327   (eval $ac_try) 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); }; } &&
26331          { ac_try='test -s conftest$ac_exeext'
26332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333   (eval $ac_try) 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; }; then
26337   ac_cv_lib_termcap_tgetent=yes
26338 else
26339   echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342 ac_cv_lib_termcap_tgetent=no
26343 fi
26344 rm -f conftest.err conftest.$ac_objext \
26345       conftest$ac_exeext conftest.$ac_ext
26346 LIBS=$ac_check_lib_save_LIBS
26347 fi
26348 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26349 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26350 if test $ac_cv_lib_termcap_tgetent = yes; then
26351   bash_cv_termcap_lib=libtermcap
26352 else
26353   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26354 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26355 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26356   echo $ECHO_N "(cached) $ECHO_C" >&6
26357 else
26358   ac_check_lib_save_LIBS=$LIBS
26359 LIBS="-ltinfo  $LIBS"
26360 cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366
26367 /* Override any gcc2 internal prototype to avoid an error.  */
26368 #ifdef __cplusplus
26369 extern "C"
26370 #endif
26371 /* We use char because int might match the return type of a gcc2
26372    builtin and then its argument prototype would still apply.  */
26373 char tgetent ();
26374 int
26375 main ()
26376 {
26377 tgetent ();
26378   ;
26379   return 0;
26380 }
26381 _ACEOF
26382 rm -f conftest.$ac_objext conftest$ac_exeext
26383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26384   (eval $ac_link) 2>conftest.er1
26385   ac_status=$?
26386   grep -v '^ *+' conftest.er1 >conftest.err
26387   rm -f conftest.er1
26388   cat conftest.err >&5
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); } &&
26391          { ac_try='test -z "$ac_c_werror_flag"
26392                          || test ! -s conftest.err'
26393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394   (eval $ac_try) 2>&5
26395   ac_status=$?
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); }; } &&
26398          { ac_try='test -s conftest$ac_exeext'
26399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400   (eval $ac_try) 2>&5
26401   ac_status=$?
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); }; }; then
26404   ac_cv_lib_tinfo_tgetent=yes
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409 ac_cv_lib_tinfo_tgetent=no
26410 fi
26411 rm -f conftest.err conftest.$ac_objext \
26412       conftest$ac_exeext conftest.$ac_ext
26413 LIBS=$ac_check_lib_save_LIBS
26414 fi
26415 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26416 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26417 if test $ac_cv_lib_tinfo_tgetent = yes; then
26418   bash_cv_termcap_lib=libtinfo
26419 else
26420   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
26421 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26422 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26423   echo $ECHO_N "(cached) $ECHO_C" >&6
26424 else
26425   ac_check_lib_save_LIBS=$LIBS
26426 LIBS="-lcurses  $LIBS"
26427 cat >conftest.$ac_ext <<_ACEOF
26428 /* confdefs.h.  */
26429 _ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h.  */
26433
26434 /* Override any gcc2 internal prototype to avoid an error.  */
26435 #ifdef __cplusplus
26436 extern "C"
26437 #endif
26438 /* We use char because int might match the return type of a gcc2
26439    builtin and then its argument prototype would still apply.  */
26440 char tgetent ();
26441 int
26442 main ()
26443 {
26444 tgetent ();
26445   ;
26446   return 0;
26447 }
26448 _ACEOF
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26451   (eval $ac_link) 2>conftest.er1
26452   ac_status=$?
26453   grep -v '^ *+' conftest.er1 >conftest.err
26454   rm -f conftest.er1
26455   cat conftest.err >&5
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); } &&
26458          { ac_try='test -z "$ac_c_werror_flag"
26459                          || test ! -s conftest.err'
26460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461   (eval $ac_try) 2>&5
26462   ac_status=$?
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); }; } &&
26465          { ac_try='test -s conftest$ac_exeext'
26466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467   (eval $ac_try) 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); }; }; then
26471   ac_cv_lib_curses_tgetent=yes
26472 else
26473   echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26475
26476 ac_cv_lib_curses_tgetent=no
26477 fi
26478 rm -f conftest.err conftest.$ac_objext \
26479       conftest$ac_exeext conftest.$ac_ext
26480 LIBS=$ac_check_lib_save_LIBS
26481 fi
26482 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
26483 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
26484 if test $ac_cv_lib_curses_tgetent = yes; then
26485   bash_cv_termcap_lib=libcurses
26486 else
26487   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
26488 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
26489 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
26490   echo $ECHO_N "(cached) $ECHO_C" >&6
26491 else
26492   ac_check_lib_save_LIBS=$LIBS
26493 LIBS="-lncurses  $LIBS"
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500
26501 /* Override any gcc2 internal prototype to avoid an error.  */
26502 #ifdef __cplusplus
26503 extern "C"
26504 #endif
26505 /* We use char because int might match the return type of a gcc2
26506    builtin and then its argument prototype would still apply.  */
26507 char tgetent ();
26508 int
26509 main ()
26510 {
26511 tgetent ();
26512   ;
26513   return 0;
26514 }
26515 _ACEOF
26516 rm -f conftest.$ac_objext conftest$ac_exeext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26518   (eval $ac_link) 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } &&
26525          { ac_try='test -z "$ac_c_werror_flag"
26526                          || test ! -s conftest.err'
26527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528   (eval $ac_try) 2>&5
26529   ac_status=$?
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); }; } &&
26532          { ac_try='test -s conftest$ac_exeext'
26533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534   (eval $ac_try) 2>&5
26535   ac_status=$?
26536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); }; }; then
26538   ac_cv_lib_ncurses_tgetent=yes
26539 else
26540   echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26542
26543 ac_cv_lib_ncurses_tgetent=no
26544 fi
26545 rm -f conftest.err conftest.$ac_objext \
26546       conftest$ac_exeext conftest.$ac_ext
26547 LIBS=$ac_check_lib_save_LIBS
26548 fi
26549 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
26550 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
26551 if test $ac_cv_lib_ncurses_tgetent = yes; then
26552   bash_cv_termcap_lib=libncurses
26553 else
26554   bash_cv_termcap_lib=gnutermcap
26555 fi
26556
26557 fi
26558
26559 fi
26560
26561 fi
26562
26563 fi
26564
26565 fi
26566
26567 if test "X$_bash_needmsg" = "Xyes"; then
26568 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26569 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26570 fi
26571 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
26572 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
26573 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
26574 LDFLAGS="$LDFLAGS -L./lib/termcap"
26575 TERMCAP_LIB="./lib/termcap/libtermcap.a"
26576 TERMCAP_DEP="./lib/termcap/libtermcap.a"
26577 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
26578 TERMCAP_LIB=-ltermcap
26579 TERMCAP_DEP=
26580 elif test $bash_cv_termcap_lib = libtinfo; then
26581 TERMCAP_LIB=-ltinfo
26582 TERMCAP_DEP=
26583 elif test $bash_cv_termcap_lib = libncurses; then
26584 TERMCAP_LIB=-lncurses
26585 TERMCAP_DEP=
26586 elif test $bash_cv_termcap_lib = libc; then
26587 TERMCAP_LIB=
26588 TERMCAP_DEP=
26589 else
26590 TERMCAP_LIB=-lcurses
26591 TERMCAP_DEP=
26592 fi
26593
26594 fi
26595
26596
26597
26598 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
26599 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
26600 if test "${bash_cv_dev_fd+set}" = set; then
26601   echo $ECHO_N "(cached) $ECHO_C" >&6
26602 else
26603   if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
26604 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
26605    exec 3<&0
26606    if test -r /dev/fd/3; then
26607      bash_cv_dev_fd=standard
26608    else
26609      bash_cv_dev_fd=absent
26610    fi
26611    exec 3<&-
26612  elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
26613    bash_cv_dev_fd=whacky
26614  else
26615    bash_cv_dev_fd=absent
26616  fi
26617
26618 fi
26619
26620 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
26621 echo "${ECHO_T}$bash_cv_dev_fd" >&6
26622 if test $bash_cv_dev_fd = "standard"; then
26623   cat >>confdefs.h <<\_ACEOF
26624 #define HAVE_DEV_FD 1
26625 _ACEOF
26626
26627   cat >>confdefs.h <<\_ACEOF
26628 #define DEV_FD_PREFIX "/dev/fd/"
26629 _ACEOF
26630
26631 elif test $bash_cv_dev_fd = "whacky"; then
26632   cat >>confdefs.h <<\_ACEOF
26633 #define HAVE_DEV_FD 1
26634 _ACEOF
26635
26636   cat >>confdefs.h <<\_ACEOF
26637 #define DEV_FD_PREFIX "/proc/self/fd/"
26638 _ACEOF
26639
26640 fi
26641
26642 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
26643 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
26644 if test "${bash_cv_dev_stdin+set}" = set; then
26645   echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647   if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
26648    bash_cv_dev_stdin=present
26649  elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
26650    bash_cv_dev_stdin=present
26651  else
26652    bash_cv_dev_stdin=absent
26653  fi
26654
26655 fi
26656
26657 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
26658 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
26659 if test $bash_cv_dev_stdin = "present"; then
26660   cat >>confdefs.h <<\_ACEOF
26661 #define HAVE_DEV_STDIN 1
26662 _ACEOF
26663
26664 fi
26665
26666 echo "$as_me:$LINENO: checking for default mail directory" >&5
26667 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
26668 if test "${bash_cv_mail_dir+set}" = set; then
26669   echo $ECHO_N "(cached) $ECHO_C" >&6
26670 else
26671   if test -d /var/mail; then
26672    bash_cv_mail_dir=/var/mail
26673  elif test -d /var/spool/mail; then
26674    bash_cv_mail_dir=/var/spool/mail
26675  elif test -d /usr/mail; then
26676    bash_cv_mail_dir=/usr/mail
26677  elif test -d /usr/spool/mail; then
26678    bash_cv_mail_dir=/usr/spool/mail
26679  else
26680    bash_cv_mail_dir=unknown
26681  fi
26682
26683 fi
26684
26685 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
26686 echo "${ECHO_T}$bash_cv_mail_dir" >&6
26687 cat >>confdefs.h <<_ACEOF
26688 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
26689 _ACEOF
26690
26691
26692
26693 if test "$bash_cv_job_control_missing" = missing; then
26694         opt_job_control=no
26695 fi
26696
26697 if test "$opt_job_control" = yes; then
26698 cat >>confdefs.h <<\_ACEOF
26699 #define JOB_CONTROL 1
26700 _ACEOF
26701
26702 JOBS_O=jobs.o
26703 else
26704 JOBS_O=nojobs.o
26705 fi
26706
26707
26708
26709
26710 LOCAL_DEFS=-DSHELL
26711
26712
26713 case "${host_os}" in
26714 sysv4.2*)       cat >>confdefs.h <<\_ACEOF
26715 #define SVR4_2 1
26716 _ACEOF
26717
26718                 cat >>confdefs.h <<\_ACEOF
26719 #define SVR4 1
26720 _ACEOF
26721  ;;
26722 sysv4*)         cat >>confdefs.h <<\_ACEOF
26723 #define SVR4 1
26724 _ACEOF
26725  ;;
26726 sysv5*)         cat >>confdefs.h <<\_ACEOF
26727 #define SVR5 1
26728 _ACEOF
26729  ;;
26730 hpux9*)         LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
26731 hpux*)          LOCAL_CFLAGS=-DHPUX ;;
26732 dgux*)          LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
26733 isc*)           LOCAL_CFLAGS=-Disc386 ;;
26734 rhapsody*)      LOCAL_CFLAGS=-DRHAPSODY ;;
26735 darwin*)        LOCAL_CFLAGS=-DMACOSX ;;
26736 sco3.2v5*)      LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
26737 sco3.2v4*)      LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
26738 sco3.2*)        LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
26739 sunos4*)        LOCAL_CFLAGS=-DSunOS4 ;;
26740 solaris2.5*)    LOCAL_CFLAGS=-DSunOS5 ;;
26741 lynxos*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26742 linux*)         LOCAL_LDFLAGS=-rdynamic          # allow dynamic loading
26743                 case "`uname -r`" in
26744                 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
26745 #define PGRP_PIPE 1
26746 _ACEOF
26747  ;;
26748                 esac ;;
26749 *qnx6*)         LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
26750 *qnx*)          LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
26751 powerux*)       LOCAL_LIBS="-lgen" ;;
26752 cygwin*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26753 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
26754 esac
26755
26756 case "${host_os}-${CC}" in
26757 aix4.2*-*gcc*)  LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
26758 aix4.2*)        LOCAL_LDFLAGS="-bexpall -brtl" ;;
26759 bsdi4*-*gcc*)   LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like Linux
26760 esac
26761
26762 case "${host_os}" in
26763 freebsd[3-9]*)
26764                 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
26765                         LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26766                 fi ;;
26767 freebsdelf*)    LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
26768 dragonfly*)     LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
26769 esac
26770
26771 case "$host_cpu" in
26772 *cray*)         LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
26773 esac
26774
26775 case "$host_cpu-$host_os" in
26776 ibmrt-*bsd4*)   LOCAL_CFLAGS="-ma -U__STDC__" ;;
26777 esac
26778
26779 case "$host_cpu-$host_vendor-$host_os" in
26780 m88k-motorola-sysv3)    LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
26781 mips-pyramid-sysv4)     LOCAL_CFLAGS=-Xa ;;
26782 esac
26783
26784 #
26785 # Shared object configuration section.  These values are generated by
26786 # ${srcdir}/support/shobj-conf
26787 #
26788 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
26789 then
26790         echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
26791 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
26792         eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
26793
26794
26795
26796
26797
26798
26799
26800         echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
26801 echo "${ECHO_T}$SHOBJ_STATUS" >&6
26802 fi
26803
26804 # try to create a directory tree if the source is elsewhere
26805 # this should be packaged into a script accessible via ${srcdir}/support
26806 case "$srcdir" in
26807 .)      ;;
26808 *)      for d in doc tests support lib examples; do     # dirs
26809                 test -d $d || mkdir $d
26810         done
26811         for ld in readline glob tilde malloc sh termcap; do     # libdirs
26812                 test -d lib/$ld || mkdir lib/$ld
26813         done
26814         test -d examples/loadables || mkdir examples/loadables  # loadable builtins
26815         test -d examples/loadables/perl || mkdir examples/loadables/perl
26816         ;;
26817 esac
26818
26819 BUILD_DIR=`pwd`
26820 case "$BUILD_DIR" in
26821 *\ *)   BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
26822 *)      ;;
26823 esac
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848 #AC_SUBST(ALLOCA_SOURCE)
26849 #AC_SUBST(ALLOCA_OBJECT)
26850
26851                                                                                                                                                       ac_config_files="$ac_config_files Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile lib/intl/Makefile lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile lib/tilde/Makefile doc/Makefile support/Makefile po/Makefile.in examples/loadables/Makefile examples/loadables/perl/Makefile pathnames.h"
26852           ac_config_commands="$ac_config_commands default"
26853 cat >confcache <<\_ACEOF
26854 # This file is a shell script that caches the results of configure
26855 # tests run on this system so they can be shared between configure
26856 # scripts and configure runs, see configure's option --config-cache.
26857 # It is not useful on other systems.  If it contains results you don't
26858 # want to keep, you may remove or edit it.
26859 #
26860 # config.status only pays attention to the cache file if you give it
26861 # the --recheck option to rerun configure.
26862 #
26863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26865 # following values.
26866
26867 _ACEOF
26868
26869 # The following way of writing the cache mishandles newlines in values,
26870 # but we know of no workaround that is simple, portable, and efficient.
26871 # So, don't put newlines in cache variables' values.
26872 # Ultrix sh set writes to stderr and can't be redirected directly,
26873 # and sets the high bit in the cache file unless we assign to the vars.
26874 {
26875   (set) 2>&1 |
26876     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26877     *ac_space=\ *)
26878       # `set' does not quote correctly, so add quotes (double-quote
26879       # substitution turns \\\\ into \\, and sed turns \\ into \).
26880       sed -n \
26881         "s/'/'\\\\''/g;
26882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26883       ;;
26884     *)
26885       # `set' quotes correctly as required by POSIX, so do not add quotes.
26886       sed -n \
26887         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26888       ;;
26889     esac;
26890 } |
26891   sed '
26892      t clear
26893      : clear
26894      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26895      t end
26896      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26897      : end' >>confcache
26898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26899   if test -w $cache_file; then
26900     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26901     cat confcache >$cache_file
26902   else
26903     echo "not updating unwritable cache $cache_file"
26904   fi
26905 fi
26906 rm -f confcache
26907
26908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26909 # Let make expand exec_prefix.
26910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26911
26912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26914 # trailing colons and then remove the whole line if VPATH becomes empty
26915 # (actually we leave an empty line to preserve line numbers).
26916 if test "x$srcdir" = x.; then
26917   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26918 s/:*\$(srcdir):*/:/;
26919 s/:*\${srcdir}:*/:/;
26920 s/:*@srcdir@:*/:/;
26921 s/^\([^=]*=[     ]*\):*/\1/;
26922 s/:*$//;
26923 s/^[^=]*=[       ]*$//;
26924 }'
26925 fi
26926
26927 DEFS=-DHAVE_CONFIG_H
26928
26929 ac_libobjs=
26930 ac_ltlibobjs=
26931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26932   # 1. Remove the extension, and $U if already installed.
26933   ac_i=`echo "$ac_i" |
26934          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26935   # 2. Add them.
26936   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26937   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26938 done
26939 LIBOBJS=$ac_libobjs
26940
26941 LTLIBOBJS=$ac_ltlibobjs
26942
26943
26944
26945 : ${CONFIG_STATUS=./config.status}
26946 ac_clean_files_save=$ac_clean_files
26947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26950 cat >$CONFIG_STATUS <<_ACEOF
26951 #! $SHELL
26952 # Generated by $as_me.
26953 # Run this file to recreate the current configuration.
26954 # Compiler output produced by configure, useful for debugging
26955 # configure, is in config.log if it exists.
26956
26957 debug=false
26958 ac_cs_recheck=false
26959 ac_cs_silent=false
26960 SHELL=\${CONFIG_SHELL-$SHELL}
26961 _ACEOF
26962
26963 cat >>$CONFIG_STATUS <<\_ACEOF
26964 ## --------------------- ##
26965 ## M4sh Initialization.  ##
26966 ## --------------------- ##
26967
26968 # Be Bourne compatible
26969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26970   emulate sh
26971   NULLCMD=:
26972   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26973   # is contrary to our usage.  Disable this feature.
26974   alias -g '${1+"$@"}'='"$@"'
26975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26976   set -o posix
26977 fi
26978 DUALCASE=1; export DUALCASE # for MKS sh
26979
26980 # Support unset when possible.
26981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26982   as_unset=unset
26983 else
26984   as_unset=false
26985 fi
26986
26987
26988 # Work around bugs in pre-3.0 UWIN ksh.
26989 $as_unset ENV MAIL MAILPATH
26990 PS1='$ '
26991 PS2='> '
26992 PS4='+ '
26993
26994 # NLS nuisances.
26995 for as_var in \
26996   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26997   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26998   LC_TELEPHONE LC_TIME
26999 do
27000   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27001     eval $as_var=C; export $as_var
27002   else
27003     $as_unset $as_var
27004   fi
27005 done
27006
27007 # Required to use basename.
27008 if expr a : '\(a\)' >/dev/null 2>&1; then
27009   as_expr=expr
27010 else
27011   as_expr=false
27012 fi
27013
27014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27015   as_basename=basename
27016 else
27017   as_basename=false
27018 fi
27019
27020
27021 # Name of the executable.
27022 as_me=`$as_basename "$0" ||
27023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27024          X"$0" : 'X\(//\)$' \| \
27025          X"$0" : 'X\(/\)$' \| \
27026          .     : '\(.\)' 2>/dev/null ||
27027 echo X/"$0" |
27028     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27029           /^X\/\(\/\/\)$/{ s//\1/; q; }
27030           /^X\/\(\/\).*/{ s//\1/; q; }
27031           s/.*/./; q'`
27032
27033
27034 # PATH needs CR, and LINENO needs CR and PATH.
27035 # Avoid depending upon Character Ranges.
27036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27039 as_cr_digits='0123456789'
27040 as_cr_alnum=$as_cr_Letters$as_cr_digits
27041
27042 # The user is always right.
27043 if test "${PATH_SEPARATOR+set}" != set; then
27044   echo "#! /bin/sh" >conf$$.sh
27045   echo  "exit 0"   >>conf$$.sh
27046   chmod +x conf$$.sh
27047   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27048     PATH_SEPARATOR=';'
27049   else
27050     PATH_SEPARATOR=:
27051   fi
27052   rm -f conf$$.sh
27053 fi
27054
27055
27056   as_lineno_1=$LINENO
27057   as_lineno_2=$LINENO
27058   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27059   test "x$as_lineno_1" != "x$as_lineno_2" &&
27060   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27061   # Find who we are.  Look in the path if we contain no path at all
27062   # relative or not.
27063   case $0 in
27064     *[\\/]* ) as_myself=$0 ;;
27065     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27066 for as_dir in $PATH
27067 do
27068   IFS=$as_save_IFS
27069   test -z "$as_dir" && as_dir=.
27070   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27071 done
27072
27073        ;;
27074   esac
27075   # We did not find ourselves, most probably we were run as `sh COMMAND'
27076   # in which case we are not to be found in the path.
27077   if test "x$as_myself" = x; then
27078     as_myself=$0
27079   fi
27080   if test ! -f "$as_myself"; then
27081     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27083    { (exit 1); exit 1; }; }
27084   fi
27085   case $CONFIG_SHELL in
27086   '')
27087     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27089 do
27090   IFS=$as_save_IFS
27091   test -z "$as_dir" && as_dir=.
27092   for as_base in sh bash ksh sh5; do
27093          case $as_dir in
27094          /*)
27095            if ("$as_dir/$as_base" -c '
27096   as_lineno_1=$LINENO
27097   as_lineno_2=$LINENO
27098   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27099   test "x$as_lineno_1" != "x$as_lineno_2" &&
27100   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27101              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27102              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27103              CONFIG_SHELL=$as_dir/$as_base
27104              export CONFIG_SHELL
27105              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27106            fi;;
27107          esac
27108        done
27109 done
27110 ;;
27111   esac
27112
27113   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27114   # uniformly replaced by the line number.  The first 'sed' inserts a
27115   # line-number line before each line; the second 'sed' does the real
27116   # work.  The second script uses 'N' to pair each line-number line
27117   # with the numbered line, and appends trailing '-' during
27118   # substitution so that $LINENO is not a special case at line end.
27119   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27120   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27121   sed '=' <$as_myself |
27122     sed '
27123       N
27124       s,$,-,
27125       : loop
27126       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27127       t loop
27128       s,-$,,
27129       s,^['$as_cr_digits']*\n,,
27130     ' >$as_me.lineno &&
27131   chmod +x $as_me.lineno ||
27132     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27134    { (exit 1); exit 1; }; }
27135
27136   # Don't try to exec as it changes $[0], causing all sort of problems
27137   # (the dirname of $[0] is not the place where we might find the
27138   # original and so on.  Autoconf is especially sensible to this).
27139   . ./$as_me.lineno
27140   # Exit status is that of the last command.
27141   exit
27142 }
27143
27144
27145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27146   *c*,-n*) ECHO_N= ECHO_C='
27147 ' ECHO_T='      ' ;;
27148   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27149   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27150 esac
27151
27152 if expr a : '\(a\)' >/dev/null 2>&1; then
27153   as_expr=expr
27154 else
27155   as_expr=false
27156 fi
27157
27158 rm -f conf$$ conf$$.exe conf$$.file
27159 echo >conf$$.file
27160 if ln -s conf$$.file conf$$ 2>/dev/null; then
27161   # We could just check for DJGPP; but this test a) works b) is more generic
27162   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27163   if test -f conf$$.exe; then
27164     # Don't use ln at all; we don't have any links
27165     as_ln_s='cp -p'
27166   else
27167     as_ln_s='ln -s'
27168   fi
27169 elif ln conf$$.file conf$$ 2>/dev/null; then
27170   as_ln_s=ln
27171 else
27172   as_ln_s='cp -p'
27173 fi
27174 rm -f conf$$ conf$$.exe conf$$.file
27175
27176 if mkdir -p . 2>/dev/null; then
27177   as_mkdir_p=:
27178 else
27179   test -d ./-p && rmdir ./-p
27180   as_mkdir_p=false
27181 fi
27182
27183 as_executable_p="test -f"
27184
27185 # Sed expression to map a string onto a valid CPP name.
27186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27187
27188 # Sed expression to map a string onto a valid variable name.
27189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27190
27191
27192 # IFS
27193 # We need space, tab and new line, in precisely that order.
27194 as_nl='
27195 '
27196 IFS="   $as_nl"
27197
27198 # CDPATH.
27199 $as_unset CDPATH
27200
27201 exec 6>&1
27202
27203 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27204 # report actual input values of CONFIG_FILES etc. instead of their
27205 # values after options handling.  Logging --version etc. is OK.
27206 exec 5>>config.log
27207 {
27208   echo
27209   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27210 ## Running $as_me. ##
27211 _ASBOX
27212 } >&5
27213 cat >&5 <<_CSEOF
27214
27215 This file was extended by bash $as_me 3.1-rc2, which was
27216 generated by GNU Autoconf 2.59.  Invocation command line was
27217
27218   CONFIG_FILES    = $CONFIG_FILES
27219   CONFIG_HEADERS  = $CONFIG_HEADERS
27220   CONFIG_LINKS    = $CONFIG_LINKS
27221   CONFIG_COMMANDS = $CONFIG_COMMANDS
27222   $ $0 $@
27223
27224 _CSEOF
27225 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27226 echo >&5
27227 _ACEOF
27228
27229 # Files that config.status was made for.
27230 if test -n "$ac_config_files"; then
27231   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27232 fi
27233
27234 if test -n "$ac_config_headers"; then
27235   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27236 fi
27237
27238 if test -n "$ac_config_links"; then
27239   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27240 fi
27241
27242 if test -n "$ac_config_commands"; then
27243   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27244 fi
27245
27246 cat >>$CONFIG_STATUS <<\_ACEOF
27247
27248 ac_cs_usage="\
27249 \`$as_me' instantiates files from templates according to the
27250 current configuration.
27251
27252 Usage: $0 [OPTIONS] [FILE]...
27253
27254   -h, --help       print this help, then exit
27255   -V, --version    print version number, then exit
27256   -q, --quiet      do not print progress messages
27257   -d, --debug      don't remove temporary files
27258       --recheck    update $as_me by reconfiguring in the same conditions
27259   --file=FILE[:TEMPLATE]
27260                    instantiate the configuration file FILE
27261   --header=FILE[:TEMPLATE]
27262                    instantiate the configuration header FILE
27263
27264 Configuration files:
27265 $config_files
27266
27267 Configuration headers:
27268 $config_headers
27269
27270 Configuration commands:
27271 $config_commands
27272
27273 Report bugs to <bug-autoconf@gnu.org>."
27274 _ACEOF
27275
27276 cat >>$CONFIG_STATUS <<_ACEOF
27277 ac_cs_version="\\
27278 bash config.status 3.1-rc2
27279 configured by $0, generated by GNU Autoconf 2.59,
27280   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27281
27282 Copyright (C) 2003 Free Software Foundation, Inc.
27283 This config.status script is free software; the Free Software Foundation
27284 gives unlimited permission to copy, distribute and modify it."
27285 srcdir=$srcdir
27286 INSTALL="$INSTALL"
27287 _ACEOF
27288
27289 cat >>$CONFIG_STATUS <<\_ACEOF
27290 # If no file are specified by the user, then we need to provide default
27291 # value.  By we need to know if files were specified by the user.
27292 ac_need_defaults=:
27293 while test $# != 0
27294 do
27295   case $1 in
27296   --*=*)
27297     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27298     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27299     ac_shift=:
27300     ;;
27301   -*)
27302     ac_option=$1
27303     ac_optarg=$2
27304     ac_shift=shift
27305     ;;
27306   *) # This is not an option, so the user has probably given explicit
27307      # arguments.
27308      ac_option=$1
27309      ac_need_defaults=false;;
27310   esac
27311
27312   case $ac_option in
27313   # Handling of the options.
27314 _ACEOF
27315 cat >>$CONFIG_STATUS <<\_ACEOF
27316   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27317     ac_cs_recheck=: ;;
27318   --version | --vers* | -V )
27319     echo "$ac_cs_version"; exit 0 ;;
27320   --he | --h)
27321     # Conflict between --help and --header
27322     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27323 Try \`$0 --help' for more information." >&5
27324 echo "$as_me: error: ambiguous option: $1
27325 Try \`$0 --help' for more information." >&2;}
27326    { (exit 1); exit 1; }; };;
27327   --help | --hel | -h )
27328     echo "$ac_cs_usage"; exit 0 ;;
27329   --debug | --d* | -d )
27330     debug=: ;;
27331   --file | --fil | --fi | --f )
27332     $ac_shift
27333     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27334     ac_need_defaults=false;;
27335   --header | --heade | --head | --hea )
27336     $ac_shift
27337     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27338     ac_need_defaults=false;;
27339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27340   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27341     ac_cs_silent=: ;;
27342
27343   # This is an error.
27344   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27345 Try \`$0 --help' for more information." >&5
27346 echo "$as_me: error: unrecognized option: $1
27347 Try \`$0 --help' for more information." >&2;}
27348    { (exit 1); exit 1; }; } ;;
27349
27350   *) ac_config_targets="$ac_config_targets $1" ;;
27351
27352   esac
27353   shift
27354 done
27355
27356 ac_configure_extra_args=
27357
27358 if $ac_cs_silent; then
27359   exec 6>/dev/null
27360   ac_configure_extra_args="$ac_configure_extra_args --silent"
27361 fi
27362
27363 _ACEOF
27364 cat >>$CONFIG_STATUS <<_ACEOF
27365 if \$ac_cs_recheck; then
27366   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27367   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27368 fi
27369
27370 _ACEOF
27371
27372 cat >>$CONFIG_STATUS <<_ACEOF
27373 #
27374 # INIT-COMMANDS section.
27375 #
27376
27377 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27378     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27379     # from automake.
27380     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27381     # Capture the value of LINGUAS because we need it to compute CATALOGS.
27382     LINGUAS="${LINGUAS-%UNSET%}"
27383
27384
27385 _ACEOF
27386
27387
27388
27389 cat >>$CONFIG_STATUS <<\_ACEOF
27390 for ac_config_target in $ac_config_targets
27391 do
27392   case "$ac_config_target" in
27393   # Handling of arguments.
27394   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27395   "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27396   "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27397   "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
27398   "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
27399   "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27400   "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27401   "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27402   "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27403   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27404   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27405   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27406   "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27407   "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
27408   "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
27409   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27410   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27411   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27412   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27414    { (exit 1); exit 1; }; };;
27415   esac
27416 done
27417
27418 # If the user did not use the arguments to specify the items to instantiate,
27419 # then the envvar interface is used.  Set only those that are not.
27420 # We use the long form for the default assignment because of an extremely
27421 # bizarre bug on SunOS 4.1.3.
27422 if $ac_need_defaults; then
27423   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27424   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27425   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27426 fi
27427
27428 # Have a temporary directory for convenience.  Make it in the build tree
27429 # simply because there is no reason to put it here, and in addition,
27430 # creating and moving files from /tmp can sometimes cause problems.
27431 # Create a temporary directory, and hook for its removal unless debugging.
27432 $debug ||
27433 {
27434   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27435   trap '{ (exit 1); exit 1; }' 1 2 13 15
27436 }
27437
27438 # Create a (secure) tmp directory for tmp files.
27439
27440 {
27441   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27442   test -n "$tmp" && test -d "$tmp"
27443 }  ||
27444 {
27445   tmp=./confstat$$-$RANDOM
27446   (umask 077 && mkdir $tmp)
27447 } ||
27448 {
27449    echo "$me: cannot create a temporary directory in ." >&2
27450    { (exit 1); exit 1; }
27451 }
27452
27453 _ACEOF
27454
27455 cat >>$CONFIG_STATUS <<_ACEOF
27456
27457 #
27458 # CONFIG_FILES section.
27459 #
27460
27461 # No need to generate the scripts if there are no CONFIG_FILES.
27462 # This happens for instance when ./config.status config.h
27463 if test -n "\$CONFIG_FILES"; then
27464   # Protect against being on the right side of a sed subst in config.status.
27465   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27466    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27467 s,@SHELL@,$SHELL,;t t
27468 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27469 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27470 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27471 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27472 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27473 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27474 s,@exec_prefix@,$exec_prefix,;t t
27475 s,@prefix@,$prefix,;t t
27476 s,@program_transform_name@,$program_transform_name,;t t
27477 s,@bindir@,$bindir,;t t
27478 s,@sbindir@,$sbindir,;t t
27479 s,@libexecdir@,$libexecdir,;t t
27480 s,@datadir@,$datadir,;t t
27481 s,@sysconfdir@,$sysconfdir,;t t
27482 s,@sharedstatedir@,$sharedstatedir,;t t
27483 s,@localstatedir@,$localstatedir,;t t
27484 s,@libdir@,$libdir,;t t
27485 s,@includedir@,$includedir,;t t
27486 s,@oldincludedir@,$oldincludedir,;t t
27487 s,@infodir@,$infodir,;t t
27488 s,@mandir@,$mandir,;t t
27489 s,@build_alias@,$build_alias,;t t
27490 s,@host_alias@,$host_alias,;t t
27491 s,@target_alias@,$target_alias,;t t
27492 s,@DEFS@,$DEFS,;t t
27493 s,@ECHO_C@,$ECHO_C,;t t
27494 s,@ECHO_N@,$ECHO_N,;t t
27495 s,@ECHO_T@,$ECHO_T,;t t
27496 s,@LIBS@,$LIBS,;t t
27497 s,@build@,$build,;t t
27498 s,@build_cpu@,$build_cpu,;t t
27499 s,@build_vendor@,$build_vendor,;t t
27500 s,@build_os@,$build_os,;t t
27501 s,@host@,$host,;t t
27502 s,@host_cpu@,$host_cpu,;t t
27503 s,@host_vendor@,$host_vendor,;t t
27504 s,@host_os@,$host_os,;t t
27505 s,@EMACS@,$EMACS,;t t
27506 s,@lispdir@,$lispdir,;t t
27507 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
27508 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
27509 s,@PURIFY@,$PURIFY,;t t
27510 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
27511 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
27512 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
27513 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
27514 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
27515 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
27516 s,@htmldir@,$htmldir,;t t
27517 s,@HELPDIR@,$HELPDIR,;t t
27518 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
27519 s,@HELPINSTALL@,$HELPINSTALL,;t t
27520 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
27521 s,@CC@,$CC,;t t
27522 s,@CFLAGS@,$CFLAGS,;t t
27523 s,@LDFLAGS@,$LDFLAGS,;t t
27524 s,@CPPFLAGS@,$CPPFLAGS,;t t
27525 s,@ac_ct_CC@,$ac_ct_CC,;t t
27526 s,@EXEEXT@,$EXEEXT,;t t
27527 s,@OBJEXT@,$OBJEXT,;t t
27528 s,@CPP@,$CPP,;t t
27529 s,@EGREP@,$EGREP,;t t
27530 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
27531 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
27532 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
27533 s,@STATIC_LD@,$STATIC_LD,;t t
27534 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
27535 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
27536 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
27537 s,@RL_VERSION@,$RL_VERSION,;t t
27538 s,@RL_MAJOR@,$RL_MAJOR,;t t
27539 s,@RL_MINOR@,$RL_MINOR,;t t
27540 s,@READLINE_LIB@,$READLINE_LIB,;t t
27541 s,@READLINE_DEP@,$READLINE_DEP,;t t
27542 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
27543 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
27544 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
27545 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
27546 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
27547 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
27548 s,@TILDE_LIB@,$TILDE_LIB,;t t
27549 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27550 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27551 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27552 s,@AR@,$AR,;t t
27553 s,@RANLIB@,$RANLIB,;t t
27554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27555 s,@YACC@,$YACC,;t t
27556 s,@SET_MAKE@,$SET_MAKE,;t t
27557 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
27558 s,@SIZE@,$SIZE,;t t
27559 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27560 s,@USE_NLS@,$USE_NLS,;t t
27561 s,@MSGFMT@,$MSGFMT,;t t
27562 s,@GMSGFMT@,$GMSGFMT,;t t
27563 s,@XGETTEXT@,$XGETTEXT,;t t
27564 s,@MSGMERGE@,$MSGMERGE,;t t
27565 s,@ALLOCA@,$ALLOCA,;t t
27566 s,@GLIBC21@,$GLIBC21,;t t
27567 s,@LIBICONV@,$LIBICONV,;t t
27568 s,@LTLIBICONV@,$LTLIBICONV,;t t
27569 s,@INTLBISON@,$INTLBISON,;t t
27570 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27571 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27572 s,@CATOBJEXT@,$CATOBJEXT,;t t
27573 s,@DATADIRNAME@,$DATADIRNAME,;t t
27574 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27575 s,@GENCAT@,$GENCAT,;t t
27576 s,@INTLOBJS@,$INTLOBJS,;t t
27577 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27578 s,@INTLLIBS@,$INTLLIBS,;t t
27579 s,@LIBINTL@,$LIBINTL,;t t
27580 s,@LTLIBINTL@,$LTLIBINTL,;t t
27581 s,@POSUB@,$POSUB,;t t
27582 s,@LIBOBJS@,$LIBOBJS,;t t
27583 s,@INTL_DEP@,$INTL_DEP,;t t
27584 s,@INTL_INC@,$INTL_INC,;t t
27585 s,@LIBINTL_H@,$LIBINTL_H,;t t
27586 s,@SIGLIST_O@,$SIGLIST_O,;t t
27587 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
27588 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
27589 s,@JOBS_O@,$JOBS_O,;t t
27590 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
27591 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
27592 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
27593 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
27594 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
27595 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
27596 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
27597 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
27598 s,@incdir@,$incdir,;t t
27599 s,@BUILD_DIR@,$BUILD_DIR,;t t
27600 s,@ARFLAGS@,$ARFLAGS,;t t
27601 s,@BASHVERS@,$BASHVERS,;t t
27602 s,@RELSTATUS@,$RELSTATUS,;t t
27603 s,@DEBUG@,$DEBUG,;t t
27604 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
27605 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
27606 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
27607 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27608 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
27609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27610 CEOF
27611
27612 _ACEOF
27613
27614   cat >>$CONFIG_STATUS <<\_ACEOF
27615   # Split the substitutions into bite-sized pieces for seds with
27616   # small command number limits, like on Digital OSF/1 and HP-UX.
27617   ac_max_sed_lines=48
27618   ac_sed_frag=1 # Number of current file.
27619   ac_beg=1 # First line for current file.
27620   ac_end=$ac_max_sed_lines # Line after last line for current file.
27621   ac_more_lines=:
27622   ac_sed_cmds=
27623   while $ac_more_lines; do
27624     if test $ac_beg -gt 1; then
27625       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27626     else
27627       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27628     fi
27629     if test ! -s $tmp/subs.frag; then
27630       ac_more_lines=false
27631     else
27632       # The purpose of the label and of the branching condition is to
27633       # speed up the sed processing (if there are no `@' at all, there
27634       # is no need to browse any of the substitutions).
27635       # These are the two extra sed commands mentioned above.
27636       (echo ':t
27637   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27638       if test -z "$ac_sed_cmds"; then
27639         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27640       else
27641         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27642       fi
27643       ac_sed_frag=`expr $ac_sed_frag + 1`
27644       ac_beg=$ac_end
27645       ac_end=`expr $ac_end + $ac_max_sed_lines`
27646     fi
27647   done
27648   if test -z "$ac_sed_cmds"; then
27649     ac_sed_cmds=cat
27650   fi
27651 fi # test -n "$CONFIG_FILES"
27652
27653 _ACEOF
27654 cat >>$CONFIG_STATUS <<\_ACEOF
27655 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27656   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27657   case $ac_file in
27658   - | *:- | *:-:* ) # input from stdin
27659         cat >$tmp/stdin
27660         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27661         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27662   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27664   * )   ac_file_in=$ac_file.in ;;
27665   esac
27666
27667   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27668   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27670          X"$ac_file" : 'X\(//\)[^/]' \| \
27671          X"$ac_file" : 'X\(//\)$' \| \
27672          X"$ac_file" : 'X\(/\)' \| \
27673          .     : '\(.\)' 2>/dev/null ||
27674 echo X"$ac_file" |
27675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27676           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27677           /^X\(\/\/\)$/{ s//\1/; q; }
27678           /^X\(\/\).*/{ s//\1/; q; }
27679           s/.*/./; q'`
27680   { if $as_mkdir_p; then
27681     mkdir -p "$ac_dir"
27682   else
27683     as_dir="$ac_dir"
27684     as_dirs=
27685     while test ! -d "$as_dir"; do
27686       as_dirs="$as_dir $as_dirs"
27687       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27689          X"$as_dir" : 'X\(//\)[^/]' \| \
27690          X"$as_dir" : 'X\(//\)$' \| \
27691          X"$as_dir" : 'X\(/\)' \| \
27692          .     : '\(.\)' 2>/dev/null ||
27693 echo X"$as_dir" |
27694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27695           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27696           /^X\(\/\/\)$/{ s//\1/; q; }
27697           /^X\(\/\).*/{ s//\1/; q; }
27698           s/.*/./; q'`
27699     done
27700     test ! -n "$as_dirs" || mkdir $as_dirs
27701   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27703    { (exit 1); exit 1; }; }; }
27704
27705   ac_builddir=.
27706
27707 if test "$ac_dir" != .; then
27708   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27709   # A "../" for each directory in $ac_dir_suffix.
27710   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27711 else
27712   ac_dir_suffix= ac_top_builddir=
27713 fi
27714
27715 case $srcdir in
27716   .)  # No --srcdir option.  We are building in place.
27717     ac_srcdir=.
27718     if test -z "$ac_top_builddir"; then
27719        ac_top_srcdir=.
27720     else
27721        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27722     fi ;;
27723   [\\/]* | ?:[\\/]* )  # Absolute path.
27724     ac_srcdir=$srcdir$ac_dir_suffix;
27725     ac_top_srcdir=$srcdir ;;
27726   *) # Relative path.
27727     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27728     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27729 esac
27730
27731 # Do not use `cd foo && pwd` to compute absolute paths, because
27732 # the directories may not exist.
27733 case `pwd` in
27734 .) ac_abs_builddir="$ac_dir";;
27735 *)
27736   case "$ac_dir" in
27737   .) ac_abs_builddir=`pwd`;;
27738   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27739   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27740   esac;;
27741 esac
27742 case $ac_abs_builddir in
27743 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27744 *)
27745   case ${ac_top_builddir}. in
27746   .) ac_abs_top_builddir=$ac_abs_builddir;;
27747   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27748   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27749   esac;;
27750 esac
27751 case $ac_abs_builddir in
27752 .) ac_abs_srcdir=$ac_srcdir;;
27753 *)
27754   case $ac_srcdir in
27755   .) ac_abs_srcdir=$ac_abs_builddir;;
27756   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27757   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27758   esac;;
27759 esac
27760 case $ac_abs_builddir in
27761 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27762 *)
27763   case $ac_top_srcdir in
27764   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27765   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27766   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27767   esac;;
27768 esac
27769
27770
27771   case $INSTALL in
27772   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27773   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27774   esac
27775
27776   if test x"$ac_file" != x-; then
27777     { echo "$as_me:$LINENO: creating $ac_file" >&5
27778 echo "$as_me: creating $ac_file" >&6;}
27779     rm -f "$ac_file"
27780   fi
27781   # Let's still pretend it is `configure' which instantiates (i.e., don't
27782   # use $as_me), people would be surprised to read:
27783   #    /* config.h.  Generated by config.status.  */
27784   if test x"$ac_file" = x-; then
27785     configure_input=
27786   else
27787     configure_input="$ac_file.  "
27788   fi
27789   configure_input=$configure_input"Generated from `echo $ac_file_in |
27790                                      sed 's,.*/,,'` by configure."
27791
27792   # First look for the input files in the build tree, otherwise in the
27793   # src tree.
27794   ac_file_inputs=`IFS=:
27795     for f in $ac_file_in; do
27796       case $f in
27797       -) echo $tmp/stdin ;;
27798       [\\/$]*)
27799          # Absolute (can't be DOS-style, as IFS=:)
27800          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27801 echo "$as_me: error: cannot find input file: $f" >&2;}
27802    { (exit 1); exit 1; }; }
27803          echo "$f";;
27804       *) # Relative
27805          if test -f "$f"; then
27806            # Build tree
27807            echo "$f"
27808          elif test -f "$srcdir/$f"; then
27809            # Source tree
27810            echo "$srcdir/$f"
27811          else
27812            # /dev/null tree
27813            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27814 echo "$as_me: error: cannot find input file: $f" >&2;}
27815    { (exit 1); exit 1; }; }
27816          fi;;
27817       esac
27818     done` || { (exit 1); exit 1; }
27819 _ACEOF
27820 cat >>$CONFIG_STATUS <<_ACEOF
27821   sed "$ac_vpsub
27822 $extrasub
27823 _ACEOF
27824 cat >>$CONFIG_STATUS <<\_ACEOF
27825 :t
27826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27827 s,@configure_input@,$configure_input,;t t
27828 s,@srcdir@,$ac_srcdir,;t t
27829 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27830 s,@top_srcdir@,$ac_top_srcdir,;t t
27831 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27832 s,@builddir@,$ac_builddir,;t t
27833 s,@abs_builddir@,$ac_abs_builddir,;t t
27834 s,@top_builddir@,$ac_top_builddir,;t t
27835 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27836 s,@INSTALL@,$ac_INSTALL,;t t
27837 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27838   rm -f $tmp/stdin
27839   if test x"$ac_file" != x-; then
27840     mv $tmp/out $ac_file
27841   else
27842     cat $tmp/out
27843     rm -f $tmp/out
27844   fi
27845
27846 done
27847 _ACEOF
27848 cat >>$CONFIG_STATUS <<\_ACEOF
27849
27850 #
27851 # CONFIG_HEADER section.
27852 #
27853
27854 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27855 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27856 #
27857 # ac_d sets the value in "#define NAME VALUE" lines.
27858 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27859 ac_dB='[         ].*$,\1#\2'
27860 ac_dC=' '
27861 ac_dD=',;t'
27862 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27863 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27864 ac_uB='$,\1#\2define\3'
27865 ac_uC=' '
27866 ac_uD=',;t'
27867
27868 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27869   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27870   case $ac_file in
27871   - | *:- | *:-:* ) # input from stdin
27872         cat >$tmp/stdin
27873         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27874         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27875   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27876         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27877   * )   ac_file_in=$ac_file.in ;;
27878   esac
27879
27880   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27881 echo "$as_me: creating $ac_file" >&6;}
27882
27883   # First look for the input files in the build tree, otherwise in the
27884   # src tree.
27885   ac_file_inputs=`IFS=:
27886     for f in $ac_file_in; do
27887       case $f in
27888       -) echo $tmp/stdin ;;
27889       [\\/$]*)
27890          # Absolute (can't be DOS-style, as IFS=:)
27891          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27892 echo "$as_me: error: cannot find input file: $f" >&2;}
27893    { (exit 1); exit 1; }; }
27894          # Do quote $f, to prevent DOS paths from being IFS'd.
27895          echo "$f";;
27896       *) # Relative
27897          if test -f "$f"; then
27898            # Build tree
27899            echo "$f"
27900          elif test -f "$srcdir/$f"; then
27901            # Source tree
27902            echo "$srcdir/$f"
27903          else
27904            # /dev/null tree
27905            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27906 echo "$as_me: error: cannot find input file: $f" >&2;}
27907    { (exit 1); exit 1; }; }
27908          fi;;
27909       esac
27910     done` || { (exit 1); exit 1; }
27911   # Remove the trailing spaces.
27912   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27913
27914 _ACEOF
27915
27916 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27917 # `conftest.undefs', that substitutes the proper values into
27918 # config.h.in to produce config.h.  The first handles `#define'
27919 # templates, and the second `#undef' templates.
27920 # And first: Protect against being on the right side of a sed subst in
27921 # config.status.  Protect against being in an unquoted here document
27922 # in config.status.
27923 rm -f conftest.defines conftest.undefs
27924 # Using a here document instead of a string reduces the quoting nightmare.
27925 # Putting comments in sed scripts is not portable.
27926 #
27927 # `end' is used to avoid that the second main sed command (meant for
27928 # 0-ary CPP macros) applies to n-ary macro definitions.
27929 # See the Autoconf documentation for `clear'.
27930 cat >confdef2sed.sed <<\_ACEOF
27931 s/[\\&,]/\\&/g
27932 s,[\\$`],\\&,g
27933 t clear
27934 : clear
27935 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27936 t end
27937 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27938 : end
27939 _ACEOF
27940 # If some macros were called several times there might be several times
27941 # the same #defines, which is useless.  Nevertheless, we may not want to
27942 # sort them, since we want the *last* AC-DEFINE to be honored.
27943 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27944 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27945 rm -f confdef2sed.sed
27946
27947 # This sed command replaces #undef with comments.  This is necessary, for
27948 # example, in the case of _POSIX_SOURCE, which is predefined and required
27949 # on some systems where configure will not decide to define it.
27950 cat >>conftest.undefs <<\_ACEOF
27951 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27952 _ACEOF
27953
27954 # Break up conftest.defines because some shells have a limit on the size
27955 # of here documents, and old seds have small limits too (100 cmds).
27956 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27957 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27958 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27959 echo '  :' >>$CONFIG_STATUS
27960 rm -f conftest.tail
27961 while grep . conftest.defines >/dev/null
27962 do
27963   # Write a limited-size here document to $tmp/defines.sed.
27964   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27965   # Speed up: don't consider the non `#define' lines.
27966   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27967   # Work around the forget-to-reset-the-flag bug.
27968   echo 't clr' >>$CONFIG_STATUS
27969   echo ': clr' >>$CONFIG_STATUS
27970   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27971   echo 'CEOF
27972   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27973   rm -f $tmp/in
27974   mv $tmp/out $tmp/in
27975 ' >>$CONFIG_STATUS
27976   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27977   rm -f conftest.defines
27978   mv conftest.tail conftest.defines
27979 done
27980 rm -f conftest.defines
27981 echo '  fi # grep' >>$CONFIG_STATUS
27982 echo >>$CONFIG_STATUS
27983
27984 # Break up conftest.undefs because some shells have a limit on the size
27985 # of here documents, and old seds have small limits too (100 cmds).
27986 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27987 rm -f conftest.tail
27988 while grep . conftest.undefs >/dev/null
27989 do
27990   # Write a limited-size here document to $tmp/undefs.sed.
27991   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27992   # Speed up: don't consider the non `#undef'
27993   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27994   # Work around the forget-to-reset-the-flag bug.
27995   echo 't clr' >>$CONFIG_STATUS
27996   echo ': clr' >>$CONFIG_STATUS
27997   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27998   echo 'CEOF
27999   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28000   rm -f $tmp/in
28001   mv $tmp/out $tmp/in
28002 ' >>$CONFIG_STATUS
28003   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28004   rm -f conftest.undefs
28005   mv conftest.tail conftest.undefs
28006 done
28007 rm -f conftest.undefs
28008
28009 cat >>$CONFIG_STATUS <<\_ACEOF
28010   # Let's still pretend it is `configure' which instantiates (i.e., don't
28011   # use $as_me), people would be surprised to read:
28012   #    /* config.h.  Generated by config.status.  */
28013   if test x"$ac_file" = x-; then
28014     echo "/* Generated by configure.  */" >$tmp/config.h
28015   else
28016     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28017   fi
28018   cat $tmp/in >>$tmp/config.h
28019   rm -f $tmp/in
28020   if test x"$ac_file" != x-; then
28021     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28022       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28023 echo "$as_me: $ac_file is unchanged" >&6;}
28024     else
28025       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28027          X"$ac_file" : 'X\(//\)[^/]' \| \
28028          X"$ac_file" : 'X\(//\)$' \| \
28029          X"$ac_file" : 'X\(/\)' \| \
28030          .     : '\(.\)' 2>/dev/null ||
28031 echo X"$ac_file" |
28032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28034           /^X\(\/\/\)$/{ s//\1/; q; }
28035           /^X\(\/\).*/{ s//\1/; q; }
28036           s/.*/./; q'`
28037       { if $as_mkdir_p; then
28038     mkdir -p "$ac_dir"
28039   else
28040     as_dir="$ac_dir"
28041     as_dirs=
28042     while test ! -d "$as_dir"; do
28043       as_dirs="$as_dir $as_dirs"
28044       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28046          X"$as_dir" : 'X\(//\)[^/]' \| \
28047          X"$as_dir" : 'X\(//\)$' \| \
28048          X"$as_dir" : 'X\(/\)' \| \
28049          .     : '\(.\)' 2>/dev/null ||
28050 echo X"$as_dir" |
28051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28053           /^X\(\/\/\)$/{ s//\1/; q; }
28054           /^X\(\/\).*/{ s//\1/; q; }
28055           s/.*/./; q'`
28056     done
28057     test ! -n "$as_dirs" || mkdir $as_dirs
28058   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28059 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28060    { (exit 1); exit 1; }; }; }
28061
28062       rm -f $ac_file
28063       mv $tmp/config.h $ac_file
28064     fi
28065   else
28066     cat $tmp/config.h
28067     rm -f $tmp/config.h
28068   fi
28069 done
28070 _ACEOF
28071 cat >>$CONFIG_STATUS <<\_ACEOF
28072
28073 #
28074 # CONFIG_COMMANDS section.
28075 #
28076 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28077   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28078   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28079   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28080 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28081          X"$ac_dest" : 'X\(//\)[^/]' \| \
28082          X"$ac_dest" : 'X\(//\)$' \| \
28083          X"$ac_dest" : 'X\(/\)' \| \
28084          .     : '\(.\)' 2>/dev/null ||
28085 echo X"$ac_dest" |
28086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28088           /^X\(\/\/\)$/{ s//\1/; q; }
28089           /^X\(\/\).*/{ s//\1/; q; }
28090           s/.*/./; q'`
28091   { if $as_mkdir_p; then
28092     mkdir -p "$ac_dir"
28093   else
28094     as_dir="$ac_dir"
28095     as_dirs=
28096     while test ! -d "$as_dir"; do
28097       as_dirs="$as_dir $as_dirs"
28098       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28100          X"$as_dir" : 'X\(//\)[^/]' \| \
28101          X"$as_dir" : 'X\(//\)$' \| \
28102          X"$as_dir" : 'X\(/\)' \| \
28103          .     : '\(.\)' 2>/dev/null ||
28104 echo X"$as_dir" |
28105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28106           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28107           /^X\(\/\/\)$/{ s//\1/; q; }
28108           /^X\(\/\).*/{ s//\1/; q; }
28109           s/.*/./; q'`
28110     done
28111     test ! -n "$as_dirs" || mkdir $as_dirs
28112   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28113 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28114    { (exit 1); exit 1; }; }; }
28115
28116   ac_builddir=.
28117
28118 if test "$ac_dir" != .; then
28119   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28120   # A "../" for each directory in $ac_dir_suffix.
28121   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28122 else
28123   ac_dir_suffix= ac_top_builddir=
28124 fi
28125
28126 case $srcdir in
28127   .)  # No --srcdir option.  We are building in place.
28128     ac_srcdir=.
28129     if test -z "$ac_top_builddir"; then
28130        ac_top_srcdir=.
28131     else
28132        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28133     fi ;;
28134   [\\/]* | ?:[\\/]* )  # Absolute path.
28135     ac_srcdir=$srcdir$ac_dir_suffix;
28136     ac_top_srcdir=$srcdir ;;
28137   *) # Relative path.
28138     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28139     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28140 esac
28141
28142 # Do not use `cd foo && pwd` to compute absolute paths, because
28143 # the directories may not exist.
28144 case `pwd` in
28145 .) ac_abs_builddir="$ac_dir";;
28146 *)
28147   case "$ac_dir" in
28148   .) ac_abs_builddir=`pwd`;;
28149   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28150   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28151   esac;;
28152 esac
28153 case $ac_abs_builddir in
28154 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28155 *)
28156   case ${ac_top_builddir}. in
28157   .) ac_abs_top_builddir=$ac_abs_builddir;;
28158   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28159   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28160   esac;;
28161 esac
28162 case $ac_abs_builddir in
28163 .) ac_abs_srcdir=$ac_srcdir;;
28164 *)
28165   case $ac_srcdir in
28166   .) ac_abs_srcdir=$ac_abs_builddir;;
28167   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28168   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28169   esac;;
28170 esac
28171 case $ac_abs_builddir in
28172 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28173 *)
28174   case $ac_top_srcdir in
28175   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28176   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28177   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28178   esac;;
28179 esac
28180
28181
28182   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28183 echo "$as_me: executing $ac_dest commands" >&6;}
28184   case $ac_dest in
28185     default-1 )
28186     for ac_file in $CONFIG_FILES; do
28187       # Support "outfile[:infile[:infile...]]"
28188       case "$ac_file" in
28189         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28190       esac
28191       # PO directories have a Makefile.in generated from Makefile.in.in.
28192       case "$ac_file" in */Makefile.in)
28193         # Adjust a relative srcdir.
28194         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28195         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28196         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28197         # In autoconf-2.13 it is called $ac_given_srcdir.
28198         # In autoconf-2.50 it is called $srcdir.
28199         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28200         case "$ac_given_srcdir" in
28201           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28202           /*) top_srcdir="$ac_given_srcdir" ;;
28203           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
28204         esac
28205         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28206           rm -f "$ac_dir/POTFILES"
28207           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28208           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28209           POMAKEFILEDEPS="POTFILES.in"
28210           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28211           # on $ac_dir but don't depend on user-specified configuration
28212           # parameters.
28213           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28214             # The LINGUAS file contains the set of available languages.
28215             if test -n "$OBSOLETE_ALL_LINGUAS"; then
28216               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28217             fi
28218             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28219             # Hide the ALL_LINGUAS assigment from automake.
28220             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28221             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28222           else
28223             # The set of available languages was given in configure.in.
28224             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28225           fi
28226           case "$ac_given_srcdir" in
28227             .) srcdirpre= ;;
28228             *) srcdirpre='$(srcdir)/' ;;
28229           esac
28230           POFILES=
28231           GMOFILES=
28232           UPDATEPOFILES=
28233           DUMMYPOFILES=
28234           for lang in $ALL_LINGUAS; do
28235             POFILES="$POFILES $srcdirpre$lang.po"
28236             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28237             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28238             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28239           done
28240           # CATALOGS depends on both $ac_dir and the user's LINGUAS
28241           # environment variable.
28242           INST_LINGUAS=
28243           if test -n "$ALL_LINGUAS"; then
28244             for presentlang in $ALL_LINGUAS; do
28245               useit=no
28246               if test "%UNSET%" != "$LINGUAS"; then
28247                 desiredlanguages="$LINGUAS"
28248               else
28249                 desiredlanguages="$ALL_LINGUAS"
28250               fi
28251               for desiredlang in $desiredlanguages; do
28252                 # Use the presentlang catalog if desiredlang is
28253                 #   a. equal to presentlang, or
28254                 #   b. a variant of presentlang (because in this case,
28255                 #      presentlang can be used as a fallback for messages
28256                 #      which are not translated in the desiredlang catalog).
28257                 case "$desiredlang" in
28258                   "$presentlang"*) useit=yes;;
28259                 esac
28260               done
28261               if test $useit = yes; then
28262                 INST_LINGUAS="$INST_LINGUAS $presentlang"
28263               fi
28264             done
28265           fi
28266           CATALOGS=
28267           if test -n "$INST_LINGUAS"; then
28268             for lang in $INST_LINGUAS; do
28269               CATALOGS="$CATALOGS $lang.gmo"
28270             done
28271           fi
28272           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28273           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"
28274           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28275             if test -f "$f"; then
28276               case "$f" in
28277                 *.orig | *.bak | *~) ;;
28278                 *) cat "$f" >> "$ac_dir/Makefile" ;;
28279               esac
28280             fi
28281           done
28282         fi
28283         ;;
28284       esac
28285     done ;;
28286     default )
28287 # Makefile uses this timestamp file to record whether config.h is up to date.
28288 echo timestamp > stamp-h
28289  ;;
28290   esac
28291 done
28292 _ACEOF
28293
28294 cat >>$CONFIG_STATUS <<\_ACEOF
28295
28296 { (exit 0); exit 0; }
28297 _ACEOF
28298 chmod +x $CONFIG_STATUS
28299 ac_clean_files=$ac_clean_files_save
28300
28301
28302 # configure is writing to config.log, and then calls config.status.
28303 # config.status does its own redirection, appending to config.log.
28304 # Unfortunately, on DOS this fails, as config.log is still kept open
28305 # by configure, so config.status won't be able to write to it; its
28306 # output is simply discarded.  So we exec the FD to /dev/null,
28307 # effectively closing config.log, so it can be properly (re)opened and
28308 # appended to by config.status.  When coming back to configure, we
28309 # need to make the FD available again.
28310 if test "$no_create" != yes; then
28311   ac_cs_success=:
28312   ac_config_status_args=
28313   test "$silent" = yes &&
28314     ac_config_status_args="$ac_config_status_args --quiet"
28315   exec 5>/dev/null
28316   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28317   exec 5>>config.log
28318   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28319   # would make configure fail if this is the last instruction.
28320   $ac_cs_success || { (exit 1); exit 1; }
28321 fi
28322