Imported from ../bash-3.0.tar.gz.
[platform/upstream/bash.git] / configure
1 #! /bin/sh
2 # From configure.in for Bash 3.0, version 3.166, from autoconf version AC_ACVERSION.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for bash 3.0-release.
5 #
6 # Report bugs to <bug-bash@gnu.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='bash'
271 PACKAGE_TARNAME='bash'
272 PACKAGE_VERSION='3.0-release'
273 PACKAGE_STRING='bash 3.0-release'
274 PACKAGE_BUGREPORT='bug-bash@gnu.org'
275
276 ac_unique_file="shell.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SIGNAMES_H CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL 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'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
756 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
757 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
758 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784   # Omit some internal or obsolete options to make the list less imposing.
785   # This message is too long to be a string in the A/UX 3.1 sh.
786   cat <<_ACEOF
787 \`configure' configures bash 3.0-release to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE.  See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797   -h, --help              display this help and exit
798       --help=short        display options specific to this package
799       --help=recursive    display the short help of all the included packages
800   -V, --version           display version information and exit
801   -q, --quiet, --silent   do not print \`checking...' messages
802       --cache-file=FILE   cache test results in FILE [disabled]
803   -C, --config-cache      alias for \`--cache-file=config.cache'
804   -n, --no-create         do not create output files
805       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809   cat <<_ACEOF
810 Installation directories:
811   --prefix=PREFIX         install architecture-independent files in PREFIX
812                           [$ac_default_prefix]
813   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
814                           [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824   --bindir=DIR           user executables [EPREFIX/bin]
825   --sbindir=DIR          system admin executables [EPREFIX/sbin]
826   --libexecdir=DIR       program executables [EPREFIX/libexec]
827   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
828   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
829   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
830   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
831   --libdir=DIR           object code libraries [EPREFIX/lib]
832   --includedir=DIR       C header files [PREFIX/include]
833   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
834   --infodir=DIR          info documentation [PREFIX/info]
835   --mandir=DIR           man documentation [PREFIX/man]
836 _ACEOF
837
838   cat <<\_ACEOF
839
840 System types:
841   --build=BUILD     configure for building on BUILD [guessed]
842   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847   case $ac_init_help in
848      short | recursive ) echo "Configuration of bash 3.0-release:";;
849    esac
850   cat <<\_ACEOF
851
852 Optional Features:
853   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
854   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
855   --enable-minimal-config a minimal sh-like configuration
856   --enable-alias          enable shell aliases
857   --enable-arith-for-command
858                           enable arithmetic for command
859   --enable-array-variables
860                           include shell array variables
861   --enable-bang-history   turn on csh-style history substitution
862   --enable-brace-expansion
863                           include brace expansion
864   --enable-command-timing enable the time reserved word and command timing
865   --enable-cond-command   enable the conditional command
866   --enable-cond-regexp    enable extgended regular expression matching in
867                           conditional commands
868   --enable-debugger       enable support for bash debugger
869   --enable-directory-stack
870                           enable builtins pushd/popd/dirs
871   --enable-disabled-builtins
872                           allow disabled builtins to still be invoked
873   --enable-dparen-arithmetic
874                           include ((...)) command
875   --enable-extended-glob  include ksh-style extended pattern matching
876   --enable-help-builtin   include the help builtin
877   --enable-history        turn on command history
878   --enable-job-control    enable job control features
879   --enable-multibyte      enable multibyte characters if OS supports them
880   --enable-net-redirections
881                           enable /dev/tcp/host/port redirection
882   --enable-process-substitution
883                           enable process substitution
884   --enable-progcomp       enable programmable completion and the complete
885                           builtin
886   --enable-prompt-string-decoding
887                           turn on escape character decoding in prompts
888   --enable-readline       turn on command line editing
889   --enable-restricted     enable a restricted shell
890   --enable-select         include select command
891   --enable-separate-helpfiles
892                           use external files for help builtin documentation
893   --enable-usg-echo-default
894                           a synonym for --enable-xpg-echo-default
895   --enable-xpg-echo-default
896                           make the echo builtin expand escape sequences by
897                           default
898   --enable-mem-scramble   scramble memory on calls to malloc and free
899   --enable-profiling      allow profiling with gprof
900   --enable-static-link    link bash statically, for use as a root shell
901   --disable-largefile     omit support for large files
902   --disable-nls           do not use Native Language Support
903   --disable-rpath         do not hardcode runtime library paths
904
905 Optional Packages:
906   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
907   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
908   --with-lispdir          override the default lisp directory
909   --with-afs              if you are running AFS
910   --with-bash-malloc      use the Bash version of malloc
911   --with-curses           use the curses library instead of the termcap
912                           library
913   --with-gnu-malloc       synonym for --with-bash-malloc
914   --with-installed-readline
915                           use a version of the readline library that is
916                           already installed
917   --with-purecov          configure to postprocess with pure coverage
918   --with-purify           configure to postprocess with purify
919   --with-gnu-ld           assume the C compiler uses GNU ld default=no
920   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
921   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
922   --with-included-gettext use the GNU gettext library included here
923   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
924   --without-libintl-prefix     don't search for libintl in includedir and libdir
925
926 Some influential environment variables:
927   DEBUGGER_START_FILE
928               location of bash debugger initialization file
929   CC          C compiler command
930   CFLAGS      C compiler flags
931   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
932               nonstandard directory <lib dir>
933   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
934               headers in a nonstandard directory <include dir>
935   CPP         C preprocessor
936
937 Use these variables to override the choices made by `configure' or to help
938 it to find libraries and programs with nonstandard names/locations.
939
940 Report bugs to <bug-bash@gnu.org>.
941 _ACEOF
942 fi
943
944 if test "$ac_init_help" = "recursive"; then
945   # If there are subdirs, report their specific --help.
946   ac_popdir=`pwd`
947   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948     test -d $ac_dir || continue
949     ac_builddir=.
950
951 if test "$ac_dir" != .; then
952   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
953   # A "../" for each directory in $ac_dir_suffix.
954   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
955 else
956   ac_dir_suffix= ac_top_builddir=
957 fi
958
959 case $srcdir in
960   .)  # No --srcdir option.  We are building in place.
961     ac_srcdir=.
962     if test -z "$ac_top_builddir"; then
963        ac_top_srcdir=.
964     else
965        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
966     fi ;;
967   [\\/]* | ?:[\\/]* )  # Absolute path.
968     ac_srcdir=$srcdir$ac_dir_suffix;
969     ac_top_srcdir=$srcdir ;;
970   *) # Relative path.
971     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972     ac_top_srcdir=$ac_top_builddir$srcdir ;;
973 esac
974 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
975 # absolute.
976 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
977 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
978 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
979 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
980
981     cd $ac_dir
982     # Check for guested configure; otherwise get Cygnus style configure.
983     if test -f $ac_srcdir/configure.gnu; then
984       echo
985       $SHELL $ac_srcdir/configure.gnu  --help=recursive
986     elif test -f $ac_srcdir/configure; then
987       echo
988       $SHELL $ac_srcdir/configure  --help=recursive
989     elif test -f $ac_srcdir/configure.ac ||
990            test -f $ac_srcdir/configure.in; then
991       echo
992       $ac_configure --help
993     else
994       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995     fi
996     cd $ac_popdir
997   done
998 fi
999
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1002   cat <<\_ACEOF
1003 bash configure 3.0-release
1004 generated by GNU Autoconf 2.57
1005
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1010 _ACEOF
1011   exit 0
1012 fi
1013 exec 5>config.log
1014 cat >&5 <<_ACEOF
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1017
1018 It was created by bash $as_me 3.0-release, which was
1019 generated by GNU Autoconf 2.57.  Invocation command line was
1020
1021   $ $0 $@
1022
1023 _ACEOF
1024 {
1025 cat <<_ASUNAME
1026 ## --------- ##
1027 ## Platform. ##
1028 ## --------- ##
1029
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047 _ASUNAME
1048
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 for as_dir in $PATH
1051 do
1052   IFS=$as_save_IFS
1053   test -z "$as_dir" && as_dir=.
1054   echo "PATH: $as_dir"
1055 done
1056
1057 } >&5
1058
1059 cat >&5 <<_ACEOF
1060
1061
1062 ## ----------- ##
1063 ## Core tests. ##
1064 ## ----------- ##
1065
1066 _ACEOF
1067
1068
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_configure_args=
1075 ac_configure_args0=
1076 ac_configure_args1=
1077 ac_sep=
1078 ac_must_keep_next=false
1079 for ac_pass in 1 2
1080 do
1081   for ac_arg
1082   do
1083     case $ac_arg in
1084     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086     | -silent | --silent | --silen | --sile | --sil)
1087       continue ;;
1088     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090     esac
1091     case $ac_pass in
1092     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093     2)
1094       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095       if test $ac_must_keep_next = true; then
1096         ac_must_keep_next=false # Got value, back to normal.
1097       else
1098         case $ac_arg in
1099           *=* | --config-cache | -C | -disable-* | --disable-* \
1100           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102           | -with-* | --with-* | -without-* | --without-* | --x)
1103             case "$ac_configure_args0 " in
1104               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105             esac
1106             ;;
1107           -* ) ac_must_keep_next=true ;;
1108         esac
1109       fi
1110       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111       # Get rid of the leading space.
1112       ac_sep=" "
1113       ;;
1114     esac
1115   done
1116 done
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log.  We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126   # Save into config.log some information that might help in debugging.
1127   {
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1134 _ASBOX
1135     echo
1136     # The following way of writing the cache mishandles newlines in values,
1137 {
1138   (set) 2>&1 |
1139     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140     *ac_space=\ *)
1141       sed -n \
1142         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144       ;;
1145     *)
1146       sed -n \
1147         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148       ;;
1149     esac;
1150 }
1151     echo
1152
1153     cat <<\_ASBOX
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1157 _ASBOX
1158     echo
1159     for ac_var in $ac_subst_vars
1160     do
1161       eval ac_val=$`echo $ac_var`
1162       echo "$ac_var='"'"'$ac_val'"'"'"
1163     done | sort
1164     echo
1165
1166     if test -n "$ac_subst_files"; then
1167       cat <<\_ASBOX
1168 ## ------------- ##
1169 ## Output files. ##
1170 ## ------------- ##
1171 _ASBOX
1172       echo
1173       for ac_var in $ac_subst_files
1174       do
1175         eval ac_val=$`echo $ac_var`
1176         echo "$ac_var='"'"'$ac_val'"'"'"
1177       done | sort
1178       echo
1179     fi
1180
1181     if test -s confdefs.h; then
1182       cat <<\_ASBOX
1183 ## ----------- ##
1184 ## confdefs.h. ##
1185 ## ----------- ##
1186 _ASBOX
1187       echo
1188       sed "/^$/d" confdefs.h | sort
1189       echo
1190     fi
1191     test "$ac_signal" != 0 &&
1192       echo "$as_me: caught signal $ac_signal"
1193     echo "$as_me: exit $exit_status"
1194   } >&5
1195   rm -f core core.* *.core &&
1196   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197     exit $exit_status
1198      ' 0
1199 for ac_signal in 1 2 13 15; do
1200   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 done
1202 ac_signal=0
1203
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 echo >confdefs.h
1208
1209 # Predefined preprocessor variables.
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 _ACEOF
1234
1235
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239   if test "x$prefix" != xNONE; then
1240     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241   else
1242     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243   fi
1244 fi
1245 for ac_site_file in $CONFIG_SITE; do
1246   if test -r "$ac_site_file"; then
1247     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249     sed 's/^/| /' "$ac_site_file" >&5
1250     . "$ac_site_file"
1251   fi
1252 done
1253
1254 if test -r "$cache_file"; then
1255   # Some versions of bash will fail to source /dev/null (special
1256   # files actually), so we avoid doing that.
1257   if test -f "$cache_file"; then
1258     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1260     case $cache_file in
1261       [\\/]* | ?:[\\/]* ) . $cache_file;;
1262       *)                      . ./$cache_file;;
1263     esac
1264   fi
1265 else
1266   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1268   >$cache_file
1269 fi
1270
1271 # Check that the precious variables saved in the cache have kept the same
1272 # value.
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277   eval ac_new_set=\$ac_env_${ac_var}_set
1278   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279   eval ac_new_val="\$ac_env_${ac_var}_value"
1280   case $ac_old_set,$ac_new_set in
1281     set,)
1282       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284       ac_cache_corrupted=: ;;
1285     ,set)
1286       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288       ac_cache_corrupted=: ;;
1289     ,);;
1290     *)
1291       if test "x$ac_old_val" != "x$ac_new_val"; then
1292         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295 echo "$as_me:   former value:  $ac_old_val" >&2;}
1296         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297 echo "$as_me:   current value: $ac_new_val" >&2;}
1298         ac_cache_corrupted=:
1299       fi;;
1300   esac
1301   # Pass precious variables to config.status.
1302   if test "$ac_new_set" = set; then
1303     case $ac_new_val in
1304     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306     *) ac_arg=$ac_var=$ac_new_val ;;
1307     esac
1308     case " $ac_configure_args " in
1309       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311     esac
1312   fi
1313 done
1314 if $ac_cache_corrupted; then
1315   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319    { (exit 1); exit 1; }; }
1320 fi
1321
1322 ac_ext=c
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358 ac_aux_dir=
1359 for ac_dir in ./support $srcdir/./support; do
1360   if test -f $ac_dir/install-sh; then
1361     ac_aux_dir=$ac_dir
1362     ac_install_sh="$ac_aux_dir/install-sh -c"
1363     break
1364   elif test -f $ac_dir/install.sh; then
1365     ac_aux_dir=$ac_dir
1366     ac_install_sh="$ac_aux_dir/install.sh -c"
1367     break
1368   elif test -f $ac_dir/shtool; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/shtool install -c"
1371     break
1372   fi
1373 done
1374 if test -z "$ac_aux_dir"; then
1375   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1376 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1381 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1382
1383           ac_config_headers="$ac_config_headers config.h"
1384
1385
1386 BASHVERS=3.0
1387 RELSTATUS=release
1388
1389 case "$RELSTATUS" in
1390 alp*|bet*|dev*|rc*)     DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1391 *)      DEBUG= MALLOC_DEBUG= ;;
1392 esac
1393
1394 # Make sure we can run config.sub.
1395 $ac_config_sub sun4 >/dev/null 2>&1 ||
1396   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1397 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1398    { (exit 1); exit 1; }; }
1399
1400 echo "$as_me:$LINENO: checking build system type" >&5
1401 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1402 if test "${ac_cv_build+set}" = set; then
1403   echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405   ac_cv_build_alias=$build_alias
1406 test -z "$ac_cv_build_alias" &&
1407   ac_cv_build_alias=`$ac_config_guess`
1408 test -z "$ac_cv_build_alias" &&
1409   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1410 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1411    { (exit 1); exit 1; }; }
1412 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1413   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1415    { (exit 1); exit 1; }; }
1416
1417 fi
1418 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1419 echo "${ECHO_T}$ac_cv_build" >&6
1420 build=$ac_cv_build
1421 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426 echo "$as_me:$LINENO: checking host system type" >&5
1427 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1428 if test "${ac_cv_host+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   ac_cv_host_alias=$host_alias
1432 test -z "$ac_cv_host_alias" &&
1433   ac_cv_host_alias=$ac_cv_build_alias
1434 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1435   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1436 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1437    { (exit 1); exit 1; }; }
1438
1439 fi
1440 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1441 echo "${ECHO_T}$ac_cv_host" >&6
1442 host=$ac_cv_host
1443 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448
1449 opt_bash_malloc=yes
1450 opt_purify=no
1451 opt_purecov=no
1452 opt_afs=no
1453 opt_curses=no
1454 opt_with_installed_readline=no
1455
1456 #htmldir=
1457
1458 case "${host_cpu}-${host_os}" in
1459 alpha*-*)       opt_bash_malloc=no ;;   # alpha running osf/1 or linux
1460 *[Cc]ray*-*)    opt_bash_malloc=no ;;   # Crays
1461 *-osf1*)        opt_bash_malloc=no ;;   # other osf/1 machines
1462 sparc-svr4*)    opt_bash_malloc=no ;;   # sparc SVR4, SVR4.2
1463 sparc-netbsd*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
1464 mips-irix6*)    opt_bash_malloc=no ;;   # needs 8-byte alignment
1465 m68k-sysv)      opt_bash_malloc=no ;;   # fixes file descriptor leak in closedir
1466 sparc-linux*)   opt_bash_malloc=no ;;   # sparc running linux; requires ELF
1467 *-freebsd*-gnu) opt_bash_malloc=no ;;   # there's some undetermined problem here
1468 #*-freebsd*)    opt_bash_malloc=no ;;   # they claim it's better; I disagree
1469 *-openbsd*)     opt_bash_malloc=no ;;   # they claim it needs eight-bit alignment
1470 *-aix*)         opt_bash_malloc=no ;;   # AIX machines
1471 *-nextstep*)    opt_bash_malloc=no ;;   # NeXT machines running NeXTstep
1472 *-macos*)       opt_bash_malloc=no ;;   # Apple MacOS X
1473 *-rhapsody*)    opt_bash_malloc=no ;;   # Apple Rhapsody (MacOS X)
1474 *-darwin*)      opt_bash_malloc=no ;;   # Apple Darwin (MacOS X)
1475 *-dgux*)        opt_bash_malloc=no ;;   # DG/UX machines
1476 *-qnx*)         opt_bash_malloc=no ;;   # QNX 4.2
1477 *-machten4)     opt_bash_malloc=no ;;   # MachTen 4.x
1478 *-bsdi2.1|*-bsdi3.?)    opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1479 *-beos*)        opt_bash_malloc=no ;;   # they say it's suitable
1480 *-cygwin*)      opt_bash_malloc=no ;;   # Cygnus's CYGWIN environment
1481 *-opennt*|*-interix*)   opt_bash_malloc=no ;;   # Interix, now owned by Microsoft
1482 esac
1483
1484 # memory scrambling on free()
1485 case "${host_os}" in
1486 sco3.2v5*|sco3.2v4*)    opt_memscramble=no ;;
1487 *)                      opt_memscramble=yes ;;
1488 esac
1489
1490
1491 # Check whether --with-lispdir or --without-lispdir was given.
1492 if test "${with_lispdir+set}" = set; then
1493   withval="$with_lispdir"
1494    lispdir="$withval"
1495     echo "$as_me:$LINENO: checking where .elc files should go" >&5
1496 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1497     echo "$as_me:$LINENO: result: $lispdir" >&5
1498 echo "${ECHO_T}$lispdir" >&6
1499 else
1500
1501   # If set to t, that means we are running in a shell under Emacs.
1502   # If you have an Emacs named "t", then use the full path.
1503   test x"$EMACS" = xt && EMACS=
1504   for ac_prog in emacs xemacs
1505 do
1506   # Extract the first word of "$ac_prog", so it can be a program name with args.
1507 set dummy $ac_prog; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_EMACS+set}" = set; then
1511   echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513   if test -n "$EMACS"; then
1514   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1515 else
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1518 do
1519   IFS=$as_save_IFS
1520   test -z "$as_dir" && as_dir=.
1521   for ac_exec_ext in '' $ac_executable_extensions; do
1522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523     ac_cv_prog_EMACS="$ac_prog"
1524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525     break 2
1526   fi
1527 done
1528 done
1529
1530 fi
1531 fi
1532 EMACS=$ac_cv_prog_EMACS
1533 if test -n "$EMACS"; then
1534   echo "$as_me:$LINENO: result: $EMACS" >&5
1535 echo "${ECHO_T}$EMACS" >&6
1536 else
1537   echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1539 fi
1540
1541   test -n "$EMACS" && break
1542 done
1543 test -n "$EMACS" || EMACS="no"
1544
1545   if test $EMACS != "no"; then
1546     if test x${lispdir+set} != xset; then
1547       echo "$as_me:$LINENO: checking where .elc files should go" >&5
1548 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1549 if test "${am_cv_lispdir+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552         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;}'`
1553         if test -z "$am_cv_lispdir"; then
1554           am_cv_lispdir='${datadir}/emacs/site-lisp'
1555         fi
1556
1557 fi
1558 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1559 echo "${ECHO_T}$am_cv_lispdir" >&6
1560       lispdir="$am_cv_lispdir"
1561     fi
1562   fi
1563
1564 fi;
1565
1566
1567
1568
1569
1570 # Check whether --with-afs or --without-afs was given.
1571 if test "${with_afs+set}" = set; then
1572   withval="$with_afs"
1573   opt_afs=$withval
1574 fi;
1575
1576 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1577 if test "${with_bash_malloc+set}" = set; then
1578   withval="$with_bash_malloc"
1579   opt_bash_malloc=$withval
1580 fi;
1581
1582 # Check whether --with-curses or --without-curses was given.
1583 if test "${with_curses+set}" = set; then
1584   withval="$with_curses"
1585   opt_curses=$withval
1586 fi;
1587
1588 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1589 if test "${with_gnu_malloc+set}" = set; then
1590   withval="$with_gnu_malloc"
1591   opt_bash_malloc=$withval
1592 fi;
1593
1594 # Check whether --with-installed-readline or --without-installed-readline was given.
1595 if test "${with_installed_readline+set}" = set; then
1596   withval="$with_installed_readline"
1597   opt_with_installed_readline=$withval
1598 fi;
1599
1600 # Check whether --with-purecov or --without-purecov was given.
1601 if test "${with_purecov+set}" = set; then
1602   withval="$with_purecov"
1603   opt_purecov=$withval
1604 fi;
1605
1606 # Check whether --with-purify or --without-purify was given.
1607 if test "${with_purify+set}" = set; then
1608   withval="$with_purify"
1609   opt_purify=$withval
1610 fi;
1611
1612 if test "$opt_bash_malloc" = yes; then
1613         MALLOC_TARGET=malloc
1614         MALLOC_SRC=malloc.c
1615
1616         MALLOC_LIB='-lmalloc'
1617         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1618         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1619         MALLOC_DEP='$(MALLOC_LIBRARY)'
1620
1621         cat >>confdefs.h <<\_ACEOF
1622 #define USING_BASH_MALLOC 1
1623 _ACEOF
1624
1625 else
1626         MALLOC_LIB=
1627         MALLOC_LIBRARY=
1628         MALLOC_LDFLAGS=
1629         MALLOC_DEP=
1630 fi
1631
1632 if test "$opt_purify" = yes; then
1633         PURIFY="purify "
1634         cat >>confdefs.h <<\_ACEOF
1635 #define DISABLE_MALLOC_WRAPPERS 1
1636 _ACEOF
1637
1638 else
1639         PURIFY=
1640 fi
1641
1642 if test "$opt_purecov" = yes; then
1643         PURIFY="${PURIFY}purecov"
1644 fi
1645
1646 if test "$opt_afs" = yes; then
1647         cat >>confdefs.h <<\_ACEOF
1648 #define AFS 1
1649 _ACEOF
1650
1651 fi
1652
1653 if test "$opt_curses" = yes; then
1654         prefer_curses=yes
1655 fi
1656
1657 if test -z "${DEBUGGER_START_FILE}"; then
1658         DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1659 fi
1660
1661 opt_minimal_config=no
1662
1663 opt_job_control=yes
1664 opt_alias=yes
1665 opt_readline=yes
1666 opt_history=yes
1667 opt_bang_history=yes
1668 opt_dirstack=yes
1669 opt_restricted=yes
1670 opt_process_subst=yes
1671 opt_prompt_decoding=yes
1672 opt_select=yes
1673 opt_help=yes
1674 opt_array_variables=yes
1675 opt_dparen_arith=yes
1676 opt_extended_glob=yes
1677 opt_brace_expansion=yes
1678 opt_disabled_builtins=no
1679 opt_command_timing=yes
1680 opt_xpg_echo=no
1681 opt_cond_command=yes
1682 opt_cond_regexp=yes
1683 opt_arith_for_command=yes
1684 opt_net_redirs=yes
1685 opt_progcomp=yes
1686 opt_separate_help=no
1687 opt_multibyte=yes
1688 opt_debugger=yes
1689
1690 opt_static_link=no
1691 opt_profiling=no
1692
1693 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1694 if test "${enable_minimal_config+set}" = set; then
1695   enableval="$enable_minimal_config"
1696   opt_minimal_config=$enableval
1697 fi;
1698
1699 if test $opt_minimal_config = yes; then
1700         opt_job_control=no opt_alias=no opt_readline=no
1701         opt_history=no opt_bang_history=no opt_dirstack=no
1702         opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1703         opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1704         opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1705         opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1706         opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1707         opt_multibyte=yes opt_cond_regexp=no
1708 fi
1709
1710 # Check whether --enable-alias or --disable-alias was given.
1711 if test "${enable_alias+set}" = set; then
1712   enableval="$enable_alias"
1713   opt_alias=$enableval
1714 fi;
1715 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1716 if test "${enable_arith_for_command+set}" = set; then
1717   enableval="$enable_arith_for_command"
1718   opt_arith_for_command=$enableval
1719 fi;
1720 # Check whether --enable-array-variables or --disable-array-variables was given.
1721 if test "${enable_array_variables+set}" = set; then
1722   enableval="$enable_array_variables"
1723   opt_array_variables=$enableval
1724 fi;
1725 # Check whether --enable-bang-history or --disable-bang-history was given.
1726 if test "${enable_bang_history+set}" = set; then
1727   enableval="$enable_bang_history"
1728   opt_bang_history=$enableval
1729 fi;
1730 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1731 if test "${enable_brace_expansion+set}" = set; then
1732   enableval="$enable_brace_expansion"
1733   opt_brace_expansion=$enableval
1734 fi;
1735 # Check whether --enable-command-timing or --disable-command-timing was given.
1736 if test "${enable_command_timing+set}" = set; then
1737   enableval="$enable_command_timing"
1738   opt_command_timing=$enableval
1739 fi;
1740 # Check whether --enable-cond-command or --disable-cond-command was given.
1741 if test "${enable_cond_command+set}" = set; then
1742   enableval="$enable_cond_command"
1743   opt_cond_command=$enableval
1744 fi;
1745 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1746 if test "${enable_cond_regexp+set}" = set; then
1747   enableval="$enable_cond_regexp"
1748   opt_cond_regexp=$enableval
1749 fi;
1750 # Check whether --enable-debugger or --disable-debugger was given.
1751 if test "${enable_debugger+set}" = set; then
1752   enableval="$enable_debugger"
1753   opt_debugger=$enableval
1754 fi;
1755 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1756 if test "${enable_directory_stack+set}" = set; then
1757   enableval="$enable_directory_stack"
1758   opt_dirstack=$enableval
1759 fi;
1760 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1761 if test "${enable_disabled_builtins+set}" = set; then
1762   enableval="$enable_disabled_builtins"
1763   opt_disabled_builtins=$enableval
1764 fi;
1765 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1766 if test "${enable_dparen_arithmetic+set}" = set; then
1767   enableval="$enable_dparen_arithmetic"
1768   opt_dparen_arith=$enableval
1769 fi;
1770 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1771 if test "${enable_extended_glob+set}" = set; then
1772   enableval="$enable_extended_glob"
1773   opt_extended_glob=$enableval
1774 fi;
1775 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1776 if test "${enable_help_builtin+set}" = set; then
1777   enableval="$enable_help_builtin"
1778   opt_help=$enableval
1779 fi;
1780 # Check whether --enable-history or --disable-history was given.
1781 if test "${enable_history+set}" = set; then
1782   enableval="$enable_history"
1783   opt_history=$enableval
1784 fi;
1785 # Check whether --enable-job-control or --disable-job-control was given.
1786 if test "${enable_job_control+set}" = set; then
1787   enableval="$enable_job_control"
1788   opt_job_control=$enableval
1789 fi;
1790 # Check whether --enable-multibyte or --disable-multibyte was given.
1791 if test "${enable_multibyte+set}" = set; then
1792   enableval="$enable_multibyte"
1793   opt_multibyte=$enableval
1794 fi;
1795 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1796 if test "${enable_net_redirections+set}" = set; then
1797   enableval="$enable_net_redirections"
1798   opt_net_redirs=$enableval
1799 fi;
1800 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1801 if test "${enable_process_substitution+set}" = set; then
1802   enableval="$enable_process_substitution"
1803   opt_process_subst=$enableval
1804 fi;
1805 # Check whether --enable-progcomp or --disable-progcomp was given.
1806 if test "${enable_progcomp+set}" = set; then
1807   enableval="$enable_progcomp"
1808   opt_progcomp=$enableval
1809 fi;
1810 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1811 if test "${enable_prompt_string_decoding+set}" = set; then
1812   enableval="$enable_prompt_string_decoding"
1813   opt_prompt_decoding=$enableval
1814 fi;
1815 # Check whether --enable-readline or --disable-readline was given.
1816 if test "${enable_readline+set}" = set; then
1817   enableval="$enable_readline"
1818   opt_readline=$enableval
1819 fi;
1820 # Check whether --enable-restricted or --disable-restricted was given.
1821 if test "${enable_restricted+set}" = set; then
1822   enableval="$enable_restricted"
1823   opt_restricted=$enableval
1824 fi;
1825 # Check whether --enable-select or --disable-select was given.
1826 if test "${enable_select+set}" = set; then
1827   enableval="$enable_select"
1828   opt_select=$enableval
1829 fi;
1830 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1831 if test "${enable_separate_helpfiles+set}" = set; then
1832   enableval="$enable_separate_helpfiles"
1833   opt_separate_help=$enableval
1834 fi;
1835 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1836 if test "${enable_usg_echo_default+set}" = set; then
1837   enableval="$enable_usg_echo_default"
1838   opt_xpg_echo=$enableval
1839 fi;
1840 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1841 if test "${enable_xpg_echo_default+set}" = set; then
1842   enableval="$enable_xpg_echo_default"
1843   opt_xpg_echo=$enableval
1844 fi;
1845
1846 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1847 if test "${enable_mem_scramble+set}" = set; then
1848   enableval="$enable_mem_scramble"
1849   opt_memscramble=$enableval
1850 fi;
1851 # Check whether --enable-profiling or --disable-profiling was given.
1852 if test "${enable_profiling+set}" = set; then
1853   enableval="$enable_profiling"
1854   opt_profiling=$enableval
1855 fi;
1856 # Check whether --enable-static-link or --disable-static-link was given.
1857 if test "${enable_static_link+set}" = set; then
1858   enableval="$enable_static_link"
1859   opt_static_link=$enableval
1860 fi;
1861
1862
1863
1864 if test $opt_alias = yes; then
1865 cat >>confdefs.h <<\_ACEOF
1866 #define ALIAS 1
1867 _ACEOF
1868
1869 fi
1870 if test $opt_dirstack = yes; then
1871 cat >>confdefs.h <<\_ACEOF
1872 #define PUSHD_AND_POPD 1
1873 _ACEOF
1874
1875 fi
1876 if test $opt_restricted = yes; then
1877 cat >>confdefs.h <<\_ACEOF
1878 #define RESTRICTED_SHELL 1
1879 _ACEOF
1880
1881 fi
1882 if test $opt_process_subst = yes; then
1883 cat >>confdefs.h <<\_ACEOF
1884 #define PROCESS_SUBSTITUTION 1
1885 _ACEOF
1886
1887 fi
1888 if test $opt_prompt_decoding = yes; then
1889 cat >>confdefs.h <<\_ACEOF
1890 #define PROMPT_STRING_DECODE 1
1891 _ACEOF
1892
1893 fi
1894 if test $opt_select = yes; then
1895 cat >>confdefs.h <<\_ACEOF
1896 #define SELECT_COMMAND 1
1897 _ACEOF
1898
1899 fi
1900 if test $opt_help = yes; then
1901 cat >>confdefs.h <<\_ACEOF
1902 #define HELP_BUILTIN 1
1903 _ACEOF
1904
1905 fi
1906 if test $opt_array_variables = yes; then
1907 cat >>confdefs.h <<\_ACEOF
1908 #define ARRAY_VARS 1
1909 _ACEOF
1910
1911 fi
1912 if test $opt_dparen_arith = yes; then
1913 cat >>confdefs.h <<\_ACEOF
1914 #define DPAREN_ARITHMETIC 1
1915 _ACEOF
1916
1917 fi
1918 if test $opt_brace_expansion = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define BRACE_EXPANSION 1
1921 _ACEOF
1922
1923 fi
1924 if test $opt_disabled_builtins = yes; then
1925 cat >>confdefs.h <<\_ACEOF
1926 #define DISABLED_BUILTINS 1
1927 _ACEOF
1928
1929 fi
1930 if test $opt_command_timing = yes; then
1931 cat >>confdefs.h <<\_ACEOF
1932 #define COMMAND_TIMING 1
1933 _ACEOF
1934
1935 fi
1936 if test $opt_xpg_echo = yes ; then
1937 cat >>confdefs.h <<\_ACEOF
1938 #define DEFAULT_ECHO_TO_XPG 1
1939 _ACEOF
1940
1941 fi
1942 if test $opt_extended_glob = yes ; then
1943 cat >>confdefs.h <<\_ACEOF
1944 #define EXTENDED_GLOB 1
1945 _ACEOF
1946
1947 fi
1948 if test $opt_cond_command = yes ; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define COND_COMMAND 1
1951 _ACEOF
1952
1953 fi
1954 if test $opt_cond_regexp = yes ; then
1955 cat >>confdefs.h <<\_ACEOF
1956 #define COND_REGEXP 1
1957 _ACEOF
1958
1959 fi
1960 if test $opt_arith_for_command = yes; then
1961 cat >>confdefs.h <<\_ACEOF
1962 #define ARITH_FOR_COMMAND 1
1963 _ACEOF
1964
1965 fi
1966 if test $opt_net_redirs = yes; then
1967 cat >>confdefs.h <<\_ACEOF
1968 #define NETWORK_REDIRECTIONS 1
1969 _ACEOF
1970
1971 fi
1972 if test $opt_progcomp = yes; then
1973 cat >>confdefs.h <<\_ACEOF
1974 #define PROGRAMMABLE_COMPLETION 1
1975 _ACEOF
1976
1977 fi
1978 if test $opt_multibyte = no; then
1979 cat >>confdefs.h <<\_ACEOF
1980 #define NO_MULTIBYTE_SUPPORT 1
1981 _ACEOF
1982
1983 fi
1984 if test $opt_debugger = yes; then
1985 cat >>confdefs.h <<\_ACEOF
1986 #define DEBUGGER 1
1987 _ACEOF
1988
1989 fi
1990
1991 if test $opt_memscramble = yes; then
1992 cat >>confdefs.h <<\_ACEOF
1993 #define MEMSCRAMBLE 1
1994 _ACEOF
1995
1996 fi
1997
1998 if test "$opt_minimal_config" = yes; then
1999         TESTSCRIPT=run-minimal
2000 else
2001         TESTSCRIPT=run-all
2002 fi
2003
2004 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2005 if test "$opt_separate_help" != no; then
2006         if test "$opt_separate_help" = "yes" ; then
2007                 HELPDIR='${datadir}/bash'
2008         else
2009                 HELPDIR=$opt_separate_help
2010         fi
2011         HELPDIRDEFINE='-H ${HELPDIR}'
2012         HELPINSTALL='install-help'
2013 fi
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031 echo ""
2032 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2033 echo ""
2034
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$CC"; then
2049   ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069   echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 fi
2077 if test -z "$ac_cv_prog_CC"; then
2078   ac_ct_CC=$CC
2079   # Extract the first word of "gcc", so it can be a program name with args.
2080 set dummy gcc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$ac_ct_CC"; then
2087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_ac_ct_CC="gcc"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   CC=$ac_ct_CC
2115 else
2116   CC="$ac_cv_prog_CC"
2117 fi
2118
2119 if test -z "$CC"; then
2120   if test -n "$ac_tool_prefix"; then
2121   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2122 set dummy ${ac_tool_prefix}cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   if test -n "$CC"; then
2129   ac_cv_prog_CC="$CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136   for ac_exec_ext in '' $ac_executable_extensions; do
2137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138     ac_cv_prog_CC="${ac_tool_prefix}cc"
2139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140     break 2
2141   fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149   echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2151 else
2152   echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 fi
2157 if test -z "$ac_cv_prog_CC"; then
2158   ac_ct_CC=$CC
2159   # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   if test -n "$ac_ct_CC"; then
2167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172   IFS=$as_save_IFS
2173   test -z "$as_dir" && as_dir=.
2174   for ac_exec_ext in '' $ac_executable_extensions; do
2175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176     ac_cv_prog_ac_ct_CC="cc"
2177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178     break 2
2179   fi
2180 done
2181 done
2182
2183 fi
2184 fi
2185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2186 if test -n "$ac_ct_CC"; then
2187   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2188 echo "${ECHO_T}$ac_ct_CC" >&6
2189 else
2190   echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194   CC=$ac_ct_CC
2195 else
2196   CC="$ac_cv_prog_CC"
2197 fi
2198
2199 fi
2200 if test -z "$CC"; then
2201   # Extract the first word of "cc", so it can be a program name with args.
2202 set dummy cc; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206   echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208   if test -n "$CC"; then
2209   ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211   ac_prog_rejected=no
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   for ac_exec_ext in '' $ac_executable_extensions; do
2218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220        ac_prog_rejected=yes
2221        continue
2222      fi
2223     ac_cv_prog_CC="cc"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229
2230 if test $ac_prog_rejected = yes; then
2231   # We found a bogon in the path, so make sure we never use it.
2232   set dummy $ac_cv_prog_CC
2233   shift
2234   if test $# != 0; then
2235     # We chose a different compiler from the bogus one.
2236     # However, it has the same basename, so the bogon will be chosen
2237     # first if we set CC to just the basename; use the full file name.
2238     shift
2239     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2240   fi
2241 fi
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246   echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249   echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253 fi
2254 if test -z "$CC"; then
2255   if test -n "$ac_tool_prefix"; then
2256   for ac_prog in cl
2257   do
2258     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   if test -n "$CC"; then
2266   ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_exec_ext in '' $ac_executable_extensions; do
2274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277     break 2
2278   fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286   echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2288 else
2289   echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293     test -n "$CC" && break
2294   done
2295 fi
2296 if test -z "$CC"; then
2297   ac_ct_CC=$CC
2298   for ac_prog in cl
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -n "$ac_ct_CC"; then
2308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317     ac_cv_prog_ac_ct_CC="$ac_prog"
2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323
2324 fi
2325 fi
2326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327 if test -n "$ac_ct_CC"; then
2328   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329 echo "${ECHO_T}$ac_ct_CC" >&6
2330 else
2331   echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2333 fi
2334
2335   test -n "$ac_ct_CC" && break
2336 done
2337
2338   CC=$ac_ct_CC
2339 fi
2340
2341 fi
2342
2343
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&2;}
2348    { (exit 1); exit 1; }; }
2349
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO:" \
2352      "checking for C compiler version" >&5
2353 ac_compiler=`set X $ac_compile; echo $2`
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2355   (eval $ac_compiler --version </dev/null >&5) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }
2359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2360   (eval $ac_compiler -v </dev/null >&5) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2365   (eval $ac_compiler -V </dev/null >&5) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }
2369
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line $LINENO "configure"
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2390 # of exeext.
2391 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2392 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395   (eval $ac_link_default) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; then
2399   # Find the output, starting from the most likely.  This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401 # resort.
2402
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405 ac_cv_exeext=
2406 # b.out is created by i960 compilers.
2407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408 do
2409   test -f "$ac_file" || continue
2410   case $ac_file in
2411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412         ;;
2413     conftest.$ac_ext )
2414         # This is the source file.
2415         ;;
2416     [ab].out )
2417         # We found the default executable, but exeext='' is most
2418         # certainly right.
2419         break;;
2420     *.* )
2421         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422         # FIXME: I believe we export ac_cv_exeext for Libtool,
2423         # but it would be cool to find out if it's true.  Does anybody
2424         # maintain Libtool? --akim.
2425         export ac_cv_exeext
2426         break;;
2427     * )
2428         break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439    { (exit 77); exit 77; }; }
2440 fi
2441
2442 ac_exeext=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2445
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453   if { ac_try='./$ac_file'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459     cross_compiling=no
2460   else
2461     if test "$cross_compiling" = maybe; then
2462         cross_compiling=yes
2463     else
2464         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470    { (exit 1); exit 1; }; }
2471     fi
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2476
2477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 # Check the compiler produces executables we can run.  If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2485
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489   (eval $ac_link) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; then
2493   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2496 # `rm'.
2497 for ac_file in conftest.exe conftest conftest.*; do
2498   test -f "$ac_file" || continue
2499   case $ac_file in
2500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502           export ac_cv_exeext
2503           break;;
2504     * ) break;;
2505   esac
2506 done
2507 else
2508   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 rm -f conftest$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2518
2519 rm -f conftest.$ac_ext
2520 EXEEXT=$ac_cv_exeext
2521 ac_exeext=$EXEEXT
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553        break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 #line $LINENO "configure"
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585
2586 int
2587 main ()
2588 {
2589 #ifndef __GNUC__
2590        choke me
2591 #endif
2592
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599   (eval $ac_compile) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_compiler_gnu=yes
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_compiler_gnu=no
2615 fi
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2618
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2622 GCC=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CFLAGS=${CFLAGS+set}
2624 ac_save_CFLAGS=$CFLAGS
2625 CFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2627 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cc_g+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638
2639 int
2640 main ()
2641 {
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   ac_cv_prog_cc_g=yes
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 ac_cv_prog_cc_g=no
2665 fi
2666 rm -f conftest.$ac_objext conftest.$ac_ext
2667 fi
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2670 if test "$ac_test_CFLAGS" = set; then
2671   CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673   if test "$GCC" = yes; then
2674     CFLAGS="-g -O2"
2675   else
2676     CFLAGS="-g"
2677   fi
2678 else
2679   if test "$GCC" = yes; then
2680     CFLAGS="-O2"
2681   else
2682     CFLAGS=
2683   fi
2684 fi
2685 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2686 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   ac_cv_prog_cc_stdc=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line $LINENO "configure"
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699 #include <stdarg.h>
2700 #include <stdio.h>
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2707      char **p;
2708      int i;
2709 {
2710   return p[i];
2711 }
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2713 {
2714   char *s;
2715   va_list v;
2716   va_start (v,p);
2717   s = g (p, va_arg (v,int));
2718   va_end (v);
2719   return s;
2720 }
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2727 int
2728 main ()
2729 {
2730 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX                   -qlanglvl=ansi
2738 # Ultrix and OSF/1      -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2741 # SVR4                  -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743 do
2744   CC="$ac_save_CC $ac_arg"
2745   rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; }; then
2757   ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 fi
2764 rm -f conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2768
2769 fi
2770
2771 case "x$ac_cv_prog_cc_stdc" in
2772   x|xno)
2773     echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2775   *)
2776     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778     CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2780
2781 # Some people use a C++ compiler to compile C.  Since we use `exit',
2782 # in C++ we need to declare it.  In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787   choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792   (eval $ac_compile) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -s conftest.$ac_objext'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; }; then
2802   for ac_declaration in \
2803    ''\
2804    '#include <stdlib.h>' \
2805    'extern "C" void std::exit (int) throw (); using std::exit;' \
2806    'extern "C" void std::exit (int); using std::exit;' \
2807    'extern "C" void exit (int) throw ();' \
2808    'extern "C" void exit (int);' \
2809    'void exit (int);'
2810 do
2811   cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 #include <stdlib.h>
2819 $ac_declaration
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   :
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 continue
2846 fi
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848   cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 /* confdefs.h.  */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h.  */
2855 $ac_declaration
2856 int
2857 main ()
2858 {
2859 exit (42);
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866   (eval $ac_compile) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -s conftest.$ac_objext'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; }; then
2876   break
2877 else
2878   echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881 fi
2882 rm -f conftest.$ac_objext conftest.$ac_ext
2883 done
2884 rm -f conftest*
2885 if test -n "$ac_declaration"; then
2886   echo '#ifdef __cplusplus' >>confdefs.h
2887   echo $ac_declaration      >>confdefs.h
2888   echo '#endif'             >>confdefs.h
2889 fi
2890
2891 else
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 fi
2896 rm -f conftest.$ac_objext conftest.$ac_ext
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902
2903
2904
2905
2906         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2907 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2908 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   ac_check_lib_save_LIBS=$LIBS
2912 LIBS="-lcposix  $LIBS"
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #line $LINENO "configure"
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920
2921 /* Override any gcc2 internal prototype to avoid an error.  */
2922 #ifdef __cplusplus
2923 extern "C"
2924 #endif
2925 /* We use char because int might match the return type of a gcc2
2926    builtin and then its argument prototype would still apply.  */
2927 char strerror ();
2928 int
2929 main ()
2930 {
2931 strerror ();
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext conftest$ac_exeext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938   (eval $ac_link) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2948   ac_cv_lib_cposix_strerror=yes
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 ac_cv_lib_cposix_strerror=no
2954 fi
2955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2956 LIBS=$ac_check_lib_save_LIBS
2957 fi
2958 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2959 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2960 if test $ac_cv_lib_cposix_strerror = yes; then
2961   LIBS="$LIBS -lcposix"
2962 fi
2963
2964
2965
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2972 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2973 # On Suns, sometimes $CPP names a directory.
2974 if test -n "$CPP" && test -d "$CPP"; then
2975   CPP=
2976 fi
2977 if test -z "$CPP"; then
2978   if test "${ac_cv_prog_CPP+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981       # Double quotes because CPP needs to be expanded
2982     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2983     do
2984       ac_preproc_ok=false
2985 for ac_c_preproc_warn_flag in '' yes
2986 do
2987   # Use a header file that comes with gcc, so configuring glibc
2988   # with a fresh cross-compiler works.
2989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990   # <limits.h> exists even on freestanding compilers.
2991   # On the NeXT, cc -E runs the code through the compiler's parser,
2992   # not just through cpp. "Syntax error" is here to catch this case.
2993   cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 #ifdef __STDC__
3001 # include <limits.h>
3002 #else
3003 # include <assert.h>
3004 #endif
3005                      Syntax error
3006 _ACEOF
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } >/dev/null; then
3015   if test -s conftest.err; then
3016     ac_cpp_err=$ac_c_preproc_warn_flag
3017   else
3018     ac_cpp_err=
3019   fi
3020 else
3021   ac_cpp_err=yes
3022 fi
3023 if test -z "$ac_cpp_err"; then
3024   :
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029   # Broken: fails on valid input.
3030 continue
3031 fi
3032 rm -f conftest.err conftest.$ac_ext
3033
3034   # OK, works on sane cases.  Now check whether non-existent headers
3035   # can be detected and how.
3036   cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043 #include <ac_nonexistent.h>
3044 _ACEOF
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } >/dev/null; then
3053   if test -s conftest.err; then
3054     ac_cpp_err=$ac_c_preproc_warn_flag
3055   else
3056     ac_cpp_err=
3057   fi
3058 else
3059   ac_cpp_err=yes
3060 fi
3061 if test -z "$ac_cpp_err"; then
3062   # Broken: success on invalid input.
3063 continue
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068   # Passes both tests.
3069 ac_preproc_ok=:
3070 break
3071 fi
3072 rm -f conftest.err conftest.$ac_ext
3073
3074 done
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.$ac_ext
3077 if $ac_preproc_ok; then
3078   break
3079 fi
3080
3081     done
3082     ac_cv_prog_CPP=$CPP
3083
3084 fi
3085   CPP=$ac_cv_prog_CPP
3086 else
3087   ac_cv_prog_CPP=$CPP
3088 fi
3089 echo "$as_me:$LINENO: result: $CPP" >&5
3090 echo "${ECHO_T}$CPP" >&6
3091 ac_preproc_ok=false
3092 for ac_c_preproc_warn_flag in '' yes
3093 do
3094   # Use a header file that comes with gcc, so configuring glibc
3095   # with a fresh cross-compiler works.
3096   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3097   # <limits.h> exists even on freestanding compilers.
3098   # On the NeXT, cc -E runs the code through the compiler's parser,
3099   # not just through cpp. "Syntax error" is here to catch this case.
3100   cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107 #ifdef __STDC__
3108 # include <limits.h>
3109 #else
3110 # include <assert.h>
3111 #endif
3112                      Syntax error
3113 _ACEOF
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } >/dev/null; then
3122   if test -s conftest.err; then
3123     ac_cpp_err=$ac_c_preproc_warn_flag
3124   else
3125     ac_cpp_err=
3126   fi
3127 else
3128   ac_cpp_err=yes
3129 fi
3130 if test -z "$ac_cpp_err"; then
3131   :
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136   # Broken: fails on valid input.
3137 continue
3138 fi
3139 rm -f conftest.err conftest.$ac_ext
3140
3141   # OK, works on sane cases.  Now check whether non-existent headers
3142   # can be detected and how.
3143   cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150 #include <ac_nonexistent.h>
3151 _ACEOF
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } >/dev/null; then
3160   if test -s conftest.err; then
3161     ac_cpp_err=$ac_c_preproc_warn_flag
3162   else
3163     ac_cpp_err=
3164   fi
3165 else
3166   ac_cpp_err=yes
3167 fi
3168 if test -z "$ac_cpp_err"; then
3169   # Broken: success on invalid input.
3170 continue
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175   # Passes both tests.
3176 ac_preproc_ok=:
3177 break
3178 fi
3179 rm -f conftest.err conftest.$ac_ext
3180
3181 done
3182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3183 rm -f conftest.err conftest.$ac_ext
3184 if $ac_preproc_ok; then
3185   :
3186 else
3187   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3188 See \`config.log' for more details." >&5
3189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3190 See \`config.log' for more details." >&2;}
3191    { (exit 1); exit 1; }; }
3192 fi
3193
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200
3201 echo "$as_me:$LINENO: checking for egrep" >&5
3202 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3203 if test "${ac_cv_prog_egrep+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3207     then ac_cv_prog_egrep='grep -E'
3208     else ac_cv_prog_egrep='egrep'
3209     fi
3210 fi
3211 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3212 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3213  EGREP=$ac_cv_prog_egrep
3214
3215
3216 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3218 if test "${ac_cv_header_stdc+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #include <stdlib.h>
3229 #include <stdarg.h>
3230 #include <string.h>
3231 #include <float.h>
3232
3233 int
3234 main ()
3235 {
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243   (eval $ac_compile) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } &&
3247          { ac_try='test -s conftest.$ac_objext'
3248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249   (eval $ac_try) 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; }; then
3253   ac_cv_header_stdc=yes
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_cv_header_stdc=no
3259 fi
3260 rm -f conftest.$ac_objext conftest.$ac_ext
3261
3262 if test $ac_cv_header_stdc = yes; then
3263   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3264   cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271 #include <string.h>
3272
3273 _ACEOF
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275   $EGREP "memchr" >/dev/null 2>&1; then
3276   :
3277 else
3278   ac_cv_header_stdc=no
3279 fi
3280 rm -f conftest*
3281
3282 fi
3283
3284 if test $ac_cv_header_stdc = yes; then
3285   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3286   cat >conftest.$ac_ext <<_ACEOF
3287 #line $LINENO "configure"
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #include <stdlib.h>
3294
3295 _ACEOF
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297   $EGREP "free" >/dev/null 2>&1; then
3298   :
3299 else
3300   ac_cv_header_stdc=no
3301 fi
3302 rm -f conftest*
3303
3304 fi
3305
3306 if test $ac_cv_header_stdc = yes; then
3307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308   if test "$cross_compiling" = yes; then
3309   :
3310 else
3311   cat >conftest.$ac_ext <<_ACEOF
3312 #line $LINENO "configure"
3313 /* confdefs.h.  */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h.  */
3318 #include <ctype.h>
3319 #if ((' ' & 0x0FF) == 0x020)
3320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3322 #else
3323 # define ISLOWER(c) \
3324                    (('a' <= (c) && (c) <= 'i') \
3325                      || ('j' <= (c) && (c) <= 'r') \
3326                      || ('s' <= (c) && (c) <= 'z'))
3327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3328 #endif
3329
3330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3331 int
3332 main ()
3333 {
3334   int i;
3335   for (i = 0; i < 256; i++)
3336     if (XOR (islower (i), ISLOWER (i))
3337         || toupper (i) != TOUPPER (i))
3338       exit(2);
3339   exit (0);
3340 }
3341 _ACEOF
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344   (eval $ac_link) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349   (eval $ac_try) 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; }; then
3353   :
3354 else
3355   echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ( exit $ac_status )
3360 ac_cv_header_stdc=no
3361 fi
3362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3363 fi
3364 fi
3365 fi
3366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3368 if test $ac_cv_header_stdc = yes; then
3369
3370 cat >>confdefs.h <<\_ACEOF
3371 #define STDC_HEADERS 1
3372 _ACEOF
3373
3374 fi
3375
3376 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3387                   inttypes.h stdint.h unistd.h
3388 do
3389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3390 echo "$as_me:$LINENO: checking for $ac_header" >&5
3391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   cat >conftest.$ac_ext <<_ACEOF
3396 #line $LINENO "configure"
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402 $ac_includes_default
3403
3404 #include <$ac_header>
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408   (eval $ac_compile) 2>&5
3409   ac_status=$?
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } &&
3412          { ac_try='test -s conftest.$ac_objext'
3413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414   (eval $ac_try) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; }; then
3418   eval "$as_ac_Header=yes"
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 eval "$as_ac_Header=no"
3424 fi
3425 rm -f conftest.$ac_objext conftest.$ac_ext
3426 fi
3427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3430   cat >>confdefs.h <<_ACEOF
3431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3432 _ACEOF
3433
3434 fi
3435
3436 done
3437
3438
3439 if test "${ac_cv_header_minix_config_h+set}" = set; then
3440   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3441 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3442 if test "${ac_cv_header_minix_config_h+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 fi
3445 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3446 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3447 else
3448   # Is the header compilable?
3449 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3450 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3451 cat >conftest.$ac_ext <<_ACEOF
3452 #line $LINENO "configure"
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 $ac_includes_default
3459 #include <minix/config.h>
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463   (eval $ac_compile) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -s conftest.$ac_objext'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   ac_header_compiler=yes
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 ac_header_compiler=no
3479 fi
3480 rm -f conftest.$ac_objext conftest.$ac_ext
3481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3482 echo "${ECHO_T}$ac_header_compiler" >&6
3483
3484 # Is the header present?
3485 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3486 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #line $LINENO "configure"
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #include <minix/config.h>
3495 _ACEOF
3496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3498   ac_status=$?
3499   grep -v '^ *+' conftest.er1 >conftest.err
3500   rm -f conftest.er1
3501   cat conftest.err >&5
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } >/dev/null; then
3504   if test -s conftest.err; then
3505     ac_cpp_err=$ac_c_preproc_warn_flag
3506   else
3507     ac_cpp_err=
3508   fi
3509 else
3510   ac_cpp_err=yes
3511 fi
3512 if test -z "$ac_cpp_err"; then
3513   ac_header_preproc=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518   ac_header_preproc=no
3519 fi
3520 rm -f conftest.err conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3522 echo "${ECHO_T}$ac_header_preproc" >&6
3523
3524 # So?  What about this header?
3525 case $ac_header_compiler:$ac_header_preproc in
3526   yes:no )
3527     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3528 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3529     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3530 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3531     (
3532       cat <<\_ASBOX
3533 ## ------------------------------------ ##
3534 ## Report this to bug-autoconf@gnu.org. ##
3535 ## ------------------------------------ ##
3536 _ASBOX
3537     ) |
3538       sed "s/^/$as_me: WARNING:     /" >&2
3539     ;;
3540   no:yes )
3541     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3542 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3543     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3544 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3545     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3547     (
3548       cat <<\_ASBOX
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3552 _ASBOX
3553     ) |
3554       sed "s/^/$as_me: WARNING:     /" >&2
3555     ;;
3556 esac
3557 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3558 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3559 if test "${ac_cv_header_minix_config_h+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   ac_cv_header_minix_config_h=$ac_header_preproc
3563 fi
3564 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3565 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3566
3567 fi
3568 if test $ac_cv_header_minix_config_h = yes; then
3569   MINIX=yes
3570 else
3571   MINIX=
3572 fi
3573
3574
3575 if test "$MINIX" = yes; then
3576
3577 cat >>confdefs.h <<\_ACEOF
3578 #define _POSIX_SOURCE 1
3579 _ACEOF
3580
3581
3582 cat >>confdefs.h <<\_ACEOF
3583 #define _POSIX_1_SOURCE 2
3584 _ACEOF
3585
3586
3587 cat >>confdefs.h <<\_ACEOF
3588 #define _MINIX 1
3589 _ACEOF
3590
3591 fi
3592
3593
3594
3595 case $host_os in
3596   *cygwin* ) CYGWIN=yes;;
3597          * ) CYGWIN=no;;
3598 esac
3599
3600
3601 case $host_os in
3602   *mingw32* ) MINGW32=yes;;
3603           * ) MINGW32=no;;
3604 esac
3605
3606
3607 # Check whether --enable-largefile or --disable-largefile was given.
3608 if test "${enable_largefile+set}" = set; then
3609   enableval="$enable_largefile"
3610
3611 fi;
3612 if test "$enable_largefile" != no; then
3613
3614   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3615 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3616 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   ac_cv_sys_largefile_CC=no
3620      if test "$GCC" != yes; then
3621        ac_save_CC=$CC
3622        while :; do
3623          # IRIX 6.2 and later do not support large files by default,
3624          # so use the C compiler's -n32 option if that helps.
3625          cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #include <sys/types.h>
3633  /* Check that off_t can represent 2**63 - 1 correctly.
3634     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3635     since some C++ compilers masquerading as C compilers
3636     incorrectly reject 9223372036854775807.  */
3637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3638   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3639                        && LARGE_OFF_T % 2147483647 == 1)
3640                       ? 1 : -1];
3641 int
3642 main ()
3643 {
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649          rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651   (eval $ac_compile) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655          { ac_try='test -s conftest.$ac_objext'
3656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657   (eval $ac_try) 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; }; then
3661   break
3662 else
3663   echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 fi
3667 rm -f conftest.$ac_objext
3668          CC="$CC -n32"
3669          rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671   (eval $ac_compile) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -s conftest.$ac_objext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   ac_cv_sys_largefile_CC=' -n32'; break
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 fi
3687 rm -f conftest.$ac_objext
3688          break
3689        done
3690        CC=$ac_save_CC
3691        rm -f conftest.$ac_ext
3692     fi
3693 fi
3694 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3695 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3696   if test "$ac_cv_sys_largefile_CC" != no; then
3697     CC=$CC$ac_cv_sys_largefile_CC
3698   fi
3699
3700   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3701 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   while :; do
3706   ac_cv_sys_file_offset_bits=no
3707   cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3709 /* confdefs.h.  */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h.  */
3714 #include <sys/types.h>
3715  /* Check that off_t can represent 2**63 - 1 correctly.
3716     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3717     since some C++ compilers masquerading as C compilers
3718     incorrectly reject 9223372036854775807.  */
3719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3720   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3721                        && LARGE_OFF_T % 2147483647 == 1)
3722                       ? 1 : -1];
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>&5
3734   ac_status=$?
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } &&
3737          { ac_try='test -s conftest.$ac_objext'
3738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739   (eval $ac_try) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); }; }; then
3743   break
3744 else
3745   echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 fi
3749 rm -f conftest.$ac_objext conftest.$ac_ext
3750   cat >conftest.$ac_ext <<_ACEOF
3751 #line $LINENO "configure"
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #define _FILE_OFFSET_BITS 64
3758 #include <sys/types.h>
3759  /* Check that off_t can represent 2**63 - 1 correctly.
3760     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3761     since some C++ compilers masquerading as C compilers
3762     incorrectly reject 9223372036854775807.  */
3763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3764   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3765                        && LARGE_OFF_T % 2147483647 == 1)
3766                       ? 1 : -1];
3767 int
3768 main ()
3769 {
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777   (eval $ac_compile) 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } &&
3781          { ac_try='test -s conftest.$ac_objext'
3782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; }; then
3787   ac_cv_sys_file_offset_bits=64; break
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 fi
3793 rm -f conftest.$ac_objext conftest.$ac_ext
3794   break
3795 done
3796 fi
3797 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3799 if test "$ac_cv_sys_file_offset_bits" != no; then
3800
3801 cat >>confdefs.h <<_ACEOF
3802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3803 _ACEOF
3804
3805 fi
3806 rm -f conftest*
3807   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3808 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3809 if test "${ac_cv_sys_large_files+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   while :; do
3813   ac_cv_sys_large_files=no
3814   cat >conftest.$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3816 /* confdefs.h.  */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h.  */
3821 #include <sys/types.h>
3822  /* Check that off_t can represent 2**63 - 1 correctly.
3823     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3824     since some C++ compilers masquerading as C compilers
3825     incorrectly reject 9223372036854775807.  */
3826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3827   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3828                        && LARGE_OFF_T % 2147483647 == 1)
3829                       ? 1 : -1];
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840   (eval $ac_compile) 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -s conftest.$ac_objext'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; }; then
3850   break
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 fi
3856 rm -f conftest.$ac_objext conftest.$ac_ext
3857   cat >conftest.$ac_ext <<_ACEOF
3858 #line $LINENO "configure"
3859 /* confdefs.h.  */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h.  */
3864 #define _LARGE_FILES 1
3865 #include <sys/types.h>
3866  /* Check that off_t can represent 2**63 - 1 correctly.
3867     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3868     since some C++ compilers masquerading as C compilers
3869     incorrectly reject 9223372036854775807.  */
3870 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3871   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3872                        && LARGE_OFF_T % 2147483647 == 1)
3873                       ? 1 : -1];
3874 int
3875 main ()
3876 {
3877
3878   ;
3879   return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884   (eval $ac_compile) 2>&5
3885   ac_status=$?
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } &&
3888          { ac_try='test -s conftest.$ac_objext'
3889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890   (eval $ac_try) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }; }; then
3894   ac_cv_sys_large_files=1; break
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 fi
3900 rm -f conftest.$ac_objext conftest.$ac_ext
3901   break
3902 done
3903 fi
3904 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3905 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3906 if test "$ac_cv_sys_large_files" != no; then
3907
3908 cat >>confdefs.h <<_ACEOF
3909 #define _LARGE_FILES $ac_cv_sys_large_files
3910 _ACEOF
3911
3912 fi
3913 rm -f conftest*
3914 fi
3915
3916
3917
3918 SIGNAMES_H=lsignames.h
3919
3920
3921
3922 if test "x$cross_compiling" = "xyes"; then
3923     case "${host}" in
3924     *-cygwin*)
3925         cross_cache=${srcdir}/cross-build/cygwin32.cache
3926         SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
3927         ;;
3928     i[3456]86-*-beos*)
3929         cross_cache=${srcdir}/cross-build/x86-beos.cache
3930         SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
3931         ;;
3932     *)  echo "configure: cross-compiling for $host is not supported" >&2
3933         ;;
3934     esac
3935     if test -n "${cross_cache}" && test -r "${cross_cache}"; then
3936         echo "loading cross-build cache file ${cross_cache}"
3937         . ${cross_cache}
3938     fi
3939     unset cross_cache
3940 fi
3941
3942
3943 if test -z "$CC_FOR_BUILD"; then
3944     if test "x$cross_compiling" = "xno"; then
3945         CC_FOR_BUILD='$(CC)'
3946     else
3947         CC_FOR_BUILD=gcc
3948     fi
3949 fi
3950
3951
3952
3953 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
3954
3955 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
3956
3957 if test "$opt_profiling" = "yes"; then
3958         PROFILE_FLAGS=-pg
3959         case "$host_os" in
3960         solaris2*)      ;;
3961         *)              opt_static_link=yes ;;
3962         esac
3963         DEBUG= MALLOC_DEBUG=
3964 fi
3965
3966 if test "$opt_static_link" = yes; then
3967         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
3968         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
3969                 STATIC_LD="-static"
3970                 case "$host_os" in
3971                 solaris2*)      ;;
3972                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
3973                 esac
3974         fi
3975 fi
3976
3977 if test "X$cross_compiling" = "Xno"; then
3978         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
3979         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
3980 else
3981         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
3982         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
3983 fi
3984
3985 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996 if test $ac_cv_c_compiler_gnu = yes; then
3997     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3998 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3999 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002     ac_pattern="Autoconf.*'x'"
4003   cat >conftest.$ac_ext <<_ACEOF
4004 #line $LINENO "configure"
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <sgtty.h>
4011 Autoconf TIOCGETP
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4015   ac_cv_prog_gcc_traditional=yes
4016 else
4017   ac_cv_prog_gcc_traditional=no
4018 fi
4019 rm -f conftest*
4020
4021
4022   if test $ac_cv_prog_gcc_traditional = no; then
4023     cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030 #include <termio.h>
4031 Autoconf TCGETA
4032 _ACEOF
4033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4034   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4035   ac_cv_prog_gcc_traditional=yes
4036 fi
4037 rm -f conftest*
4038
4039   fi
4040 fi
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4043   if test $ac_cv_prog_gcc_traditional = yes; then
4044     CC="$CC -traditional"
4045   fi
4046 fi
4047
4048
4049
4050 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4051 then
4052         # If the user specified --with-installed-readline=PREFIX and PREFIX
4053         # is not `yes', set ac_cv_rl_prefix to PREFIX
4054         test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4055
4056
4057 if test "X$bash_cv_termcap_lib" = "X"; then
4058 _bash_needmsg=yes
4059 else
4060 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4061 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4062 _bash_needmsg=
4063 fi
4064 if test "${bash_cv_termcap_lib+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   echo "$as_me:$LINENO: checking for tgetent" >&5
4068 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4069 if test "${ac_cv_func_tgetent+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   cat >conftest.$ac_ext <<_ACEOF
4073 #line $LINENO "configure"
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 /* System header to define __stub macros and hopefully few prototypes,
4080     which can conflict with char tgetent (); below.
4081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082     <limits.h> exists even on freestanding compilers.  */
4083 #ifdef __STDC__
4084 # include <limits.h>
4085 #else
4086 # include <assert.h>
4087 #endif
4088 /* Override any gcc2 internal prototype to avoid an error.  */
4089 #ifdef __cplusplus
4090 extern "C"
4091 {
4092 #endif
4093 /* We use char because int might match the return type of a gcc2
4094    builtin and then its argument prototype would still apply.  */
4095 char tgetent ();
4096 /* The GNU C library defines this for functions which it implements
4097     to always fail with ENOSYS.  Some functions are actually named
4098     something starting with __ and the normal name is an alias.  */
4099 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4100 choke me
4101 #else
4102 char (*f) () = tgetent;
4103 #endif
4104 #ifdef __cplusplus
4105 }
4106 #endif
4107
4108 int
4109 main ()
4110 {
4111 return f != tgetent;
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext conftest$ac_exeext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118   (eval $ac_link) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); } &&
4122          { ac_try='test -s conftest$ac_exeext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_func_tgetent=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_func_tgetent=no
4134 fi
4135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4136 fi
4137 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4138 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4139 if test $ac_cv_func_tgetent = yes; then
4140   bash_cv_termcap_lib=libc
4141 else
4142   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4143 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4144 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   ac_check_lib_save_LIBS=$LIBS
4148 LIBS="-ltermcap  $LIBS"
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line $LINENO "configure"
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156
4157 /* Override any gcc2 internal prototype to avoid an error.  */
4158 #ifdef __cplusplus
4159 extern "C"
4160 #endif
4161 /* We use char because int might match the return type of a gcc2
4162    builtin and then its argument prototype would still apply.  */
4163 char tgetent ();
4164 int
4165 main ()
4166 {
4167 tgetent ();
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext conftest$ac_exeext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4174   (eval $ac_link) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } &&
4178          { ac_try='test -s conftest$ac_exeext'
4179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180   (eval $ac_try) 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }; }; then
4184   ac_cv_lib_termcap_tgetent=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_lib_termcap_tgetent=no
4190 fi
4191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4192 LIBS=$ac_check_lib_save_LIBS
4193 fi
4194 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4195 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4196 if test $ac_cv_lib_termcap_tgetent = yes; then
4197   bash_cv_termcap_lib=libtermcap
4198 else
4199   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4200 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4201 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   ac_check_lib_save_LIBS=$LIBS
4205 LIBS="-ltinfo  $LIBS"
4206 cat >conftest.$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213
4214 /* Override any gcc2 internal prototype to avoid an error.  */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219    builtin and then its argument prototype would still apply.  */
4220 char tgetent ();
4221 int
4222 main ()
4223 {
4224 tgetent ();
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231   (eval $ac_link) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } &&
4235          { ac_try='test -s conftest$ac_exeext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_cv_lib_tinfo_tgetent=yes
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 ac_cv_lib_tinfo_tgetent=no
4247 fi
4248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4250 fi
4251 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4252 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4253 if test $ac_cv_lib_tinfo_tgetent = yes; then
4254   bash_cv_termcap_lib=libtinfo
4255 else
4256   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4257 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4258 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4259   echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261   ac_check_lib_save_LIBS=$LIBS
4262 LIBS="-lcurses  $LIBS"
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270
4271 /* Override any gcc2 internal prototype to avoid an error.  */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 /* We use char because int might match the return type of a gcc2
4276    builtin and then its argument prototype would still apply.  */
4277 char tgetent ();
4278 int
4279 main ()
4280 {
4281 tgetent ();
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288   (eval $ac_link) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -s conftest$ac_exeext'
4293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294   (eval $ac_try) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; }; then
4298   ac_cv_lib_curses_tgetent=yes
4299 else
4300   echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303 ac_cv_lib_curses_tgetent=no
4304 fi
4305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4306 LIBS=$ac_check_lib_save_LIBS
4307 fi
4308 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4309 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4310 if test $ac_cv_lib_curses_tgetent = yes; then
4311   bash_cv_termcap_lib=libcurses
4312 else
4313   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4314 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4315 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   ac_check_lib_save_LIBS=$LIBS
4319 LIBS="-lncurses  $LIBS"
4320 cat >conftest.$ac_ext <<_ACEOF
4321 #line $LINENO "configure"
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327
4328 /* Override any gcc2 internal prototype to avoid an error.  */
4329 #ifdef __cplusplus
4330 extern "C"
4331 #endif
4332 /* We use char because int might match the return type of a gcc2
4333    builtin and then its argument prototype would still apply.  */
4334 char tgetent ();
4335 int
4336 main ()
4337 {
4338 tgetent ();
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345   (eval $ac_link) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -s conftest$ac_exeext'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; }; then
4355   ac_cv_lib_ncurses_tgetent=yes
4356 else
4357   echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ac_cv_lib_ncurses_tgetent=no
4361 fi
4362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4363 LIBS=$ac_check_lib_save_LIBS
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4366 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4367 if test $ac_cv_lib_ncurses_tgetent = yes; then
4368   bash_cv_termcap_lib=libncurses
4369 else
4370   bash_cv_termcap_lib=gnutermcap
4371 fi
4372
4373 fi
4374
4375 fi
4376
4377 fi
4378
4379 fi
4380
4381 fi
4382
4383 if test "X$_bash_needmsg" = "Xyes"; then
4384 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4385 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4386 fi
4387 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4388 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4389 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4390 LDFLAGS="$LDFLAGS -L./lib/termcap"
4391 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4392 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4393 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4394 TERMCAP_LIB=-ltermcap
4395 TERMCAP_DEP=
4396 elif test $bash_cv_termcap_lib = libtinfo; then
4397 TERMCAP_LIB=-ltinfo
4398 TERMCAP_DEP=
4399 elif test $bash_cv_termcap_lib = libncurses; then
4400 TERMCAP_LIB=-lncurses
4401 TERMCAP_DEP=
4402 elif test $bash_cv_termcap_lib = libc; then
4403 TERMCAP_LIB=
4404 TERMCAP_DEP=
4405 else
4406 TERMCAP_LIB=-lcurses
4407 TERMCAP_DEP=
4408 fi
4409
4410
4411
4412
4413 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4414 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4415
4416 # What a pain in the ass this is.
4417
4418 # save cpp and ld options
4419 _save_CFLAGS="$CFLAGS"
4420 _save_LDFLAGS="$LDFLAGS"
4421 _save_LIBS="$LIBS"
4422
4423 # Don't set ac_cv_rl_prefix if the caller has already assigned a value.  This
4424 # allows the caller to do something like $_rl_prefix=$withval if the user
4425 # specifies --with-installed-readline=PREFIX as an argument to configure
4426
4427 if test -z "$ac_cv_rl_prefix"; then
4428 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4429 fi
4430
4431 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4432 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4433
4434 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4435 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4436 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4437
4438 if test "${ac_cv_rl_version+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test "$cross_compiling" = yes; then
4442   ac_cv_rl_version='4.2'
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451
4452 #include <stdio.h>
4453 #include <readline/readline.h>
4454
4455 main()
4456 {
4457         FILE *fp;
4458         fp = fopen("conftest.rlv", "w");
4459         if (fp == 0) exit(1);
4460         fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4461         fclose(fp);
4462         exit(0);
4463 }
4464
4465 _ACEOF
4466 rm -f conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468   (eval $ac_link) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473   (eval $ac_try) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; }; then
4477   ac_cv_rl_version=`cat conftest.rlv`
4478 else
4479   echo "$as_me: program exited with status $ac_status" >&5
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ( exit $ac_status )
4484 ac_cv_rl_version='0.0'
4485 fi
4486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487 fi
4488 fi
4489
4490
4491 CFLAGS="$_save_CFLAGS"
4492 LDFLAGS="$_save_LDFLAGS"
4493 LIBS="$_save_LIBS"
4494
4495 RL_MAJOR=0
4496 RL_MINOR=0
4497
4498 # (
4499 case "$ac_cv_rl_version" in
4500 2*|3*|4*|5*|6*|7*|8*|9*)
4501         RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4502         RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4503         ;;
4504 esac
4505
4506 # (((
4507 case $RL_MAJOR in
4508 [0-9][0-9])     _RL_MAJOR=$RL_MAJOR ;;
4509 [0-9])  _RL_MAJOR=0$RL_MAJOR ;;
4510 *)              _RL_MAJOR=00 ;;
4511 esac
4512
4513 # (((
4514 case $RL_MINOR in
4515 [0-9][0-9])     _RL_MINOR=$RL_MINOR ;;
4516 [0-9])  _RL_MINOR=0$RL_MINOR ;;
4517 *)              _RL_MINOR=00 ;;
4518 esac
4519
4520 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4521
4522 # Readline versions greater than 4.2 have these defines in readline.h
4523
4524 if test $ac_cv_rl_version = '0.0' ; then
4525         { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4526 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4527 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4528         # set these for use by the caller
4529         RL_PREFIX=$ac_cv_rl_prefix
4530         RL_LIBDIR=$ac_cv_rl_libdir
4531         RL_INCLUDEDIR=$ac_cv_rl_includedir
4532         echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4533 echo "${ECHO_T}$ac_cv_rl_version" >&6
4534 else
4535
4536
4537 cat >>confdefs.h <<_ACEOF
4538 #define RL_READLINE_VERSION $RL_VERSION
4539 _ACEOF
4540
4541
4542 cat >>confdefs.h <<_ACEOF
4543 #define RL_VERSION_MAJOR $RL_MAJOR
4544 _ACEOF
4545
4546
4547 cat >>confdefs.h <<_ACEOF
4548 #define RL_VERSION_MINOR $RL_MINOR
4549 _ACEOF
4550
4551
4552
4553
4554
4555
4556 # set these for use by the caller
4557 RL_PREFIX=$ac_cv_rl_prefix
4558 RL_LIBDIR=$ac_cv_rl_libdir
4559 RL_INCLUDEDIR=$ac_cv_rl_includedir
4560
4561 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4562 echo "${ECHO_T}$ac_cv_rl_version" >&6
4563
4564 fi
4565
4566
4567         case "$ac_cv_rl_version" in
4568         5*|6*|7*|8*|9*) ;;
4569         *)      opt_with_installed_readline=no
4570                 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4571 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4572                 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4573 echo "$as_me: WARNING: using private bash version" >&2;}
4574                 ;;
4575         esac
4576 fi
4577
4578 if test $opt_readline = yes; then
4579         cat >>confdefs.h <<\_ACEOF
4580 #define READLINE 1
4581 _ACEOF
4582
4583         READLINE_LIB=-lreadline
4584         if test "$opt_with_installed_readline" != "no" ; then
4585                 case "$opt_with_installed_readline" in
4586                 yes)    RL_INCLUDE= ;;
4587                 *)      case "$RL_INCLUDEDIR" in
4588                         /usr/include)   ;;
4589                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4590                         esac
4591                         ;;
4592                 esac
4593                 READLINE_DEP=
4594         else
4595                 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4596                 READLINE_DEP='$(READLINE_LIBRARY)'
4597         fi
4598 else
4599         RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4600         READLINE_LIB= READLINE_DEP=
4601 fi
4602 if test $opt_history = yes || test $opt_bang_history = yes; then
4603         if test $opt_history = yes; then
4604                 cat >>confdefs.h <<\_ACEOF
4605 #define HISTORY 1
4606 _ACEOF
4607
4608         fi
4609         if test $opt_bang_history = yes; then
4610                 cat >>confdefs.h <<\_ACEOF
4611 #define BANG_HISTORY 1
4612 _ACEOF
4613
4614         fi
4615         HISTORY_LIB=-lhistory
4616         if test "$opt_with_installed_readline" != "no"; then
4617                 HIST_LIBDIR=$RL_LIBDIR
4618                 HISTORY_DEP=
4619                 case "$opt_with_installed_readline" in
4620                 yes)    RL_INCLUDE= ;;
4621                 *)      case "$RL_INCLUDEDIR" in
4622                         /usr/include)   ;;
4623                         *)              RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4624                         esac
4625                         ;;
4626                 esac
4627         else
4628                 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4629                 HISTORY_DEP='$(HISTORY_LIBRARY)'
4630         fi
4631 else
4632         HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4633         HISTORY_LIB= HISTORY_DEP=
4634 fi
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645 # Find a good install program.  We prefer a C program (faster),
4646 # so one script is as good as another.  But avoid the broken or
4647 # incompatible versions:
4648 # SysV /etc/install, /usr/sbin/install
4649 # SunOS /usr/etc/install
4650 # IRIX /sbin/install
4651 # AIX /bin/install
4652 # AmigaOS /C/install, which installs bootblocks on floppy discs
4653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4656 # ./install, which can be erroneously created by make from ./install.sh.
4657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4659 if test -z "$INSTALL"; then
4660 if test "${ac_cv_path_install+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668   # Account for people who put trailing slashes in PATH elements.
4669 case $as_dir/ in
4670   ./ | .// | /cC/* | \
4671   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4672   /usr/ucb/* ) ;;
4673   *)
4674     # OSF1 and SCO ODT 3.0 have their own names for install.
4675     # Don't use installbsd from OSF since it installs stuff as root
4676     # by default.
4677     for ac_prog in ginstall scoinst install; do
4678       for ac_exec_ext in '' $ac_executable_extensions; do
4679         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4680           if test $ac_prog = install &&
4681             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4682             # AIX install.  It has an incompatible calling convention.
4683             :
4684           elif test $ac_prog = install &&
4685             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4686             # program-specific install script used by HP pwplus--don't use.
4687             :
4688           else
4689             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4690             break 3
4691           fi
4692         fi
4693       done
4694     done
4695     ;;
4696 esac
4697 done
4698
4699
4700 fi
4701   if test "${ac_cv_path_install+set}" = set; then
4702     INSTALL=$ac_cv_path_install
4703   else
4704     # As a last resort, use the slow shell script.  We don't cache a
4705     # path for INSTALL within a source directory, because that will
4706     # break other packages using the cache if that directory is
4707     # removed, or if the path is relative.
4708     INSTALL=$ac_install_sh
4709   fi
4710 fi
4711 echo "$as_me:$LINENO: result: $INSTALL" >&5
4712 echo "${ECHO_T}$INSTALL" >&6
4713
4714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4715 # It thinks the first close brace ends the variable substitution.
4716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4717
4718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4719
4720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4721
4722 # Extract the first word of "ar", so it can be a program name with args.
4723 set dummy ar; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_AR+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$AR"; then
4730   ac_cv_prog_AR="$AR" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739     ac_cv_prog_AR=""
4740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744 done
4745
4746   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4747 fi
4748 fi
4749 AR=$ac_cv_prog_AR
4750 if test -n "$AR"; then
4751   echo "$as_me:$LINENO: result: $AR" >&5
4752 echo "${ECHO_T}$AR" >&6
4753 else
4754   echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4756 fi
4757
4758 test -n "$ARFLAGS" || ARFLAGS="cr"
4759 if test -n "$ac_tool_prefix"; then
4760   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_RANLIB+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   if test -n "$RANLIB"; then
4768   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775   for ac_exec_ext in '' $ac_executable_extensions; do
4776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782 done
4783
4784 fi
4785 fi
4786 RANLIB=$ac_cv_prog_RANLIB
4787 if test -n "$RANLIB"; then
4788   echo "$as_me:$LINENO: result: $RANLIB" >&5
4789 echo "${ECHO_T}$RANLIB" >&6
4790 else
4791   echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793 fi
4794
4795 fi
4796 if test -z "$ac_cv_prog_RANLIB"; then
4797   ac_ct_RANLIB=$RANLIB
4798   # Extract the first word of "ranlib", so it can be a program name with args.
4799 set dummy ranlib; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test -n "$ac_ct_RANLIB"; then
4806   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813   for ac_exec_ext in '' $ac_executable_extensions; do
4814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_prog_ac_ct_RANLIB="ranlib"
4816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820 done
4821
4822   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4823 fi
4824 fi
4825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4826 if test -n "$ac_ct_RANLIB"; then
4827   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4828 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4829 else
4830   echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4832 fi
4833
4834   RANLIB=$ac_ct_RANLIB
4835 else
4836   RANLIB="$ac_cv_prog_RANLIB"
4837 fi
4838
4839 for ac_prog in 'bison -y' byacc
4840 do
4841   # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_prog_YACC+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   if test -n "$YACC"; then
4849   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856   for ac_exec_ext in '' $ac_executable_extensions; do
4857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858     ac_cv_prog_YACC="$ac_prog"
4859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863 done
4864
4865 fi
4866 fi
4867 YACC=$ac_cv_prog_YACC
4868 if test -n "$YACC"; then
4869   echo "$as_me:$LINENO: result: $YACC" >&5
4870 echo "${ECHO_T}$YACC" >&6
4871 else
4872   echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874 fi
4875
4876   test -n "$YACC" && break
4877 done
4878 test -n "$YACC" || YACC="yacc"
4879
4880 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4881 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4882 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4883 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   cat >conftest.make <<\_ACEOF
4887 all:
4888         @echo 'ac_maketemp="$(MAKE)"'
4889 _ACEOF
4890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4891 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4892 if test -n "$ac_maketemp"; then
4893   eval ac_cv_prog_make_${ac_make}_set=yes
4894 else
4895   eval ac_cv_prog_make_${ac_make}_set=no
4896 fi
4897 rm -f conftest.make
4898 fi
4899 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4900   echo "$as_me:$LINENO: result: yes" >&5
4901 echo "${ECHO_T}yes" >&6
4902   SET_MAKE=
4903 else
4904   echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6
4906   SET_MAKE="MAKE=${MAKE-make}"
4907 fi
4908
4909
4910 case "$host_os" in
4911 opennt*|interix*)       MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
4912 *)                      MAKE_SHELL=/bin/sh ;;
4913 esac
4914
4915
4916 cat >>confdefs.h <<\_ACEOF
4917 #define _GNU_SOURCE 1
4918 _ACEOF
4919
4920
4921 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4922 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4923 if test "${ac_cv_c_const+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 int
4935 main ()
4936 {
4937 /* FIXME: Include the comments suggested by Paul. */
4938 #ifndef __cplusplus
4939   /* Ultrix mips cc rejects this.  */
4940   typedef int charset[2];
4941   const charset x;
4942   /* SunOS 4.1.1 cc rejects this.  */
4943   char const *const *ccp;
4944   char **p;
4945   /* NEC SVR4.0.2 mips cc rejects this.  */
4946   struct point {int x, y;};
4947   static struct point const zero = {0,0};
4948   /* AIX XL C 1.02.0.0 rejects this.
4949      It does not let you subtract one const X* pointer from another in
4950      an arm of an if-expression whose if-part is not a constant
4951      expression */
4952   const char *g = "string";
4953   ccp = &g + (g ? g-g : 0);
4954   /* HPUX 7.0 cc rejects these. */
4955   ++ccp;
4956   p = (char**) ccp;
4957   ccp = (char const *const *) p;
4958   { /* SCO 3.2v4 cc rejects this.  */
4959     char *t;
4960     char const *s = 0 ? (char *) 0 : (char const *) 0;
4961
4962     *t++ = 0;
4963   }
4964   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4965     int x[] = {25, 17};
4966     const int *foo = &x[0];
4967     ++foo;
4968   }
4969   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4970     typedef const int *iptr;
4971     iptr p = 0;
4972     ++p;
4973   }
4974   { /* AIX XL C 1.02.0.0 rejects this saying
4975        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4976     struct s { int j; const int *ap[3]; };
4977     struct s *b; b->j = 5;
4978   }
4979   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4980     const int foo = 10;
4981   }
4982 #endif
4983
4984   ;
4985   return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990   (eval $ac_compile) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   ac_cv_c_const=yes
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 ac_cv_c_const=no
5006 fi
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5008 fi
5009 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5010 echo "${ECHO_T}$ac_cv_c_const" >&6
5011 if test $ac_cv_c_const = no; then
5012
5013 cat >>confdefs.h <<\_ACEOF
5014 #define const
5015 _ACEOF
5016
5017 fi
5018
5019 echo "$as_me:$LINENO: checking for inline" >&5
5020 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5021 if test "${ac_cv_c_inline+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   ac_cv_c_inline=no
5025 for ac_kw in inline __inline__ __inline; do
5026   cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5028 /* confdefs.h.  */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h.  */
5033 #ifndef __cplusplus
5034 typedef int foo_t;
5035 static $ac_kw foo_t static_foo () {return 0; }
5036 $ac_kw foo_t foo () {return 0; }
5037 #endif
5038
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042   (eval $ac_compile) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -s conftest.$ac_objext'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; }; then
5052   ac_cv_c_inline=$ac_kw; break
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 fi
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5059 done
5060
5061 fi
5062 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5063 echo "${ECHO_T}$ac_cv_c_inline" >&6
5064 case $ac_cv_c_inline in
5065   inline | yes) ;;
5066   no)
5067 cat >>confdefs.h <<\_ACEOF
5068 #define inline
5069 _ACEOF
5070  ;;
5071   *)  cat >>confdefs.h <<_ACEOF
5072 #define inline $ac_cv_c_inline
5073 _ACEOF
5074  ;;
5075 esac
5076
5077 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5078 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5079 if test "${ac_cv_c_bigendian+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   # See if sys/param.h defines the BYTE_ORDER macro.
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 #include <sys/types.h>
5091 #include <sys/param.h>
5092
5093 int
5094 main ()
5095 {
5096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5097  bogus endian macros
5098 #endif
5099
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106   (eval $ac_compile) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -s conftest.$ac_objext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   # It does; now see whether it defined to BIG_ENDIAN or not.
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #include <sys/types.h>
5125 #include <sys/param.h>
5126
5127 int
5128 main ()
5129 {
5130 #if BYTE_ORDER != BIG_ENDIAN
5131  not big endian
5132 #endif
5133
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140   (eval $ac_compile) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } &&
5144          { ac_try='test -s conftest.$ac_objext'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   ac_cv_c_bigendian=yes
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 ac_cv_c_bigendian=no
5156 fi
5157 rm -f conftest.$ac_objext conftest.$ac_ext
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162 # It does not; compile a test program.
5163 if test "$cross_compiling" = yes; then
5164   # try to guess the endianness by grepping values into an object file
5165   ac_cv_c_bigendian=unknown
5166   cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5174 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5175 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5176 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5177 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5178 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5179 int
5180 main ()
5181 {
5182  _ascii (); _ebcdic ();
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189   (eval $ac_compile) 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); } &&
5193          { ac_try='test -s conftest.$ac_objext'
5194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195   (eval $ac_try) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; }; then
5199   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5200   ac_cv_c_bigendian=yes
5201 fi
5202 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5203   if test "$ac_cv_c_bigendian" = unknown; then
5204     ac_cv_c_bigendian=no
5205   else
5206     # finding both strings is unlikely to happen, but who knows?
5207     ac_cv_c_bigendian=unknown
5208   fi
5209 fi
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 fi
5215 rm -f conftest.$ac_objext conftest.$ac_ext
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 /* confdefs.h.  */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h.  */
5224 int
5225 main ()
5226 {
5227   /* Are we little or big endian?  From Harbison&Steele.  */
5228   union
5229   {
5230     long l;
5231     char c[sizeof (long)];
5232   } u;
5233   u.l = 1;
5234   exit (u.c[sizeof (long) - 1] == 1);
5235 }
5236 _ACEOF
5237 rm -f conftest$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239   (eval $ac_link) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; }; then
5248   ac_cv_c_bigendian=no
5249 else
5250   echo "$as_me: program exited with status $ac_status" >&5
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ( exit $ac_status )
5255 ac_cv_c_bigendian=yes
5256 fi
5257 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5258 fi
5259 fi
5260 rm -f conftest.$ac_objext conftest.$ac_ext
5261 fi
5262 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5263 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5264 case $ac_cv_c_bigendian in
5265   yes)
5266
5267 cat >>confdefs.h <<\_ACEOF
5268 #define WORDS_BIGENDIAN 1
5269 _ACEOF
5270  ;;
5271   no)
5272      ;;
5273   *)
5274     { { echo "$as_me:$LINENO: error: unknown endianness
5275 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5276 echo "$as_me: error: unknown endianness
5277 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5278    { (exit 1); exit 1; }; } ;;
5279 esac
5280
5281 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5282 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5283 if test "${ac_cv_c_stringize+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5293 #define x(y) #y
5294
5295 char *s = x(teststring);
5296 _ACEOF
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298   $EGREP "#teststring" >/dev/null 2>&1; then
5299   ac_cv_c_stringize=no
5300 else
5301   ac_cv_c_stringize=yes
5302 fi
5303 rm -f conftest*
5304
5305 fi
5306 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5307 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5308 if test $ac_cv_c_stringize = yes; then
5309
5310 cat >>confdefs.h <<\_ACEOF
5311 #define HAVE_STRINGIZE 1
5312 _ACEOF
5313
5314 fi
5315
5316 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5317 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5318 if test "${ac_cv_c_long_double+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 #include <float.h>
5329           long double foo = 0.0;
5330 int
5331 main ()
5332 {
5333 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5334           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5335           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5336 test_array [0] = 0
5337
5338   ;
5339   return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344   (eval $ac_compile) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -s conftest.$ac_objext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_cv_c_long_double=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_cv_c_long_double=no
5360 fi
5361 rm -f conftest.$ac_objext conftest.$ac_ext
5362 fi
5363 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5364 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5365 if test $ac_cv_c_long_double = yes; then
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_LONG_DOUBLE 1
5369 _ACEOF
5370
5371 fi
5372
5373 echo "$as_me:$LINENO: checking for function prototypes" >&5
5374 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5375 if test "$ac_cv_prog_cc_stdc" != no; then
5376   echo "$as_me:$LINENO: result: yes" >&5
5377 echo "${ECHO_T}yes" >&6
5378
5379 cat >>confdefs.h <<\_ACEOF
5380 #define PROTOTYPES 1
5381 _ACEOF
5382
5383
5384 cat >>confdefs.h <<\_ACEOF
5385 #define __PROTOTYPES 1
5386 _ACEOF
5387
5388 else
5389   echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5391 fi
5392
5393
5394 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5395 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5396 if test "${ac_cv_c_char_unsigned+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406 $ac_includes_default
5407 int
5408 main ()
5409 {
5410 static int test_array [1 - 2 * !(((char) -1) < 0)];
5411 test_array [0] = 0
5412
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419   (eval $ac_compile) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } &&
5423          { ac_try='test -s conftest.$ac_objext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   ac_cv_c_char_unsigned=no
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_cv_c_char_unsigned=yes
5435 fi
5436 rm -f conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5439 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5440 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5441   cat >>confdefs.h <<\_ACEOF
5442 #define __CHAR_UNSIGNED__ 1
5443 _ACEOF
5444
5445 fi
5446
5447
5448
5449         MKINSTALLDIRS=
5450   if test -n "$ac_aux_dir"; then
5451     case "$ac_aux_dir" in
5452       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5453       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5454     esac
5455   fi
5456   if test -z "$MKINSTALLDIRS"; then
5457     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5458   fi
5459
5460
5461
5462   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5463 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5464     # Check whether --enable-nls or --disable-nls was given.
5465 if test "${enable_nls+set}" = set; then
5466   enableval="$enable_nls"
5467   USE_NLS=$enableval
5468 else
5469   USE_NLS=yes
5470 fi;
5471   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5472 echo "${ECHO_T}$USE_NLS" >&6
5473
5474
5475
5476
5477
5478
5479 # Prepare PATH_SEPARATOR.
5480 # The user is always right.
5481 if test "${PATH_SEPARATOR+set}" != set; then
5482   echo "#! /bin/sh" >conf$$.sh
5483   echo  "exit 0"   >>conf$$.sh
5484   chmod +x conf$$.sh
5485   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5486     PATH_SEPARATOR=';'
5487   else
5488     PATH_SEPARATOR=:
5489   fi
5490   rm -f conf$$.sh
5491 fi
5492
5493 # Find out how to test for executable files. Don't use a zero-byte file,
5494 # as systems may use methods other than mode bits to determine executability.
5495 cat >conf$$.file <<_ASEOF
5496 #! /bin/sh
5497 exit 0
5498 _ASEOF
5499 chmod +x conf$$.file
5500 if test -x conf$$.file >/dev/null 2>&1; then
5501   ac_executable_p="test -x"
5502 else
5503   ac_executable_p="test -f"
5504 fi
5505 rm -f conf$$.file
5506
5507 # Extract the first word of "msgfmt", so it can be a program name with args.
5508 set dummy msgfmt; ac_word=$2
5509 echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5511 if test "${ac_cv_path_MSGFMT+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   case "$MSGFMT" in
5515   [\\/]* | ?:[\\/]*)
5516     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5517     ;;
5518   *)
5519     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5520     for ac_dir in $PATH; do
5521       IFS="$ac_save_IFS"
5522       test -z "$ac_dir" && ac_dir=.
5523       for ac_exec_ext in '' $ac_executable_extensions; do
5524         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5525           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5526      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5527             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5528             break 2
5529           fi
5530         fi
5531       done
5532     done
5533     IFS="$ac_save_IFS"
5534   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5535     ;;
5536 esac
5537 fi
5538 MSGFMT="$ac_cv_path_MSGFMT"
5539 if test "$MSGFMT" != ":"; then
5540   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5541 echo "${ECHO_T}$MSGFMT" >&6
5542 else
5543   echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6
5545 fi
5546
5547   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5548 set dummy gmsgfmt; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   case $GMSGFMT in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564   for ac_exec_ext in '' $ac_executable_extensions; do
5565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571 done
5572
5573   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5574   ;;
5575 esac
5576 fi
5577 GMSGFMT=$ac_cv_path_GMSGFMT
5578
5579 if test -n "$GMSGFMT"; then
5580   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5581 echo "${ECHO_T}$GMSGFMT" >&6
5582 else
5583   echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5585 fi
5586
5587
5588
5589 # Prepare PATH_SEPARATOR.
5590 # The user is always right.
5591 if test "${PATH_SEPARATOR+set}" != set; then
5592   echo "#! /bin/sh" >conf$$.sh
5593   echo  "exit 0"   >>conf$$.sh
5594   chmod +x conf$$.sh
5595   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5596     PATH_SEPARATOR=';'
5597   else
5598     PATH_SEPARATOR=:
5599   fi
5600   rm -f conf$$.sh
5601 fi
5602
5603 # Find out how to test for executable files. Don't use a zero-byte file,
5604 # as systems may use methods other than mode bits to determine executability.
5605 cat >conf$$.file <<_ASEOF
5606 #! /bin/sh
5607 exit 0
5608 _ASEOF
5609 chmod +x conf$$.file
5610 if test -x conf$$.file >/dev/null 2>&1; then
5611   ac_executable_p="test -x"
5612 else
5613   ac_executable_p="test -f"
5614 fi
5615 rm -f conf$$.file
5616
5617 # Extract the first word of "xgettext", so it can be a program name with args.
5618 set dummy xgettext; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   case "$XGETTEXT" in
5625   [\\/]* | ?:[\\/]*)
5626     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5627     ;;
5628   *)
5629     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5630     for ac_dir in $PATH; do
5631       IFS="$ac_save_IFS"
5632       test -z "$ac_dir" && ac_dir=.
5633       for ac_exec_ext in '' $ac_executable_extensions; do
5634         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5635           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5636      (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
5637             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5638             break 2
5639           fi
5640         fi
5641       done
5642     done
5643     IFS="$ac_save_IFS"
5644   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5645     ;;
5646 esac
5647 fi
5648 XGETTEXT="$ac_cv_path_XGETTEXT"
5649 if test "$XGETTEXT" != ":"; then
5650   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5651 echo "${ECHO_T}$XGETTEXT" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657     rm -f messages.po
5658
5659
5660 # Prepare PATH_SEPARATOR.
5661 # The user is always right.
5662 if test "${PATH_SEPARATOR+set}" != set; then
5663   echo "#! /bin/sh" >conf$$.sh
5664   echo  "exit 0"   >>conf$$.sh
5665   chmod +x conf$$.sh
5666   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5667     PATH_SEPARATOR=';'
5668   else
5669     PATH_SEPARATOR=:
5670   fi
5671   rm -f conf$$.sh
5672 fi
5673
5674 # Find out how to test for executable files. Don't use a zero-byte file,
5675 # as systems may use methods other than mode bits to determine executability.
5676 cat >conf$$.file <<_ASEOF
5677 #! /bin/sh
5678 exit 0
5679 _ASEOF
5680 chmod +x conf$$.file
5681 if test -x conf$$.file >/dev/null 2>&1; then
5682   ac_executable_p="test -x"
5683 else
5684   ac_executable_p="test -f"
5685 fi
5686 rm -f conf$$.file
5687
5688 # Extract the first word of "msgmerge", so it can be a program name with args.
5689 set dummy msgmerge; ac_word=$2
5690 echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5692 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   case "$MSGMERGE" in
5696   [\\/]* | ?:[\\/]*)
5697     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5698     ;;
5699   *)
5700     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5701     for ac_dir in $PATH; do
5702       IFS="$ac_save_IFS"
5703       test -z "$ac_dir" && ac_dir=.
5704       for ac_exec_ext in '' $ac_executable_extensions; do
5705         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5706           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5707             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5708             break 2
5709           fi
5710         fi
5711       done
5712     done
5713     IFS="$ac_save_IFS"
5714   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5715     ;;
5716 esac
5717 fi
5718 MSGMERGE="$ac_cv_path_MSGMERGE"
5719 if test "$MSGMERGE" != ":"; then
5720   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5721 echo "${ECHO_T}$MSGMERGE" >&6
5722 else
5723   echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6
5725 fi
5726
5727
5728       if test "$GMSGFMT" != ":"; then
5729             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5730        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5731       : ;
5732     else
5733       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5734       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5735 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5736       GMSGFMT=":"
5737     fi
5738   fi
5739
5740       if test "$XGETTEXT" != ":"; then
5741             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5742        (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
5743       : ;
5744     else
5745       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5746 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5747       XGETTEXT=":"
5748     fi
5749         rm -f messages.po
5750   fi
5751
5752             ac_config_commands="$ac_config_commands default-1"
5753
5754
5755 echo "$as_me:$LINENO: checking for off_t" >&5
5756 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5757 if test "${ac_cv_type_off_t+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 $ac_includes_default
5768 int
5769 main ()
5770 {
5771 if ((off_t *) 0)
5772   return 0;
5773 if (sizeof (off_t))
5774   return 0;
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -s conftest.$ac_objext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_cv_type_off_t=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_cv_type_off_t=no
5797 fi
5798 rm -f conftest.$ac_objext conftest.$ac_ext
5799 fi
5800 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5801 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5802 if test $ac_cv_type_off_t = yes; then
5803   :
5804 else
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define off_t long
5808 _ACEOF
5809
5810 fi
5811
5812 echo "$as_me:$LINENO: checking for size_t" >&5
5813 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5814 if test "${ac_cv_type_size_t+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   cat >conftest.$ac_ext <<_ACEOF
5818 #line $LINENO "configure"
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 $ac_includes_default
5825 int
5826 main ()
5827 {
5828 if ((size_t *) 0)
5829   return 0;
5830 if (sizeof (size_t))
5831   return 0;
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } &&
5842          { ac_try='test -s conftest.$ac_objext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_cv_type_size_t=yes
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_type_size_t=no
5854 fi
5855 rm -f conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5858 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5859 if test $ac_cv_type_size_t = yes; then
5860   :
5861 else
5862
5863 cat >>confdefs.h <<_ACEOF
5864 #define size_t unsigned
5865 _ACEOF
5866
5867 fi
5868
5869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5870 # for constant arguments.  Useless!
5871 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5873 if test "${ac_cv_working_alloca_h+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <alloca.h>
5884 int
5885 main ()
5886 {
5887 char *p = (char *) alloca (2 * sizeof (int));
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -s conftest$ac_exeext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_working_alloca_h=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_cv_working_alloca_h=no
5910 fi
5911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5912 fi
5913 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5914 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5915 if test $ac_cv_working_alloca_h = yes; then
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_ALLOCA_H 1
5919 _ACEOF
5920
5921 fi
5922
5923 echo "$as_me:$LINENO: checking for alloca" >&5
5924 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5925 if test "${ac_cv_func_alloca_works+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   cat >conftest.$ac_ext <<_ACEOF
5929 #line $LINENO "configure"
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 #ifdef __GNUC__
5936 # define alloca __builtin_alloca
5937 #else
5938 # ifdef _MSC_VER
5939 #  include <malloc.h>
5940 #  define alloca _alloca
5941 # else
5942 #  if HAVE_ALLOCA_H
5943 #   include <alloca.h>
5944 #  else
5945 #   ifdef _AIX
5946  #pragma alloca
5947 #   else
5948 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5949 char *alloca ();
5950 #    endif
5951 #   endif
5952 #  endif
5953 # endif
5954 #endif
5955
5956 int
5957 main ()
5958 {
5959 char *p = (char *) alloca (1);
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966   (eval $ac_link) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } &&
5970          { ac_try='test -s conftest$ac_exeext'
5971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972   (eval $ac_try) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; }; then
5976   ac_cv_func_alloca_works=yes
5977 else
5978   echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 ac_cv_func_alloca_works=no
5982 fi
5983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5986 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5987
5988 if test $ac_cv_func_alloca_works = yes; then
5989
5990 cat >>confdefs.h <<\_ACEOF
5991 #define HAVE_ALLOCA 1
5992 _ACEOF
5993
5994 else
5995   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5996 # that cause trouble.  Some versions do not even contain alloca or
5997 # contain a buggy version.  If you still want to use their alloca,
5998 # use ar to extract alloca.o from them instead of compiling alloca.c.
5999
6000 ALLOCA=alloca.$ac_objext
6001
6002 cat >>confdefs.h <<\_ACEOF
6003 #define C_ALLOCA 1
6004 _ACEOF
6005
6006
6007 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6008 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6009 if test "${ac_cv_os_cray+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   cat >conftest.$ac_ext <<_ACEOF
6013 #line $LINENO "configure"
6014 /* confdefs.h.  */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h.  */
6019 #if defined(CRAY) && ! defined(CRAY2)
6020 webecray
6021 #else
6022 wenotbecray
6023 #endif
6024
6025 _ACEOF
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027   $EGREP "webecray" >/dev/null 2>&1; then
6028   ac_cv_os_cray=yes
6029 else
6030   ac_cv_os_cray=no
6031 fi
6032 rm -f conftest*
6033
6034 fi
6035 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6036 echo "${ECHO_T}$ac_cv_os_cray" >&6
6037 if test $ac_cv_os_cray = yes; then
6038   for ac_func in _getb67 GETB67 getb67; do
6039     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6040 echo "$as_me:$LINENO: checking for $ac_func" >&5
6041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6042 if eval "test \"\${$as_ac_var+set}\" = set"; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   cat >conftest.$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052 /* System header to define __stub macros and hopefully few prototypes,
6053     which can conflict with char $ac_func (); below.
6054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055     <limits.h> exists even on freestanding compilers.  */
6056 #ifdef __STDC__
6057 # include <limits.h>
6058 #else
6059 # include <assert.h>
6060 #endif
6061 /* Override any gcc2 internal prototype to avoid an error.  */
6062 #ifdef __cplusplus
6063 extern "C"
6064 {
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char $ac_func ();
6069 /* The GNU C library defines this for functions which it implements
6070     to always fail with ENOSYS.  Some functions are actually named
6071     something starting with __ and the normal name is an alias.  */
6072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6073 choke me
6074 #else
6075 char (*f) () = $ac_func;
6076 #endif
6077 #ifdef __cplusplus
6078 }
6079 #endif
6080
6081 int
6082 main ()
6083 {
6084 return f != $ac_func;
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6091   (eval $ac_link) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); } &&
6095          { ac_try='test -s conftest$ac_exeext'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; }; then
6101   eval "$as_ac_var=yes"
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 eval "$as_ac_var=no"
6107 fi
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 fi
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6112 if test `eval echo '${'$as_ac_var'}'` = yes; then
6113
6114 cat >>confdefs.h <<_ACEOF
6115 #define CRAY_STACKSEG_END $ac_func
6116 _ACEOF
6117
6118     break
6119 fi
6120
6121   done
6122 fi
6123
6124 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6125 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6126 if test "${ac_cv_c_stack_direction+set}" = set; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   if test "$cross_compiling" = yes; then
6130   ac_cv_c_stack_direction=0
6131 else
6132   cat >conftest.$ac_ext <<_ACEOF
6133 #line $LINENO "configure"
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 int
6140 find_stack_direction ()
6141 {
6142   static char *addr = 0;
6143   auto char dummy;
6144   if (addr == 0)
6145     {
6146       addr = &dummy;
6147       return find_stack_direction ();
6148     }
6149   else
6150     return (&dummy > addr) ? 1 : -1;
6151 }
6152
6153 int
6154 main ()
6155 {
6156   exit (find_stack_direction () < 0);
6157 }
6158 _ACEOF
6159 rm -f conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161   (eval $ac_link) 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; }; then
6170   ac_cv_c_stack_direction=1
6171 else
6172   echo "$as_me: program exited with status $ac_status" >&5
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 ( exit $ac_status )
6177 ac_cv_c_stack_direction=-1
6178 fi
6179 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6180 fi
6181 fi
6182 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6183 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6184
6185 cat >>confdefs.h <<_ACEOF
6186 #define STACK_DIRECTION $ac_cv_c_stack_direction
6187 _ACEOF
6188
6189
6190 fi
6191
6192
6193
6194 for ac_header in stdlib.h unistd.h
6195 do
6196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6198   echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 fi
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6205 else
6206   # Is the header compilable?
6207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 $ac_includes_default
6217 #include <$ac_header>
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221   (eval $ac_compile) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } &&
6225          { ac_try='test -s conftest.$ac_objext'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; }; then
6231   ac_header_compiler=yes
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_header_compiler=no
6237 fi
6238 rm -f conftest.$ac_objext conftest.$ac_ext
6239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6240 echo "${ECHO_T}$ac_header_compiler" >&6
6241
6242 # Is the header present?
6243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 #include <$ac_header>
6253 _ACEOF
6254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } >/dev/null; then
6262   if test -s conftest.err; then
6263     ac_cpp_err=$ac_c_preproc_warn_flag
6264   else
6265     ac_cpp_err=
6266   fi
6267 else
6268   ac_cpp_err=yes
6269 fi
6270 if test -z "$ac_cpp_err"; then
6271   ac_header_preproc=yes
6272 else
6273   echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276   ac_header_preproc=no
6277 fi
6278 rm -f conftest.err conftest.$ac_ext
6279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6280 echo "${ECHO_T}$ac_header_preproc" >&6
6281
6282 # So?  What about this header?
6283 case $ac_header_compiler:$ac_header_preproc in
6284   yes:no )
6285     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6289     (
6290       cat <<\_ASBOX
6291 ## ------------------------------------ ##
6292 ## Report this to bug-autoconf@gnu.org. ##
6293 ## ------------------------------------ ##
6294 _ASBOX
6295     ) |
6296       sed "s/^/$as_me: WARNING:     /" >&2
6297     ;;
6298   no:yes )
6299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6301     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6305     (
6306       cat <<\_ASBOX
6307 ## ------------------------------------ ##
6308 ## Report this to bug-autoconf@gnu.org. ##
6309 ## ------------------------------------ ##
6310 _ASBOX
6311     ) |
6312       sed "s/^/$as_me: WARNING:     /" >&2
6313     ;;
6314 esac
6315 echo "$as_me:$LINENO: checking for $ac_header" >&5
6316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   eval "$as_ac_Header=$ac_header_preproc"
6321 fi
6322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6324
6325 fi
6326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6327   cat >>confdefs.h <<_ACEOF
6328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6329 _ACEOF
6330
6331 fi
6332
6333 done
6334
6335
6336 for ac_func in getpagesize
6337 do
6338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6339 echo "$as_me:$LINENO: checking for $ac_func" >&5
6340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6341 if eval "test \"\${$as_ac_var+set}\" = set"; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351 /* System header to define __stub macros and hopefully few prototypes,
6352     which can conflict with char $ac_func (); below.
6353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354     <limits.h> exists even on freestanding compilers.  */
6355 #ifdef __STDC__
6356 # include <limits.h>
6357 #else
6358 # include <assert.h>
6359 #endif
6360 /* Override any gcc2 internal prototype to avoid an error.  */
6361 #ifdef __cplusplus
6362 extern "C"
6363 {
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366    builtin and then its argument prototype would still apply.  */
6367 char $ac_func ();
6368 /* The GNU C library defines this for functions which it implements
6369     to always fail with ENOSYS.  Some functions are actually named
6370     something starting with __ and the normal name is an alias.  */
6371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 choke me
6373 #else
6374 char (*f) () = $ac_func;
6375 #endif
6376 #ifdef __cplusplus
6377 }
6378 #endif
6379
6380 int
6381 main ()
6382 {
6383 return f != $ac_func;
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390   (eval $ac_link) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -s conftest$ac_exeext'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; }; then
6400   eval "$as_ac_var=yes"
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 eval "$as_ac_var=no"
6406 fi
6407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6408 fi
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6411 if test `eval echo '${'$as_ac_var'}'` = yes; then
6412   cat >>confdefs.h <<_ACEOF
6413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6414 _ACEOF
6415
6416 fi
6417 done
6418
6419 echo "$as_me:$LINENO: checking for working mmap" >&5
6420 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6421 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   if test "$cross_compiling" = yes; then
6425   ac_cv_func_mmap_fixed_mapped=no
6426 else
6427   cat >conftest.$ac_ext <<_ACEOF
6428 #line $LINENO "configure"
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 $ac_includes_default
6435 /* malloc might have been renamed as rpl_malloc. */
6436 #undef malloc
6437
6438 /* Thanks to Mike Haertel and Jim Avera for this test.
6439    Here is a matrix of mmap possibilities:
6440         mmap private not fixed
6441         mmap private fixed at somewhere currently unmapped
6442         mmap private fixed at somewhere already mapped
6443         mmap shared not fixed
6444         mmap shared fixed at somewhere currently unmapped
6445         mmap shared fixed at somewhere already mapped
6446    For private mappings, we should verify that changes cannot be read()
6447    back from the file, nor mmap's back from the file at a different
6448    address.  (There have been systems where private was not correctly
6449    implemented like the infamous i386 svr4.0, and systems where the
6450    VM page cache was not coherent with the file system buffer cache
6451    like early versions of FreeBSD and possibly contemporary NetBSD.)
6452    For shared mappings, we should conversely verify that changes get
6453    propagated back to all the places they're supposed to be.
6454
6455    Grep wants private fixed already mapped.
6456    The main things grep needs to know about mmap are:
6457    * does it exist and is it safe to write into the mmap'd area
6458    * how to use it (BSD variants)  */
6459
6460 #include <fcntl.h>
6461 #include <sys/mman.h>
6462
6463 #if !STDC_HEADERS && !HAVE_STDLIB_H
6464 char *malloc ();
6465 #endif
6466
6467 /* This mess was copied from the GNU getpagesize.h.  */
6468 #if !HAVE_GETPAGESIZE
6469 /* Assume that all systems that can run configure have sys/param.h.  */
6470 # if !HAVE_SYS_PARAM_H
6471 #  define HAVE_SYS_PARAM_H 1
6472 # endif
6473
6474 # ifdef _SC_PAGESIZE
6475 #  define getpagesize() sysconf(_SC_PAGESIZE)
6476 # else /* no _SC_PAGESIZE */
6477 #  if HAVE_SYS_PARAM_H
6478 #   include <sys/param.h>
6479 #   ifdef EXEC_PAGESIZE
6480 #    define getpagesize() EXEC_PAGESIZE
6481 #   else /* no EXEC_PAGESIZE */
6482 #    ifdef NBPG
6483 #     define getpagesize() NBPG * CLSIZE
6484 #     ifndef CLSIZE
6485 #      define CLSIZE 1
6486 #     endif /* no CLSIZE */
6487 #    else /* no NBPG */
6488 #     ifdef NBPC
6489 #      define getpagesize() NBPC
6490 #     else /* no NBPC */
6491 #      ifdef PAGESIZE
6492 #       define getpagesize() PAGESIZE
6493 #      endif /* PAGESIZE */
6494 #     endif /* no NBPC */
6495 #    endif /* no NBPG */
6496 #   endif /* no EXEC_PAGESIZE */
6497 #  else /* no HAVE_SYS_PARAM_H */
6498 #   define getpagesize() 8192   /* punt totally */
6499 #  endif /* no HAVE_SYS_PARAM_H */
6500 # endif /* no _SC_PAGESIZE */
6501
6502 #endif /* no HAVE_GETPAGESIZE */
6503
6504 int
6505 main ()
6506 {
6507   char *data, *data2, *data3;
6508   int i, pagesize;
6509   int fd;
6510
6511   pagesize = getpagesize ();
6512
6513   /* First, make a file with some known garbage in it. */
6514   data = (char *) malloc (pagesize);
6515   if (!data)
6516     exit (1);
6517   for (i = 0; i < pagesize; ++i)
6518     *(data + i) = rand ();
6519   umask (0);
6520   fd = creat ("conftest.mmap", 0600);
6521   if (fd < 0)
6522     exit (1);
6523   if (write (fd, data, pagesize) != pagesize)
6524     exit (1);
6525   close (fd);
6526
6527   /* Next, try to mmap the file at a fixed address which already has
6528      something else allocated at it.  If we can, also make sure that
6529      we see the same garbage.  */
6530   fd = open ("conftest.mmap", O_RDWR);
6531   if (fd < 0)
6532     exit (1);
6533   data2 = (char *) malloc (2 * pagesize);
6534   if (!data2)
6535     exit (1);
6536   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6537   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6538                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6539     exit (1);
6540   for (i = 0; i < pagesize; ++i)
6541     if (*(data + i) != *(data2 + i))
6542       exit (1);
6543
6544   /* Finally, make sure that changes to the mapped area do not
6545      percolate back to the file as seen by read().  (This is a bug on
6546      some variants of i386 svr4.0.)  */
6547   for (i = 0; i < pagesize; ++i)
6548     *(data2 + i) = *(data2 + i) + 1;
6549   data3 = (char *) malloc (pagesize);
6550   if (!data3)
6551     exit (1);
6552   if (read (fd, data3, pagesize) != pagesize)
6553     exit (1);
6554   for (i = 0; i < pagesize; ++i)
6555     if (*(data + i) != *(data3 + i))
6556       exit (1);
6557   close (fd);
6558   exit (0);
6559 }
6560 _ACEOF
6561 rm -f conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563   (eval $ac_link) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   ac_cv_func_mmap_fixed_mapped=yes
6573 else
6574   echo "$as_me: program exited with status $ac_status" >&5
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ( exit $ac_status )
6579 ac_cv_func_mmap_fixed_mapped=no
6580 fi
6581 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 fi
6584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6585 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6587
6588 cat >>confdefs.h <<\_ACEOF
6589 #define HAVE_MMAP 1
6590 _ACEOF
6591
6592 fi
6593 rm -f conftest.mmap
6594
6595
6596     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6597 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6598 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608
6609 #include <features.h>
6610 #ifdef __GNU_LIBRARY__
6611  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6612   Lucky GNU user
6613  #endif
6614 #endif
6615
6616 _ACEOF
6617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6618   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6619   ac_cv_gnu_library_2_1=yes
6620 else
6621   ac_cv_gnu_library_2_1=no
6622 fi
6623 rm -f conftest*
6624
6625
6626
6627 fi
6628 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6629 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6630
6631     GLIBC21="$ac_cv_gnu_library_2_1"
6632
6633
6634
6635
6636   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6637 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6638 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641
6642       if test "$cross_compiling" = yes; then
6643
6644           # Guess based on the CPU.
6645           case "$host_cpu" in
6646             alpha* | i3456786 | m68k | s390*)
6647               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6648             *)
6649               gt_cv_int_divbyzero_sigfpe="guessing no";;
6650           esac
6651
6652 else
6653   cat >conftest.$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660
6661 #include <stdlib.h>
6662 #include <signal.h>
6663
6664 static void
6665 #ifdef __cplusplus
6666 sigfpe_handler (int sig)
6667 #else
6668 sigfpe_handler (sig) int sig;
6669 #endif
6670 {
6671   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6672   exit (sig != SIGFPE);
6673 }
6674
6675 int x = 1;
6676 int y = 0;
6677 int z;
6678 int nan;
6679
6680 int main ()
6681 {
6682   signal (SIGFPE, sigfpe_handler);
6683 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6684 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6685   signal (SIGTRAP, sigfpe_handler);
6686 #endif
6687 /* Linux/SPARC yields signal SIGILL.  */
6688 #if defined (__sparc__) && defined (__linux__)
6689   signal (SIGILL, sigfpe_handler);
6690 #endif
6691
6692   z = x / y;
6693   nan = y / y;
6694   exit (1);
6695 }
6696
6697 _ACEOF
6698 rm -f conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700   (eval $ac_link) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; }; then
6709   gt_cv_int_divbyzero_sigfpe=yes
6710 else
6711   echo "$as_me: program exited with status $ac_status" >&5
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ( exit $ac_status )
6716 gt_cv_int_divbyzero_sigfpe=no
6717 fi
6718 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6719 fi
6720
6721 fi
6722 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6723 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6724   case "$gt_cv_int_divbyzero_sigfpe" in
6725     *yes) value=1;;
6726     *) value=0;;
6727   esac
6728
6729 cat >>confdefs.h <<_ACEOF
6730 #define INTDIV0_RAISES_SIGFPE $value
6731 _ACEOF
6732
6733
6734
6735   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6736 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6737 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   cat >conftest.$ac_ext <<_ACEOF
6741 #line $LINENO "configure"
6742 /* confdefs.h.  */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h.  */
6747 #include <sys/types.h>
6748 #include <inttypes.h>
6749 int
6750 main ()
6751 {
6752 uintmax_t i = (uintmax_t) -1;
6753   ;
6754   return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759   (eval $ac_compile) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); } &&
6763          { ac_try='test -s conftest.$ac_objext'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; }; then
6769   jm_ac_cv_header_inttypes_h=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 jm_ac_cv_header_inttypes_h=no
6775 fi
6776 rm -f conftest.$ac_objext conftest.$ac_ext
6777 fi
6778 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6779 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6780   if test $jm_ac_cv_header_inttypes_h = yes; then
6781
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6784 _ACEOF
6785
6786   fi
6787
6788
6789   echo "$as_me:$LINENO: checking for stdint.h" >&5
6790 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6791 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   cat >conftest.$ac_ext <<_ACEOF
6795 #line $LINENO "configure"
6796 /* confdefs.h.  */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h.  */
6801 #include <sys/types.h>
6802 #include <stdint.h>
6803 int
6804 main ()
6805 {
6806 uintmax_t i = (uintmax_t) -1;
6807   ;
6808   return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813   (eval $ac_compile) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } &&
6817          { ac_try='test -s conftest.$ac_objext'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; }; then
6823   jm_ac_cv_header_stdint_h=yes
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 jm_ac_cv_header_stdint_h=no
6829 fi
6830 rm -f conftest.$ac_objext conftest.$ac_ext
6831 fi
6832 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6833 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6834   if test $jm_ac_cv_header_stdint_h = yes; then
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_STDINT_H_WITH_UINTMAX 1
6838 _ACEOF
6839
6840   fi
6841
6842
6843   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6844 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6845 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855 unsigned long long ull = 1; int i = 63;
6856 int
6857 main ()
6858 {
6859 unsigned long long ullmax = (unsigned long long) -1;
6860      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867   (eval $ac_link) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } &&
6871          { ac_try='test -s conftest$ac_exeext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877   ac_cv_type_unsigned_long_long=yes
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 ac_cv_type_unsigned_long_long=no
6883 fi
6884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6885 fi
6886 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6887 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6888   if test $ac_cv_type_unsigned_long_long = yes; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_UNSIGNED_LONG_LONG 1
6892 _ACEOF
6893
6894   fi
6895
6896
6897
6898
6899   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6900
6901     test $ac_cv_type_unsigned_long_long = yes \
6902       && ac_type='unsigned long long' \
6903       || ac_type='unsigned long'
6904
6905 cat >>confdefs.h <<_ACEOF
6906 #define uintmax_t $ac_type
6907 _ACEOF
6908
6909   else
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_UINTMAX_T 1
6913 _ACEOF
6914
6915   fi
6916
6917
6918   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6919 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6920 if test "${gt_cv_header_inttypes_h+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923
6924     cat >conftest.$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6926 /* confdefs.h.  */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h.  */
6931 #include <sys/types.h>
6932 #include <inttypes.h>
6933 int
6934 main ()
6935 {
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943   (eval $ac_compile) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } &&
6947          { ac_try='test -s conftest.$ac_objext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   gt_cv_header_inttypes_h=yes
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 gt_cv_header_inttypes_h=no
6959 fi
6960 rm -f conftest.$ac_objext conftest.$ac_ext
6961
6962 fi
6963 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6964 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6965   if test $gt_cv_header_inttypes_h = yes; then
6966
6967 cat >>confdefs.h <<_ACEOF
6968 #define HAVE_INTTYPES_H 1
6969 _ACEOF
6970
6971   fi
6972
6973
6974
6975   if test $gt_cv_header_inttypes_h = yes; then
6976     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6977 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6978 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981
6982         cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <inttypes.h>
6990 #ifdef PRId32
6991 char *p = PRId32;
6992 #endif
6993
6994 int
6995 main ()
6996 {
6997
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004   (eval $ac_compile) 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } &&
7008          { ac_try='test -s conftest.$ac_objext'
7009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010   (eval $ac_try) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); }; }; then
7014   gt_cv_inttypes_pri_broken=no
7015 else
7016   echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 gt_cv_inttypes_pri_broken=yes
7020 fi
7021 rm -f conftest.$ac_objext conftest.$ac_ext
7022
7023 fi
7024 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7025 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7026   fi
7027   if test "$gt_cv_inttypes_pri_broken" = yes; then
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define PRI_MACROS_BROKEN 1
7031 _ACEOF
7032
7033   fi
7034
7035
7036       if test "X$prefix" = "XNONE"; then
7037     acl_final_prefix="$ac_default_prefix"
7038   else
7039     acl_final_prefix="$prefix"
7040   fi
7041   if test "X$exec_prefix" = "XNONE"; then
7042     acl_final_exec_prefix='${prefix}'
7043   else
7044     acl_final_exec_prefix="$exec_prefix"
7045   fi
7046   acl_save_prefix="$prefix"
7047   prefix="$acl_final_prefix"
7048   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7049   prefix="$acl_save_prefix"
7050
7051
7052 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7053 if test "${with_gnu_ld+set}" = set; then
7054   withval="$with_gnu_ld"
7055   test "$withval" = no || with_gnu_ld=yes
7056 else
7057   with_gnu_ld=no
7058 fi;
7059 # Prepare PATH_SEPARATOR.
7060 # The user is always right.
7061 if test "${PATH_SEPARATOR+set}" != set; then
7062   echo "#! /bin/sh" >conf$$.sh
7063   echo  "exit 0"   >>conf$$.sh
7064   chmod +x conf$$.sh
7065   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7066     PATH_SEPARATOR=';'
7067   else
7068     PATH_SEPARATOR=:
7069   fi
7070   rm -f conf$$.sh
7071 fi
7072 ac_prog=ld
7073 if test "$GCC" = yes; then
7074   # Check if gcc -print-prog-name=ld gives a path.
7075   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7077   case $host in
7078   *-*-mingw*)
7079     # gcc leaves a trailing carriage return which upsets mingw
7080     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7081   *)
7082     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7083   esac
7084   case $ac_prog in
7085     # Accept absolute paths.
7086     [\\/]* | [A-Za-z]:[\\/]*)
7087       re_direlt='/[^/][^/]*/\.\./'
7088       # Canonicalize the path of ld
7089       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7090       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7091         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7092       done
7093       test -z "$LD" && LD="$ac_prog"
7094       ;;
7095   "")
7096     # If it fails, then pretend we aren't using GCC.
7097     ac_prog=ld
7098     ;;
7099   *)
7100     # If it is relative, then search for the first ld in PATH.
7101     with_gnu_ld=unknown
7102     ;;
7103   esac
7104 elif test "$with_gnu_ld" = yes; then
7105   echo "$as_me:$LINENO: checking for GNU ld" >&5
7106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7107 else
7108   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7110 fi
7111 if test "${acl_cv_path_LD+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -z "$LD"; then
7115   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7116   for ac_dir in $PATH; do
7117     test -z "$ac_dir" && ac_dir=.
7118     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7119       acl_cv_path_LD="$ac_dir/$ac_prog"
7120       # Check to see if the program is GNU ld.  I'd rather use --version,
7121       # but apparently some GNU ld's only accept -v.
7122       # Break only if it was the GNU/non-GNU ld that we prefer.
7123       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7124         test "$with_gnu_ld" != no && break
7125       else
7126         test "$with_gnu_ld" != yes && break
7127       fi
7128     fi
7129   done
7130   IFS="$ac_save_ifs"
7131 else
7132   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7133 fi
7134 fi
7135
7136 LD="$acl_cv_path_LD"
7137 if test -n "$LD"; then
7138   echo "$as_me:$LINENO: result: $LD" >&5
7139 echo "${ECHO_T}$LD" >&6
7140 else
7141   echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7143 fi
7144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7146    { (exit 1); exit 1; }; }
7147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7149 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7154   acl_cv_prog_gnu_ld=yes
7155 else
7156   acl_cv_prog_gnu_ld=no
7157 fi
7158 fi
7159 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7160 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7161 with_gnu_ld=$acl_cv_prog_gnu_ld
7162
7163
7164
7165                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7166 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7167 if test "${acl_cv_rpath+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170
7171     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7172     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7173     . ./conftest.sh
7174     rm -f ./conftest.sh
7175     acl_cv_rpath=done
7176
7177 fi
7178 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7179 echo "${ECHO_T}$acl_cv_rpath" >&6
7180   wl="$acl_cv_wl"
7181   libext="$acl_cv_libext"
7182   shlibext="$acl_cv_shlibext"
7183   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7184   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7185   hardcode_direct="$acl_cv_hardcode_direct"
7186   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7187     # Check whether --enable-rpath or --disable-rpath was given.
7188 if test "${enable_rpath+set}" = set; then
7189   enableval="$enable_rpath"
7190   :
7191 else
7192   enable_rpath=yes
7193 fi;
7194
7195
7196
7197
7198
7199
7200
7201     use_additional=yes
7202
7203   acl_save_prefix="$prefix"
7204   prefix="$acl_final_prefix"
7205   acl_save_exec_prefix="$exec_prefix"
7206   exec_prefix="$acl_final_exec_prefix"
7207
7208     eval additional_includedir=\"$includedir\"
7209     eval additional_libdir=\"$libdir\"
7210
7211   exec_prefix="$acl_save_exec_prefix"
7212   prefix="$acl_save_prefix"
7213
7214
7215 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7216 if test "${with_libiconv_prefix+set}" = set; then
7217   withval="$with_libiconv_prefix"
7218
7219     if test "X$withval" = "Xno"; then
7220       use_additional=no
7221     else
7222       if test "X$withval" = "X"; then
7223
7224   acl_save_prefix="$prefix"
7225   prefix="$acl_final_prefix"
7226   acl_save_exec_prefix="$exec_prefix"
7227   exec_prefix="$acl_final_exec_prefix"
7228
7229           eval additional_includedir=\"$includedir\"
7230           eval additional_libdir=\"$libdir\"
7231
7232   exec_prefix="$acl_save_exec_prefix"
7233   prefix="$acl_save_prefix"
7234
7235       else
7236         additional_includedir="$withval/include"
7237         additional_libdir="$withval/lib"
7238       fi
7239     fi
7240
7241 fi;
7242       LIBICONV=
7243   LTLIBICONV=
7244   INCICONV=
7245   rpathdirs=
7246   ltrpathdirs=
7247   names_already_handled=
7248   names_next_round='iconv '
7249   while test -n "$names_next_round"; do
7250     names_this_round="$names_next_round"
7251     names_next_round=
7252     for name in $names_this_round; do
7253       already_handled=
7254       for n in $names_already_handled; do
7255         if test "$n" = "$name"; then
7256           already_handled=yes
7257           break
7258         fi
7259       done
7260       if test -z "$already_handled"; then
7261         names_already_handled="$names_already_handled $name"
7262                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7263         eval value=\"\$HAVE_LIB$uppername\"
7264         if test -n "$value"; then
7265           if test "$value" = yes; then
7266             eval value=\"\$LIB$uppername\"
7267             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7268             eval value=\"\$LTLIB$uppername\"
7269             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7270           else
7271                                     :
7272           fi
7273         else
7274                               found_dir=
7275           found_la=
7276           found_so=
7277           found_a=
7278           if test $use_additional = yes; then
7279             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7280               found_dir="$additional_libdir"
7281               found_so="$additional_libdir/lib$name.$shlibext"
7282               if test -f "$additional_libdir/lib$name.la"; then
7283                 found_la="$additional_libdir/lib$name.la"
7284               fi
7285             else
7286               if test -f "$additional_libdir/lib$name.$libext"; then
7287                 found_dir="$additional_libdir"
7288                 found_a="$additional_libdir/lib$name.$libext"
7289                 if test -f "$additional_libdir/lib$name.la"; then
7290                   found_la="$additional_libdir/lib$name.la"
7291                 fi
7292               fi
7293             fi
7294           fi
7295           if test "X$found_dir" = "X"; then
7296             for x in $LDFLAGS $LTLIBICONV; do
7297
7298   acl_save_prefix="$prefix"
7299   prefix="$acl_final_prefix"
7300   acl_save_exec_prefix="$exec_prefix"
7301   exec_prefix="$acl_final_exec_prefix"
7302   eval x=\"$x\"
7303   exec_prefix="$acl_save_exec_prefix"
7304   prefix="$acl_save_prefix"
7305
7306               case "$x" in
7307                 -L*)
7308                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7309                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7310                     found_dir="$dir"
7311                     found_so="$dir/lib$name.$shlibext"
7312                     if test -f "$dir/lib$name.la"; then
7313                       found_la="$dir/lib$name.la"
7314                     fi
7315                   else
7316                     if test -f "$dir/lib$name.$libext"; then
7317                       found_dir="$dir"
7318                       found_a="$dir/lib$name.$libext"
7319                       if test -f "$dir/lib$name.la"; then
7320                         found_la="$dir/lib$name.la"
7321                       fi
7322                     fi
7323                   fi
7324                   ;;
7325               esac
7326               if test "X$found_dir" != "X"; then
7327                 break
7328               fi
7329             done
7330           fi
7331           if test "X$found_dir" != "X"; then
7332                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7333             if test "X$found_so" != "X"; then
7334                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7335                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7336               else
7337                                                                                 haveit=
7338                 for x in $ltrpathdirs; do
7339                   if test "X$x" = "X$found_dir"; then
7340                     haveit=yes
7341                     break
7342                   fi
7343                 done
7344                 if test -z "$haveit"; then
7345                   ltrpathdirs="$ltrpathdirs $found_dir"
7346                 fi
7347                                 if test "$hardcode_direct" = yes; then
7348                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7349                 else
7350                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7351                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7352                                                             haveit=
7353                     for x in $rpathdirs; do
7354                       if test "X$x" = "X$found_dir"; then
7355                         haveit=yes
7356                         break
7357                       fi
7358                     done
7359                     if test -z "$haveit"; then
7360                       rpathdirs="$rpathdirs $found_dir"
7361                     fi
7362                   else
7363                                                                                 haveit=
7364                     for x in $LDFLAGS $LIBICONV; do
7365
7366   acl_save_prefix="$prefix"
7367   prefix="$acl_final_prefix"
7368   acl_save_exec_prefix="$exec_prefix"
7369   exec_prefix="$acl_final_exec_prefix"
7370   eval x=\"$x\"
7371   exec_prefix="$acl_save_exec_prefix"
7372   prefix="$acl_save_prefix"
7373
7374                       if test "X$x" = "X-L$found_dir"; then
7375                         haveit=yes
7376                         break
7377                       fi
7378                     done
7379                     if test -z "$haveit"; then
7380                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7381                     fi
7382                     if test "$hardcode_minus_L" != no; then
7383                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7384                     else
7385                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7386                     fi
7387                   fi
7388                 fi
7389               fi
7390             else
7391               if test "X$found_a" != "X"; then
7392                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7393               else
7394                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7395               fi
7396             fi
7397                         additional_includedir=
7398             case "$found_dir" in
7399               */lib | */lib/)
7400                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7401                 additional_includedir="$basedir/include"
7402                 ;;
7403             esac
7404             if test "X$additional_includedir" != "X"; then
7405                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7406                 haveit=
7407                 if test "X$additional_includedir" = "X/usr/local/include"; then
7408                   if test -n "$GCC"; then
7409                     case $host_os in
7410                       linux*) haveit=yes;;
7411                     esac
7412                   fi
7413                 fi
7414                 if test -z "$haveit"; then
7415                   for x in $CPPFLAGS $INCICONV; do
7416
7417   acl_save_prefix="$prefix"
7418   prefix="$acl_final_prefix"
7419   acl_save_exec_prefix="$exec_prefix"
7420   exec_prefix="$acl_final_exec_prefix"
7421   eval x=\"$x\"
7422   exec_prefix="$acl_save_exec_prefix"
7423   prefix="$acl_save_prefix"
7424
7425                     if test "X$x" = "X-I$additional_includedir"; then
7426                       haveit=yes
7427                       break
7428                     fi
7429                   done
7430                   if test -z "$haveit"; then
7431                     if test -d "$additional_includedir"; then
7432                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7433                     fi
7434                   fi
7435                 fi
7436               fi
7437             fi
7438                         if test -n "$found_la"; then
7439                                                         save_libdir="$libdir"
7440               case "$found_la" in
7441                 */* | *\\*) . "$found_la" ;;
7442                 *) . "./$found_la" ;;
7443               esac
7444               libdir="$save_libdir"
7445                             for dep in $dependency_libs; do
7446                 case "$dep" in
7447                   -L*)
7448                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7449                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7450                       haveit=
7451                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7452                         if test -n "$GCC"; then
7453                           case $host_os in
7454                             linux*) haveit=yes;;
7455                           esac
7456                         fi
7457                       fi
7458                       if test -z "$haveit"; then
7459                         haveit=
7460                         for x in $LDFLAGS $LIBICONV; do
7461
7462   acl_save_prefix="$prefix"
7463   prefix="$acl_final_prefix"
7464   acl_save_exec_prefix="$exec_prefix"
7465   exec_prefix="$acl_final_exec_prefix"
7466   eval x=\"$x\"
7467   exec_prefix="$acl_save_exec_prefix"
7468   prefix="$acl_save_prefix"
7469
7470                           if test "X$x" = "X-L$additional_libdir"; then
7471                             haveit=yes
7472                             break
7473                           fi
7474                         done
7475                         if test -z "$haveit"; then
7476                           if test -d "$additional_libdir"; then
7477                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7478                           fi
7479                         fi
7480                         haveit=
7481                         for x in $LDFLAGS $LTLIBICONV; do
7482
7483   acl_save_prefix="$prefix"
7484   prefix="$acl_final_prefix"
7485   acl_save_exec_prefix="$exec_prefix"
7486   exec_prefix="$acl_final_exec_prefix"
7487   eval x=\"$x\"
7488   exec_prefix="$acl_save_exec_prefix"
7489   prefix="$acl_save_prefix"
7490
7491                           if test "X$x" = "X-L$additional_libdir"; then
7492                             haveit=yes
7493                             break
7494                           fi
7495                         done
7496                         if test -z "$haveit"; then
7497                           if test -d "$additional_libdir"; then
7498                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7499                           fi
7500                         fi
7501                       fi
7502                     fi
7503                     ;;
7504                   -R*)
7505                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7506                     if test "$enable_rpath" != no; then
7507                                                                   haveit=
7508                       for x in $rpathdirs; do
7509                         if test "X$x" = "X$dir"; then
7510                           haveit=yes
7511                           break
7512                         fi
7513                       done
7514                       if test -z "$haveit"; then
7515                         rpathdirs="$rpathdirs $dir"
7516                       fi
7517                                                                   haveit=
7518                       for x in $ltrpathdirs; do
7519                         if test "X$x" = "X$dir"; then
7520                           haveit=yes
7521                           break
7522                         fi
7523                       done
7524                       if test -z "$haveit"; then
7525                         ltrpathdirs="$ltrpathdirs $dir"
7526                       fi
7527                     fi
7528                     ;;
7529                   -l*)
7530                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7531                     ;;
7532                   *.la)
7533                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7534                     ;;
7535                   *)
7536                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7537                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7538                     ;;
7539                 esac
7540               done
7541             fi
7542           else
7543                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7544             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7545           fi
7546         fi
7547       fi
7548     done
7549   done
7550   if test "X$rpathdirs" != "X"; then
7551     if test -n "$hardcode_libdir_separator"; then
7552                         alldirs=
7553       for found_dir in $rpathdirs; do
7554         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7555       done
7556             acl_save_libdir="$libdir"
7557       libdir="$alldirs"
7558       eval flag=\"$hardcode_libdir_flag_spec\"
7559       libdir="$acl_save_libdir"
7560       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7561     else
7562             for found_dir in $rpathdirs; do
7563         acl_save_libdir="$libdir"
7564         libdir="$found_dir"
7565         eval flag=\"$hardcode_libdir_flag_spec\"
7566         libdir="$acl_save_libdir"
7567         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7568       done
7569     fi
7570   fi
7571   if test "X$ltrpathdirs" != "X"; then
7572             for found_dir in $ltrpathdirs; do
7573       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7574     done
7575   fi
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7591 stdlib.h string.h unistd.h sys/param.h
7592 do
7593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595   echo "$as_me:$LINENO: checking for $ac_header" >&5
7596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 fi
7600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7602 else
7603   # Is the header compilable?
7604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613 $ac_includes_default
7614 #include <$ac_header>
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618   (eval $ac_compile) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -s conftest.$ac_objext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   ac_header_compiler=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_header_compiler=no
7634 fi
7635 rm -f conftest.$ac_objext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7637 echo "${ECHO_T}$ac_header_compiler" >&6
7638
7639 # Is the header present?
7640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 /* confdefs.h.  */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h.  */
7649 #include <$ac_header>
7650 _ACEOF
7651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7653   ac_status=$?
7654   grep -v '^ *+' conftest.er1 >conftest.err
7655   rm -f conftest.er1
7656   cat conftest.err >&5
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } >/dev/null; then
7659   if test -s conftest.err; then
7660     ac_cpp_err=$ac_c_preproc_warn_flag
7661   else
7662     ac_cpp_err=
7663   fi
7664 else
7665   ac_cpp_err=yes
7666 fi
7667 if test -z "$ac_cpp_err"; then
7668   ac_header_preproc=yes
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673   ac_header_preproc=no
7674 fi
7675 rm -f conftest.err conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7677 echo "${ECHO_T}$ac_header_preproc" >&6
7678
7679 # So?  What about this header?
7680 case $ac_header_compiler:$ac_header_preproc in
7681   yes:no )
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686     (
7687       cat <<\_ASBOX
7688 ## ------------------------------------ ##
7689 ## Report this to bug-autoconf@gnu.org. ##
7690 ## ------------------------------------ ##
7691 _ASBOX
7692     ) |
7693       sed "s/^/$as_me: WARNING:     /" >&2
7694     ;;
7695   no:yes )
7696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7698     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7702     (
7703       cat <<\_ASBOX
7704 ## ------------------------------------ ##
7705 ## Report this to bug-autoconf@gnu.org. ##
7706 ## ------------------------------------ ##
7707 _ASBOX
7708     ) |
7709       sed "s/^/$as_me: WARNING:     /" >&2
7710     ;;
7711 esac
7712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   eval "$as_ac_Header=$ac_header_preproc"
7718 fi
7719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7721
7722 fi
7723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7724   cat >>confdefs.h <<_ACEOF
7725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7726 _ACEOF
7727
7728 fi
7729
7730 done
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7755 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7756 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
7757 __fsetlocking
7758 do
7759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7760 echo "$as_me:$LINENO: checking for $ac_func" >&5
7761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7762 if eval "test \"\${$as_ac_var+set}\" = set"; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772 /* System header to define __stub macros and hopefully few prototypes,
7773     which can conflict with char $ac_func (); below.
7774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775     <limits.h> exists even on freestanding compilers.  */
7776 #ifdef __STDC__
7777 # include <limits.h>
7778 #else
7779 # include <assert.h>
7780 #endif
7781 /* Override any gcc2 internal prototype to avoid an error.  */
7782 #ifdef __cplusplus
7783 extern "C"
7784 {
7785 #endif
7786 /* We use char because int might match the return type of a gcc2
7787    builtin and then its argument prototype would still apply.  */
7788 char $ac_func ();
7789 /* The GNU C library defines this for functions which it implements
7790     to always fail with ENOSYS.  Some functions are actually named
7791     something starting with __ and the normal name is an alias.  */
7792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7793 choke me
7794 #else
7795 char (*f) () = $ac_func;
7796 #endif
7797 #ifdef __cplusplus
7798 }
7799 #endif
7800
7801 int
7802 main ()
7803 {
7804 return f != $ac_func;
7805   ;
7806   return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811   (eval $ac_link) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } &&
7815          { ac_try='test -s conftest$ac_exeext'
7816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817   (eval $ac_try) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); }; }; then
7821   eval "$as_ac_var=yes"
7822 else
7823   echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 eval "$as_ac_var=no"
7827 fi
7828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7829 fi
7830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7832 if test `eval echo '${'$as_ac_var'}'` = yes; then
7833   cat >>confdefs.h <<_ACEOF
7834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7835 _ACEOF
7836
7837 fi
7838 done
7839
7840
7841
7842
7843
7844
7845
7846           am_save_CPPFLAGS="$CPPFLAGS"
7847
7848   for element in $INCICONV; do
7849     haveit=
7850     for x in $CPPFLAGS; do
7851
7852   acl_save_prefix="$prefix"
7853   prefix="$acl_final_prefix"
7854   acl_save_exec_prefix="$exec_prefix"
7855   exec_prefix="$acl_final_exec_prefix"
7856   eval x=\"$x\"
7857   exec_prefix="$acl_save_exec_prefix"
7858   prefix="$acl_save_prefix"
7859
7860       if test "X$x" = "X$element"; then
7861         haveit=yes
7862         break
7863       fi
7864     done
7865     if test -z "$haveit"; then
7866       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7867     fi
7868   done
7869
7870
7871   echo "$as_me:$LINENO: checking for iconv" >&5
7872 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7873 if test "${am_cv_func_iconv+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876
7877     am_cv_func_iconv="no, consider installing GNU libiconv"
7878     am_cv_lib_iconv=no
7879     cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 #include <stdlib.h>
7887 #include <iconv.h>
7888 int
7889 main ()
7890 {
7891 iconv_t cd = iconv_open("","");
7892        iconv(cd,NULL,NULL,NULL,NULL);
7893        iconv_close(cd);
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -s conftest$ac_exeext'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; }; then
7910   am_cv_func_iconv=yes
7911 else
7912   echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 fi
7916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7917     if test "$am_cv_func_iconv" != yes; then
7918       am_save_LIBS="$LIBS"
7919       LIBS="$LIBS $LIBICONV"
7920       cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 #include <stdlib.h>
7928 #include <iconv.h>
7929 int
7930 main ()
7931 {
7932 iconv_t cd = iconv_open("","");
7933          iconv(cd,NULL,NULL,NULL,NULL);
7934          iconv_close(cd);
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941   (eval $ac_link) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -s conftest$ac_exeext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   am_cv_lib_iconv=yes
7952         am_cv_func_iconv=yes
7953 else
7954   echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 fi
7958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7959       LIBS="$am_save_LIBS"
7960     fi
7961
7962 fi
7963 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7964 echo "${ECHO_T}$am_cv_func_iconv" >&6
7965   if test "$am_cv_func_iconv" = yes; then
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_ICONV 1
7969 _ACEOF
7970
7971   fi
7972   if test "$am_cv_lib_iconv" = yes; then
7973     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7974 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7975     echo "$as_me:$LINENO: result: $LIBICONV" >&5
7976 echo "${ECHO_T}$LIBICONV" >&6
7977   else
7978             CPPFLAGS="$am_save_CPPFLAGS"
7979     LIBICONV=
7980     LTLIBICONV=
7981   fi
7982
7983
7984
7985   if test "$am_cv_func_iconv" = yes; then
7986     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7987 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7988     if test "${am_cv_proto_iconv+set}" = set; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991
7992       cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000 #include <stdlib.h>
8001 #include <iconv.h>
8002 extern
8003 #ifdef __cplusplus
8004 "C"
8005 #endif
8006 #if defined(__STDC__) || defined(__cplusplus)
8007 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8008 #else
8009 size_t iconv();
8010 #endif
8011
8012 int
8013 main ()
8014 {
8015
8016   ;
8017   return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022   (eval $ac_compile) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -s conftest.$ac_objext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   am_cv_proto_iconv_arg1=""
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 am_cv_proto_iconv_arg1="const"
8038 fi
8039 rm -f conftest.$ac_objext conftest.$ac_ext
8040       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);"
8041 fi
8042
8043     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8044     echo "$as_me:$LINENO: result: ${ac_t:-
8045          }$am_cv_proto_iconv" >&5
8046 echo "${ECHO_T}${ac_t:-
8047          }$am_cv_proto_iconv" >&6
8048
8049 cat >>confdefs.h <<_ACEOF
8050 #define ICONV_CONST $am_cv_proto_iconv_arg1
8051 _ACEOF
8052
8053   fi
8054
8055
8056   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8057 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8058 if test "${am_cv_langinfo_codeset+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068 #include <langinfo.h>
8069 int
8070 main ()
8071 {
8072 char* cs = nl_langinfo(CODESET);
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -s conftest$ac_exeext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   am_cv_langinfo_codeset=yes
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 am_cv_langinfo_codeset=no
8095 fi
8096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097
8098 fi
8099 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8100 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8101   if test $am_cv_langinfo_codeset = yes; then
8102
8103 cat >>confdefs.h <<\_ACEOF
8104 #define HAVE_LANGINFO_CODESET 1
8105 _ACEOF
8106
8107   fi
8108
8109   if test $ac_cv_header_locale_h = yes; then
8110
8111   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8112 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8113 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123 #include <locale.h>
8124 int
8125 main ()
8126 {
8127 return LC_MESSAGES
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134   (eval $ac_link) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } &&
8138          { ac_try='test -s conftest$ac_exeext'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; }; then
8144   am_cv_val_LC_MESSAGES=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 am_cv_val_LC_MESSAGES=no
8150 fi
8151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8152 fi
8153 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8154 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8155   if test $am_cv_val_LC_MESSAGES = yes; then
8156
8157 cat >>confdefs.h <<\_ACEOF
8158 #define HAVE_LC_MESSAGES 1
8159 _ACEOF
8160
8161   fi
8162
8163   fi
8164
8165                       for ac_prog in bison
8166 do
8167   # Extract the first word of "$ac_prog", so it can be a program name with args.
8168 set dummy $ac_prog; ac_word=$2
8169 echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8171 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   if test -n "$INTLBISON"; then
8175   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180   IFS=$as_save_IFS
8181   test -z "$as_dir" && as_dir=.
8182   for ac_exec_ext in '' $ac_executable_extensions; do
8183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184     ac_cv_prog_INTLBISON="$ac_prog"
8185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8186     break 2
8187   fi
8188 done
8189 done
8190
8191 fi
8192 fi
8193 INTLBISON=$ac_cv_prog_INTLBISON
8194 if test -n "$INTLBISON"; then
8195   echo "$as_me:$LINENO: result: $INTLBISON" >&5
8196 echo "${ECHO_T}$INTLBISON" >&6
8197 else
8198   echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8200 fi
8201
8202   test -n "$INTLBISON" && break
8203 done
8204
8205   if test -z "$INTLBISON"; then
8206     ac_verc_fail=yes
8207   else
8208         echo "$as_me:$LINENO: checking version of bison" >&5
8209 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8210     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8211     case $ac_prog_version in
8212       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8213       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8214          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8215       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8216     esac
8217     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8218 echo "${ECHO_T}$ac_prog_version" >&6
8219   fi
8220   if test $ac_verc_fail = yes; then
8221     INTLBISON=:
8222   fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8240 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8241     # Check whether --enable-nls or --disable-nls was given.
8242 if test "${enable_nls+set}" = set; then
8243   enableval="$enable_nls"
8244   USE_NLS=$enableval
8245 else
8246   USE_NLS=yes
8247 fi;
8248   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8249 echo "${ECHO_T}$USE_NLS" >&6
8250
8251
8252
8253
8254     BUILD_INCLUDED_LIBINTL=no
8255     USE_INCLUDED_LIBINTL=no
8256
8257   LIBINTL=
8258   LTLIBINTL=
8259   POSUB=
8260
8261     if test "$USE_NLS" = "yes"; then
8262     gt_use_preinstalled_gnugettext=no
8263
8264       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8265 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8266
8267 # Check whether --with-included-gettext or --without-included-gettext was given.
8268 if test "${with_included_gettext+set}" = set; then
8269   withval="$with_included_gettext"
8270   nls_cv_force_use_gnu_gettext=$withval
8271 else
8272   nls_cv_force_use_gnu_gettext=no
8273 fi;
8274       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8275 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8276
8277       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8278       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8279
8280
8281
8282
8283
8284
8285         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8286 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8287 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 #include <libintl.h>
8298 extern int _nl_msg_cat_cntr;
8299 extern int *_nl_domain_bindings;
8300 int
8301 main ()
8302 {
8303 bindtextdomain ("", "");
8304 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311   (eval $ac_link) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } &&
8315          { ac_try='test -s conftest$ac_exeext'
8316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317   (eval $ac_try) 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; }; then
8321   gt_cv_func_gnugettext2_libc=yes
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 gt_cv_func_gnugettext2_libc=no
8327 fi
8328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8329 fi
8330 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8331 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8332
8333         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8334
8335
8336
8337     use_additional=yes
8338
8339   acl_save_prefix="$prefix"
8340   prefix="$acl_final_prefix"
8341   acl_save_exec_prefix="$exec_prefix"
8342   exec_prefix="$acl_final_exec_prefix"
8343
8344     eval additional_includedir=\"$includedir\"
8345     eval additional_libdir=\"$libdir\"
8346
8347   exec_prefix="$acl_save_exec_prefix"
8348   prefix="$acl_save_prefix"
8349
8350
8351 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8352 if test "${with_libintl_prefix+set}" = set; then
8353   withval="$with_libintl_prefix"
8354
8355     if test "X$withval" = "Xno"; then
8356       use_additional=no
8357     else
8358       if test "X$withval" = "X"; then
8359
8360   acl_save_prefix="$prefix"
8361   prefix="$acl_final_prefix"
8362   acl_save_exec_prefix="$exec_prefix"
8363   exec_prefix="$acl_final_exec_prefix"
8364
8365           eval additional_includedir=\"$includedir\"
8366           eval additional_libdir=\"$libdir\"
8367
8368   exec_prefix="$acl_save_exec_prefix"
8369   prefix="$acl_save_prefix"
8370
8371       else
8372         additional_includedir="$withval/include"
8373         additional_libdir="$withval/lib"
8374       fi
8375     fi
8376
8377 fi;
8378       LIBINTL=
8379   LTLIBINTL=
8380   INCINTL=
8381   rpathdirs=
8382   ltrpathdirs=
8383   names_already_handled=
8384   names_next_round='intl '
8385   while test -n "$names_next_round"; do
8386     names_this_round="$names_next_round"
8387     names_next_round=
8388     for name in $names_this_round; do
8389       already_handled=
8390       for n in $names_already_handled; do
8391         if test "$n" = "$name"; then
8392           already_handled=yes
8393           break
8394         fi
8395       done
8396       if test -z "$already_handled"; then
8397         names_already_handled="$names_already_handled $name"
8398                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8399         eval value=\"\$HAVE_LIB$uppername\"
8400         if test -n "$value"; then
8401           if test "$value" = yes; then
8402             eval value=\"\$LIB$uppername\"
8403             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8404             eval value=\"\$LTLIB$uppername\"
8405             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8406           else
8407                                     :
8408           fi
8409         else
8410                               found_dir=
8411           found_la=
8412           found_so=
8413           found_a=
8414           if test $use_additional = yes; then
8415             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8416               found_dir="$additional_libdir"
8417               found_so="$additional_libdir/lib$name.$shlibext"
8418               if test -f "$additional_libdir/lib$name.la"; then
8419                 found_la="$additional_libdir/lib$name.la"
8420               fi
8421             else
8422               if test -f "$additional_libdir/lib$name.$libext"; then
8423                 found_dir="$additional_libdir"
8424                 found_a="$additional_libdir/lib$name.$libext"
8425                 if test -f "$additional_libdir/lib$name.la"; then
8426                   found_la="$additional_libdir/lib$name.la"
8427                 fi
8428               fi
8429             fi
8430           fi
8431           if test "X$found_dir" = "X"; then
8432             for x in $LDFLAGS $LTLIBINTL; do
8433
8434   acl_save_prefix="$prefix"
8435   prefix="$acl_final_prefix"
8436   acl_save_exec_prefix="$exec_prefix"
8437   exec_prefix="$acl_final_exec_prefix"
8438   eval x=\"$x\"
8439   exec_prefix="$acl_save_exec_prefix"
8440   prefix="$acl_save_prefix"
8441
8442               case "$x" in
8443                 -L*)
8444                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8445                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8446                     found_dir="$dir"
8447                     found_so="$dir/lib$name.$shlibext"
8448                     if test -f "$dir/lib$name.la"; then
8449                       found_la="$dir/lib$name.la"
8450                     fi
8451                   else
8452                     if test -f "$dir/lib$name.$libext"; then
8453                       found_dir="$dir"
8454                       found_a="$dir/lib$name.$libext"
8455                       if test -f "$dir/lib$name.la"; then
8456                         found_la="$dir/lib$name.la"
8457                       fi
8458                     fi
8459                   fi
8460                   ;;
8461               esac
8462               if test "X$found_dir" != "X"; then
8463                 break
8464               fi
8465             done
8466           fi
8467           if test "X$found_dir" != "X"; then
8468                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8469             if test "X$found_so" != "X"; then
8470                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8471                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8472               else
8473                                                                                 haveit=
8474                 for x in $ltrpathdirs; do
8475                   if test "X$x" = "X$found_dir"; then
8476                     haveit=yes
8477                     break
8478                   fi
8479                 done
8480                 if test -z "$haveit"; then
8481                   ltrpathdirs="$ltrpathdirs $found_dir"
8482                 fi
8483                                 if test "$hardcode_direct" = yes; then
8484                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8485                 else
8486                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8487                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8488                                                             haveit=
8489                     for x in $rpathdirs; do
8490                       if test "X$x" = "X$found_dir"; then
8491                         haveit=yes
8492                         break
8493                       fi
8494                     done
8495                     if test -z "$haveit"; then
8496                       rpathdirs="$rpathdirs $found_dir"
8497                     fi
8498                   else
8499                                                                                 haveit=
8500                     for x in $LDFLAGS $LIBINTL; do
8501
8502   acl_save_prefix="$prefix"
8503   prefix="$acl_final_prefix"
8504   acl_save_exec_prefix="$exec_prefix"
8505   exec_prefix="$acl_final_exec_prefix"
8506   eval x=\"$x\"
8507   exec_prefix="$acl_save_exec_prefix"
8508   prefix="$acl_save_prefix"
8509
8510                       if test "X$x" = "X-L$found_dir"; then
8511                         haveit=yes
8512                         break
8513                       fi
8514                     done
8515                     if test -z "$haveit"; then
8516                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8517                     fi
8518                     if test "$hardcode_minus_L" != no; then
8519                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8520                     else
8521                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8522                     fi
8523                   fi
8524                 fi
8525               fi
8526             else
8527               if test "X$found_a" != "X"; then
8528                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8529               else
8530                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8531               fi
8532             fi
8533                         additional_includedir=
8534             case "$found_dir" in
8535               */lib | */lib/)
8536                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8537                 additional_includedir="$basedir/include"
8538                 ;;
8539             esac
8540             if test "X$additional_includedir" != "X"; then
8541                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8542                 haveit=
8543                 if test "X$additional_includedir" = "X/usr/local/include"; then
8544                   if test -n "$GCC"; then
8545                     case $host_os in
8546                       linux*) haveit=yes;;
8547                     esac
8548                   fi
8549                 fi
8550                 if test -z "$haveit"; then
8551                   for x in $CPPFLAGS $INCINTL; do
8552
8553   acl_save_prefix="$prefix"
8554   prefix="$acl_final_prefix"
8555   acl_save_exec_prefix="$exec_prefix"
8556   exec_prefix="$acl_final_exec_prefix"
8557   eval x=\"$x\"
8558   exec_prefix="$acl_save_exec_prefix"
8559   prefix="$acl_save_prefix"
8560
8561                     if test "X$x" = "X-I$additional_includedir"; then
8562                       haveit=yes
8563                       break
8564                     fi
8565                   done
8566                   if test -z "$haveit"; then
8567                     if test -d "$additional_includedir"; then
8568                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8569                     fi
8570                   fi
8571                 fi
8572               fi
8573             fi
8574                         if test -n "$found_la"; then
8575                                                         save_libdir="$libdir"
8576               case "$found_la" in
8577                 */* | *\\*) . "$found_la" ;;
8578                 *) . "./$found_la" ;;
8579               esac
8580               libdir="$save_libdir"
8581                             for dep in $dependency_libs; do
8582                 case "$dep" in
8583                   -L*)
8584                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8585                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8586                       haveit=
8587                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8588                         if test -n "$GCC"; then
8589                           case $host_os in
8590                             linux*) haveit=yes;;
8591                           esac
8592                         fi
8593                       fi
8594                       if test -z "$haveit"; then
8595                         haveit=
8596                         for x in $LDFLAGS $LIBINTL; do
8597
8598   acl_save_prefix="$prefix"
8599   prefix="$acl_final_prefix"
8600   acl_save_exec_prefix="$exec_prefix"
8601   exec_prefix="$acl_final_exec_prefix"
8602   eval x=\"$x\"
8603   exec_prefix="$acl_save_exec_prefix"
8604   prefix="$acl_save_prefix"
8605
8606                           if test "X$x" = "X-L$additional_libdir"; then
8607                             haveit=yes
8608                             break
8609                           fi
8610                         done
8611                         if test -z "$haveit"; then
8612                           if test -d "$additional_libdir"; then
8613                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8614                           fi
8615                         fi
8616                         haveit=
8617                         for x in $LDFLAGS $LTLIBINTL; do
8618
8619   acl_save_prefix="$prefix"
8620   prefix="$acl_final_prefix"
8621   acl_save_exec_prefix="$exec_prefix"
8622   exec_prefix="$acl_final_exec_prefix"
8623   eval x=\"$x\"
8624   exec_prefix="$acl_save_exec_prefix"
8625   prefix="$acl_save_prefix"
8626
8627                           if test "X$x" = "X-L$additional_libdir"; then
8628                             haveit=yes
8629                             break
8630                           fi
8631                         done
8632                         if test -z "$haveit"; then
8633                           if test -d "$additional_libdir"; then
8634                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8635                           fi
8636                         fi
8637                       fi
8638                     fi
8639                     ;;
8640                   -R*)
8641                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8642                     if test "$enable_rpath" != no; then
8643                                                                   haveit=
8644                       for x in $rpathdirs; do
8645                         if test "X$x" = "X$dir"; then
8646                           haveit=yes
8647                           break
8648                         fi
8649                       done
8650                       if test -z "$haveit"; then
8651                         rpathdirs="$rpathdirs $dir"
8652                       fi
8653                                                                   haveit=
8654                       for x in $ltrpathdirs; do
8655                         if test "X$x" = "X$dir"; then
8656                           haveit=yes
8657                           break
8658                         fi
8659                       done
8660                       if test -z "$haveit"; then
8661                         ltrpathdirs="$ltrpathdirs $dir"
8662                       fi
8663                     fi
8664                     ;;
8665                   -l*)
8666                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8667                     ;;
8668                   *.la)
8669                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8670                     ;;
8671                   *)
8672                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8673                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8674                     ;;
8675                 esac
8676               done
8677             fi
8678           else
8679                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8680             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8681           fi
8682         fi
8683       fi
8684     done
8685   done
8686   if test "X$rpathdirs" != "X"; then
8687     if test -n "$hardcode_libdir_separator"; then
8688                         alldirs=
8689       for found_dir in $rpathdirs; do
8690         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8691       done
8692             acl_save_libdir="$libdir"
8693       libdir="$alldirs"
8694       eval flag=\"$hardcode_libdir_flag_spec\"
8695       libdir="$acl_save_libdir"
8696       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8697     else
8698             for found_dir in $rpathdirs; do
8699         acl_save_libdir="$libdir"
8700         libdir="$found_dir"
8701         eval flag=\"$hardcode_libdir_flag_spec\"
8702         libdir="$acl_save_libdir"
8703         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8704       done
8705     fi
8706   fi
8707   if test "X$ltrpathdirs" != "X"; then
8708             for found_dir in $ltrpathdirs; do
8709       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8710     done
8711   fi
8712
8713           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8714 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8715 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8716   echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718   gt_save_CPPFLAGS="$CPPFLAGS"
8719             CPPFLAGS="$CPPFLAGS $INCINTL"
8720             gt_save_LIBS="$LIBS"
8721             LIBS="$LIBS $LIBINTL"
8722                         cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729 #include <libintl.h>
8730 extern int _nl_msg_cat_cntr;
8731 extern
8732 #ifdef __cplusplus
8733 "C"
8734 #endif
8735 const char *_nl_expand_alias ();
8736 int
8737 main ()
8738 {
8739 bindtextdomain ("", "");
8740 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest$ac_exeext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   gt_cv_func_gnugettext2_libintl=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 gt_cv_func_gnugettext2_libintl=no
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
8766               LIBS="$LIBS $LIBICONV"
8767               cat >conftest.$ac_ext <<_ACEOF
8768 #line $LINENO "configure"
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774 #include <libintl.h>
8775 extern int _nl_msg_cat_cntr;
8776 extern
8777 #ifdef __cplusplus
8778 "C"
8779 #endif
8780 const char *_nl_expand_alias ();
8781 int
8782 main ()
8783 {
8784 bindtextdomain ("", "");
8785 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8786   ;
8787   return 0;
8788 }
8789 _ACEOF
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792   (eval $ac_link) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -s conftest$ac_exeext'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; }; then
8802   LIBINTL="$LIBINTL $LIBICONV"
8803                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8804                 gt_cv_func_gnugettext2_libintl=yes
8805
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 fi
8811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8812             fi
8813             CPPFLAGS="$gt_save_CPPFLAGS"
8814             LIBS="$gt_save_LIBS"
8815 fi
8816 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8817 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8818         fi
8819
8820                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8821            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8822                 && test "$PACKAGE" != gettext-runtime \
8823                 && test "$PACKAGE" != gettext-tools; }; then
8824           gt_use_preinstalled_gnugettext=yes
8825         else
8826                     LIBINTL=
8827           LTLIBINTL=
8828           INCINTL=
8829         fi
8830
8831
8832         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8833                               nls_cv_use_gnu_gettext=yes
8834         fi
8835       fi
8836
8837       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8838                 BUILD_INCLUDED_LIBINTL=yes
8839         USE_INCLUDED_LIBINTL=yes
8840         LIBINTL="lib/intl/libintl.a $LIBICONV"
8841         LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
8842         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8843       fi
8844
8845       if test "$gt_use_preinstalled_gnugettext" = "yes" \
8846          || test "$nls_cv_use_gnu_gettext" = "yes"; then
8847                 CATOBJEXT=.gmo
8848       fi
8849
8850
8851     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8852        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8853
8854 cat >>confdefs.h <<\_ACEOF
8855 #define ENABLE_NLS 1
8856 _ACEOF
8857
8858     else
8859       USE_NLS=no
8860     fi
8861   fi
8862
8863   echo "$as_me:$LINENO: checking whether to use NLS" >&5
8864 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
8865   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8866 echo "${ECHO_T}$USE_NLS" >&6
8867   if test "$USE_NLS" = "yes"; then
8868     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8869 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
8870     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8871       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8872         gt_source="external libintl"
8873       else
8874         gt_source="libc"
8875       fi
8876     else
8877       gt_source="included intl directory"
8878     fi
8879     echo "$as_me:$LINENO: result: $gt_source" >&5
8880 echo "${ECHO_T}$gt_source" >&6
8881   fi
8882
8883   if test "$USE_NLS" = "yes"; then
8884
8885     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8886       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8887         echo "$as_me:$LINENO: checking how to link with libintl" >&5
8888 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8889         echo "$as_me:$LINENO: result: $LIBINTL" >&5
8890 echo "${ECHO_T}$LIBINTL" >&6
8891
8892   for element in $INCINTL; do
8893     haveit=
8894     for x in $CPPFLAGS; do
8895
8896   acl_save_prefix="$prefix"
8897   prefix="$acl_final_prefix"
8898   acl_save_exec_prefix="$exec_prefix"
8899   exec_prefix="$acl_final_exec_prefix"
8900   eval x=\"$x\"
8901   exec_prefix="$acl_save_exec_prefix"
8902   prefix="$acl_save_prefix"
8903
8904       if test "X$x" = "X$element"; then
8905         haveit=yes
8906         break
8907       fi
8908     done
8909     if test -z "$haveit"; then
8910       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8911     fi
8912   done
8913
8914       fi
8915
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_GETTEXT 1
8919 _ACEOF
8920
8921
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_DCGETTEXT 1
8924 _ACEOF
8925
8926     fi
8927
8928         POSUB=po
8929   fi
8930
8931
8932             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
8933       BUILD_INCLUDED_LIBINTL=yes
8934     fi
8935
8936
8937
8938
8939
8940         nls_cv_header_intl=
8941     nls_cv_header_libgt=
8942
8943         DATADIRNAME=share
8944
8945
8946         INSTOBJEXT=.mo
8947
8948
8949         GENCAT=gencat
8950
8951
8952         if test "$USE_INCLUDED_LIBINTL" = yes; then
8953       INTLOBJS="\$(GETTOBJS)"
8954     fi
8955
8956
8957         INTL_LIBTOOL_SUFFIX_PREFIX=
8958
8959
8960
8961     INTLLIBS="$LIBINTL"
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974 ac_header_dirent=no
8975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8976   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8977 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989 #include <sys/types.h>
8990 #include <$ac_hdr>
8991
8992 int
8993 main ()
8994 {
8995 if ((DIR *) 0)
8996 return 0;
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003   (eval $ac_compile) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -s conftest.$ac_objext'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   eval "$as_ac_Header=yes"
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 eval "$as_ac_Header=no"
9019 fi
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9021 fi
9022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025   cat >>confdefs.h <<_ACEOF
9026 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9027 _ACEOF
9028
9029 ac_header_dirent=$ac_hdr; break
9030 fi
9031
9032 done
9033 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9034 if test $ac_header_dirent = dirent.h; then
9035   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9036 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9037 if test "${ac_cv_search_opendir+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   ac_func_search_save_LIBS=$LIBS
9041 ac_cv_search_opendir=no
9042 cat >conftest.$ac_ext <<_ACEOF
9043 #line $LINENO "configure"
9044 /* confdefs.h.  */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h.  */
9049
9050 /* Override any gcc2 internal prototype to avoid an error.  */
9051 #ifdef __cplusplus
9052 extern "C"
9053 #endif
9054 /* We use char because int might match the return type of a gcc2
9055    builtin and then its argument prototype would still apply.  */
9056 char opendir ();
9057 int
9058 main ()
9059 {
9060 opendir ();
9061   ;
9062   return 0;
9063 }
9064 _ACEOF
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067   (eval $ac_link) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_search_opendir="none required"
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 fi
9083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9084 if test "$ac_cv_search_opendir" = no; then
9085   for ac_lib in dir; do
9086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9087     cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094
9095 /* Override any gcc2 internal prototype to avoid an error.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 /* We use char because int might match the return type of a gcc2
9100    builtin and then its argument prototype would still apply.  */
9101 char opendir ();
9102 int
9103 main ()
9104 {
9105 opendir ();
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112   (eval $ac_link) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } &&
9116          { ac_try='test -s conftest$ac_exeext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_cv_search_opendir="-l$ac_lib"
9123 break
9124 else
9125   echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 fi
9129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130   done
9131 fi
9132 LIBS=$ac_func_search_save_LIBS
9133 fi
9134 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9135 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9136 if test "$ac_cv_search_opendir" != no; then
9137   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9138
9139 fi
9140
9141 else
9142   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9143 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9144 if test "${ac_cv_search_opendir+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   ac_func_search_save_LIBS=$LIBS
9148 ac_cv_search_opendir=no
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156
9157 /* Override any gcc2 internal prototype to avoid an error.  */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 /* We use char because int might match the return type of a gcc2
9162    builtin and then its argument prototype would still apply.  */
9163 char opendir ();
9164 int
9165 main ()
9166 {
9167 opendir ();
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174   (eval $ac_link) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } &&
9178          { ac_try='test -s conftest$ac_exeext'
9179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180   (eval $ac_try) 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   ac_cv_search_opendir="none required"
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 fi
9190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9191 if test "$ac_cv_search_opendir" = no; then
9192   for ac_lib in x; do
9193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9194     cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201
9202 /* Override any gcc2 internal prototype to avoid an error.  */
9203 #ifdef __cplusplus
9204 extern "C"
9205 #endif
9206 /* We use char because int might match the return type of a gcc2
9207    builtin and then its argument prototype would still apply.  */
9208 char opendir ();
9209 int
9210 main ()
9211 {
9212 opendir ();
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); } &&
9223          { ac_try='test -s conftest$ac_exeext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_search_opendir="-l$ac_lib"
9230 break
9231 else
9232   echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 fi
9236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9237   done
9238 fi
9239 LIBS=$ac_func_search_save_LIBS
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9242 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9243 if test "$ac_cv_search_opendir" != no; then
9244   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9245
9246 fi
9247
9248 fi
9249
9250 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9251 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9252 if test "${ac_cv_header_time+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262 #include <sys/types.h>
9263 #include <sys/time.h>
9264 #include <time.h>
9265
9266 int
9267 main ()
9268 {
9269 if ((struct tm *) 0)
9270 return 0;
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277   (eval $ac_compile) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -s conftest.$ac_objext'
9282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283   (eval $ac_try) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); }; }; then
9287   ac_cv_header_time=yes
9288 else
9289   echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 ac_cv_header_time=no
9293 fi
9294 rm -f conftest.$ac_objext conftest.$ac_ext
9295 fi
9296 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9297 echo "${ECHO_T}$ac_cv_header_time" >&6
9298 if test $ac_cv_header_time = yes; then
9299
9300 cat >>confdefs.h <<\_ACEOF
9301 #define TIME_WITH_SYS_TIME 1
9302 _ACEOF
9303
9304 fi
9305
9306
9307
9308
9309 for ac_header in inttypes.h
9310 do
9311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9313   echo "$as_me:$LINENO: checking for $ac_header" >&5
9314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 fi
9318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9320 else
9321   # Is the header compilable?
9322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 $ac_includes_default
9332 #include <$ac_header>
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336   (eval $ac_compile) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } &&
9340          { ac_try='test -s conftest.$ac_objext'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   ac_header_compiler=yes
9347 else
9348   echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ac_header_compiler=no
9352 fi
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9355 echo "${ECHO_T}$ac_header_compiler" >&6
9356
9357 # Is the header present?
9358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 /* confdefs.h.  */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h.  */
9367 #include <$ac_header>
9368 _ACEOF
9369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9371   ac_status=$?
9372   grep -v '^ *+' conftest.er1 >conftest.err
9373   rm -f conftest.er1
9374   cat conftest.err >&5
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); } >/dev/null; then
9377   if test -s conftest.err; then
9378     ac_cpp_err=$ac_c_preproc_warn_flag
9379   else
9380     ac_cpp_err=
9381   fi
9382 else
9383   ac_cpp_err=yes
9384 fi
9385 if test -z "$ac_cpp_err"; then
9386   ac_header_preproc=yes
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391   ac_header_preproc=no
9392 fi
9393 rm -f conftest.err conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9395 echo "${ECHO_T}$ac_header_preproc" >&6
9396
9397 # So?  What about this header?
9398 case $ac_header_compiler:$ac_header_preproc in
9399   yes:no )
9400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9404     (
9405       cat <<\_ASBOX
9406 ## ------------------------------------ ##
9407 ## Report this to bug-autoconf@gnu.org. ##
9408 ## ------------------------------------ ##
9409 _ASBOX
9410     ) |
9411       sed "s/^/$as_me: WARNING:     /" >&2
9412     ;;
9413   no:yes )
9414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9420     (
9421       cat <<\_ASBOX
9422 ## ------------------------------------ ##
9423 ## Report this to bug-autoconf@gnu.org. ##
9424 ## ------------------------------------ ##
9425 _ASBOX
9426     ) |
9427       sed "s/^/$as_me: WARNING:     /" >&2
9428     ;;
9429 esac
9430 echo "$as_me:$LINENO: checking for $ac_header" >&5
9431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435   eval "$as_ac_Header=$ac_header_preproc"
9436 fi
9437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9439
9440 fi
9441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9442   cat >>confdefs.h <<_ACEOF
9443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9444 _ACEOF
9445
9446 fi
9447
9448 done
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
9471                  memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
9472                  stddef.h stdint.h netdb.h grp.h strings.h regex.h
9473 do
9474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9476   echo "$as_me:$LINENO: checking for $ac_header" >&5
9477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 fi
9481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9483 else
9484   # Is the header compilable?
9485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 $ac_includes_default
9495 #include <$ac_header>
9496 _ACEOF
9497 rm -f conftest.$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499   (eval $ac_compile) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } &&
9503          { ac_try='test -s conftest.$ac_objext'
9504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505   (eval $ac_try) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); }; }; then
9509   ac_header_compiler=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 ac_header_compiler=no
9515 fi
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9518 echo "${ECHO_T}$ac_header_compiler" >&6
9519
9520 # Is the header present?
9521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9523 cat >conftest.$ac_ext <<_ACEOF
9524 #line $LINENO "configure"
9525 /* confdefs.h.  */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h.  */
9530 #include <$ac_header>
9531 _ACEOF
9532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } >/dev/null; then
9540   if test -s conftest.err; then
9541     ac_cpp_err=$ac_c_preproc_warn_flag
9542   else
9543     ac_cpp_err=
9544   fi
9545 else
9546   ac_cpp_err=yes
9547 fi
9548 if test -z "$ac_cpp_err"; then
9549   ac_header_preproc=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554   ac_header_preproc=no
9555 fi
9556 rm -f conftest.err conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9558 echo "${ECHO_T}$ac_header_preproc" >&6
9559
9560 # So?  What about this header?
9561 case $ac_header_compiler:$ac_header_preproc in
9562   yes:no )
9563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9567     (
9568       cat <<\_ASBOX
9569 ## ------------------------------------ ##
9570 ## Report this to bug-autoconf@gnu.org. ##
9571 ## ------------------------------------ ##
9572 _ASBOX
9573     ) |
9574       sed "s/^/$as_me: WARNING:     /" >&2
9575     ;;
9576   no:yes )
9577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9579     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9583     (
9584       cat <<\_ASBOX
9585 ## ------------------------------------ ##
9586 ## Report this to bug-autoconf@gnu.org. ##
9587 ## ------------------------------------ ##
9588 _ASBOX
9589     ) |
9590       sed "s/^/$as_me: WARNING:     /" >&2
9591     ;;
9592 esac
9593 echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   eval "$as_ac_Header=$ac_header_preproc"
9599 fi
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9602
9603 fi
9604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9605   cat >>confdefs.h <<_ACEOF
9606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9607 _ACEOF
9608
9609 fi
9610
9611 done
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626 for ac_header in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
9627                  sys/resource.h sys/param.h sys/socket.h sys/stat.h \
9628                  sys/time.h sys/times.h sys/types.h sys/wait.h
9629 do
9630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9632   echo "$as_me:$LINENO: checking for $ac_header" >&5
9633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 fi
9637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9639 else
9640   # Is the header compilable?
9641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9643 cat >conftest.$ac_ext <<_ACEOF
9644 #line $LINENO "configure"
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650 $ac_includes_default
9651 #include <$ac_header>
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655   (eval $ac_compile) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -s conftest.$ac_objext'
9660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661   (eval $ac_try) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   ac_header_compiler=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_header_compiler=no
9671 fi
9672 rm -f conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9674 echo "${ECHO_T}$ac_header_compiler" >&6
9675
9676 # Is the header present?
9677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line $LINENO "configure"
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 #include <$ac_header>
9687 _ACEOF
9688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9690   ac_status=$?
9691   grep -v '^ *+' conftest.er1 >conftest.err
9692   rm -f conftest.er1
9693   cat conftest.err >&5
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } >/dev/null; then
9696   if test -s conftest.err; then
9697     ac_cpp_err=$ac_c_preproc_warn_flag
9698   else
9699     ac_cpp_err=
9700   fi
9701 else
9702   ac_cpp_err=yes
9703 fi
9704 if test -z "$ac_cpp_err"; then
9705   ac_header_preproc=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710   ac_header_preproc=no
9711 fi
9712 rm -f conftest.err conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9714 echo "${ECHO_T}$ac_header_preproc" >&6
9715
9716 # So?  What about this header?
9717 case $ac_header_compiler:$ac_header_preproc in
9718   yes:no )
9719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9723     (
9724       cat <<\_ASBOX
9725 ## ------------------------------------ ##
9726 ## Report this to bug-autoconf@gnu.org. ##
9727 ## ------------------------------------ ##
9728 _ASBOX
9729     ) |
9730       sed "s/^/$as_me: WARNING:     /" >&2
9731     ;;
9732   no:yes )
9733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9739     (
9740       cat <<\_ASBOX
9741 ## ------------------------------------ ##
9742 ## Report this to bug-autoconf@gnu.org. ##
9743 ## ------------------------------------ ##
9744 _ASBOX
9745     ) |
9746       sed "s/^/$as_me: WARNING:     /" >&2
9747     ;;
9748 esac
9749 echo "$as_me:$LINENO: checking for $ac_header" >&5
9750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   eval "$as_ac_Header=$ac_header_preproc"
9755 fi
9756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9758
9759 fi
9760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9761   cat >>confdefs.h <<_ACEOF
9762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9763 _ACEOF
9764
9765 fi
9766
9767 done
9768
9769
9770
9771 for ac_header in netinet/in.h arpa/inet.h
9772 do
9773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775   echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9778   echo $ECHO_N "(cached) $ECHO_C" >&6
9779 fi
9780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9782 else
9783   # Is the header compilable?
9784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9798   (eval $ac_compile) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } &&
9802          { ac_try='test -s conftest.$ac_objext'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_header_compiler=yes
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 ac_header_compiler=no
9814 fi
9815 rm -f conftest.$ac_objext conftest.$ac_ext
9816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9817 echo "${ECHO_T}$ac_header_compiler" >&6
9818
9819 # Is the header present?
9820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9823 #line $LINENO "configure"
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829 #include <$ac_header>
9830 _ACEOF
9831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } >/dev/null; then
9839   if test -s conftest.err; then
9840     ac_cpp_err=$ac_c_preproc_warn_flag
9841   else
9842     ac_cpp_err=
9843   fi
9844 else
9845   ac_cpp_err=yes
9846 fi
9847 if test -z "$ac_cpp_err"; then
9848   ac_header_preproc=yes
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853   ac_header_preproc=no
9854 fi
9855 rm -f conftest.err conftest.$ac_ext
9856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 echo "${ECHO_T}$ac_header_preproc" >&6
9858
9859 # So?  What about this header?
9860 case $ac_header_compiler:$ac_header_preproc in
9861   yes:no )
9862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9866     (
9867       cat <<\_ASBOX
9868 ## ------------------------------------ ##
9869 ## Report this to bug-autoconf@gnu.org. ##
9870 ## ------------------------------------ ##
9871 _ASBOX
9872     ) |
9873       sed "s/^/$as_me: WARNING:     /" >&2
9874     ;;
9875   no:yes )
9876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9878     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9882     (
9883       cat <<\_ASBOX
9884 ## ------------------------------------ ##
9885 ## Report this to bug-autoconf@gnu.org. ##
9886 ## ------------------------------------ ##
9887 _ASBOX
9888     ) |
9889       sed "s/^/$as_me: WARNING:     /" >&2
9890     ;;
9891 esac
9892 echo "$as_me:$LINENO: checking for $ac_header" >&5
9893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   eval "$as_ac_Header=$ac_header_preproc"
9898 fi
9899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9901
9902 fi
9903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9904   cat >>confdefs.h <<_ACEOF
9905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906 _ACEOF
9907
9908 fi
9909
9910 done
9911
9912
9913 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9914 # for constant arguments.  Useless!
9915 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9916 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9917 if test "${ac_cv_working_alloca_h+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   cat >conftest.$ac_ext <<_ACEOF
9921 #line $LINENO "configure"
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927 #include <alloca.h>
9928 int
9929 main ()
9930 {
9931 char *p = (char *) alloca (2 * sizeof (int));
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938   (eval $ac_link) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } &&
9942          { ac_try='test -s conftest$ac_exeext'
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_working_alloca_h=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_working_alloca_h=no
9954 fi
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956 fi
9957 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9959 if test $ac_cv_working_alloca_h = yes; then
9960
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_ALLOCA_H 1
9963 _ACEOF
9964
9965 fi
9966
9967 echo "$as_me:$LINENO: checking for alloca" >&5
9968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9969 if test "${ac_cv_func_alloca_works+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979 #ifdef __GNUC__
9980 # define alloca __builtin_alloca
9981 #else
9982 # ifdef _MSC_VER
9983 #  include <malloc.h>
9984 #  define alloca _alloca
9985 # else
9986 #  if HAVE_ALLOCA_H
9987 #   include <alloca.h>
9988 #  else
9989 #   ifdef _AIX
9990  #pragma alloca
9991 #   else
9992 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9993 char *alloca ();
9994 #    endif
9995 #   endif
9996 #  endif
9997 # endif
9998 #endif
9999
10000 int
10001 main ()
10002 {
10003 char *p = (char *) alloca (1);
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010   (eval $ac_link) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -s conftest$ac_exeext'
10015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016   (eval $ac_try) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; }; then
10020   ac_cv_func_alloca_works=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_cv_func_alloca_works=no
10026 fi
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10028 fi
10029 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10030 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10031
10032 if test $ac_cv_func_alloca_works = yes; then
10033
10034 cat >>confdefs.h <<\_ACEOF
10035 #define HAVE_ALLOCA 1
10036 _ACEOF
10037
10038 else
10039   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10040 # that cause trouble.  Some versions do not even contain alloca or
10041 # contain a buggy version.  If you still want to use their alloca,
10042 # use ar to extract alloca.o from them instead of compiling alloca.c.
10043
10044 ALLOCA=alloca.$ac_objext
10045
10046 cat >>confdefs.h <<\_ACEOF
10047 #define C_ALLOCA 1
10048 _ACEOF
10049
10050
10051 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10052 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10053 if test "${ac_cv_os_cray+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   cat >conftest.$ac_ext <<_ACEOF
10057 #line $LINENO "configure"
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 #if defined(CRAY) && ! defined(CRAY2)
10064 webecray
10065 #else
10066 wenotbecray
10067 #endif
10068
10069 _ACEOF
10070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10071   $EGREP "webecray" >/dev/null 2>&1; then
10072   ac_cv_os_cray=yes
10073 else
10074   ac_cv_os_cray=no
10075 fi
10076 rm -f conftest*
10077
10078 fi
10079 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10080 echo "${ECHO_T}$ac_cv_os_cray" >&6
10081 if test $ac_cv_os_cray = yes; then
10082   for ac_func in _getb67 GETB67 getb67; do
10083     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084 echo "$as_me:$LINENO: checking for $ac_func" >&5
10085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_var+set}\" = set"; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   cat >conftest.$ac_ext <<_ACEOF
10090 #line $LINENO "configure"
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096 /* System header to define __stub macros and hopefully few prototypes,
10097     which can conflict with char $ac_func (); below.
10098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099     <limits.h> exists even on freestanding compilers.  */
10100 #ifdef __STDC__
10101 # include <limits.h>
10102 #else
10103 # include <assert.h>
10104 #endif
10105 /* Override any gcc2 internal prototype to avoid an error.  */
10106 #ifdef __cplusplus
10107 extern "C"
10108 {
10109 #endif
10110 /* We use char because int might match the return type of a gcc2
10111    builtin and then its argument prototype would still apply.  */
10112 char $ac_func ();
10113 /* The GNU C library defines this for functions which it implements
10114     to always fail with ENOSYS.  Some functions are actually named
10115     something starting with __ and the normal name is an alias.  */
10116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10117 choke me
10118 #else
10119 char (*f) () = $ac_func;
10120 #endif
10121 #ifdef __cplusplus
10122 }
10123 #endif
10124
10125 int
10126 main ()
10127 {
10128 return f != $ac_func;
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135   (eval $ac_link) 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -s conftest$ac_exeext'
10140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141   (eval $ac_try) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; }; then
10145   eval "$as_ac_var=yes"
10146 else
10147   echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 eval "$as_ac_var=no"
10151 fi
10152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10153 fi
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10157
10158 cat >>confdefs.h <<_ACEOF
10159 #define CRAY_STACKSEG_END $ac_func
10160 _ACEOF
10161
10162     break
10163 fi
10164
10165   done
10166 fi
10167
10168 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10169 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10170 if test "${ac_cv_c_stack_direction+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   if test "$cross_compiling" = yes; then
10174   ac_cv_c_stack_direction=0
10175 else
10176   cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183 int
10184 find_stack_direction ()
10185 {
10186   static char *addr = 0;
10187   auto char dummy;
10188   if (addr == 0)
10189     {
10190       addr = &dummy;
10191       return find_stack_direction ();
10192     }
10193   else
10194     return (&dummy > addr) ? 1 : -1;
10195 }
10196
10197 int
10198 main ()
10199 {
10200   exit (find_stack_direction () < 0);
10201 }
10202 _ACEOF
10203 rm -f conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205   (eval $ac_link) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_c_stack_direction=1
10215 else
10216   echo "$as_me: program exited with status $ac_status" >&5
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10219
10220 ( exit $ac_status )
10221 ac_cv_c_stack_direction=-1
10222 fi
10223 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10224 fi
10225 fi
10226 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10227 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10228
10229 cat >>confdefs.h <<_ACEOF
10230 #define STACK_DIRECTION $ac_cv_c_stack_direction
10231 _ACEOF
10232
10233
10234 fi
10235
10236 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
10237 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
10238 if test "${ac_cv_func_getpgrp_void+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   # Use it with a single arg.
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249 $ac_includes_default
10250 int
10251 main ()
10252 {
10253 getpgrp (0);
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } &&
10264          { ac_try='test -s conftest.$ac_objext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_func_getpgrp_void=no
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_cv_func_getpgrp_void=yes
10276 fi
10277 rm -f conftest.$ac_objext conftest.$ac_ext
10278
10279 fi
10280 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
10281 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
10282 if test $ac_cv_func_getpgrp_void = yes; then
10283
10284 cat >>confdefs.h <<\_ACEOF
10285 #define GETPGRP_VOID 1
10286 _ACEOF
10287
10288 fi
10289
10290 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
10291 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
10292 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   ac_cv_func_setvbuf_reversed=no
10296    cat >conftest.$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10298 /* confdefs.h.  */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h.  */
10303 #include <stdio.h>
10304 #         if PROTOTYPES
10305            int (setvbuf) (FILE *, int, char *, size_t);
10306 #         endif
10307 int
10308 main ()
10309 {
10310 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317   (eval $ac_link) 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } &&
10321          { ac_try='test -s conftest$ac_exeext'
10322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323   (eval $ac_try) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); }; }; then
10327   cat >conftest.$ac_ext <<_ACEOF
10328 #line $LINENO "configure"
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334 #include <stdio.h>
10335 #            if PROTOTYPES
10336               int (setvbuf) (FILE *, int, char *, size_t);
10337 #            endif
10338 int
10339 main ()
10340 {
10341 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348   (eval $ac_link) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -s conftest$ac_exeext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   # It compiles and links either way, so it must not be declared
10359          # with a prototype and most likely this is a K&R C compiler.
10360          # Try running it.
10361          if test "$cross_compiling" = yes; then
10362   : # Assume setvbuf is not reversed when cross-compiling.
10363 else
10364   cat >conftest.$ac_ext <<_ACEOF
10365 #line $LINENO "configure"
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371 #include <stdio.h>
10372 int
10373 main ()
10374 {
10375 /* This call has the arguments reversed.
10376                    A reversed system may check and see that the address of buf
10377                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
10378                 char buf;
10379                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
10380                   exit (1);
10381                 putchar ('\r');
10382                 exit (0); /* Non-reversed systems SEGV here.  */
10383   ;
10384   return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389   (eval $ac_link) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394   (eval $ac_try) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }; then
10398   ac_cv_func_setvbuf_reversed=yes
10399 else
10400   echo "$as_me: program exited with status $ac_status" >&5
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404 ( exit $ac_status )
10405 rm -f core core.* *.core
10406 fi
10407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10408 fi
10409         ac_cv_func_setvbuf_reversed=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 fi
10415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 fi
10421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10422 fi
10423 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
10424 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
10425 if test $ac_cv_func_setvbuf_reversed = yes; then
10426
10427 cat >>confdefs.h <<\_ACEOF
10428 #define SETVBUF_REVERSED 1
10429 _ACEOF
10430
10431 fi
10432
10433
10434 for ac_func in vprintf
10435 do
10436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10437 echo "$as_me:$LINENO: checking for $ac_func" >&5
10438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10439 if eval "test \"\${$as_ac_var+set}\" = set"; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449 /* System header to define __stub macros and hopefully few prototypes,
10450     which can conflict with char $ac_func (); below.
10451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10452     <limits.h> exists even on freestanding compilers.  */
10453 #ifdef __STDC__
10454 # include <limits.h>
10455 #else
10456 # include <assert.h>
10457 #endif
10458 /* Override any gcc2 internal prototype to avoid an error.  */
10459 #ifdef __cplusplus
10460 extern "C"
10461 {
10462 #endif
10463 /* We use char because int might match the return type of a gcc2
10464    builtin and then its argument prototype would still apply.  */
10465 char $ac_func ();
10466 /* The GNU C library defines this for functions which it implements
10467     to always fail with ENOSYS.  Some functions are actually named
10468     something starting with __ and the normal name is an alias.  */
10469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10470 choke me
10471 #else
10472 char (*f) () = $ac_func;
10473 #endif
10474 #ifdef __cplusplus
10475 }
10476 #endif
10477
10478 int
10479 main ()
10480 {
10481 return f != $ac_func;
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10488   (eval $ac_link) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } &&
10492          { ac_try='test -s conftest$ac_exeext'
10493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494   (eval $ac_try) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; }; then
10498   eval "$as_ac_var=yes"
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503 eval "$as_ac_var=no"
10504 fi
10505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10506 fi
10507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10509 if test `eval echo '${'$as_ac_var'}'` = yes; then
10510   cat >>confdefs.h <<_ACEOF
10511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10512 _ACEOF
10513
10514 echo "$as_me:$LINENO: checking for _doprnt" >&5
10515 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10516 if test "${ac_cv_func__doprnt+set}" = set; then
10517   echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519   cat >conftest.$ac_ext <<_ACEOF
10520 #line $LINENO "configure"
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526 /* System header to define __stub macros and hopefully few prototypes,
10527     which can conflict with char _doprnt (); below.
10528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529     <limits.h> exists even on freestanding compilers.  */
10530 #ifdef __STDC__
10531 # include <limits.h>
10532 #else
10533 # include <assert.h>
10534 #endif
10535 /* Override any gcc2 internal prototype to avoid an error.  */
10536 #ifdef __cplusplus
10537 extern "C"
10538 {
10539 #endif
10540 /* We use char because int might match the return type of a gcc2
10541    builtin and then its argument prototype would still apply.  */
10542 char _doprnt ();
10543 /* The GNU C library defines this for functions which it implements
10544     to always fail with ENOSYS.  Some functions are actually named
10545     something starting with __ and the normal name is an alias.  */
10546 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10547 choke me
10548 #else
10549 char (*f) () = _doprnt;
10550 #endif
10551 #ifdef __cplusplus
10552 }
10553 #endif
10554
10555 int
10556 main ()
10557 {
10558 return f != _doprnt;
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565   (eval $ac_link) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -s conftest$ac_exeext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_func__doprnt=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ac_cv_func__doprnt=no
10581 fi
10582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10583 fi
10584 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10585 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10586 if test $ac_cv_func__doprnt = yes; then
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_DOPRNT 1
10590 _ACEOF
10591
10592 fi
10593
10594 fi
10595 done
10596
10597
10598 echo "$as_me:$LINENO: checking for working strcoll" >&5
10599 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
10600 if test "${ac_cv_func_strcoll_works+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   if test "$cross_compiling" = yes; then
10604   ac_cv_func_strcoll_works=no
10605 else
10606   cat >conftest.$ac_ext <<_ACEOF
10607 #line $LINENO "configure"
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 $ac_includes_default
10614 int
10615 main ()
10616 {
10617 exit (strcoll ("abc", "def") >= 0 ||
10618          strcoll ("ABC", "DEF") >= 0 ||
10619          strcoll ("123", "456") >= 0)
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest$ac_exeext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626   (eval $ac_link) 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631   (eval $ac_try) 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_cv_func_strcoll_works=yes
10636 else
10637   echo "$as_me: program exited with status $ac_status" >&5
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641 ( exit $ac_status )
10642 ac_cv_func_strcoll_works=no
10643 fi
10644 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10645 fi
10646 fi
10647 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
10648 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
10649 if test $ac_cv_func_strcoll_works = yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_STRCOLL 1
10653 _ACEOF
10654
10655 fi
10656
10657
10658
10659 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
10660         MALLOC_TARGET=alloca
10661         MALLOC_SRC=alloca.c
10662
10663         MALLOC_LIB='-lmalloc'
10664         MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
10665         MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
10666         MALLOC_DEP='$(MALLOC_LIBRARY)'
10667 fi
10668
10669 if test "$ac_cv_func_vprintf" = no; then
10670     echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
10671 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
10672     cat >conftest.$ac_ext <<_ACEOF
10673 #line $LINENO "configure"
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679 #include <stdio.h>
10680
10681 _ACEOF
10682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10683   $EGREP "[int[         ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
10684   ac_cv_func_vprintf=yes
10685 fi
10686 rm -f conftest*
10687
10688     echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
10689 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
10690     if test $ac_cv_func_vprintf = yes; then
10691         cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_VPRINTF 1
10693 _ACEOF
10694
10695     fi
10696 fi
10697
10698 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
10699   LIBOBJS="$LIBOBJS vprint.$ac_objext"
10700 fi
10701
10702 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10703 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10704 if test "${ac_cv_type_signal+set}" = set; then
10705   echo $ECHO_N "(cached) $ECHO_C" >&6
10706 else
10707   cat >conftest.$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10709 /* confdefs.h.  */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h.  */
10714 #include <sys/types.h>
10715 #include <signal.h>
10716 #ifdef signal
10717 # undef signal
10718 #endif
10719 #ifdef __cplusplus
10720 extern "C" void (*signal (int, void (*)(int)))(int);
10721 #else
10722 void (*signal ()) ();
10723 #endif
10724
10725 int
10726 main ()
10727 {
10728 int i;
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735   (eval $ac_compile) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); } &&
10739          { ac_try='test -s conftest.$ac_objext'
10740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741   (eval $ac_try) 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; }; then
10745   ac_cv_type_signal=void
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 ac_cv_type_signal=int
10751 fi
10752 rm -f conftest.$ac_objext conftest.$ac_ext
10753 fi
10754 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10755 echo "${ECHO_T}$ac_cv_type_signal" >&6
10756
10757 cat >>confdefs.h <<_ACEOF
10758 #define RETSIGTYPE $ac_cv_type_signal
10759 _ACEOF
10760
10761
10762
10763 echo "$as_me:$LINENO: checking for __setostype" >&5
10764 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
10765 if test "${ac_cv_func___setostype+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   cat >conftest.$ac_ext <<_ACEOF
10769 #line $LINENO "configure"
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 /* System header to define __stub macros and hopefully few prototypes,
10776     which can conflict with char __setostype (); below.
10777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10778     <limits.h> exists even on freestanding compilers.  */
10779 #ifdef __STDC__
10780 # include <limits.h>
10781 #else
10782 # include <assert.h>
10783 #endif
10784 /* Override any gcc2 internal prototype to avoid an error.  */
10785 #ifdef __cplusplus
10786 extern "C"
10787 {
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790    builtin and then its argument prototype would still apply.  */
10791 char __setostype ();
10792 /* The GNU C library defines this for functions which it implements
10793     to always fail with ENOSYS.  Some functions are actually named
10794     something starting with __ and the normal name is an alias.  */
10795 #if defined (__stub___setostype) || defined (__stub_____setostype)
10796 choke me
10797 #else
10798 char (*f) () = __setostype;
10799 #endif
10800 #ifdef __cplusplus
10801 }
10802 #endif
10803
10804 int
10805 main ()
10806 {
10807 return f != __setostype;
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814   (eval $ac_link) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); } &&
10818          { ac_try='test -s conftest$ac_exeext'
10819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820   (eval $ac_try) 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; }; then
10824   ac_cv_func___setostype=yes
10825 else
10826   echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 ac_cv_func___setostype=no
10830 fi
10831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10832 fi
10833 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
10834 echo "${ECHO_T}$ac_cv_func___setostype" >&6
10835 if test $ac_cv_func___setostype = yes; then
10836   cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_SETOSTYPE 1
10838 _ACEOF
10839
10840 fi
10841
10842 echo "$as_me:$LINENO: checking for wait3" >&5
10843 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
10844 if test "${ac_cv_func_wait3+set}" = set; then
10845   echo $ECHO_N "(cached) $ECHO_C" >&6
10846 else
10847   cat >conftest.$ac_ext <<_ACEOF
10848 #line $LINENO "configure"
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854 /* System header to define __stub macros and hopefully few prototypes,
10855     which can conflict with char wait3 (); below.
10856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10857     <limits.h> exists even on freestanding compilers.  */
10858 #ifdef __STDC__
10859 # include <limits.h>
10860 #else
10861 # include <assert.h>
10862 #endif
10863 /* Override any gcc2 internal prototype to avoid an error.  */
10864 #ifdef __cplusplus
10865 extern "C"
10866 {
10867 #endif
10868 /* We use char because int might match the return type of a gcc2
10869    builtin and then its argument prototype would still apply.  */
10870 char wait3 ();
10871 /* The GNU C library defines this for functions which it implements
10872     to always fail with ENOSYS.  Some functions are actually named
10873     something starting with __ and the normal name is an alias.  */
10874 #if defined (__stub_wait3) || defined (__stub___wait3)
10875 choke me
10876 #else
10877 char (*f) () = wait3;
10878 #endif
10879 #ifdef __cplusplus
10880 }
10881 #endif
10882
10883 int
10884 main ()
10885 {
10886 return f != wait3;
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893   (eval $ac_link) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -s conftest$ac_exeext'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   ac_cv_func_wait3=yes
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_cv_func_wait3=no
10909 fi
10910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10911 fi
10912 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
10913 echo "${ECHO_T}$ac_cv_func_wait3" >&6
10914 if test $ac_cv_func_wait3 = yes; then
10915   cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_WAIT3 1
10917 _ACEOF
10918
10919 fi
10920
10921 echo "$as_me:$LINENO: checking for isinf" >&5
10922 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10923 if test "${ac_cv_func_isinf+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933 /* System header to define __stub macros and hopefully few prototypes,
10934     which can conflict with char isinf (); below.
10935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936     <limits.h> exists even on freestanding compilers.  */
10937 #ifdef __STDC__
10938 # include <limits.h>
10939 #else
10940 # include <assert.h>
10941 #endif
10942 /* Override any gcc2 internal prototype to avoid an error.  */
10943 #ifdef __cplusplus
10944 extern "C"
10945 {
10946 #endif
10947 /* We use char because int might match the return type of a gcc2
10948    builtin and then its argument prototype would still apply.  */
10949 char isinf ();
10950 /* The GNU C library defines this for functions which it implements
10951     to always fail with ENOSYS.  Some functions are actually named
10952     something starting with __ and the normal name is an alias.  */
10953 #if defined (__stub_isinf) || defined (__stub___isinf)
10954 choke me
10955 #else
10956 char (*f) () = isinf;
10957 #endif
10958 #ifdef __cplusplus
10959 }
10960 #endif
10961
10962 int
10963 main ()
10964 {
10965 return f != isinf;
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972   (eval $ac_link) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -s conftest$ac_exeext'
10977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978   (eval $ac_try) 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }; }; then
10982   ac_cv_func_isinf=yes
10983 else
10984   echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 ac_cv_func_isinf=no
10988 fi
10989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10990 fi
10991 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10992 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10993 if test $ac_cv_func_isinf = yes; then
10994   cat >>confdefs.h <<\_ACEOF
10995 #define HAVE_ISINF_IN_LIBC 1
10996 _ACEOF
10997
10998 fi
10999
11000
11001 echo "$as_me:$LINENO: checking for mkfifo" >&5
11002 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11003 if test "${ac_cv_func_mkfifo+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   cat >conftest.$ac_ext <<_ACEOF
11007 #line $LINENO "configure"
11008 /* confdefs.h.  */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h.  */
11013 /* System header to define __stub macros and hopefully few prototypes,
11014     which can conflict with char mkfifo (); below.
11015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016     <limits.h> exists even on freestanding compilers.  */
11017 #ifdef __STDC__
11018 # include <limits.h>
11019 #else
11020 # include <assert.h>
11021 #endif
11022 /* Override any gcc2 internal prototype to avoid an error.  */
11023 #ifdef __cplusplus
11024 extern "C"
11025 {
11026 #endif
11027 /* We use char because int might match the return type of a gcc2
11028    builtin and then its argument prototype would still apply.  */
11029 char mkfifo ();
11030 /* The GNU C library defines this for functions which it implements
11031     to always fail with ENOSYS.  Some functions are actually named
11032     something starting with __ and the normal name is an alias.  */
11033 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11034 choke me
11035 #else
11036 char (*f) () = mkfifo;
11037 #endif
11038 #ifdef __cplusplus
11039 }
11040 #endif
11041
11042 int
11043 main ()
11044 {
11045 return f != mkfifo;
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052   (eval $ac_link) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } &&
11056          { ac_try='test -s conftest$ac_exeext'
11057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058   (eval $ac_try) 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   ac_cv_func_mkfifo=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_cv_func_mkfifo=no
11068 fi
11069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11070 fi
11071 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
11072 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
11073 if test $ac_cv_func_mkfifo = yes; then
11074   cat >>confdefs.h <<\_ACEOF
11075 #define HAVE_MKFIFO 1
11076 _ACEOF
11077
11078 else
11079   cat >>confdefs.h <<\_ACEOF
11080 #define MKFIFO_MISSING 1
11081 _ACEOF
11082
11083 fi
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103 for ac_func in dup2 select getdtablesize getgroups gethostname \
11104                 setdtablesize getpagesize killpg lstat getpeername sbrk \
11105                 getrlimit getrusage gettimeofday waitpid tcgetpgrp \
11106                 readlink
11107 do
11108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11109 echo "$as_me:$LINENO: checking for $ac_func" >&5
11110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11111 if eval "test \"\${$as_ac_var+set}\" = set"; then
11112   echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114   cat >conftest.$ac_ext <<_ACEOF
11115 #line $LINENO "configure"
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121 /* System header to define __stub macros and hopefully few prototypes,
11122     which can conflict with char $ac_func (); below.
11123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11124     <limits.h> exists even on freestanding compilers.  */
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11130 /* Override any gcc2 internal prototype to avoid an error.  */
11131 #ifdef __cplusplus
11132 extern "C"
11133 {
11134 #endif
11135 /* We use char because int might match the return type of a gcc2
11136    builtin and then its argument prototype would still apply.  */
11137 char $ac_func ();
11138 /* The GNU C library defines this for functions which it implements
11139     to always fail with ENOSYS.  Some functions are actually named
11140     something starting with __ and the normal name is an alias.  */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142 choke me
11143 #else
11144 char (*f) () = $ac_func;
11145 #endif
11146 #ifdef __cplusplus
11147 }
11148 #endif
11149
11150 int
11151 main ()
11152 {
11153 return f != $ac_func;
11154   ;
11155   return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160   (eval $ac_link) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -s conftest$ac_exeext'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   eval "$as_ac_var=yes"
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 eval "$as_ac_var=no"
11176 fi
11177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11178 fi
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11182   cat >>confdefs.h <<_ACEOF
11183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11184 _ACEOF
11185
11186 fi
11187 done
11188
11189
11190 for ac_func in rename
11191 do
11192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11193 echo "$as_me:$LINENO: checking for $ac_func" >&5
11194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11195 if eval "test \"\${$as_ac_var+set}\" = set"; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 /* System header to define __stub macros and hopefully few prototypes,
11206     which can conflict with char $ac_func (); below.
11207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11208     <limits.h> exists even on freestanding compilers.  */
11209 #ifdef __STDC__
11210 # include <limits.h>
11211 #else
11212 # include <assert.h>
11213 #endif
11214 /* Override any gcc2 internal prototype to avoid an error.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 {
11218 #endif
11219 /* We use char because int might match the return type of a gcc2
11220    builtin and then its argument prototype would still apply.  */
11221 char $ac_func ();
11222 /* The GNU C library defines this for functions which it implements
11223     to always fail with ENOSYS.  Some functions are actually named
11224     something starting with __ and the normal name is an alias.  */
11225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11226 choke me
11227 #else
11228 char (*f) () = $ac_func;
11229 #endif
11230 #ifdef __cplusplus
11231 }
11232 #endif
11233
11234 int
11235 main ()
11236 {
11237 return f != $ac_func;
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } &&
11248          { ac_try='test -s conftest$ac_exeext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   eval "$as_ac_var=yes"
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 eval "$as_ac_var=no"
11260 fi
11261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11265 if test `eval echo '${'$as_ac_var'}'` = yes; then
11266   cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11268 _ACEOF
11269
11270 else
11271   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11272 fi
11273 done
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309 for ac_func in bcopy bzero confstr sysconf pathconf setenv putenv unsetenv \
11310                 setlinebuf setvbuf setlocale strchr tcgetattr uname \
11311                 ulimit tzset siginterrupt memmove ttyname times \
11312                 getaddrinfo gethostbyname getservbyname getservent inet_aton \
11313                 vsnprintf snprintf vasprintf asprintf fnmatch regcomp regexec
11314 do
11315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11316 echo "$as_me:$LINENO: checking for $ac_func" >&5
11317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11318 if eval "test \"\${$as_ac_var+set}\" = set"; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 /* System header to define __stub macros and hopefully few prototypes,
11329     which can conflict with char $ac_func (); below.
11330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331     <limits.h> exists even on freestanding compilers.  */
11332 #ifdef __STDC__
11333 # include <limits.h>
11334 #else
11335 # include <assert.h>
11336 #endif
11337 /* Override any gcc2 internal prototype to avoid an error.  */
11338 #ifdef __cplusplus
11339 extern "C"
11340 {
11341 #endif
11342 /* We use char because int might match the return type of a gcc2
11343    builtin and then its argument prototype would still apply.  */
11344 char $ac_func ();
11345 /* The GNU C library defines this for functions which it implements
11346     to always fail with ENOSYS.  Some functions are actually named
11347     something starting with __ and the normal name is an alias.  */
11348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11349 choke me
11350 #else
11351 char (*f) () = $ac_func;
11352 #endif
11353 #ifdef __cplusplus
11354 }
11355 #endif
11356
11357 int
11358 main ()
11359 {
11360 return f != $ac_func;
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367   (eval $ac_link) 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); } &&
11371          { ac_try='test -s conftest$ac_exeext'
11372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373   (eval $ac_try) 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   eval "$as_ac_var=yes"
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 eval "$as_ac_var=no"
11383 fi
11384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385 fi
11386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11388 if test `eval echo '${'$as_ac_var'}'` = yes; then
11389   cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391 _ACEOF
11392
11393 fi
11394 done
11395
11396
11397
11398
11399
11400
11401
11402 for ac_func in isascii isblank isgraph isprint isspace isxdigit
11403 do
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   cat >conftest.$ac_ext <<_ACEOF
11411 #line $LINENO "configure"
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 /* System header to define __stub macros and hopefully few prototypes,
11418     which can conflict with char $ac_func (); below.
11419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11420     <limits.h> exists even on freestanding compilers.  */
11421 #ifdef __STDC__
11422 # include <limits.h>
11423 #else
11424 # include <assert.h>
11425 #endif
11426 /* Override any gcc2 internal prototype to avoid an error.  */
11427 #ifdef __cplusplus
11428 extern "C"
11429 {
11430 #endif
11431 /* We use char because int might match the return type of a gcc2
11432    builtin and then its argument prototype would still apply.  */
11433 char $ac_func ();
11434 /* The GNU C library defines this for functions which it implements
11435     to always fail with ENOSYS.  Some functions are actually named
11436     something starting with __ and the normal name is an alias.  */
11437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11438 choke me
11439 #else
11440 char (*f) () = $ac_func;
11441 #endif
11442 #ifdef __cplusplus
11443 }
11444 #endif
11445
11446 int
11447 main ()
11448 {
11449 return f != $ac_func;
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456   (eval $ac_link) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -s conftest$ac_exeext'
11461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462   (eval $ac_try) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }; then
11466   eval "$as_ac_var=yes"
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 eval "$as_ac_var=no"
11472 fi
11473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11474 fi
11475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11477 if test `eval echo '${'$as_ac_var'}'` = yes; then
11478   cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 _ACEOF
11481
11482 fi
11483 done
11484
11485
11486
11487
11488
11489
11490
11491
11492 for ac_func in getcwd strcasecmp strerror strftime strpbrk memset strstr
11493 do
11494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11495 echo "$as_me:$LINENO: checking for $ac_func" >&5
11496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11497 if eval "test \"\${$as_ac_var+set}\" = set"; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 /* System header to define __stub macros and hopefully few prototypes,
11508     which can conflict with char $ac_func (); below.
11509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510     <limits.h> exists even on freestanding compilers.  */
11511 #ifdef __STDC__
11512 # include <limits.h>
11513 #else
11514 # include <assert.h>
11515 #endif
11516 /* Override any gcc2 internal prototype to avoid an error.  */
11517 #ifdef __cplusplus
11518 extern "C"
11519 {
11520 #endif
11521 /* We use char because int might match the return type of a gcc2
11522    builtin and then its argument prototype would still apply.  */
11523 char $ac_func ();
11524 /* The GNU C library defines this for functions which it implements
11525     to always fail with ENOSYS.  Some functions are actually named
11526     something starting with __ and the normal name is an alias.  */
11527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11528 choke me
11529 #else
11530 char (*f) () = $ac_func;
11531 #endif
11532 #ifdef __cplusplus
11533 }
11534 #endif
11535
11536 int
11537 main ()
11538 {
11539 return f != $ac_func;
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11546   (eval $ac_link) 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); } &&
11550          { ac_try='test -s conftest$ac_exeext'
11551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552   (eval $ac_try) 2>&5
11553   ac_status=$?
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); }; }; then
11556   eval "$as_ac_var=yes"
11557 else
11558   echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561 eval "$as_ac_var=no"
11562 fi
11563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11564 fi
11565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11567 if test `eval echo '${'$as_ac_var'}'` = yes; then
11568   cat >>confdefs.h <<_ACEOF
11569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11570 _ACEOF
11571
11572 else
11573   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11574 fi
11575 done
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
11586 do
11587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11588 echo "$as_me:$LINENO: checking for $ac_func" >&5
11589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11590 if eval "test \"\${$as_ac_var+set}\" = set"; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600 /* System header to define __stub macros and hopefully few prototypes,
11601     which can conflict with char $ac_func (); below.
11602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11603     <limits.h> exists even on freestanding compilers.  */
11604 #ifdef __STDC__
11605 # include <limits.h>
11606 #else
11607 # include <assert.h>
11608 #endif
11609 /* Override any gcc2 internal prototype to avoid an error.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 {
11613 #endif
11614 /* We use char because int might match the return type of a gcc2
11615    builtin and then its argument prototype would still apply.  */
11616 char $ac_func ();
11617 /* The GNU C library defines this for functions which it implements
11618     to always fail with ENOSYS.  Some functions are actually named
11619     something starting with __ and the normal name is an alias.  */
11620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11621 choke me
11622 #else
11623 char (*f) () = $ac_func;
11624 #endif
11625 #ifdef __cplusplus
11626 }
11627 #endif
11628
11629 int
11630 main ()
11631 {
11632 return f != $ac_func;
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639   (eval $ac_link) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   eval "$as_ac_var=yes"
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 eval "$as_ac_var=no"
11655 fi
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 fi
11658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11660 if test `eval echo '${'$as_ac_var'}'` = yes; then
11661   cat >>confdefs.h <<_ACEOF
11662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11663 _ACEOF
11664
11665 else
11666   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11667 fi
11668 done
11669
11670
11671
11672 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
11673 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
11674 if test "${ac_cv_have_decl_confstr+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11679 /* confdefs.h.  */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h.  */
11684 $ac_includes_default
11685 int
11686 main ()
11687 {
11688 #ifndef confstr
11689   char *p = (char *) confstr;
11690 #endif
11691
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698   (eval $ac_compile) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } &&
11702          { ac_try='test -s conftest.$ac_objext'
11703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704   (eval $ac_try) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); }; }; then
11708   ac_cv_have_decl_confstr=yes
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 ac_cv_have_decl_confstr=no
11714 fi
11715 rm -f conftest.$ac_objext conftest.$ac_ext
11716 fi
11717 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
11718 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
11719 if test $ac_cv_have_decl_confstr = yes; then
11720
11721 cat >>confdefs.h <<_ACEOF
11722 #define HAVE_DECL_CONFSTR 1
11723 _ACEOF
11724
11725
11726 else
11727   cat >>confdefs.h <<_ACEOF
11728 #define HAVE_DECL_CONFSTR 0
11729 _ACEOF
11730
11731
11732 fi
11733
11734
11735 echo "$as_me:$LINENO: checking whether printf is declared" >&5
11736 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
11737 if test "${ac_cv_have_decl_printf+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   cat >conftest.$ac_ext <<_ACEOF
11741 #line $LINENO "configure"
11742 /* confdefs.h.  */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h.  */
11747 $ac_includes_default
11748 int
11749 main ()
11750 {
11751 #ifndef printf
11752   char *p = (char *) printf;
11753 #endif
11754
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761   (eval $ac_compile) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -s conftest.$ac_objext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   ac_cv_have_decl_printf=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_cv_have_decl_printf=no
11777 fi
11778 rm -f conftest.$ac_objext conftest.$ac_ext
11779 fi
11780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
11781 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
11782 if test $ac_cv_have_decl_printf = yes; then
11783
11784 cat >>confdefs.h <<_ACEOF
11785 #define HAVE_DECL_PRINTF 1
11786 _ACEOF
11787
11788
11789 else
11790   cat >>confdefs.h <<_ACEOF
11791 #define HAVE_DECL_PRINTF 0
11792 _ACEOF
11793
11794
11795 fi
11796
11797
11798 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
11799 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
11800 if test "${ac_cv_have_decl_sbrk+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 $ac_includes_default
11811 int
11812 main ()
11813 {
11814 #ifndef sbrk
11815   char *p = (char *) sbrk;
11816 #endif
11817
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824   (eval $ac_compile) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -s conftest.$ac_objext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   ac_cv_have_decl_sbrk=yes
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_have_decl_sbrk=no
11840 fi
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
11844 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
11845 if test $ac_cv_have_decl_sbrk = yes; then
11846
11847 cat >>confdefs.h <<_ACEOF
11848 #define HAVE_DECL_SBRK 1
11849 _ACEOF
11850
11851
11852 else
11853   cat >>confdefs.h <<_ACEOF
11854 #define HAVE_DECL_SBRK 0
11855 _ACEOF
11856
11857
11858 fi
11859
11860
11861 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
11862 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
11863 if test "${ac_cv_have_decl_strcpy+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 $ac_includes_default
11874 int
11875 main ()
11876 {
11877 #ifndef strcpy
11878   char *p = (char *) strcpy;
11879 #endif
11880
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887   (eval $ac_compile) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -s conftest.$ac_objext'
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_have_decl_strcpy=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_have_decl_strcpy=no
11903 fi
11904 rm -f conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
11907 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
11908 if test $ac_cv_have_decl_strcpy = yes; then
11909
11910 cat >>confdefs.h <<_ACEOF
11911 #define HAVE_DECL_STRCPY 1
11912 _ACEOF
11913
11914
11915 else
11916   cat >>confdefs.h <<_ACEOF
11917 #define HAVE_DECL_STRCPY 0
11918 _ACEOF
11919
11920
11921 fi
11922
11923
11924 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
11925 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
11926 if test "${ac_cv_have_decl_strsignal+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   cat >conftest.$ac_ext <<_ACEOF
11930 #line $LINENO "configure"
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936 $ac_includes_default
11937 int
11938 main ()
11939 {
11940 #ifndef strsignal
11941   char *p = (char *) strsignal;
11942 #endif
11943
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11950   (eval $ac_compile) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); } &&
11954          { ac_try='test -s conftest.$ac_objext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_have_decl_strsignal=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_have_decl_strsignal=no
11966 fi
11967 rm -f conftest.$ac_objext conftest.$ac_ext
11968 fi
11969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
11970 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
11971 if test $ac_cv_have_decl_strsignal = yes; then
11972
11973 cat >>confdefs.h <<_ACEOF
11974 #define HAVE_DECL_STRSIGNAL 1
11975 _ACEOF
11976
11977
11978 else
11979   cat >>confdefs.h <<_ACEOF
11980 #define HAVE_DECL_STRSIGNAL 0
11981 _ACEOF
11982
11983
11984 fi
11985
11986
11987
11988 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
11989 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
11990 if test "${ac_cv_have_decl_strtold+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   cat >conftest.$ac_ext <<_ACEOF
11994 #line $LINENO "configure"
11995 /* confdefs.h.  */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h.  */
12000 $ac_includes_default
12001 int
12002 main ()
12003 {
12004 #ifndef strtold
12005   char *p = (char *) strtold;
12006 #endif
12007
12008   ;
12009   return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014   (eval $ac_compile) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); } &&
12018          { ac_try='test -s conftest.$ac_objext'
12019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020   (eval $ac_try) 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   ac_cv_have_decl_strtold=yes
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 ac_cv_have_decl_strtold=no
12030 fi
12031 rm -f conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
12034 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
12035 if test $ac_cv_have_decl_strtold = yes; then
12036
12037 cat >>confdefs.h <<_ACEOF
12038 #define HAVE_DECL_STRTOLD 1
12039 _ACEOF
12040
12041
12042     echo "$as_me:$LINENO: checking for broken strtold" >&5
12043 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
12044     if test "${bash_cv_strtold_broken+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054 #include <stdlib.h>
12055 int
12056 main ()
12057 {
12058 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065   (eval $ac_compile) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -s conftest.$ac_objext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   bash_cv_strtold_broken=no
12076 else
12077   echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080 bash_cv_strtold_broken=yes
12081 fi
12082 rm -f conftest.$ac_objext conftest.$ac_ext
12083
12084
12085 fi
12086
12087     echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
12088 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
12089     if test "$bash_cv_strtold_broken" = "yes" ; then
12090         cat >>confdefs.h <<\_ACEOF
12091 #define STRTOLD_BROKEN 1
12092 _ACEOF
12093
12094     fi
12095
12096 else
12097   cat >>confdefs.h <<_ACEOF
12098 #define HAVE_DECL_STRTOLD 0
12099 _ACEOF
12100
12101
12102 fi
12103
12104
12105
12106
12107
12108
12109
12110 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
12111 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
12112 if test "${bash_cv_decl_strtoimax+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115   cat >conftest.$ac_ext <<_ACEOF
12116 #line $LINENO "configure"
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122
12123 #if STDC_HEADERS
12124 #  include <stdlib.h>
12125 #endif
12126 #if HAVE_INTTYPES_H
12127 #  include <inttypes.h>
12128 #endif
12129
12130 int
12131 main ()
12132 {
12133 return !strtoimax;
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140   (eval $ac_link) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); } &&
12144          { ac_try='test -s conftest$ac_exeext'
12145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146   (eval $ac_try) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; }; then
12150   bash_cv_decl_strtoimax=yes
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 bash_cv_decl_strtoimax=no
12156 fi
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12158 fi
12159 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
12160 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
12161 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12162 if test $bash_cv_decl_strtoimax = yes; then
12163   cat >>confdefs.h <<_ACEOF
12164 #define $bash_tr_func 1
12165 _ACEOF
12166
12167 else
12168   cat >>confdefs.h <<_ACEOF
12169 #define $bash_tr_func 0
12170 _ACEOF
12171
12172 fi
12173
12174
12175
12176
12177 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
12178 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
12179 if test "${bash_cv_decl_strtol+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   cat >conftest.$ac_ext <<_ACEOF
12183 #line $LINENO "configure"
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189
12190 #if STDC_HEADERS
12191 #  include <stdlib.h>
12192 #endif
12193 #if HAVE_INTTYPES_H
12194 #  include <inttypes.h>
12195 #endif
12196
12197 int
12198 main ()
12199 {
12200 return !strtol;
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>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -s conftest$ac_exeext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217   bash_cv_decl_strtol=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 bash_cv_decl_strtol=no
12223 fi
12224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12225 fi
12226 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
12227 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
12228 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12229 if test $bash_cv_decl_strtol = yes; then
12230   cat >>confdefs.h <<_ACEOF
12231 #define $bash_tr_func 1
12232 _ACEOF
12233
12234 else
12235   cat >>confdefs.h <<_ACEOF
12236 #define $bash_tr_func 0
12237 _ACEOF
12238
12239 fi
12240
12241
12242
12243
12244 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
12245 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
12246 if test "${bash_cv_decl_strtoll+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   cat >conftest.$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256
12257 #if STDC_HEADERS
12258 #  include <stdlib.h>
12259 #endif
12260 #if HAVE_INTTYPES_H
12261 #  include <inttypes.h>
12262 #endif
12263
12264 int
12265 main ()
12266 {
12267 return !strtoll;
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274   (eval $ac_link) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -s conftest$ac_exeext'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; }; then
12284   bash_cv_decl_strtoll=yes
12285 else
12286   echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 bash_cv_decl_strtoll=no
12290 fi
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292 fi
12293 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
12294 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
12295 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12296 if test $bash_cv_decl_strtoll = yes; then
12297   cat >>confdefs.h <<_ACEOF
12298 #define $bash_tr_func 1
12299 _ACEOF
12300
12301 else
12302   cat >>confdefs.h <<_ACEOF
12303 #define $bash_tr_func 0
12304 _ACEOF
12305
12306 fi
12307
12308
12309
12310
12311 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
12312 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
12313 if test "${bash_cv_decl_strtoul+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   cat >conftest.$ac_ext <<_ACEOF
12317 #line $LINENO "configure"
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323
12324 #if STDC_HEADERS
12325 #  include <stdlib.h>
12326 #endif
12327 #if HAVE_INTTYPES_H
12328 #  include <inttypes.h>
12329 #endif
12330
12331 int
12332 main ()
12333 {
12334 return !strtoul;
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341   (eval $ac_link) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } &&
12345          { ac_try='test -s conftest$ac_exeext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   bash_cv_decl_strtoul=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 bash_cv_decl_strtoul=no
12357 fi
12358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12359 fi
12360 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
12361 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
12362 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12363 if test $bash_cv_decl_strtoul = yes; then
12364   cat >>confdefs.h <<_ACEOF
12365 #define $bash_tr_func 1
12366 _ACEOF
12367
12368 else
12369   cat >>confdefs.h <<_ACEOF
12370 #define $bash_tr_func 0
12371 _ACEOF
12372
12373 fi
12374
12375
12376
12377
12378 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
12379 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
12380 if test "${bash_cv_decl_strtoull+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 #line $LINENO "configure"
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390
12391 #if STDC_HEADERS
12392 #  include <stdlib.h>
12393 #endif
12394 #if HAVE_INTTYPES_H
12395 #  include <inttypes.h>
12396 #endif
12397
12398 int
12399 main ()
12400 {
12401 return !strtoull;
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408   (eval $ac_link) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -s conftest$ac_exeext'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; }; then
12418   bash_cv_decl_strtoull=yes
12419 else
12420   echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 bash_cv_decl_strtoull=no
12424 fi
12425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
12428 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
12429 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12430 if test $bash_cv_decl_strtoull = yes; then
12431   cat >>confdefs.h <<_ACEOF
12432 #define $bash_tr_func 1
12433 _ACEOF
12434
12435 else
12436   cat >>confdefs.h <<_ACEOF
12437 #define $bash_tr_func 0
12438 _ACEOF
12439
12440 fi
12441
12442
12443
12444
12445 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
12446 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
12447 if test "${bash_cv_decl_strtoumax+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   cat >conftest.$ac_ext <<_ACEOF
12451 #line $LINENO "configure"
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457
12458 #if STDC_HEADERS
12459 #  include <stdlib.h>
12460 #endif
12461 #if HAVE_INTTYPES_H
12462 #  include <inttypes.h>
12463 #endif
12464
12465 int
12466 main ()
12467 {
12468 return !strtoumax;
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12475   (eval $ac_link) 2>&5
12476   ac_status=$?
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -s conftest$ac_exeext'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; }; then
12485   bash_cv_decl_strtoumax=yes
12486 else
12487   echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12489
12490 bash_cv_decl_strtoumax=no
12491 fi
12492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12493 fi
12494 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
12495 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
12496 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12497 if test $bash_cv_decl_strtoumax = yes; then
12498   cat >>confdefs.h <<_ACEOF
12499 #define $bash_tr_func 1
12500 _ACEOF
12501
12502 else
12503   cat >>confdefs.h <<_ACEOF
12504 #define $bash_tr_func 0
12505 _ACEOF
12506
12507 fi
12508
12509
12510
12511
12512 for ac_header in sys/time.h unistd.h
12513 do
12514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12516   echo "$as_me:$LINENO: checking for $ac_header" >&5
12517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 fi
12521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12523 else
12524   # Is the header compilable?
12525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12527 cat >conftest.$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534 $ac_includes_default
12535 #include <$ac_header>
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539   (eval $ac_compile) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -s conftest.$ac_objext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   ac_header_compiler=yes
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 ac_header_compiler=no
12555 fi
12556 rm -f conftest.$ac_objext conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12558 echo "${ECHO_T}$ac_header_compiler" >&6
12559
12560 # Is the header present?
12561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 #include <$ac_header>
12571 _ACEOF
12572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12574   ac_status=$?
12575   grep -v '^ *+' conftest.er1 >conftest.err
12576   rm -f conftest.er1
12577   cat conftest.err >&5
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } >/dev/null; then
12580   if test -s conftest.err; then
12581     ac_cpp_err=$ac_c_preproc_warn_flag
12582   else
12583     ac_cpp_err=
12584   fi
12585 else
12586   ac_cpp_err=yes
12587 fi
12588 if test -z "$ac_cpp_err"; then
12589   ac_header_preproc=yes
12590 else
12591   echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594   ac_header_preproc=no
12595 fi
12596 rm -f conftest.err conftest.$ac_ext
12597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12598 echo "${ECHO_T}$ac_header_preproc" >&6
12599
12600 # So?  What about this header?
12601 case $ac_header_compiler:$ac_header_preproc in
12602   yes:no )
12603     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607     (
12608       cat <<\_ASBOX
12609 ## ------------------------------------ ##
12610 ## Report this to bug-autoconf@gnu.org. ##
12611 ## ------------------------------------ ##
12612 _ASBOX
12613     ) |
12614       sed "s/^/$as_me: WARNING:     /" >&2
12615     ;;
12616   no:yes )
12617     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12619     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12623     (
12624       cat <<\_ASBOX
12625 ## ------------------------------------ ##
12626 ## Report this to bug-autoconf@gnu.org. ##
12627 ## ------------------------------------ ##
12628 _ASBOX
12629     ) |
12630       sed "s/^/$as_me: WARNING:     /" >&2
12631     ;;
12632 esac
12633 echo "$as_me:$LINENO: checking for $ac_header" >&5
12634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636   echo $ECHO_N "(cached) $ECHO_C" >&6
12637 else
12638   eval "$as_ac_Header=$ac_header_preproc"
12639 fi
12640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12642
12643 fi
12644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12645   cat >>confdefs.h <<_ACEOF
12646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12647 _ACEOF
12648
12649 fi
12650
12651 done
12652
12653
12654 for ac_func in alarm
12655 do
12656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 echo "$as_me:$LINENO: checking for $ac_func" >&5
12658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12659 if eval "test \"\${$as_ac_var+set}\" = set"; then
12660   echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662   cat >conftest.$ac_ext <<_ACEOF
12663 #line $LINENO "configure"
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669 /* System header to define __stub macros and hopefully few prototypes,
12670     which can conflict with char $ac_func (); below.
12671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672     <limits.h> exists even on freestanding compilers.  */
12673 #ifdef __STDC__
12674 # include <limits.h>
12675 #else
12676 # include <assert.h>
12677 #endif
12678 /* Override any gcc2 internal prototype to avoid an error.  */
12679 #ifdef __cplusplus
12680 extern "C"
12681 {
12682 #endif
12683 /* We use char because int might match the return type of a gcc2
12684    builtin and then its argument prototype would still apply.  */
12685 char $ac_func ();
12686 /* The GNU C library defines this for functions which it implements
12687     to always fail with ENOSYS.  Some functions are actually named
12688     something starting with __ and the normal name is an alias.  */
12689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12690 choke me
12691 #else
12692 char (*f) () = $ac_func;
12693 #endif
12694 #ifdef __cplusplus
12695 }
12696 #endif
12697
12698 int
12699 main ()
12700 {
12701 return f != $ac_func;
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12708   (eval $ac_link) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } &&
12712          { ac_try='test -s conftest$ac_exeext'
12713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714   (eval $ac_try) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718   eval "$as_ac_var=yes"
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 eval "$as_ac_var=no"
12724 fi
12725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12726 fi
12727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12729 if test `eval echo '${'$as_ac_var'}'` = yes; then
12730   cat >>confdefs.h <<_ACEOF
12731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12732 _ACEOF
12733
12734 fi
12735 done
12736
12737 echo "$as_me:$LINENO: checking for working mktime" >&5
12738 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12739 if test "${ac_cv_func_working_mktime+set}" = set; then
12740   echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742   if test "$cross_compiling" = yes; then
12743   ac_cv_func_working_mktime=no
12744 else
12745   cat >conftest.$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752 /* Test program from Paul Eggert and Tony Leneis.  */
12753 #if TIME_WITH_SYS_TIME
12754 # include <sys/time.h>
12755 # include <time.h>
12756 #else
12757 # if HAVE_SYS_TIME_H
12758 #  include <sys/time.h>
12759 # else
12760 #  include <time.h>
12761 # endif
12762 #endif
12763
12764 #if HAVE_UNISTD_H
12765 # include <unistd.h>
12766 #endif
12767
12768 #if !HAVE_ALARM
12769 # define alarm(X) /* empty */
12770 #endif
12771
12772 /* Work around redefinition to rpl_putenv by other config tests.  */
12773 #undef putenv
12774
12775 static time_t time_t_max;
12776
12777 /* Values we'll use to set the TZ environment variable.  */
12778 static const char *const tz_strings[] = {
12779   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12780   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12781 };
12782 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12783
12784 /* Fail if mktime fails to convert a date in the spring-forward gap.
12785    Based on a problem report from Andreas Jaeger.  */
12786 static void
12787 spring_forward_gap ()
12788 {
12789   /* glibc (up to about 1998-10-07) failed this test. */
12790   struct tm tm;
12791
12792   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12793      instead of "TZ=America/Vancouver" in order to detect the bug even
12794      on systems that don't support the Olson extension, or don't have the
12795      full zoneinfo tables installed.  */
12796   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12797
12798   tm.tm_year = 98;
12799   tm.tm_mon = 3;
12800   tm.tm_mday = 5;
12801   tm.tm_hour = 2;
12802   tm.tm_min = 0;
12803   tm.tm_sec = 0;
12804   tm.tm_isdst = -1;
12805   if (mktime (&tm) == (time_t)-1)
12806     exit (1);
12807 }
12808
12809 static void
12810 mktime_test (now)
12811      time_t now;
12812 {
12813   struct tm *lt;
12814   if ((lt = localtime (&now)) && mktime (lt) != now)
12815     exit (1);
12816   now = time_t_max - now;
12817   if ((lt = localtime (&now)) && mktime (lt) != now)
12818     exit (1);
12819 }
12820
12821 static void
12822 irix_6_4_bug ()
12823 {
12824   /* Based on code from Ariel Faigon.  */
12825   struct tm tm;
12826   tm.tm_year = 96;
12827   tm.tm_mon = 3;
12828   tm.tm_mday = 0;
12829   tm.tm_hour = 0;
12830   tm.tm_min = 0;
12831   tm.tm_sec = 0;
12832   tm.tm_isdst = -1;
12833   mktime (&tm);
12834   if (tm.tm_mon != 2 || tm.tm_mday != 31)
12835     exit (1);
12836 }
12837
12838 static void
12839 bigtime_test (j)
12840      int j;
12841 {
12842   struct tm tm;
12843   time_t now;
12844   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12845   now = mktime (&tm);
12846   if (now != (time_t) -1)
12847     {
12848       struct tm *lt = localtime (&now);
12849       if (! (lt
12850              && lt->tm_year == tm.tm_year
12851              && lt->tm_mon == tm.tm_mon
12852              && lt->tm_mday == tm.tm_mday
12853              && lt->tm_hour == tm.tm_hour
12854              && lt->tm_min == tm.tm_min
12855              && lt->tm_sec == tm.tm_sec
12856              && lt->tm_yday == tm.tm_yday
12857              && lt->tm_wday == tm.tm_wday
12858              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12859                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12860         exit (1);
12861     }
12862 }
12863
12864 int
12865 main ()
12866 {
12867   time_t t, delta;
12868   int i, j;
12869
12870   /* This test makes some buggy mktime implementations loop.
12871      Give up after 60 seconds; a mktime slower than that
12872      isn't worth using anyway.  */
12873   alarm (60);
12874
12875   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12876     continue;
12877   time_t_max--;
12878   delta = time_t_max / 997; /* a suitable prime number */
12879   for (i = 0; i < N_STRINGS; i++)
12880     {
12881       if (tz_strings[i])
12882         putenv (tz_strings[i]);
12883
12884       for (t = 0; t <= time_t_max - delta; t += delta)
12885         mktime_test (t);
12886       mktime_test ((time_t) 60 * 60);
12887       mktime_test ((time_t) 60 * 60 * 24);
12888
12889       for (j = 1; 0 < j; j *= 2)
12890         bigtime_test (j);
12891       bigtime_test (j - 1);
12892     }
12893   irix_6_4_bug ();
12894   spring_forward_gap ();
12895   exit (0);
12896 }
12897 _ACEOF
12898 rm -f conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900   (eval $ac_link) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905   (eval $ac_try) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; }; then
12909   ac_cv_func_working_mktime=yes
12910 else
12911   echo "$as_me: program exited with status $ac_status" >&5
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 ( exit $ac_status )
12916 ac_cv_func_working_mktime=no
12917 fi
12918 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12919 fi
12920 fi
12921 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12922 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12923 if test $ac_cv_func_working_mktime = no; then
12924   LIBOBJS="$LIBOBJS mktime.$ac_objext"
12925 fi
12926
12927
12928
12929
12930
12931
12932
12933
12934 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
12935 do
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938   echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 fi
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12945 else
12946   # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
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 #include <$ac_header>
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961   (eval $ac_compile) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } &&
12965          { ac_try='test -s conftest.$ac_objext'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; }; then
12971   ac_header_compiler=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 ac_header_compiler=no
12977 fi
12978 rm -f conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12981
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12986 #line $LINENO "configure"
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <$ac_header>
12993 _ACEOF
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } >/dev/null; then
13002   if test -s conftest.err; then
13003     ac_cpp_err=$ac_c_preproc_warn_flag
13004   else
13005     ac_cpp_err=
13006   fi
13007 else
13008   ac_cpp_err=yes
13009 fi
13010 if test -z "$ac_cpp_err"; then
13011   ac_header_preproc=yes
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016   ac_header_preproc=no
13017 fi
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13021
13022 # So?  What about this header?
13023 case $ac_header_compiler:$ac_header_preproc in
13024   yes:no )
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13029     (
13030       cat <<\_ASBOX
13031 ## ------------------------------------ ##
13032 ## Report this to bug-autoconf@gnu.org. ##
13033 ## ------------------------------------ ##
13034 _ASBOX
13035     ) |
13036       sed "s/^/$as_me: WARNING:     /" >&2
13037     ;;
13038   no:yes )
13039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13041     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13045     (
13046       cat <<\_ASBOX
13047 ## ------------------------------------ ##
13048 ## Report this to bug-autoconf@gnu.org. ##
13049 ## ------------------------------------ ##
13050 _ASBOX
13051     ) |
13052       sed "s/^/$as_me: WARNING:     /" >&2
13053     ;;
13054 esac
13055 echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060   eval "$as_ac_Header=$ac_header_preproc"
13061 fi
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13064
13065 fi
13066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067   cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13069 _ACEOF
13070
13071 fi
13072
13073 done
13074
13075
13076
13077
13078 for ac_header in stdlib.h unistd.h
13079 do
13080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082   echo "$as_me:$LINENO: checking for $ac_header" >&5
13083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 fi
13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13089 else
13090   # Is the header compilable?
13091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
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 #include <$ac_header>
13102 _ACEOF
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105   (eval $ac_compile) 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } &&
13109          { ac_try='test -s conftest.$ac_objext'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; }; then
13115   ac_header_compiler=yes
13116 else
13117   echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_header_compiler=no
13121 fi
13122 rm -f conftest.$ac_objext conftest.$ac_ext
13123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13124 echo "${ECHO_T}$ac_header_compiler" >&6
13125
13126 # Is the header present?
13127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13129 cat >conftest.$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13131 /* confdefs.h.  */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h.  */
13136 #include <$ac_header>
13137 _ACEOF
13138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } >/dev/null; then
13146   if test -s conftest.err; then
13147     ac_cpp_err=$ac_c_preproc_warn_flag
13148   else
13149     ac_cpp_err=
13150   fi
13151 else
13152   ac_cpp_err=yes
13153 fi
13154 if test -z "$ac_cpp_err"; then
13155   ac_header_preproc=yes
13156 else
13157   echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160   ac_header_preproc=no
13161 fi
13162 rm -f conftest.err conftest.$ac_ext
13163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13164 echo "${ECHO_T}$ac_header_preproc" >&6
13165
13166 # So?  What about this header?
13167 case $ac_header_compiler:$ac_header_preproc in
13168   yes:no )
13169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13173     (
13174       cat <<\_ASBOX
13175 ## ------------------------------------ ##
13176 ## Report this to bug-autoconf@gnu.org. ##
13177 ## ------------------------------------ ##
13178 _ASBOX
13179     ) |
13180       sed "s/^/$as_me: WARNING:     /" >&2
13181     ;;
13182   no:yes )
13183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13185     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13189     (
13190       cat <<\_ASBOX
13191 ## ------------------------------------ ##
13192 ## Report this to bug-autoconf@gnu.org. ##
13193 ## ------------------------------------ ##
13194 _ASBOX
13195     ) |
13196       sed "s/^/$as_me: WARNING:     /" >&2
13197     ;;
13198 esac
13199 echo "$as_me:$LINENO: checking for $ac_header" >&5
13200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13202   echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204   eval "$as_ac_Header=$ac_header_preproc"
13205 fi
13206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13208
13209 fi
13210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13211   cat >>confdefs.h <<_ACEOF
13212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13213 _ACEOF
13214
13215 fi
13216
13217 done
13218
13219
13220 for ac_func in getpagesize
13221 do
13222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223 echo "$as_me:$LINENO: checking for $ac_func" >&5
13224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13225 if eval "test \"\${$as_ac_var+set}\" = set"; then
13226   echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228   cat >conftest.$ac_ext <<_ACEOF
13229 #line $LINENO "configure"
13230 /* confdefs.h.  */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h.  */
13235 /* System header to define __stub macros and hopefully few prototypes,
13236     which can conflict with char $ac_func (); below.
13237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13238     <limits.h> exists even on freestanding compilers.  */
13239 #ifdef __STDC__
13240 # include <limits.h>
13241 #else
13242 # include <assert.h>
13243 #endif
13244 /* Override any gcc2 internal prototype to avoid an error.  */
13245 #ifdef __cplusplus
13246 extern "C"
13247 {
13248 #endif
13249 /* We use char because int might match the return type of a gcc2
13250    builtin and then its argument prototype would still apply.  */
13251 char $ac_func ();
13252 /* The GNU C library defines this for functions which it implements
13253     to always fail with ENOSYS.  Some functions are actually named
13254     something starting with __ and the normal name is an alias.  */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256 choke me
13257 #else
13258 char (*f) () = $ac_func;
13259 #endif
13260 #ifdef __cplusplus
13261 }
13262 #endif
13263
13264 int
13265 main ()
13266 {
13267 return f != $ac_func;
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274   (eval $ac_link) 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); } &&
13278          { ac_try='test -s conftest$ac_exeext'
13279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280   (eval $ac_try) 2>&5
13281   ac_status=$?
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); }; }; then
13284   eval "$as_ac_var=yes"
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289 eval "$as_ac_var=no"
13290 fi
13291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13292 fi
13293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13295 if test `eval echo '${'$as_ac_var'}'` = yes; then
13296   cat >>confdefs.h <<_ACEOF
13297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13298 _ACEOF
13299
13300 fi
13301 done
13302
13303 echo "$as_me:$LINENO: checking for working mmap" >&5
13304 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13305 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13306   echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308   if test "$cross_compiling" = yes; then
13309   ac_cv_func_mmap_fixed_mapped=no
13310 else
13311   cat >conftest.$ac_ext <<_ACEOF
13312 #line $LINENO "configure"
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 $ac_includes_default
13319 /* malloc might have been renamed as rpl_malloc. */
13320 #undef malloc
13321
13322 /* Thanks to Mike Haertel and Jim Avera for this test.
13323    Here is a matrix of mmap possibilities:
13324         mmap private not fixed
13325         mmap private fixed at somewhere currently unmapped
13326         mmap private fixed at somewhere already mapped
13327         mmap shared not fixed
13328         mmap shared fixed at somewhere currently unmapped
13329         mmap shared fixed at somewhere already mapped
13330    For private mappings, we should verify that changes cannot be read()
13331    back from the file, nor mmap's back from the file at a different
13332    address.  (There have been systems where private was not correctly
13333    implemented like the infamous i386 svr4.0, and systems where the
13334    VM page cache was not coherent with the file system buffer cache
13335    like early versions of FreeBSD and possibly contemporary NetBSD.)
13336    For shared mappings, we should conversely verify that changes get
13337    propagated back to all the places they're supposed to be.
13338
13339    Grep wants private fixed already mapped.
13340    The main things grep needs to know about mmap are:
13341    * does it exist and is it safe to write into the mmap'd area
13342    * how to use it (BSD variants)  */
13343
13344 #include <fcntl.h>
13345 #include <sys/mman.h>
13346
13347 #if !STDC_HEADERS && !HAVE_STDLIB_H
13348 char *malloc ();
13349 #endif
13350
13351 /* This mess was copied from the GNU getpagesize.h.  */
13352 #if !HAVE_GETPAGESIZE
13353 /* Assume that all systems that can run configure have sys/param.h.  */
13354 # if !HAVE_SYS_PARAM_H
13355 #  define HAVE_SYS_PARAM_H 1
13356 # endif
13357
13358 # ifdef _SC_PAGESIZE
13359 #  define getpagesize() sysconf(_SC_PAGESIZE)
13360 # else /* no _SC_PAGESIZE */
13361 #  if HAVE_SYS_PARAM_H
13362 #   include <sys/param.h>
13363 #   ifdef EXEC_PAGESIZE
13364 #    define getpagesize() EXEC_PAGESIZE
13365 #   else /* no EXEC_PAGESIZE */
13366 #    ifdef NBPG
13367 #     define getpagesize() NBPG * CLSIZE
13368 #     ifndef CLSIZE
13369 #      define CLSIZE 1
13370 #     endif /* no CLSIZE */
13371 #    else /* no NBPG */
13372 #     ifdef NBPC
13373 #      define getpagesize() NBPC
13374 #     else /* no NBPC */
13375 #      ifdef PAGESIZE
13376 #       define getpagesize() PAGESIZE
13377 #      endif /* PAGESIZE */
13378 #     endif /* no NBPC */
13379 #    endif /* no NBPG */
13380 #   endif /* no EXEC_PAGESIZE */
13381 #  else /* no HAVE_SYS_PARAM_H */
13382 #   define getpagesize() 8192   /* punt totally */
13383 #  endif /* no HAVE_SYS_PARAM_H */
13384 # endif /* no _SC_PAGESIZE */
13385
13386 #endif /* no HAVE_GETPAGESIZE */
13387
13388 int
13389 main ()
13390 {
13391   char *data, *data2, *data3;
13392   int i, pagesize;
13393   int fd;
13394
13395   pagesize = getpagesize ();
13396
13397   /* First, make a file with some known garbage in it. */
13398   data = (char *) malloc (pagesize);
13399   if (!data)
13400     exit (1);
13401   for (i = 0; i < pagesize; ++i)
13402     *(data + i) = rand ();
13403   umask (0);
13404   fd = creat ("conftest.mmap", 0600);
13405   if (fd < 0)
13406     exit (1);
13407   if (write (fd, data, pagesize) != pagesize)
13408     exit (1);
13409   close (fd);
13410
13411   /* Next, try to mmap the file at a fixed address which already has
13412      something else allocated at it.  If we can, also make sure that
13413      we see the same garbage.  */
13414   fd = open ("conftest.mmap", O_RDWR);
13415   if (fd < 0)
13416     exit (1);
13417   data2 = (char *) malloc (2 * pagesize);
13418   if (!data2)
13419     exit (1);
13420   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13421   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13422                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13423     exit (1);
13424   for (i = 0; i < pagesize; ++i)
13425     if (*(data + i) != *(data2 + i))
13426       exit (1);
13427
13428   /* Finally, make sure that changes to the mapped area do not
13429      percolate back to the file as seen by read().  (This is a bug on
13430      some variants of i386 svr4.0.)  */
13431   for (i = 0; i < pagesize; ++i)
13432     *(data2 + i) = *(data2 + i) + 1;
13433   data3 = (char *) malloc (pagesize);
13434   if (!data3)
13435     exit (1);
13436   if (read (fd, data3, pagesize) != pagesize)
13437     exit (1);
13438   for (i = 0; i < pagesize; ++i)
13439     if (*(data + i) != *(data3 + i))
13440       exit (1);
13441   close (fd);
13442   exit (0);
13443 }
13444 _ACEOF
13445 rm -f conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447   (eval $ac_link) 2>&5
13448   ac_status=$?
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; }; then
13456   ac_cv_func_mmap_fixed_mapped=yes
13457 else
13458   echo "$as_me: program exited with status $ac_status" >&5
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ( exit $ac_status )
13463 ac_cv_func_mmap_fixed_mapped=no
13464 fi
13465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13466 fi
13467 fi
13468 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13469 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13470 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_MMAP 1
13474 _ACEOF
13475
13476 fi
13477 rm -f conftest.mmap
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
13489                 munmap stpcpy strcspn strdup
13490 do
13491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13492 echo "$as_me:$LINENO: checking for $ac_func" >&5
13493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13494 if eval "test \"\${$as_ac_var+set}\" = set"; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 /* System header to define __stub macros and hopefully few prototypes,
13505     which can conflict with char $ac_func (); below.
13506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13507     <limits.h> exists even on freestanding compilers.  */
13508 #ifdef __STDC__
13509 # include <limits.h>
13510 #else
13511 # include <assert.h>
13512 #endif
13513 /* Override any gcc2 internal prototype to avoid an error.  */
13514 #ifdef __cplusplus
13515 extern "C"
13516 {
13517 #endif
13518 /* We use char because int might match the return type of a gcc2
13519    builtin and then its argument prototype would still apply.  */
13520 char $ac_func ();
13521 /* The GNU C library defines this for functions which it implements
13522     to always fail with ENOSYS.  Some functions are actually named
13523     something starting with __ and the normal name is an alias.  */
13524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13525 choke me
13526 #else
13527 char (*f) () = $ac_func;
13528 #endif
13529 #ifdef __cplusplus
13530 }
13531 #endif
13532
13533 int
13534 main ()
13535 {
13536 return f != $ac_func;
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543   (eval $ac_link) 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } &&
13547          { ac_try='test -s conftest$ac_exeext'
13548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549   (eval $ac_try) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; }; then
13553   eval "$as_ac_var=yes"
13554 else
13555   echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13557
13558 eval "$as_ac_var=no"
13559 fi
13560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13561 fi
13562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13564 if test `eval echo '${'$as_ac_var'}'` = yes; then
13565   cat >>confdefs.h <<_ACEOF
13566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13567 _ACEOF
13568
13569 fi
13570 done
13571
13572
13573 INTL_DEP= INTL_INC= LIBINTL_H=
13574 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
13575         INTL_DEP='${INTL_LIBDIR}/libintl.a'
13576         INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
13577         LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
13578 fi
13579
13580
13581
13582
13583
13584
13585
13586 for ac_header in wctype.h
13587 do
13588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590   echo "$as_me:$LINENO: checking for $ac_header" >&5
13591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593   echo $ECHO_N "(cached) $ECHO_C" >&6
13594 fi
13595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13597 else
13598   # Is the header compilable?
13599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608 $ac_includes_default
13609 #include <$ac_header>
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613   (eval $ac_compile) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -s conftest.$ac_objext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_header_compiler=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_header_compiler=no
13629 fi
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13632 echo "${ECHO_T}$ac_header_compiler" >&6
13633
13634 # Is the header present?
13635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <$ac_header>
13645 _ACEOF
13646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13648   ac_status=$?
13649   grep -v '^ *+' conftest.er1 >conftest.err
13650   rm -f conftest.er1
13651   cat conftest.err >&5
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } >/dev/null; then
13654   if test -s conftest.err; then
13655     ac_cpp_err=$ac_c_preproc_warn_flag
13656   else
13657     ac_cpp_err=
13658   fi
13659 else
13660   ac_cpp_err=yes
13661 fi
13662 if test -z "$ac_cpp_err"; then
13663   ac_header_preproc=yes
13664 else
13665   echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13667
13668   ac_header_preproc=no
13669 fi
13670 rm -f conftest.err conftest.$ac_ext
13671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13672 echo "${ECHO_T}$ac_header_preproc" >&6
13673
13674 # So?  What about this header?
13675 case $ac_header_compiler:$ac_header_preproc in
13676   yes:no )
13677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13681     (
13682       cat <<\_ASBOX
13683 ## ------------------------------------ ##
13684 ## Report this to bug-autoconf@gnu.org. ##
13685 ## ------------------------------------ ##
13686 _ASBOX
13687     ) |
13688       sed "s/^/$as_me: WARNING:     /" >&2
13689     ;;
13690   no:yes )
13691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13697     (
13698       cat <<\_ASBOX
13699 ## ------------------------------------ ##
13700 ## Report this to bug-autoconf@gnu.org. ##
13701 ## ------------------------------------ ##
13702 _ASBOX
13703     ) |
13704       sed "s/^/$as_me: WARNING:     /" >&2
13705     ;;
13706 esac
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   eval "$as_ac_Header=$ac_header_preproc"
13713 fi
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13716
13717 fi
13718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13719   cat >>confdefs.h <<_ACEOF
13720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13721 _ACEOF
13722
13723 fi
13724
13725 done
13726
13727
13728 for ac_header in wchar.h
13729 do
13730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732   echo "$as_me:$LINENO: checking for $ac_header" >&5
13733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735   echo $ECHO_N "(cached) $ECHO_C" >&6
13736 fi
13737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13739 else
13740   # Is the header compilable?
13741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 /* confdefs.h.  */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h.  */
13750 $ac_includes_default
13751 #include <$ac_header>
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755   (eval $ac_compile) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } &&
13759          { ac_try='test -s conftest.$ac_objext'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }; then
13765   ac_header_compiler=yes
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770 ac_header_compiler=no
13771 fi
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13774 echo "${ECHO_T}$ac_header_compiler" >&6
13775
13776 # Is the header present?
13777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13781 /* confdefs.h.  */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h.  */
13786 #include <$ac_header>
13787 _ACEOF
13788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13790   ac_status=$?
13791   grep -v '^ *+' conftest.er1 >conftest.err
13792   rm -f conftest.er1
13793   cat conftest.err >&5
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } >/dev/null; then
13796   if test -s conftest.err; then
13797     ac_cpp_err=$ac_c_preproc_warn_flag
13798   else
13799     ac_cpp_err=
13800   fi
13801 else
13802   ac_cpp_err=yes
13803 fi
13804 if test -z "$ac_cpp_err"; then
13805   ac_header_preproc=yes
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810   ac_header_preproc=no
13811 fi
13812 rm -f conftest.err conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13814 echo "${ECHO_T}$ac_header_preproc" >&6
13815
13816 # So?  What about this header?
13817 case $ac_header_compiler:$ac_header_preproc in
13818   yes:no )
13819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13823     (
13824       cat <<\_ASBOX
13825 ## ------------------------------------ ##
13826 ## Report this to bug-autoconf@gnu.org. ##
13827 ## ------------------------------------ ##
13828 _ASBOX
13829     ) |
13830       sed "s/^/$as_me: WARNING:     /" >&2
13831     ;;
13832   no:yes )
13833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13835     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13839     (
13840       cat <<\_ASBOX
13841 ## ------------------------------------ ##
13842 ## Report this to bug-autoconf@gnu.org. ##
13843 ## ------------------------------------ ##
13844 _ASBOX
13845     ) |
13846       sed "s/^/$as_me: WARNING:     /" >&2
13847     ;;
13848 esac
13849 echo "$as_me:$LINENO: checking for $ac_header" >&5
13850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   eval "$as_ac_Header=$ac_header_preproc"
13855 fi
13856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858
13859 fi
13860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13861   cat >>confdefs.h <<_ACEOF
13862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13863 _ACEOF
13864
13865 fi
13866
13867 done
13868
13869
13870 for ac_header in langinfo.h
13871 do
13872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874   echo "$as_me:$LINENO: checking for $ac_header" >&5
13875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 fi
13879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13881 else
13882   # Is the header compilable?
13883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13886 #line $LINENO "configure"
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892 $ac_includes_default
13893 #include <$ac_header>
13894 _ACEOF
13895 rm -f conftest.$ac_objext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897   (eval $ac_compile) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } &&
13901          { ac_try='test -s conftest.$ac_objext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_header_compiler=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_header_compiler=no
13913 fi
13914 rm -f conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6
13917
13918 # Is the header present?
13919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13921 cat >conftest.$ac_ext <<_ACEOF
13922 #line $LINENO "configure"
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 #include <$ac_header>
13929 _ACEOF
13930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13932   ac_status=$?
13933   grep -v '^ *+' conftest.er1 >conftest.err
13934   rm -f conftest.er1
13935   cat conftest.err >&5
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); } >/dev/null; then
13938   if test -s conftest.err; then
13939     ac_cpp_err=$ac_c_preproc_warn_flag
13940   else
13941     ac_cpp_err=
13942   fi
13943 else
13944   ac_cpp_err=yes
13945 fi
13946 if test -z "$ac_cpp_err"; then
13947   ac_header_preproc=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952   ac_header_preproc=no
13953 fi
13954 rm -f conftest.err conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13956 echo "${ECHO_T}$ac_header_preproc" >&6
13957
13958 # So?  What about this header?
13959 case $ac_header_compiler:$ac_header_preproc in
13960   yes:no )
13961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13965     (
13966       cat <<\_ASBOX
13967 ## ------------------------------------ ##
13968 ## Report this to bug-autoconf@gnu.org. ##
13969 ## ------------------------------------ ##
13970 _ASBOX
13971     ) |
13972       sed "s/^/$as_me: WARNING:     /" >&2
13973     ;;
13974   no:yes )
13975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13977     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13981     (
13982       cat <<\_ASBOX
13983 ## ------------------------------------ ##
13984 ## Report this to bug-autoconf@gnu.org. ##
13985 ## ------------------------------------ ##
13986 _ASBOX
13987     ) |
13988       sed "s/^/$as_me: WARNING:     /" >&2
13989     ;;
13990 esac
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994   echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996   eval "$as_ac_Header=$ac_header_preproc"
13997 fi
13998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14000
14001 fi
14002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14003   cat >>confdefs.h <<_ACEOF
14004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14005 _ACEOF
14006
14007 fi
14008
14009 done
14010
14011
14012 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
14013 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
14014 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
14015   echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017   cat >conftest.$ac_ext <<_ACEOF
14018 #line $LINENO "configure"
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024 /* System header to define __stub macros and hopefully few prototypes,
14025     which can conflict with char mbsrtowcs (); below.
14026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14027     <limits.h> exists even on freestanding compilers.  */
14028 #ifdef __STDC__
14029 # include <limits.h>
14030 #else
14031 # include <assert.h>
14032 #endif
14033 /* Override any gcc2 internal prototype to avoid an error.  */
14034 #ifdef __cplusplus
14035 extern "C"
14036 {
14037 #endif
14038 /* We use char because int might match the return type of a gcc2
14039    builtin and then its argument prototype would still apply.  */
14040 char mbsrtowcs ();
14041 /* The GNU C library defines this for functions which it implements
14042     to always fail with ENOSYS.  Some functions are actually named
14043     something starting with __ and the normal name is an alias.  */
14044 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
14045 choke me
14046 #else
14047 char (*f) () = mbsrtowcs;
14048 #endif
14049 #ifdef __cplusplus
14050 }
14051 #endif
14052
14053 int
14054 main ()
14055 {
14056 return f != mbsrtowcs;
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063   (eval $ac_link) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -s conftest$ac_exeext'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; }; then
14073   ac_cv_func_mbsrtowcs=yes
14074 else
14075   echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_cv_func_mbsrtowcs=no
14079 fi
14080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14081 fi
14082 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
14083 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
14084 if test $ac_cv_func_mbsrtowcs = yes; then
14085   cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_MBSRTOWCS 1
14087 _ACEOF
14088
14089 fi
14090
14091 echo "$as_me:$LINENO: checking for mbrtowc" >&5
14092 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
14093 if test "${ac_cv_func_mbrtowc+set}" = set; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103 /* System header to define __stub macros and hopefully few prototypes,
14104     which can conflict with char mbrtowc (); below.
14105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14106     <limits.h> exists even on freestanding compilers.  */
14107 #ifdef __STDC__
14108 # include <limits.h>
14109 #else
14110 # include <assert.h>
14111 #endif
14112 /* Override any gcc2 internal prototype to avoid an error.  */
14113 #ifdef __cplusplus
14114 extern "C"
14115 {
14116 #endif
14117 /* We use char because int might match the return type of a gcc2
14118    builtin and then its argument prototype would still apply.  */
14119 char mbrtowc ();
14120 /* The GNU C library defines this for functions which it implements
14121     to always fail with ENOSYS.  Some functions are actually named
14122     something starting with __ and the normal name is an alias.  */
14123 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
14124 choke me
14125 #else
14126 char (*f) () = mbrtowc;
14127 #endif
14128 #ifdef __cplusplus
14129 }
14130 #endif
14131
14132 int
14133 main ()
14134 {
14135 return f != mbrtowc;
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14142   (eval $ac_link) 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -s conftest$ac_exeext'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }; then
14152   ac_cv_func_mbrtowc=yes
14153 else
14154   echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 ac_cv_func_mbrtowc=no
14158 fi
14159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
14162 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
14163 if test $ac_cv_func_mbrtowc = yes; then
14164   cat >>confdefs.h <<\_ACEOF
14165 #define HAVE_MBRTOWC 1
14166 _ACEOF
14167
14168 fi
14169
14170 echo "$as_me:$LINENO: checking for mbrlen" >&5
14171 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
14172 if test "${ac_cv_func_mbrlen+set}" = set; then
14173   echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175   cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14177 /* confdefs.h.  */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h.  */
14182 /* System header to define __stub macros and hopefully few prototypes,
14183     which can conflict with char mbrlen (); below.
14184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14185     <limits.h> exists even on freestanding compilers.  */
14186 #ifdef __STDC__
14187 # include <limits.h>
14188 #else
14189 # include <assert.h>
14190 #endif
14191 /* Override any gcc2 internal prototype to avoid an error.  */
14192 #ifdef __cplusplus
14193 extern "C"
14194 {
14195 #endif
14196 /* We use char because int might match the return type of a gcc2
14197    builtin and then its argument prototype would still apply.  */
14198 char mbrlen ();
14199 /* The GNU C library defines this for functions which it implements
14200     to always fail with ENOSYS.  Some functions are actually named
14201     something starting with __ and the normal name is an alias.  */
14202 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
14203 choke me
14204 #else
14205 char (*f) () = mbrlen;
14206 #endif
14207 #ifdef __cplusplus
14208 }
14209 #endif
14210
14211 int
14212 main ()
14213 {
14214 return f != mbrlen;
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221   (eval $ac_link) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -s conftest$ac_exeext'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231   ac_cv_func_mbrlen=yes
14232 else
14233   echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_cv_func_mbrlen=no
14237 fi
14238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14239 fi
14240 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
14241 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
14242 if test $ac_cv_func_mbrlen = yes; then
14243   cat >>confdefs.h <<\_ACEOF
14244 #define HAVE_MBRLEN 1
14245 _ACEOF
14246
14247 fi
14248
14249 echo "$as_me:$LINENO: checking for wctomb" >&5
14250 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
14251 if test "${ac_cv_func_wctomb+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   cat >conftest.$ac_ext <<_ACEOF
14255 #line $LINENO "configure"
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261 /* System header to define __stub macros and hopefully few prototypes,
14262     which can conflict with char wctomb (); below.
14263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264     <limits.h> exists even on freestanding compilers.  */
14265 #ifdef __STDC__
14266 # include <limits.h>
14267 #else
14268 # include <assert.h>
14269 #endif
14270 /* Override any gcc2 internal prototype to avoid an error.  */
14271 #ifdef __cplusplus
14272 extern "C"
14273 {
14274 #endif
14275 /* We use char because int might match the return type of a gcc2
14276    builtin and then its argument prototype would still apply.  */
14277 char wctomb ();
14278 /* The GNU C library defines this for functions which it implements
14279     to always fail with ENOSYS.  Some functions are actually named
14280     something starting with __ and the normal name is an alias.  */
14281 #if defined (__stub_wctomb) || defined (__stub___wctomb)
14282 choke me
14283 #else
14284 char (*f) () = wctomb;
14285 #endif
14286 #ifdef __cplusplus
14287 }
14288 #endif
14289
14290 int
14291 main ()
14292 {
14293 return f != wctomb;
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14300   (eval $ac_link) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -s conftest$ac_exeext'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310   ac_cv_func_wctomb=yes
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 ac_cv_func_wctomb=no
14316 fi
14317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14318 fi
14319 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
14320 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
14321 if test $ac_cv_func_wctomb = yes; then
14322   cat >>confdefs.h <<\_ACEOF
14323 #define HAVE_WCTOMB 1
14324 _ACEOF
14325
14326 fi
14327
14328 echo "$as_me:$LINENO: checking for wcwidth" >&5
14329 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
14330 if test "${ac_cv_func_wcwidth+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   cat >conftest.$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 /* System header to define __stub macros and hopefully few prototypes,
14341     which can conflict with char wcwidth (); below.
14342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343     <limits.h> exists even on freestanding compilers.  */
14344 #ifdef __STDC__
14345 # include <limits.h>
14346 #else
14347 # include <assert.h>
14348 #endif
14349 /* Override any gcc2 internal prototype to avoid an error.  */
14350 #ifdef __cplusplus
14351 extern "C"
14352 {
14353 #endif
14354 /* We use char because int might match the return type of a gcc2
14355    builtin and then its argument prototype would still apply.  */
14356 char wcwidth ();
14357 /* The GNU C library defines this for functions which it implements
14358     to always fail with ENOSYS.  Some functions are actually named
14359     something starting with __ and the normal name is an alias.  */
14360 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
14361 choke me
14362 #else
14363 char (*f) () = wcwidth;
14364 #endif
14365 #ifdef __cplusplus
14366 }
14367 #endif
14368
14369 int
14370 main ()
14371 {
14372 return f != wcwidth;
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext conftest$ac_exeext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14379   (eval $ac_link) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -s conftest$ac_exeext'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_cv_func_wcwidth=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_cv_func_wcwidth=no
14395 fi
14396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14397 fi
14398 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
14399 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
14400 if test $ac_cv_func_wcwidth = yes; then
14401   cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_WCWIDTH 1
14403 _ACEOF
14404
14405 fi
14406
14407 echo "$as_me:$LINENO: checking for wcsdup" >&5
14408 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
14409 if test "${ac_cv_func_wcsdup+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   cat >conftest.$ac_ext <<_ACEOF
14413 #line $LINENO "configure"
14414 /* confdefs.h.  */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h.  */
14419 /* System header to define __stub macros and hopefully few prototypes,
14420     which can conflict with char wcsdup (); below.
14421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14422     <limits.h> exists even on freestanding compilers.  */
14423 #ifdef __STDC__
14424 # include <limits.h>
14425 #else
14426 # include <assert.h>
14427 #endif
14428 /* Override any gcc2 internal prototype to avoid an error.  */
14429 #ifdef __cplusplus
14430 extern "C"
14431 {
14432 #endif
14433 /* We use char because int might match the return type of a gcc2
14434    builtin and then its argument prototype would still apply.  */
14435 char wcsdup ();
14436 /* The GNU C library defines this for functions which it implements
14437     to always fail with ENOSYS.  Some functions are actually named
14438     something starting with __ and the normal name is an alias.  */
14439 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
14440 choke me
14441 #else
14442 char (*f) () = wcsdup;
14443 #endif
14444 #ifdef __cplusplus
14445 }
14446 #endif
14447
14448 int
14449 main ()
14450 {
14451 return f != wcsdup;
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458   (eval $ac_link) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -s conftest$ac_exeext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_cv_func_wcsdup=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_cv_func_wcsdup=no
14474 fi
14475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14476 fi
14477 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
14478 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
14479 if test $ac_cv_func_wcsdup = yes; then
14480   cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_WCSDUP 1
14482 _ACEOF
14483
14484 fi
14485
14486
14487 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14488 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14489 if test "${bash_cv_have_mbstate_t+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499
14500 #include <wchar.h>
14501 int
14502 main ()
14503 {
14504
14505   mbstate_t ps;
14506   mbstate_t *psp;
14507   psp = (mbstate_t *)0;
14508
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515   (eval $ac_compile) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   bash_cv_have_mbstate_t=yes
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 bash_cv_have_mbstate_t=no
14531 fi
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14533 fi
14534 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
14535 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
14536 if test $bash_cv_have_mbstate_t = yes; then
14537         cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_MBSTATE_T 1
14539 _ACEOF
14540
14541 fi
14542
14543 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14544 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14545 if test "${bash_cv_langinfo_codeset+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555 #include <langinfo.h>
14556 int
14557 main ()
14558 {
14559 char* cs = nl_langinfo(CODESET);
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14566   (eval $ac_link) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); } &&
14570          { ac_try='test -s conftest$ac_exeext'
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   bash_cv_langinfo_codeset=yes
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 bash_cv_langinfo_codeset=no
14582 fi
14583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14584 fi
14585 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
14586 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
14587 if test $bash_cv_langinfo_codeset = yes; then
14588   cat >>confdefs.h <<\_ACEOF
14589 #define HAVE_LANGINFO_CODESET 1
14590 _ACEOF
14591
14592 fi
14593
14594
14595
14596 if test "$opt_static_link" != yes; then
14597
14598 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14599 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14600 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14601   echo $ECHO_N "(cached) $ECHO_C" >&6
14602 else
14603   ac_check_lib_save_LIBS=$LIBS
14604 LIBS="-ldl  $LIBS"
14605 cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612
14613 /* Override any gcc2 internal prototype to avoid an error.  */
14614 #ifdef __cplusplus
14615 extern "C"
14616 #endif
14617 /* We use char because int might match the return type of a gcc2
14618    builtin and then its argument prototype would still apply.  */
14619 char dlopen ();
14620 int
14621 main ()
14622 {
14623 dlopen ();
14624   ;
14625   return 0;
14626 }
14627 _ACEOF
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630   (eval $ac_link) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); } &&
14634          { ac_try='test -s conftest$ac_exeext'
14635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636   (eval $ac_try) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; }; then
14640   ac_cv_lib_dl_dlopen=yes
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 ac_cv_lib_dl_dlopen=no
14646 fi
14647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14648 LIBS=$ac_check_lib_save_LIBS
14649 fi
14650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14652 if test $ac_cv_lib_dl_dlopen = yes; then
14653   cat >>confdefs.h <<_ACEOF
14654 #define HAVE_LIBDL 1
14655 _ACEOF
14656
14657   LIBS="-ldl $LIBS"
14658
14659 fi
14660
14661
14662
14663
14664 for ac_func in dlopen dlclose dlsym
14665 do
14666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14667 echo "$as_me:$LINENO: checking for $ac_func" >&5
14668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14669 if eval "test \"\${$as_ac_var+set}\" = set"; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   cat >conftest.$ac_ext <<_ACEOF
14673 #line $LINENO "configure"
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 /* System header to define __stub macros and hopefully few prototypes,
14680     which can conflict with char $ac_func (); below.
14681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14682     <limits.h> exists even on freestanding compilers.  */
14683 #ifdef __STDC__
14684 # include <limits.h>
14685 #else
14686 # include <assert.h>
14687 #endif
14688 /* Override any gcc2 internal prototype to avoid an error.  */
14689 #ifdef __cplusplus
14690 extern "C"
14691 {
14692 #endif
14693 /* We use char because int might match the return type of a gcc2
14694    builtin and then its argument prototype would still apply.  */
14695 char $ac_func ();
14696 /* The GNU C library defines this for functions which it implements
14697     to always fail with ENOSYS.  Some functions are actually named
14698     something starting with __ and the normal name is an alias.  */
14699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14700 choke me
14701 #else
14702 char (*f) () = $ac_func;
14703 #endif
14704 #ifdef __cplusplus
14705 }
14706 #endif
14707
14708 int
14709 main ()
14710 {
14711 return f != $ac_func;
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718   (eval $ac_link) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); } &&
14722          { ac_try='test -s conftest$ac_exeext'
14723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724   (eval $ac_try) 2>&5
14725   ac_status=$?
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); }; }; then
14728   eval "$as_ac_var=yes"
14729 else
14730   echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 eval "$as_ac_var=no"
14734 fi
14735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14736 fi
14737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14739 if test `eval echo '${'$as_ac_var'}'` = yes; then
14740   cat >>confdefs.h <<_ACEOF
14741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14742 _ACEOF
14743
14744 fi
14745 done
14746
14747 fi
14748
14749 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
14750 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
14751 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
14752   echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754   cat >conftest.$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761 $ac_includes_default
14762 int
14763 main ()
14764 {
14765 #ifndef sys_siglist
14766   char *p = (char *) sys_siglist;
14767 #endif
14768
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775   (eval $ac_compile) 2>&5
14776   ac_status=$?
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } &&
14779          { ac_try='test -s conftest.$ac_objext'
14780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781   (eval $ac_try) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; }; then
14785   ac_cv_have_decl_sys_siglist=yes
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14789
14790 ac_cv_have_decl_sys_siglist=no
14791 fi
14792 rm -f conftest.$ac_objext conftest.$ac_ext
14793 fi
14794 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
14795 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
14796 if test $ac_cv_have_decl_sys_siglist = yes; then
14797
14798 cat >>confdefs.h <<_ACEOF
14799 #define HAVE_DECL_SYS_SIGLIST 1
14800 _ACEOF
14801
14802
14803 else
14804   cat >>confdefs.h <<_ACEOF
14805 #define HAVE_DECL_SYS_SIGLIST 0
14806 _ACEOF
14807
14808
14809 fi
14810
14811
14812
14813
14814 if test "$ac_cv_func_inet_aton" != 'yes'; then
14815
14816 echo "$as_me:$LINENO: checking for inet_aton" >&5
14817 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14818 if test "${bash_cv_func_inet_aton+set}" = set; then
14819   echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821   cat >conftest.$ac_ext <<_ACEOF
14822 #line $LINENO "configure"
14823 /* confdefs.h.  */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h.  */
14828
14829 #include <sys/types.h>
14830 #include <netinet/in.h>
14831 #include <arpa/inet.h>
14832 struct in_addr ap;
14833 int
14834 main ()
14835 {
14836  inet_aton("127.0.0.1", &ap);
14837   ;
14838   return 0;
14839 }
14840 _ACEOF
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843   (eval $ac_link) 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -s conftest$ac_exeext'
14848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849   (eval $ac_try) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; }; then
14853   bash_cv_func_inet_aton=yes
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 bash_cv_func_inet_aton=no
14859 fi
14860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14861 fi
14862 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
14863 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
14864 if test $bash_cv_func_inet_aton = yes; then
14865   cat >>confdefs.h <<\_ACEOF
14866 #define HAVE_INET_ATON 1
14867 _ACEOF
14868
14869 else
14870   LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
14871 fi
14872
14873 fi
14874
14875 case "$host_os" in
14876 irix4*)
14877 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
14878 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
14879 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lsun  $LIBS"
14884 cat >conftest.$ac_ext <<_ACEOF
14885 #line $LINENO "configure"
14886 /* confdefs.h.  */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h.  */
14891
14892 /* Override any gcc2 internal prototype to avoid an error.  */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 /* We use char because int might match the return type of a gcc2
14897    builtin and then its argument prototype would still apply.  */
14898 char getpwent ();
14899 int
14900 main ()
14901 {
14902 getpwent ();
14903   ;
14904   return 0;
14905 }
14906 _ACEOF
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909   (eval $ac_link) 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } &&
14913          { ac_try='test -s conftest$ac_exeext'
14914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915   (eval $ac_try) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; }; then
14919   ac_cv_lib_sun_getpwent=yes
14920 else
14921   echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 ac_cv_lib_sun_getpwent=no
14925 fi
14926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14928 fi
14929 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
14930 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
14931 if test $ac_cv_lib_sun_getpwent = yes; then
14932   cat >>confdefs.h <<_ACEOF
14933 #define HAVE_LIBSUN 1
14934 _ACEOF
14935
14936   LIBS="-lsun $LIBS"
14937
14938 fi
14939  ;;
14940 esac
14941
14942 if test "$ac_cv_func_getpeername" = no; then
14943
14944 if test "X$bash_cv_have_socklib" = "X"; then
14945 _bash_needmsg=
14946 else
14947 echo "$as_me:$LINENO: checking for socket library" >&5
14948 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
14949 _bash_needmsg=yes
14950 fi
14951 if test "${bash_cv_have_socklib+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
14955 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
14956 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   ac_check_lib_save_LIBS=$LIBS
14960 LIBS="-lsocket -lnsl $LIBS"
14961 cat >conftest.$ac_ext <<_ACEOF
14962 #line $LINENO "configure"
14963 /* confdefs.h.  */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h.  */
14968
14969 /* Override any gcc2 internal prototype to avoid an error.  */
14970 #ifdef __cplusplus
14971 extern "C"
14972 #endif
14973 /* We use char because int might match the return type of a gcc2
14974    builtin and then its argument prototype would still apply.  */
14975 char getpeername ();
14976 int
14977 main ()
14978 {
14979 getpeername ();
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986   (eval $ac_link) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -s conftest$ac_exeext'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996   ac_cv_lib_socket_getpeername=yes
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 ac_cv_lib_socket_getpeername=no
15002 fi
15003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15005 fi
15006 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
15007 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
15008 if test $ac_cv_lib_socket_getpeername = yes; then
15009   bash_cv_have_socklib=yes
15010 else
15011   bash_cv_have_socklib=no
15012 fi
15013
15014 fi
15015
15016 if test "X$_bash_needmsg" = Xyes; then
15017   echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
15018 echo "${ECHO_T}$bash_cv_have_socklib" >&6
15019   _bash_needmsg=
15020 fi
15021 if test $bash_cv_have_socklib = yes; then
15022   # check for libnsl, add it to LIBS if present
15023   if test "X$bash_cv_have_libnsl" = "X"; then
15024     _bash_needmsg=
15025   else
15026     echo "$as_me:$LINENO: checking for libnsl" >&5
15027 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
15028     _bash_needmsg=yes
15029   fi
15030   if test "${bash_cv_have_libnsl+set}" = set; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15034 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
15035 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   ac_check_lib_save_LIBS=$LIBS
15039 LIBS="-lnsl  $LIBS"
15040 cat >conftest.$ac_ext <<_ACEOF
15041 #line $LINENO "configure"
15042 /* confdefs.h.  */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h.  */
15047
15048 /* Override any gcc2 internal prototype to avoid an error.  */
15049 #ifdef __cplusplus
15050 extern "C"
15051 #endif
15052 /* We use char because int might match the return type of a gcc2
15053    builtin and then its argument prototype would still apply.  */
15054 char t_open ();
15055 int
15056 main ()
15057 {
15058 t_open ();
15059   ;
15060   return 0;
15061 }
15062 _ACEOF
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065   (eval $ac_link) 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); } &&
15069          { ac_try='test -s conftest$ac_exeext'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; }; then
15075   ac_cv_lib_nsl_t_open=yes
15076 else
15077   echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15079
15080 ac_cv_lib_nsl_t_open=no
15081 fi
15082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15083 LIBS=$ac_check_lib_save_LIBS
15084 fi
15085 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15086 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
15087 if test $ac_cv_lib_nsl_t_open = yes; then
15088   bash_cv_have_libnsl=yes
15089 else
15090   bash_cv_have_libnsl=no
15091 fi
15092
15093 fi
15094
15095   if test "X$_bash_needmsg" = Xyes; then
15096     echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
15097 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
15098     _bash_needmsg=
15099   fi
15100   if test $bash_cv_have_libnsl = yes; then
15101     LIBS="-lsocket -lnsl $LIBS"
15102   else
15103     LIBS="-lsocket $LIBS"
15104   fi
15105   cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_LIBSOCKET 1
15107 _ACEOF
15108
15109   cat >>confdefs.h <<\_ACEOF
15110 #define HAVE_GETPEERNAME 1
15111 _ACEOF
15112
15113 fi
15114
15115 fi
15116 if test "$ac_cv_func_gethostbyname" = no; then
15117         if test "X$bash_cv_have_gethostbyname" = "X"; then
15118 _bash_needmsg=yes
15119 else
15120 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
15121 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
15122 _bash_needmsg=
15123 fi
15124 if test "${bash_cv_have_gethostbyname+set}" = set; then
15125   echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127   cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 #include <netdb.h>
15135 int
15136 main ()
15137 {
15138  struct hostent *hp;
15139   hp = gethostbyname("localhost");
15140
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147   (eval $ac_link) 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -s conftest$ac_exeext'
15152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153   (eval $ac_try) 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; }; then
15157   bash_cv_have_gethostbyname=yes
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162 bash_cv_have_gethostbyname=no
15163 fi
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15165
15166 fi
15167
15168 if test "X$_bash_needmsg" = Xyes; then
15169     echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
15170 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
15171 fi
15172 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
15173 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
15174 if test "$bash_cv_have_gethostbyname" = yes; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define HAVE_GETHOSTBYNAME 1
15177 _ACEOF
15178
15179 fi
15180
15181 fi
15182
15183 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15184 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15185 if test "${ac_cv_type_uid_t+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195 #include <sys/types.h>
15196
15197 _ACEOF
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199   $EGREP "uid_t" >/dev/null 2>&1; then
15200   ac_cv_type_uid_t=yes
15201 else
15202   ac_cv_type_uid_t=no
15203 fi
15204 rm -f conftest*
15205
15206 fi
15207 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15208 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15209 if test $ac_cv_type_uid_t = no; then
15210
15211 cat >>confdefs.h <<\_ACEOF
15212 #define uid_t int
15213 _ACEOF
15214
15215
15216 cat >>confdefs.h <<\_ACEOF
15217 #define gid_t int
15218 _ACEOF
15219
15220 fi
15221
15222 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15223 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
15224 if test "${ac_cv_type_getgroups+set}" = set; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227   if test "$cross_compiling" = yes; then
15228   ac_cv_type_getgroups=cross
15229 else
15230   cat >conftest.$ac_ext <<_ACEOF
15231 #line $LINENO "configure"
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 /* Thanks to Mike Rendell for this test.  */
15238 #include <sys/types.h>
15239 #define NGID 256
15240 #undef MAX
15241 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15242
15243 int
15244 main ()
15245 {
15246   gid_t gidset[NGID];
15247   int i, n;
15248   union { gid_t gval; long lval; }  val;
15249
15250   val.lval = -1;
15251   for (i = 0; i < NGID; i++)
15252     gidset[i] = val.gval;
15253   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15254                  gidset);
15255   /* Exit non-zero if getgroups seems to require an array of ints.  This
15256      happens when gid_t is short but getgroups modifies an array of ints.  */
15257   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
15258 }
15259 _ACEOF
15260 rm -f conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262   (eval $ac_link) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
15271   ac_cv_type_getgroups=gid_t
15272 else
15273   echo "$as_me: program exited with status $ac_status" >&5
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 ( exit $ac_status )
15278 ac_cv_type_getgroups=int
15279 fi
15280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15281 fi
15282 if test $ac_cv_type_getgroups = cross; then
15283         cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 #include <unistd.h>
15291
15292 _ACEOF
15293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15294   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15295   ac_cv_type_getgroups=gid_t
15296 else
15297   ac_cv_type_getgroups=int
15298 fi
15299 rm -f conftest*
15300
15301 fi
15302 fi
15303 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15304 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
15305
15306 cat >>confdefs.h <<_ACEOF
15307 #define GETGROUPS_T $ac_cv_type_getgroups
15308 _ACEOF
15309
15310
15311 echo "$as_me:$LINENO: checking for off_t" >&5
15312 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15313 if test "${ac_cv_type_off_t+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   cat >conftest.$ac_ext <<_ACEOF
15317 #line $LINENO "configure"
15318 /* confdefs.h.  */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h.  */
15323 $ac_includes_default
15324 int
15325 main ()
15326 {
15327 if ((off_t *) 0)
15328   return 0;
15329 if (sizeof (off_t))
15330   return 0;
15331   ;
15332   return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15337   (eval $ac_compile) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); } &&
15341          { ac_try='test -s conftest.$ac_objext'
15342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343   (eval $ac_try) 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347   ac_cv_type_off_t=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_cv_type_off_t=no
15353 fi
15354 rm -f conftest.$ac_objext conftest.$ac_ext
15355 fi
15356 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15357 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15358 if test $ac_cv_type_off_t = yes; then
15359   :
15360 else
15361
15362 cat >>confdefs.h <<_ACEOF
15363 #define off_t long
15364 _ACEOF
15365
15366 fi
15367
15368 echo "$as_me:$LINENO: checking for mode_t" >&5
15369 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15370 if test "${ac_cv_type_mode_t+set}" = set; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15375 /* confdefs.h.  */
15376 _ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h.  */
15380 $ac_includes_default
15381 int
15382 main ()
15383 {
15384 if ((mode_t *) 0)
15385   return 0;
15386 if (sizeof (mode_t))
15387   return 0;
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394   (eval $ac_compile) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_cv_type_mode_t=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_cv_type_mode_t=no
15410 fi
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15412 fi
15413 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15414 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15415 if test $ac_cv_type_mode_t = yes; then
15416   :
15417 else
15418
15419 cat >>confdefs.h <<_ACEOF
15420 #define mode_t int
15421 _ACEOF
15422
15423 fi
15424
15425 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15426 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15427 if test "${ac_cv_type_uid_t+set}" = set; then
15428   echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430   cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15432 /* confdefs.h.  */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h.  */
15437 #include <sys/types.h>
15438
15439 _ACEOF
15440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15441   $EGREP "uid_t" >/dev/null 2>&1; then
15442   ac_cv_type_uid_t=yes
15443 else
15444   ac_cv_type_uid_t=no
15445 fi
15446 rm -f conftest*
15447
15448 fi
15449 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15450 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15451 if test $ac_cv_type_uid_t = no; then
15452
15453 cat >>confdefs.h <<\_ACEOF
15454 #define uid_t int
15455 _ACEOF
15456
15457
15458 cat >>confdefs.h <<\_ACEOF
15459 #define gid_t int
15460 _ACEOF
15461
15462 fi
15463
15464 echo "$as_me:$LINENO: checking for pid_t" >&5
15465 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15466 if test "${ac_cv_type_pid_t+set}" = set; then
15467   echo $ECHO_N "(cached) $ECHO_C" >&6
15468 else
15469   cat >conftest.$ac_ext <<_ACEOF
15470 #line $LINENO "configure"
15471 /* confdefs.h.  */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h.  */
15476 $ac_includes_default
15477 int
15478 main ()
15479 {
15480 if ((pid_t *) 0)
15481   return 0;
15482 if (sizeof (pid_t))
15483   return 0;
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15490   (eval $ac_compile) 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } &&
15494          { ac_try='test -s conftest.$ac_objext'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_cv_type_pid_t=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_cv_type_pid_t=no
15506 fi
15507 rm -f conftest.$ac_objext conftest.$ac_ext
15508 fi
15509 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15510 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15511 if test $ac_cv_type_pid_t = yes; then
15512   :
15513 else
15514
15515 cat >>confdefs.h <<_ACEOF
15516 #define pid_t int
15517 _ACEOF
15518
15519 fi
15520
15521 echo "$as_me:$LINENO: checking for size_t" >&5
15522 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15523 if test "${ac_cv_type_size_t+set}" = set; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526   cat >conftest.$ac_ext <<_ACEOF
15527 #line $LINENO "configure"
15528 /* confdefs.h.  */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h.  */
15533 $ac_includes_default
15534 int
15535 main ()
15536 {
15537 if ((size_t *) 0)
15538   return 0;
15539 if (sizeof (size_t))
15540   return 0;
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547   (eval $ac_compile) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } &&
15551          { ac_try='test -s conftest.$ac_objext'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; }; then
15557   ac_cv_type_size_t=yes
15558 else
15559   echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562 ac_cv_type_size_t=no
15563 fi
15564 rm -f conftest.$ac_objext conftest.$ac_ext
15565 fi
15566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15568 if test $ac_cv_type_size_t = yes; then
15569   :
15570 else
15571
15572 cat >>confdefs.h <<_ACEOF
15573 #define size_t unsigned
15574 _ACEOF
15575
15576 fi
15577
15578 echo "$as_me:$LINENO: checking for ssize_t" >&5
15579 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15580 if test "${ac_cv_type_ssize_t+set}" = set; then
15581   echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583   cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15585 /* confdefs.h.  */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h.  */
15590 $ac_includes_default
15591 int
15592 main ()
15593 {
15594 if ((ssize_t *) 0)
15595   return 0;
15596 if (sizeof (ssize_t))
15597   return 0;
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604   (eval $ac_compile) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } &&
15608          { ac_try='test -s conftest.$ac_objext'
15609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610   (eval $ac_try) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; }; then
15614   ac_cv_type_ssize_t=yes
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 ac_cv_type_ssize_t=no
15620 fi
15621 rm -f conftest.$ac_objext conftest.$ac_ext
15622 fi
15623 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15624 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15625 if test $ac_cv_type_ssize_t = yes; then
15626   :
15627 else
15628
15629 cat >>confdefs.h <<_ACEOF
15630 #define ssize_t int
15631 _ACEOF
15632
15633 fi
15634
15635 echo "$as_me:$LINENO: checking for time_t" >&5
15636 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
15637 if test "${ac_cv_type_time_t+set}" = set; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640   cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647 $ac_includes_default
15648 int
15649 main ()
15650 {
15651 if ((time_t *) 0)
15652   return 0;
15653 if (sizeof (time_t))
15654   return 0;
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661   (eval $ac_compile) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -s conftest.$ac_objext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   ac_cv_type_time_t=yes
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_cv_type_time_t=no
15677 fi
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15679 fi
15680 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
15681 echo "${ECHO_T}$ac_cv_type_time_t" >&6
15682 if test $ac_cv_type_time_t = yes; then
15683   :
15684 else
15685
15686 cat >>confdefs.h <<_ACEOF
15687 #define time_t long
15688 _ACEOF
15689
15690 fi
15691
15692
15693
15694 echo "$as_me:$LINENO: checking for long long" >&5
15695 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15696 if test "${bash_cv_type_long_long+set}" = set; then
15697   echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699   cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706
15707 long long ll = 1; int i = 63;
15708 int
15709 main ()
15710 {
15711
15712 long long llm = (long long) -1;
15713 return ll << i | ll >> i | llm / ll | llm % ll;
15714
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15721   (eval $ac_link) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } &&
15725          { ac_try='test -s conftest$ac_exeext'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; }; then
15731   bash_cv_type_long_long='long long'
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736 bash_cv_type_long_long='long'
15737 fi
15738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15739 fi
15740 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
15741 echo "${ECHO_T}$bash_cv_type_long_long" >&6
15742 if test "$bash_cv_type_long_long" = 'long long'; then
15743   cat >>confdefs.h <<\_ACEOF
15744 #define HAVE_LONG_LONG 1
15745 _ACEOF
15746
15747 fi
15748
15749
15750 echo "$as_me:$LINENO: checking for unsigned long long" >&5
15751 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
15752 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   cat >conftest.$ac_ext <<_ACEOF
15756 #line $LINENO "configure"
15757 /* confdefs.h.  */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h.  */
15762
15763 unsigned long long ull = 1; int i = 63;
15764 int
15765 main ()
15766 {
15767
15768 unsigned long long ullmax = (unsigned long long) -1;
15769 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
15770
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15777   (eval $ac_link) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } &&
15781          { ac_try='test -s conftest$ac_exeext'
15782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783   (eval $ac_try) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; }; then
15787   bash_cv_type_unsigned_long_long='unsigned long long'
15788 else
15789   echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 bash_cv_type_unsigned_long_long='unsigned long'
15793 fi
15794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15795 fi
15796 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
15797 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
15798 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
15799   cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_UNSIGNED_LONG_LONG 1
15801 _ACEOF
15802
15803 fi
15804
15805
15806 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15807 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15808 if test "${ac_cv_type_signal+set}" = set; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 #include <sys/types.h>
15819 #include <signal.h>
15820 #ifdef signal
15821 # undef signal
15822 #endif
15823 #ifdef __cplusplus
15824 extern "C" void (*signal (int, void (*)(int)))(int);
15825 #else
15826 void (*signal ()) ();
15827 #endif
15828
15829 int
15830 main ()
15831 {
15832 int i;
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839   (eval $ac_compile) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } &&
15843          { ac_try='test -s conftest.$ac_objext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_cv_type_signal=void
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_type_signal=int
15855 fi
15856 rm -f conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15859 echo "${ECHO_T}$ac_cv_type_signal" >&6
15860
15861 cat >>confdefs.h <<_ACEOF
15862 #define RETSIGTYPE $ac_cv_type_signal
15863 _ACEOF
15864
15865
15866
15867 echo "$as_me:$LINENO: checking for char" >&5
15868 echo $ECHO_N "checking for char... $ECHO_C" >&6
15869 if test "${ac_cv_type_char+set}" = set; then
15870   echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872   cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 /* confdefs.h.  */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h.  */
15879 $ac_includes_default
15880 int
15881 main ()
15882 {
15883 if ((char *) 0)
15884   return 0;
15885 if (sizeof (char))
15886   return 0;
15887   ;
15888   return 0;
15889 }
15890 _ACEOF
15891 rm -f conftest.$ac_objext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893   (eval $ac_compile) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } &&
15897          { ac_try='test -s conftest.$ac_objext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   ac_cv_type_char=yes
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908 ac_cv_type_char=no
15909 fi
15910 rm -f conftest.$ac_objext conftest.$ac_ext
15911 fi
15912 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15913 echo "${ECHO_T}$ac_cv_type_char" >&6
15914
15915 echo "$as_me:$LINENO: checking size of char" >&5
15916 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15917 if test "${ac_cv_sizeof_char+set}" = set; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920   if test "$ac_cv_type_char" = yes; then
15921   # The cast to unsigned long works around a bug in the HP C Compiler
15922   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15923   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15924   # This bug is HP SR number 8606223364.
15925   if test "$cross_compiling" = yes; then
15926   # Depending upon the size, compute the lo and hi bounds.
15927 cat >conftest.$ac_ext <<_ACEOF
15928 #line $LINENO "configure"
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15934 $ac_includes_default
15935 int
15936 main ()
15937 {
15938 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15939 test_array [0] = 0
15940
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947   (eval $ac_compile) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -s conftest.$ac_objext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   ac_lo=0 ac_mid=0
15958   while :; do
15959     cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 $ac_includes_default
15967 int
15968 main ()
15969 {
15970 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15971 test_array [0] = 0
15972
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979   (eval $ac_compile) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -s conftest.$ac_objext'
15984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985   (eval $ac_try) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; }; then
15989   ac_hi=$ac_mid; break
15990 else
15991   echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 ac_lo=`expr $ac_mid + 1`
15995                     if test $ac_lo -le $ac_mid; then
15996                       ac_lo= ac_hi=
15997                       break
15998                     fi
15999                     ac_mid=`expr 2 '*' $ac_mid + 1`
16000 fi
16001 rm -f conftest.$ac_objext conftest.$ac_ext
16002   done
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 cat >conftest.$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 $ac_includes_default
16015 int
16016 main ()
16017 {
16018 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16019 test_array [0] = 0
16020
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027   (eval $ac_compile) 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -s conftest.$ac_objext'
16032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033   (eval $ac_try) 2>&5
16034   ac_status=$?
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); }; }; then
16037   ac_hi=-1 ac_mid=-1
16038   while :; do
16039     cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046 $ac_includes_default
16047 int
16048 main ()
16049 {
16050 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16051 test_array [0] = 0
16052
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16059   (eval $ac_compile) 2>&5
16060   ac_status=$?
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } &&
16063          { ac_try='test -s conftest.$ac_objext'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; }; then
16069   ac_lo=$ac_mid; break
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ac_hi=`expr '(' $ac_mid ')' - 1`
16075                        if test $ac_mid -le $ac_hi; then
16076                          ac_lo= ac_hi=
16077                          break
16078                        fi
16079                        ac_mid=`expr 2 '*' $ac_mid`
16080 fi
16081 rm -f conftest.$ac_objext conftest.$ac_ext
16082   done
16083 else
16084   echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087 ac_lo= ac_hi=
16088 fi
16089 rm -f conftest.$ac_objext conftest.$ac_ext
16090 fi
16091 rm -f conftest.$ac_objext conftest.$ac_ext
16092 # Binary search between lo and hi bounds.
16093 while test "x$ac_lo" != "x$ac_hi"; do
16094   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16095   cat >conftest.$ac_ext <<_ACEOF
16096 #line $LINENO "configure"
16097 /* confdefs.h.  */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h.  */
16102 $ac_includes_default
16103 int
16104 main ()
16105 {
16106 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16107 test_array [0] = 0
16108
16109   ;
16110   return 0;
16111 }
16112 _ACEOF
16113 rm -f conftest.$ac_objext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115   (eval $ac_compile) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } &&
16119          { ac_try='test -s conftest.$ac_objext'
16120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121   (eval $ac_try) 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; }; then
16125   ac_hi=$ac_mid
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 ac_lo=`expr '(' $ac_mid ')' + 1`
16131 fi
16132 rm -f conftest.$ac_objext conftest.$ac_ext
16133 done
16134 case $ac_lo in
16135 ?*) ac_cv_sizeof_char=$ac_lo;;
16136 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16137 See \`config.log' for more details." >&5
16138 echo "$as_me: error: cannot compute sizeof (char), 77
16139 See \`config.log' for more details." >&2;}
16140    { (exit 1); exit 1; }; } ;;
16141 esac
16142 else
16143   if test "$cross_compiling" = yes; then
16144   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16145 See \`config.log' for more details." >&5
16146 echo "$as_me: error: cannot run test program while cross compiling
16147 See \`config.log' for more details." >&2;}
16148    { (exit 1); exit 1; }; }
16149 else
16150   cat >conftest.$ac_ext <<_ACEOF
16151 #line $LINENO "configure"
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 $ac_includes_default
16158 long longval () { return (long) (sizeof (char)); }
16159 unsigned long ulongval () { return (long) (sizeof (char)); }
16160 #include <stdio.h>
16161 #include <stdlib.h>
16162 int
16163 main ()
16164 {
16165
16166   FILE *f = fopen ("conftest.val", "w");
16167   if (! f)
16168     exit (1);
16169   if (((long) (sizeof (char))) < 0)
16170     {
16171       long i = longval ();
16172       if (i != ((long) (sizeof (char))))
16173         exit (1);
16174       fprintf (f, "%ld\n", i);
16175     }
16176   else
16177     {
16178       unsigned long i = ulongval ();
16179       if (i != ((long) (sizeof (char))))
16180         exit (1);
16181       fprintf (f, "%lu\n", i);
16182     }
16183   exit (ferror (f) || fclose (f) != 0);
16184
16185   ;
16186   return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest$ac_exeext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16191   (eval $ac_link) 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200   ac_cv_sizeof_char=`cat conftest.val`
16201 else
16202   echo "$as_me: program exited with status $ac_status" >&5
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ( exit $ac_status )
16207 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16208 See \`config.log' for more details." >&5
16209 echo "$as_me: error: cannot compute sizeof (char), 77
16210 See \`config.log' for more details." >&2;}
16211    { (exit 1); exit 1; }; }
16212 fi
16213 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16214 fi
16215 fi
16216 rm -f conftest.val
16217 else
16218   ac_cv_sizeof_char=0
16219 fi
16220 fi
16221 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16222 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16223 cat >>confdefs.h <<_ACEOF
16224 #define SIZEOF_CHAR $ac_cv_sizeof_char
16225 _ACEOF
16226
16227
16228 echo "$as_me:$LINENO: checking for short" >&5
16229 echo $ECHO_N "checking for short... $ECHO_C" >&6
16230 if test "${ac_cv_type_short+set}" = set; then
16231   echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233   cat >conftest.$ac_ext <<_ACEOF
16234 #line $LINENO "configure"
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240 $ac_includes_default
16241 int
16242 main ()
16243 {
16244 if ((short *) 0)
16245   return 0;
16246 if (sizeof (short))
16247   return 0;
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254   (eval $ac_compile) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); } &&
16258          { ac_try='test -s conftest.$ac_objext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_cv_type_short=yes
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ac_cv_type_short=no
16270 fi
16271 rm -f conftest.$ac_objext conftest.$ac_ext
16272 fi
16273 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16274 echo "${ECHO_T}$ac_cv_type_short" >&6
16275
16276 echo "$as_me:$LINENO: checking size of short" >&5
16277 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16278 if test "${ac_cv_sizeof_short+set}" = set; then
16279   echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281   if test "$ac_cv_type_short" = yes; then
16282   # The cast to unsigned long works around a bug in the HP C Compiler
16283   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16284   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16285   # This bug is HP SR number 8606223364.
16286   if test "$cross_compiling" = yes; then
16287   # Depending upon the size, compute the lo and hi bounds.
16288 cat >conftest.$ac_ext <<_ACEOF
16289 #line $LINENO "configure"
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 $ac_includes_default
16296 int
16297 main ()
16298 {
16299 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16300 test_array [0] = 0
16301
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16308   (eval $ac_compile) 2>&5
16309   ac_status=$?
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } &&
16312          { ac_try='test -s conftest.$ac_objext'
16313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314   (eval $ac_try) 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }; }; then
16318   ac_lo=0 ac_mid=0
16319   while :; do
16320     cat >conftest.$ac_ext <<_ACEOF
16321 #line $LINENO "configure"
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327 $ac_includes_default
16328 int
16329 main ()
16330 {
16331 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16332 test_array [0] = 0
16333
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340   (eval $ac_compile) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } &&
16344          { ac_try='test -s conftest.$ac_objext'
16345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346   (eval $ac_try) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; }; then
16350   ac_hi=$ac_mid; break
16351 else
16352   echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 ac_lo=`expr $ac_mid + 1`
16356                     if test $ac_lo -le $ac_mid; then
16357                       ac_lo= ac_hi=
16358                       break
16359                     fi
16360                     ac_mid=`expr 2 '*' $ac_mid + 1`
16361 fi
16362 rm -f conftest.$ac_objext conftest.$ac_ext
16363   done
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 cat >conftest.$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 int
16377 main ()
16378 {
16379 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16380 test_array [0] = 0
16381
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388   (eval $ac_compile) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   ac_hi=-1 ac_mid=-1
16399   while :; do
16400     cat >conftest.$ac_ext <<_ACEOF
16401 #line $LINENO "configure"
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 $ac_includes_default
16408 int
16409 main ()
16410 {
16411 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16412 test_array [0] = 0
16413
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16420   (eval $ac_compile) 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } &&
16424          { ac_try='test -s conftest.$ac_objext'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; }; then
16430   ac_lo=$ac_mid; break
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ac_hi=`expr '(' $ac_mid ')' - 1`
16436                        if test $ac_mid -le $ac_hi; then
16437                          ac_lo= ac_hi=
16438                          break
16439                        fi
16440                        ac_mid=`expr 2 '*' $ac_mid`
16441 fi
16442 rm -f conftest.$ac_objext conftest.$ac_ext
16443   done
16444 else
16445   echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 ac_lo= ac_hi=
16449 fi
16450 rm -f conftest.$ac_objext conftest.$ac_ext
16451 fi
16452 rm -f conftest.$ac_objext conftest.$ac_ext
16453 # Binary search between lo and hi bounds.
16454 while test "x$ac_lo" != "x$ac_hi"; do
16455   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16456   cat >conftest.$ac_ext <<_ACEOF
16457 #line $LINENO "configure"
16458 /* confdefs.h.  */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h.  */
16463 $ac_includes_default
16464 int
16465 main ()
16466 {
16467 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16468 test_array [0] = 0
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16476   (eval $ac_compile) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -s conftest.$ac_objext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   ac_hi=$ac_mid
16487 else
16488   echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 ac_lo=`expr '(' $ac_mid ')' + 1`
16492 fi
16493 rm -f conftest.$ac_objext conftest.$ac_ext
16494 done
16495 case $ac_lo in
16496 ?*) ac_cv_sizeof_short=$ac_lo;;
16497 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16498 See \`config.log' for more details." >&5
16499 echo "$as_me: error: cannot compute sizeof (short), 77
16500 See \`config.log' for more details." >&2;}
16501    { (exit 1); exit 1; }; } ;;
16502 esac
16503 else
16504   if test "$cross_compiling" = yes; then
16505   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16506 See \`config.log' for more details." >&5
16507 echo "$as_me: error: cannot run test program while cross compiling
16508 See \`config.log' for more details." >&2;}
16509    { (exit 1); exit 1; }; }
16510 else
16511   cat >conftest.$ac_ext <<_ACEOF
16512 #line $LINENO "configure"
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 long longval () { return (long) (sizeof (short)); }
16520 unsigned long ulongval () { return (long) (sizeof (short)); }
16521 #include <stdio.h>
16522 #include <stdlib.h>
16523 int
16524 main ()
16525 {
16526
16527   FILE *f = fopen ("conftest.val", "w");
16528   if (! f)
16529     exit (1);
16530   if (((long) (sizeof (short))) < 0)
16531     {
16532       long i = longval ();
16533       if (i != ((long) (sizeof (short))))
16534         exit (1);
16535       fprintf (f, "%ld\n", i);
16536     }
16537   else
16538     {
16539       unsigned long i = ulongval ();
16540       if (i != ((long) (sizeof (short))))
16541         exit (1);
16542       fprintf (f, "%lu\n", i);
16543     }
16544   exit (ferror (f) || fclose (f) != 0);
16545
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552   (eval $ac_link) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557   (eval $ac_try) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; }; then
16561   ac_cv_sizeof_short=`cat conftest.val`
16562 else
16563   echo "$as_me: program exited with status $ac_status" >&5
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 ( exit $ac_status )
16568 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16569 See \`config.log' for more details." >&5
16570 echo "$as_me: error: cannot compute sizeof (short), 77
16571 See \`config.log' for more details." >&2;}
16572    { (exit 1); exit 1; }; }
16573 fi
16574 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16575 fi
16576 fi
16577 rm -f conftest.val
16578 else
16579   ac_cv_sizeof_short=0
16580 fi
16581 fi
16582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16583 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16584 cat >>confdefs.h <<_ACEOF
16585 #define SIZEOF_SHORT $ac_cv_sizeof_short
16586 _ACEOF
16587
16588
16589 echo "$as_me:$LINENO: checking for int" >&5
16590 echo $ECHO_N "checking for int... $ECHO_C" >&6
16591 if test "${ac_cv_type_int+set}" = set; then
16592   echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594   cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 $ac_includes_default
16602 int
16603 main ()
16604 {
16605 if ((int *) 0)
16606   return 0;
16607 if (sizeof (int))
16608   return 0;
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } &&
16619          { ac_try='test -s conftest.$ac_objext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   ac_cv_type_int=yes
16626 else
16627   echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_type_int=no
16631 fi
16632 rm -f conftest.$ac_objext conftest.$ac_ext
16633 fi
16634 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16635 echo "${ECHO_T}$ac_cv_type_int" >&6
16636
16637 echo "$as_me:$LINENO: checking size of int" >&5
16638 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16639 if test "${ac_cv_sizeof_int+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   if test "$ac_cv_type_int" = yes; then
16643   # The cast to unsigned long works around a bug in the HP C Compiler
16644   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16645   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16646   # This bug is HP SR number 8606223364.
16647   if test "$cross_compiling" = yes; then
16648   # Depending upon the size, compute the lo and hi bounds.
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 $ac_includes_default
16657 int
16658 main ()
16659 {
16660 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16661 test_array [0] = 0
16662
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669   (eval $ac_compile) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_lo=0 ac_mid=0
16680   while :; do
16681     cat >conftest.$ac_ext <<_ACEOF
16682 #line $LINENO "configure"
16683 /* confdefs.h.  */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h.  */
16688 $ac_includes_default
16689 int
16690 main ()
16691 {
16692 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16693 test_array [0] = 0
16694
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16701   (eval $ac_compile) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } &&
16705          { ac_try='test -s conftest.$ac_objext'
16706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707   (eval $ac_try) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; }; then
16711   ac_hi=$ac_mid; break
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ac_lo=`expr $ac_mid + 1`
16717                     if test $ac_lo -le $ac_mid; then
16718                       ac_lo= ac_hi=
16719                       break
16720                     fi
16721                     ac_mid=`expr 2 '*' $ac_mid + 1`
16722 fi
16723 rm -f conftest.$ac_objext conftest.$ac_ext
16724   done
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729 cat >conftest.$ac_ext <<_ACEOF
16730 #line $LINENO "configure"
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736 $ac_includes_default
16737 int
16738 main ()
16739 {
16740 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16741 test_array [0] = 0
16742
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16749   (eval $ac_compile) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); } &&
16753          { ac_try='test -s conftest.$ac_objext'
16754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755   (eval $ac_try) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; }; then
16759   ac_hi=-1 ac_mid=-1
16760   while :; do
16761     cat >conftest.$ac_ext <<_ACEOF
16762 #line $LINENO "configure"
16763 /* confdefs.h.  */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h.  */
16768 $ac_includes_default
16769 int
16770 main ()
16771 {
16772 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16773 test_array [0] = 0
16774
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781   (eval $ac_compile) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } &&
16785          { ac_try='test -s conftest.$ac_objext'
16786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787   (eval $ac_try) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; }; then
16791   ac_lo=$ac_mid; break
16792 else
16793   echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16795
16796 ac_hi=`expr '(' $ac_mid ')' - 1`
16797                        if test $ac_mid -le $ac_hi; then
16798                          ac_lo= ac_hi=
16799                          break
16800                        fi
16801                        ac_mid=`expr 2 '*' $ac_mid`
16802 fi
16803 rm -f conftest.$ac_objext conftest.$ac_ext
16804   done
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_lo= ac_hi=
16810 fi
16811 rm -f conftest.$ac_objext conftest.$ac_ext
16812 fi
16813 rm -f conftest.$ac_objext conftest.$ac_ext
16814 # Binary search between lo and hi bounds.
16815 while test "x$ac_lo" != "x$ac_hi"; do
16816   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16817   cat >conftest.$ac_ext <<_ACEOF
16818 #line $LINENO "configure"
16819 /* confdefs.h.  */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h.  */
16824 $ac_includes_default
16825 int
16826 main ()
16827 {
16828 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16829 test_array [0] = 0
16830
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837   (eval $ac_compile) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -s conftest.$ac_objext'
16842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843   (eval $ac_try) 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; }; then
16847   ac_hi=$ac_mid
16848 else
16849   echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 ac_lo=`expr '(' $ac_mid ')' + 1`
16853 fi
16854 rm -f conftest.$ac_objext conftest.$ac_ext
16855 done
16856 case $ac_lo in
16857 ?*) ac_cv_sizeof_int=$ac_lo;;
16858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16859 See \`config.log' for more details." >&5
16860 echo "$as_me: error: cannot compute sizeof (int), 77
16861 See \`config.log' for more details." >&2;}
16862    { (exit 1); exit 1; }; } ;;
16863 esac
16864 else
16865   if test "$cross_compiling" = yes; then
16866   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16867 See \`config.log' for more details." >&5
16868 echo "$as_me: error: cannot run test program while cross compiling
16869 See \`config.log' for more details." >&2;}
16870    { (exit 1); exit 1; }; }
16871 else
16872   cat >conftest.$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879 $ac_includes_default
16880 long longval () { return (long) (sizeof (int)); }
16881 unsigned long ulongval () { return (long) (sizeof (int)); }
16882 #include <stdio.h>
16883 #include <stdlib.h>
16884 int
16885 main ()
16886 {
16887
16888   FILE *f = fopen ("conftest.val", "w");
16889   if (! f)
16890     exit (1);
16891   if (((long) (sizeof (int))) < 0)
16892     {
16893       long i = longval ();
16894       if (i != ((long) (sizeof (int))))
16895         exit (1);
16896       fprintf (f, "%ld\n", i);
16897     }
16898   else
16899     {
16900       unsigned long i = ulongval ();
16901       if (i != ((long) (sizeof (int))))
16902         exit (1);
16903       fprintf (f, "%lu\n", i);
16904     }
16905   exit (ferror (f) || fclose (f) != 0);
16906
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913   (eval $ac_link) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; }; then
16922   ac_cv_sizeof_int=`cat conftest.val`
16923 else
16924   echo "$as_me: program exited with status $ac_status" >&5
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 ( exit $ac_status )
16929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16930 See \`config.log' for more details." >&5
16931 echo "$as_me: error: cannot compute sizeof (int), 77
16932 See \`config.log' for more details." >&2;}
16933    { (exit 1); exit 1; }; }
16934 fi
16935 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16936 fi
16937 fi
16938 rm -f conftest.val
16939 else
16940   ac_cv_sizeof_int=0
16941 fi
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16944 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16945 cat >>confdefs.h <<_ACEOF
16946 #define SIZEOF_INT $ac_cv_sizeof_int
16947 _ACEOF
16948
16949
16950 echo "$as_me:$LINENO: checking for long" >&5
16951 echo $ECHO_N "checking for long... $ECHO_C" >&6
16952 if test "${ac_cv_type_long+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   cat >conftest.$ac_ext <<_ACEOF
16956 #line $LINENO "configure"
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962 $ac_includes_default
16963 int
16964 main ()
16965 {
16966 if ((long *) 0)
16967   return 0;
16968 if (sizeof (long))
16969   return 0;
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976   (eval $ac_compile) 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); } &&
16980          { ac_try='test -s conftest.$ac_objext'
16981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982   (eval $ac_try) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_type_long=yes
16987 else
16988   echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_cv_type_long=no
16992 fi
16993 rm -f conftest.$ac_objext conftest.$ac_ext
16994 fi
16995 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16996 echo "${ECHO_T}$ac_cv_type_long" >&6
16997
16998 echo "$as_me:$LINENO: checking size of long" >&5
16999 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17000 if test "${ac_cv_sizeof_long+set}" = set; then
17001   echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003   if test "$ac_cv_type_long" = yes; then
17004   # The cast to unsigned long works around a bug in the HP C Compiler
17005   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17006   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17007   # This bug is HP SR number 8606223364.
17008   if test "$cross_compiling" = yes; then
17009   # Depending upon the size, compute the lo and hi bounds.
17010 cat >conftest.$ac_ext <<_ACEOF
17011 #line $LINENO "configure"
17012 /* confdefs.h.  */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h.  */
17017 $ac_includes_default
17018 int
17019 main ()
17020 {
17021 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17022 test_array [0] = 0
17023
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030   (eval $ac_compile) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } &&
17034          { ac_try='test -s conftest.$ac_objext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_lo=0 ac_mid=0
17041   while :; do
17042     cat >conftest.$ac_ext <<_ACEOF
17043 #line $LINENO "configure"
17044 /* confdefs.h.  */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h.  */
17049 $ac_includes_default
17050 int
17051 main ()
17052 {
17053 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17054 test_array [0] = 0
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17062   (eval $ac_compile) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); } &&
17066          { ac_try='test -s conftest.$ac_objext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   ac_hi=$ac_mid; break
17073 else
17074   echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 ac_lo=`expr $ac_mid + 1`
17078                     if test $ac_lo -le $ac_mid; then
17079                       ac_lo= ac_hi=
17080                       break
17081                     fi
17082                     ac_mid=`expr 2 '*' $ac_mid + 1`
17083 fi
17084 rm -f conftest.$ac_objext conftest.$ac_ext
17085   done
17086 else
17087   echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097 $ac_includes_default
17098 int
17099 main ()
17100 {
17101 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17102 test_array [0] = 0
17103
17104   ;
17105   return 0;
17106 }
17107 _ACEOF
17108 rm -f conftest.$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110   (eval $ac_compile) 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); } &&
17114          { ac_try='test -s conftest.$ac_objext'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; }; then
17120   ac_hi=-1 ac_mid=-1
17121   while :; do
17122     cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17124 /* confdefs.h.  */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h.  */
17129 $ac_includes_default
17130 int
17131 main ()
17132 {
17133 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17134 test_array [0] = 0
17135
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext
17141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17142   (eval $ac_compile) 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } &&
17146          { ac_try='test -s conftest.$ac_objext'
17147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148   (eval $ac_try) 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; }; then
17152   ac_lo=$ac_mid; break
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 ac_hi=`expr '(' $ac_mid ')' - 1`
17158                        if test $ac_mid -le $ac_hi; then
17159                          ac_lo= ac_hi=
17160                          break
17161                        fi
17162                        ac_mid=`expr 2 '*' $ac_mid`
17163 fi
17164 rm -f conftest.$ac_objext conftest.$ac_ext
17165   done
17166 else
17167   echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_lo= ac_hi=
17171 fi
17172 rm -f conftest.$ac_objext conftest.$ac_ext
17173 fi
17174 rm -f conftest.$ac_objext conftest.$ac_ext
17175 # Binary search between lo and hi bounds.
17176 while test "x$ac_lo" != "x$ac_hi"; do
17177   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17178   cat >conftest.$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185 $ac_includes_default
17186 int
17187 main ()
17188 {
17189 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17190 test_array [0] = 0
17191
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198   (eval $ac_compile) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -s conftest.$ac_objext'
17203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204   (eval $ac_try) 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); }; }; then
17208   ac_hi=$ac_mid
17209 else
17210   echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 ac_lo=`expr '(' $ac_mid ')' + 1`
17214 fi
17215 rm -f conftest.$ac_objext conftest.$ac_ext
17216 done
17217 case $ac_lo in
17218 ?*) ac_cv_sizeof_long=$ac_lo;;
17219 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17220 See \`config.log' for more details." >&5
17221 echo "$as_me: error: cannot compute sizeof (long), 77
17222 See \`config.log' for more details." >&2;}
17223    { (exit 1); exit 1; }; } ;;
17224 esac
17225 else
17226   if test "$cross_compiling" = yes; then
17227   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17228 See \`config.log' for more details." >&5
17229 echo "$as_me: error: cannot run test program while cross compiling
17230 See \`config.log' for more details." >&2;}
17231    { (exit 1); exit 1; }; }
17232 else
17233   cat >conftest.$ac_ext <<_ACEOF
17234 #line $LINENO "configure"
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 $ac_includes_default
17241 long longval () { return (long) (sizeof (long)); }
17242 unsigned long ulongval () { return (long) (sizeof (long)); }
17243 #include <stdio.h>
17244 #include <stdlib.h>
17245 int
17246 main ()
17247 {
17248
17249   FILE *f = fopen ("conftest.val", "w");
17250   if (! f)
17251     exit (1);
17252   if (((long) (sizeof (long))) < 0)
17253     {
17254       long i = longval ();
17255       if (i != ((long) (sizeof (long))))
17256         exit (1);
17257       fprintf (f, "%ld\n", i);
17258     }
17259   else
17260     {
17261       unsigned long i = ulongval ();
17262       if (i != ((long) (sizeof (long))))
17263         exit (1);
17264       fprintf (f, "%lu\n", i);
17265     }
17266   exit (ferror (f) || fclose (f) != 0);
17267
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest$ac_exeext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17274   (eval $ac_link) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279   (eval $ac_try) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; }; then
17283   ac_cv_sizeof_long=`cat conftest.val`
17284 else
17285   echo "$as_me: program exited with status $ac_status" >&5
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 ( exit $ac_status )
17290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17291 See \`config.log' for more details." >&5
17292 echo "$as_me: error: cannot compute sizeof (long), 77
17293 See \`config.log' for more details." >&2;}
17294    { (exit 1); exit 1; }; }
17295 fi
17296 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17297 fi
17298 fi
17299 rm -f conftest.val
17300 else
17301   ac_cv_sizeof_long=0
17302 fi
17303 fi
17304 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17305 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17306 cat >>confdefs.h <<_ACEOF
17307 #define SIZEOF_LONG $ac_cv_sizeof_long
17308 _ACEOF
17309
17310
17311 echo "$as_me:$LINENO: checking for char *" >&5
17312 echo $ECHO_N "checking for char *... $ECHO_C" >&6
17313 if test "${ac_cv_type_char_p+set}" = set; then
17314   echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316   cat >conftest.$ac_ext <<_ACEOF
17317 #line $LINENO "configure"
17318 /* confdefs.h.  */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h.  */
17323 $ac_includes_default
17324 int
17325 main ()
17326 {
17327 if ((char * *) 0)
17328   return 0;
17329 if (sizeof (char *))
17330   return 0;
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337   (eval $ac_compile) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } &&
17341          { ac_try='test -s conftest.$ac_objext'
17342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343   (eval $ac_try) 2>&5
17344   ac_status=$?
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); }; }; then
17347   ac_cv_type_char_p=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352 ac_cv_type_char_p=no
17353 fi
17354 rm -f conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
17357 echo "${ECHO_T}$ac_cv_type_char_p" >&6
17358
17359 echo "$as_me:$LINENO: checking size of char *" >&5
17360 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
17361 if test "${ac_cv_sizeof_char_p+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   if test "$ac_cv_type_char_p" = yes; then
17365   # The cast to unsigned long works around a bug in the HP C Compiler
17366   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17367   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17368   # This bug is HP SR number 8606223364.
17369   if test "$cross_compiling" = yes; then
17370   # Depending upon the size, compute the lo and hi bounds.
17371 cat >conftest.$ac_ext <<_ACEOF
17372 #line $LINENO "configure"
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378 $ac_includes_default
17379 int
17380 main ()
17381 {
17382 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
17383 test_array [0] = 0
17384
17385   ;
17386   return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest.$ac_objext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391   (eval $ac_compile) 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_lo=0 ac_mid=0
17402   while :; do
17403     cat >conftest.$ac_ext <<_ACEOF
17404 #line $LINENO "configure"
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 $ac_includes_default
17411 int
17412 main ()
17413 {
17414 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
17415 test_array [0] = 0
17416
17417   ;
17418   return 0;
17419 }
17420 _ACEOF
17421 rm -f conftest.$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423   (eval $ac_compile) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); } &&
17427          { ac_try='test -s conftest.$ac_objext'
17428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429   (eval $ac_try) 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; }; then
17433   ac_hi=$ac_mid; break
17434 else
17435   echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 ac_lo=`expr $ac_mid + 1`
17439                     if test $ac_lo -le $ac_mid; then
17440                       ac_lo= ac_hi=
17441                       break
17442                     fi
17443                     ac_mid=`expr 2 '*' $ac_mid + 1`
17444 fi
17445 rm -f conftest.$ac_objext conftest.$ac_ext
17446   done
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 cat >conftest.$ac_ext <<_ACEOF
17452 #line $LINENO "configure"
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458 $ac_includes_default
17459 int
17460 main ()
17461 {
17462 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
17463 test_array [0] = 0
17464
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17471   (eval $ac_compile) 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } &&
17475          { ac_try='test -s conftest.$ac_objext'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; }; then
17481   ac_hi=-1 ac_mid=-1
17482   while :; do
17483     cat >conftest.$ac_ext <<_ACEOF
17484 #line $LINENO "configure"
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490 $ac_includes_default
17491 int
17492 main ()
17493 {
17494 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
17495 test_array [0] = 0
17496
17497   ;
17498   return 0;
17499 }
17500 _ACEOF
17501 rm -f conftest.$ac_objext
17502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17503   (eval $ac_compile) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } &&
17507          { ac_try='test -s conftest.$ac_objext'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; }; then
17513   ac_lo=$ac_mid; break
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ac_hi=`expr '(' $ac_mid ')' - 1`
17519                        if test $ac_mid -le $ac_hi; then
17520                          ac_lo= ac_hi=
17521                          break
17522                        fi
17523                        ac_mid=`expr 2 '*' $ac_mid`
17524 fi
17525 rm -f conftest.$ac_objext conftest.$ac_ext
17526   done
17527 else
17528   echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17530
17531 ac_lo= ac_hi=
17532 fi
17533 rm -f conftest.$ac_objext conftest.$ac_ext
17534 fi
17535 rm -f conftest.$ac_objext conftest.$ac_ext
17536 # Binary search between lo and hi bounds.
17537 while test "x$ac_lo" != "x$ac_hi"; do
17538   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17539   cat >conftest.$ac_ext <<_ACEOF
17540 #line $LINENO "configure"
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 $ac_includes_default
17547 int
17548 main ()
17549 {
17550 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
17551 test_array [0] = 0
17552
17553   ;
17554   return 0;
17555 }
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17559   (eval $ac_compile) 2>&5
17560   ac_status=$?
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -s conftest.$ac_objext'
17564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565   (eval $ac_try) 2>&5
17566   ac_status=$?
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); }; }; then
17569   ac_hi=$ac_mid
17570 else
17571   echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574 ac_lo=`expr '(' $ac_mid ')' + 1`
17575 fi
17576 rm -f conftest.$ac_objext conftest.$ac_ext
17577 done
17578 case $ac_lo in
17579 ?*) ac_cv_sizeof_char_p=$ac_lo;;
17580 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
17581 See \`config.log' for more details." >&5
17582 echo "$as_me: error: cannot compute sizeof (char *), 77
17583 See \`config.log' for more details." >&2;}
17584    { (exit 1); exit 1; }; } ;;
17585 esac
17586 else
17587   if test "$cross_compiling" = yes; then
17588   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17589 See \`config.log' for more details." >&5
17590 echo "$as_me: error: cannot run test program while cross compiling
17591 See \`config.log' for more details." >&2;}
17592    { (exit 1); exit 1; }; }
17593 else
17594   cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601 $ac_includes_default
17602 long longval () { return (long) (sizeof (char *)); }
17603 unsigned long ulongval () { return (long) (sizeof (char *)); }
17604 #include <stdio.h>
17605 #include <stdlib.h>
17606 int
17607 main ()
17608 {
17609
17610   FILE *f = fopen ("conftest.val", "w");
17611   if (! f)
17612     exit (1);
17613   if (((long) (sizeof (char *))) < 0)
17614     {
17615       long i = longval ();
17616       if (i != ((long) (sizeof (char *))))
17617         exit (1);
17618       fprintf (f, "%ld\n", i);
17619     }
17620   else
17621     {
17622       unsigned long i = ulongval ();
17623       if (i != ((long) (sizeof (char *))))
17624         exit (1);
17625       fprintf (f, "%lu\n", i);
17626     }
17627   exit (ferror (f) || fclose (f) != 0);
17628
17629   ;
17630   return 0;
17631 }
17632 _ACEOF
17633 rm -f conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635   (eval $ac_link) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640   (eval $ac_try) 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   ac_cv_sizeof_char_p=`cat conftest.val`
17645 else
17646   echo "$as_me: program exited with status $ac_status" >&5
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 ( exit $ac_status )
17651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
17652 See \`config.log' for more details." >&5
17653 echo "$as_me: error: cannot compute sizeof (char *), 77
17654 See \`config.log' for more details." >&2;}
17655    { (exit 1); exit 1; }; }
17656 fi
17657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17658 fi
17659 fi
17660 rm -f conftest.val
17661 else
17662   ac_cv_sizeof_char_p=0
17663 fi
17664 fi
17665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
17666 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
17667 cat >>confdefs.h <<_ACEOF
17668 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
17669 _ACEOF
17670
17671
17672 echo "$as_me:$LINENO: checking for double" >&5
17673 echo $ECHO_N "checking for double... $ECHO_C" >&6
17674 if test "${ac_cv_type_double+set}" = set; then
17675   echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677   cat >conftest.$ac_ext <<_ACEOF
17678 #line $LINENO "configure"
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 $ac_includes_default
17685 int
17686 main ()
17687 {
17688 if ((double *) 0)
17689   return 0;
17690 if (sizeof (double))
17691   return 0;
17692   ;
17693   return 0;
17694 }
17695 _ACEOF
17696 rm -f conftest.$ac_objext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17698   (eval $ac_compile) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } &&
17702          { ac_try='test -s conftest.$ac_objext'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708   ac_cv_type_double=yes
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_cv_type_double=no
17714 fi
17715 rm -f conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
17718 echo "${ECHO_T}$ac_cv_type_double" >&6
17719
17720 echo "$as_me:$LINENO: checking size of double" >&5
17721 echo $ECHO_N "checking size of double... $ECHO_C" >&6
17722 if test "${ac_cv_sizeof_double+set}" = set; then
17723   echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725   if test "$ac_cv_type_double" = yes; then
17726   # The cast to unsigned long works around a bug in the HP C Compiler
17727   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17728   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17729   # This bug is HP SR number 8606223364.
17730   if test "$cross_compiling" = yes; then
17731   # Depending upon the size, compute the lo and hi bounds.
17732 cat >conftest.$ac_ext <<_ACEOF
17733 #line $LINENO "configure"
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 $ac_includes_default
17740 int
17741 main ()
17742 {
17743 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
17744 test_array [0] = 0
17745
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752   (eval $ac_compile) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } &&
17756          { ac_try='test -s conftest.$ac_objext'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; }; then
17762   ac_lo=0 ac_mid=0
17763   while :; do
17764     cat >conftest.$ac_ext <<_ACEOF
17765 #line $LINENO "configure"
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771 $ac_includes_default
17772 int
17773 main ()
17774 {
17775 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17776 test_array [0] = 0
17777
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17784   (eval $ac_compile) 2>&5
17785   ac_status=$?
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); } &&
17788          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17794   ac_hi=$ac_mid; break
17795 else
17796   echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 ac_lo=`expr $ac_mid + 1`
17800                     if test $ac_lo -le $ac_mid; then
17801                       ac_lo= ac_hi=
17802                       break
17803                     fi
17804                     ac_mid=`expr 2 '*' $ac_mid + 1`
17805 fi
17806 rm -f conftest.$ac_objext conftest.$ac_ext
17807   done
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 cat >conftest.$ac_ext <<_ACEOF
17813 #line $LINENO "configure"
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819 $ac_includes_default
17820 int
17821 main ()
17822 {
17823 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
17824 test_array [0] = 0
17825
17826   ;
17827   return 0;
17828 }
17829 _ACEOF
17830 rm -f conftest.$ac_objext
17831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17832   (eval $ac_compile) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); } &&
17836          { ac_try='test -s conftest.$ac_objext'
17837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838   (eval $ac_try) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; }; then
17842   ac_hi=-1 ac_mid=-1
17843   while :; do
17844     cat >conftest.$ac_ext <<_ACEOF
17845 #line $LINENO "configure"
17846 /* confdefs.h.  */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h.  */
17851 $ac_includes_default
17852 int
17853 main ()
17854 {
17855 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
17856 test_array [0] = 0
17857
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17864   (eval $ac_compile) 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } &&
17868          { ac_try='test -s conftest.$ac_objext'
17869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870   (eval $ac_try) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; }; then
17874   ac_lo=$ac_mid; break
17875 else
17876   echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879 ac_hi=`expr '(' $ac_mid ')' - 1`
17880                        if test $ac_mid -le $ac_hi; then
17881                          ac_lo= ac_hi=
17882                          break
17883                        fi
17884                        ac_mid=`expr 2 '*' $ac_mid`
17885 fi
17886 rm -f conftest.$ac_objext conftest.$ac_ext
17887   done
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_lo= ac_hi=
17893 fi
17894 rm -f conftest.$ac_objext conftest.$ac_ext
17895 fi
17896 rm -f conftest.$ac_objext conftest.$ac_ext
17897 # Binary search between lo and hi bounds.
17898 while test "x$ac_lo" != "x$ac_hi"; do
17899   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17900   cat >conftest.$ac_ext <<_ACEOF
17901 #line $LINENO "configure"
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 $ac_includes_default
17908 int
17909 main ()
17910 {
17911 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
17912 test_array [0] = 0
17913
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920   (eval $ac_compile) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } &&
17924          { ac_try='test -s conftest.$ac_objext'
17925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926   (eval $ac_try) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; }; then
17930   ac_hi=$ac_mid
17931 else
17932   echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_lo=`expr '(' $ac_mid ')' + 1`
17936 fi
17937 rm -f conftest.$ac_objext conftest.$ac_ext
17938 done
17939 case $ac_lo in
17940 ?*) ac_cv_sizeof_double=$ac_lo;;
17941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
17942 See \`config.log' for more details." >&5
17943 echo "$as_me: error: cannot compute sizeof (double), 77
17944 See \`config.log' for more details." >&2;}
17945    { (exit 1); exit 1; }; } ;;
17946 esac
17947 else
17948   if test "$cross_compiling" = yes; then
17949   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17950 See \`config.log' for more details." >&5
17951 echo "$as_me: error: cannot run test program while cross compiling
17952 See \`config.log' for more details." >&2;}
17953    { (exit 1); exit 1; }; }
17954 else
17955   cat >conftest.$ac_ext <<_ACEOF
17956 #line $LINENO "configure"
17957 /* confdefs.h.  */
17958 _ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h.  */
17962 $ac_includes_default
17963 long longval () { return (long) (sizeof (double)); }
17964 unsigned long ulongval () { return (long) (sizeof (double)); }
17965 #include <stdio.h>
17966 #include <stdlib.h>
17967 int
17968 main ()
17969 {
17970
17971   FILE *f = fopen ("conftest.val", "w");
17972   if (! f)
17973     exit (1);
17974   if (((long) (sizeof (double))) < 0)
17975     {
17976       long i = longval ();
17977       if (i != ((long) (sizeof (double))))
17978         exit (1);
17979       fprintf (f, "%ld\n", i);
17980     }
17981   else
17982     {
17983       unsigned long i = ulongval ();
17984       if (i != ((long) (sizeof (double))))
17985         exit (1);
17986       fprintf (f, "%lu\n", i);
17987     }
17988   exit (ferror (f) || fclose (f) != 0);
17989
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996   (eval $ac_link) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001   (eval $ac_try) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   ac_cv_sizeof_double=`cat conftest.val`
18006 else
18007   echo "$as_me: program exited with status $ac_status" >&5
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ( exit $ac_status )
18012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
18013 See \`config.log' for more details." >&5
18014 echo "$as_me: error: cannot compute sizeof (double), 77
18015 See \`config.log' for more details." >&2;}
18016    { (exit 1); exit 1; }; }
18017 fi
18018 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18019 fi
18020 fi
18021 rm -f conftest.val
18022 else
18023   ac_cv_sizeof_double=0
18024 fi
18025 fi
18026 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
18027 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
18028 cat >>confdefs.h <<_ACEOF
18029 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
18030 _ACEOF
18031
18032
18033 echo "$as_me:$LINENO: checking for long long" >&5
18034 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18035 if test "${ac_cv_type_long_long+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   cat >conftest.$ac_ext <<_ACEOF
18039 #line $LINENO "configure"
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045 $ac_includes_default
18046 int
18047 main ()
18048 {
18049 if ((long long *) 0)
18050   return 0;
18051 if (sizeof (long long))
18052   return 0;
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18059   (eval $ac_compile) 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } &&
18063          { ac_try='test -s conftest.$ac_objext'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   ac_cv_type_long_long=yes
18070 else
18071   echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_cv_type_long_long=no
18075 fi
18076 rm -f conftest.$ac_objext conftest.$ac_ext
18077 fi
18078 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18079 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18080
18081 echo "$as_me:$LINENO: checking size of long long" >&5
18082 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18083 if test "${ac_cv_sizeof_long_long+set}" = set; then
18084   echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086   if test "$ac_cv_type_long_long" = yes; then
18087   # The cast to unsigned long works around a bug in the HP C Compiler
18088   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18089   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18090   # This bug is HP SR number 8606223364.
18091   if test "$cross_compiling" = yes; then
18092   # Depending upon the size, compute the lo and hi bounds.
18093 cat >conftest.$ac_ext <<_ACEOF
18094 #line $LINENO "configure"
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100 $ac_includes_default
18101 int
18102 main ()
18103 {
18104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18105 test_array [0] = 0
18106
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18113   (eval $ac_compile) 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -s conftest.$ac_objext'
18118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119   (eval $ac_try) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; }; then
18123   ac_lo=0 ac_mid=0
18124   while :; do
18125     cat >conftest.$ac_ext <<_ACEOF
18126 #line $LINENO "configure"
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132 $ac_includes_default
18133 int
18134 main ()
18135 {
18136 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18137 test_array [0] = 0
18138
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 rm -f conftest.$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145   (eval $ac_compile) 2>&5
18146   ac_status=$?
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } &&
18149          { ac_try='test -s conftest.$ac_objext'
18150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151   (eval $ac_try) 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; }; then
18155   ac_hi=$ac_mid; break
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 ac_lo=`expr $ac_mid + 1`
18161                     if test $ac_lo -le $ac_mid; then
18162                       ac_lo= ac_hi=
18163                       break
18164                     fi
18165                     ac_mid=`expr 2 '*' $ac_mid + 1`
18166 fi
18167 rm -f conftest.$ac_objext conftest.$ac_ext
18168   done
18169 else
18170   echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18172
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180 $ac_includes_default
18181 int
18182 main ()
18183 {
18184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18185 test_array [0] = 0
18186
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18193   (eval $ac_compile) 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); } &&
18197          { ac_try='test -s conftest.$ac_objext'
18198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199   (eval $ac_try) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; }; then
18203   ac_hi=-1 ac_mid=-1
18204   while :; do
18205     cat >conftest.$ac_ext <<_ACEOF
18206 #line $LINENO "configure"
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212 $ac_includes_default
18213 int
18214 main ()
18215 {
18216 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18217 test_array [0] = 0
18218
18219   ;
18220   return 0;
18221 }
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225   (eval $ac_compile) 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } &&
18229          { ac_try='test -s conftest.$ac_objext'
18230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231   (eval $ac_try) 2>&5
18232   ac_status=$?
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); }; }; then
18235   ac_lo=$ac_mid; break
18236 else
18237   echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18239
18240 ac_hi=`expr '(' $ac_mid ')' - 1`
18241                        if test $ac_mid -le $ac_hi; then
18242                          ac_lo= ac_hi=
18243                          break
18244                        fi
18245                        ac_mid=`expr 2 '*' $ac_mid`
18246 fi
18247 rm -f conftest.$ac_objext conftest.$ac_ext
18248   done
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 ac_lo= ac_hi=
18254 fi
18255 rm -f conftest.$ac_objext conftest.$ac_ext
18256 fi
18257 rm -f conftest.$ac_objext conftest.$ac_ext
18258 # Binary search between lo and hi bounds.
18259 while test "x$ac_lo" != "x$ac_hi"; do
18260   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18261   cat >conftest.$ac_ext <<_ACEOF
18262 #line $LINENO "configure"
18263 /* confdefs.h.  */
18264 _ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h.  */
18268 $ac_includes_default
18269 int
18270 main ()
18271 {
18272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18273 test_array [0] = 0
18274
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest.$ac_objext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18281   (eval $ac_compile) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); } &&
18285          { ac_try='test -s conftest.$ac_objext'
18286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287   (eval $ac_try) 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; }; then
18291   ac_hi=$ac_mid
18292 else
18293   echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ac_lo=`expr '(' $ac_mid ')' + 1`
18297 fi
18298 rm -f conftest.$ac_objext conftest.$ac_ext
18299 done
18300 case $ac_lo in
18301 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18303 See \`config.log' for more details." >&5
18304 echo "$as_me: error: cannot compute sizeof (long long), 77
18305 See \`config.log' for more details." >&2;}
18306    { (exit 1); exit 1; }; } ;;
18307 esac
18308 else
18309   if test "$cross_compiling" = yes; then
18310   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18311 See \`config.log' for more details." >&5
18312 echo "$as_me: error: cannot run test program while cross compiling
18313 See \`config.log' for more details." >&2;}
18314    { (exit 1); exit 1; }; }
18315 else
18316   cat >conftest.$ac_ext <<_ACEOF
18317 #line $LINENO "configure"
18318 /* confdefs.h.  */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h.  */
18323 $ac_includes_default
18324 long longval () { return (long) (sizeof (long long)); }
18325 unsigned long ulongval () { return (long) (sizeof (long long)); }
18326 #include <stdio.h>
18327 #include <stdlib.h>
18328 int
18329 main ()
18330 {
18331
18332   FILE *f = fopen ("conftest.val", "w");
18333   if (! f)
18334     exit (1);
18335   if (((long) (sizeof (long long))) < 0)
18336     {
18337       long i = longval ();
18338       if (i != ((long) (sizeof (long long))))
18339         exit (1);
18340       fprintf (f, "%ld\n", i);
18341     }
18342   else
18343     {
18344       unsigned long i = ulongval ();
18345       if (i != ((long) (sizeof (long long))))
18346         exit (1);
18347       fprintf (f, "%lu\n", i);
18348     }
18349   exit (ferror (f) || fclose (f) != 0);
18350
18351   ;
18352   return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357   (eval $ac_link) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362   (eval $ac_try) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; }; then
18366   ac_cv_sizeof_long_long=`cat conftest.val`
18367 else
18368   echo "$as_me: program exited with status $ac_status" >&5
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372 ( exit $ac_status )
18373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18374 See \`config.log' for more details." >&5
18375 echo "$as_me: error: cannot compute sizeof (long long), 77
18376 See \`config.log' for more details." >&2;}
18377    { (exit 1); exit 1; }; }
18378 fi
18379 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18380 fi
18381 fi
18382 rm -f conftest.val
18383 else
18384   ac_cv_sizeof_long_long=0
18385 fi
18386 fi
18387 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18388 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18389 cat >>confdefs.h <<_ACEOF
18390 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18391 _ACEOF
18392
18393
18394
18395 echo "$as_me:$LINENO: checking for u_int" >&5
18396 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
18397 if test "${ac_cv_type_u_int+set}" = set; then
18398   echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400   cat >conftest.$ac_ext <<_ACEOF
18401 #line $LINENO "configure"
18402 /* confdefs.h.  */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h.  */
18407 $ac_includes_default
18408 int
18409 main ()
18410 {
18411 if ((u_int *) 0)
18412   return 0;
18413 if (sizeof (u_int))
18414   return 0;
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18421   (eval $ac_compile) 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); } &&
18425          { ac_try='test -s conftest.$ac_objext'
18426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427   (eval $ac_try) 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); }; }; then
18431   ac_cv_type_u_int=yes
18432 else
18433   echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ac_cv_type_u_int=no
18437 fi
18438 rm -f conftest.$ac_objext conftest.$ac_ext
18439 fi
18440 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
18441 echo "${ECHO_T}$ac_cv_type_u_int" >&6
18442 if test $ac_cv_type_u_int = yes; then
18443   :
18444 else
18445
18446 cat >>confdefs.h <<_ACEOF
18447 #define u_int unsigned int
18448 _ACEOF
18449
18450 fi
18451
18452 echo "$as_me:$LINENO: checking for u_long" >&5
18453 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
18454 if test "${ac_cv_type_u_long+set}" = set; then
18455   echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457   cat >conftest.$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464 $ac_includes_default
18465 int
18466 main ()
18467 {
18468 if ((u_long *) 0)
18469   return 0;
18470 if (sizeof (u_long))
18471   return 0;
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478   (eval $ac_compile) 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); } &&
18482          { ac_try='test -s conftest.$ac_objext'
18483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484   (eval $ac_try) 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; }; then
18488   ac_cv_type_u_long=yes
18489 else
18490   echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493 ac_cv_type_u_long=no
18494 fi
18495 rm -f conftest.$ac_objext conftest.$ac_ext
18496 fi
18497 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
18498 echo "${ECHO_T}$ac_cv_type_u_long" >&6
18499 if test $ac_cv_type_u_long = yes; then
18500   :
18501 else
18502
18503 cat >>confdefs.h <<_ACEOF
18504 #define u_long unsigned long
18505 _ACEOF
18506
18507 fi
18508
18509
18510
18511 if test "$ac_cv_sizeof_short" = 2; then
18512   echo "$as_me:$LINENO: checking for bits16_t" >&5
18513 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18514 if test "${ac_cv_type_bits16_t+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   cat >conftest.$ac_ext <<_ACEOF
18518 #line $LINENO "configure"
18519 /* confdefs.h.  */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h.  */
18524 $ac_includes_default
18525 int
18526 main ()
18527 {
18528 if ((bits16_t *) 0)
18529   return 0;
18530 if (sizeof (bits16_t))
18531   return 0;
18532   ;
18533   return 0;
18534 }
18535 _ACEOF
18536 rm -f conftest.$ac_objext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18538   (eval $ac_compile) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } &&
18542          { ac_try='test -s conftest.$ac_objext'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; }; then
18548   ac_cv_type_bits16_t=yes
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553 ac_cv_type_bits16_t=no
18554 fi
18555 rm -f conftest.$ac_objext conftest.$ac_ext
18556 fi
18557 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18558 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18559 if test $ac_cv_type_bits16_t = yes; then
18560   :
18561 else
18562
18563 cat >>confdefs.h <<_ACEOF
18564 #define bits16_t short
18565 _ACEOF
18566
18567 fi
18568
18569 elif test "$ac_cv_sizeof_char" = 2; then
18570   echo "$as_me:$LINENO: checking for bits16_t" >&5
18571 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18572 if test "${ac_cv_type_bits16_t+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575   cat >conftest.$ac_ext <<_ACEOF
18576 #line $LINENO "configure"
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582 $ac_includes_default
18583 int
18584 main ()
18585 {
18586 if ((bits16_t *) 0)
18587   return 0;
18588 if (sizeof (bits16_t))
18589   return 0;
18590   ;
18591   return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext
18595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18596   (eval $ac_compile) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); } &&
18600          { ac_try='test -s conftest.$ac_objext'
18601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602   (eval $ac_try) 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; }; then
18606   ac_cv_type_bits16_t=yes
18607 else
18608   echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 ac_cv_type_bits16_t=no
18612 fi
18613 rm -f conftest.$ac_objext conftest.$ac_ext
18614 fi
18615 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18616 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18617 if test $ac_cv_type_bits16_t = yes; then
18618   :
18619 else
18620
18621 cat >>confdefs.h <<_ACEOF
18622 #define bits16_t char
18623 _ACEOF
18624
18625 fi
18626
18627 else
18628   echo "$as_me:$LINENO: checking for bits16_t" >&5
18629 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
18630 if test "${ac_cv_type_bits16_t+set}" = set; then
18631   echo $ECHO_N "(cached) $ECHO_C" >&6
18632 else
18633   cat >conftest.$ac_ext <<_ACEOF
18634 #line $LINENO "configure"
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640 $ac_includes_default
18641 int
18642 main ()
18643 {
18644 if ((bits16_t *) 0)
18645   return 0;
18646 if (sizeof (bits16_t))
18647   return 0;
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654   (eval $ac_compile) 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } &&
18658          { ac_try='test -s conftest.$ac_objext'
18659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660   (eval $ac_try) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; }; then
18664   ac_cv_type_bits16_t=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 ac_cv_type_bits16_t=no
18670 fi
18671 rm -f conftest.$ac_objext conftest.$ac_ext
18672 fi
18673 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
18674 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
18675 if test $ac_cv_type_bits16_t = yes; then
18676   :
18677 else
18678
18679 cat >>confdefs.h <<_ACEOF
18680 #define bits16_t short
18681 _ACEOF
18682
18683 fi
18684
18685 fi
18686
18687
18688 if test "$ac_cv_sizeof_short" = 2; then
18689   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18690 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18691 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18692   echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694   cat >conftest.$ac_ext <<_ACEOF
18695 #line $LINENO "configure"
18696 /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701 $ac_includes_default
18702 int
18703 main ()
18704 {
18705 if ((u_bits16_t *) 0)
18706   return 0;
18707 if (sizeof (u_bits16_t))
18708   return 0;
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 rm -f conftest.$ac_objext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18715   (eval $ac_compile) 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } &&
18719          { ac_try='test -s conftest.$ac_objext'
18720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721   (eval $ac_try) 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; }; then
18725   ac_cv_type_u_bits16_t=yes
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730 ac_cv_type_u_bits16_t=no
18731 fi
18732 rm -f conftest.$ac_objext conftest.$ac_ext
18733 fi
18734 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18735 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18736 if test $ac_cv_type_u_bits16_t = yes; then
18737   :
18738 else
18739
18740 cat >>confdefs.h <<_ACEOF
18741 #define u_bits16_t unsigned short
18742 _ACEOF
18743
18744 fi
18745
18746 elif test "$ac_cv_sizeof_char" = 2; then
18747   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18748 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18749 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18750   echo $ECHO_N "(cached) $ECHO_C" >&6
18751 else
18752   cat >conftest.$ac_ext <<_ACEOF
18753 #line $LINENO "configure"
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759 $ac_includes_default
18760 int
18761 main ()
18762 {
18763 if ((u_bits16_t *) 0)
18764   return 0;
18765 if (sizeof (u_bits16_t))
18766   return 0;
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773   (eval $ac_compile) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } &&
18777          { ac_try='test -s conftest.$ac_objext'
18778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779   (eval $ac_try) 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; }; then
18783   ac_cv_type_u_bits16_t=yes
18784 else
18785   echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_cv_type_u_bits16_t=no
18789 fi
18790 rm -f conftest.$ac_objext conftest.$ac_ext
18791 fi
18792 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18793 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18794 if test $ac_cv_type_u_bits16_t = yes; then
18795   :
18796 else
18797
18798 cat >>confdefs.h <<_ACEOF
18799 #define u_bits16_t unsigned char
18800 _ACEOF
18801
18802 fi
18803
18804 else
18805   echo "$as_me:$LINENO: checking for u_bits16_t" >&5
18806 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
18807 if test "${ac_cv_type_u_bits16_t+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   cat >conftest.$ac_ext <<_ACEOF
18811 #line $LINENO "configure"
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817 $ac_includes_default
18818 int
18819 main ()
18820 {
18821 if ((u_bits16_t *) 0)
18822   return 0;
18823 if (sizeof (u_bits16_t))
18824   return 0;
18825   ;
18826   return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831   (eval $ac_compile) 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); } &&
18835          { ac_try='test -s conftest.$ac_objext'
18836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837   (eval $ac_try) 2>&5
18838   ac_status=$?
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); }; }; then
18841   ac_cv_type_u_bits16_t=yes
18842 else
18843   echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846 ac_cv_type_u_bits16_t=no
18847 fi
18848 rm -f conftest.$ac_objext conftest.$ac_ext
18849 fi
18850 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
18851 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
18852 if test $ac_cv_type_u_bits16_t = yes; then
18853   :
18854 else
18855
18856 cat >>confdefs.h <<_ACEOF
18857 #define u_bits16_t unsigned short
18858 _ACEOF
18859
18860 fi
18861
18862 fi
18863
18864
18865 if test "$ac_cv_sizeof_int" = 4; then
18866   echo "$as_me:$LINENO: checking for bits32_t" >&5
18867 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18868 if test "${ac_cv_type_bits32_t+set}" = set; then
18869   echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871   cat >conftest.$ac_ext <<_ACEOF
18872 #line $LINENO "configure"
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878 $ac_includes_default
18879 int
18880 main ()
18881 {
18882 if ((bits32_t *) 0)
18883   return 0;
18884 if (sizeof (bits32_t))
18885   return 0;
18886   ;
18887   return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892   (eval $ac_compile) 2>&5
18893   ac_status=$?
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); } &&
18896          { ac_try='test -s conftest.$ac_objext'
18897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898   (eval $ac_try) 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; }; then
18902   ac_cv_type_bits32_t=yes
18903 else
18904   echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907 ac_cv_type_bits32_t=no
18908 fi
18909 rm -f conftest.$ac_objext conftest.$ac_ext
18910 fi
18911 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18912 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18913 if test $ac_cv_type_bits32_t = yes; then
18914   :
18915 else
18916
18917 cat >>confdefs.h <<_ACEOF
18918 #define bits32_t int
18919 _ACEOF
18920
18921 fi
18922
18923 elif test "$ac_cv_sizeof_long" = 4; then
18924   echo "$as_me:$LINENO: checking for bits32_t" >&5
18925 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18926 if test "${ac_cv_type_bits32_t+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   cat >conftest.$ac_ext <<_ACEOF
18930 #line $LINENO "configure"
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 $ac_includes_default
18937 int
18938 main ()
18939 {
18940 if ((bits32_t *) 0)
18941   return 0;
18942 if (sizeof (bits32_t))
18943   return 0;
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950   (eval $ac_compile) 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); } &&
18954          { ac_try='test -s conftest.$ac_objext'
18955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956   (eval $ac_try) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_cv_type_bits32_t=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_cv_type_bits32_t=no
18966 fi
18967 rm -f conftest.$ac_objext conftest.$ac_ext
18968 fi
18969 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
18970 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
18971 if test $ac_cv_type_bits32_t = yes; then
18972   :
18973 else
18974
18975 cat >>confdefs.h <<_ACEOF
18976 #define bits32_t long
18977 _ACEOF
18978
18979 fi
18980
18981 else
18982   echo "$as_me:$LINENO: checking for bits32_t" >&5
18983 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
18984 if test "${ac_cv_type_bits32_t+set}" = set; then
18985   echo $ECHO_N "(cached) $ECHO_C" >&6
18986 else
18987   cat >conftest.$ac_ext <<_ACEOF
18988 #line $LINENO "configure"
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994 $ac_includes_default
18995 int
18996 main ()
18997 {
18998 if ((bits32_t *) 0)
18999   return 0;
19000 if (sizeof (bits32_t))
19001   return 0;
19002   ;
19003   return 0;
19004 }
19005 _ACEOF
19006 rm -f conftest.$ac_objext
19007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19008   (eval $ac_compile) 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); } &&
19012          { ac_try='test -s conftest.$ac_objext'
19013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014   (eval $ac_try) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); }; }; then
19018   ac_cv_type_bits32_t=yes
19019 else
19020   echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19022
19023 ac_cv_type_bits32_t=no
19024 fi
19025 rm -f conftest.$ac_objext conftest.$ac_ext
19026 fi
19027 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
19028 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
19029 if test $ac_cv_type_bits32_t = yes; then
19030   :
19031 else
19032
19033 cat >>confdefs.h <<_ACEOF
19034 #define bits32_t int
19035 _ACEOF
19036
19037 fi
19038
19039 fi
19040
19041
19042 if test "$ac_cv_sizeof_int" = 4; then
19043   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
19044 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
19045 if test "${ac_cv_type_u_bits32_t+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   cat >conftest.$ac_ext <<_ACEOF
19049 #line $LINENO "configure"
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055 $ac_includes_default
19056 int
19057 main ()
19058 {
19059 if ((u_bits32_t *) 0)
19060   return 0;
19061 if (sizeof (u_bits32_t))
19062   return 0;
19063   ;
19064   return 0;
19065 }
19066 _ACEOF
19067 rm -f conftest.$ac_objext
19068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19069   (eval $ac_compile) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); } &&
19073          { ac_try='test -s conftest.$ac_objext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_type_u_bits32_t=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_cv_type_u_bits32_t=no
19085 fi
19086 rm -f conftest.$ac_objext conftest.$ac_ext
19087 fi
19088 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
19089 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
19090 if test $ac_cv_type_u_bits32_t = yes; then
19091   :
19092 else
19093
19094 cat >>confdefs.h <<_ACEOF
19095 #define u_bits32_t unsigned int
19096 _ACEOF
19097
19098 fi
19099
19100 elif test "$ac_cv_sizeof_long" = 4; then
19101   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
19102 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
19103 if test "${ac_cv_type_u_bits32_t+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   cat >conftest.$ac_ext <<_ACEOF
19107 #line $LINENO "configure"
19108 /* confdefs.h.  */
19109 _ACEOF
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h.  */
19113 $ac_includes_default
19114 int
19115 main ()
19116 {
19117 if ((u_bits32_t *) 0)
19118   return 0;
19119 if (sizeof (u_bits32_t))
19120   return 0;
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127   (eval $ac_compile) 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); } &&
19131          { ac_try='test -s conftest.$ac_objext'
19132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133   (eval $ac_try) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_type_u_bits32_t=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 ac_cv_type_u_bits32_t=no
19143 fi
19144 rm -f conftest.$ac_objext conftest.$ac_ext
19145 fi
19146 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
19147 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
19148 if test $ac_cv_type_u_bits32_t = yes; then
19149   :
19150 else
19151
19152 cat >>confdefs.h <<_ACEOF
19153 #define u_bits32_t unsigned long
19154 _ACEOF
19155
19156 fi
19157
19158 else
19159   echo "$as_me:$LINENO: checking for u_bits32_t" >&5
19160 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
19161 if test "${ac_cv_type_u_bits32_t+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   cat >conftest.$ac_ext <<_ACEOF
19165 #line $LINENO "configure"
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 $ac_includes_default
19172 int
19173 main ()
19174 {
19175 if ((u_bits32_t *) 0)
19176   return 0;
19177 if (sizeof (u_bits32_t))
19178   return 0;
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185   (eval $ac_compile) 2>&5
19186   ac_status=$?
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } &&
19189          { ac_try='test -s conftest.$ac_objext'
19190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191   (eval $ac_try) 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; }; then
19195   ac_cv_type_u_bits32_t=yes
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_cv_type_u_bits32_t=no
19201 fi
19202 rm -f conftest.$ac_objext conftest.$ac_ext
19203 fi
19204 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
19205 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
19206 if test $ac_cv_type_u_bits32_t = yes; then
19207   :
19208 else
19209
19210 cat >>confdefs.h <<_ACEOF
19211 #define u_bits32_t unsigned int
19212 _ACEOF
19213
19214 fi
19215
19216 fi
19217
19218
19219 if test "$ac_cv_sizeof_char_p" = 8; then
19220   echo "$as_me:$LINENO: checking for bits64_t" >&5
19221 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19222 if test "${ac_cv_type_bits64_t+set}" = set; then
19223   echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225   cat >conftest.$ac_ext <<_ACEOF
19226 #line $LINENO "configure"
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 $ac_includes_default
19233 int
19234 main ()
19235 {
19236 if ((bits64_t *) 0)
19237   return 0;
19238 if (sizeof (bits64_t))
19239   return 0;
19240   ;
19241   return 0;
19242 }
19243 _ACEOF
19244 rm -f conftest.$ac_objext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246   (eval $ac_compile) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -s conftest.$ac_objext'
19251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252   (eval $ac_try) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); }; }; then
19256   ac_cv_type_bits64_t=yes
19257 else
19258   echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261 ac_cv_type_bits64_t=no
19262 fi
19263 rm -f conftest.$ac_objext conftest.$ac_ext
19264 fi
19265 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19266 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19267 if test $ac_cv_type_bits64_t = yes; then
19268   :
19269 else
19270
19271 cat >>confdefs.h <<_ACEOF
19272 #define bits64_t char *
19273 _ACEOF
19274
19275 fi
19276
19277 elif test "$ac_cv_sizeof_double" = 8; then
19278   echo "$as_me:$LINENO: checking for bits64_t" >&5
19279 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19280 if test "${ac_cv_type_bits64_t+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   cat >conftest.$ac_ext <<_ACEOF
19284 #line $LINENO "configure"
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290 $ac_includes_default
19291 int
19292 main ()
19293 {
19294 if ((bits64_t *) 0)
19295   return 0;
19296 if (sizeof (bits64_t))
19297   return 0;
19298   ;
19299   return 0;
19300 }
19301 _ACEOF
19302 rm -f conftest.$ac_objext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19304   (eval $ac_compile) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } &&
19308          { ac_try='test -s conftest.$ac_objext'
19309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310   (eval $ac_try) 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); }; }; then
19314   ac_cv_type_bits64_t=yes
19315 else
19316   echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19318
19319 ac_cv_type_bits64_t=no
19320 fi
19321 rm -f conftest.$ac_objext conftest.$ac_ext
19322 fi
19323 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19324 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19325 if test $ac_cv_type_bits64_t = yes; then
19326   :
19327 else
19328
19329 cat >>confdefs.h <<_ACEOF
19330 #define bits64_t double
19331 _ACEOF
19332
19333 fi
19334
19335 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
19336   echo "$as_me:$LINENO: checking for bits64_t" >&5
19337 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19338 if test "${ac_cv_type_bits64_t+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   cat >conftest.$ac_ext <<_ACEOF
19342 #line $LINENO "configure"
19343 /* confdefs.h.  */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h.  */
19348 $ac_includes_default
19349 int
19350 main ()
19351 {
19352 if ((bits64_t *) 0)
19353   return 0;
19354 if (sizeof (bits64_t))
19355   return 0;
19356   ;
19357   return 0;
19358 }
19359 _ACEOF
19360 rm -f conftest.$ac_objext
19361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19362   (eval $ac_compile) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } &&
19366          { ac_try='test -s conftest.$ac_objext'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; }; then
19372   ac_cv_type_bits64_t=yes
19373 else
19374   echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 ac_cv_type_bits64_t=no
19378 fi
19379 rm -f conftest.$ac_objext conftest.$ac_ext
19380 fi
19381 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19382 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19383 if test $ac_cv_type_bits64_t = yes; then
19384   :
19385 else
19386
19387 cat >>confdefs.h <<_ACEOF
19388 #define bits64_t long long
19389 _ACEOF
19390
19391 fi
19392
19393 elif test "$ac_cv_sizeof_long" = 8; then
19394   echo "$as_me:$LINENO: checking for bits64_t" >&5
19395 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19396 if test "${ac_cv_type_bits64_t+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 $ac_includes_default
19407 int
19408 main ()
19409 {
19410 if ((bits64_t *) 0)
19411   return 0;
19412 if (sizeof (bits64_t))
19413   return 0;
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420   (eval $ac_compile) 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); } &&
19424          { ac_try='test -s conftest.$ac_objext'
19425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426   (eval $ac_try) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430   ac_cv_type_bits64_t=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435 ac_cv_type_bits64_t=no
19436 fi
19437 rm -f conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19440 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19441 if test $ac_cv_type_bits64_t = yes; then
19442   :
19443 else
19444
19445 cat >>confdefs.h <<_ACEOF
19446 #define bits64_t long
19447 _ACEOF
19448
19449 fi
19450
19451 else
19452   echo "$as_me:$LINENO: checking for bits64_t" >&5
19453 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
19454 if test "${ac_cv_type_bits64_t+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 #line $LINENO "configure"
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 if ((bits64_t *) 0)
19469   return 0;
19470 if (sizeof (bits64_t))
19471   return 0;
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478   (eval $ac_compile) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); } &&
19482          { ac_try='test -s conftest.$ac_objext'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; }; then
19488   ac_cv_type_bits64_t=yes
19489 else
19490   echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 ac_cv_type_bits64_t=no
19494 fi
19495 rm -f conftest.$ac_objext conftest.$ac_ext
19496 fi
19497 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
19498 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
19499 if test $ac_cv_type_bits64_t = yes; then
19500   :
19501 else
19502
19503 cat >>confdefs.h <<_ACEOF
19504 #define bits64_t double
19505 _ACEOF
19506
19507 fi
19508
19509 fi
19510
19511
19512
19513 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
19514   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19515 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19516 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19517   echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519   cat >conftest.$ac_ext <<_ACEOF
19520 #line $LINENO "configure"
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526 $ac_includes_default
19527 int
19528 main ()
19529 {
19530 if ((ptrdiff_t *) 0)
19531   return 0;
19532 if (sizeof (ptrdiff_t))
19533   return 0;
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540   (eval $ac_compile) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -s conftest.$ac_objext'
19545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546   (eval $ac_try) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; }; then
19550   ac_cv_type_ptrdiff_t=yes
19551 else
19552   echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555 ac_cv_type_ptrdiff_t=no
19556 fi
19557 rm -f conftest.$ac_objext conftest.$ac_ext
19558 fi
19559 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19560 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19561 if test $ac_cv_type_ptrdiff_t = yes; then
19562   :
19563 else
19564
19565 cat >>confdefs.h <<_ACEOF
19566 #define ptrdiff_t int
19567 _ACEOF
19568
19569 fi
19570
19571 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
19572   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19573 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19574 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19575   echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577   cat >conftest.$ac_ext <<_ACEOF
19578 #line $LINENO "configure"
19579 /* confdefs.h.  */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h.  */
19584 $ac_includes_default
19585 int
19586 main ()
19587 {
19588 if ((ptrdiff_t *) 0)
19589   return 0;
19590 if (sizeof (ptrdiff_t))
19591   return 0;
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598   (eval $ac_compile) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -s conftest.$ac_objext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_cv_type_ptrdiff_t=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_cv_type_ptrdiff_t=no
19614 fi
19615 rm -f conftest.$ac_objext conftest.$ac_ext
19616 fi
19617 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19618 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19619 if test $ac_cv_type_ptrdiff_t = yes; then
19620   :
19621 else
19622
19623 cat >>confdefs.h <<_ACEOF
19624 #define ptrdiff_t long
19625 _ACEOF
19626
19627 fi
19628
19629 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
19630   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19631 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19632 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19633   echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635   cat >conftest.$ac_ext <<_ACEOF
19636 #line $LINENO "configure"
19637 /* confdefs.h.  */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h.  */
19642 $ac_includes_default
19643 int
19644 main ()
19645 {
19646 if ((ptrdiff_t *) 0)
19647   return 0;
19648 if (sizeof (ptrdiff_t))
19649   return 0;
19650   ;
19651   return 0;
19652 }
19653 _ACEOF
19654 rm -f conftest.$ac_objext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656   (eval $ac_compile) 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } &&
19660          { ac_try='test -s conftest.$ac_objext'
19661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; }; then
19666   ac_cv_type_ptrdiff_t=yes
19667 else
19668   echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_cv_type_ptrdiff_t=no
19672 fi
19673 rm -f conftest.$ac_objext conftest.$ac_ext
19674 fi
19675 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19676 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19677 if test $ac_cv_type_ptrdiff_t = yes; then
19678   :
19679 else
19680
19681 cat >>confdefs.h <<_ACEOF
19682 #define ptrdiff_t long long
19683 _ACEOF
19684
19685 fi
19686
19687 else
19688   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
19689 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
19690 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
19691   echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693   cat >conftest.$ac_ext <<_ACEOF
19694 #line $LINENO "configure"
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700 $ac_includes_default
19701 int
19702 main ()
19703 {
19704 if ((ptrdiff_t *) 0)
19705   return 0;
19706 if (sizeof (ptrdiff_t))
19707   return 0;
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714   (eval $ac_compile) 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); } &&
19718          { ac_try='test -s conftest.$ac_objext'
19719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   ac_cv_type_ptrdiff_t=yes
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 ac_cv_type_ptrdiff_t=no
19730 fi
19731 rm -f conftest.$ac_objext conftest.$ac_ext
19732 fi
19733 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
19734 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
19735 if test $ac_cv_type_ptrdiff_t = yes; then
19736   :
19737 else
19738
19739 cat >>confdefs.h <<_ACEOF
19740 #define ptrdiff_t int
19741 _ACEOF
19742
19743 fi
19744
19745 fi
19746
19747
19748 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19749 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19750 if test "${ac_cv_header_stat_broken+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   cat >conftest.$ac_ext <<_ACEOF
19754 #line $LINENO "configure"
19755 /* confdefs.h.  */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h.  */
19760 #include <sys/types.h>
19761 #include <sys/stat.h>
19762
19763 #if defined(S_ISBLK) && defined(S_IFDIR)
19764 # if S_ISBLK (S_IFDIR)
19765 You lose.
19766 # endif
19767 #endif
19768
19769 #if defined(S_ISBLK) && defined(S_IFCHR)
19770 # if S_ISBLK (S_IFCHR)
19771 You lose.
19772 # endif
19773 #endif
19774
19775 #if defined(S_ISLNK) && defined(S_IFREG)
19776 # if S_ISLNK (S_IFREG)
19777 You lose.
19778 # endif
19779 #endif
19780
19781 #if defined(S_ISSOCK) && defined(S_IFREG)
19782 # if S_ISSOCK (S_IFREG)
19783 You lose.
19784 # endif
19785 #endif
19786
19787 _ACEOF
19788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19789   $EGREP "You lose" >/dev/null 2>&1; then
19790   ac_cv_header_stat_broken=yes
19791 else
19792   ac_cv_header_stat_broken=no
19793 fi
19794 rm -f conftest*
19795
19796 fi
19797 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19798 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19799 if test $ac_cv_header_stat_broken = yes; then
19800
19801 cat >>confdefs.h <<\_ACEOF
19802 #define STAT_MACROS_BROKEN 1
19803 _ACEOF
19804
19805 fi
19806
19807
19808 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
19809 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
19810 if test "${ac_cv_sys_interpreter+set}" = set; then
19811   echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813   echo '#! /bin/cat
19814 exit 69
19815 ' >conftest
19816 chmod u+x conftest
19817 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
19818 if test $? -ne 69; then
19819    ac_cv_sys_interpreter=yes
19820 else
19821    ac_cv_sys_interpreter=no
19822 fi
19823 rm -f conftest
19824 fi
19825 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
19826 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
19827 interpval=$ac_cv_sys_interpreter
19828
19829 if test $ac_cv_sys_interpreter = yes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_HASH_BANG_EXEC 1
19832 _ACEOF
19833
19834 fi
19835
19836 if test "$ac_cv_func_lstat" = "no"; then
19837 echo "$as_me:$LINENO: checking for lstat" >&5
19838 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
19839 if test "${bash_cv_func_lstat+set}" = set; then
19840   echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842   cat >conftest.$ac_ext <<_ACEOF
19843 #line $LINENO "configure"
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849
19850 #include <sys/types.h>
19851 #include <sys/stat.h>
19852
19853 int
19854 main ()
19855 {
19856  lstat(".",(struct stat *)0);
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19863   (eval $ac_link) 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } &&
19867          { ac_try='test -s conftest$ac_exeext'
19868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869   (eval $ac_try) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; }; then
19873   bash_cv_func_lstat=yes
19874 else
19875   echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 bash_cv_func_lstat=no
19879 fi
19880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19881 fi
19882 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
19883 echo "${ECHO_T}$bash_cv_func_lstat" >&6
19884 if test $bash_cv_func_lstat = yes; then
19885   cat >>confdefs.h <<\_ACEOF
19886 #define HAVE_LSTAT 1
19887 _ACEOF
19888
19889 fi
19890
19891 fi
19892
19893
19894 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
19895 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
19896 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   if test "$cross_compiling" = yes; then
19900   { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
19901 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
19902     bash_cv_func_ctype_nonascii=no
19903
19904 else
19905   cat >conftest.$ac_ext <<_ACEOF
19906 #line $LINENO "configure"
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912
19913 #ifdef HAVE_LOCALE_H
19914 #include <locale.h>
19915 #endif
19916 #include <stdio.h>
19917 #include <ctype.h>
19918
19919 main(c, v)
19920 int     c;
19921 char    *v[];
19922 {
19923         char    *deflocale;
19924         unsigned char x;
19925         int     r1, r2;
19926
19927 #ifdef HAVE_SETLOCALE
19928         /* We take a shot here.  If that locale is not known, try the
19929            system default.  We try this one because '\342' (226) is
19930            known to be a printable character in that locale. */
19931         deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
19932         if (deflocale == 0)
19933                 deflocale = setlocale(LC_ALL, "");
19934 #endif
19935
19936         x = '\342';
19937         r1 = isprint(x);
19938         x -= 128;
19939         r2 = isprint(x);
19940         exit (r1 == 0 || r2 == 0);
19941 }
19942
19943 _ACEOF
19944 rm -f conftest$ac_exeext
19945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19946   (eval $ac_link) 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951   (eval $ac_try) 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; }; then
19955   bash_cv_func_ctype_nonascii=yes
19956 else
19957   echo "$as_me: program exited with status $ac_status" >&5
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 ( exit $ac_status )
19962 bash_cv_func_ctype_nonascii=no
19963 fi
19964 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19965 fi
19966 fi
19967
19968 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
19969 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
19970 if test $bash_cv_func_ctype_nonascii = yes; then
19971 cat >>confdefs.h <<\_ACEOF
19972 #define CTYPE_NON_ASCII 1
19973 _ACEOF
19974
19975 fi
19976
19977 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
19978 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
19979 if test "${bash_cv_dup2_broken+set}" = set; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   if test "$cross_compiling" = yes; then
19983   { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
19984 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
19985      bash_cv_dup2_broken=no
19986 else
19987   cat >conftest.$ac_ext <<_ACEOF
19988 #line $LINENO "configure"
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994
19995 #include <sys/types.h>
19996 #include <fcntl.h>
19997 main()
19998 {
19999   int fd1, fd2, fl;
20000   fd1 = open("/dev/null", 2);
20001   if (fcntl(fd1, 2, 1) < 0)
20002     exit(1);
20003   fd2 = dup2(fd1, 1);
20004   if (fd2 < 0)
20005     exit(2);
20006   fl = fcntl(fd2, 1, 0);
20007   /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
20008   exit(fl != 1);
20009 }
20010
20011 _ACEOF
20012 rm -f conftest$ac_exeext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20014   (eval $ac_link) 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019   (eval $ac_try) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; }; then
20023   bash_cv_dup2_broken=yes
20024 else
20025   echo "$as_me: program exited with status $ac_status" >&5
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 ( exit $ac_status )
20030 bash_cv_dup2_broken=no
20031 fi
20032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20033 fi
20034
20035 fi
20036
20037 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
20038 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
20039 if test $bash_cv_dup2_broken = yes; then
20040 cat >>confdefs.h <<\_ACEOF
20041 #define DUP2_BROKEN 1
20042 _ACEOF
20043
20044 fi
20045
20046
20047 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
20048 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
20049 if test "${bash_cv_pgrp_pipe+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   if test "$cross_compiling" = yes; then
20053   { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
20054 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
20055     bash_cv_pgrp_pipe=no
20056 else
20057   cat >conftest.$ac_ext <<_ACEOF
20058 #line $LINENO "configure"
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064
20065 #ifdef HAVE_UNISTD_H
20066 #  include <unistd.h>
20067 #endif
20068 main()
20069 {
20070 # ifdef GETPGRP_VOID
20071 #  define getpgID()     getpgrp()
20072 # else
20073 #  define getpgID()     getpgrp(0)
20074 #  define setpgid(x,y)  setpgrp(x,y)
20075 # endif
20076         int pid1, pid2, fds[2];
20077         int status;
20078         char ok;
20079
20080         switch (pid1 = fork()) {
20081           case -1:
20082             exit(1);
20083           case 0:
20084             setpgid(0, getpid());
20085             exit(0);
20086         }
20087         setpgid(pid1, pid1);
20088
20089         sleep(2);       /* let first child die */
20090
20091         if (pipe(fds) < 0)
20092           exit(2);
20093
20094         switch (pid2 = fork()) {
20095           case -1:
20096             exit(3);
20097           case 0:
20098             setpgid(0, pid1);
20099             ok = getpgID() == pid1;
20100             write(fds[1], &ok, 1);
20101             exit(0);
20102         }
20103         setpgid(pid2, pid1);
20104
20105         close(fds[1]);
20106         if (read(fds[0], &ok, 1) != 1)
20107           exit(4);
20108         wait(&status);
20109         wait(&status);
20110         exit(ok ? 0 : 5);
20111 }
20112
20113 _ACEOF
20114 rm -f conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   bash_cv_pgrp_pipe=no
20126 else
20127   echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 ( exit $ac_status )
20132 bash_cv_pgrp_pipe=yes
20133 fi
20134 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20135 fi
20136
20137 fi
20138
20139 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
20140 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
20141 if test $bash_cv_pgrp_pipe = yes; then
20142 cat >>confdefs.h <<\_ACEOF
20143 #define PGRP_PIPE 1
20144 _ACEOF
20145
20146 fi
20147
20148
20149 echo "$as_me:$LINENO: checking for type of signal functions" >&5
20150 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
20151 if test "${bash_cv_signal_vintage+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154
20155   cat >conftest.$ac_ext <<_ACEOF
20156 #line $LINENO "configure"
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162 #include <signal.h>
20163 int
20164 main ()
20165 {
20166
20167     sigset_t ss;
20168     struct sigaction sa;
20169     sigemptyset(&ss); sigsuspend(&ss);
20170     sigaction(SIGINT, &sa, (struct sigaction *) 0);
20171     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
20172
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20179   (eval $ac_link) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); } &&
20183          { ac_try='test -s conftest$ac_exeext'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; }; then
20189   bash_cv_signal_vintage=posix
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194
20195     cat >conftest.$ac_ext <<_ACEOF
20196 #line $LINENO "configure"
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 #include <signal.h>
20203 int
20204 main ()
20205 {
20206
20207         int mask = sigmask(SIGINT);
20208         sigsetmask(mask); sigblock(mask); sigpause(mask);
20209
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20216   (eval $ac_link) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); } &&
20220          { ac_try='test -s conftest$ac_exeext'
20221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222   (eval $ac_try) 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   bash_cv_signal_vintage=4.2bsd
20227 else
20228   echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231
20232       cat >conftest.$ac_ext <<_ACEOF
20233 #line $LINENO "configure"
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239
20240         #include <signal.h>
20241         RETSIGTYPE foo() { }
20242 int
20243 main ()
20244 {
20245
20246                 int mask = sigmask(SIGINT);
20247                 sigset(SIGINT, foo); sigrelse(SIGINT);
20248                 sighold(SIGINT); sigpause(SIGINT);
20249
20250   ;
20251   return 0;
20252 }
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20256   (eval $ac_link) 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } &&
20260          { ac_try='test -s conftest$ac_exeext'
20261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262   (eval $ac_try) 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); }; }; then
20266   bash_cv_signal_vintage=svr3
20267 else
20268   echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271 bash_cv_signal_vintage=v7
20272
20273 fi
20274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20275
20276 fi
20277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20278
20279 fi
20280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20281
20282 fi
20283
20284 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
20285 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
20286 if test "$bash_cv_signal_vintage" = posix; then
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_POSIX_SIGNALS 1
20289 _ACEOF
20290
20291 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_BSD_SIGNALS 1
20294 _ACEOF
20295
20296 elif test "$bash_cv_signal_vintage" = svr3; then
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE_USG_SIGHOLD 1
20299 _ACEOF
20300
20301 fi
20302
20303
20304 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
20305 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
20306 if test "${bash_cv_sys_errlist+set}" = set; then
20307   echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309   cat >conftest.$ac_ext <<_ACEOF
20310 #line $LINENO "configure"
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 #include <errno.h>
20317 int
20318 main ()
20319 {
20320 extern char *sys_errlist[];
20321  extern int sys_nerr;
20322  char *msg = sys_errlist[sys_nerr - 1];
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329   (eval $ac_link) 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -s conftest$ac_exeext'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; }; then
20339   bash_cv_sys_errlist=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 bash_cv_sys_errlist=no
20345 fi
20346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20347 fi
20348 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
20349 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
20350 if test $bash_cv_sys_errlist = yes; then
20351 cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_SYS_ERRLIST 1
20353 _ACEOF
20354
20355 fi
20356
20357
20358 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
20359 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
20360 if test "${bash_cv_sys_siglist+set}" = set; then
20361   echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363   if test "$cross_compiling" = yes; then
20364   { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
20365 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
20366          bash_cv_sys_siglist=no
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 #line $LINENO "configure"
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375
20376 #include <sys/types.h>
20377 #include <signal.h>
20378 #ifdef HAVE_UNISTD_H
20379 #include <unistd.h>
20380 #endif
20381 #ifndef SYS_SIGLIST_DECLARED
20382 extern char *sys_siglist[];
20383 #endif
20384 main()
20385 {
20386 char *msg = sys_siglist[2];
20387 exit(msg == 0);
20388 }
20389 _ACEOF
20390 rm -f conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392   (eval $ac_link) 2>&5
20393   ac_status=$?
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397   (eval $ac_try) 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); }; }; then
20401   bash_cv_sys_siglist=yes
20402 else
20403   echo "$as_me: program exited with status $ac_status" >&5
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20406
20407 ( exit $ac_status )
20408 bash_cv_sys_siglist=no
20409 fi
20410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20411 fi
20412 fi
20413
20414 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
20415 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
20416 if test $bash_cv_sys_siglist = yes; then
20417 cat >>confdefs.h <<\_ACEOF
20418 #define HAVE_SYS_SIGLIST 1
20419 _ACEOF
20420
20421 fi
20422
20423 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
20424 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
20425 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
20426   echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428   cat >conftest.$ac_ext <<_ACEOF
20429 #line $LINENO "configure"
20430 /* confdefs.h.  */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h.  */
20435
20436 #include <sys/types.h>
20437 #include <signal.h>
20438 #ifdef HAVE_UNISTD_H
20439 #include <unistd.h>
20440 #endif
20441 int
20442 main ()
20443 {
20444  char *msg = _sys_siglist[2];
20445   ;
20446   return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451   (eval $ac_compile) 2>&5
20452   ac_status=$?
20453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454   (exit $ac_status); } &&
20455          { ac_try='test -s conftest.$ac_objext'
20456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457   (eval $ac_try) 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   bash_cv_decl_under_sys_siglist=yes
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 bash_cv_decl_under_sys_siglist=no
20467 fi
20468 rm -f conftest.$ac_objext conftest.$ac_ext
20469 fi
20470 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
20471 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
20472 if test $bash_cv_decl_under_sys_siglist = yes; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define UNDER_SYS_SIGLIST_DECLARED 1
20475 _ACEOF
20476
20477 fi
20478
20479
20480 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
20481 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
20482 if test "${bash_cv_under_sys_siglist+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   if test "$cross_compiling" = yes; then
20486   { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
20487 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
20488          bash_cv_under_sys_siglist=no
20489 else
20490   cat >conftest.$ac_ext <<_ACEOF
20491 #line $LINENO "configure"
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497
20498 #include <sys/types.h>
20499 #include <signal.h>
20500 #ifdef HAVE_UNISTD_H
20501 #include <unistd.h>
20502 #endif
20503 #ifndef UNDER_SYS_SIGLIST_DECLARED
20504 extern char *_sys_siglist[];
20505 #endif
20506 main()
20507 {
20508 char *msg = (char *)_sys_siglist[2];
20509 exit(msg == 0);
20510 }
20511 _ACEOF
20512 rm -f conftest$ac_exeext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514   (eval $ac_link) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   bash_cv_under_sys_siglist=yes
20524 else
20525   echo "$as_me: program exited with status $ac_status" >&5
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 ( exit $ac_status )
20530 bash_cv_under_sys_siglist=no
20531 fi
20532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20533 fi
20534 fi
20535
20536 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
20537 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
20538 if test $bash_cv_under_sys_siglist = yes; then
20539 cat >>confdefs.h <<\_ACEOF
20540 #define HAVE_UNDER_SYS_SIGLIST 1
20541 _ACEOF
20542
20543 fi
20544
20545
20546 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
20547 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
20548 if test "${bash_cv_void_sighandler+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551   cat >conftest.$ac_ext <<_ACEOF
20552 #line $LINENO "configure"
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 #include <sys/types.h>
20559 #include <signal.h>
20560 #ifdef signal
20561 #undef signal
20562 #endif
20563 #ifdef __cplusplus
20564 extern "C"
20565 #endif
20566 void (*signal ()) ();
20567 int
20568 main ()
20569 {
20570 int i;
20571   ;
20572   return 0;
20573 }
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577   (eval $ac_compile) 2>&5
20578   ac_status=$?
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } &&
20581          { ac_try='test -s conftest.$ac_objext'
20582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583   (eval $ac_try) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; }; then
20587   bash_cv_void_sighandler=yes
20588 else
20589   echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592 bash_cv_void_sighandler=no
20593 fi
20594 rm -f conftest.$ac_objext conftest.$ac_ext
20595 fi
20596 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
20597 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
20598 if test $bash_cv_void_sighandler = yes; then
20599 cat >>confdefs.h <<\_ACEOF
20600 #define VOID_SIGHANDLER 1
20601 _ACEOF
20602
20603 fi
20604
20605
20606
20607 echo "$as_me:$LINENO: checking for clock_t" >&5
20608 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
20609 if test "${bash_cv_type_clock_t+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612   cat >conftest.$ac_ext <<_ACEOF
20613 #line $LINENO "configure"
20614 /* confdefs.h.  */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h.  */
20619 #include <sys/types.h>
20620 #if STDC_HEADERS
20621 #include <stdlib.h>
20622 #include <stddef.h>
20623 #endif
20624 #if HAVE_INTTYPES_H
20625 #include <inttypes.h>
20626 #endif
20627 #include <sys/times.h>
20628
20629 _ACEOF
20630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20631   $EGREP "clock_t" >/dev/null 2>&1; then
20632   bash_cv_type_clock_t=yes
20633 else
20634   bash_cv_type_clock_t=no
20635 fi
20636 rm -f conftest*
20637
20638 fi
20639
20640 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
20641 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
20642
20643 if test $bash_cv_type_clock_t = no; then
20644   cat >>confdefs.h <<_ACEOF
20645 #define clock_t long
20646 _ACEOF
20647
20648 fi
20649
20650
20651
20652 echo "$as_me:$LINENO: checking for sigset_t" >&5
20653 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
20654 if test "${bash_cv_type_sigset_t+set}" = set; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657   cat >conftest.$ac_ext <<_ACEOF
20658 #line $LINENO "configure"
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664 #include <sys/types.h>
20665 #if STDC_HEADERS
20666 #include <stdlib.h>
20667 #include <stddef.h>
20668 #endif
20669 #if HAVE_INTTYPES_H
20670 #include <inttypes.h>
20671 #endif
20672 #include <signal.h>
20673
20674 _ACEOF
20675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20676   $EGREP "sigset_t" >/dev/null 2>&1; then
20677   bash_cv_type_sigset_t=yes
20678 else
20679   bash_cv_type_sigset_t=no
20680 fi
20681 rm -f conftest*
20682
20683 fi
20684
20685 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
20686 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
20687
20688 if test $bash_cv_type_sigset_t = no; then
20689   cat >>confdefs.h <<_ACEOF
20690 #define sigset_t int
20691 _ACEOF
20692
20693 fi
20694
20695
20696
20697 echo "$as_me:$LINENO: checking for quad_t" >&5
20698 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
20699 if test "${bash_cv_type_quad_t+set}" = set; then
20700   echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702   cat >conftest.$ac_ext <<_ACEOF
20703 #line $LINENO "configure"
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 #include <sys/types.h>
20710 #if STDC_HEADERS
20711 #include <stdlib.h>
20712 #include <stddef.h>
20713 #endif
20714 #if HAVE_INTTYPES_H
20715 #include <inttypes.h>
20716 #endif
20717
20718
20719 _ACEOF
20720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20721   $EGREP "quad_t" >/dev/null 2>&1; then
20722   bash_cv_type_quad_t=yes
20723 else
20724   bash_cv_type_quad_t=no
20725 fi
20726 rm -f conftest*
20727
20728 fi
20729
20730 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
20731 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
20732 if test $bash_cv_type_quad_t = yes; then
20733         cat >>confdefs.h <<\_ACEOF
20734 #define HAVE_QUAD_T 1
20735 _ACEOF
20736
20737         fi
20738 if test $bash_cv_type_quad_t = no; then
20739   cat >>confdefs.h <<_ACEOF
20740 #define quad_t long
20741 _ACEOF
20742
20743 fi
20744
20745
20746
20747 echo "$as_me:$LINENO: checking for intmax_t" >&5
20748 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20749 if test "${bash_cv_type_intmax_t+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752   cat >conftest.$ac_ext <<_ACEOF
20753 #line $LINENO "configure"
20754 /* confdefs.h.  */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h.  */
20759 #include <sys/types.h>
20760 #if STDC_HEADERS
20761 #include <stdlib.h>
20762 #include <stddef.h>
20763 #endif
20764 #if HAVE_INTTYPES_H
20765 #include <inttypes.h>
20766 #endif
20767
20768
20769 _ACEOF
20770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20771   $EGREP "intmax_t" >/dev/null 2>&1; then
20772   bash_cv_type_intmax_t=yes
20773 else
20774   bash_cv_type_intmax_t=no
20775 fi
20776 rm -f conftest*
20777
20778 fi
20779
20780 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
20781 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
20782
20783 if test $bash_cv_type_intmax_t = no; then
20784   cat >>confdefs.h <<_ACEOF
20785 #define intmax_t $bash_cv_type_long_long
20786 _ACEOF
20787
20788 fi
20789
20790
20791
20792 echo "$as_me:$LINENO: checking for uintmax_t" >&5
20793 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
20794 if test "${bash_cv_type_uintmax_t+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797   cat >conftest.$ac_ext <<_ACEOF
20798 #line $LINENO "configure"
20799 /* confdefs.h.  */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h.  */
20804 #include <sys/types.h>
20805 #if STDC_HEADERS
20806 #include <stdlib.h>
20807 #include <stddef.h>
20808 #endif
20809 #if HAVE_INTTYPES_H
20810 #include <inttypes.h>
20811 #endif
20812
20813
20814 _ACEOF
20815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20816   $EGREP "uintmax_t" >/dev/null 2>&1; then
20817   bash_cv_type_uintmax_t=yes
20818 else
20819   bash_cv_type_uintmax_t=no
20820 fi
20821 rm -f conftest*
20822
20823 fi
20824
20825 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
20826 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
20827
20828 if test $bash_cv_type_uintmax_t = no; then
20829   cat >>confdefs.h <<_ACEOF
20830 #define uintmax_t $bash_cv_type_unsigned_long_long
20831 _ACEOF
20832
20833 fi
20834
20835 if test "$ac_cv_header_sys_socket_h" = "yes"; then
20836
20837
20838 echo "$as_me:$LINENO: checking for socklen_t" >&5
20839 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20840 if test "${bash_cv_type_socklen_t+set}" = set; then
20841   echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843   cat >conftest.$ac_ext <<_ACEOF
20844 #line $LINENO "configure"
20845 /* confdefs.h.  */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h.  */
20850 #include <sys/types.h>
20851 #if STDC_HEADERS
20852 #include <stdlib.h>
20853 #include <stddef.h>
20854 #endif
20855 #if HAVE_INTTYPES_H
20856 #include <inttypes.h>
20857 #endif
20858 #include <sys/socket.h>
20859
20860 _ACEOF
20861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20862   $EGREP "socklen_t" >/dev/null 2>&1; then
20863   bash_cv_type_socklen_t=yes
20864 else
20865   bash_cv_type_socklen_t=no
20866 fi
20867 rm -f conftest*
20868
20869 fi
20870
20871 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
20872 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
20873 if test $bash_cv_type_socklen_t = yes; then
20874         cat >>confdefs.h <<\_ACEOF
20875 #define HAVE_SOCKLEN_T 1
20876 _ACEOF
20877
20878         fi
20879 if test $bash_cv_type_socklen_t = no; then
20880   cat >>confdefs.h <<_ACEOF
20881 #define socklen_t int
20882 _ACEOF
20883
20884 fi
20885
20886 fi
20887 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
20888 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
20889 if test "${bash_cv_type_rlimit+set}" = set; then
20890   echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892   cat >conftest.$ac_ext <<_ACEOF
20893 #line $LINENO "configure"
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 #include <sys/types.h>
20900 #include <sys/resource.h>
20901 int
20902 main ()
20903 {
20904 rlim_t xxx;
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911   (eval $ac_compile) 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -s conftest.$ac_objext'
20916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917   (eval $ac_try) 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); }; }; then
20921   bash_cv_type_rlimit=rlim_t
20922 else
20923   echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20925
20926
20927 if test "$cross_compiling" = yes; then
20928   { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
20929 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
20930          bash_cv_type_rlimit=long
20931 else
20932   cat >conftest.$ac_ext <<_ACEOF
20933 #line $LINENO "configure"
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939
20940 #include <sys/types.h>
20941 #include <sys/time.h>
20942 #include <sys/resource.h>
20943 main()
20944 {
20945 #ifdef HAVE_QUAD_T
20946   struct rlimit rl;
20947   if (sizeof(rl.rlim_cur) == sizeof(quad_t))
20948     exit(0);
20949 #endif
20950   exit(1);
20951 }
20952 _ACEOF
20953 rm -f conftest$ac_exeext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955   (eval $ac_link) 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; }; then
20964   bash_cv_type_rlimit=quad_t
20965 else
20966   echo "$as_me: program exited with status $ac_status" >&5
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970 ( exit $ac_status )
20971 bash_cv_type_rlimit=long
20972 fi
20973 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20974 fi
20975 fi
20976 rm -f conftest.$ac_objext conftest.$ac_ext
20977
20978 fi
20979
20980 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
20981 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
20982 if test $bash_cv_type_rlimit = quad_t; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define RLIMTYPE quad_t
20985 _ACEOF
20986
20987 elif test $bash_cv_type_rlimit = rlim_t; then
20988 cat >>confdefs.h <<\_ACEOF
20989 #define RLIMTYPE rlim_t
20990 _ACEOF
20991
20992 fi
20993
20994
20995
20996 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
20997 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
20998 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
20999   echo $ECHO_N "(cached) $ECHO_C" >&6
21000 else
21001   cat >conftest.$ac_ext <<_ACEOF
21002 #line $LINENO "configure"
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008
21009 #include <sys/types.h>
21010 #include <termios.h>
21011
21012
21013 int
21014 main ()
21015 {
21016 static struct termios ac_aggr;
21017 if (ac_aggr.c_line)
21018 return 0;
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025   (eval $ac_compile) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_member_struct_termios_c_line=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 cat >conftest.$ac_ext <<_ACEOF
21041 #line $LINENO "configure"
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047
21048 #include <sys/types.h>
21049 #include <termios.h>
21050
21051
21052 int
21053 main ()
21054 {
21055 static struct termios ac_aggr;
21056 if (sizeof ac_aggr.c_line)
21057 return 0;
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21064   (eval $ac_compile) 2>&5
21065   ac_status=$?
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } &&
21068          { ac_try='test -s conftest.$ac_objext'
21069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070   (eval $ac_try) 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; }; then
21074   ac_cv_member_struct_termios_c_line=yes
21075 else
21076   echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 ac_cv_member_struct_termios_c_line=no
21080 fi
21081 rm -f conftest.$ac_objext conftest.$ac_ext
21082 fi
21083 rm -f conftest.$ac_objext conftest.$ac_ext
21084 fi
21085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
21086 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
21087 if test $ac_cv_member_struct_termios_c_line = yes; then
21088   cat >>confdefs.h <<\_ACEOF
21089 #define TERMIOS_LDISC 1
21090 _ACEOF
21091
21092 fi
21093
21094
21095
21096 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
21097 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
21098 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
21099   echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101   cat >conftest.$ac_ext <<_ACEOF
21102 #line $LINENO "configure"
21103 /* confdefs.h.  */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h.  */
21108
21109 #include <sys/types.h>
21110 #include <termio.h>
21111
21112
21113 int
21114 main ()
21115 {
21116 static struct termio ac_aggr;
21117 if (ac_aggr.c_line)
21118 return 0;
21119   ;
21120   return 0;
21121 }
21122 _ACEOF
21123 rm -f conftest.$ac_objext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21125   (eval $ac_compile) 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } &&
21129          { ac_try='test -s conftest.$ac_objext'
21130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131   (eval $ac_try) 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135   ac_cv_member_struct_termio_c_line=yes
21136 else
21137   echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 cat >conftest.$ac_ext <<_ACEOF
21141 #line $LINENO "configure"
21142 /* confdefs.h.  */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h.  */
21147
21148 #include <sys/types.h>
21149 #include <termio.h>
21150
21151
21152 int
21153 main ()
21154 {
21155 static struct termio ac_aggr;
21156 if (sizeof ac_aggr.c_line)
21157 return 0;
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164   (eval $ac_compile) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } &&
21168          { ac_try='test -s conftest.$ac_objext'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   ac_cv_member_struct_termio_c_line=yes
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179 ac_cv_member_struct_termio_c_line=no
21180 fi
21181 rm -f conftest.$ac_objext conftest.$ac_ext
21182 fi
21183 rm -f conftest.$ac_objext conftest.$ac_ext
21184 fi
21185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
21186 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
21187 if test $ac_cv_member_struct_termio_c_line = yes; then
21188   cat >>confdefs.h <<\_ACEOF
21189 #define TERMIO_LDISC 1
21190 _ACEOF
21191
21192 fi
21193
21194
21195
21196 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
21197 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
21198 if test "${bash_cv_dirent_has_dino+set}" = set; then
21199   echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201   cat >conftest.$ac_ext <<_ACEOF
21202 #line $LINENO "configure"
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208
21209 #include <stdio.h>
21210 #include <sys/types.h>
21211 #ifdef HAVE_UNISTD_H
21212 # include <unistd.h>
21213 #endif /* HAVE_UNISTD_H */
21214 #if defined(HAVE_DIRENT_H)
21215 # include <dirent.h>
21216 #else
21217 # define dirent direct
21218 # ifdef HAVE_SYS_NDIR_H
21219 #  include <sys/ndir.h>
21220 # endif /* SYSNDIR */
21221 # ifdef HAVE_SYS_DIR_H
21222 #  include <sys/dir.h>
21223 # endif /* SYSDIR */
21224 # ifdef HAVE_NDIR_H
21225 #  include <ndir.h>
21226 # endif
21227 #endif /* HAVE_DIRENT_H */
21228
21229 int
21230 main ()
21231 {
21232
21233 struct dirent d; int z; z = d.d_ino;
21234
21235   ;
21236   return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241   (eval $ac_compile) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -s conftest.$ac_objext'
21246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247   (eval $ac_try) 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; }; then
21251   bash_cv_dirent_has_dino=yes
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 bash_cv_dirent_has_dino=no
21257 fi
21258 rm -f conftest.$ac_objext conftest.$ac_ext
21259 fi
21260
21261 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
21262 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
21263 if test $bash_cv_dirent_has_dino = yes; then
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_STRUCT_DIRENT_D_INO 1
21266 _ACEOF
21267
21268 fi
21269
21270
21271 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
21272 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
21273 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276   cat >conftest.$ac_ext <<_ACEOF
21277 #line $LINENO "configure"
21278 /* confdefs.h.  */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h.  */
21283
21284 #include <stdio.h>
21285 #include <sys/types.h>
21286 #ifdef HAVE_UNISTD_H
21287 # include <unistd.h>
21288 #endif /* HAVE_UNISTD_H */
21289 #if defined(HAVE_DIRENT_H)
21290 # include <dirent.h>
21291 #else
21292 # define dirent direct
21293 # ifdef HAVE_SYS_NDIR_H
21294 #  include <sys/ndir.h>
21295 # endif /* SYSNDIR */
21296 # ifdef HAVE_SYS_DIR_H
21297 #  include <sys/dir.h>
21298 # endif /* SYSDIR */
21299 # ifdef HAVE_NDIR_H
21300 #  include <ndir.h>
21301 # endif
21302 #endif /* HAVE_DIRENT_H */
21303
21304 int
21305 main ()
21306 {
21307
21308 struct dirent d; int z; z = d.d_fileno;
21309
21310   ;
21311   return 0;
21312 }
21313 _ACEOF
21314 rm -f conftest.$ac_objext
21315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21316   (eval $ac_compile) 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } &&
21320          { ac_try='test -s conftest.$ac_objext'
21321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322   (eval $ac_try) 2>&5
21323   ac_status=$?
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); }; }; then
21326   bash_cv_dirent_has_d_fileno=yes
21327 else
21328   echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331 bash_cv_dirent_has_d_fileno=no
21332 fi
21333 rm -f conftest.$ac_objext conftest.$ac_ext
21334 fi
21335
21336 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
21337 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
21338 if test $bash_cv_dirent_has_d_fileno = yes; then
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_STRUCT_DIRENT_D_FILENO 1
21341 _ACEOF
21342
21343 fi
21344
21345
21346 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
21347 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
21348 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351   cat >conftest.$ac_ext <<_ACEOF
21352 #line $LINENO "configure"
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358
21359 #include <stdio.h>
21360 #include <sys/types.h>
21361 #ifdef HAVE_UNISTD_H
21362 # include <unistd.h>
21363 #endif /* HAVE_UNISTD_H */
21364 #if defined(HAVE_DIRENT_H)
21365 # include <dirent.h>
21366 #else
21367 # define dirent direct
21368 # ifdef HAVE_SYS_NDIR_H
21369 #  include <sys/ndir.h>
21370 # endif /* SYSNDIR */
21371 # ifdef HAVE_SYS_DIR_H
21372 #  include <sys/dir.h>
21373 # endif /* SYSDIR */
21374 # ifdef HAVE_NDIR_H
21375 #  include <ndir.h>
21376 # endif
21377 #endif /* HAVE_DIRENT_H */
21378
21379 int
21380 main ()
21381 {
21382
21383 struct dirent d; int z; z = d.d_namlen;
21384
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21391   (eval $ac_compile) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } &&
21395          { ac_try='test -s conftest.$ac_objext'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; }; then
21401   bash_cv_dirent_has_d_namlen=yes
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 bash_cv_dirent_has_d_namlen=no
21407 fi
21408 rm -f conftest.$ac_objext conftest.$ac_ext
21409 fi
21410
21411 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
21412 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
21413 if test $bash_cv_dirent_has_d_namlen = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
21416 _ACEOF
21417
21418 fi
21419
21420 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
21421 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
21422 if test "${bash_cv_struct_winsize_header+set}" = set; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425   cat >conftest.$ac_ext <<_ACEOF
21426 #line $LINENO "configure"
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 #include <sys/types.h>
21433 #include <sys/ioctl.h>
21434 int
21435 main ()
21436 {
21437 struct winsize x;
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21444   (eval $ac_compile) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } &&
21448          { ac_try='test -s conftest.$ac_objext'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   bash_cv_struct_winsize_header=ioctl_h
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 cat >conftest.$ac_ext <<_ACEOF
21460 #line $LINENO "configure"
21461 /* confdefs.h.  */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h.  */
21466 #include <sys/types.h>
21467 #include <termios.h>
21468 int
21469 main ()
21470 {
21471 struct winsize x;
21472   ;
21473   return 0;
21474 }
21475 _ACEOF
21476 rm -f conftest.$ac_objext
21477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21478   (eval $ac_compile) 2>&5
21479   ac_status=$?
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } &&
21482          { ac_try='test -s conftest.$ac_objext'
21483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484   (eval $ac_try) 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; }; then
21488   bash_cv_struct_winsize_header=termios_h
21489 else
21490   echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 bash_cv_struct_winsize_header=other
21494 fi
21495 rm -f conftest.$ac_objext conftest.$ac_ext
21496
21497 fi
21498 rm -f conftest.$ac_objext conftest.$ac_ext
21499 fi
21500
21501 if test $bash_cv_struct_winsize_header = ioctl_h; then
21502   echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
21503 echo "${ECHO_T}sys/ioctl.h" >&6
21504   cat >>confdefs.h <<\_ACEOF
21505 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
21506 _ACEOF
21507
21508 elif test $bash_cv_struct_winsize_header = termios_h; then
21509   echo "$as_me:$LINENO: result: termios.h" >&5
21510 echo "${ECHO_T}termios.h" >&6
21511   cat >>confdefs.h <<\_ACEOF
21512 #define STRUCT_WINSIZE_IN_TERMIOS 1
21513 _ACEOF
21514
21515 else
21516   echo "$as_me:$LINENO: result: not found" >&5
21517 echo "${ECHO_T}not found" >&6
21518 fi
21519
21520 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
21521 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
21522 if test "${bash_cv_struct_timeval+set}" = set; then
21523   echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525
21526 cat >conftest.$ac_ext <<_ACEOF
21527 #line $LINENO "configure"
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533 #include <sys/time.h>
21534
21535 _ACEOF
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537   $EGREP "struct timeval" >/dev/null 2>&1; then
21538   bash_cv_struct_timeval=yes
21539 else
21540   cat >conftest.$ac_ext <<_ACEOF
21541 #line $LINENO "configure"
21542 /* confdefs.h.  */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h.  */
21547 #include <time.h>
21548
21549 _ACEOF
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551   $EGREP "struct timeval" >/dev/null 2>&1; then
21552   bash_cv_struct_timeval=yes
21553 else
21554   bash_cv_struct_timeval=no
21555 fi
21556 rm -f conftest*
21557
21558 fi
21559 rm -f conftest*
21560
21561
21562 fi
21563
21564 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
21565 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
21566 if test $bash_cv_struct_timeval = yes; then
21567   cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_TIMEVAL 1
21569 _ACEOF
21570
21571 fi
21572
21573 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21574 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
21575 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578   cat >conftest.$ac_ext <<_ACEOF
21579 #line $LINENO "configure"
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 $ac_includes_default
21586 int
21587 main ()
21588 {
21589 static struct stat ac_aggr;
21590 if (ac_aggr.st_blocks)
21591 return 0;
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598   (eval $ac_compile) 2>&5
21599   ac_status=$?
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } &&
21602          { ac_try='test -s conftest.$ac_objext'
21603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604   (eval $ac_try) 2>&5
21605   ac_status=$?
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); }; }; then
21608   ac_cv_member_struct_stat_st_blocks=yes
21609 else
21610   echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613 cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
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 static struct stat ac_aggr;
21625 if (sizeof ac_aggr.st_blocks)
21626 return 0;
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633   (eval $ac_compile) 2>&5
21634   ac_status=$?
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); } &&
21637          { ac_try='test -s conftest.$ac_objext'
21638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639   (eval $ac_try) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); }; }; then
21643   ac_cv_member_struct_stat_st_blocks=yes
21644 else
21645   echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21647
21648 ac_cv_member_struct_stat_st_blocks=no
21649 fi
21650 rm -f conftest.$ac_objext conftest.$ac_ext
21651 fi
21652 rm -f conftest.$ac_objext conftest.$ac_ext
21653 fi
21654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21655 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
21656 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21657
21658 cat >>confdefs.h <<_ACEOF
21659 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21660 _ACEOF
21661
21662
21663 fi
21664
21665 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21666 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21667 if test "${ac_cv_struct_tm+set}" = set; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   cat >conftest.$ac_ext <<_ACEOF
21671 #line $LINENO "configure"
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677 #include <sys/types.h>
21678 #include <time.h>
21679
21680 int
21681 main ()
21682 {
21683 struct tm *tp; tp->tm_sec;
21684   ;
21685   return 0;
21686 }
21687 _ACEOF
21688 rm -f conftest.$ac_objext
21689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21690   (eval $ac_compile) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); } &&
21694          { ac_try='test -s conftest.$ac_objext'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   ac_cv_struct_tm=time.h
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 ac_cv_struct_tm=sys/time.h
21706 fi
21707 rm -f conftest.$ac_objext conftest.$ac_ext
21708 fi
21709 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21710 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21711 if test $ac_cv_struct_tm = sys/time.h; then
21712
21713 cat >>confdefs.h <<\_ACEOF
21714 #define TM_IN_SYS_TIME 1
21715 _ACEOF
21716
21717 fi
21718
21719 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21720 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21721 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21722   echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724   cat >conftest.$ac_ext <<_ACEOF
21725 #line $LINENO "configure"
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 #include <sys/types.h>
21732 #include <$ac_cv_struct_tm>
21733
21734
21735 int
21736 main ()
21737 {
21738 static struct tm ac_aggr;
21739 if (ac_aggr.tm_zone)
21740 return 0;
21741   ;
21742   return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747   (eval $ac_compile) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } &&
21751          { ac_try='test -s conftest.$ac_objext'
21752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753   (eval $ac_try) 2>&5
21754   ac_status=$?
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); }; }; then
21757   ac_cv_member_struct_tm_tm_zone=yes
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 cat >conftest.$ac_ext <<_ACEOF
21763 #line $LINENO "configure"
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769 #include <sys/types.h>
21770 #include <$ac_cv_struct_tm>
21771
21772
21773 int
21774 main ()
21775 {
21776 static struct tm ac_aggr;
21777 if (sizeof ac_aggr.tm_zone)
21778 return 0;
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785   (eval $ac_compile) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } &&
21789          { ac_try='test -s conftest.$ac_objext'
21790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791   (eval $ac_try) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795   ac_cv_member_struct_tm_tm_zone=yes
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 ac_cv_member_struct_tm_tm_zone=no
21801 fi
21802 rm -f conftest.$ac_objext conftest.$ac_ext
21803 fi
21804 rm -f conftest.$ac_objext conftest.$ac_ext
21805 fi
21806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21807 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21808 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21809
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_STRUCT_TM_TM_ZONE 1
21812 _ACEOF
21813
21814
21815 fi
21816
21817 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21818
21819 cat >>confdefs.h <<\_ACEOF
21820 #define HAVE_TM_ZONE 1
21821 _ACEOF
21822
21823 else
21824   echo "$as_me:$LINENO: checking for tzname" >&5
21825 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21826 if test "${ac_cv_var_tzname+set}" = set; then
21827   echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829   cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 #include <time.h>
21837 #ifndef tzname /* For SGI.  */
21838 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
21839 #endif
21840
21841 int
21842 main ()
21843 {
21844 atoi(*tzname);
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851   (eval $ac_link) 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } &&
21855          { ac_try='test -s conftest$ac_exeext'
21856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857   (eval $ac_try) 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); }; }; then
21861   ac_cv_var_tzname=yes
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866 ac_cv_var_tzname=no
21867 fi
21868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21869 fi
21870 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21871 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21872   if test $ac_cv_var_tzname = yes; then
21873
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_TZNAME 1
21876 _ACEOF
21877
21878   fi
21879 fi
21880
21881 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
21882 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
21883 if test "${bash_cv_struct_timezone+set}" = set; then
21884   echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886
21887 cat >conftest.$ac_ext <<_ACEOF
21888 #line $LINENO "configure"
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 #include <sys/time.h>
21895
21896 _ACEOF
21897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21898   $EGREP "struct timezone" >/dev/null 2>&1; then
21899   bash_cv_struct_timezone=yes
21900 else
21901   cat >conftest.$ac_ext <<_ACEOF
21902 #line $LINENO "configure"
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908 #include <time.h>
21909
21910 _ACEOF
21911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21912   $EGREP "struct timezone" >/dev/null 2>&1; then
21913   bash_cv_struct_timezone=yes
21914 else
21915   bash_cv_struct_timezone=no
21916 fi
21917 rm -f conftest*
21918
21919 fi
21920 rm -f conftest*
21921
21922
21923 fi
21924
21925 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
21926 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
21927 if test $bash_cv_struct_timezone = yes; then
21928   cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_STRUCT_TIMEZONE 1
21930 _ACEOF
21931
21932 fi
21933
21934
21935 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
21936 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
21937 if test "${bash_cv_have_strsignal+set}" = set; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940   cat >conftest.$ac_ext <<_ACEOF
21941 #line $LINENO "configure"
21942 /* confdefs.h.  */
21943 _ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h.  */
21947 #include <sys/types.h>
21948 #include <signal.h>
21949 int
21950 main ()
21951 {
21952 char *s = (char *)strsignal(2);
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext conftest$ac_exeext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21959   (eval $ac_link) 2>&5
21960   ac_status=$?
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } &&
21963          { ac_try='test -s conftest$ac_exeext'
21964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965   (eval $ac_try) 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; }; then
21969   bash_cv_have_strsignal=yes
21970 else
21971   echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21973
21974 bash_cv_have_strsignal=no
21975 fi
21976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21977 fi
21978
21979 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
21980 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
21981 if test $bash_cv_have_strsignal = yes; then
21982 cat >>confdefs.h <<\_ACEOF
21983 #define HAVE_STRSIGNAL 1
21984 _ACEOF
21985
21986 fi
21987
21988 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
21989 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
21990 if test "${bash_cv_opendir_not_robust+set}" = set; then
21991   echo $ECHO_N "(cached) $ECHO_C" >&6
21992 else
21993   if test "$cross_compiling" = yes; then
21994   { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
21995 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
21996      bash_cv_opendir_not_robust=no
21997
21998 else
21999   cat >conftest.$ac_ext <<_ACEOF
22000 #line $LINENO "configure"
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006
22007 #include <stdio.h>
22008 #include <sys/types.h>
22009 #include <fcntl.h>
22010 #ifdef HAVE_UNISTD_H
22011 # include <unistd.h>
22012 #endif /* HAVE_UNISTD_H */
22013 #if defined(HAVE_DIRENT_H)
22014 # include <dirent.h>
22015 #else
22016 # define dirent direct
22017 # ifdef HAVE_SYS_NDIR_H
22018 #  include <sys/ndir.h>
22019 # endif /* SYSNDIR */
22020 # ifdef HAVE_SYS_DIR_H
22021 #  include <sys/dir.h>
22022 # endif /* SYSDIR */
22023 # ifdef HAVE_NDIR_H
22024 #  include <ndir.h>
22025 # endif
22026 #endif /* HAVE_DIRENT_H */
22027 main()
22028 {
22029 DIR *dir;
22030 int fd, err;
22031 err = mkdir("/tmp/bash-aclocal", 0700);
22032 if (err < 0) {
22033   perror("mkdir");
22034   exit(1);
22035 }
22036 unlink("/tmp/bash-aclocal/not_a_directory");
22037 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
22038 write(fd, "\n", 1);
22039 close(fd);
22040 dir = opendir("/tmp/bash-aclocal/not_a_directory");
22041 unlink("/tmp/bash-aclocal/not_a_directory");
22042 rmdir("/tmp/bash-aclocal");
22043 exit (dir == 0);
22044 }
22045 _ACEOF
22046 rm -f conftest$ac_exeext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22048   (eval $ac_link) 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053   (eval $ac_try) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; }; then
22057   bash_cv_opendir_not_robust=yes
22058 else
22059   echo "$as_me: program exited with status $ac_status" >&5
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 ( exit $ac_status )
22064 bash_cv_opendir_not_robust=no
22065 fi
22066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22067 fi
22068 fi
22069
22070 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
22071 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
22072 if test $bash_cv_opendir_not_robust = yes; then
22073 cat >>confdefs.h <<\_ACEOF
22074 #define OPENDIR_NOT_ROBUST 1
22075 _ACEOF
22076
22077 fi
22078
22079 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
22080 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
22081 if test "${bash_cv_ulimit_maxfds+set}" = set; then
22082   echo $ECHO_N "(cached) $ECHO_C" >&6
22083 else
22084   if test "$cross_compiling" = yes; then
22085   { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
22086 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
22087     bash_cv_ulimit_maxfds=no
22088
22089 else
22090   cat >conftest.$ac_ext <<_ACEOF
22091 #line $LINENO "configure"
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097
22098 main()
22099 {
22100 long maxfds = ulimit(4, 0L);
22101 exit (maxfds == -1L);
22102 }
22103
22104 _ACEOF
22105 rm -f conftest$ac_exeext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107   (eval $ac_link) 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; }; then
22116   bash_cv_ulimit_maxfds=yes
22117 else
22118   echo "$as_me: program exited with status $ac_status" >&5
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22121
22122 ( exit $ac_status )
22123 bash_cv_ulimit_maxfds=no
22124 fi
22125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22126 fi
22127 fi
22128
22129 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
22130 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
22131 if test $bash_cv_ulimit_maxfds = yes; then
22132 cat >>confdefs.h <<\_ACEOF
22133 #define ULIMIT_MAXFDS 1
22134 _ACEOF
22135
22136 fi
22137
22138 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
22139 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
22140 if test "${bash_cv_getenv_redef+set}" = set; then
22141   echo $ECHO_N "(cached) $ECHO_C" >&6
22142 else
22143   if test "$cross_compiling" = yes; then
22144   { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
22145 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
22146     bash_cv_getenv_redef=yes
22147
22148 else
22149   cat >conftest.$ac_ext <<_ACEOF
22150 #line $LINENO "configure"
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156
22157 #ifdef HAVE_UNISTD_H
22158 #  include <unistd.h>
22159 #endif
22160 #ifndef __STDC__
22161 #  ifndef const
22162 #    define const
22163 #  endif
22164 #endif
22165 char *
22166 getenv (name)
22167 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
22168      const char *name;
22169 #else
22170      char const *name;
22171 #endif /* !__linux__ && !__bsdi__ && !convex */
22172 {
22173 return "42";
22174 }
22175 main()
22176 {
22177 char *s;
22178 /* The next allows this program to run, but does not allow bash to link
22179    when it redefines getenv.  I'm not really interested in figuring out
22180    why not. */
22181 #if defined (NeXT)
22182 exit(1);
22183 #endif
22184 s = getenv("ABCDE");
22185 exit(s == 0);   /* force optimizer to leave getenv in */
22186 }
22187
22188 _ACEOF
22189 rm -f conftest$ac_exeext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22191   (eval $ac_link) 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; }; then
22200   bash_cv_getenv_redef=yes
22201 else
22202   echo "$as_me: program exited with status $ac_status" >&5
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206 ( exit $ac_status )
22207 bash_cv_getenv_redef=no
22208 fi
22209 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22210 fi
22211 fi
22212
22213 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
22214 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
22215 if test $bash_cv_getenv_redef = yes; then
22216 cat >>confdefs.h <<\_ACEOF
22217 #define CAN_REDEFINE_GETENV 1
22218 _ACEOF
22219
22220 fi
22221
22222 if test "$ac_cv_func_getcwd" = "yes"; then
22223 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
22224 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
22225 if test "${bash_cv_getcwd_malloc+set}" = set; then
22226   echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228   if test "$cross_compiling" = yes; then
22229   { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
22230 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
22231     bash_cv_getcwd_malloc=no
22232
22233 else
22234   cat >conftest.$ac_ext <<_ACEOF
22235 #line $LINENO "configure"
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241
22242 #include <stdio.h>
22243 #ifdef HAVE_UNISTD_H
22244 #include <unistd.h>
22245 #endif
22246
22247 main()
22248 {
22249         char    *xpwd;
22250         xpwd = getcwd(0, 0);
22251         exit (xpwd == 0);
22252 }
22253
22254 _ACEOF
22255 rm -f conftest$ac_exeext
22256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22257   (eval $ac_link) 2>&5
22258   ac_status=$?
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262   (eval $ac_try) 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); }; }; then
22266   bash_cv_getcwd_malloc=yes
22267 else
22268   echo "$as_me: program exited with status $ac_status" >&5
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272 ( exit $ac_status )
22273 bash_cv_getcwd_malloc=no
22274 fi
22275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22276 fi
22277 fi
22278
22279 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
22280 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
22281 if test $bash_cv_getcwd_malloc = no; then
22282 cat >>confdefs.h <<\_ACEOF
22283 #define GETCWD_BROKEN 1
22284 _ACEOF
22285
22286 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
22287 fi
22288
22289 fi
22290
22291 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
22292 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
22293 if test "${bash_cv_func_sigsetjmp+set}" = set; then
22294   echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296   if test "$cross_compiling" = yes; then
22297   { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
22298 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
22299      bash_cv_func_sigsetjmp=missing
22300
22301 else
22302   cat >conftest.$ac_ext <<_ACEOF
22303 #line $LINENO "configure"
22304 /* confdefs.h.  */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h.  */
22309
22310 #ifdef HAVE_UNISTD_H
22311 #include <unistd.h>
22312 #endif
22313 #include <sys/types.h>
22314 #include <signal.h>
22315 #include <setjmp.h>
22316
22317 main()
22318 {
22319 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
22320 exit (1);
22321 #else
22322
22323 int code;
22324 sigset_t set, oset;
22325 sigjmp_buf xx;
22326
22327 /* get the mask */
22328 sigemptyset(&set);
22329 sigemptyset(&oset);
22330 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
22331 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
22332
22333 /* save it */
22334 code = sigsetjmp(xx, 1);
22335 if (code)
22336   exit(0);      /* could get sigmask and compare to oset here. */
22337
22338 /* change it */
22339 sigaddset(&set, SIGINT);
22340 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
22341
22342 /* and siglongjmp */
22343 siglongjmp(xx, 10);
22344 exit(1);
22345 #endif
22346 }
22347 _ACEOF
22348 rm -f conftest$ac_exeext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22350   (eval $ac_link) 2>&5
22351   ac_status=$?
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355   (eval $ac_try) 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); }; }; then
22359   bash_cv_func_sigsetjmp=present
22360 else
22361   echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365 ( exit $ac_status )
22366 bash_cv_func_sigsetjmp=missing
22367 fi
22368 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22369 fi
22370 fi
22371
22372 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
22373 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
22374 if test $bash_cv_func_sigsetjmp = present; then
22375 cat >>confdefs.h <<\_ACEOF
22376 #define HAVE_POSIX_SIGSETJMP 1
22377 _ACEOF
22378
22379 fi
22380
22381
22382 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
22383 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
22384 if test "${bash_cv_func_strcoll_broken+set}" = set; then
22385   echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387   if test "$cross_compiling" = yes; then
22388   { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
22389 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
22390     bash_cv_func_strcoll_broken=no
22391
22392 else
22393   cat >conftest.$ac_ext <<_ACEOF
22394 #line $LINENO "configure"
22395 /* confdefs.h.  */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h.  */
22400
22401 #include <stdio.h>
22402 #if defined (HAVE_LOCALE_H)
22403 #include <locale.h>
22404 #endif
22405
22406 main(c, v)
22407 int     c;
22408 char    *v[];
22409 {
22410         int     r1, r2;
22411         char    *deflocale, *defcoll;
22412
22413 #ifdef HAVE_SETLOCALE
22414         deflocale = setlocale(LC_ALL, "");
22415         defcoll = setlocale(LC_COLLATE, "");
22416 #endif
22417
22418 #ifdef HAVE_STRCOLL
22419         /* These two values are taken from tests/glob-test. */
22420         r1 = strcoll("abd", "aXd");
22421 #else
22422         r1 = 0;
22423 #endif
22424         r2 = strcmp("abd", "aXd");
22425
22426         /* These two should both be greater than 0.  It is permissible for
22427            a system to return different values, as long as the sign is the
22428            same. */
22429
22430         /* Exit with 1 (failure) if these two values are both > 0, since
22431            this tests whether strcoll(3) is broken with respect to strcmp(3)
22432            in the default locale. */
22433         exit (r1 > 0 && r2 > 0);
22434 }
22435
22436 _ACEOF
22437 rm -f conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439   (eval $ac_link) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; }; then
22448   bash_cv_func_strcoll_broken=yes
22449 else
22450   echo "$as_me: program exited with status $ac_status" >&5
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 ( exit $ac_status )
22455 bash_cv_func_strcoll_broken=no
22456 fi
22457 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22458 fi
22459 fi
22460
22461 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
22462 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
22463 if test $bash_cv_func_strcoll_broken = yes; then
22464 cat >>confdefs.h <<\_ACEOF
22465 #define STRCOLL_BROKEN 1
22466 _ACEOF
22467
22468 fi
22469
22470
22471
22472 if test "$ac_cv_func_putenv" = "yes"; then
22473
22474
22475
22476 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
22477 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
22478 if test "${bash_cv_std_putenv+set}" = set; then
22479   echo $ECHO_N "(cached) $ECHO_C" >&6
22480 else
22481   cat >conftest.$ac_ext <<_ACEOF
22482 #line $LINENO "configure"
22483 /* confdefs.h.  */
22484 _ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h.  */
22488
22489 #if STDC_HEADERS
22490 #include <stdlib.h>
22491 #include <stddef.h>
22492 #endif
22493 #ifndef __STDC__
22494 #  ifndef const
22495 #    define const
22496 #  endif
22497 #endif
22498 #ifdef PROTOTYPES
22499 extern int putenv (char *);
22500 #else
22501 extern int putenv ();
22502 #endif
22503
22504 int
22505 main ()
22506 {
22507 return (putenv == 0);
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22514   (eval $ac_link) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); } &&
22518          { ac_try='test -s conftest$ac_exeext'
22519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520   (eval $ac_try) 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; }; then
22524   bash_cv_std_putenv=yes
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529 bash_cv_std_putenv=no
22530
22531 fi
22532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22533 fi
22534 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
22535 echo "${ECHO_T}$bash_cv_std_putenv" >&6
22536 if test $bash_cv_std_putenv = yes; then
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_STD_PUTENV 1
22539 _ACEOF
22540
22541 fi
22542
22543 else
22544 cat >>confdefs.h <<\_ACEOF
22545 #define HAVE_STD_PUTENV 1
22546 _ACEOF
22547
22548 fi
22549 if test "$ac_cv_func_unsetenv" = "yes"; then
22550
22551
22552
22553 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
22554 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
22555 if test "${bash_cv_std_unsetenv+set}" = set; then
22556   echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558   cat >conftest.$ac_ext <<_ACEOF
22559 #line $LINENO "configure"
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565
22566 #if STDC_HEADERS
22567 #include <stdlib.h>
22568 #include <stddef.h>
22569 #endif
22570 #ifndef __STDC__
22571 #  ifndef const
22572 #    define const
22573 #  endif
22574 #endif
22575 #ifdef PROTOTYPES
22576 extern int unsetenv (const char *);
22577 #else
22578 extern int unsetenv ();
22579 #endif
22580
22581 int
22582 main ()
22583 {
22584 return (unsetenv == 0);
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591   (eval $ac_link) 2>&5
22592   ac_status=$?
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); } &&
22595          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22601   bash_cv_std_unsetenv=yes
22602 else
22603   echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606 bash_cv_std_unsetenv=no
22607
22608 fi
22609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22610 fi
22611 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
22612 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
22613 if test $bash_cv_std_unsetenv = yes; then
22614 cat >>confdefs.h <<\_ACEOF
22615 #define HAVE_STD_UNSETENV 1
22616 _ACEOF
22617
22618 fi
22619
22620 else
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_STD_UNSETENV 1
22623 _ACEOF
22624
22625 fi
22626
22627 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
22628 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
22629 if test "${bash_cv_printf_a_format+set}" = set; then
22630   echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632   if test "$cross_compiling" = yes; then
22633   { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
22634 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
22635     bash_cv_printf_a_format=no
22636
22637 else
22638   cat >conftest.$ac_ext <<_ACEOF
22639 #line $LINENO "configure"
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645
22646 #include <stdio.h>
22647 #include <string.h>
22648
22649 int
22650 main()
22651 {
22652         double y = 0.0;
22653         char abuf[1024];
22654
22655         sprintf(abuf, "%A", y);
22656         exit(strchr(abuf, 'P') == (char *)0);
22657 }
22658
22659 _ACEOF
22660 rm -f conftest$ac_exeext
22661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22662   (eval $ac_link) 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667   (eval $ac_try) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); }; }; then
22671   bash_cv_printf_a_format=yes
22672 else
22673   echo "$as_me: program exited with status $ac_status" >&5
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 ( exit $ac_status )
22678 bash_cv_printf_a_format=no
22679 fi
22680 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22681 fi
22682 fi
22683
22684 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
22685 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
22686 if test $bash_cv_printf_a_format = yes; then
22687 cat >>confdefs.h <<\_ACEOF
22688 #define HAVE_PRINTF_A_FORMAT 1
22689 _ACEOF
22690
22691 fi
22692
22693
22694
22695
22696 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
22697 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
22698 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701   if test "$cross_compiling" = yes; then
22702   { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
22703 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
22704     bash_cv_must_reinstall_sighandlers=no
22705
22706 else
22707   cat >conftest.$ac_ext <<_ACEOF
22708 #line $LINENO "configure"
22709 /* confdefs.h.  */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h.  */
22714
22715 #include <signal.h>
22716 #ifdef HAVE_UNISTD_H
22717 #include <unistd.h>
22718 #endif
22719
22720 typedef RETSIGTYPE sigfunc();
22721
22722 int nsigint;
22723
22724 #ifdef HAVE_POSIX_SIGNALS
22725 sigfunc *
22726 set_signal_handler(sig, handler)
22727      int sig;
22728      sigfunc *handler;
22729 {
22730   struct sigaction act, oact;
22731   act.sa_handler = handler;
22732   act.sa_flags = 0;
22733   sigemptyset (&act.sa_mask);
22734   sigemptyset (&oact.sa_mask);
22735   sigaction (sig, &act, &oact);
22736   return (oact.sa_handler);
22737 }
22738 #else
22739 #define set_signal_handler(s, h) signal(s, h)
22740 #endif
22741
22742 RETSIGTYPE
22743 sigint(s)
22744 int s;
22745 {
22746   nsigint++;
22747 }
22748
22749 main()
22750 {
22751         nsigint = 0;
22752         set_signal_handler(SIGINT, sigint);
22753         kill((int)getpid(), SIGINT);
22754         kill((int)getpid(), SIGINT);
22755         exit(nsigint != 2);
22756 }
22757
22758 _ACEOF
22759 rm -f conftest$ac_exeext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761   (eval $ac_link) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766   (eval $ac_try) 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; }; then
22770   bash_cv_must_reinstall_sighandlers=no
22771 else
22772   echo "$as_me: program exited with status $ac_status" >&5
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 ( exit $ac_status )
22777 bash_cv_must_reinstall_sighandlers=yes
22778 fi
22779 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22780 fi
22781 fi
22782
22783 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
22784 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
22785 if test $bash_cv_must_reinstall_sighandlers = yes; then
22786 cat >>confdefs.h <<\_ACEOF
22787 #define MUST_REINSTALL_SIGHANDLERS 1
22788 _ACEOF
22789
22790 fi
22791
22792
22793 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
22794 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
22795 if test "${bash_cv_job_control_missing+set}" = set; then
22796   echo $ECHO_N "(cached) $ECHO_C" >&6
22797 else
22798   if test "$cross_compiling" = yes; then
22799   { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
22800 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
22801      bash_cv_job_control_missing=missing
22802
22803 else
22804   cat >conftest.$ac_ext <<_ACEOF
22805 #line $LINENO "configure"
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811
22812 #include <sys/types.h>
22813 #ifdef HAVE_SYS_WAIT_H
22814 #include <sys/wait.h>
22815 #endif
22816 #ifdef HAVE_UNISTD_H
22817 #include <unistd.h>
22818 #endif
22819 #include <signal.h>
22820
22821 /* Add more tests in here as appropriate. */
22822 main()
22823 {
22824 /* signal type */
22825 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
22826 exit(1);
22827 #endif
22828
22829 /* signals and tty control. */
22830 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
22831 exit (1);
22832 #endif
22833
22834 /* process control */
22835 #if !defined (WNOHANG) || !defined (WUNTRACED)
22836 exit(1);
22837 #endif
22838
22839 /* Posix systems have tcgetpgrp and waitpid. */
22840 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
22841 exit(1);
22842 #endif
22843
22844 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
22845 exit(1);
22846 #endif
22847
22848 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
22849 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
22850 exit(1);
22851 #endif
22852
22853 exit(0);
22854 }
22855 _ACEOF
22856 rm -f conftest$ac_exeext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22858   (eval $ac_link) 2>&5
22859   ac_status=$?
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863   (eval $ac_try) 2>&5
22864   ac_status=$?
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); }; }; then
22867   bash_cv_job_control_missing=present
22868 else
22869   echo "$as_me: program exited with status $ac_status" >&5
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ( exit $ac_status )
22874 bash_cv_job_control_missing=missing
22875 fi
22876 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22877 fi
22878 fi
22879
22880 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
22881 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
22882 if test $bash_cv_job_control_missing = missing; then
22883 cat >>confdefs.h <<\_ACEOF
22884 #define JOB_CONTROL_MISSING 1
22885 _ACEOF
22886
22887 fi
22888
22889 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
22890 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
22891 if test "${bash_cv_sys_named_pipes+set}" = set; then
22892   echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894   if test "$cross_compiling" = yes; then
22895   { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
22896 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
22897      bash_cv_sys_named_pipes=missing
22898
22899 else
22900   cat >conftest.$ac_ext <<_ACEOF
22901 #line $LINENO "configure"
22902 /* confdefs.h.  */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h.  */
22907
22908 #include <sys/types.h>
22909 #include <sys/stat.h>
22910 #ifdef HAVE_UNISTD_H
22911 #include <unistd.h>
22912 #endif
22913
22914 /* Add more tests in here as appropriate. */
22915 main()
22916 {
22917 int fd, err;
22918
22919 #if defined (HAVE_MKFIFO)
22920 exit (0);
22921 #endif
22922
22923 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
22924 exit (1);
22925 #endif
22926
22927 #if defined (NeXT)
22928 exit (1);
22929 #endif
22930 err = mkdir("/tmp/bash-aclocal", 0700);
22931 if (err < 0) {
22932   perror ("mkdir");
22933   exit(1);
22934 }
22935 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
22936 if (fd == -1) {
22937   rmdir ("/tmp/bash-aclocal");
22938   exit (1);
22939 }
22940 close(fd);
22941 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
22942 rmdir ("/tmp/bash-aclocal");
22943 exit(0);
22944 }
22945 _ACEOF
22946 rm -f conftest$ac_exeext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22948   (eval $ac_link) 2>&5
22949   ac_status=$?
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; }; then
22957   bash_cv_sys_named_pipes=present
22958 else
22959   echo "$as_me: program exited with status $ac_status" >&5
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 ( exit $ac_status )
22964 bash_cv_sys_named_pipes=missing
22965 fi
22966 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22967 fi
22968 fi
22969
22970 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
22971 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
22972 if test $bash_cv_sys_named_pipes = missing; then
22973 cat >>confdefs.h <<\_ACEOF
22974 #define NAMED_PIPES_MISSING 1
22975 _ACEOF
22976
22977 fi
22978
22979
22980 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
22981 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
22982 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
22983   echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22985   cat >conftest.$ac_ext <<_ACEOF
22986 #line $LINENO "configure"
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include <sys/types.h>
22993 #include <termios.h>
22994 #ifdef TIOCGWINSZ
22995   yes
22996 #endif
22997
22998 _ACEOF
22999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23000   $EGREP "yes" >/dev/null 2>&1; then
23001   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23002 else
23003   ac_cv_sys_tiocgwinsz_in_termios_h=no
23004 fi
23005 rm -f conftest*
23006
23007 fi
23008 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23009 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23010
23011 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23012   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23013 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23014 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23015   echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017   cat >conftest.$ac_ext <<_ACEOF
23018 #line $LINENO "configure"
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024 #include <sys/types.h>
23025 #include <sys/ioctl.h>
23026 #ifdef TIOCGWINSZ
23027   yes
23028 #endif
23029
23030 _ACEOF
23031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23032   $EGREP "yes" >/dev/null 2>&1; then
23033   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23034 else
23035   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
23036 fi
23037 rm -f conftest*
23038
23039 fi
23040 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
23041 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
23042
23043   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
23044
23045 cat >>confdefs.h <<\_ACEOF
23046 #define GWINSZ_IN_SYS_IOCTL 1
23047 _ACEOF
23048
23049   fi
23050 fi
23051
23052 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
23053 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
23054 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   cat >conftest.$ac_ext <<_ACEOF
23058 #line $LINENO "configure"
23059 /* confdefs.h.  */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h.  */
23064 #include <sys/types.h>
23065 #include <sys/ioctl.h>
23066 int
23067 main ()
23068 {
23069 int x = TIOCSTAT;
23070   ;
23071   return 0;
23072 }
23073 _ACEOF
23074 rm -f conftest.$ac_objext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076   (eval $ac_compile) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } &&
23080          { ac_try='test -s conftest.$ac_objext'
23081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082   (eval $ac_try) 2>&5
23083   ac_status=$?
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); }; }; then
23086   bash_cv_tiocstat_in_ioctl=yes
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091 bash_cv_tiocstat_in_ioctl=no
23092 fi
23093 rm -f conftest.$ac_objext conftest.$ac_ext
23094 fi
23095
23096 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
23097 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
23098 if test $bash_cv_tiocstat_in_ioctl = yes; then
23099 cat >>confdefs.h <<\_ACEOF
23100 #define TIOCSTAT_IN_SYS_IOCTL 1
23101 _ACEOF
23102
23103 fi
23104
23105 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
23106 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
23107 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110   cat >conftest.$ac_ext <<_ACEOF
23111 #line $LINENO "configure"
23112 /* confdefs.h.  */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h.  */
23117 #include <sys/types.h>
23118 #include <sys/ioctl.h>
23119 int
23120 main ()
23121 {
23122 int x = FIONREAD;
23123   ;
23124   return 0;
23125 }
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129   (eval $ac_compile) 2>&5
23130   ac_status=$?
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } &&
23133          { ac_try='test -s conftest.$ac_objext'
23134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135   (eval $ac_try) 2>&5
23136   ac_status=$?
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); }; }; then
23139   bash_cv_fionread_in_ioctl=yes
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144 bash_cv_fionread_in_ioctl=no
23145 fi
23146 rm -f conftest.$ac_objext conftest.$ac_ext
23147 fi
23148
23149 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
23150 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
23151 if test $bash_cv_fionread_in_ioctl = yes; then
23152 cat >>confdefs.h <<\_ACEOF
23153 #define FIONREAD_IN_SYS_IOCTL 1
23154 _ACEOF
23155
23156 fi
23157
23158
23159 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
23160 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
23161 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   cat >conftest.$ac_ext <<_ACEOF
23165 #line $LINENO "configure"
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 int
23173 main ()
23174 {
23175 speed_t x;
23176   ;
23177   return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext
23181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23182   (eval $ac_compile) 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -s conftest.$ac_objext'
23187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); }; }; then
23192   bash_cv_speed_t_in_sys_types=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197 bash_cv_speed_t_in_sys_types=no
23198 fi
23199 rm -f conftest.$ac_objext conftest.$ac_ext
23200 fi
23201
23202 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
23203 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
23204 if test $bash_cv_speed_t_in_sys_types = yes; then
23205 cat >>confdefs.h <<\_ACEOF
23206 #define SPEED_T_IN_SYS_TYPES 1
23207 _ACEOF
23208
23209 fi
23210
23211 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
23212 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
23213 if test "${bash_cv_getpw_declared+set}" = set; then
23214   echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216   cat >conftest.$ac_ext <<_ACEOF
23217 #line $LINENO "configure"
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223
23224 #include <sys/types.h>
23225 #ifdef HAVE_UNISTD_H
23226 #  include <unistd.h>
23227 #endif
23228 #include <pwd.h>
23229
23230 _ACEOF
23231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232   $EGREP "getpwuid" >/dev/null 2>&1; then
23233   bash_cv_getpw_declared=yes
23234 else
23235   bash_cv_getpw_declared=no
23236 fi
23237 rm -f conftest*
23238
23239 fi
23240
23241 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
23242 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
23243 if test $bash_cv_getpw_declared = yes; then
23244 cat >>confdefs.h <<\_ACEOF
23245 #define HAVE_GETPW_DECLS 1
23246 _ACEOF
23247
23248 fi
23249
23250 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
23251 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
23252 if test "${bash_cv_unusable_rtsigs+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   if test "$cross_compiling" = yes; then
23256   { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
23257 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
23258      bash_cv_unusable_rtsigs=yes
23259
23260 else
23261   cat >conftest.$ac_ext <<_ACEOF
23262 #line $LINENO "configure"
23263 /* confdefs.h.  */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h.  */
23268
23269 #include <sys/types.h>
23270 #include <signal.h>
23271
23272 #ifndef NSIG
23273 #  define NSIG 64
23274 #endif
23275
23276 main ()
23277 {
23278   int n_sigs = 2 * NSIG;
23279 #ifdef SIGRTMIN
23280   int rtmin = SIGRTMIN;
23281 #else
23282   int rtmin = 0;
23283 #endif
23284
23285   exit(rtmin < n_sigs);
23286 }
23287 _ACEOF
23288 rm -f conftest$ac_exeext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290   (eval $ac_link) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; }; then
23299   bash_cv_unusable_rtsigs=yes
23300 else
23301   echo "$as_me: program exited with status $ac_status" >&5
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 ( exit $ac_status )
23306 bash_cv_unusable_rtsigs=no
23307 fi
23308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23309 fi
23310 fi
23311
23312 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
23313 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
23314 if test $bash_cv_unusable_rtsigs = yes; then
23315 cat >>confdefs.h <<\_ACEOF
23316 #define UNUSABLE_RT_SIGNALS 1
23317 _ACEOF
23318
23319 fi
23320
23321
23322
23323
23324
23325 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
23326   SIGLIST_O=siglist.o
23327 else
23328   SIGLIST_O=
23329 fi
23330
23331
23332
23333 case "$host_os" in
23334 hpux*)  echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
23335 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
23336 if test "${bash_cv_kernel_rlimit+set}" = set; then
23337   echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339   cat >conftest.$ac_ext <<_ACEOF
23340 #line $LINENO "configure"
23341 /* confdefs.h.  */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h.  */
23346
23347 #include <sys/types.h>
23348 #include <sys/resource.h>
23349
23350 int
23351 main ()
23352 {
23353
23354   int f;
23355   f = RLIMIT_DATA;
23356
23357   ;
23358   return 0;
23359 }
23360 _ACEOF
23361 rm -f conftest.$ac_objext
23362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23363   (eval $ac_compile) 2>&5
23364   ac_status=$?
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); } &&
23367          { ac_try='test -s conftest.$ac_objext'
23368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369   (eval $ac_try) 2>&5
23370   ac_status=$?
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); }; }; then
23373   bash_cv_kernel_rlimit=no
23374 else
23375   echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23377
23378 cat >conftest.$ac_ext <<_ACEOF
23379 #line $LINENO "configure"
23380 /* confdefs.h.  */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h.  */
23385
23386 #include <sys/types.h>
23387 #define _KERNEL
23388 #include <sys/resource.h>
23389 #undef _KERNEL
23390
23391 int
23392 main ()
23393 {
23394
23395         int f;
23396         f = RLIMIT_DATA;
23397
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23404   (eval $ac_compile) 2>&5
23405   ac_status=$?
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); } &&
23408          { ac_try='test -s conftest.$ac_objext'
23409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410   (eval $ac_try) 2>&5
23411   ac_status=$?
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); }; }; then
23414   bash_cv_kernel_rlimit=yes
23415 else
23416   echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23418
23419 bash_cv_kernel_rlimit=no
23420 fi
23421 rm -f conftest.$ac_objext conftest.$ac_ext
23422
23423 fi
23424 rm -f conftest.$ac_objext conftest.$ac_ext
23425 fi
23426
23427 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
23428 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
23429 if test $bash_cv_kernel_rlimit = yes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define RLIMIT_NEEDS_KERNEL 1
23432 _ACEOF
23433
23434 fi
23435  ;;
23436 esac
23437
23438 if test "$opt_readline" = yes; then
23439 case "$host_os" in
23440 aix*)   prefer_curses=yes ;;
23441 esac
23442
23443 if test "X$bash_cv_termcap_lib" = "X"; then
23444 _bash_needmsg=yes
23445 else
23446 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
23447 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
23448 _bash_needmsg=
23449 fi
23450 if test "${bash_cv_termcap_lib+set}" = set; then
23451   echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453   echo "$as_me:$LINENO: checking for tgetent" >&5
23454 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
23455 if test "${ac_cv_func_tgetent+set}" = set; then
23456   echo $ECHO_N "(cached) $ECHO_C" >&6
23457 else
23458   cat >conftest.$ac_ext <<_ACEOF
23459 #line $LINENO "configure"
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465 /* System header to define __stub macros and hopefully few prototypes,
23466     which can conflict with char tgetent (); below.
23467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23468     <limits.h> exists even on freestanding compilers.  */
23469 #ifdef __STDC__
23470 # include <limits.h>
23471 #else
23472 # include <assert.h>
23473 #endif
23474 /* Override any gcc2 internal prototype to avoid an error.  */
23475 #ifdef __cplusplus
23476 extern "C"
23477 {
23478 #endif
23479 /* We use char because int might match the return type of a gcc2
23480    builtin and then its argument prototype would still apply.  */
23481 char tgetent ();
23482 /* The GNU C library defines this for functions which it implements
23483     to always fail with ENOSYS.  Some functions are actually named
23484     something starting with __ and the normal name is an alias.  */
23485 #if defined (__stub_tgetent) || defined (__stub___tgetent)
23486 choke me
23487 #else
23488 char (*f) () = tgetent;
23489 #endif
23490 #ifdef __cplusplus
23491 }
23492 #endif
23493
23494 int
23495 main ()
23496 {
23497 return f != tgetent;
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext conftest$ac_exeext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23504   (eval $ac_link) 2>&5
23505   ac_status=$?
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } &&
23508          { ac_try='test -s conftest$ac_exeext'
23509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510   (eval $ac_try) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); }; }; then
23514   ac_cv_func_tgetent=yes
23515 else
23516   echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519 ac_cv_func_tgetent=no
23520 fi
23521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23522 fi
23523 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
23524 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
23525 if test $ac_cv_func_tgetent = yes; then
23526   bash_cv_termcap_lib=libc
23527 else
23528   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
23529 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
23530 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
23531   echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533   ac_check_lib_save_LIBS=$LIBS
23534 LIBS="-ltermcap  $LIBS"
23535 cat >conftest.$ac_ext <<_ACEOF
23536 #line $LINENO "configure"
23537 /* confdefs.h.  */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h.  */
23542
23543 /* Override any gcc2 internal prototype to avoid an error.  */
23544 #ifdef __cplusplus
23545 extern "C"
23546 #endif
23547 /* We use char because int might match the return type of a gcc2
23548    builtin and then its argument prototype would still apply.  */
23549 char tgetent ();
23550 int
23551 main ()
23552 {
23553 tgetent ();
23554   ;
23555   return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560   (eval $ac_link) 2>&5
23561   ac_status=$?
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); } &&
23564          { ac_try='test -s conftest$ac_exeext'
23565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566   (eval $ac_try) 2>&5
23567   ac_status=$?
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); }; }; then
23570   ac_cv_lib_termcap_tgetent=yes
23571 else
23572   echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23574
23575 ac_cv_lib_termcap_tgetent=no
23576 fi
23577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23578 LIBS=$ac_check_lib_save_LIBS
23579 fi
23580 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
23581 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
23582 if test $ac_cv_lib_termcap_tgetent = yes; then
23583   bash_cv_termcap_lib=libtermcap
23584 else
23585   echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
23586 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
23587 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
23588   echo $ECHO_N "(cached) $ECHO_C" >&6
23589 else
23590   ac_check_lib_save_LIBS=$LIBS
23591 LIBS="-ltinfo  $LIBS"
23592 cat >conftest.$ac_ext <<_ACEOF
23593 #line $LINENO "configure"
23594 /* confdefs.h.  */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h.  */
23599
23600 /* Override any gcc2 internal prototype to avoid an error.  */
23601 #ifdef __cplusplus
23602 extern "C"
23603 #endif
23604 /* We use char because int might match the return type of a gcc2
23605    builtin and then its argument prototype would still apply.  */
23606 char tgetent ();
23607 int
23608 main ()
23609 {
23610 tgetent ();
23611   ;
23612   return 0;
23613 }
23614 _ACEOF
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23617   (eval $ac_link) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); } &&
23621          { ac_try='test -s conftest$ac_exeext'
23622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); }; }; then
23627   ac_cv_lib_tinfo_tgetent=yes
23628 else
23629   echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631
23632 ac_cv_lib_tinfo_tgetent=no
23633 fi
23634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23635 LIBS=$ac_check_lib_save_LIBS
23636 fi
23637 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
23638 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
23639 if test $ac_cv_lib_tinfo_tgetent = yes; then
23640   bash_cv_termcap_lib=libtinfo
23641 else
23642   echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
23643 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
23644 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
23645   echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647   ac_check_lib_save_LIBS=$LIBS
23648 LIBS="-lcurses  $LIBS"
23649 cat >conftest.$ac_ext <<_ACEOF
23650 #line $LINENO "configure"
23651 /* confdefs.h.  */
23652 _ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h.  */
23656
23657 /* Override any gcc2 internal prototype to avoid an error.  */
23658 #ifdef __cplusplus
23659 extern "C"
23660 #endif
23661 /* We use char because int might match the return type of a gcc2
23662    builtin and then its argument prototype would still apply.  */
23663 char tgetent ();
23664 int
23665 main ()
23666 {
23667 tgetent ();
23668   ;
23669   return 0;
23670 }
23671 _ACEOF
23672 rm -f conftest.$ac_objext conftest$ac_exeext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23674   (eval $ac_link) 2>&5
23675   ac_status=$?
23676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); } &&
23678          { ac_try='test -s conftest$ac_exeext'
23679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680   (eval $ac_try) 2>&5
23681   ac_status=$?
23682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); }; }; then
23684   ac_cv_lib_curses_tgetent=yes
23685 else
23686   echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23688
23689 ac_cv_lib_curses_tgetent=no
23690 fi
23691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23693 fi
23694 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
23695 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
23696 if test $ac_cv_lib_curses_tgetent = yes; then
23697   bash_cv_termcap_lib=libcurses
23698 else
23699   echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
23700 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
23701 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704   ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-lncurses  $LIBS"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 #line $LINENO "configure"
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713
23714 /* Override any gcc2 internal prototype to avoid an error.  */
23715 #ifdef __cplusplus
23716 extern "C"
23717 #endif
23718 /* We use char because int might match the return type of a gcc2
23719    builtin and then its argument prototype would still apply.  */
23720 char tgetent ();
23721 int
23722 main ()
23723 {
23724 tgetent ();
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23731   (eval $ac_link) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); } &&
23735          { ac_try='test -s conftest$ac_exeext'
23736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; }; then
23741   ac_cv_lib_ncurses_tgetent=yes
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ac_cv_lib_ncurses_tgetent=no
23747 fi
23748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23749 LIBS=$ac_check_lib_save_LIBS
23750 fi
23751 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
23752 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
23753 if test $ac_cv_lib_ncurses_tgetent = yes; then
23754   bash_cv_termcap_lib=libncurses
23755 else
23756   bash_cv_termcap_lib=gnutermcap
23757 fi
23758
23759 fi
23760
23761 fi
23762
23763 fi
23764
23765 fi
23766
23767 fi
23768
23769 if test "X$_bash_needmsg" = "Xyes"; then
23770 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
23771 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
23772 fi
23773 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
23774 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
23775 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
23776 LDFLAGS="$LDFLAGS -L./lib/termcap"
23777 TERMCAP_LIB="./lib/termcap/libtermcap.a"
23778 TERMCAP_DEP="./lib/termcap/libtermcap.a"
23779 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
23780 TERMCAP_LIB=-ltermcap
23781 TERMCAP_DEP=
23782 elif test $bash_cv_termcap_lib = libtinfo; then
23783 TERMCAP_LIB=-ltinfo
23784 TERMCAP_DEP=
23785 elif test $bash_cv_termcap_lib = libncurses; then
23786 TERMCAP_LIB=-lncurses
23787 TERMCAP_DEP=
23788 elif test $bash_cv_termcap_lib = libc; then
23789 TERMCAP_LIB=
23790 TERMCAP_DEP=
23791 else
23792 TERMCAP_LIB=-lcurses
23793 TERMCAP_DEP=
23794 fi
23795
23796 fi
23797
23798
23799
23800 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
23801 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
23802 if test "${bash_cv_dev_fd+set}" = set; then
23803   echo $ECHO_N "(cached) $ECHO_C" >&6
23804 else
23805   if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
23806    bash_cv_dev_fd=standard
23807  elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
23808    bash_cv_dev_fd=whacky
23809  else
23810    bash_cv_dev_fd=absent
23811  fi
23812
23813 fi
23814
23815 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
23816 echo "${ECHO_T}$bash_cv_dev_fd" >&6
23817 if test $bash_cv_dev_fd = "standard"; then
23818   cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_DEV_FD 1
23820 _ACEOF
23821
23822   cat >>confdefs.h <<\_ACEOF
23823 #define DEV_FD_PREFIX "/dev/fd/"
23824 _ACEOF
23825
23826 elif test $bash_cv_dev_fd = "whacky"; then
23827   cat >>confdefs.h <<\_ACEOF
23828 #define HAVE_DEV_FD 1
23829 _ACEOF
23830
23831   cat >>confdefs.h <<\_ACEOF
23832 #define DEV_FD_PREFIX "/proc/self/fd/"
23833 _ACEOF
23834
23835 fi
23836
23837 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
23838 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
23839 if test "${bash_cv_dev_stdin+set}" = set; then
23840   echo $ECHO_N "(cached) $ECHO_C" >&6
23841 else
23842   if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
23843    bash_cv_dev_stdin=present
23844  elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
23845    bash_cv_dev_stdin=present
23846  else
23847    bash_cv_dev_stdin=absent
23848  fi
23849
23850 fi
23851
23852 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
23853 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
23854 if test $bash_cv_dev_stdin = "present"; then
23855   cat >>confdefs.h <<\_ACEOF
23856 #define HAVE_DEV_STDIN 1
23857 _ACEOF
23858
23859 fi
23860
23861 echo "$as_me:$LINENO: checking for default mail directory" >&5
23862 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
23863 if test "${bash_cv_mail_dir+set}" = set; then
23864   echo $ECHO_N "(cached) $ECHO_C" >&6
23865 else
23866   if test -d /var/mail; then
23867    bash_cv_mail_dir=/var/mail
23868  elif test -d /var/spool/mail; then
23869    bash_cv_mail_dir=/var/spool/mail
23870  elif test -d /usr/mail; then
23871    bash_cv_mail_dir=/usr/mail
23872  elif test -d /usr/spool/mail; then
23873    bash_cv_mail_dir=/usr/spool/mail
23874  else
23875    bash_cv_mail_dir=unknown
23876  fi
23877
23878 fi
23879
23880 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
23881 echo "${ECHO_T}$bash_cv_mail_dir" >&6
23882 cat >>confdefs.h <<_ACEOF
23883 #define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
23884 _ACEOF
23885
23886
23887
23888 if test "$bash_cv_job_control_missing" = missing; then
23889         opt_job_control=no
23890 fi
23891
23892 if test "$opt_job_control" = yes; then
23893 cat >>confdefs.h <<\_ACEOF
23894 #define JOB_CONTROL 1
23895 _ACEOF
23896
23897 JOBS_O=jobs.o
23898 else
23899 JOBS_O=nojobs.o
23900 fi
23901
23902
23903
23904
23905 LOCAL_DEFS=-DSHELL
23906
23907
23908 case "${host_os}" in
23909 sysv4.2*)       cat >>confdefs.h <<\_ACEOF
23910 #define SVR4_2 1
23911 _ACEOF
23912
23913                 cat >>confdefs.h <<\_ACEOF
23914 #define SVR4 1
23915 _ACEOF
23916  ;;
23917 sysv4*)         cat >>confdefs.h <<\_ACEOF
23918 #define SVR4 1
23919 _ACEOF
23920  ;;
23921 sysv5*)         cat >>confdefs.h <<\_ACEOF
23922 #define SVR5 1
23923 _ACEOF
23924  ;;
23925 hpux9*)         LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
23926 hpux*)          LOCAL_CFLAGS=-DHPUX ;;
23927 dgux*)          LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
23928 isc*)           LOCAL_CFLAGS=-Disc386 ;;
23929 rhapsody*)      LOCAL_CFLAGS=-DRHAPSODY ;;
23930 darwin*)        LOCAL_CFLAGS=-DMACOSX ;;
23931 sco3.2v5*)      LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
23932 sco3.2v4*)      LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
23933 sco3.2*)        LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
23934 sunos4*)        LOCAL_CFLAGS=-DSunOS4 ;;
23935 solaris2.5*)    LOCAL_CFLAGS=-DSunOS5 ;;
23936 lynxos*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23937 linux*)         LOCAL_LDFLAGS=-rdynamic ;;       # allow dynamic loading
23938 *qnx*)          LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
23939 powerux*)       LOCAL_LIBS="-lgen" ;;
23940 cygwin*)        LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
23941 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO" ;;
23942 esac
23943
23944 case "${host_os}-${CC}" in
23945 aix4.2*-*gcc*)  LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
23946 aix4.2*)        LOCAL_LDFLAGS="-bexpall -brtl" ;;
23947 bsdi4*-*gcc*)   LOCAL_LDFLAGS="-rdynamic" ;;    # allow dynamic loading, like Linux
23948 esac
23949
23950 case "${host_os}" in
23951 freebsd[3-9]*)
23952                 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
23953                         LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
23954                 fi ;;
23955 freebsdelf*)    LOCAL_LDFLAGS=-rdynamic ;;      # allow dynamic loading
23956 esac
23957
23958 case "$host_cpu" in
23959 *cray*)         LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
23960 esac
23961
23962 case "$host_cpu-$host_os" in
23963 ibmrt-*bsd4*)   LOCAL_CFLAGS="-ma -U__STDC__" ;;
23964 esac
23965
23966 case "$host_cpu-$host_vendor-$host_os" in
23967 m88k-motorola-sysv3)    LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
23968 mips-pyramid-sysv4)     LOCAL_CFLAGS=-Xa ;;
23969 esac
23970
23971 #
23972 # Shared object configuration section.  These values are generated by
23973 # ${srcdir}/support/shobj-conf
23974 #
23975 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
23976 then
23977         echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
23978 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
23979         eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
23980
23981
23982
23983
23984
23985
23986
23987         echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
23988 echo "${ECHO_T}$SHOBJ_STATUS" >&6
23989 fi
23990
23991 # try to create a directory tree if the source is elsewhere
23992 # this should be packaged into a script accessible via ${srcdir}/support
23993 case "$srcdir" in
23994 .)      ;;
23995 *)      for d in doc tests support lib examples; do     # dirs
23996                 test -d $d || mkdir $d
23997         done
23998         for ld in readline glob tilde malloc sh termcap; do     # libdirs
23999                 test -d lib/$ld || mkdir lib/$ld
24000         done
24001         test -d examples/loadables || mkdir examples/loadables  # loadable builtins
24002         test -d examples/loadables/perl || mkdir examples/loadables/perl
24003         ;;
24004 esac
24005
24006 BUILD_DIR=`pwd`
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031 #AC_SUBST(ALLOCA_SOURCE)
24032 #AC_SUBST(ALLOCA_OBJECT)
24033
24034                                                                                                                                                       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"
24035           ac_config_commands="$ac_config_commands default"
24036 cat >confcache <<\_ACEOF
24037 # This file is a shell script that caches the results of configure
24038 # tests run on this system so they can be shared between configure
24039 # scripts and configure runs, see configure's option --config-cache.
24040 # It is not useful on other systems.  If it contains results you don't
24041 # want to keep, you may remove or edit it.
24042 #
24043 # config.status only pays attention to the cache file if you give it
24044 # the --recheck option to rerun configure.
24045 #
24046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24048 # following values.
24049
24050 _ACEOF
24051
24052 # The following way of writing the cache mishandles newlines in values,
24053 # but we know of no workaround that is simple, portable, and efficient.
24054 # So, don't put newlines in cache variables' values.
24055 # Ultrix sh set writes to stderr and can't be redirected directly,
24056 # and sets the high bit in the cache file unless we assign to the vars.
24057 {
24058   (set) 2>&1 |
24059     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24060     *ac_space=\ *)
24061       # `set' does not quote correctly, so add quotes (double-quote
24062       # substitution turns \\\\ into \\, and sed turns \\ into \).
24063       sed -n \
24064         "s/'/'\\\\''/g;
24065           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24066       ;;
24067     *)
24068       # `set' quotes correctly as required by POSIX, so do not add quotes.
24069       sed -n \
24070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24071       ;;
24072     esac;
24073 } |
24074   sed '
24075      t clear
24076      : clear
24077      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24078      t end
24079      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24080      : end' >>confcache
24081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24082   if test -w $cache_file; then
24083     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24084     cat confcache >$cache_file
24085   else
24086     echo "not updating unwritable cache $cache_file"
24087   fi
24088 fi
24089 rm -f confcache
24090
24091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24092 # Let make expand exec_prefix.
24093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24094
24095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24097 # trailing colons and then remove the whole line if VPATH becomes empty
24098 # (actually we leave an empty line to preserve line numbers).
24099 if test "x$srcdir" = x.; then
24100   ac_vpsub='/^[         ]*VPATH[        ]*=/{
24101 s/:*\$(srcdir):*/:/;
24102 s/:*\${srcdir}:*/:/;
24103 s/:*@srcdir@:*/:/;
24104 s/^\([^=]*=[    ]*\):*/\1/;
24105 s/:*$//;
24106 s/^[^=]*=[      ]*$//;
24107 }'
24108 fi
24109
24110 DEFS=-DHAVE_CONFIG_H
24111
24112 ac_libobjs=
24113 ac_ltlibobjs=
24114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24115   # 1. Remove the extension, and $U if already installed.
24116   ac_i=`echo "$ac_i" |
24117          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24118   # 2. Add them.
24119   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24120   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24121 done
24122 LIBOBJS=$ac_libobjs
24123
24124 LTLIBOBJS=$ac_ltlibobjs
24125
24126
24127
24128 : ${CONFIG_STATUS=./config.status}
24129 ac_clean_files_save=$ac_clean_files
24130 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24133 cat >$CONFIG_STATUS <<_ACEOF
24134 #! $SHELL
24135 # Generated by $as_me.
24136 # Run this file to recreate the current configuration.
24137 # Compiler output produced by configure, useful for debugging
24138 # configure, is in config.log if it exists.
24139
24140 debug=false
24141 ac_cs_recheck=false
24142 ac_cs_silent=false
24143 SHELL=\${CONFIG_SHELL-$SHELL}
24144 _ACEOF
24145
24146 cat >>$CONFIG_STATUS <<\_ACEOF
24147 ## --------------------- ##
24148 ## M4sh Initialization.  ##
24149 ## --------------------- ##
24150
24151 # Be Bourne compatible
24152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24153   emulate sh
24154   NULLCMD=:
24155   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24156   # is contrary to our usage.  Disable this feature.
24157   alias -g '${1+"$@"}'='"$@"'
24158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24159   set -o posix
24160 fi
24161
24162 # Support unset when possible.
24163 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24164   as_unset=unset
24165 else
24166   as_unset=false
24167 fi
24168
24169
24170 # Work around bugs in pre-3.0 UWIN ksh.
24171 $as_unset ENV MAIL MAILPATH
24172 PS1='$ '
24173 PS2='> '
24174 PS4='+ '
24175
24176 # NLS nuisances.
24177 for as_var in \
24178   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24179   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24180   LC_TELEPHONE LC_TIME
24181 do
24182   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
24183     eval $as_var=C; export $as_var
24184   else
24185     $as_unset $as_var
24186   fi
24187 done
24188
24189 # Required to use basename.
24190 if expr a : '\(a\)' >/dev/null 2>&1; then
24191   as_expr=expr
24192 else
24193   as_expr=false
24194 fi
24195
24196 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24197   as_basename=basename
24198 else
24199   as_basename=false
24200 fi
24201
24202
24203 # Name of the executable.
24204 as_me=`$as_basename "$0" ||
24205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24206          X"$0" : 'X\(//\)$' \| \
24207          X"$0" : 'X\(/\)$' \| \
24208          .     : '\(.\)' 2>/dev/null ||
24209 echo X/"$0" |
24210     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24211           /^X\/\(\/\/\)$/{ s//\1/; q; }
24212           /^X\/\(\/\).*/{ s//\1/; q; }
24213           s/.*/./; q'`
24214
24215
24216 # PATH needs CR, and LINENO needs CR and PATH.
24217 # Avoid depending upon Character Ranges.
24218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24221 as_cr_digits='0123456789'
24222 as_cr_alnum=$as_cr_Letters$as_cr_digits
24223
24224 # The user is always right.
24225 if test "${PATH_SEPARATOR+set}" != set; then
24226   echo "#! /bin/sh" >conf$$.sh
24227   echo  "exit 0"   >>conf$$.sh
24228   chmod +x conf$$.sh
24229   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24230     PATH_SEPARATOR=';'
24231   else
24232     PATH_SEPARATOR=:
24233   fi
24234   rm -f conf$$.sh
24235 fi
24236
24237
24238   as_lineno_1=$LINENO
24239   as_lineno_2=$LINENO
24240   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24241   test "x$as_lineno_1" != "x$as_lineno_2" &&
24242   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24243   # Find who we are.  Look in the path if we contain no path at all
24244   # relative or not.
24245   case $0 in
24246     *[\\/]* ) as_myself=$0 ;;
24247     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24248 for as_dir in $PATH
24249 do
24250   IFS=$as_save_IFS
24251   test -z "$as_dir" && as_dir=.
24252   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24253 done
24254
24255        ;;
24256   esac
24257   # We did not find ourselves, most probably we were run as `sh COMMAND'
24258   # in which case we are not to be found in the path.
24259   if test "x$as_myself" = x; then
24260     as_myself=$0
24261   fi
24262   if test ! -f "$as_myself"; then
24263     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24265    { (exit 1); exit 1; }; }
24266   fi
24267   case $CONFIG_SHELL in
24268   '')
24269     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24270 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24271 do
24272   IFS=$as_save_IFS
24273   test -z "$as_dir" && as_dir=.
24274   for as_base in sh bash ksh sh5; do
24275          case $as_dir in
24276          /*)
24277            if ("$as_dir/$as_base" -c '
24278   as_lineno_1=$LINENO
24279   as_lineno_2=$LINENO
24280   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24281   test "x$as_lineno_1" != "x$as_lineno_2" &&
24282   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24283              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24284              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24285              CONFIG_SHELL=$as_dir/$as_base
24286              export CONFIG_SHELL
24287              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24288            fi;;
24289          esac
24290        done
24291 done
24292 ;;
24293   esac
24294
24295   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24296   # uniformly replaced by the line number.  The first 'sed' inserts a
24297   # line-number line before each line; the second 'sed' does the real
24298   # work.  The second script uses 'N' to pair each line-number line
24299   # with the numbered line, and appends trailing '-' during
24300   # substitution so that $LINENO is not a special case at line end.
24301   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24302   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24303   sed '=' <$as_myself |
24304     sed '
24305       N
24306       s,$,-,
24307       : loop
24308       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24309       t loop
24310       s,-$,,
24311       s,^['$as_cr_digits']*\n,,
24312     ' >$as_me.lineno &&
24313   chmod +x $as_me.lineno ||
24314     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24315 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24316    { (exit 1); exit 1; }; }
24317
24318   # Don't try to exec as it changes $[0], causing all sort of problems
24319   # (the dirname of $[0] is not the place where we might find the
24320   # original and so on.  Autoconf is especially sensible to this).
24321   . ./$as_me.lineno
24322   # Exit status is that of the last command.
24323   exit
24324 }
24325
24326
24327 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24328   *c*,-n*) ECHO_N= ECHO_C='
24329 ' ECHO_T='      ' ;;
24330   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24331   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24332 esac
24333
24334 if expr a : '\(a\)' >/dev/null 2>&1; then
24335   as_expr=expr
24336 else
24337   as_expr=false
24338 fi
24339
24340 rm -f conf$$ conf$$.exe conf$$.file
24341 echo >conf$$.file
24342 if ln -s conf$$.file conf$$ 2>/dev/null; then
24343   # We could just check for DJGPP; but this test a) works b) is more generic
24344   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24345   if test -f conf$$.exe; then
24346     # Don't use ln at all; we don't have any links
24347     as_ln_s='cp -p'
24348   else
24349     as_ln_s='ln -s'
24350   fi
24351 elif ln conf$$.file conf$$ 2>/dev/null; then
24352   as_ln_s=ln
24353 else
24354   as_ln_s='cp -p'
24355 fi
24356 rm -f conf$$ conf$$.exe conf$$.file
24357
24358 if mkdir -p . 2>/dev/null; then
24359   as_mkdir_p=:
24360 else
24361   as_mkdir_p=false
24362 fi
24363
24364 as_executable_p="test -f"
24365
24366 # Sed expression to map a string onto a valid CPP name.
24367 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24368
24369 # Sed expression to map a string onto a valid variable name.
24370 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24371
24372
24373 # IFS
24374 # We need space, tab and new line, in precisely that order.
24375 as_nl='
24376 '
24377 IFS="   $as_nl"
24378
24379 # CDPATH.
24380 $as_unset CDPATH
24381
24382 exec 6>&1
24383
24384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24385 # report actual input values of CONFIG_FILES etc. instead of their
24386 # values after options handling.  Logging --version etc. is OK.
24387 exec 5>>config.log
24388 {
24389   echo
24390   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24391 ## Running $as_me. ##
24392 _ASBOX
24393 } >&5
24394 cat >&5 <<_CSEOF
24395
24396 This file was extended by bash $as_me 3.0-release, which was
24397 generated by GNU Autoconf 2.57.  Invocation command line was
24398
24399   CONFIG_FILES    = $CONFIG_FILES
24400   CONFIG_HEADERS  = $CONFIG_HEADERS
24401   CONFIG_LINKS    = $CONFIG_LINKS
24402   CONFIG_COMMANDS = $CONFIG_COMMANDS
24403   $ $0 $@
24404
24405 _CSEOF
24406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24407 echo >&5
24408 _ACEOF
24409
24410 # Files that config.status was made for.
24411 if test -n "$ac_config_files"; then
24412   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24413 fi
24414
24415 if test -n "$ac_config_headers"; then
24416   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24417 fi
24418
24419 if test -n "$ac_config_links"; then
24420   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24421 fi
24422
24423 if test -n "$ac_config_commands"; then
24424   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24425 fi
24426
24427 cat >>$CONFIG_STATUS <<\_ACEOF
24428
24429 ac_cs_usage="\
24430 \`$as_me' instantiates files from templates according to the
24431 current configuration.
24432
24433 Usage: $0 [OPTIONS] [FILE]...
24434
24435   -h, --help       print this help, then exit
24436   -V, --version    print version number, then exit
24437   -q, --quiet      do not print progress messages
24438   -d, --debug      don't remove temporary files
24439       --recheck    update $as_me by reconfiguring in the same conditions
24440   --file=FILE[:TEMPLATE]
24441                    instantiate the configuration file FILE
24442   --header=FILE[:TEMPLATE]
24443                    instantiate the configuration header FILE
24444
24445 Configuration files:
24446 $config_files
24447
24448 Configuration headers:
24449 $config_headers
24450
24451 Configuration commands:
24452 $config_commands
24453
24454 Report bugs to <bug-autoconf@gnu.org>."
24455 _ACEOF
24456
24457 cat >>$CONFIG_STATUS <<_ACEOF
24458 ac_cs_version="\\
24459 bash config.status 3.0-release
24460 configured by $0, generated by GNU Autoconf 2.57,
24461   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24462
24463 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24464 Free Software Foundation, Inc.
24465 This config.status script is free software; the Free Software Foundation
24466 gives unlimited permission to copy, distribute and modify it."
24467 srcdir=$srcdir
24468 INSTALL="$INSTALL"
24469 _ACEOF
24470
24471 cat >>$CONFIG_STATUS <<\_ACEOF
24472 # If no file are specified by the user, then we need to provide default
24473 # value.  By we need to know if files were specified by the user.
24474 ac_need_defaults=:
24475 while test $# != 0
24476 do
24477   case $1 in
24478   --*=*)
24479     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24480     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24481     ac_shift=:
24482     ;;
24483   -*)
24484     ac_option=$1
24485     ac_optarg=$2
24486     ac_shift=shift
24487     ;;
24488   *) # This is not an option, so the user has probably given explicit
24489      # arguments.
24490      ac_option=$1
24491      ac_need_defaults=false;;
24492   esac
24493
24494   case $ac_option in
24495   # Handling of the options.
24496 _ACEOF
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24498   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24499     ac_cs_recheck=: ;;
24500   --version | --vers* | -V )
24501     echo "$ac_cs_version"; exit 0 ;;
24502   --he | --h)
24503     # Conflict between --help and --header
24504     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24505 Try \`$0 --help' for more information." >&5
24506 echo "$as_me: error: ambiguous option: $1
24507 Try \`$0 --help' for more information." >&2;}
24508    { (exit 1); exit 1; }; };;
24509   --help | --hel | -h )
24510     echo "$ac_cs_usage"; exit 0 ;;
24511   --debug | --d* | -d )
24512     debug=: ;;
24513   --file | --fil | --fi | --f )
24514     $ac_shift
24515     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24516     ac_need_defaults=false;;
24517   --header | --heade | --head | --hea )
24518     $ac_shift
24519     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24520     ac_need_defaults=false;;
24521   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24522   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24523     ac_cs_silent=: ;;
24524
24525   # This is an error.
24526   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24527 Try \`$0 --help' for more information." >&5
24528 echo "$as_me: error: unrecognized option: $1
24529 Try \`$0 --help' for more information." >&2;}
24530    { (exit 1); exit 1; }; } ;;
24531
24532   *) ac_config_targets="$ac_config_targets $1" ;;
24533
24534   esac
24535   shift
24536 done
24537
24538 ac_configure_extra_args=
24539
24540 if $ac_cs_silent; then
24541   exec 6>/dev/null
24542   ac_configure_extra_args="$ac_configure_extra_args --silent"
24543 fi
24544
24545 _ACEOF
24546 cat >>$CONFIG_STATUS <<_ACEOF
24547 if \$ac_cs_recheck; then
24548   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24549   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24550 fi
24551
24552 _ACEOF
24553
24554 cat >>$CONFIG_STATUS <<_ACEOF
24555 #
24556 # INIT-COMMANDS section.
24557 #
24558
24559 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24560     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
24561     # from automake.
24562     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24563     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24564     LINGUAS="${LINGUAS-%UNSET%}"
24565
24566
24567 _ACEOF
24568
24569
24570
24571 cat >>$CONFIG_STATUS <<\_ACEOF
24572 for ac_config_target in $ac_config_targets
24573 do
24574   case "$ac_config_target" in
24575   # Handling of arguments.
24576   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24577   "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
24578   "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
24579   "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
24580   "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
24581   "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
24582   "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
24583   "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
24584   "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
24585   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24586   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
24587   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24588   "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
24589   "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
24590   "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
24591   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24592   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24593   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24594   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24596    { (exit 1); exit 1; }; };;
24597   esac
24598 done
24599
24600 # If the user did not use the arguments to specify the items to instantiate,
24601 # then the envvar interface is used.  Set only those that are not.
24602 # We use the long form for the default assignment because of an extremely
24603 # bizarre bug on SunOS 4.1.3.
24604 if $ac_need_defaults; then
24605   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24606   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24607   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24608 fi
24609
24610 # Have a temporary directory for convenience.  Make it in the build tree
24611 # simply because there is no reason to put it here, and in addition,
24612 # creating and moving files from /tmp can sometimes cause problems.
24613 # Create a temporary directory, and hook for its removal unless debugging.
24614 $debug ||
24615 {
24616   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24617   trap '{ (exit 1); exit 1; }' 1 2 13 15
24618 }
24619
24620 # Create a (secure) tmp directory for tmp files.
24621
24622 {
24623   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24624   test -n "$tmp" && test -d "$tmp"
24625 }  ||
24626 {
24627   tmp=./confstat$$-$RANDOM
24628   (umask 077 && mkdir $tmp)
24629 } ||
24630 {
24631    echo "$me: cannot create a temporary directory in ." >&2
24632    { (exit 1); exit 1; }
24633 }
24634
24635 _ACEOF
24636
24637 cat >>$CONFIG_STATUS <<_ACEOF
24638
24639 #
24640 # CONFIG_FILES section.
24641 #
24642
24643 # No need to generate the scripts if there are no CONFIG_FILES.
24644 # This happens for instance when ./config.status config.h
24645 if test -n "\$CONFIG_FILES"; then
24646   # Protect against being on the right side of a sed subst in config.status.
24647   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24648    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24649 s,@SHELL@,$SHELL,;t t
24650 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24651 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24652 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24653 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24654 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24655 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24656 s,@exec_prefix@,$exec_prefix,;t t
24657 s,@prefix@,$prefix,;t t
24658 s,@program_transform_name@,$program_transform_name,;t t
24659 s,@bindir@,$bindir,;t t
24660 s,@sbindir@,$sbindir,;t t
24661 s,@libexecdir@,$libexecdir,;t t
24662 s,@datadir@,$datadir,;t t
24663 s,@sysconfdir@,$sysconfdir,;t t
24664 s,@sharedstatedir@,$sharedstatedir,;t t
24665 s,@localstatedir@,$localstatedir,;t t
24666 s,@libdir@,$libdir,;t t
24667 s,@includedir@,$includedir,;t t
24668 s,@oldincludedir@,$oldincludedir,;t t
24669 s,@infodir@,$infodir,;t t
24670 s,@mandir@,$mandir,;t t
24671 s,@build_alias@,$build_alias,;t t
24672 s,@host_alias@,$host_alias,;t t
24673 s,@target_alias@,$target_alias,;t t
24674 s,@DEFS@,$DEFS,;t t
24675 s,@ECHO_C@,$ECHO_C,;t t
24676 s,@ECHO_N@,$ECHO_N,;t t
24677 s,@ECHO_T@,$ECHO_T,;t t
24678 s,@LIBS@,$LIBS,;t t
24679 s,@build@,$build,;t t
24680 s,@build_cpu@,$build_cpu,;t t
24681 s,@build_vendor@,$build_vendor,;t t
24682 s,@build_os@,$build_os,;t t
24683 s,@host@,$host,;t t
24684 s,@host_cpu@,$host_cpu,;t t
24685 s,@host_vendor@,$host_vendor,;t t
24686 s,@host_os@,$host_os,;t t
24687 s,@EMACS@,$EMACS,;t t
24688 s,@lispdir@,$lispdir,;t t
24689 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
24690 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
24691 s,@PURIFY@,$PURIFY,;t t
24692 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
24693 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
24694 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
24695 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
24696 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
24697 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
24698 s,@htmldir@,$htmldir,;t t
24699 s,@HELPDIR@,$HELPDIR,;t t
24700 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
24701 s,@HELPINSTALL@,$HELPINSTALL,;t t
24702 s,@CC@,$CC,;t t
24703 s,@CFLAGS@,$CFLAGS,;t t
24704 s,@LDFLAGS@,$LDFLAGS,;t t
24705 s,@CPPFLAGS@,$CPPFLAGS,;t t
24706 s,@ac_ct_CC@,$ac_ct_CC,;t t
24707 s,@EXEEXT@,$EXEEXT,;t t
24708 s,@OBJEXT@,$OBJEXT,;t t
24709 s,@CPP@,$CPP,;t t
24710 s,@EGREP@,$EGREP,;t t
24711 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
24712 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24713 s,@STATIC_LD@,$STATIC_LD,;t t
24714 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
24715 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
24716 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
24717 s,@RL_VERSION@,$RL_VERSION,;t t
24718 s,@RL_MAJOR@,$RL_MAJOR,;t t
24719 s,@RL_MINOR@,$RL_MINOR,;t t
24720 s,@READLINE_LIB@,$READLINE_LIB,;t t
24721 s,@READLINE_DEP@,$READLINE_DEP,;t t
24722 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
24723 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
24724 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
24725 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
24726 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
24727 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
24728 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24729 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24730 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24731 s,@AR@,$AR,;t t
24732 s,@RANLIB@,$RANLIB,;t t
24733 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24734 s,@YACC@,$YACC,;t t
24735 s,@SET_MAKE@,$SET_MAKE,;t t
24736 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24737 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24738 s,@USE_NLS@,$USE_NLS,;t t
24739 s,@MSGFMT@,$MSGFMT,;t t
24740 s,@GMSGFMT@,$GMSGFMT,;t t
24741 s,@XGETTEXT@,$XGETTEXT,;t t
24742 s,@MSGMERGE@,$MSGMERGE,;t t
24743 s,@ALLOCA@,$ALLOCA,;t t
24744 s,@GLIBC21@,$GLIBC21,;t t
24745 s,@LIBICONV@,$LIBICONV,;t t
24746 s,@LTLIBICONV@,$LTLIBICONV,;t t
24747 s,@INTLBISON@,$INTLBISON,;t t
24748 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
24749 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
24750 s,@CATOBJEXT@,$CATOBJEXT,;t t
24751 s,@DATADIRNAME@,$DATADIRNAME,;t t
24752 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24753 s,@GENCAT@,$GENCAT,;t t
24754 s,@INTLOBJS@,$INTLOBJS,;t t
24755 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
24756 s,@INTLLIBS@,$INTLLIBS,;t t
24757 s,@LIBINTL@,$LIBINTL,;t t
24758 s,@LTLIBINTL@,$LTLIBINTL,;t t
24759 s,@POSUB@,$POSUB,;t t
24760 s,@LIBOBJS@,$LIBOBJS,;t t
24761 s,@INTL_DEP@,$INTL_DEP,;t t
24762 s,@INTL_INC@,$INTL_INC,;t t
24763 s,@LIBINTL_H@,$LIBINTL_H,;t t
24764 s,@SIGLIST_O@,$SIGLIST_O,;t t
24765 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
24766 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
24767 s,@JOBS_O@,$JOBS_O,;t t
24768 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
24769 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
24770 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
24771 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
24772 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
24773 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
24774 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
24775 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
24776 s,@incdir@,$incdir,;t t
24777 s,@BUILD_DIR@,$BUILD_DIR,;t t
24778 s,@ARFLAGS@,$ARFLAGS,;t t
24779 s,@BASHVERS@,$BASHVERS,;t t
24780 s,@RELSTATUS@,$RELSTATUS,;t t
24781 s,@DEBUG@,$DEBUG,;t t
24782 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
24783 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24784 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24785 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24786 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24787 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24788 CEOF
24789
24790 _ACEOF
24791
24792   cat >>$CONFIG_STATUS <<\_ACEOF
24793   # Split the substitutions into bite-sized pieces for seds with
24794   # small command number limits, like on Digital OSF/1 and HP-UX.
24795   ac_max_sed_lines=48
24796   ac_sed_frag=1 # Number of current file.
24797   ac_beg=1 # First line for current file.
24798   ac_end=$ac_max_sed_lines # Line after last line for current file.
24799   ac_more_lines=:
24800   ac_sed_cmds=
24801   while $ac_more_lines; do
24802     if test $ac_beg -gt 1; then
24803       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24804     else
24805       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24806     fi
24807     if test ! -s $tmp/subs.frag; then
24808       ac_more_lines=false
24809     else
24810       # The purpose of the label and of the branching condition is to
24811       # speed up the sed processing (if there are no `@' at all, there
24812       # is no need to browse any of the substitutions).
24813       # These are the two extra sed commands mentioned above.
24814       (echo ':t
24815   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24816       if test -z "$ac_sed_cmds"; then
24817         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24818       else
24819         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24820       fi
24821       ac_sed_frag=`expr $ac_sed_frag + 1`
24822       ac_beg=$ac_end
24823       ac_end=`expr $ac_end + $ac_max_sed_lines`
24824     fi
24825   done
24826   if test -z "$ac_sed_cmds"; then
24827     ac_sed_cmds=cat
24828   fi
24829 fi # test -n "$CONFIG_FILES"
24830
24831 _ACEOF
24832 cat >>$CONFIG_STATUS <<\_ACEOF
24833 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24834   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24835   case $ac_file in
24836   - | *:- | *:-:* ) # input from stdin
24837         cat >$tmp/stdin
24838         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24839         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24840   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24841         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24842   * )   ac_file_in=$ac_file.in ;;
24843   esac
24844
24845   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24846   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24848          X"$ac_file" : 'X\(//\)[^/]' \| \
24849          X"$ac_file" : 'X\(//\)$' \| \
24850          X"$ac_file" : 'X\(/\)' \| \
24851          .     : '\(.\)' 2>/dev/null ||
24852 echo X"$ac_file" |
24853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24855           /^X\(\/\/\)$/{ s//\1/; q; }
24856           /^X\(\/\).*/{ s//\1/; q; }
24857           s/.*/./; q'`
24858   { if $as_mkdir_p; then
24859     mkdir -p "$ac_dir"
24860   else
24861     as_dir="$ac_dir"
24862     as_dirs=
24863     while test ! -d "$as_dir"; do
24864       as_dirs="$as_dir $as_dirs"
24865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24867          X"$as_dir" : 'X\(//\)[^/]' \| \
24868          X"$as_dir" : 'X\(//\)$' \| \
24869          X"$as_dir" : 'X\(/\)' \| \
24870          .     : '\(.\)' 2>/dev/null ||
24871 echo X"$as_dir" |
24872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24874           /^X\(\/\/\)$/{ s//\1/; q; }
24875           /^X\(\/\).*/{ s//\1/; q; }
24876           s/.*/./; q'`
24877     done
24878     test ! -n "$as_dirs" || mkdir $as_dirs
24879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24881    { (exit 1); exit 1; }; }; }
24882
24883   ac_builddir=.
24884
24885 if test "$ac_dir" != .; then
24886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887   # A "../" for each directory in $ac_dir_suffix.
24888   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24889 else
24890   ac_dir_suffix= ac_top_builddir=
24891 fi
24892
24893 case $srcdir in
24894   .)  # No --srcdir option.  We are building in place.
24895     ac_srcdir=.
24896     if test -z "$ac_top_builddir"; then
24897        ac_top_srcdir=.
24898     else
24899        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24900     fi ;;
24901   [\\/]* | ?:[\\/]* )  # Absolute path.
24902     ac_srcdir=$srcdir$ac_dir_suffix;
24903     ac_top_srcdir=$srcdir ;;
24904   *) # Relative path.
24905     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24906     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24907 esac
24908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24909 # absolute.
24910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24911 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24914
24915
24916   case $INSTALL in
24917   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24918   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24919   esac
24920
24921   if test x"$ac_file" != x-; then
24922     { echo "$as_me:$LINENO: creating $ac_file" >&5
24923 echo "$as_me: creating $ac_file" >&6;}
24924     rm -f "$ac_file"
24925   fi
24926   # Let's still pretend it is `configure' which instantiates (i.e., don't
24927   # use $as_me), people would be surprised to read:
24928   #    /* config.h.  Generated by config.status.  */
24929   if test x"$ac_file" = x-; then
24930     configure_input=
24931   else
24932     configure_input="$ac_file.  "
24933   fi
24934   configure_input=$configure_input"Generated from `echo $ac_file_in |
24935                                      sed 's,.*/,,'` by configure."
24936
24937   # First look for the input files in the build tree, otherwise in the
24938   # src tree.
24939   ac_file_inputs=`IFS=:
24940     for f in $ac_file_in; do
24941       case $f in
24942       -) echo $tmp/stdin ;;
24943       [\\/$]*)
24944          # Absolute (can't be DOS-style, as IFS=:)
24945          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24946 echo "$as_me: error: cannot find input file: $f" >&2;}
24947    { (exit 1); exit 1; }; }
24948          echo $f;;
24949       *) # Relative
24950          if test -f "$f"; then
24951            # Build tree
24952            echo $f
24953          elif test -f "$srcdir/$f"; then
24954            # Source tree
24955            echo $srcdir/$f
24956          else
24957            # /dev/null tree
24958            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24959 echo "$as_me: error: cannot find input file: $f" >&2;}
24960    { (exit 1); exit 1; }; }
24961          fi;;
24962       esac
24963     done` || { (exit 1); exit 1; }
24964 _ACEOF
24965 cat >>$CONFIG_STATUS <<_ACEOF
24966   sed "$ac_vpsub
24967 $extrasub
24968 _ACEOF
24969 cat >>$CONFIG_STATUS <<\_ACEOF
24970 :t
24971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24972 s,@configure_input@,$configure_input,;t t
24973 s,@srcdir@,$ac_srcdir,;t t
24974 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24975 s,@top_srcdir@,$ac_top_srcdir,;t t
24976 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24977 s,@builddir@,$ac_builddir,;t t
24978 s,@abs_builddir@,$ac_abs_builddir,;t t
24979 s,@top_builddir@,$ac_top_builddir,;t t
24980 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24981 s,@INSTALL@,$ac_INSTALL,;t t
24982 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24983   rm -f $tmp/stdin
24984   if test x"$ac_file" != x-; then
24985     mv $tmp/out $ac_file
24986   else
24987     cat $tmp/out
24988     rm -f $tmp/out
24989   fi
24990
24991 done
24992 _ACEOF
24993 cat >>$CONFIG_STATUS <<\_ACEOF
24994
24995 #
24996 # CONFIG_HEADER section.
24997 #
24998
24999 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25000 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25001 #
25002 # ac_d sets the value in "#define NAME VALUE" lines.
25003 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
25004 ac_dB='[        ].*$,\1#\2'
25005 ac_dC=' '
25006 ac_dD=',;t'
25007 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25008 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25009 ac_uB='$,\1#\2define\3'
25010 ac_uC=' '
25011 ac_uD=',;t'
25012
25013 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25014   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25015   case $ac_file in
25016   - | *:- | *:-:* ) # input from stdin
25017         cat >$tmp/stdin
25018         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25019         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25020   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25021         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25022   * )   ac_file_in=$ac_file.in ;;
25023   esac
25024
25025   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25026 echo "$as_me: creating $ac_file" >&6;}
25027
25028   # First look for the input files in the build tree, otherwise in the
25029   # src tree.
25030   ac_file_inputs=`IFS=:
25031     for f in $ac_file_in; do
25032       case $f in
25033       -) echo $tmp/stdin ;;
25034       [\\/$]*)
25035          # Absolute (can't be DOS-style, as IFS=:)
25036          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25037 echo "$as_me: error: cannot find input file: $f" >&2;}
25038    { (exit 1); exit 1; }; }
25039          echo $f;;
25040       *) # Relative
25041          if test -f "$f"; then
25042            # Build tree
25043            echo $f
25044          elif test -f "$srcdir/$f"; then
25045            # Source tree
25046            echo $srcdir/$f
25047          else
25048            # /dev/null tree
25049            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25050 echo "$as_me: error: cannot find input file: $f" >&2;}
25051    { (exit 1); exit 1; }; }
25052          fi;;
25053       esac
25054     done` || { (exit 1); exit 1; }
25055   # Remove the trailing spaces.
25056   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
25057
25058 _ACEOF
25059
25060 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25061 # `conftest.undefs', that substitutes the proper values into
25062 # config.h.in to produce config.h.  The first handles `#define'
25063 # templates, and the second `#undef' templates.
25064 # And first: Protect against being on the right side of a sed subst in
25065 # config.status.  Protect against being in an unquoted here document
25066 # in config.status.
25067 rm -f conftest.defines conftest.undefs
25068 # Using a here document instead of a string reduces the quoting nightmare.
25069 # Putting comments in sed scripts is not portable.
25070 #
25071 # `end' is used to avoid that the second main sed command (meant for
25072 # 0-ary CPP macros) applies to n-ary macro definitions.
25073 # See the Autoconf documentation for `clear'.
25074 cat >confdef2sed.sed <<\_ACEOF
25075 s/[\\&,]/\\&/g
25076 s,[\\$`],\\&,g
25077 t clear
25078 : clear
25079 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25080 t end
25081 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25082 : end
25083 _ACEOF
25084 # If some macros were called several times there might be several times
25085 # the same #defines, which is useless.  Nevertheless, we may not want to
25086 # sort them, since we want the *last* AC-DEFINE to be honored.
25087 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25088 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25089 rm -f confdef2sed.sed
25090
25091 # This sed command replaces #undef with comments.  This is necessary, for
25092 # example, in the case of _POSIX_SOURCE, which is predefined and required
25093 # on some systems where configure will not decide to define it.
25094 cat >>conftest.undefs <<\_ACEOF
25095 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25096 _ACEOF
25097
25098 # Break up conftest.defines because some shells have a limit on the size
25099 # of here documents, and old seds have small limits too (100 cmds).
25100 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25101 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25102 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25103 echo '  :' >>$CONFIG_STATUS
25104 rm -f conftest.tail
25105 while grep . conftest.defines >/dev/null
25106 do
25107   # Write a limited-size here document to $tmp/defines.sed.
25108   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25109   # Speed up: don't consider the non `#define' lines.
25110   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
25111   # Work around the forget-to-reset-the-flag bug.
25112   echo 't clr' >>$CONFIG_STATUS
25113   echo ': clr' >>$CONFIG_STATUS
25114   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25115   echo 'CEOF
25116   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25117   rm -f $tmp/in
25118   mv $tmp/out $tmp/in
25119 ' >>$CONFIG_STATUS
25120   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25121   rm -f conftest.defines
25122   mv conftest.tail conftest.defines
25123 done
25124 rm -f conftest.defines
25125 echo '  fi # grep' >>$CONFIG_STATUS
25126 echo >>$CONFIG_STATUS
25127
25128 # Break up conftest.undefs because some shells have a limit on the size
25129 # of here documents, and old seds have small limits too (100 cmds).
25130 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25131 rm -f conftest.tail
25132 while grep . conftest.undefs >/dev/null
25133 do
25134   # Write a limited-size here document to $tmp/undefs.sed.
25135   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25136   # Speed up: don't consider the non `#undef'
25137   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25138   # Work around the forget-to-reset-the-flag bug.
25139   echo 't clr' >>$CONFIG_STATUS
25140   echo ': clr' >>$CONFIG_STATUS
25141   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25142   echo 'CEOF
25143   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25144   rm -f $tmp/in
25145   mv $tmp/out $tmp/in
25146 ' >>$CONFIG_STATUS
25147   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25148   rm -f conftest.undefs
25149   mv conftest.tail conftest.undefs
25150 done
25151 rm -f conftest.undefs
25152
25153 cat >>$CONFIG_STATUS <<\_ACEOF
25154   # Let's still pretend it is `configure' which instantiates (i.e., don't
25155   # use $as_me), people would be surprised to read:
25156   #    /* config.h.  Generated by config.status.  */
25157   if test x"$ac_file" = x-; then
25158     echo "/* Generated by configure.  */" >$tmp/config.h
25159   else
25160     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25161   fi
25162   cat $tmp/in >>$tmp/config.h
25163   rm -f $tmp/in
25164   if test x"$ac_file" != x-; then
25165     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25166       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25167 echo "$as_me: $ac_file is unchanged" >&6;}
25168     else
25169       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25171          X"$ac_file" : 'X\(//\)[^/]' \| \
25172          X"$ac_file" : 'X\(//\)$' \| \
25173          X"$ac_file" : 'X\(/\)' \| \
25174          .     : '\(.\)' 2>/dev/null ||
25175 echo X"$ac_file" |
25176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25177           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25178           /^X\(\/\/\)$/{ s//\1/; q; }
25179           /^X\(\/\).*/{ s//\1/; q; }
25180           s/.*/./; q'`
25181       { if $as_mkdir_p; then
25182     mkdir -p "$ac_dir"
25183   else
25184     as_dir="$ac_dir"
25185     as_dirs=
25186     while test ! -d "$as_dir"; do
25187       as_dirs="$as_dir $as_dirs"
25188       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25190          X"$as_dir" : 'X\(//\)[^/]' \| \
25191          X"$as_dir" : 'X\(//\)$' \| \
25192          X"$as_dir" : 'X\(/\)' \| \
25193          .     : '\(.\)' 2>/dev/null ||
25194 echo X"$as_dir" |
25195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25196           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25197           /^X\(\/\/\)$/{ s//\1/; q; }
25198           /^X\(\/\).*/{ s//\1/; q; }
25199           s/.*/./; q'`
25200     done
25201     test ! -n "$as_dirs" || mkdir $as_dirs
25202   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25204    { (exit 1); exit 1; }; }; }
25205
25206       rm -f $ac_file
25207       mv $tmp/config.h $ac_file
25208     fi
25209   else
25210     cat $tmp/config.h
25211     rm -f $tmp/config.h
25212   fi
25213 done
25214 _ACEOF
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25216
25217 #
25218 # CONFIG_COMMANDS section.
25219 #
25220 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25221   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25222   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25223   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25224 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25225          X"$ac_dest" : 'X\(//\)[^/]' \| \
25226          X"$ac_dest" : 'X\(//\)$' \| \
25227          X"$ac_dest" : 'X\(/\)' \| \
25228          .     : '\(.\)' 2>/dev/null ||
25229 echo X"$ac_dest" |
25230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25231           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25232           /^X\(\/\/\)$/{ s//\1/; q; }
25233           /^X\(\/\).*/{ s//\1/; q; }
25234           s/.*/./; q'`
25235   ac_builddir=.
25236
25237 if test "$ac_dir" != .; then
25238   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25239   # A "../" for each directory in $ac_dir_suffix.
25240   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25241 else
25242   ac_dir_suffix= ac_top_builddir=
25243 fi
25244
25245 case $srcdir in
25246   .)  # No --srcdir option.  We are building in place.
25247     ac_srcdir=.
25248     if test -z "$ac_top_builddir"; then
25249        ac_top_srcdir=.
25250     else
25251        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25252     fi ;;
25253   [\\/]* | ?:[\\/]* )  # Absolute path.
25254     ac_srcdir=$srcdir$ac_dir_suffix;
25255     ac_top_srcdir=$srcdir ;;
25256   *) # Relative path.
25257     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25258     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25259 esac
25260 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25261 # absolute.
25262 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25263 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25264 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25265 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25266
25267
25268   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25269 echo "$as_me: executing $ac_dest commands" >&6;}
25270   case $ac_dest in
25271     default-1 )
25272     for ac_file in $CONFIG_FILES; do
25273       # Support "outfile[:infile[:infile...]]"
25274       case "$ac_file" in
25275         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25276       esac
25277       # PO directories have a Makefile.in generated from Makefile.in.in.
25278       case "$ac_file" in */Makefile.in)
25279         # Adjust a relative srcdir.
25280         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25281         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25282         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25283         # In autoconf-2.13 it is called $ac_given_srcdir.
25284         # In autoconf-2.50 it is called $srcdir.
25285         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25286         case "$ac_given_srcdir" in
25287           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25288           /*) top_srcdir="$ac_given_srcdir" ;;
25289           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25290         esac
25291         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25292           rm -f "$ac_dir/POTFILES"
25293           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25294           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25295           POMAKEFILEDEPS="POTFILES.in"
25296           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
25297           # on $ac_dir but don't depend on user-specified configuration
25298           # parameters.
25299           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25300             # The LINGUAS file contains the set of available languages.
25301             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25302               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25303             fi
25304             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25305             # Hide the ALL_LINGUAS assigment from automake.
25306             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25307             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25308           else
25309             # The set of available languages was given in configure.in.
25310             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25311           fi
25312           case "$ac_given_srcdir" in
25313             .) srcdirpre= ;;
25314             *) srcdirpre='$(srcdir)/' ;;
25315           esac
25316           POFILES=
25317           GMOFILES=
25318           UPDATEPOFILES=
25319           DUMMYPOFILES=
25320           for lang in $ALL_LINGUAS; do
25321             POFILES="$POFILES $srcdirpre$lang.po"
25322             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25323             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25324             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25325           done
25326           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25327           # environment variable.
25328           INST_LINGUAS=
25329           if test -n "$ALL_LINGUAS"; then
25330             for presentlang in $ALL_LINGUAS; do
25331               useit=no
25332               if test "%UNSET%" != "$LINGUAS"; then
25333                 desiredlanguages="$LINGUAS"
25334               else
25335                 desiredlanguages="$ALL_LINGUAS"
25336               fi
25337               for desiredlang in $desiredlanguages; do
25338                 # Use the presentlang catalog if desiredlang is
25339                 #   a. equal to presentlang, or
25340                 #   b. a variant of presentlang (because in this case,
25341                 #      presentlang can be used as a fallback for messages
25342                 #      which are not translated in the desiredlang catalog).
25343                 case "$desiredlang" in
25344                   "$presentlang"*) useit=yes;;
25345                 esac
25346               done
25347               if test $useit = yes; then
25348                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25349               fi
25350             done
25351           fi
25352           CATALOGS=
25353           if test -n "$INST_LINGUAS"; then
25354             for lang in $INST_LINGUAS; do
25355               CATALOGS="$CATALOGS $lang.gmo"
25356             done
25357           fi
25358           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25359           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"
25360           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25361             if test -f "$f"; then
25362               case "$f" in
25363                 *.orig | *.bak | *~) ;;
25364                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25365               esac
25366             fi
25367           done
25368         fi
25369         ;;
25370       esac
25371     done ;;
25372     default )
25373 # Makefile uses this timestamp file to record whether config.h is up to date.
25374 echo timestamp > stamp-h
25375  ;;
25376   esac
25377 done
25378 _ACEOF
25379
25380 cat >>$CONFIG_STATUS <<\_ACEOF
25381
25382 { (exit 0); exit 0; }
25383 _ACEOF
25384 chmod +x $CONFIG_STATUS
25385 ac_clean_files=$ac_clean_files_save
25386
25387
25388 # configure is writing to config.log, and then calls config.status.
25389 # config.status does its own redirection, appending to config.log.
25390 # Unfortunately, on DOS this fails, as config.log is still kept open
25391 # by configure, so config.status won't be able to write to it; its
25392 # output is simply discarded.  So we exec the FD to /dev/null,
25393 # effectively closing config.log, so it can be properly (re)opened and
25394 # appended to by config.status.  When coming back to configure, we
25395 # need to make the FD available again.
25396 if test "$no_create" != yes; then
25397   ac_cs_success=:
25398   ac_config_status_args=
25399   test "$silent" = yes &&
25400     ac_config_status_args="$ac_config_status_args --quiet"
25401   exec 5>/dev/null
25402   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25403   exec 5>>config.log
25404   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25405   # would make configure fail if this is the last instruction.
25406   $ac_cs_success || { (exit 1); exit 1; }
25407 fi
25408